@dhzh/foundry 3.0.1 → 3.1.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.
@@ -1,179 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MenuBottomSheet-Bs2WJHmm.js","assets/BottomSheet-8bK6bbnE.js"])))=>i.map(i=>d[i]);
2
- function gM(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 mM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zm={exports:{}},pu={};var uS;function yM(){if(uS)return pu;uS=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 d in o)d!=="key"&&(l[d]=o[d])}else l=o;return o=l.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:l}}return pu.Fragment=t,pu.jsx=r,pu.jsxs=r,pu}var dS;function bM(){return dS||(dS=1,Zm.exports=yM()),Zm.exports}var m=bM(),Qm={exports:{}},nt={};var fS;function kM(){if(fS)return nt;fS=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"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),v=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function C(O,Z,de){this.props=O,this.context=Z,this.refs=R,this.updater=de||S}C.prototype.isReactComponent={},C.prototype.setState=function(O,Z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Z,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function T(){}T.prototype=C.prototype;function A(O,Z,de){this.props=O,this.context=Z,this.refs=R,this.updater=de||S}var M=A.prototype=new T;M.constructor=A,E(M,C.prototype),M.isPureReactComponent=!0;var L=Array.isArray;function D(){}var j={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function z(O,Z,de){var ue=de.ref;return{$$typeof:e,type:O,key:Z,ref:ue!==void 0?ue:null,props:de}}function H(O,Z){return z(O.type,Z,O.props)}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function B(O){var Z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(de){return Z[de]})}var q=/\/+/g;function U(O,Z){return typeof O=="object"&&O!==null&&O.key!=null?B(""+O.key):Z.toString(36)}function _(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(D,D):(O.status="pending",O.then(function(Z){O.status==="pending"&&(O.status="fulfilled",O.value=Z)},function(Z){O.status==="pending"&&(O.status="rejected",O.reason=Z)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function P(O,Z,de,ue,ve){var xe=typeof O;(xe==="undefined"||xe==="boolean")&&(O=null);var $e=!1;if(O===null)$e=!0;else switch(xe){case"bigint":case"string":case"number":$e=!0;break;case"object":switch(O.$$typeof){case e:case t:$e=!0;break;case y:return $e=O._init,P($e(O._payload),Z,de,ue,ve)}}if($e)return ve=ve(O),$e=ue===""?"."+U(O,0):ue,L(ve)?(de="",$e!=null&&(de=$e.replace(q,"$&/")+"/"),P(ve,Z,de,"",function(Re){return Re})):ve!=null&&(F(ve)&&(ve=H(ve,de+(ve.key==null||O&&O.key===ve.key?"":(""+ve.key).replace(q,"$&/")+"/")+$e)),Z.push(ve)),1;$e=0;var te=ue===""?".":ue+":";if(L(O))for(var pe=0;pe<O.length;pe++)ue=O[pe],xe=te+U(ue,pe),$e+=P(ue,Z,de,xe,ve);else if(pe=w(O),typeof pe=="function")for(O=pe.call(O),pe=0;!(ue=O.next()).done;)ue=ue.value,xe=te+U(ue,pe++),$e+=P(ue,Z,de,xe,ve);else if(xe==="object"){if(typeof O.then=="function")return P(_(O),Z,de,ue,ve);throw Z=String(O),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return $e}function G(O,Z,de){if(O==null)return O;var ue=[],ve=0;return P(O,ue,"","",function(xe){return Z.call(de,xe,ve++)}),ue}function Y(O){if(O._status===-1){var Z=O._result,de=Z();de.then(function(ue){(O._status===0||O._status===-1)&&(O._status=1,O._result=ue,de.status===void 0&&(de.status="fulfilled",de.value=ue))},function(ue){(O._status===0||O._status===-1)&&(O._status=2,O._result=ue,de.status===void 0&&(de.status="rejected",de.reason=ue))}),O._status===-1&&(O._status=0,O._result=de)}if(O._status===1)return O._result.default;throw O._result}var X=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function ee(O){var Z=j.T,de={};de.types=Z!==null?Z.types:null,j.T=de;try{var ue=O(),ve=j.S;ve!==null&&ve(de,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(D,X)}catch(xe){X(xe)}finally{Z!==null&&de.types!==null&&(Z.types=de.types),j.T=Z}}function Q(O){var Z=j.T;if(Z!==null){var de=Z.types;de===null?Z.types=[O]:de.indexOf(O)===-1&&de.push(O)}else ee(Q.bind(null,O))}var oe={map:G,forEach:function(O,Z,de){G(O,function(){Z.apply(this,arguments)},de)},count:function(O){var Z=0;return G(O,function(){Z++}),Z},toArray:function(O){return G(O,function(Z){return Z})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return nt.Activity=g,nt.Children=oe,nt.Component=C,nt.Fragment=r,nt.Profiler=o,nt.PureComponent=A,nt.StrictMode=s,nt.Suspense=f,nt.ViewTransition=k,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,nt.__COMPILER_RUNTIME={__proto__:null,c:function(O){return j.H.useMemoCache(O)}},nt.addTransitionType=Q,nt.cache=function(O){return function(){return O.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(O,Z,de){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ue=E({},O.props),ve=O.key;if(Z!=null)for(xe in Z.key!==void 0&&(ve=""+Z.key),Z)!I.call(Z,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Z.ref===void 0||(ue[xe]=Z[xe]);var xe=arguments.length-2;if(xe===1)ue.children=de;else if(1<xe){for(var $e=Array(xe),te=0;te<xe;te++)$e[te]=arguments[te+2];ue.children=$e}return z(O.type,ve,ue)},nt.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:l,_context:O},O},nt.createElement=function(O,Z,de){var ue,ve={},xe=null;if(Z!=null)for(ue in Z.key!==void 0&&(xe=""+Z.key),Z)I.call(Z,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=Z[ue]);var $e=arguments.length-2;if($e===1)ve.children=de;else if(1<$e){for(var te=Array($e),pe=0;pe<$e;pe++)te[pe]=arguments[pe+2];ve.children=te}if(O&&O.defaultProps)for(ue in $e=O.defaultProps,$e)ve[ue]===void 0&&(ve[ue]=$e[ue]);return z(O,xe,ve)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(O){return{$$typeof:d,render:O}},nt.isValidElement=F,nt.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:Y}},nt.memo=function(O,Z){return{$$typeof:p,type:O,compare:Z===void 0?null:Z}},nt.startTransition=ee,nt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},nt.use=function(O){return j.H.use(O)},nt.useActionState=function(O,Z,de){return j.H.useActionState(O,Z,de)},nt.useCallback=function(O,Z){return j.H.useCallback(O,Z)},nt.useContext=function(O){return j.H.useContext(O)},nt.useDebugValue=function(){},nt.useDeferredValue=function(O,Z){return j.H.useDeferredValue(O,Z)},nt.useEffect=function(O,Z){return j.H.useEffect(O,Z)},nt.useEffectEvent=function(O){return j.H.useEffectEvent(O)},nt.useId=function(){return j.H.useId()},nt.useImperativeHandle=function(O,Z,de){return j.H.useImperativeHandle(O,Z,de)},nt.useInsertionEffect=function(O,Z){return j.H.useInsertionEffect(O,Z)},nt.useLayoutEffect=function(O,Z){return j.H.useLayoutEffect(O,Z)},nt.useMemo=function(O,Z){return j.H.useMemo(O,Z)},nt.useOptimistic=function(O,Z){return j.H.useOptimistic(O,Z)},nt.useReducer=function(O,Z,de){return j.H.useReducer(O,Z,de)},nt.useRef=function(O){return j.H.useRef(O)},nt.useState=function(O){return j.H.useState(O)},nt.useSyncExternalStore=function(O,Z,de){return j.H.useSyncExternalStore(O,Z,de)},nt.useTransition=function(){return j.H.useTransition()},nt.version="19.3.1",nt}var hS;function Ap(){return hS||(hS=1,Qm.exports=kM()),Qm.exports}var x=Ap();const Mp=mM(x),vM=gM({__proto__:null,default:Mp},[x]);var Jm={exports:{}},xu={},ey={exports:{}},ty={};var pS;function wM(){return pS||(pS=1,(function(e){function t(_,P){var G=_.length;_.push(P);e:for(;0<G;){var Y=G-1>>>1,X=_[Y];if(0<o(X,P))_[Y]=P,_[G]=X,G=Y;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 Y=0,X=_.length,ee=X>>>1;Y<ee;){var Q=2*(Y+1)-1,oe=_[Q],O=Q+1,Z=_[O];if(0>o(oe,G))O<X&&0>o(Z,oe)?(_[Y]=Z,_[O]=G,Y=O):(_[Y]=oe,_[Q]=G,Y=Q);else if(O<X&&0>o(Z,G))_[Y]=Z,_[O]=G,Y=O;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,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],y=1,g=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(f,P);else break;P=r(p)}}function M(_){if(S=!1,A(_),!w)if(r(f)!==null)w=!0,L||(L=!0,F());else{var P=r(p);P!==null&&U(M,P.startTime-_)}}var L=!1,D=-1,j=5,I=-1;function z(){return E?!0:!(e.unstable_now()-I<j)}function H(){if(E=!1,L){var _=e.unstable_now();I=_;var P=!0;try{e:{w=!1,S&&(S=!1,C(D),D=-1),v=!0;var G=k;try{t:{for(A(_),g=r(f);g!==null&&!(g.expirationTime>_&&z());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,k=g.priorityLevel;var X=Y(g.expirationTime<=_);if(_=e.unstable_now(),typeof X=="function"){g.callback=X,A(_),P=!0;break t}g===r(f)&&s(f),A(_)}else s(f);g=r(f)}if(g!==null)P=!0;else{var ee=r(p);ee!==null&&U(M,ee.startTime-_),P=!1}}break e}finally{g=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 B=new MessageChannel,q=B.port2;B.port1.onmessage=H,F=function(){q.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 Y=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Y+G:Y):G=Y,_){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,_={id:y++,callback:P,priorityLevel:_,startTime:G,expirationTime:X,sortIndex:-1},G>Y?(_.sortIndex=G,t(p,_),r(f)===null&&_===r(p)&&(S?(C(D),D=-1):S=!0,U(M,G-Y))):(_.sortIndex=X,t(f,_),w||v||(w=!0,L||(L=!0,F()))),_},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(_){var P=k;return function(){var G=k;k=P;try{return _.apply(this,arguments)}finally{k=G}}}})(ty)),ty}var xS;function SM(){return xS||(xS=1,ey.exports=wM()),ey.exports}var ny={exports:{}},ar={};var gS;function EM(){if(gS)return ar;gS=1;var e=Ap();function t(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)g+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+y+"; visit "+g+" 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 d(y,g,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:y,containerInfo:g,implementation:k}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ar.browser=function(y){return{$$typeof:l,_reason:y}},ar.createPortal=function(y,g){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return d(y,g,null,k)},ar.flushSync=function(y){var g=f.T,k=s.p;try{if(f.T=null,s.p=2,y)return y()}finally{f.T=g,s.p=k,s.d.f()}},ar.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(y,g))},ar.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},ar.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var k=g.as,v=p(k,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;k==="style"?s.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:S}):k==="script"&&s.d.X(y,{crossOrigin:v,integrity:w,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ar.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var k=p(g.as,g.crossOrigin);s.d.M(y,{crossOrigin:k,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&s.d.M(y)},ar.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var k=g.as,v=p(k,g.crossOrigin);s.d.L(y,k,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ar.preloadModule=function(y,g){if(typeof y=="string")if(g){var k=p(g.as,g.crossOrigin);s.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:k,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else s.d.m(y)},ar.requestFormReset=function(y){s.d.r(y)},ar.unstable_batchedUpdates=function(y,g){return y(g)},ar.useFormState=function(y,g,k){return f.H.useFormState(y,g,k)},ar.useFormStatus=function(){return f.H.useHostTransitionStatus()},ar.version="19.3.1",ar}var mS;function l3(){if(mS)return ny.exports;mS=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(),ny.exports=EM(),ny.exports}var yS;function $M(){if(yS)return xu;yS=1;var e=SM(),t=Ap(),r=l3();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 d(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 f(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 f(h),n;if(b===c)return f(h),a;b=b.sibling}throw Error(s(188))}if(i.return!==c.return)i=h,c=b;else{for(var $=!1,N=h.child;N;){if(N===i){$=!0,i=h,c=b;break}if(N===c){$=!0,c=h,i=b;break}N=N.sibling}if(!$){for(N=b.child;N;){if(N===i){$=!0,i=b,c=h;break}if(N===c){$=!0,c=b,i=h;break}N=N.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 y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}function g(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)&&g(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 M(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"),I=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=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"),Y=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),Q=Symbol.for("react.legacy_hidden"),oe=Symbol.for("react.memo_cache_sentinel"),O=Symbol.for("react.view_transition"),Z=Symbol.for("react.recoverable"),de=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=de&&n[de]||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 B:return"Profiler";case F:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList";case ee:return"Activity";case O:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case z:return"Portal";case U:return n.displayName||"Context";case q: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 Y:return a=n.displayName||null,a!==null?a:xe(n.type)||"Memo";case X: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,pe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re={pending:!1,data:null,method:null,action:null},Te=[],Ce=-1;function Me(n){return{current:n}}function je(n){0>Ce||(n.current=Te[Ce],Te[Ce]=null,Ce--)}function He(n,a){Ce++,Te[Ce]=n.current,n.current=a}var at=Me(null),pt=Me(null),et=Me(null),Ve=Me(null);function yt(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)?bw(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=bw(a),n=kw(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&&(Sl._currentValue=a.memoizedState,He(Ve,n)),a=at.current;var i=kw(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),Sl._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],N=b[1];if($&&N){var V=$.split(`
5
- `),ae=N.split(`
6
- `);for(h=c=0;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;for(;h<ae.length&&!ae[h].includes("DetermineComponentFrameRoot");)h++;if(c===V.length||h===ae.length)for(c=V.length-1,h=ae.length-1;1<=c&&0<=h&&V[c]!==ae[h];)h--;for(;1<=c&&0<=h;c--,h--)if(V[c]!==ae[h]){if(c!==1||h!==1)do if(c--,h--,0>h||V[c]!==ae[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,Qt=e.unstable_shouldYield,kn=e.unstable_requestPaint,Ye=e.unstable_now,Le=e.unstable_getCurrentPriorityLevel,Jt=e.unstable_ImmediatePriority,un=e.unstable_UserBlockingPriority,rn=e.unstable_NormalPriority,cr=e.unstable_LowPriority,Za=e.unstable_IdlePriority,Cr=e.log,Br=e.unstable_setDisableYieldValue,Xn=null,Gt=null;function ur(n){if(typeof Cr=="function"&&Br(n),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Xn,n)}catch{}}var Mn=Math.clz32?Math.clz32:W,zn=Math.log,K=Math.LN2;function W(n){return n>>>=0,n===0?32:31-(zn(n)/K|0)|0}var se=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 N=c&134217727;return N!==0?(c=N&~b,c!==0?h=Ie(c):($&=N,$!==0?h=Ie($):i||(i=N&~n,i!==0&&(h=Ie(i))))):(N=c&~b,N!==0?h=Ie(N):$!==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 ze(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 wt(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 N=n.entanglements,V=n.expirationTimes,ae=n.hiddenUpdates;for(i=$&~i;0<i;){var ce=31-Mn(i),be=1<<ce;N[ce]=0,V[ce]=-1;var ne=ae[ce];if(ne!==null)for(ae[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 $t(n,a){var i=a&-a;return i=(i&42)!==0?1:bt(i),(i&(n.suspendedLanes|a))!==0?0:i}function bt(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 Nn(){var n=pe.p;return n!==0?n:(n=window.event,n===void 0?32:rS(n.type))}function Ra(n,a){var i=pe.p;try{return pe.p=n,a()}finally{pe.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,bs="__reactResources$"+vn,Qn="__reactMarker$"+vn,ot="__reactLoad$"+vn;function an(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=Iw(n);n!==null;){if(i=n[Bt])return i;n=Iw(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 Aa(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[bs];return a||(a=n[bs]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function tt(n){n[Qn]=!0}function sa(n){n[ot]=void 0}var _o=new Set,qo={};function Ma(n,a){ks(n,a),ks(n+"Capture",a)}function ks(n,a){for(qo[n]=a,n=0;n<a.length;n++)_o.add(a[n])}var Cx=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]*$"),Ec={},Td={};function Tx(n){return An.call(Td,n)?!0:An.call(Ec,n)?!1:Cx.test(n)?Td[n]=!0:(Ec[n]=!0,!1)}var St=!1;function qi(){var n=St;return St=!1,n}function Pi(n,a,i){if(Tx(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 Po(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 dr(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 $c=/[\n"\\]/g;function fr(n){return n.replace($c,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function jx(n,a,i,c,h,b,$,N){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?Rx(n,it(n.value)):Rx(n,it(a)):i!=null?Rx(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"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?n.name=""+it(N):n.removeAttribute("name")}function lk(n,a,i,c,h,b,$,N){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)){dr(n);return}i=i!=null?""+it(i):"",a=a!=null?""+it(a):i,N||a===n.value||(n.value=a),n.defaultValue=a}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=N?n.checked:!!c,n.defaultChecked=!!c,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(n.name=$),dr(n)}function Rx(n,a){n.defaultValue!==""+a&&(n.defaultValue=""+a)}function Bi(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 ck(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 uk(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),dr(n)}function Hi(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var _R=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 dk(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||_R.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function fk(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]="",St=!0);for(var h in a)c=a[h],a.hasOwnProperty(h)&&i[h]!==c&&(dk(n,h,c),St=!0)}else for(var b in a)a.hasOwnProperty(b)&&dk(n,b,a[b])}function Ax(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 qR=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"]]),PR=/^[\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 jd(n){return PR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Qa(){}var Mx=null;function zx(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Fi=null,Ui=null;function hk(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(jx(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="'+fr(""+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));jx(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":ck(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Bi(n,!!i.multiple,a,!1)}}}var Nx=!1;function pk(n,a,i){if(Nx)return n(a,i);Nx=!0;try{var c=n(a);return c}finally{if(Nx=!1,(Fi!==null||Ui!==null)&&(Rf(),Fi&&(a=Fi,n=Ui,Ui=Fi=null,hk(a),n)))for(a=0;a<n.length;a++)hk(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 vs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lx=!1;if(vs)try{var Tc={};Object.defineProperty(Tc,"passive",{get:function(){Lx=!0}}),window.addEventListener("test",Tc,Tc),window.removeEventListener("test",Tc,Tc)}catch{Lx=!1}var Ws=null,Dx=null,Rd=null;function xk(){if(Rd)return Rd;var n,a=Dx,i=a.length,c,h="value"in Ws?Ws.value:Ws.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 Rd=h.slice(n,1<c?1-c:void 0)}function Ad(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 Md(){return!0}function gk(){return!1}function hr(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 N in n)n.hasOwnProperty(N)&&(i=n[N],this[N]=i?i(b):b[N]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Md:gk,this.isPropagationStopped=gk,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=Md)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Md)},persist:function(){},isPersistent:Md}),a}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zd=hr(Ys),jc=D({},Ys,{view:0,detail:0}),BR=hr(jc),Ox,Ix,Rc,Nd=D({},jc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qx,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!==Rc&&(Rc&&n.type==="mousemove"?(Ox=n.screenX-Rc.screenX,Ix=n.screenY-Rc.screenY):Ix=Ox=0,Rc=n),Ox)},movementY:function(n){return"movementY"in n?n.movementY:Ix}}),mk=hr(Nd),HR=D({},Nd,{dataTransfer:0}),FR=hr(HR),UR=D({},jc,{relatedTarget:0}),_x=hr(UR),VR=D({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),GR=hr(VR),KR=D({},Ys,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),WR=hr(KR),YR=D({},Ys,{data:0}),yk=hr(YR),XR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZR={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"},QR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=QR[n])?!!a[n]:!1}function qx(){return JR}var eA=D({},jc,{key:function(n){if(n.key){var a=XR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Ad(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ZR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qx,charCode:function(n){return n.type==="keypress"?Ad(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ad(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),tA=hr(eA),nA=D({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bk=hr(nA),rA=D({},Ys,{submitter:0}),aA=hr(rA),sA=D({},jc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qx}),oA=hr(sA),iA=D({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),lA=hr(iA),cA=D({},Nd,{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}),uA=hr(cA),dA=D({},Ys,{newState:0,oldState:0,source:0}),fA=hr(dA),hA=[9,13,27,32],Px=vs&&"CompositionEvent"in window,Ac=null;vs&&"documentMode"in document&&(Ac=document.documentMode);var pA=vs&&"TextEvent"in window&&!Ac,kk=vs&&(!Px||Ac&&8<Ac&&11>=Ac),vk=" ",wk=!1;function Sk(n,a){switch(n){case"keyup":return hA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ek(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vi=!1;function xA(n,a){switch(n){case"compositionend":return Ek(a);case"keypress":return a.which!==32?null:(wk=!0,vk);case"textInput":return n=a.data,n===vk&&wk?null:n;default:return null}}function gA(n,a){if(Vi)return n==="compositionend"||!Px&&Sk(n,a)?(n=xk(),Rd=Dx=Ws=null,Vi=!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 kk&&a.locale!=="ko"?null:a.data;default:return null}}var mA={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 $k(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!mA[n.type]:a==="textarea"}function Ck(n,a,i,c){Fi?Ui?Ui.push(c):Ui=[c]:Fi=c,a=Df(a,"onChange"),0<a.length&&(i=new zd("onChange","change",null,i,c),n.push({event:i,listeners:a}))}var Mc=null,zc=null;function yA(n){hw(n,0)}function Ld(n){var a=Aa(n);if(la(a))return n}function Tk(n,a){if(n==="change")return a}var jk=!1;if(vs){var Bx;if(vs){var Hx="oninput"in document;if(!Hx){var Rk=document.createElement("div");Rk.setAttribute("oninput","return;"),Hx=typeof Rk.oninput=="function"}Bx=Hx}else Bx=!1;jk=Bx&&(!document.documentMode||9<document.documentMode)}function Ak(){Mc&&(Mc.detachEvent("onpropertychange",Mk),zc=Mc=null)}function Mk(n){if(n.propertyName==="value"&&Ld(zc)){var a=[];Ck(a,zc,n,zx(n)),pk(yA,a)}}function bA(n,a,i){n==="focusin"?(Ak(),Mc=a,zc=i,Mc.attachEvent("onpropertychange",Mk)):n==="focusout"&&Ak()}function kA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ld(zc)}function vA(n,a){if(n==="click")return Ld(a)}function wA(n,a){if(n==="input"||n==="change")return Ld(a)}function SA(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Vr=typeof Object.is=="function"?Object.is:SA;function Nc(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 Fx(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 zk(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Nk(n,a){var i=zk(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=zk(i)}}function Lk(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Lk(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Dk(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Fx(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=Fx(n.document)}return a}function Ux(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 EA=vs&&"documentMode"in document&&11>=document.documentMode,Gi=null,Vx=null,Lc=null,Gx=!1;function Ok(n,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Gx||Gi==null||Gi!==Fx(c)||(c=Gi,"selectionStart"in c&&Ux(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}),Lc&&Nc(Lc,c)||(Lc=c,c=Df(Vx,"onSelect"),0<c.length&&(a=new zd("onSelect","select",null,a,i),n.push({event:a,listeners:c}),a.target=Gi)))}function Bo(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var Ki={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionrun:Bo("Transition","TransitionRun"),transitionstart:Bo("Transition","TransitionStart"),transitioncancel:Bo("Transition","TransitionCancel"),transitionend:Bo("Transition","TransitionEnd")},Kx={},Ik={};vs&&(Ik=document.createElement("div").style,"AnimationEvent"in window||(delete Ki.animationend.animation,delete Ki.animationiteration.animation,delete Ki.animationstart.animation),"TransitionEvent"in window||delete Ki.transitionend.transition);function Ho(n){if(Kx[n])return Kx[n];if(!Ki[n])return n;var a=Ki[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in Ik)return Kx[n]=a[i];return n}var _k=Ho("animationend"),qk=Ho("animationiteration"),Pk=Ho("animationstart"),$A=Ho("transitionrun"),CA=Ho("transitionstart"),TA=Ho("transitioncancel"),Bk=Ho("transitionend"),Hk=new Map,Wx="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(" ");Wx.push("scrollEnd");function za(n,a){Hk.set(n,a),Ma(a,[n])}var jA=0;function ws(n,a){if(n.name!=null&&n.name!=="auto")return n.name;if(a.autoName!==null)return a.autoName;n=Oa.identifierPrefix;var i=jA++;return n="_"+n+"t_"+i.toString(32)+"_",a.autoName=n}function Fk(n){if(n==null||typeof n=="string")return n;var a=null,i=hl;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 Ss(n,a){return n=Fk(n),a=Fk(a),a==null?n==="auto"?null:n:a==="auto"?null:a}var Dd=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=[],Wi=0,Yx=0;function Od(){for(var n=Wi,a=Yx=Wi=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&&Uk(i,h,b)}}function Id(n,a,i,c){ca[Wi++]=n,ca[Wi++]=a,ca[Wi++]=i,ca[Wi++]=c,Yx|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Xx(n,a,i,c){return Id(n,a,i,c),_d(n)}function Fo(n,a){return Id(n,null,null,a),_d(n)}function Uk(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 _d(n){if(50<nu)throw nu=0,jf=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Yi={};function RA(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 Tr(n,a,i,c){return new RA(n,a,i,c)}function Zx(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Es(n,a){var i=n.alternate;return i===null?(i=Tr(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 Vk(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 qd(n,a,i,c,h,b){var $=0;if(c=n,typeof c=="function")Zx(c)&&($=1);else if(typeof c=="string")$=rM(n,i,at.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(c){case ee:return n=Tr(31,i,a,h),n.elementType=ee,n.lanes=b,n;case H:return Uo(i.children,h,b,a);case F:$=8,h|=24;break;case B:return n=Tr(12,i,a,h|2),n.elementType=B,n.lanes=b,n;case P:return n=Tr(13,i,a,h),n.elementType=P,n.lanes=b,n;case G:return n=Tr(19,i,a,h),n.elementType=G,n.lanes=b,n;case Q:case O:return n=h|32,n=Tr(30,i,a,n),n.elementType=O,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 q:$=9;break e;case _:$=11;break e;case Y:$=14;break e;case X:$=16,c=null;break e}$=29,i=Error(s(130,n===null?"null":typeof n,"")),c=null}return a=Tr($,i,a,h),a.elementType=n,a.type=c,a.lanes=b,a}function Uo(n,a,i,c){return n=Tr(7,n,c,a),n.lanes=i,n}function Qx(n,a,i){return n=Tr(6,n,null,a),n.lanes=i,n}function Gk(n){var a=Tr(18,null,null,0);return a.stateNode=n,a}function Jx(n,a,i){return a=Tr(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Kk=new WeakMap;function ua(n,a){if(typeof n=="object"&&n!==null){var i=Kk.get(n);return i!==void 0?i:(a={value:n,source:a,stack:gn(a)},Kk.set(n,a),a)}return{value:n,source:a,stack:gn(a)}}var Xi=[],Zi=0,Pd=null,Dc=0,da=[],fa=0,Xs=null,Ja=1,es="";function $s(n,a){Xi[Zi++]=Dc,Xi[Zi++]=Pd,Pd=n,Dc=a}function Wk(n,a,i){da[fa++]=Ja,da[fa++]=es,da[fa++]=Xs,Xs=n;var c=Ja;n=es;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-=$,Ja=1<<32-Mn(a)+h|i<<h|c,es=b+n}else Ja=1<<b|i<<h|c,es=n}function Bd(n){n.return!==null&&($s(n,1),Wk(n,1,0))}function eg(n){for(;n===Pd;)Pd=Xi[--Zi],Xi[Zi]=null,Dc=Xi[--Zi],Xi[Zi]=null;for(;n===Xs;)Xs=da[--fa],da[fa]=null,es=da[--fa],da[fa]=null,Ja=da[--fa],da[fa]=null}function Yk(n,a){da[fa++]=Ja,da[fa++]=es,da[fa++]=Xs,Ja=a.id,es=a.overflow,Xs=n}var Fn=null,Kt=null,xt=!1,Zs=null,ha=!1,tg=Error(s(519));function Qs(n){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oc(ua(a,n)),tg}function Xk(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<au.length;i++)mt(au[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),lk(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),uk(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||mw(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=Qa),a=!0):a=!1,a||Qs(n,!0)}function Hd(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 Qi(n){if(n!==Fn)return!1;if(!xt)return Hd(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")||Mm(n.type,n.memoizedProps)),i=!i),i&&Kt&&Qs(n),Hd(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Ow(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Ow(n)}else a===27?(a=Kt,xo(n.type)?(n=Pm,Pm=null,Kt=n):Kt=a):Kt=Fn?xa(n.stateNode.nextSibling):null;return!0}function Vo(){Kt=Fn=null,xt=!1}function ng(){var n=Zs;return n!==null&&(Ar===null?Ar=n:Ar.push.apply(Ar,n),Zs=null),n}function Oc(n){Zs===null?Zs=[n]:Zs.push(n)}var rg=Me(null),Go=null,Cs=null;function Js(n,a,i){He(rg,a._currentValue),a._currentValue=i}function Ts(n){n._currentValue=rg.current,je(rg)}function Fd(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 ag(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 N=b;b=h;for(var V=0;V<a.length;V++)if(N.context===a[V]){b.lanes|=i,N=b.alternate,N!==null&&(N.lanes|=i),Fd(b.return,i,n),c||($=null);break e}b=N.next}}else if(h.tag===18){if($=h.return,$===null)throw Error(s(341));$.lanes|=i,b=$.alternate,b!==null&&(b.lanes|=i),Fd($,i,n),$=null}else h.tag===13&&h.memoizedState!==null&&h.memoizedState.dehydrated===null?(h.lanes|=i,$=h.alternate,$!==null&&($.lanes|=i),Fd(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 Ko(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 N=h.type;Vr(h.pendingProps.value,$.value)||(n!==null?n.push(N):n=[N])}}else if(h===Ve.current){if($=h.alternate,$===null)throw Error(s(387));$.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}h=h.return}return n!==null&&ag(a,n,i,c),a.flags|=262144,n!==null}function Ud(n){for(n=n.firstContext;n!==null;){if(!Vr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Wo(n){Go=n,Cs=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Jn(n){return Zk(Go,n)}function Vd(n,a){return Go===null&&Wo(n),Zk(n,a)}function Zk(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 AA=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()})}},MA=e.unstable_scheduleCallback,zA=e.unstable_NormalPriority,Sn={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sg(){return{controller:new AA,data:new Map,refCount:0}}function Ic(n){n.refCount--,n.refCount===0&&MA(zA,function(){n.controller.abort()})}function Qk(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 _c=null;function NA(n){var a=n.transitionTypes;return n.transitionTypes=null,a}var qc=null,og=0,Yo=0,Ji=null;function LA(n,a){if(qc===null){var i=qc=[];og=0,Yo=wm(),Ji={status:"pending",value:void 0,then:function(c){i.push(c)}}}return og++,a.then(Jk,Jk),a}function Jk(){if(--og===0&&(_c=null,qc!==null)){Ji!==null&&(Ji.status="fulfilled");var n=qc;qc=null,Yo=0,Ji=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function DA(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 ev=te.S;te.S=function(n,a){if(G2=Ye(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&LA(n,a),_c!==null)for(var i=ml;i!==null;)Qk(i,_c),i=i.next;if(i=n.types,i!==null){for(var c=ml;c!==null;)Qk(c,i),c=c.next;if(Yo!==0){c=_c,c===null&&(c=_c=[]);for(var h=0;h<i.length;h++){var b=i[h];c.indexOf(b)===-1&&c.push(b)}}}ev!==null&&ev(n,a)};var Xo=Me(null);function ig(){var n=Xo.current;return n!==null?n:Ut.pooledCache}function Gd(n,a){a===null?He(Xo,Xo.current):He(Xo,a.pool)}function tv(){var n=ig();return n===null?null:{parent:Sn._currentValue,pool:n}}var el=Error(s(460)),lg=Error(s(474)),Kd=Error(s(542)),Wd={then:function(){}};function nv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function rv(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(Qa,Qa),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,sv(n),n===void 0&&!("reason"in a)?Error(s(600)):n;default:if(typeof a.status=="string")a.then(Qa,Qa);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,sv(n),n}throw Qo=a,el}}function Zo(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Qo=i,el):i}}var Qo=null;function av(){if(Qo===null)throw Error(s(459));var n=Qo;return Qo=null,n}function sv(n){if(n===el||n===Kd)throw Error(s(483))}var tl=null,Pc=0;function Yd(n){var a=Pc;return Pc+=1,tl===null&&(tl=[]),rv(tl,n,a)}function eo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Xd(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 ov(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=Es(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 N(re,J,ie,me){return J===null||J.tag!==6?(J=Qx(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),eo(re,ie),re):J!==null&&(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===X&&Zo(Oe)===J.type)?(J=h(J,ie.props),eo(J,ie),J.return=re,J):(J=qd(ie.type,ie.key,ie.props,null,re.mode,me),eo(J,ie),J.return=re,J)}function ae(re,J,ie,me){return J===null||J.tag!==4||J.stateNode.containerInfo!==ie.containerInfo||J.stateNode.implementation!==ie.implementation?(J=Jx(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=Uo(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=Qx(""+J,re.mode,ie),J.return=re,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case I:return ie=qd(J.type,J.key,J.props,null,re.mode,ie),eo(ie,J),ie.return=re,ie;case z:return J=Jx(J,re.mode,ie),J.return=re,J;case X:return J=Zo(J),be(re,J,ie)}if($e(J)||ue(J))return J=Uo(J,re.mode,ie,null),J.return=re,J;if(typeof J.then=="function")return be(re,Yd(J),ie);if(J.$$typeof===U)return be(re,Vd(re,J),ie);Xd(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:N(re,J,""+ie,me);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case I:return ie.key===Oe?V(re,J,ie,me):null;case z:return ie.key===Oe?ae(re,J,ie,me):null;case X:return ie=Zo(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,Yd(ie),me);if(ie.$$typeof===U)return ne(re,J,Vd(re,ie),me);Xd(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,N(J,re,""+me,Oe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case I:return re=re.get(me.key===null?ie:me.key)||null,V(J,re,me,Oe);case z:return re=re.get(me.key===null?ie:me.key)||null,ae(J,re,me,Oe);case X:return me=Zo(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,Yd(me),Oe);if(me.$$typeof===U)return le(re,J,ie,Vd(J,me),Oe);Xd(J,me)}return null}function Ae(re,J,ie,me){for(var Oe=null,vt=null,Ue=J,Xe=J=0,Cn=null;Ue!==null&&Xe<ie.length;Xe++){Ue.index>Xe?(Cn=Ue,Ue=null):Cn=Ue.sibling;var Ct=ne(re,Ue,ie[Xe],me);if(Ct===null){Ue===null&&(Ue=Cn);break}n&&Ue&&Ct.alternate===null&&a(re,Ue),J=b(Ct,J,Xe),vt===null?Oe=Ct:vt.sibling=Ct,vt=Ct,Ue=Cn}if(Xe===ie.length)return i(re,Ue),xt&&$s(re,Xe),Oe;if(Ue===null){for(;Xe<ie.length;Xe++)Ue=be(re,ie[Xe],me),Ue!==null&&(J=b(Ue,J,Xe),vt===null?Oe=Ue:vt.sibling=Ue,vt=Ue);return xt&&$s(re,Xe),Oe}for(Ue=c(Ue);Xe<ie.length;Xe++)Cn=le(Ue,re,Xe,ie[Xe],me),Cn!==null&&(n&&(Ct=Cn.alternate,Ct!==null&&Ue.delete(Ct.key===null?Xe:Ct.key)),J=b(Cn,J,Xe),vt===null?Oe=Cn:vt.sibling=Cn,vt=Cn);return n&&Ue.forEach(function(ko){return a(re,ko)}),xt&&$s(re,Xe),Oe}function _e(re,J,ie,me){if(ie==null)throw Error(s(151));for(var Oe=null,vt=null,Ue=J,Xe=J=0,Cn=null,Ct=ie.next();Ue!==null&&!Ct.done;Xe++,Ct=ie.next()){Ue.index>Xe?(Cn=Ue,Ue=null):Cn=Ue.sibling;var ko=ne(re,Ue,Ct.value,me);if(ko===null){Ue===null&&(Ue=Cn);break}n&&Ue&&ko.alternate===null&&a(re,Ue),J=b(ko,J,Xe),vt===null?Oe=ko:vt.sibling=ko,vt=ko,Ue=Cn}if(Ct.done)return i(re,Ue),xt&&$s(re,Xe),Oe;if(Ue===null){for(;!Ct.done;Xe++,Ct=ie.next())Ct=be(re,Ct.value,me),Ct!==null&&(J=b(Ct,J,Xe),vt===null?Oe=Ct:vt.sibling=Ct,vt=Ct);return xt&&$s(re,Xe),Oe}for(Ue=c(Ue);!Ct.done;Xe++,Ct=ie.next())Ct=le(Ue,re,Xe,Ct.value,me),Ct!==null&&(n&&(Cn=Ct.alternate,Cn!==null&&Ue.delete(Cn.key===null?Xe:Cn.key)),J=b(Ct,J,Xe),vt===null?Oe=Ct:vt.sibling=Ct,vt=Ct);return n&&Ue.forEach(function(xM){return a(re,xM)}),xt&&$s(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 I: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),eo(me,ie),me.return=re,re=me;break e}}else if(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===X&&Zo(Oe)===J.type){i(re,J.sibling),me=h(J,ie.props),eo(me,ie),me.return=re,re=me;break e}i(re,J);break}else a(re,J);J=J.sibling}ie.type===H?(me=Uo(ie.props.children,re.mode,me,ie.key),eo(me,ie),me.return=re,re=me):(me=qd(ie.type,ie.key,ie.props,null,re.mode,me),eo(me,ie),me.return=re,re=me)}return $(re);case z: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=Jx(ie,re.mode,me),me.return=re,re=me}return $(re);case X:return ie=Zo(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,Yd(ie),me);if(ie.$$typeof===U)return dt(re,J,Vd(re,ie),me);Xd(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=Qx(ie,re.mode,me),me.return=re,re=me),$(re)):i(re,J)}return function(re,J,ie,me){try{Pc=0;var Oe=dt(re,J,ie,me);return tl=null,Oe}catch(Ue){if(Ue===el||Ue===Kd)throw Ue;var vt=Tr(29,Ue,null,re.mode);return vt.lanes=me,vt.return=re,vt}}}var Jo=ov(!0),iv=ov(!1),to=!1;function cg(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ug(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 no(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ro(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=_d(n),Uk(n,null,i),a}return Id(n,c,a,i),_d(n)}function Bc(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 dg(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 fg=!1;function Hc(){if(fg){var n=Ji;if(n!==null)throw n}}function Fc(n,a,i,c){fg=!1;var h=n.updateQueue;to=!1;var b=h.firstBaseUpdate,$=h.lastBaseUpdate,N=h.shared.pending;if(N!==null){h.shared.pending=null;var V=N,ae=V.next;V.next=null,$===null?b=ae:$.next=ae,$=V;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,N=ce.lastBaseUpdate,N!==$&&(N===null?ce.firstBaseUpdate=ae:N.next=ae,ce.lastBaseUpdate=V))}if(b!==null){var be=h.baseState;$=0,ce=ae=V=null,N=b;do{var ne=N.lane&-536870913,le=ne!==N.lane;if(le?(kt&ne)===ne:(c&ne)===ne){ne!==0&&ne===Yo&&(fg=!0),ce!==null&&(ce=ce.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ae=n,_e=N;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:to=!0}}ne=N.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:N.tag,payload:N.payload,callback:N.callback,next:null},ce===null?(ae=ce=le,V=be):ce=ce.next=le,$|=ne;if(N=N.next,N===null){if(N=h.shared.pending,N===null)break;le=N,N=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);ce===null&&(V=be),h.baseState=V,h.firstBaseUpdate=ae,h.lastBaseUpdate=ce,b===null&&(h.shared.lanes=0),uo|=$,n.lanes=$,n.memoizedState=be}}function lv(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function cv(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)lv(i[n],a)}var ao=Me(null),Zd=Me(0);function uv(n,a){n=zs,He(Zd,n),He(ao,a),zs=n|a.baseLanes}function hg(){He(Zd,zs),He(ao,ao.current)}function pg(){zs=Zd.current,je(ao),je(Zd)}var er=Me(null),ir=null;function so(n){var a=n.alternate;He(tr,tr.current&1),He(er,n),ir===null&&(a===null||ao.current!==null||a.memoizedState!==null)&&(ir=n)}function xg(n){He(tr,tr.current),He(er,n),ir===null&&(ir=n)}function dv(n){n.tag===22?(He(tr,tr.current),He(er,n),ir===null&&(ir=n)):oo()}function oo(){He(tr,tr.current),He(er,er.current)}function Gr(n){je(er),ir===n&&(ir=null),je(tr)}var tr=Me(0);function Uc(n,a){He(er,er.current),He(tr,a)}function gg(n){je(tr),je(er),ir===n&&(ir=null)}function Qd(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||_m(i)||qm(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 js=0,ut=null,Ht=null,En=null,Jd=!1,nl=!1,ei=!1,ef=0,Vc=0,rl=null,OA=0;function fn(){throw Error(s(321))}function mg(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 yg(n,a,i,c,h,b){return js=b,ut=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,te.H=n===null||n.memoizedState===null?Wv:Yv,ei=!1,b=i(c,h),ei=!1,nl&&(b=hv(a,i,c,h)),fv(n),b}function fv(n){te.H=lf;var a=Ht!==null&&Ht.next!==null;if(js=0,En=Ht=ut=null,Jd=!1,Vc=0,rl=null,a)throw Error(s(300));n===null||$n||(n=n.dependencies,n!==null&&Ud(n)&&($n=!0))}function hv(n,a,i,c){ut=n;var h=0;do{if(nl&&(rl=null),Vc=0,nl=!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=UA,b=a(i,c)}while(nl);return b}function IA(){var n=te.H,a=n.useState()[0];return a=typeof a.then=="function"?Gc(a):a,n=n.useState()[0],(Ht!==null?Ht.memoizedState:null)!==n&&(ut.flags|=1024),a}function bg(){var n=ef!==0;return ef=0,n}function kg(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function vg(n){if(Jd){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Jd=!1}js=0,En=Ht=ut=null,nl=!1,Vc=ef=0,rl=null}function pr(){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 tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(n){var a=Vc;return Vc+=1,rl===null&&(rl=[]),n=rv(rl,n,a),a=ut,(En===null?a.memoizedState:En.next)===null&&(a=a.alternate,te.H=a===null||a.memoizedState===null?Wv:Yv),n}function nf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Gc(n);if(n.$$typeof===Z)return;if(n.$$typeof===U)return Jn(n)}throw Error(s(438,String(n)))}function wg(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=tf(),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]=oe;return a.index++,i}function Rs(n,a){return typeof a=="function"?a(n):a}function rf(n){var a=yn();return Sg(a,Ht,n)}function Sg(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 N=$=null,V=null,ae=a,ce=!1;do{var be=ae.lane&-536870913;if(be!==ae.lane?(kt&be)===be:(js&be)===be){var ne=ae.revertLane;if(ne===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),be===Yo&&(ce=!0);else if((js&ne)===ne){ae=ae.next,ne===Yo&&(ce=!0);continue}else be={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},V===null?(N=V=be,$=b):V=V.next=be,ut.lanes|=ne,uo|=ne;be=ae.action,ei&&i(b,be),b=ae.hasEagerState?ae.eagerState:i(b,be)}else ne={lane:be,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},V===null?(N=V=ne,$=b):V=V.next=ne,ut.lanes|=be,uo|=be;ae=ae.next}while(ae!==null&&ae!==a);if(V===null?$=b:V.next=N,!Vr(b,n.memoizedState)&&($n=!0,ce&&(i=Ji,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 Eg(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 pv(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,Tg(mv.bind(null,c,h,n),[n]),n=h.getSnapshot!==a||$||En!==null&&(En.memoizedState.tag&1)!==0,al(n?9:8,{destroy:void 0},gv.bind(null,c,h,i,a),null),n){if(c.flags|=2048,Ut===null)throw Error(s(349));b||(js&127)!==0||xv(c,a,i)}return i}function xv(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=ut.updateQueue,a===null?(a=tf(),ut.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function gv(n,a,i,c){a.value=i,a.getSnapshot=c,yv(a)&&bv(n)}function mv(n,a,i){return i(function(){yv(a)&&bv(n)})}function yv(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!Vr(n,i)}catch{return!0}}function bv(n){var a=Fo(n,2);a!==null&&Mr(a,n,2)}function $g(n){var a=pr();if(typeof n=="function"){var i=n;if(n=i(),ei){ur(!0);try{i()}finally{ur(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:n},a}function kv(n,a,i,c){return n.baseState=i,Sg(n,Ht,typeof c=="function"?c:Rs)}function _A(n,a,i,c,h){if(of(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,vv(a,b)):(b.next=i.next,a.pending=i.next=b)}}function vv(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 N=i(h,c),V=te.S;V!==null&&V($,N),wv(n,a,N)}catch(ae){Cg(n,a,ae)}finally{b!==null&&$.types!==null&&(b.types=$.types),te.T=b}}else try{b=i(h,c),wv(n,a,b)}catch(ae){Cg(n,a,ae)}}function wv(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){Sv(n,a,c)},function(c){return Cg(n,a,c)}):Sv(n,a,i)}function Sv(n,a,i){a.status="fulfilled",a.value=i,Ev(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,vv(n,i)))}function Cg(n,a,i){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,Ev(a),a=a.next;while(a!==c)}n.action=null}function Ev(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function $v(n,a){return a}function Cv(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}}Qs(c)}c=!1}c&&(a=i[0])}}return i=pr(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$v,lastRenderedState:a},i.queue=c,i=Vv.bind(null,ut,c),c.dispatch=i,c=$g(!1),b=zg.bind(null,ut,!1,c.queue),c=pr(),h={state:a,dispatch:null,action:n,pending:null},c.queue=h,i=_A.bind(null,ut,h,b,i),h.dispatch=i,c.memoizedState=n,[a,i,!1]}function Tv(n){var a=yn();return jv(a,Ht,n)}function jv(n,a,i){if(a=Sg(n,a,$v)[0],n=rf(Rs)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Gc(a)}catch($){throw $===el?Kd:$}else c=a;a=yn();var h=a.queue,b=h.dispatch;return i!==a.memoizedState&&(ut.flags|=2048,al(9,{destroy:void 0},qA.bind(null,h,i),null)),[c,b,n]}function qA(n,a){n.action=a}function Rv(n){var a=yn(),i=Ht;if(i!==null)return jv(a,i,n);yn(),a=a.memoizedState,i=yn();var c=i.queue.dispatch;return i.memoizedState=n,[a,c,!1]}function al(n,a,i,c){return n={tag:n,create:i,deps:c,inst:a,next:null},a=ut.updateQueue,a===null&&(a=tf(),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 Av(){return yn().memoizedState}function af(n,a,i,c){var h=pr();ut.flags|=n,h.memoizedState=al(1|a,{destroy:void 0},i,c===void 0?null:c)}function sf(n,a,i,c){var h=yn();c=c===void 0?null:c;var b=h.memoizedState.inst;Ht!==null&&c!==null&&mg(c,Ht.memoizedState.deps)?h.memoizedState=al(a,b,i,c):(ut.flags|=n,h.memoizedState=al(1|a,b,i,c))}function Mv(n,a){af(8390656,8,n,a)}function Tg(n,a){sf(2048,8,n,a)}function PA(n){ut.flags|=4;var a=ut.updateQueue;if(a===null)a=tf(),ut.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function zv(n){var a=yn().memoizedState;return PA({ref:a,nextImpl:n}),function(){if((Mt&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function Nv(n,a){return sf(4,2,n,a)}function Lv(n,a){return sf(4,4,n,a)}function Dv(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 Ov(n,a,i){i=i!=null?i.concat([n]):null,sf(4,4,Dv.bind(null,a,n),i)}function jg(){}function Iv(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&mg(a,c[1])?c[0]:(i.memoizedState=[n,a],n)}function _v(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&mg(a,c[1]))return c[0];if(c=n(),ei){ur(!0);try{n()}finally{ur(!1)}}return i.memoizedState=[c,a],c}function Rg(n,a,i){return i===void 0||(js&1073741824)!==0&&(kt&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=W2(),ut.lanes|=n,uo|=n,i)}function qv(n,a,i,c){return Vr(i,a)?i:ao.current!==null?(n=Rg(n,i,c),Vr(n,a)||($n=!0),n):(js&106)===0||(js&1073741824)!==0&&(kt&261930)===0?($n=!0,n.memoizedState=i):(n=W2(),ut.lanes|=n,uo|=n,a)}function Pv(n,a,i,c,h){var b=pe.p;pe.p=b!==0&&8>b?b:8;var $=te.T,N={};N.types=$!==null?$.types:null,te.T=N,zg(n,!1,a,i);try{var V=h(),ae=te.S;if(ae!==null&&ae(N,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ce=DA(V,c);Kc(n,a,ce,Xr(n))}else Kc(n,a,c,Xr(n))}catch(be){Kc(n,a,{then:function(){},status:"rejected",reason:be},Xr())}finally{pe.p=b,$!==null&&N.types!==null&&($.types=N.types),te.T=$}}function BA(){}function Ag(n,a,i,c){if(n.tag!==5)throw Error(s(476));var h=Bv(n).queue;Pv(n,h,a,Re,i===null?BA:function(){return Hv(n),i(c)})}function Bv(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:Rs,lastRenderedState:Re},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Hv(n){var a=Bv(n);a.next===null&&(a=n.alternate.memoizedState),Kc(n,a.next.queue,{},Xr())}function Mg(){return Jn(Sl)}function Fv(){return yn().memoizedState}function Uv(){return yn().memoizedState}function HA(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Xr();n=no(i);var c=ro(a,n,i);c!==null&&(Mr(c,a,i),Bc(c,a,i)),a={cache:sg()},n.payload=a;return}a=a.return}}function FA(n,a,i){var c=Xr();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},of(n)?Gv(a,i):(i=Xx(n,a,i,c),i!==null&&(Mr(i,n,c),Kv(i,a,c)))}function Vv(n,a,i){var c=Xr();Kc(n,a,i,c)}function Kc(n,a,i,c){var h={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(of(n))Gv(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,N=b($,i);if(h.hasEagerState=!0,h.eagerState=N,Vr(N,$))return Id(n,a,h,0),Ut===null&&Od(),!1}catch{}if(i=Xx(n,a,h,c),i!==null)return Mr(i,n,c),Kv(i,a,c),!0}return!1}function zg(n,a,i,c){if(c={lane:2,revertLane:wm(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},of(n)){if(a)throw Error(s(479))}else a=Xx(n,i,c,2),a!==null&&Mr(a,n,2)}function of(n){var a=n.alternate;return n===ut||a!==null&&a===ut}function Gv(n,a){nl=Jd=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function Kv(n,a,i){if((i&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,i|=c,a.lanes=i,Ft(n,i)}}var lf={readContext:Jn,use:nf,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},Wv={readContext:Jn,use:nf,useCallback:function(n,a){return pr().memoizedState=[n,a===void 0?null:a],n},useContext:Jn,useEffect:Mv,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,af(4194308,4,Dv.bind(null,a,n),i)},useLayoutEffect:function(n,a){return af(4194308,4,n,a)},useInsertionEffect:function(n,a){af(4,2,n,a)},useMemo:function(n,a){var i=pr();a=a===void 0?null:a;var c=n();if(ei){ur(!0);try{n()}finally{ur(!1)}}return i.memoizedState=[c,a],c},useReducer:function(n,a,i){var c=pr();if(i!==void 0){var h=i(a);if(ei){ur(!0);try{i(a)}finally{ur(!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=FA.bind(null,ut,n),[c.memoizedState,n]},useRef:function(n){var a=pr();return n={current:n},a.memoizedState=n},useState:function(n){n=$g(n);var a=n.queue,i=Vv.bind(null,ut,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:jg,useDeferredValue:function(n,a){var i=pr();return Rg(i,n,a)},useTransition:function(){var n=$g(!1);return n=Pv.bind(null,ut,n.queue,!0,!1),pr().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var c=ut,h=pr();if(xt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),Ut===null)throw Error(s(349));(kt&127)!==0||xv(c,a,i)}h.memoizedState=i;var b={value:i,getSnapshot:a};return h.queue=b,Mv(mv.bind(null,c,b,n),[n]),c.flags|=2048,al(9,{destroy:void 0},gv.bind(null,c,b,i,a),null),i},useId:function(){var n=pr(),a=Ut.identifierPrefix;if(xt){var i=es,c=Ja;i=(c&~(1<<32-Mn(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=ef++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=OA++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Mg,useFormState:Cv,useActionState:Cv,useOptimistic:function(n){var a=pr();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=zg.bind(null,ut,!0,i),i.dispatch=a,[n,a]},useMemoCache:wg,useCacheRefresh:function(){return pr().memoizedState=HA.bind(null,ut)},useEffectEvent:function(n){var a=pr(),i={impl:n};return a.memoizedState=i,function(){if((Mt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Yv={readContext:Jn,use:nf,useCallback:Iv,useContext:Jn,useEffect:Tg,useImperativeHandle:Ov,useInsertionEffect:Nv,useLayoutEffect:Lv,useMemo:_v,useReducer:rf,useRef:Av,useState:function(){return rf(Rs)},useDebugValue:jg,useDeferredValue:function(n,a){var i=yn();return qv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=rf(Rs)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Gc(n),a]},useSyncExternalStore:pv,useId:Fv,useHostTransitionStatus:Mg,useFormState:Tv,useActionState:Tv,useOptimistic:function(n,a){var i=yn();return kv(i,Ht,n,a)},useMemoCache:wg,useCacheRefresh:Uv,useEffectEvent:zv},UA={readContext:Jn,use:nf,useCallback:Iv,useContext:Jn,useEffect:Tg,useImperativeHandle:Ov,useInsertionEffect:Nv,useLayoutEffect:Lv,useMemo:_v,useReducer:Eg,useRef:Av,useState:function(){return Eg(Rs)},useDebugValue:jg,useDeferredValue:function(n,a){var i=yn();return Ht===null?Rg(i,n,a):qv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=Eg(Rs)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Gc(n),a]},useSyncExternalStore:pv,useId:Fv,useHostTransitionStatus:Mg,useFormState:Rv,useActionState:Rv,useOptimistic:function(n,a){var i=yn();return Ht!==null?kv(i,Ht,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:wg,useCacheRefresh:Uv,useEffectEvent:zv};function Ng(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 Lg={enqueueSetState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=no(c);h.payload=a,i!=null&&(h.callback=i),a=ro(n,h,c),a!==null&&(Mr(a,n,c),Bc(a,n,c))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=no(c);h.tag=1,h.payload=a,i!=null&&(h.callback=i),a=ro(n,h,c),a!==null&&(Mr(a,n,c),Bc(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Xr(),c=no(i);c.tag=2,a!=null&&(c.callback=a),a=ro(n,c,i),a!==null&&(Mr(a,n,i),Bc(a,n,i))}};function Xv(n,a,i,c,h,b,$){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,b,$):a.prototype&&a.prototype.isPureReactComponent?!Nc(i,c)||!Nc(h,b):!0}function Zv(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&&Lg.enqueueReplaceState(a,a.state,null)}function ti(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 Qv(n){Dd(n)}function Jv(n){console.error(n)}function e2(n){Dd(n)}function cf(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function t2(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 Dg(n,a,i){return i=no(i),i.tag=3,i.payload={element:null},i.callback=function(){cf(n,a)},i}function n2(n){return n=no(n),n.tag=3,n}function r2(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(){t2(a,i,c)}}var $=i.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(n.callback=function(){t2(a,i,c),typeof h!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})})}function VA(n,a,i,c,h){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&Ko(a,i,h,!0),i=er.current,i!==null){switch(i.tag){case 31:case 13:case 19:return ir===null?Af():i.alternate===null&&hn===0&&(hn=3),i.flags&=-257,i.flags|=65536,i.lanes=h,c===Wd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),bm(n,c,h)),!1;case 22:return i.flags|=65536,c===Wd?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)),bm(n,c,h)),!1}throw Error(s(435,i.tag))}return bm(n,c,h),Af(),!1}if(xt)return a=er.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==tg&&(n=Error(s(422),{cause:c}),Oc(ua(n,i)))):(c!==tg&&(a=Error(s(423),{cause:c}),Oc(ua(a,i))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=ua(c,i),h=Dg(n.stateNode,c,h),dg(n,h),hn!==4&&(hn=2)),!1;var b=Error(s(520),{cause:c});if(b=ua(b,i),tu===null?tu=[b]:tu.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=Dg(i.stateNode,c,n),dg(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"&&(fo===null||!fo.has(b))))return i.flags|=65536,h&=-h,i.lanes|=h,h=n2(h),r2(h,n,i,c),dg(i,h),!1;break;case 22:if(i.memoizedState!==null)return i.flags|=65536,!1}i=i.return}while(i!==null);return!1}var Og=Error(s(461)),$n=!1;function Dn(n,a,i,c){a.child=n===null?iv(a,null,i,c):Jo(a,n.child,i,c)}function a2(n,a,i,c,h){i=i.render;var b=a.ref;if("ref"in c){var $={};for(var N in c)N!=="ref"&&($[N]=c[N])}else $=c;return Wo(a),c=yg(n,a,i,$,b,h),N=bg(),n!==null&&!$n?(kg(n,a,h),As(n,a,h)):(xt&&N&&Bd(a),a.flags|=1,Dn(n,a,c,h),a.child)}function s2(n,a,i,c,h){if(n===null){var b=i.type;return typeof b=="function"&&!Zx(b)&&b.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=b,o2(n,a,b,c,h)):(n=qd(i.type,null,c,a,a.mode,h),n.ref=a.ref,n.return=a,a.child=n)}if(b=n.child,!Ug(n,h)){var $=b.memoizedProps;if(i=i.compare,i=i!==null?i:Nc,i($,c)&&n.ref===a.ref)return As(n,a,h)}return a.flags|=1,n=Es(b,c),n.ref=a.ref,n.return=a,a.child=n}function o2(n,a,i,c,h){if(n!==null){var b=n.memoizedProps;if(Nc(b,c)&&n.ref===a.ref)if($n=!1,a.pendingProps=c=b,Ug(n,h))(n.flags&131072)!==0&&($n=!0);else return a.lanes=n.lanes,As(n,a,h)}return Ig(n,a,i,c,h)}function i2(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 l2(n,a,b,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Gd(a,b!==null?b.cachePool:null),b!==null?uv(a,b):hg(),dv(a);else return c=a.lanes=536870912,l2(n,a,b!==null?b.baseLanes|i:i,i,c)}else b!==null?(Gd(a,b.cachePool),uv(a,b),oo(),a.memoizedState=null):(n!==null&&Gd(a,null),hg(),oo());return Dn(n,a,h,i),a.child}function Wc(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function l2(n,a,i,c,h){var b=ig();return b=b===null?null:{parent:Sn._currentValue,pool:b},a.memoizedState={baseLanes:i,cachePool:b},n!==null&&Gd(a,null),hg(),dv(a),n!==null&&Ko(n,a,c,!0),a.childLanes=h,null}function uf(n,a){return a=df({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function c2(n,a,i){return Jo(a,n.child,null,i),n=uf(a,a.pendingProps),n.flags|=2,Gr(a),a.memoizedState=null,n}function GA(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=uf(a,c),a.lanes=536870912,n.memoizedState={baseLanes:0,cachePool:null},Wc(null,n);if(xg(a),(n=Kt)?(n=Dw(n,ha),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Xs!==null?{id:Ja,overflow:es}:null,retryLane:536870912,hydrationErrors:null},i=Gk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Qs(a);return a.lanes=536870912,null}return uf(a,c)}var b=n.memoizedState;if(b!==null){var $=b.dehydrated;if(xg(a),h)if(a.flags&256)a.flags&=-257,a=c2(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||Ko(n,a,i,!1),h=(i&n.childLanes)!==0,$n||h){if(ao.current===null){if(c=Ut,c!==null&&($=$t(c,i),$!==0&&$!==b.retryLane))throw b.retryLane=$,Fo(n,$),Mr(c,n,$),Og;Af()}a=c2(n,a,i)}else n=b.treeContext,Kt=xa($.nextSibling),Fn=a,xt=!0,Zs=null,ha=!1,n!==null&&Yk(a,n),a=uf(a,c),a.flags|=134221824;return a}return n=Es(n.child,{mode:c.mode,children:c.children}),n.ref=a.ref,a.child=n,n.return=a,n}function sl(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 Ig(n,a,i,c,h){return Wo(a),i=yg(n,a,i,c,void 0,h),c=bg(),n!==null&&!$n?(kg(n,a,h),As(n,a,h)):(xt&&c&&Bd(a),a.flags|=1,Dn(n,a,i,h),a.child)}function u2(n,a,i,c,h,b){return Wo(a),a.updateQueue=null,i=hv(a,c,i,h),fv(n),c=bg(),n!==null&&!$n?(kg(n,a,b),As(n,a,b)):(xt&&c&&Bd(a),a.flags|=1,Dn(n,a,i,b),a.child)}function d2(n,a,i,c,h){if(Wo(a),a.stateNode===null){var b=Yi,$=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=Lg,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=c,b.state=a.memoizedState,b.refs={},cg(a),$=i.contextType,b.context=typeof $=="object"&&$!==null?Jn($):Yi,b.state=a.memoizedState,$=i.getDerivedStateFromProps,typeof $=="function"&&(Ng(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&&Lg.enqueueReplaceState(b,b.state,null),Fc(a,c,b,h),Hc(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){b=a.stateNode;var N=a.memoizedProps,V=ti(i,N);b.props=V;var ae=b.context,ce=i.contextType;$=Yi,typeof ce=="object"&&ce!==null&&($=Jn(ce));var be=i.getDerivedStateFromProps;ce=typeof be=="function"||typeof b.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,ce||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N||ae!==$)&&Zv(a,b,c,$),to=!1;var ne=a.memoizedState;b.state=ne,Fc(a,c,b,h),Hc(),ae=a.memoizedState,N||ne!==ae||to?(typeof be=="function"&&(Ng(a,i,be,c),ae=a.memoizedState),(V=to||Xv(a,i,V,c,ne,ae,$))?(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=ae),b.props=c,b.state=ae,b.context=$,c=V):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{b=a.stateNode,ug(n,a),$=a.memoizedProps,ce=ti(i,$),b.props=ce,be=a.pendingProps,ne=b.context,ae=i.contextType,V=Yi,typeof ae=="object"&&ae!==null&&(V=Jn(ae)),N=i.getDerivedStateFromProps,(ae=typeof N=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||($!==be||ne!==V)&&Zv(a,b,c,V),to=!1,ne=a.memoizedState,b.state=ne,Fc(a,c,b,h),Hc();var le=a.memoizedState;$!==be||ne!==le||to||n!==null&&n.dependencies!==null&&Ud(n.dependencies)?(typeof N=="function"&&(Ng(a,i,N,c),le=a.memoizedState),(ce=to||Xv(a,i,ce,c,ne,le,V)||n!==null&&n.dependencies!==null&&Ud(n.dependencies))?(ae||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,sl(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=Jo(a,n.child,null,h),a.child=Jo(a,null,i,h)):Dn(n,a,i,h),a.memoizedState=b.state,n=a.child):n=As(n,a,h),n}function f2(n,a,i,c){return Vo(),a.flags|=256,Dn(n,a,i,c),a.child}var _g={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qg(n){return{baseLanes:n,cachePool:tv()}}function Pg(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=Yr),n}function h2(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?so(a):oo(),(n=Kt)?(n=Dw(n,ha),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Xs!==null?{id:Ja,overflow:es}:null,retryLane:536870912,hydrationErrors:null},i=Gk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Qs(a);return qm(n)?a.lanes=32:a.lanes=536870912,null}return b=c.children,c=c.fallback,h?(oo(),h=a.mode,b=df({mode:"hidden",children:b},h),c=Uo(c,h,i,null),b.return=a,c.return=a,b.sibling=c,a.child=b,c=a.child,c.memoizedState=qg(i),c.childLanes=Pg(n,$,i),a.memoizedState=_g,Wc(null,c)):(so(a),Bg(a,b))}var N=n.memoizedState;if(N!==null){var V=N.dehydrated;if(V!==null)return KA(n,a,b,$,c,V,N,i)}return h?(oo(),h=c.fallback,b=a.mode,N=n.child,V=N.sibling,c=Es(N,{mode:"hidden",children:c.children}),c.subtreeFlags=N.subtreeFlags&1206910976,V!==null?h=Es(V,h):(h=Uo(h,b,i,null),h.flags|=2),h.return=a,c.return=a,c.sibling=h,a.child=c,Wc(null,c),c=a.child,h=n.child.memoizedState,h===null?h=qg(i):(b=h.cachePool,b!==null?(N=Sn._currentValue,b=b.parent!==N?{parent:N,pool:N}:b):b=tv(),h={baseLanes:h.baseLanes|i,cachePool:b}),c.memoizedState=h,c.childLanes=Pg(n,$,i),a.memoizedState=_g,Wc(n.child,c)):(so(a),i=n.child,n=i.sibling,i=Es(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 Bg(n,a){return a=df({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function df(n,a){return n=Tr(22,n,null,a),n.lanes=0,n}function ff(n,a,i){return Jo(a,n.child,null,i),n=Bg(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function KA(n,a,i,c,h,b,$,N){if(i)return a.flags&256?(so(a),a.flags&=-257,ff(n,a,N)):a.memoizedState!==null?(oo(),a.child=n.child,a.flags|=128,null):(oo(),b=h.fallback,$=a.mode,h=df({mode:"visible",children:h.children},$),b=Uo(b,$,N,null),b.flags|=2,h.return=a,b.return=a,h.sibling=b,a.child=h,Jo(a,n.child,null,N),h=a.child,h.memoizedState=qg(N),h.childLanes=Pg(n,c,N),a.memoizedState=_g,Wc(null,h));if(so(a),qm(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,Oc({value:h,source:null,stack:null})),ff(n,a,N)}if($n||Ko(n,a,N,!1),c=(N&n.childLanes)!==0,$n||c){if(ao.current!==null)return ff(n,a,N);if(c=Ut,c!==null&&(h=$t(c,N),h!==0&&h!==$.retryLane))throw $.retryLane=h,Fo(n,h),Mr(c,n,h),Og;return _m(b)||Af(),ff(n,a,N)}return _m(b)?(a.flags|=192,a.child=n.child,null):(n=$.treeContext,Kt=xa(b.nextSibling),Fn=a,xt=!0,Zs=null,ha=!1,n!==null&&Yk(a,n),a=Bg(a,h.children),a.flags|=134221824,a)}function p2(n,a,i){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),Fd(n.return,a,i)}function x2(n){for(var a=null;n!==null;){var i=n.alternate;i!==null&&Qd(i)===null&&(a=n),n=n.sibling}return a}function hf(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 Hg(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 Fg(n,a,i){var c=a.pendingProps,h=c.revealOrder,b=c.tail;c=c.children;var $=tr.current;if(a.flags&128)return Uc(a,$),null;var N=($&2)!==0;if(N?($=$&1|2,a.flags|=128):$&=1,Uc(a,$),h==="backwards"&&n!==null?(Hg(n),Dn(n,a,c,i),Hg(n)):Dn(n,a,c,i),c=xt?Dc:0,!N&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&p2(n,i,a);else if(n.tag===19)p2(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=x2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null,Hg(a)),hf(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&&Qd(n)===null){a.child=h;break}n=h.sibling,h.sibling=i,i=h,h=n}hf(a,!0,i,null,b,c);break;case"together":hf(a,!1,null,null,void 0,c);break;case"independent":a.memoizedState=null;break;default:i=x2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null),hf(a,!1,h,i,b,c)}return a.child}function g2(n,a,i){var c=a.pendingProps;return Js(a,a.type,c.value),Dn(n,a,c.children,i),a.child}function As(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),uo|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Ko(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=Es(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=Es(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function Ug(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Ud(n)))}function WA(n,a,i){switch(a.tag){case 3:yt(a,a.stateNode.containerInfo),Js(a,Sn,n.memoizedState.cache),Vo();break;case 27:case 5:rt(a);break;case 4:yt(a,a.stateNode.containerInfo);break;case 10:Js(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,xg(a),null;break;case 13:var c=a.memoizedState;if(c!==null){if(c.dehydrated!==null)return so(a),a.flags|=128,null;c=Ko(n,a,i,!1);var h=a.child.childLanes;return c||(i&h)!==0?h2(n,a,i):(so(a),n=As(n,a,i),n!==null?n.sibling:null)}so(a);break;case 19:if(a.flags&128)return Fg(n,a,i);if(h=(n.flags&128)!==0,c=(i&a.childLanes)!==0,c||(Ko(n,a,i,!1),c=(i&a.childLanes)!==0),h){if(c)return Fg(n,a,i);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Uc(a,tr.current),c)break;return null;case 22:return a.lanes=0,i2(n,a,i,a.pendingProps);case 24:Js(a,Sn,n.memoizedState.cache)}return As(n,a,i)}function m2(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)$n=!0;else{if(!Ug(n,i)&&(a.flags&128)===0)return $n=!1,WA(n,a,i);$n=(n.flags&131072)!==0}else $n=!1,xt&&(a.flags&1048576)!==0&&Wk(a,Dc,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(n=Zo(a.elementType),a.type=n,typeof n=="function")Zx(n)?(c=ti(n,c),a.tag=1,a=d2(null,a,n,c,i)):(a.tag=0,a=Ig(null,a,n,c,i));else{if(n!=null){var h=n.$$typeof;if(h===_){a.tag=11,a=a2(null,a,n,c,i);break e}else if(h===Y){a.tag=14,a=s2(null,a,n,c,i);break e}else if(h===U){a.tag=10,a.type=n,a=g2(null,a,i);break e}}throw a=xe(n)||n,Error(s(306,a,""))}}return a;case 0:return Ig(n,a,a.type,a.pendingProps,i);case 1:return c=a.type,h=ti(c,a.pendingProps),d2(n,a,c,h,i);case 3:e:{if(yt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));c=a.pendingProps;var b=a.memoizedState;h=b.element,ug(n,a),Fc(a,c,null,i);var $=a.memoizedState;if(c=$.cache,Js(a,Sn,c),c!==b.cache&&ag(a,[Sn],i,!0),Hc(),c=$.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:$.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=f2(n,a,c,i);break e}else if(c!==h){h=ua(Error(s(424)),a),Oc(h),a=f2(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,Zs=null,ha=!0,i=iv(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|134221824,i=i.sibling;else{if(Vo(),c===h){a=As(n,a,i);break e}Dn(n,a,c,i)}a=a.child}return a;case 26:return sl(n,a),n===null?(i=Hw(a.type,null,a.pendingProps,null))?a.memoizedState=i:xt||(a.stateNode=vw(a.type,a.pendingProps,et.current,a)):a.memoizedState=Hw(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return rt(a),n===null&&xt&&(c=a.stateNode=_w(a.type,a.pendingProps,et.current),Fn=a,ha=!0,h=Kt,xo(a.type)?(Pm=h,Kt=xa(c.firstChild)):Kt=h),Dn(n,a,a.pendingProps.children,i),sl(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&xt&&((h=c=Kt)&&(c=H7(c,a.type,a.pendingProps,ha),c!==null?(a.stateNode=c,Fn=a,Kt=xa(c.firstChild),ha=!1,h=!0):h=!1),h||Qs(a)),rt(a),h=a.type,b=a.pendingProps,$=n!==null?n.memoizedProps:null,c=b.children,Mm(h,b)?c=null:$!==null&&Mm(h,$)&&(a.flags|=32),a.memoizedState!==null&&(h=yg(n,a,IA,null,null,i),Sl._currentValue=h),sl(n,a),Dn(n,a,c,i),a.child;case 6:return n===null&&xt&&((n=i=Kt)&&(i=F7(i,a.pendingProps,ha),i!==null?(a.stateNode=i,Fn=a,Kt=null,n=!0):n=!1),n||Qs(a)),null;case 13:return h2(n,a,i);case 4:return yt(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=Jo(a,null,c,i):Dn(n,a,c,i),a.child;case 11:return a2(n,a,a.type,a.pendingProps,i);case 7:return c=a.pendingProps,sl(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 g2(n,a,i);case 9:return h=a.type._context,c=a.pendingProps.children,Wo(a),h=Jn(h),c=c(h),a.flags|=1,Dn(n,a,c,i),a.child;case 14:return s2(n,a,a.type,a.pendingProps,i);case 15:return o2(n,a,a.type,a.pendingProps,i);case 19:return Fg(n,a,i);case 31:return GA(n,a,i);case 22:return i2(n,a,i,a.pendingProps);case 24:return Wo(a),c=Jn(Sn),n===null?(h=ig(),h===null&&(h=Ut,b=sg(),h.pooledCache=b,b.refCount++,b!==null&&(h.pooledCacheLanes|=i),h=b),a.memoizedState={parent:c,cache:h},cg(a),Js(a,Sn,h)):((n.lanes&i)!==0&&(ug(n,a),Fc(a,null,null,i),Hc()),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),Js(a,Sn,c)):(c=b.cache,Js(a,Sn,c),c!==h.cache&&ag(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&&Bd(a),n!==null&&n.memoizedProps.name!==c.name?a.flags|=4194816:sl(n,a),Dn(n,a,c.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function Ms(n){n.flags|=4}function Vg(n,a,i,c,h){var b;if((b=(n.mode&32)!==0)&&(b=i===null?Gw(a,c):Gw(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(Q2())n.flags|=8192;else throw Qo=Wd,lg}else n.flags&=-16777217}function y2(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Kw(a))if(Q2())n.flags|=8192;else throw Qo=Wd,lg}function pf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Be():536870912,n.lanes|=a,ul|=a)}function Yc(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 YA(n,a,i){var c=a.pendingProps;switch(eg(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),Ts(Sn),Pe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Qi(a)?Ms(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ng())),Wt(a),null;case 26:var h=a.type,b=a.memoizedState;return n===null?(Ms(a),b!==null?(Wt(a),y2(a,b)):(Wt(a),Vg(a,h,null,c,i))):b?b!==n.memoizedState?(Ms(a),Wt(a),y2(a,b)):(Wt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==c&&Ms(a),Wt(a),Vg(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&&Ms(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}n=at.current,Qi(a)?Xk(a):(n=_w(h,c,i),a.stateNode=n,Ms(a))}return Wt(a),a.subtreeFlags&=-33554433,null;case 5:if(lt(a),h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Ms(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}if(b=at.current,Qi(a))Xk(a);else{var $=ou(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&&Ms(a)}}return Wt(a),a.subtreeFlags&=-33554433,Vg(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&Ms(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(s(166));if(n=et.current,Qi(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||mw(n.nodeValue,i)),n||Qs(a,!0)}else n=ou(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=Qi(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 Vo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),n=!1}else i=ng(),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=Qi(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 Vo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),h=!1}else h=ng(),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),pf(a,a.updateQueue),Wt(a),null);case 4:return Pe(),n===null&&Cm(a.stateNode.containerInfo),a.flags|=67108864,Wt(a),null;case 10:return Ts(a.type),Wt(a),null;case 19:if(gg(a),c=a.memoizedState,c===null)return Wt(a),null;if(h=(a.flags&128)!==0,b=c.rendering,b===null)if(h)Yc(c,!1);else{if(hn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(b=Qd(n),b!==null){for(a.flags|=128,Yc(c,!1),n=b.updateQueue,a.updateQueue=n,pf(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Vk(i,n),i=i.sibling;return Uc(a,tr.current&1|2),xt&&$s(a,c.treeForkCount),a.child}n=n.sibling}c.tail!==null&&Ye()>Cf&&(a.flags|=128,h=!0,Yc(c,!1),a.lanes=4194304)}else{if(!h)if(n=Qd(b),n!==null){if(a.flags|=128,h=!0,n=n.updateQueue,a.updateQueue=n,pf(a,n),Yc(c,!0),c.tail===null&&c.tailMode!=="collapsed"&&c.tailMode!=="visible"&&!b.alternate&&!xt)return Wt(a),null}else 2*Ye()-c.renderingStartTime>Cf&&i!==536870912&&(a.flags|=128,h=!0,Yc(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?Uc(a,b):(i=b,He(er,a),He(tr,i),ir===null&&(ir=a)),xt&&$s(a,c.treeForkCount),n}return Wt(a),null;case 22:case 23:return Gr(a),pg(),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&&pf(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(Xo),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Ts(Sn),Wt(a),null;case 25:return null;case 30:return a.flags|=33554432,Wt(a),null}throw Error(s(156,a.tag))}function XA(n,a){switch(eg(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ts(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));Vo()}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));Vo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return gg(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 Ts(a.type),null;case 22:case 23:return Gr(a),pg(),n!==null&&je(Xo),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Ts(Sn),null;case 25:return null;default:return null}}function b2(n,a){switch(eg(a),a.tag){case 3:Ts(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:gg(a);break;case 10:Ts(a.type);break;case 22:case 23:Gr(a),pg(),n!==null&&je(Xo);break;case 24:Ts(Sn)}}function Xc(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(N){Dt(a,a.return,N)}}function io(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,N=$.destroy;if(N!==void 0){$.destroy=void 0,h=a;var V=i,ae=N;try{ae()}catch(ce){Dt(h,V,ce)}}}c=c.next}while(c!==b)}}catch(ce){Dt(a,a.return,ce)}}function k2(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{cv(a,i)}catch(c){Dt(n,n.return,c)}}}function v2(n,a,i){i.props=ti(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(c){Dt(n,a,c)}}function ts(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=ws(n.memoizedProps,h);(h.ref===null||h.ref.name!==b)&&(h.ref=jw(b)),c=h.ref;break;case 7:if(n.stateNode===null){var $=new Zr(n);g(n.child,!1,P7,$,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(N){Dt(n,a,N)}}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 xf(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++)Lw(n.stateNode,a[i])}function w2(n){for(var a=n.return;a!==null&&(Kg(a)&&Lw(n.stateNode,a.stateNode),!Gg(a));)a=a.return}function Zc(n){for(var a=n.return;a!==null&&(Kg(a)&&B7(n.stateNode,a.stateNode),!Gg(a));)a=a.return}function Gg(n){return n.tag===5||n.tag===3||n.tag===27}function Kg(n){return n&&n.tag===7&&n.stateNode!==null}function Wg(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 Yg(n,a,i){try{var c=n.stateNode;w7(c,n.type,i,a),c[Yt]=a}catch(h){Dt(n,n.return,h)}}function S2(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&xo(n.type)||n.tag===4}function Xg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||S2(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&&xo(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 Zg(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=Qa)),xf(n,c),St=!0;else if(h!==4&&(h===27&&(xf(n,c),c=null,xo(n.type)&&(i=n.stateNode,a=null)),n=n.child,n!==null))for(Zg(n,a,i,c),n=n.sibling;n!==null;)Zg(n,a,i,c),n=n.sibling}function gf(n,a,i,c){var h=n.tag;if(h===5||h===6)h=n.stateNode,a?i.insertBefore(h,a):i.appendChild(h),xf(n,c),St=!0;else if(h!==4&&(h===27&&(xf(n,c),c=null,xo(n.type)&&(i=n.stateNode)),n=n.child,n!==null))for(gf(n,a,i,c),n=n.sibling;n!==null;)gf(n,a,i,c),n=n.sibling}function E2(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 mf=!1,Kr=null;function $2(n){(n.tag===30||(n.subtreeFlags&33554432)!==0)&&(mf=!0)}var ns=null;function C2(){var n=ns;return ns=null,n}var jr=0;function ol(n,a,i,c,h){return jr=0,T2(n.child,a,i,c,h)}function T2(n,a,i,c,h){for(var b=!1;n!==null;){if(n.tag===5){var $=n.stateNode;if(c!==null){var N=Lm($);c.push(N),N.view&&(b=!0)}else b||Lm($).view&&(b=!0);mf=!0,Cw($,jr===0?a:a+"_"+jr,i),jr++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&h||T2(n.child,a,i,c,h)&&(b=!0));n=n.sibling}return b}function rs(n,a){for(;n!==null;)n.tag===5?Tw(n.stateNode,n.memoizedProps):(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&a||rs(n.child,a)),n=n.sibling}function yf(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if((n.tag!==22||n.memoizedState===null)&&(yf(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=Ss(a.default,a.share),a!=="none"&&(ol(n,i,a,null,!1)||rs(n.child,!1))}n=n.sibling}}function Qg(n,a){if(n.tag===30){var i=n.stateNode,c=n.memoizedProps,h=ws(c,i),b=Ss(c.default,i.paired?c.share:c.enter);b!=="none"?ol(n,h,b,null,!1)?(yf(n),i.paired||a||pl(n,c.onEnter)):rs(n.child,!1):yf(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Qg(n,a),n=n.sibling;else yf(n)}function Jg(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=Ss(i.default,i.share);if(b!=="none"&&(ol(n,c,b,null,!1)?(b=n.stateNode,h.paired=b,b.paired=h,pl(n,i.onShare)):rs(n.child,!1)),a.delete(c),a.size===0)break}}}Jg(n)}n=n.sibling}}}function em(n){if(n.tag===30){var a=n.memoizedProps,i=ws(a,n.stateNode),c=Kr!==null?Kr.get(i):void 0,h=Ss(a.default,c!==void 0?a.share:a.exit);h!=="none"&&(ol(n,i,h,null,!1)?c!==void 0?(h=n.stateNode,c.paired=h,h.paired=c,Kr.delete(i),pl(n,a.onShare)):pl(n,a.onExit):rs(n.child,!1)),Kr!==null&&Jg(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)em(n),n=n.sibling;else Kr!==null&&Jg(n)}function j2(n){for(n=n.child;n!==null;){if(n.tag===30){var a=n.memoizedProps,i=ws(a,n.stateNode);a=Ss(a.default,a.update),n.flags&=-5,a!=="none"&&ol(n,i,a,n.memoizedState=[],!1)}else(n.subtreeFlags&33554432)!==0&&j2(n);n=n.sibling}}function tm(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,rs(n.child,!1))}tm(n)}n=n.sibling}}function bf(n){if(n.tag===30)n.stateNode.paired=null,rs(n.child,!1),tm(n);else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)bf(n),n=n.sibling;else tm(n)}function R2(n){for(n=n.child;n!==null;)n.tag===30?rs(n.child,!1):(n.subtreeFlags&33554432)!==0&&R2(n),n=n.sibling}function nm(n,a,i,c,h,b,$){for(var N=!1;a!==null;){if(a.tag===5){var V=a.stateNode;if(b!==null&&jr<b.length){var ae=b[jr],ce=Lm(V);(ae.view||ce.view)&&(N=!0);var be;if(be=(n.flags&4)===0)if(ce.clip)be=!0;else{be=ae.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=!ae.abs:(ae=ae.rect,ce=ce.rect,ce=ae.height!==ce.height||ae.width!==ce.width),ce&&(n.flags|=32)}else n.flags|=32;(n.flags&4)!==0&&Cw(V,jr===0?i:i+"_"+jr,h),N&&(n.flags&4)!==0||(ns===null&&(ns=[]),ns.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:nm(n,a.child,i,c,h,b,$)&&(N=!0));a=a.sibling}return N}function A2(n,a){for(n=n.child;n!==null;){if(n.tag===30){var i=n.memoizedProps,c=n.stateNode,h=ws(i,c),b=Ss(i.default,i.update),$;$=n.memoizedState,n.memoizedState=null,c=n;var N=n.child;jr=0,h=nm(c,N,h,h,b,$,!1),(n.flags&4)!==0&&h&&pl(n,i.onUpdate)}else(n.subtreeFlags&33554432)!==0&&A2(n);n=n.sibling}}var Un=!1,Nt=!1,as=!1,rm=!1,M2=typeof WeakSet=="function"?WeakSet:Set,Vn=null,ss=!1,Qc=!1,kf=!1,am=!1;function ZA(n,a,i){if(n=n.containerInfo,Rm=El,n=Dk(n),Ux(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 N=0,V=-1,ae=-1,ce=0,be=0,ne=n,le=null;t:for(;;){for(var Ae;ne!==c||b!==0&&ne.nodeType!==3||(V=N+b),ne!==$||h!==0&&ne.nodeType!==3||(ae=N+h),ne.nodeType===3&&(N+=ne.nodeValue.length),(Ae=ne.firstChild)!==null;)le=ne,ne=Ae;for(;;){if(ne===n)break t;if(le===c&&++ce===b&&(V=N),le===$&&++be===h&&(ae=N),(Ae=ne.nextSibling)!==null)break;ne=le,le=ne.parentNode}ne=Ae}c=V===-1||ae===-1?null:{start:V,end:ae}}else c=null}c=c||{start:0,end:0}}else c=null;for(Am={focusedElem:n,selectionRange:c},El=!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&&em(c[b]);if(n.alternate===null&&(n.flags&2)!==0)i&&$2(n),vf(i);else{if(n.tag===22){if(c=n.alternate,n.memoizedState!==null){c!==null&&c.memoizedState===null&&i&&em(c),vf(i);continue}else if(c!==null&&c.memoizedState!==null){i&&$2(n),vf(i);continue}}c=n.child,(n.subtreeFlags&a)!==0&&c!==null?(c.return=n,Vn=c):(i&&j2(n),vf(i))}}Kr=null}function vf(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 $=ti(a.type,h);i=b.getSnapshotBeforeUpdate($,c),b.__reactInternalSnapshotBeforeUpdate=i}catch(N){Dt(a,a.return,N)}}break;case 3:if((h&1024)!==0){if(c=a.stateNode.containerInfo,i=c.nodeType,i===9)Im(c);else if(i===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":Im(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=ws(c.memoizedProps,c.stateNode),h=a.memoizedProps,h=Ss(h.default,h.update),h!=="none"&&ol(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 z2(n,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:os(n,i),c&4&&Xc(5,i);break;case 1:if(os(n,i),c&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch($){Dt(i,i.return,$)}else{var h=ti(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(h,a,n.__reactInternalSnapshotBeforeUpdate)}catch($){Dt(i,i.return,$)}}c&64&&k2(i),c&512&&ts(i,i.return);break;case 3:if(os(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{cv(n,a)}catch($){Dt(i,i.return,$)}}break;case 27:a===null&&c&4&&E2(i);case 26:case 5:os(n,i),a===null&&c&4&&Wg(i),c&512&&ts(i,i.return);break;case 12:os(n,i);break;case 31:os(n,i),c&4&&O2(n,i);break;case 13:os(n,i),c&4&&I2(n,i),c&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=c7.bind(null,i),U7(n,i))));break;case 22:if(c=i.memoizedState!==null||Un,!c){var b=a!==null&&a.memoizedState!==null||Nt;a=Un,h=Nt,Un=c,(Nt=b)&&!h?(c=2,(i.subtreeFlags&8772)!==0&&(c|=1),Da(n,i,c)):os(n,i),Un=a,Nt=h}break;case 30:os(n,i),c&512&&ts(i,i.return);break;case 7:c&512&&ts(i,i.return);default:os(n,i)}}function sm(n,a){for(n=n.child;n!==null;)N2(n,a),n=n.sibling}function N2(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)}om(n,a);break;case 6:try{n.stateNode.nodeValue=a?"":n.memoizedProps,St=!0}catch(V){Dt(n,n.return,V)}break;case 18:try{var N=n.stateNode;a?$w(N,!0):$w(n.stateNode,!1)}catch(V){Dt(n,n.return,V)}break;case 22:case 23:n.memoizedState===null&&sm(n,a);break;default:sm(n,a)}}function om(n,a){if(n.subtreeFlags&67108864)for(n=n.child;n!==null;){e:{var i=n,c=a;switch(i.tag){case 4:N2(i,c);break e;case 22:i.memoizedState===null&&om(i,c);break e;default:om(i,c)}}n=n.sibling}}function L2(n){var a=n.alternate;a!==null&&(n.alternate=null,L2(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&an(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 en=null,Rr=!1;function Na(n,a,i){for(i=i.child;i!==null;)D2(n,a,i),i=i.sibling}function D2(n,a,i){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Xn,i)}catch{}switch(i.tag){case 26:Nt||nr(i,a),Na(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&!Nt&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Nt||nr(i,a),Zc(i);var c=en,h=Rr;xo(i.type)&&(en=i.stateNode,Rr=!1),Na(n,a,i),qw(i.stateNode,i.type,i.memoizedProps),en=c,Rr=h;break;case 5:Nt||nr(i,a),Zc(i);case 6:if(i.tag===6&&Zc(i),c=en,h=Rr,en=null,Na(n,a,i),en=c,Rr=h,en!==null)if(Rr)try{(en.nodeType===9?en.body:en.nodeName==="HTML"?en.ownerDocument.body:en).removeChild(i.stateNode),St=!0}catch(b){Dt(i,a,b)}else try{en.removeChild(i.stateNode),St=!0}catch(b){Dt(i,a,b)}break;case 18:en!==null&&(Rr?(n=en,Ew(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),$l(n)):Ew(en,i.stateNode));break;case 4:c=en,h=Rr,en=i.stateNode.containerInfo,Rr=!0,Na(n,a,i),en=c,Rr=h;break;case 0:case 11:case 14:case 15:io(2,i,a),Nt||io(4,i,a),Na(n,a,i);break;case 1:Nt||(nr(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&v2(i,a,c)),Na(n,a,i);break;case 21:Na(n,a,i);break;case 22:Nt=(c=Nt)||i.memoizedState!==null,Na(n,a,i),Nt=c;break;case 30:nr(i,a),Na(n,a,i);break;case 7:Nt||nr(i,a),Na(n,a,i);break;default:Na(n,a,i)}}function O2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{$l(n)}catch(i){Dt(a,a.return,i)}}}function I2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$l(n)}catch(i){Dt(a,a.return,i)}}function QA(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new M2),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new M2),a;default:throw Error(s(435,n.tag))}}function wf(n,a){var i=QA(n);a.forEach(function(c){if(!i.has(c)){i.add(c);var h=u7.bind(null,n,c);c.then(h,h)}})}function xr(n,a,i){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var b=c[h],$=n,N=a,V=N;e:for(;V!==null;){switch(V.tag){case 27:if(xo(V.type)){en=V.stateNode,Rr=!1;break e}break;case 5:en=V.stateNode,Rr=!1;break e;case 3:case 4:en=V.stateNode.containerInfo,Rr=!0;break e}V=V.return}if(en===null)throw Error(s(160));D2($,N,b),en=null,Rr=!1,$=b.alternate,$!==null&&($.return=null),b.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)_2(a,n,i),a=a.sibling}var La=null;function _2(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}xr(a,n,i),gr(n),h&4&&(io(3,n,n.return),Xc(3,n),io(5,n,n.return));break;case 1:xr(a,n,i),gr(n),h&512&&(Nt||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=La,xr(a,n,i),gr(n),h&512&&(Nt||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=vw(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=Vw("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=Vw("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||Um(b,n.type,n.stateNode);else n.stateNode=Uw(b,i,n.memoizedProps);else h!==i?(h===null?(a=c.stateNode,a===null||Nt||a.parentNode.removeChild(a)):h.count--,i===null?Un||Um(b,n.type,n.stateNode):Uw(b,i,n.memoizedProps)):i===null&&n.stateNode!==null&&Yg(n,n.memoizedProps,c.memoizedProps);break;case 27:xr(a,n,i),gr(n),h&512&&(Nt||c===null||nr(c,c.return)),c!==null&&h&4&&Yg(n,n.memoizedProps,c.memoizedProps);break;case 5:if(b=as,as=!1,xr(a,n,i),as=b,gr(n),h&512&&(Nt||c===null||nr(c,c.return)),n.flags&32){a=n.stateNode;try{Hi(a,""),St=!0}catch(ce){Dt(n,n.return,ce)}}h&4&&n.stateNode!=null&&(a=n.memoizedProps,Yg(n,a,c!==null?c.memoizedProps:a)),h&1024&&(rm=!0);break;case 6:if(xr(a,n,i),gr(n),h&4){if(n.stateNode===null)throw Error(s(162));a=n.memoizedProps,i=n.stateNode;try{i.nodeValue=a,St=!0}catch(ce){Dt(n,n.return,ce)}}break;case 3:if(St=!1,If=null,b=La,La=iu(a.containerInfo),xr(a,n,i),La=b,gr(n),h&4&&c!==null&&c.memoizedState.isDehydrated)try{$l(a.containerInfo)}catch(ce){Dt(n,n.return,ce)}rm&&(rm=!1,q2(n)),St=!1;break;case 4:h=as,as=Un,c=qi(),b=La,La=iu(n.stateNode.containerInfo),xr(a,n,i),gr(n),La=b,St&&Qc&&(kf=!0),St=c,as=h;break;case 12:xr(a,n,i),gr(n);break;case 31:xr(a,n,i),gr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,wf(n,a)));break;case 13:xr(a,n,i),gr(n),n.child.flags&8192&&n.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&($f=Ye()),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,wf(n,a)));break;case 22:b=n.memoizedState!==null,$=c!==null&&c.memoizedState!==null;var N=Un,V=Nt,ae=as;Un=N||b,as=ae||b,Nt=V||$,xr(a,n,i),Nt=V,as=ae,Un=N,gr(n),h&8192&&(a=n.stateNode,a._visibility=b?a._visibility&-2:a._visibility|1,!b||c===null||$||Un||Nt||(a=$||Nt,i=Un,c=Nt,Un=b||Un,Nt=a,lo(n,2),Un=i,Nt=c),!b&&as||sm(n,b)),h&4&&(a=n.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,wf(n,i))));break;case 19:xr(a,n,i),gr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,wf(n,a)));break;case 30:h&512&&(Nt||c===null||nr(c,c.return)),h=qi(),b=Qc,$=(i&335544064)===i,N=n.memoizedProps,Qc=$&&Ss(N.default,N.update)!=="none",xr(a,n,i),gr(n),$&&c!==null&&St&&(n.flags|=4),Qc=b,St=h;break;case 21:break;case 7:h&512&&(Nt||c===null||nr(c,c.return)),c&&c.stateNode!==null&&(c.stateNode._fragmentFiber=n);default:xr(a,n,i),gr(n)}}function gr(n){var a=n.flags;if(a&2){try{for(var i,c=n.return;c!==null;){if(S2(c)){i=c;break}c=c.return}c=null;for(var h=n.return;h!==null;){if(Kg(h)){var b=h.stateNode;c===null?c=[b]:c.push(b)}if(Gg(h))break;h=h.return}var $=c;if(i==null)throw Error(s(160));switch(i.tag){case 27:var N=i.stateNode,V=Xg(n);gf(n,V,N,$);break;case 5:var ae=i.stateNode;i.flags&32&&(Hi(ae,""),i.flags&=-33);var ce=Xg(n);gf(n,ce,ae,$);break;case 3:case 4:var be=i.stateNode.containerInfo,ne=Xg(n);Zg(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 q2(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;q2(a),a.tag===5&&a.flags&1024&&(a=a.stateNode,El=!0,a.reset(),El=!1),n=n.sibling}}function il(n,a){if(a.subtreeFlags&9270)for(a=a.child;a!==null;)P2(a,n),a=a.sibling;else A2(a)}function P2(n,a){var i=n.alternate;if(i===null)Qg(n,!1);else switch(n.tag){case 3:if(am=ss=!1,C2(),il(a,n),!ss&&!kf){if(n=ns,n!==null)for(var c=0;c<n.length;c+=3){i=n[c];var h=n[c+1];Tw(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"})),am=!0}ns=null;break;case 5:il(a,n);break;case 4:c=ss,ss=!1,il(a,n),ss&&(kf=!0),ss=c;break;case 22:n.memoizedState===null&&(i.memoizedState!==null?Qg(n,!1):il(a,n));break;case 30:c=ss,h=C2(),ss=!1,il(a,n),ss&&(n.flags|=4);var b=n.memoizedProps,$=n.stateNode;a=ws(b,$),$=ws(i.memoizedProps,$);var N=Ss(b.default,b.update);N==="none"?a=!1:(b=i.memoizedState,i.memoizedState=null,i=n.child,jr=0,a=nm(n,i,a,$,N,b,!0),jr!==(b===null?0:b.length)&&(n.flags|=32)),(n.flags&4)!==0&&a?(pl(n,n.memoizedProps.onUpdate),ns=h):h!==null&&(h.push.apply(h,ns),ns=h),ss=(n.flags&32)!==0?!0:c;break;default:il(a,n)}}function os(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)z2(n,a.alternate,a),a=a.sibling}function lo(n,a){for(n=n.child;n!==null;){var i=n,c=a;switch(i.tag){case 0:case 11:case 14:case 15:io(4,i,i.return),lo(i,c);break;case 1:nr(i,i.return);var h=i.stateNode;typeof h.componentWillUnmount=="function"&&v2(i,i.return,h),lo(i,c);break;case 27:(c&2)!==0&&qw(i.stateNode,i.type,i.memoizedProps);case 5:nr(i,i.return),i.tag!==5&&i.tag!==27||Zc(i),lo(i,c);break;case 6:Zc(i);break;case 26:nr(i,i.return),h=i.stateNode,i.memoizedState!==null||h===null||Nt||h.parentNode.removeChild(h),lo(i,c);break;case 22:i.memoizedState===null&&lo(i,c);break;case 30:nr(i,i.return),lo(i,c);break;case 7:nr(i,i.return);default:lo(i,c)}n=n.sibling}}function Da(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,N=(i&1)!==0;switch(b.tag){case 0:case 11:case 15:Da(h,b,i),Xc(4,b);break;case 1:if(Da(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 ae=h.shared.hiddenCallbacks;if(ae!==null)for(h.shared.hiddenCallbacks=null,h=0;h<ae.length;h++)lv(ae[h],V)}catch(ce){Dt(c,c.return,ce)}}N&&$&64&&k2(b),ts(b,b.return);break;case 27:(i&2)!==0&&E2(b);case 5:b.tag!==5&&b.tag!==27||w2(b),Da(h,b,i),N&&c===null&&$&4&&Wg(b),ts(b,b.return);break;case 6:w2(b);break;case 26:V=b.stateNode,b.memoizedState!==null||V===null||Un||Um(iu(V.ownerDocument),b.type,V),Da(h,b,i),N&&c===null&&$&4&&Wg(b),ts(b,b.return);break;case 12:Da(h,b,i);break;case 31:Da(h,b,i),N&&$&4&&O2(h,b);break;case 13:Da(h,b,i),N&&$&4&&I2(h,b);break;case 22:b.memoizedState===null&&Da(h,b,i),ts(b,b.return);break;case 30:Da(h,b,i),ts(b,b.return);break;case 7:ts(b,b.return);default:Da(h,b,i)}a=a.sibling}}function im(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&&Ic(i))}function lm(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ic(n))}function pa(n,a,i,c){var h=(i&335544064)===i;if(a.subtreeFlags&(h?10262:10256))for(a=a.child;a!==null;)B2(n,a,i,c),a=a.sibling;else h&&R2(a)}function B2(n,a,i,c){var h=(i&335544064)===i;h&&a.alternate===null&&a.return!==null&&a.return.alternate!==null&&bf(a);var b=a.flags;switch(a.tag){case 0:case 11:case 15:pa(n,a,i,c),b&2048&&Xc(9,a);break;case 1:pa(n,a,i,c);break;case 3:pa(n,a,i,c),h&&am&&(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&&Ic(b)));break;case 12:if(b&2048){pa(n,a,i,c),b=a.stateNode;try{var $=a.memoizedProps,N=$.id,V=$.onPostCommit;typeof V=="function"&&V(N,a.alternate===null?"mount":"update",b.passiveEffectDuration,-0)}catch(ae){Dt(a,a.return,ae)}}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,N=a.alternate,a.memoizedState!==null?(h&&N!==null&&N.memoizedState===null&&bf(N),$._visibility&2?pa(n,a,i,c):Jc(n,a)):(h&&N!==null&&N.memoizedState!==null&&bf(a),$._visibility&2?pa(n,a,i,c):($._visibility|=2,ll(n,a,i,c,(a.subtreeFlags&10256)!==0||!1))),b&2048&&im(N,a);break;case 24:pa(n,a,i,c),b&2048&&lm(a.alternate,a);break;case 30:h&&(b=a.alternate,b!==null&&(rs(b.child,!0),rs(a.child,!0))),pa(n,a,i,c);break;default:pa(n,a,i,c)}}function ll(n,a,i,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=n,$=a,N=i,V=c,ae=$.flags;switch($.tag){case 0:case 11:case 15:ll(b,$,N,V,h),Xc(8,$);break;case 23:break;case 22:var ce=$.stateNode;$.memoizedState!==null?ce._visibility&2?ll(b,$,N,V,h):Jc(b,$):(ce._visibility|=2,ll(b,$,N,V,h)),h&&ae&2048&&im($.alternate,$);break;case 24:ll(b,$,N,V,h),h&&ae&2048&&lm($.alternate,$);break;default:ll(b,$,N,V,h)}a=a.sibling}}function Jc(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:Jc(i,c),h&2048&&im(c.alternate,c);break;case 24:Jc(i,c),h&2048&&lm(c.alternate,c);break;default:Jc(i,c)}a=a.sibling}}var ni=8192;function ri(n,a,i){if(n.subtreeFlags&ni)for(n=n.child;n!==null;)H2(n,a,i),n=n.sibling}function H2(n,a,i){switch(n.tag){case 26:ri(n,a,i),n.flags&ni&&(n.memoizedState!==null?aM(i,La,n.memoizedState,n.memoizedProps):(n=n.stateNode,(a&335544128)===a&&Yw(i,n)));break;case 5:ri(n,a,i),n.flags&ni&&(n=n.stateNode,(a&335544128)===a&&Yw(i,n));break;case 3:case 4:var c=La;La=iu(n.stateNode.containerInfo),ri(n,a,i),La=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=ni,ni=16777216,ri(n,a,i),ni=c):ri(n,a,i));break;case 30:if((n.flags&ni)!==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)}ri(n,a,i);break;default:ri(n,a,i)}}function F2(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 eu(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,V2(c,n)}F2(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)U2(n),n=n.sibling}function U2(n){switch(n.tag){case 0:case 11:case 15:eu(n),n.flags&2048&&io(9,n,n.return);break;case 3:eu(n);break;case 12:eu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Sf(n)):eu(n);break;default:eu(n)}}function Sf(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,V2(c,n)}F2(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:io(8,a,a.return),Sf(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Sf(a));break;default:Sf(a)}n=n.sibling}}function V2(n,a){for(;Vn!==null;){var i=Vn;switch(i.tag){case 0:case 11:case 15:io(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:Ic(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(L2(c),c===i){Vn=null;break e}if(h!==null){h.return=b,Vn=h;break e}Vn=b}}}var JA={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}},e7=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Ut=null,gt=null,kt=0,Lt=0,Wr=null,co=!1,cl=!1,cm=!1,zs=0,hn=0,uo=0,ai=0,Ef=0,Yr=0,ul=0,tu=null,Ar=null,um=!1,$f=0,G2=0,Cf=1/0,Tf=null,fo=null,sn=0,Oa=null,si=null,is=0,dm=0,fm=null,K2=null,dl=null,fl=null,hl=null,nu=0,jf=null;function Xr(){return(Mt&2)!==0&&kt!==0?kt&-kt:te.T!==null?wm():Nn()}function W2(){if(Yr===0)if((kt&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 pl(n,a){if(a!=null){var i=n.stateNode,c=i.ref;c===null&&(c=i.ref=jw(ws(n.memoizedProps,i))),fl===null&&(fl=[]),fl.push(a.bind(null,c))}}function Mr(n,a,i){(n===Ut&&(Lt===2||Lt===9)||n.cancelPendingCommit!==null)&&(xl(n,0),ho(n,kt,Yr,!1)),Fe(n,i),((Mt&2)===0||n!==Ut)&&(n===Ut&&((Mt&2)===0&&(ai|=i),hn===4&&ho(n,kt,Yr,!1)),ls(n))}function Y2(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?r7(n,a):pm(n,a,!0),b=c;do{if(h===0){cl&&!c&&ho(n,a,0,!1);break}else{if(i=n.current.alternate,b&&!t7(i)){h=pm(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 N=n;h=tu;var V=N.current.memoizedState.isDehydrated;if(V&&(xl(N,$).flags|=256),$=pm(N,$,!1),$!==2&&$!==6){if(cm&&!V){N.errorRecoveryDisabledLanes|=b,ai|=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){xl(n,0),ho(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:ho(c,a,Yr,!co);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(h=$f+300-Ye(),10<h)){if(ho(c,a,Yr,!co),De(c,0,!0)!==0)break e;is=a,c.timeoutHandle=Nm(X2.bind(null,c,i,Ar,Tf,um,a,Yr,ai,ul,co,b,"Throttled",-0,0),h);break e}X2(c,i,Ar,Tf,um,a,Yr,ai,ul,co,b,null,-0,0)}}break}while(!0);ls(n)}function X2(n,a,i,c,h,b,$,N,V,ae,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:Qa},Kr=null,H2(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=uu.bind(Ae),_e.finished.then(Ae,Ae))),Ae=(b&62914560)===b?$f-Ye():(b&4194048)===b?G2-Ye():0,Ae=sM(be,Ae),Ae!==null)){is=b,n.cancelPendingCommit=Ae(aw.bind(null,n,a,b,i,c,h,$,N,V,ae,ce,be,null,ne,le)),ho(n,b,$,!ae);return}aw(n,a,b,i,c,h,$,N,V,ae,ce,be)}function t7(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 ho(n,a,i,c){a=ze(n,a),a&=~Ef,a&=~ai,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 Rf(){return(Mt&6)===0?(ru(0),!1):!0}function hm(){if(gt!==null){if(Lt===0)var n=gt.return;else n=gt,Cs=Go=null,vg(n),tl=null,Pc=0,n=gt;for(;n!==null;)b2(n.alternate,n),n=n.return;gt=null}}function xl(n,a){var i=n.timeoutHandle;return i!==-1&&(n.timeoutHandle=-1,$7(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),is=0,hm(),Ut=n,gt=i=Es(n.current,null),kt=a,Lt=0,Wr=null,co=!1,cl=Se(n,a),cm=!1,ul=Yr=Ef=ai=uo=hn=0,Ar=tu=null,um=!1,zs=ze(n,a),Od(),i}function Z2(n,a){ut=null,te.H=lf,a===el||a===Kd?(a=av(),Lt=3):a===lg?(a=av(),Lt=4):Lt=a===Og?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wr=a,gt===null&&(hn=1,cf(n,ua(a,n.current)))}function Q2(){var n=er.current;return n===null?!0:(kt&4194048)===kt?ir===null:(kt&62914560)===kt||(kt&536870912)!==0?n===ir:!1}function J2(){var n=te.H;return te.H=lf,n===null?lf:n}function ew(){var n=te.A;return te.A=JA,n}function Af(){hn=4,co||(kt&4194048)!==kt&&er.current!==null||(cl=!0),(uo&134217727)===0&&(ai&134217727)===0||Ut===null||ho(Ut,kt,Yr,!1)}function pm(n,a,i){var c=Mt;Mt|=2;var h=J2(),b=ew();(Ut!==n||kt!==a)&&(Tf=null,xl(n,a)),a=!1;var $=hn;e:do try{if(Lt!==0&&gt!==null){var N=gt,V=Wr;switch(Lt){case 8:hm(),$=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(a=!0);var ae=Lt;if(Lt=0,Wr=null,gl(n,N,V,ae),i&&cl){$=0;break e}break;default:ae=Lt,Lt=0,Wr=null,gl(n,N,V,ae)}}n7(),$=hn;break}catch(ce){Z2(n,ce)}while(!0);return a&&n.shellSuspendCounter++,Cs=Go=null,Mt=c,te.H=h,te.A=b,gt===null&&(Ut=null,kt=0,Od()),$}function n7(){for(;gt!==null;)tw(gt)}function r7(n,a){var i=Mt;Mt|=2;var c=J2(),h=ew();Ut!==n||kt!==a?(Tf=null,Cf=Ye()+500,xl(n,a)):cl=Se(n,a);e:do try{if(Lt!==0&&gt!==null){a=gt;var b=Wr;t:switch(Lt){case 1:Lt=0,Wr=null,gl(n,a,b,1);break;case 2:case 9:if(nv(b)){Lt=0,Wr=null,nw(a);break}a=function(){Lt!==2&&Lt!==9||Ut!==n||(Lt=7),ls(n)},b.then(a,a);break e;case 3:Lt=7;break e;case 4:Lt=5;break e;case 7:nv(b)?(Lt=0,Wr=null,nw(a)):(Lt=0,Wr=null,gl(n,a,b,7));break;case 5:var $=null;switch(gt.tag){case 26:$=gt.memoizedState;case 5:case 27:var N=gt;if($?Kw($):N.stateNode.complete){Lt=0,Wr=null;var V=N.sibling;if(V!==null)gt=V;else{var ae=N.return;ae!==null?(gt=ae,Mf(ae)):gt=null}break t}}Lt=0,Wr=null,gl(n,a,b,5);break;case 6:Lt=0,Wr=null,gl(n,a,b,6);break;case 8:hm(),hn=6;break e;default:throw Error(s(462))}}a7();break}catch(ce){Z2(n,ce)}while(!0);return Cs=Go=null,te.H=c,te.A=h,Mt=i,gt!==null?0:(Ut=null,kt=0,Od(),hn)}function a7(){for(;gt!==null&&!Qt();)tw(gt)}function tw(n){var a=m2(n.alternate,n,zs);n.memoizedProps=n.pendingProps,a===null?Mf(n):gt=a}function nw(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=u2(i,a,a.pendingProps,a.type,void 0,kt);break;case 11:a=u2(i,a,a.pendingProps,a.type.render,a.ref,kt);break;case 5:vg(a);var c=a;c===Fn&&(xt?(Hd(c),c.tag===5&&c.stateNode!=null&&(Kt=c.stateNode)):(Hd(c),xt=!0));default:b2(i,a),a=gt=Vk(a,zs),a=m2(i,a,zs)}n.memoizedProps=n.pendingProps,a===null?Mf(n):gt=a}function gl(n,a,i,c){Cs=Go=null,vg(a),tl=null,Pc=0;var h=a.return;try{if(VA(n,h,a,i,kt)){hn=1,cf(n,ua(i,n.current)),gt=null;return}}catch(b){if(h!==null)throw gt=h,b;hn=1,cf(n,ua(i,n.current)),gt=null;return}a.flags&32768?(xt||c===1?n=!0:cl||(kt&536870912)!==0?n=!1:(co=n=!0,(c===2||c===9||c===3||c===6)&&(c=er.current,c!==null&&c.tag===13&&(c.flags|=16384))),rw(a,n)):Mf(a)}function Mf(n){var a=n;do{if((a.flags&32768)!==0){rw(a,co);return}n=a.return;var i=YA(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 rw(n,a){do{var i=XA(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 aw(n,a,i,c,h,b,$,N,V,ae,ce,be){n.cancelPendingCommit=null;do zf();while(sn!==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,kt=0),si=a,Oa=n,is=i,fm=h,K2=c,s7(n,a,i,$,N,V,be)}}function s7(n,a,i,c,h,b,$){var N=a.lanes|a.childLanes;if(dm=N,N|=Yx,wt(n,i,N,c,h,b),fl=null,(i&335544064)===i?(hl=NA(n),c=10262):(hl=null,c=10256),(a.subtreeFlags&c)!==0||(a.flags&c)!==0?(n.callbackNode=null,n.callbackPriority=0,d7(rn,function(){return ym(),null})):(n.callbackNode=null,n.callbackPriority=0),mf=!1,c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null,h=pe.p,pe.p=2,b=Mt,Mt|=4;try{ZA(n,a,i)}finally{Mt=b,pe.p=h,te.T=c}}sn=1,mf?dl=M7($,n.containerInfo,hl,xm,gm,i7,mm,ym,o7):(xm(),gm(),mm())}function o7(n){if(sn!==0){var a=Oa.onRecoverableError;a(n,{componentStack:null})}}function i7(){sn===3&&(sn=0,P2(si,Oa),sn=4)}function xm(){if(sn===1){sn=0;var n=Oa,a=si,i=is,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null;var h=pe.p;pe.p=2;var b=Mt;Mt|=4;try{Qc=kf=!1,_2(a,n,i),i=Am;var $=Dk(n.containerInfo),N=i.focusedElem,V=i.selectionRange;if($!==N&&N&&N.ownerDocument&&Lk(N.ownerDocument.documentElement,N)){if(V!==null&&Ux(N)){var ae=V.start,ce=V.end;if(ce===void 0&&(ce=ae),"selectionStart"in N)N.selectionStart=ae,N.selectionEnd=Math.min(ce,N.value.length);else{var be=N.ownerDocument||document,ne=be&&be.defaultView||window;if(ne.getSelection){var le=ne.getSelection(),Ae=N.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=Nk(N,_e),J=Nk(N,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=N;le=le.parentNode;)le.nodeType===1&&be.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<be.length;N++){var me=be[N];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}El=!!Rm,Am=Rm=null}finally{Mt=b,pe.p=h,te.T=c}}n.current=a,sn=2}}function gm(){if(sn===2){sn=0;var n=Oa,a=si,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=te.T,te.T=null;var c=pe.p;pe.p=2;var h=Mt;Mt|=4;try{z2(n,a.alternate,a)}finally{Mt=h,pe.p=c,te.T=i}}sn=3}}function mm(){if(sn===4||sn===3){sn=0;var n=dl;dl=null,kn();var a=Oa,i=si,c=is,h=K2,b=(c&335544064)===c?10262:10256;if((i.subtreeFlags&b)!==0||(i.flags&b)!==0?sn=5:(sn=0,si=Oa=null,sw(a,a.pendingLanes)),b=a.pendingLanes,b===0&&(fo=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=pe.p,pe.p=2,te.T=null;try{for(var $=a.onRecoverableError,N=0;N<h.length;N++){var V=h[N];$(V.value,{componentStack:V.stack})}}finally{te.T=i,pe.p=b}}if(h=fl,$=hl,hl=null,h!==null&&(fl=null,$===null&&($=[]),n!==null))for(V=0;V<h.length;V++)i=(0,h[V])($),i!==void 0&&n.finished.finally(i);(is&3)!==0&&zf(),ls(a),b=a.pendingLanes,(c&261930)!==0&&(b&42)!==0?a===jf?nu++:(nu=0,jf=a):(nu=0,jf=null),ru(0)}}function sw(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ic(a)))}function zf(){return dl!==null&&(dl.skipTransition(),dl=null),xm(),gm(),mm(),ym()}function ym(){if(sn!==5)return!1;var n=Oa,a=dm;dm=0;var i=mn(is),c=te.T,h=pe.p;try{pe.p=32>i?32:i,te.T=null,i=fm,fm=null;var b=Oa,$=is;if(sn=0,si=Oa=null,is=0,(Mt&6)!==0)throw Error(s(331));var N=Mt;if(Mt|=4,U2(b.current),B2(b,b.current,$,i),Mt=N,ru(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Xn,b)}catch{}return!0}finally{pe.p=h,te.T=c,sw(n,a)}}function ow(n,a,i){a=ua(i,a),a=Dg(n.stateNode,a,2),n=ro(n,a,2),n!==null&&(Fe(n,2),ls(n))}function Dt(n,a,i){if(n.tag===3)ow(n,n,i);else for(;a!==null;){if(a.tag===3){ow(a,n,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(fo===null||!fo.has(c))){n=ua(i,n),i=n2(2),c=ro(a,i,2),c!==null&&(r2(i,c,a,n),Fe(c,2),ls(c));break}}a=a.return}}function bm(n,a,i){var c=n.pingCache;if(c===null){c=n.pingCache=new e7;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)||(cm=!0,h.add(i),n=l7.bind(null,n,a,i),a.then(n,n))}function l7(n,a,i){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ut===n&&(kt&i)===i&&((hn===4||hn===3&&(kt&62914560)===kt&&300>Ye()-$f)&&(Mt&2)===0?xl(n,0):Ef|=i,ul===kt&&(ul=0)),ls(n)}function iw(n,a){a===0&&(a=Be()),n=Fo(n,a),n!==null&&(Fe(n,a),ls(n))}function c7(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),iw(n,i)}function u7(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),iw(n,i)}function d7(n,a){return Vt(n,a)}var ml=null,yl=null,km=!1,Nf=!1,vm=!1,po=0;function ls(n){n!==yl&&n.next===null&&(yl===null?ml=yl=n:yl=yl.next=n),Nf=!0,km||(km=!0,h7())}function ru(n,a){if(!vm&&Nf){vm=!0;do for(var i=!1,c=ml;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var b=0;else{var $=c.suspendedLanes,N=c.pingedLanes;b=(1<<31-Mn(42|n)+1)-1,b&=h&~($&~N),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(i=!0,dw(c,b))}else b=kt,b=De(c,c===Ut?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Se(c,b)||(i=!0,dw(c,b));c=c.next}while(i);vm=!1}}function f7(){lw()}function lw(){Nf=km=!1;var n=0;po!==0&&E7()&&(n=po);for(var a=Ye(),i=null,c=ml;c!==null;){var h=c.next,b=cw(c,a);b===0?(c.next=null,i===null?ml=h:i.next=h,h===null&&(yl=i)):(i=c,(n!==0||(b&3)!==0)&&(Nf=!0)),c=h}sn!==0&&sn!==5||ru(n),po!==0&&(po=0)}function cw(n,a){for(var i=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,b=n.pendingLanes&-62914561;0<b;){var $=31-Mn(b),N=1<<$,V=h[$];V===-1?((N&i)===0||(N&c)!==0)&&(h[$]=Ke(N,a)):V<=a&&(n.expiredLanes|=N),b&=~N}if(a=Ut,i=kt,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=rn;break;case 268435456:i=Za;break;default:i=rn}return c=uw.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 uw(n,a){if(sn!==0&&sn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(zf()&&n.callbackNode!==i)return null;var c=kt;return c=De(n,n===Ut?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(Y2(n,c,a),cw(n,Ye()),n.callbackNode!=null&&n.callbackNode===i?uw.bind(null,n):null)}function dw(n,a){if(zf())return null;Y2(n,a,!0)}function h7(){C7(function(){(Mt&6)!==0?Vt(Jt,f7):lw()})}function wm(){if(po===0){var n=Yo;n===0&&(n=se,se<<=1,(se&261888)===0&&(se=256)),po=n}return po}function fw(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:jd(n)}function p7(n,a,i,c,h){if(a==="submit"&&i&&i.stateNode===h){var b=fw((h[Yt]||null).action),$=c.submitter;$&&(a=(a=$[Yt]||null)?fw(a.formAction):$.getAttribute("formAction"),a!==null&&(b=a,$=null));var N=new zd("action","action",null,c,h);n.push({event:N,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(po!==0){var V=new FormData(h,$);Ag(i,{pending:!0,data:V,method:h.method,action:b},null,V)}}else typeof b=="function"&&(N.preventDefault(),V=new FormData(h,$),Ag(i,{pending:!0,data:V,method:h.method,action:b},b,V))},currentTarget:h}]})}}for(var Sm=0;Sm<Wx.length;Sm++){var Em=Wx[Sm],x7=Em.toLowerCase(),g7=Em[0].toUpperCase()+Em.slice(1);za(x7,"on"+g7)}za(_k,"onAnimationEnd"),za(qk,"onAnimationIteration"),za(Pk,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za($A,"onTransitionRun"),za(CA,"onTransitionStart"),za(TA,"onTransitionCancel"),za(Bk,"onTransitionEnd"),ks("onMouseEnter",["mouseout","mouseover"]),ks("onMouseLeave",["mouseout","mouseover"]),ks("onPointerEnter",["pointerout","pointerover"]),ks("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var au="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(" "),m7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(au));function hw(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 N=c[$],V=N.instance,ae=N.currentTarget;if(N=N.listener,V!==b&&h.isPropagationStopped())break e;b=N,h.currentTarget=ae;try{b(h)}catch(ce){Dd(ce)}h.currentTarget=null,b=V}else for($=0;$<c.length;$++){if(N=c[$],V=N.instance,ae=N.currentTarget,N=N.listener,V!==b&&h.isPropagationStopped())break e;b=N,h.currentTarget=ae;try{b(h)}catch(ce){Dd(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)||(pw(a,n,2,!1),i.add(c))}function $m(n,a,i){var c=0;a&&(c|=4),pw(i,n,c,a)}var Lf="_reactListening"+Math.random().toString(36).slice(2);function Cm(n){if(!n[Lf]){n[Lf]=!0,_o.forEach(function(i){i!=="selectionchange"&&(m7.has(i)||$m(i,!1,n),$m(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Lf]||(a[Lf]=!0,$m("selectionchange",!1,a))}}function pw(n,a,i,c){switch(rS(a)){case 2:var h=cM;break;case 8:h=uM;break;default:h=Gm}i=h.bind(null,a,i,n),h=void 0,!Lx||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 Tm(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 N=c.stateNode.containerInfo;if(N===h)break;if($===4)for($=c.return;$!==null;){var V=$.tag;if((V===3||V===4)&&$.stateNode.containerInfo===h)return;$=$.return}for(;N!==null;){if($=dn(N),$===null)return;if(V=$.tag,V===5||V===6||V===26||V===27){c=b=$;continue e}N=N.parentNode}}c=c.return}pk(function(){var ae=b,ce=zx(i),be=[];e:{var ne=Hk.get(n);if(ne!==void 0){var le=zd,Ae=n;switch(n){case"keypress":if(Ad(i)===0)break e;case"keydown":case"keyup":le=tA;break;case"focusin":Ae="focus",le=_x;break;case"focusout":Ae="blur",le=_x;break;case"beforeblur":case"afterblur":le=_x;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=mk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=FR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=oA;break;case _k:case qk:case Pk:le=GR;break;case Bk:le=lA;break;case"scroll":case"scrollend":le=BR;break;case"wheel":le=uA;break;case"copy":case"cut":case"paste":le=WR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=bk;break;case"submit":le=aA;break;case"toggle":case"beforetoggle":le=fA}var _e=(a&4)!==0,dt=!_e&&(n==="scroll"||n==="scrollend"),re=_e?ne!==null?ne+"Capture":null:ne;_e=[];for(var J=ae,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(su(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!==Mx&&(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=ae,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=ae),ne!==le&&(_e=mk,me="onMouseLeave",re="onMouseEnter",J="mouse",(n==="pointerout"||n==="pointerover")&&(_e=bk,me="onPointerLeave",re="onPointerEnter",J="pointer"),dt=ne==null?Ae:Aa(ne),ie=le==null?Ae:Aa(le),Ae=new _e(me,J+"leave",ne,i,ce),Ae.target=dt,Ae.relatedTarget=ie,me=null,dn(ce)===ae&&(_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,y7):null,ne!==null&&xw(be,Ae,ne,_e,!1),le!==null&&dt!==null&&xw(be,dt,le,_e,!0)))}e:{if(ne=ae?Aa(ae):window,le=ne.nodeName&&ne.nodeName.toLowerCase(),le==="select"||le==="input"&&ne.type==="file")var Oe=Tk;else if($k(ne))if(jk)Oe=wA;else{Oe=kA;var vt=bA}else le=ne.nodeName,!le||le.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ae&&Ax(ae.elementType)&&(Oe=Tk):Oe=vA;if(Oe&&(Oe=Oe(n,ae))){Ck(be,Oe,i,ce);break e}vt&&vt(n,ne,ae)}switch(vt=ae?Aa(ae):window,n){case"focusin":($k(vt)||vt.contentEditable==="true")&&(Gi=vt,Vx=ae,Lc=null);break;case"focusout":Lc=Vx=Gi=null;break;case"mousedown":Gx=!0;break;case"contextmenu":case"mouseup":case"dragend":Gx=!1,Ok(be,i,ce);break;case"selectionchange":if(EA)break;case"keydown":case"keyup":Ok(be,i,ce)}var Ue;if(Px)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 Vi?Sk(n,i)&&(Xe="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&(kk&&i.locale!=="ko"&&(Vi||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Vi&&(Ue=xk()):(Ws=ce,Dx="value"in Ws?Ws.value:Ws.textContent,Vi=!0)),vt=Df(ae,Xe),0<vt.length&&(Xe=new yk(Xe,n,null,i,ce),be.push({event:Xe,listeners:vt}),Ue?Xe.data=Ue:(Ue=Ek(i),Ue!==null&&(Xe.data=Ue)))),(Ue=pA?xA(n,i):gA(n,i))&&(Xe=Df(ae,"onBeforeInput"),0<Xe.length&&(vt=new yk("onBeforeInput","beforeinput",null,i,ce),be.push({event:vt,listeners:Xe}),vt.data=Ue)),p7(be,n,ae,i,ce)}hw(be,a)})}function su(n,a,i){return{instance:n,listener:a,currentTarget:i}}function Df(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(su(n,h,b)),h=Cc(n,a),h!=null&&c.push(su(n,h,b))),n.tag===3)return c;n=n.return}return[]}function y7(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function xw(n,a,i,c,h){for(var b=a._reactName,$=[];i!==null&&i!==c;){var N=i,V=N.alternate,ae=N.stateNode;if(N=N.tag,V!==null&&V===c)break;N!==5&&N!==26&&N!==27||ae===null||(V=ae,h?(ae=Cc(i,b),ae!=null&&$.unshift(su(i,ae,V))):h||(ae=Cc(i,b),ae!=null&&$.push(su(i,ae,V)))),i=i.return}$.length!==0&&n.push({event:a,listeners:$})}var b7=/\r\n?/g,k7=/\u0000|\uFFFD/g;function gw(n){return(typeof n=="string"?n:""+n).replace(b7,`
10
- `).replace(k7,"")}function mw(n,a){return a=gw(a),gw(n)===a}function Ot(n,a,i,c,h,b){switch(i){case"children":if(typeof c=="string")a==="body"||a==="textarea"&&c===""||Hi(n,c);else if(typeof c=="number"||typeof c=="bigint")a!=="body"&&Hi(n,""+c);else return;break;case"className":Po(n,"class",c);break;case"tabIndex":Po(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(n,i,c);break;case"style":fk(n,c,b);return;case"data":if(a!=="object"){Po(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=jd(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=jd(c),n.setAttribute(i,c);break;case"onClick":c!=null&&(n.onclick=Qa);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=jd(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),Pi(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":Pi(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=qR.get(i)||i,Pi(n,i,c);else return}St=!0}function jm(n,a,i,c,h,b){switch(i){case"style":fk(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")Hi(n,c);else if(typeof c=="number"||typeof c=="bigint")Hi(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=Qa);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!qo.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}St=!0,i in n?n[i]=c:c===!0?n.setAttribute(i,""):Pi(n,i,c)}return}St=!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 N=b=$=h=null,V=null,ae=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":ae=ce;break;case"value":b=ce;break;case"defaultValue":N=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(s(137,a));break;default:Ot(n,a,c,ce,i,null)}}lk(n,b,N,V,ae,$,h,!1);return;case"select":mt("invalid",n),c=$=b=null;for(h in i)if(i.hasOwnProperty(h)&&(N=i[h],N!=null))switch(h){case"value":b=N;break;case"defaultValue":$=N;break;case"multiple":c=N;default:Ot(n,a,h,N,i,null)}a=b,i=$,n.multiple=!!c,a!=null?Bi(n,!!c,a,!1):i!=null&&Bi(n,!!c,i,!0);return;case"textarea":mt("invalid",n),b=h=c=null;for($ in i)if(i.hasOwnProperty($)&&(N=i[$],N!=null))switch($){case"value":c=N;break;case"defaultValue":h=N;break;case"children":b=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(91));break;default:Ot(n,a,$,N,i,null)}uk(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<au.length;c++)mt(au[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(ae in i)if(i.hasOwnProperty(ae)&&(c=i[ae],c!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ot(n,a,ae,c,i,null)}return;default:if(Ax(a)){for(ce in i)i.hasOwnProperty(ce)&&(c=i[ce],c!==void 0&&jm(n,a,ce,c,i,void 0));return}}for(N in i)i.hasOwnProperty(N)&&(c=i[N],c!=null&&Ot(n,a,N,c,i,null))}var v7={};function w7(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,N=null,V=null,ae=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&&(St=!0),b=le;break;case"name":le!==be&&(St=!0),h=le;break;case"checked":le!==be&&(St=!0),ae=le;break;case"defaultChecked":le!==be&&(St=!0),ce=le;break;case"value":le!==be&&(St=!0),$=le;break;case"defaultValue":le!==be&&(St=!0),N=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)}}jx(n,$,N,V,ae,ce,b,h);return;case"select":le=$=N=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&&(St=!0),ne=b;break;case"defaultValue":b!==V&&(St=!0),N=b;break;case"multiple":b!==V&&(St=!0),$=b;default:b!==V&&Ot(n,a,h,b,c,V)}a=N,i=$,c=le,ne!=null?Bi(n,!!i,ne,!1):!!c!=!!i&&(a!=null?Bi(n,!!i,a,!0):Bi(n,!!i,i?[]:"",!1));return;case"textarea":le=ne=null;for(N in i)if(h=i[N],i.hasOwnProperty(N)&&h!=null&&!c.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ot(n,a,N,null,c,h)}for($ in c)if(h=c[$],b=i[$],c.hasOwnProperty($)&&(h!=null||b!=null))switch($){case"value":h!==b&&(St=!0),ne=h;break;case"defaultValue":h!==b&&(St=!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)}ck(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&&(St=!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(ae in c)if(ne=c[ae],le=i[ae],c.hasOwnProperty(ae)&&ne!==le&&(ne!=null||le!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(s(137,a));break;default:Ot(n,a,ae,ne,c,le)}return;default:if(Ax(a)){for(var dt in i)ne=i[dt],i.hasOwnProperty(dt)&&ne!==void 0&&!c.hasOwnProperty(dt)&&jm(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||jm(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 yw(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S7(){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,N=h.duration;if(b&&N&&yw($)){for($=0,N=h.responseEnd,c+=1;c<i.length;c++){var V=i[c],ae=V.startTime;if(ae>N)break;var ce=V.transferSize,be=V.initiatorType;ce&&yw(be)&&(V=V.responseEnd,$+=ce*(V<N?1:(N-ae)/(V-ae)))}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 Rm=null,Am=null;function ou(n){return n.nodeType===9?n:n.ownerDocument}function bw(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 kw(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 vw(n,a,i,c){return i=ou(i).createElement(n),i[Bt]=c,i[Yt]=a,rr(i,n,a),tt(i),i}function Mm(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 zm=null;function E7(){var n=window.event;return n&&n.type==="popstate"?n===zm?!1:(zm=n,!0):(zm=null,!1)}var Nm=typeof setTimeout=="function"?setTimeout:void 0,$7=typeof clearTimeout=="function"?clearTimeout:void 0,ww=typeof Promise=="function"?Promise:void 0,Sw=typeof requestAnimationFrame=="function"?requestAnimationFrame:Nm,C7=typeof queueMicrotask=="function"?queueMicrotask:typeof ww<"u"?function(n){return ww.resolve(null).then(n).catch(T7)}:Nm;function T7(n){setTimeout(function(){throw n})}function xo(n){return n==="head"}function Ew(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),$l(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Bm(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Bm(i);for(var b=i.firstChild;b;){var $=b.nextSibling,N=b.nodeName;b[Qn]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=$}}else i==="body"&&Bm(n.ownerDocument.body);i=h}while(i);$l(a)}function $w(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 Cw(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 Tw(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 j7(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 Lm(n){var a=n.getBoundingClientRect(),i=getComputedStyle(n);return j7(a,i,n)}function R7(n){return n.documentElement.clientHeight}function A7(n){this.addEventListener("load",n),this.addEventListener("error",n)}function M7(n,a,i,c,h,b,$,N,V){var ae=a.nodeType===9?a:a.ownerDocument;try{var ce=ae.startViewTransition({update:function(){var ne=ae.defaultView,le=ne.navigation&&ne.navigation.transition,Ae=ae.fonts.status;c();var _e=[];if(Ae==="loaded"&&(R7(ae),ae.fonts.status==="loading"&&_e.push(ae.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+=Ww(ie),re>_f){_e.length=Ae;break}ie=new Promise(A7.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});ae.__reactViewTransition=ce;var be=[];return ce.ready.then(function(){for(var ne=ae.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){ae.__reactViewTransition===ce&&(ae.__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();ae.__reactViewTransition===ce&&(ae.__reactViewTransition=null),N()}),ce}catch{return c(),h(),$(),null}}function oi(n,a){this._scope=document.documentElement,this._selector="::view-transition-"+n+"("+a+")"}oi.prototype.animate=function(n,a){return a=typeof a=="number"?{duration:a}:D({},a),a.pseudoElement=this._selector,this._scope.animate(n,a)},oi.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},oi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function jw(n){return{name:n,group:new oi("group",n),imagePair:new oi("image-pair",n),old:new oi("old",n),new:new oi("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(Aw(b,n,a,i)===-1){var $=this,N=a;i!=null&&typeof i!="boolean"&&i.once===!0&&(N=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=bl(i),b.push({type:n,listener:a,optionsOrUseCapture:i,attachedListener:N,cleanup:h}),g(this._fragmentFiber.child,!1,z7,n,N,c)}this._eventListeners=b}};function z7(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=Aw(c,n,a,i),a!==-1)){var h=c[a];i=h.attachedListener;var b=h.cleanup;h=bl(h.optionsOrUseCapture),g(this._fragmentFiber.child,!1,N7,n,i,h),c.splice(a,1),b!==null&&b()}};function N7(n,a,i,c){return E(n).removeEventListener(a,i,c),!1}function bl(n){return n!=null&&typeof n!="boolean"&&(n.once===!0||n.signal instanceof AbortSignal)?{capture:n.capture,passive:n.passive}:n}function Rw(n){return n==null?"c=0":typeof n=="boolean"?"c="+(n?"1":"0"):"c="+(n.capture?"1":"0")}function Aw(n,a,i,c){if(n.length===0)return-1;c=Rw(c);for(var h=0;h<n.length;h++){var b=n[h];if(b.type===a&&b.listener===i&&Rw(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,bl(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,bl(b.optionsOrUseCapture));return a.removeChild(c),n}return a.dispatchEvent(n)},Zr.prototype.focus=function(n){g(this._fragmentFiber.child,!0,Mw,n,void 0,void 0)};function Mw(n,a){return n.tag===6?!1:(n=E(n),V7(n,a))}Zr.prototype.focusLast=function(n){var a=[];g(this._fragmentFiber.child,!0,Dm,a,void 0,void 0);for(var i=a.length-1;0<=i&&!Mw(a[i],n);i--);};function Dm(n,a){return a.push(n),!1}Zr.prototype.blur=function(){var n=k(this._fragmentFiber);n!==null&&(n=E(n),n=ou(n).activeElement,n!==null&&g(this._fragmentFiber.child,!1,L7,n,void 0,void 0))};function L7(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),g(this._fragmentFiber.child,!1,D7,n,void 0,void 0)};function D7(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),g(this._fragmentFiber.child,!1,O7,n,void 0,void 0);for(var i=a=0;i<Ia.length;i++){var c=Ia[i];c.fragmentInstance===this&&c.observer===n?n.unobserve(c.instance):Ia[a++]=c}Ia.length=a}};function O7(n,a){return n.tag===6||(n=E(n),a.unobserve(n)),!1}var Ia=[],Om=!1;function I7(n,a,i){Ia.push({fragmentInstance:n,observer:a,instance:i}),Om||(Om=!0,G7(function(){Om=!1;var c=Ia;Ia=[];for(var h=0;h<c.length;h++){var b=c[h];b.observer.unobserve(b.instance)}}))}Zr.prototype.getClientRects=function(){var n=[];return g(this._fragmentFiber.child,!1,_7,n,void 0,void 0),n};function _7(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=[];g(this._fragmentFiber.child,!1,Dm,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),N=h.compareDocumentPosition(n),V=$&Node.DOCUMENT_POSITION_CONTAINED_BY||N&Node.DOCUMENT_POSITION_CONTAINED_BY;return N=c&&b&&$&Node.DOCUMENT_POSITION_FOLLOWING&&N&Node.DOCUMENT_POSITION_PRECEDING,a=c&&a===n||b&&h===n||V||N?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||q7(a,this._fragmentFiber,i[0],i[i.length-1],n)?a:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function q7(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,M),a===null?a=!1:(g(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,M),a===null?a=!1:(g(a,!0,A,b,c),b=R,C=R=null,a=b!==null)),a):!1}function zw(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=[];g(this._fragmentFiber.child,!1,Dm,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),zw(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),zw(h,i)):E(h).scrollIntoView(n),c+=i?-1:1}};function P7(n,a){return n=E(n),Nw(n,a),!1}function Nw(n,a){n.reactFragments==null&&(n.reactFragments=new Set),n.reactFragments.add(a)}function Lw(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,bl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){for(var $=0,N=0;N<Ia.length;N++){var V=Ia[N];(V.fragmentInstance!==a||V.observer!==b||V.instance!==n)&&(Ia[$++]=V)}Ia.length=$,b.observe(n)}),Nw(n,a))}function B7(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,bl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){typeof b.rootMargin=="string"?I7(a,b,n):b.unobserve(n)}),n.reactFragments!=null&&n.reactFragments.delete(a))}function Im(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":Im(i),an(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function H7(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 F7(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 Dw(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 _m(n){return n.data==="$?"||n.data==="$~"}function qm(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function U7(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 Pm=null;function Ow(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 Iw(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 V7(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 G7(n){Sw(function(){Sw(function(a){return n(a)})})}function _w(n,a,i){switch(a=ou(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 qw(n,a,i){for(var c in i){var h=i[c];i.hasOwnProperty(c)&&h!=null&&Ot(n,a,c,null,v7,h)}i.dangerouslySetInnerHTML!=null&&(n.textContent=""),n.onclick===Qa&&(n.onclick=null),an(n)}function Bm(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);an(n)}var ga=new Map,Pw=new Set;function iu(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 Ns=pe.d;pe.d={f:K7,r:W7,D:Y7,C:X7,L:Z7,m:Q7,X:eM,S:J7,M:tM};function K7(){var n=Ns.f(),a=Rf();return n||a}function W7(n){var a=Ln(n);a!==null&&a.tag===5&&a.type==="form"?Hv(a):Ns.r(n)}var kl=typeof document>"u"?null:document;function Bw(n,a,i){var c=kl;if(c&&typeof a=="string"&&a){var h=fr(a);h='link[rel="'+n+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Pw.has(h)||(Pw.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 Y7(n){Ns.D(n),Bw("dns-prefetch",n,null)}function X7(n,a){Ns.C(n,a),Bw("preconnect",n,a)}function Z7(n,a,i){Ns.L(n,a,i);var c=kl;if(c&&n&&a){var h='link[rel="preload"][as="'+fr(a)+'"]';a==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+fr(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+fr(i.imageSizes)+'"]')):h+='[href="'+fr(n)+'"]';var b=h;switch(a){case"style":b=vl(n);break;case"script":b=wl(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(lu(b))||a==="script"&&c.querySelector(cu(b))))){var $=c.createElement("link");rr($,"link",n),a==="style"&&($[ot]=!0,$.onload=$.onerror=function(){sa($)}),tt($),c.head.appendChild($)}}}function Q7(n,a){Ns.m(n,a);var i=kl;if(i&&n){var c=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+fr(c)+'"][href="'+fr(n)+'"]',b=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=wl(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(cu(b)))return}c=i.createElement("link"),rr(c,"link",n),tt(c),i.head.appendChild(c)}}}function J7(n,a,i){Ns.S(n,a,i);var c=kl;if(c&&n){var h=Ur(c).hoistableStyles,b=vl(n);a=a||"default";var $=h.get(b);if(!$){var N={loading:0,preload:null};if($=c.querySelector(lu(b)))N.loading=5;else{n=D({rel:"stylesheet",href:n,"data-precedence":a},i),(i=ga.get(b))&&Hm(n,i);var V=$=c.createElement("link");tt(V),rr(V,"link",n),V._p=new Promise(function(ae,ce){V.onload=ae,V.onerror=ce}),V.addEventListener("load",function(){N.loading|=1}),V.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Of($,a,c)}$={type:"stylesheet",instance:$,count:1,state:N},h.set(b,$)}}}function eM(n,a){Ns.X(n,a);var i=kl;if(i&&n){var c=Ur(i).hoistableScripts,h=wl(n),b=c.get(h);b||(b=i.querySelector(cu(h)),b||(n=D({src:n,async:!0},a),(a=ga.get(h))&&Fm(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 tM(n,a){Ns.M(n,a);var i=kl;if(i&&n){var c=Ur(i).hoistableScripts,h=wl(n),b=c.get(h);b||(b=i.querySelector(cu(h)),b||(n=D({src:n,async:!0,type:"module"},a),(a=ga.get(h))&&Fm(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 Hw(n,a,i,c){var h=(h=et.current)?iu(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=vl(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=vl(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(lu(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)),nM(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=wl(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 vl(n){return'href="'+fr(n)+'"'}function lu(n){return'link[rel="stylesheet"]['+n+"]"}function Fw(n){return D({},n,{"data-precedence":n.precedence,precedence:null})}function nM(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 wl(n){return'[src="'+fr(n)+'"]'}function cu(n){return"script[async]"+n}function Uw(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+fr(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),Of(c,i.precedence,n),a.instance=c;case"stylesheet":h=vl(i.href);var b=n.querySelector(lu(h));if(b)return a.state.loading|=4,a.instance=b,tt(b),b;c=Fw(i),(h=ga.get(h))&&Hm(c,h),b=(n.ownerDocument||n).createElement("link"),tt(b);var $=b;return $._p=new Promise(function(N,V){$.onload=N,$.onerror=V}),rr(b,"link",c),a.state.loading|=4,Of(b,i.precedence,n),a.instance=b;case"script":return b=wl(i.src),(h=n.querySelector(cu(b)))?(a.instance=h,tt(h),h):(c=i,(h=ga.get(b))&&(c=D({},i),Fm(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,Of(c,i.precedence,n));return a.instance}function Of(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 N=c[$];if(N.dataset.precedence===a)b=N;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 Hm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Fm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var If=null;function Vw(n,a,i){if(If===null){var c=new Map,h=If=new Map;h.set(i,c)}else h=If,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 N=c.get($);N?N.push(b):c.set($,[b])}}return c}function Um(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function rM(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 Gw(n,a){return n==="img"&&a.src!=null&&a.src!==""&&a.onLoad==null&&a.loading!=="lazy"}function Kw(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ww(n){return(n.width||100)*(n.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Yw(n,a){typeof a.decode=="function"&&(n.imgCount++,a.complete||(n.imgBytes+=Ww(a),n.suspenseyImages.push(a)),n=oM.bind(n),a.decode().then(n,n))}function aM(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=vl(c.href),b=a.querySelector(lu(h));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=uu.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=b,tt(b);return}b=a.ownerDocument||a,c=Fw(c),(h=ga.get(h))&&Hm(c,h),b=b.createElement("link"),tt(b);var $=b;$._p=new Promise(function(N,V){$.onload=N,$.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=uu.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var _f=0;function sM(n,a){return n.stylesheets&&n.count===0&&Pf(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var c=setTimeout(function(){if(n.stylesheets&&Pf(n,n.stylesheets),n.unsuspend){var b=n.unsuspend;n.unsuspend=null,b()}},6e4+a);0<n.imgBytes&&_f===0&&(_f=62500*S7());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Pf(n,n.stylesheets),n.unsuspend)){var b=n.unsuspend;n.unsuspend=null,b()}},(n.imgBytes>_f?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function Xw(n){if(n.count===0&&(n.imgCount===0||!n.waitingForImages)){if(n.stylesheets)Pf(n,n.stylesheets);else if(n.unsuspend){var a=n.unsuspend;n.unsuspend=null,a()}}}function uu(){this.count--,Xw(this)}function oM(){this.imgCount--,Xw(this)}var qf=null;function Pf(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,qf=new Map,a.forEach(iM,n),qf=null,uu.call(n))}function iM(n,a){if(!(a.state.loading&4)){var i=qf.get(n);if(i)var c=i.get(null);else{i=new Map,qf.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=uu.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 Sl={$$typeof:U,Provider:null,Consumer:null,_currentValue:Re,_currentValue2:Re,_threadCount:0};function lM(n,a,i,c,h,b,$,N,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 Zw(n,a,i,c,h,b,$,N,V,ae,ce,be){return n=new lM(n,a,i,$,V,ae,ce,be,N),a=1,b===!0&&(a|=24),b=Tr(3,null,null,a),n.current=b,b.stateNode=n,a=sg(),a.refCount++,n.pooledCache=a,a.refCount++,b.memoizedState={element:c,isDehydrated:i,cache:a},cg(b),n}function Qw(n){return n?(n=Yi,n):Yi}function Jw(n,a,i,c,h,b){h=Qw(h),c.context===null?c.context=h:c.pendingContext=h,c=no(a),c.payload={element:i},b=b===void 0?null:b,b!==null&&(c.callback=b),i=ro(n,c,a),i!==null&&(Mr(i,n,a),Bc(i,n,a))}function eS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Vm(n,a){eS(n,a),(n=n.alternate)&&eS(n,a)}function tS(n){if(n.tag===13||n.tag===31){var a=Fo(n,67108864);a!==null&&Mr(a,n,67108864),Vm(n,67108864)}}function nS(n){if(n.tag===13||n.tag===31){var a=Xr();a=bt(a);var i=Fo(n,a);i!==null&&Mr(i,n,a),Vm(n,a)}}var El=!0;function cM(n,a,i,c){var h=te.T;te.T=null;var b=pe.p;try{pe.p=2,Gm(n,a,i,c)}finally{pe.p=b,te.T=h}}function uM(n,a,i,c){var h=te.T;te.T=null;var b=pe.p;try{pe.p=8,Gm(n,a,i,c)}finally{pe.p=b,te.T=h}}function Gm(n,a,i,c){if(El){var h=Km(c);if(h===null)Tm(n,a,c,Bf,i),aS(n,c);else if(fM(h,n,a,i,c))c.stopPropagation();else if(aS(n,c),a&4&&-1<dM.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 N=b;for(N.pendingLanes|=2,N.entangledLanes|=2;$;){var V=1<<31-Mn($);N.entanglements[1]|=V,$&=~V}ls(b),(Mt&6)===0&&(Cf=Ye()+500,ru(0))}}break;case 31:case 13:N=Fo(b,2),N!==null&&Mr(N,b,2),Rf(),Vm(b,2)}if(b=Km(c),b===null&&Tm(n,a,c,Bf,i),b===h)break;h=b}h!==null&&c.stopPropagation()}else Tm(n,a,c,null,i)}}function Km(n){return n=zx(n),Wm(n)}var Bf=null;function Wm(n){if(Bf=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=d(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 Bf=n,null}function rS(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 Jt:return 2;case un:return 8;case rn:case cr:return 32;case Za:return 268435456;default:return 32}default:return 32}}var Ym=!1,go=null,mo=null,yo=null,du=new Map,fu=new Map,bo=[],dM="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 aS(n,a){switch(n){case"focusin":case"focusout":go=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":yo=null;break;case"pointerover":case"pointerout":du.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":fu.delete(a.pointerId)}}function hu(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&&tS(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),n)}function fM(n,a,i,c,h){switch(a){case"focusin":return go=hu(go,n,a,i,c,h),!0;case"dragenter":return mo=hu(mo,n,a,i,c,h),!0;case"mouseover":return yo=hu(yo,n,a,i,c,h),!0;case"pointerover":var b=h.pointerId;return du.set(b,hu(du.get(b)||null,n,a,i,c,h)),!0;case"gotpointercapture":return b=h.pointerId,fu.set(b,hu(fu.get(b)||null,n,a,i,c,h)),!0}return!1}function sS(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,Ra(n.priority,function(){nS(i)});return}}else if(a===31){if(a=d(i),a!==null){n.blockedOn=a,Ra(n.priority,function(){nS(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 Hf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=Km(n.nativeEvent);if(i===null){i=n.nativeEvent;var c=new i.constructor(i.type,i);Mx=c,i.target.dispatchEvent(c),Mx=null}else return a=Ln(i),a!==null&&tS(a),n.blockedOn=i,!1;a.shift()}return!0}function oS(n,a,i){Hf(n)&&i.delete(a)}function hM(){Ym=!1,go!==null&&Hf(go)&&(go=null),mo!==null&&Hf(mo)&&(mo=null),yo!==null&&Hf(yo)&&(yo=null),du.forEach(oS),fu.forEach(oS)}function Ff(n,a){n.blockedOn===a&&(n.blockedOn=null,Ym||(Ym=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,hM)))}var Uf=null;function iS(n){Uf!==n&&(Uf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Uf===n&&(Uf=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(Wm(c||i)===null)continue;break}var b=Ln(i);b!==null&&(n.splice(a,3),a-=3,Ag(b,{pending:!0,data:h,method:i.method,action:c},c,h))}}))}function $l(n){function a(V){return Ff(V,n)}go!==null&&Ff(go,n),mo!==null&&Ff(mo,n),yo!==null&&Ff(yo,n),du.forEach(a),fu.forEach(a);for(var i=0;i<bo.length;i++){var c=bo[i];c.blockedOn===n&&(c.blockedOn=null)}for(;0<bo.length&&(i=bo[0],i.blockedOn===null);)sS(i),i.blockedOn===null&&bo.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")$||iS(i);else if($){var N=null;if(b&&b.hasAttribute("formAction")){if(h=b,$=b[Yt]||null)N=$.formAction;else if(Wm(h)!==null)continue}else N=$.action;typeof N=="function"?i[c+1]=N:(i.splice(c,3),c-=3),iS(i)}}}function lS(){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 Xm(n){this._internalRoot=n}Vf.prototype.render=Xm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,c=Xr();Jw(i,c,n,a,null,null)},Vf.prototype.unmount=Xm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Jw(n.current,2,null,n,null,null),Rf(),a[wn]=null}};function Vf(n){this._internalRoot=n}Vf.prototype.unstable_scheduleHydration=function(n){if(n){var a=Nn();n={blockedOn:null,target:n,priority:a};for(var i=0;i<bo.length&&a!==0&&a<bo[i].priority;i++);bo.splice(i,0,n),i===0&&sS(n)}};var cS=t.version;if(cS!=="19.3.1")throw Error(s(527,cS,"19.3.1"));pe.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?y(n):null,n=n===null?null:n.stateNode,n};var pM={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gf.isDisabled&&Gf.supportsFiber)try{Xn=Gf.inject(pM),Gt=Gf}catch{}}return xu.createRoot=function(n,a){if(!o(n))throw Error(s(299));var i=!1,c="",h=Qv,b=Jv,$=e2;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=Zw(n,1,!1,null,null,i,c,null,h,b,$,lS),n[wn]=a.current,Cm(n),new Xm(a)},xu.hydrateRoot=function(n,a,i){if(!o(n))throw Error(s(299));var c=!1,h="",b=Qv,$=Jv,N=e2,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&&(N=i.onRecoverableError),i.formState!==void 0&&(V=i.formState)),a=Zw(n,1,!0,a,i??null,c,h,V,b,$,N,lS),a.context=Qw(null),i=a.current,c=Xr(),c=bt(c),h=no(c),h.callback=null,ro(i,h,c),i=c,a.current.lanes=i,Fe(a,i),ls(a),n[wn]=a.current,Cm(n),new Vf(a)},xu.version="19.3.1",xu}var bS;function CM(){if(bS)return Jm.exports;bS=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(),Jm.exports=$M(),Jm.exports}var c3=CM();const u3=x.createContext(void 0),qr=e=>{const t=x.useContext(u3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TM=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(u3.Provider,{value:e,children:t})),jM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var RM=class{#e=jM;#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 pi=new RM;function AM(e){setTimeout(e,0)}const MM=typeof window>"u"||"Deno"in globalThis;function wr(){}function zM(e,t){return typeof e=="function"?e(t):e}function d3(e){return typeof e=="number"&&e>=0&&e!==1/0}function f3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function kS(e,t){const{type:r="all",exact:s,fetchStatus:o,predicate:l,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==pb(u,t.options))return!1}else if(!ec(t.queryKey,u))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||l&&!l(t))}function vS(e,t){const{exact:r,status:s,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Si(t.options.mutationKey)!==Si(l))return!1}else if(!ec(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function pb(e,t){return(t?.queryKeyHashFn||Si)(e)}function Si(e){return JSON.stringify(e,(t,r)=>f1(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function ec(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(!ec(e[s],t[s]))return!1;return!0}const r=Object.keys(t);for(const s of r)if(!ec(e[s],t[s]))return!1;return!0}return!1}const NM=Object.prototype.hasOwnProperty;function h3(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=wS(e)&&wS(t);if(!s&&!(f1(e)&&f1(t)))return t;const o=(s?e:Object.keys(e)).length,l=s?t:Object.keys(t),u=l.length,d=s?new Array(u):{};let f=0;for(let p=0;p<u;p++){const y=s?p:l[p],g=e[y],k=t[y];if(g===k){d[y]=g,(s?p<o:NM.call(e,y))&&f++;continue}if(g===null||k===null||typeof g!="object"||typeof k!="object"){d[y]=k;continue}const v=h3(g,k,r+1);d[y]=v,v===g&&f++}return o===u&&f===o?e:d}function Ah(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 wS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function f1(e){if(!SS(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!(!SS(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function SS(e){return Object.prototype.toString.call(e)==="[object Object]"}function LM(e){return new Promise(t=>{pi.setTimeout(t,e)})}function h1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?h3(e,t):t}function DM(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function OM(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}const xb=Symbol();function p3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function gb(e,t){return typeof e=="function"?e(...t):!!e}function IM(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 _M=()=>MM;const mb=()=>_M();var xc=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(){}},qM=class extends xc{#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 yb=new qM,PM=AM;function BM(){let e=[],t=0,r=d=>{d()},s=d=>{d()},o=PM;const l=d=>{t?e.push(d):o(()=>{r(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{s(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||u()}return f},batchCalls:d=>(...f)=>{l(()=>{d(...f)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}const _n=BM();var HM=class extends xc{#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 Kh=new HM;function FM(e){return Math.min(1e3*2**e,3e4)}function x3(e){return(e??"online")==="online"?Kh.isOnline():!0}var p1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function g3(e){let t=!1,r=0,s,o="pending",l,u;const d=new Promise((C,T)=>{l=C,u=T});d.catch(wr);const f=()=>o!=="pending",p=C=>{if(!f()){const T=new p1(C);S(T),e.onCancel?.(T)}},y=()=>{t=!0},g=()=>{t=!1},k=()=>yb.isFocused()&&(e.networkMode==="always"||Kh.isOnline())&&e.canRun(),v=()=>x3(e.networkMode)&&e.canRun(),w=C=>{f()||(s?.(),o="resolved",l(C))},S=C=>{f()||(s?.(),o="rejected",u(C))},E=C=>new Promise(T=>{s=A=>{(f()||C())&&T(A)},e.onPause?.()}).then(()=>{s=void 0,f()||e.onContinue?.()}),R=()=>{if(f())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(f())return;const M=e.retry??(mb()?0:3),L=e.retryDelay??FM,D=typeof L=="function"?L(r,A):L,j=M===!0||typeof M=="number"&&r<M||typeof M=="function"&&M(r,A);if(t||!j){S(A);return}r++,e.onFail?.(r,A),LM(D).then(()=>k()?void 0:E(k)).then(()=>{t?S(A):R()})})};return{promise:d,status:()=>o,cancel:p,continue:()=>(s?.(),d),cancelRetry:y,continueRetry:g,canStart:v,start:()=>(v()?R():E(v).then(R),d)}}var m3=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d3(this.gcTime)&&(this.#e=pi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(pi.clearTimeout(this.#e),this.#e=void 0)}};function UM(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 d={pages:[],pageParams:[]},f=0;const p=async()=>{let y=!1;const g=w=>{IM(w,()=>t.signal,()=>y=!0)},k=p3(t.options,t.fetchOptions),v=async(w,S,E)=>{if(y)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 g(L),L})(),T=await k(C),{maxPages:A}=t.options,M=E?OM:DM;return{pages:M(w.pages,T,A),pageParams:M(w.pageParams,S,A)}};if(o&&l.length){const w=o==="backward",S=w?VM:ES,E={pages:l,pageParams:u};d=await v(E,S(s,E),w)}else{const w=e??l.length;do{const S=f===0?u[0]===void 0?s.initialPageParam:u[0]:ES(s,d);if(f>0&&S==null)break;d=await v(d,S),f++}while(f<w)}return d};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 ES(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 VM(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var GM=class extends m3{#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=CS(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=CS(this.options);t.data!==void 0&&(this.setState($S(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=h1(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(wr).catch(wr):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=>nn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>nn(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:!f3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#l||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},o=()=>{const f=p3(this.options,t),y=(()=>{const g={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#l=!1,this.options.persister?this.options.persister(f,y,this):f(y)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return s(f),f})();(this.#e==="infinite"?UM(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const d=this.#a=g3({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof p1&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(f,p)=>{this.#i({type:"failed",failureCount:f,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 f=await d.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof p1){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.#a===d&&(this.#a=void 0),this.scheduleGc()}}#i(e){const t=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,...y3(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...$S(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 y3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:x3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $S(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function CS(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 KM=class extends xc{#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),TS(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return x1(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return x1(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 nn(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&&!Ah(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&jS(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(t.enabled,this.#t)||nn(this.options.staleTime,this.#t)!==nn(t.staleTime,this.#t))&&this.#g();const o=this.#m();s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(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 Ah(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(d=>{d.type==="updated"&&d.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(wr)),t}#x(e){return!mb()&&nn(this.options.enabled,this.#t)!==!1&&d3(e)}#g(){this.#k();const e=nn(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#x(e))return;const t=f3(this.#r.dataUpdatedAt,e)+1;this.#u=pi.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#m(){return nn(this.options.refetchInterval,this.#t)??!1}#y(e){this.#v(),this.#c=e,!(this.#c===0||!this.#x(this.#c))&&(this.#d=pi.setInterval(()=>{(this.options.refetchIntervalInBackground||yb.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#y(this.#m())}#k(){this.#u!==void 0&&(pi.clearTimeout(this.#u),this.#u=void 0)}#v(){this.#d!==void 0&&(pi.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,d=e!==r?e.state:this.#n,{state:f}=e;let p={...f},y=!1,g;if(t._optimisticResults){const M=this.hasListeners(),L=!M&&TS(e,t),D=M&&jS(e,r,t,s);(L||D)&&(p={...p,...y3(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:k,errorUpdatedAt:v,status:w}=p;g=p.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&w==="pending"){let M;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(M=o.data,S=!0):M=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,M!==void 0&&(w="success",g=h1(o?.data,M,t),y=!0)}if(t.select&&g!==void 0&&!S)if(o&&g===l?.data&&t.select===this.#l)g=this.#i;else try{this.#l=t.select,g=t.select(g),g=h1(o?.data,g,t),this.#i=g,this.#o=null}catch(M){this.#o=M}else g===void 0&&(this.#o=null);this.#o&&(k=this.#o,g=this.#i,v=Date.now(),w="error",y=!1);const E=p.fetchStatus==="fetching",R=w==="pending",C=w==="error",T=R&&E,A=g!==void 0;return{status:w,fetchStatus:p.fetchStatus,isPending:R,isSuccess:w==="success",isError:C,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:p.dataUpdatedAt,error:k,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:E,isRefetching:E&&!R,isLoadingError:C&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&A,isStale:bb(e,t),refetch:this.refetch,isEnabled:nn(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),Ah(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(d=>{const f=d;return this.#r[f]!==e[f]&&u.has(f)})})();_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 WM(e,t){return nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&nn(t.retryOnMount,e)===!1)}function TS(e,t){return WM(e,t)||e.state.data!==void 0&&x1(e,t,t.refetchOnMount)}function x1(e,t,r){if(nn(t.enabled,e)!==!1&&nn(t.staleTime,e)!=="static"){const s=nn(r,e);return s==="always"||s!==!1&&bb(e,t)}return!1}function jS(e,t,r,s){return(e!==t||nn(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bb(e,r)}function bb(e,t){return nn(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}var YM=class extends m3{#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||b3(),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=g3({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,d)=>{this.#s({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),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 d=await this.options.onMutate?.(e,r);d!==this.state.context&&this.#s({type:"pending",context:d,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(d){Promise.reject(d)}try{await this.options.onError?.(u,e,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:u}),u}finally{this.#r===s&&(this.#r=void 0),this.#n.runNext(this)}}#s(e){const t=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 b3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XM=class extends xc{#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 YM({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=Kf(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=Kf(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=Kf(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=Kf(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=>vS(t,r))}findAll(e={}){return this.getAll().filter(t=>vS(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(wr))))}};function Kf(e){return e.options.scope?.id}var ZM=class extends xc{#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),Ah(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Si(r.mutationKey)!==Si(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??b3();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)})})}},QM=class extends xc{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,r){const s=t.queryKey,o=t.queryHash??pb(s,t);let l=this.get(o);return l||(l=new GM({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=>kS(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>kS(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()})})}},JM=class{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e={}){this.#e=e.queryCache||new QM,this.#t=e.mutationCache||new XM,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=yb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=Kh.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(nn(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=zM(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(wr).catch(wr)}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(wr)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(wr)}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(nn(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(nn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wr).catch(wr)}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(wr).catch(wr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Kh.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(Si(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{ec(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set(Si(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(s=>{ec(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=pb(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===xb&&(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 k3=x.createContext(!1),e8=()=>x.useContext(k3);k3.Provider;function t8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const n8=x.createContext(t8()),r8=()=>x.useContext(n8),a8=(e,t,r)=>{const s=r?.state.status==="error"&&typeof e.throwOnError=="function"?gb(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&(t.isReset()||(e.retryOnMount=!1))},s8=e=>{x.useEffect(()=>{e.clearReset()},[e])},o8=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||gb(r,[e.error,s])),i8=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))}},l8=(e,t)=>e?.suspense&&t.isPending,c8=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function u8(e,t,r){const s=e8(),o=r8(),l=qr(),u=l.defaultQueryOptions(e),d=l.getQueryCache().get(u.queryHash),f=e.subscribed!==!1;u._optimisticResults=s?"isRestoring":f?"optimistic":void 0,i8(u),a8(u,o,d),s8(o);const[p]=x.useState(()=>new t(l,u)),y=p.getOptimisticResult(u),g=!s&&f;if(x.useSyncExternalStore(x.useCallback(k=>{const v=g?p.subscribe(_n.batchCalls(k)):wr;return p.updateResult(),v},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(u)},[u,p]),l8(u,y))throw c8(u,p,o);if(o8({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw y.error;return u.notifyOnChangeProps?y:p.trackResult(y)}function ms(e,t){return u8(e,KM)}function Er(e,t){const r=qr(),[s]=x.useState(()=>new ZM(r,e));x.useEffect(()=>{s.setOptions(e)},[s,e]);const o=x.useSyncExternalStore(x.useCallback(u=>s.subscribe(_n.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=x.useCallback((...u)=>{s.mutate(u[0],u[1]).catch(wr)},[s]);if(o.error&&gb(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}var v3=e=>{throw TypeError(e)},w3=(e,t,r)=>t.has(e)||v3("Cannot "+r),ba=(e,t,r)=>(w3(e,t,"read from private field"),r?r.call(e):t.get(e)),ju=(e,t,r)=>t.has(e)?v3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),cs=(e,t,r,s)=>(w3(e,t,"write to private field"),t.set(e,r),r),zp=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Np=/^[\\/]{2}/;function S3(e,t){return t+e.replace(/\\/g,"/")}var RS="popstate";function AS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function d8(e={}){function t(o,l){let{pathname:u="/",search:d="",hash:f=""}=Ya(o.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Gu("",{pathname:u,search:d,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){let u=o.document.querySelector("base"),d="";if(u&&u.getAttribute("href")){let f=o.location.href,p=f.indexOf("#");d=p===-1?f:f.slice(0,p)}return d+"#"+(typeof l=="string"?l:$r(l))}function s(o,l){ln(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return h8(t,r,s,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ln(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function f8(){return Math.random().toString(36).substring(2,10)}function MS(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 Gu(e,t,r=null,s,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ya(t):t,state:r,key:t&&t.key||s||f8(),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 Ya(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 h8(e,t,r,s={}){let{window:o=document.defaultView,v5Compat:l=!1}=s,u=o.history,d="POP",f=null,p=y();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function y(){return(u.state||{idx:null}).idx}function g(){d="POP";let E=y(),R=E==null?null:E-p;p=E,f&&f({action:d,location:S.location,delta:R})}function k(E,R){d="PUSH";let C=AS(E)?E:Gu(S.location,E,R);r&&r(C,E),p=y()+1;let T=MS(C,p),A=S.createHref(C.mask||C);try{u.pushState(T,"",A)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(A)}l&&f&&f({action:d,location:S.location,delta:1})}function v(E,R){d="REPLACE";let C=AS(E)?E:Gu(S.location,E,R);r&&r(C,E),p=y();let T=MS(C,p),A=S.createHref(C.mask||C);u.replaceState(T,"",A),l&&f&&f({action:d,location:S.location,delta:0})}function w(E){return E3(o,E)}let S={get action(){return d},get location(){return e(o,u)},listen(E){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(RS,g),f=E,()=>{o.removeEventListener(RS,g),f=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 E3(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&&Np.test(o)&&(o=s+o),new URL(o,s)}var Ru,zS=class{constructor(e){if(ju(this,Ru,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ba(this,Ru).has(e))return ba(this,Ru).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ba(this,Ru).set(e,t)}};Ru=new WeakMap;var p8=new Set(["lazy","caseSensitive","path","id","index","children"]);function x8(e){return p8.has(e)}var g8=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function m8(e){return g8.has(e)}function y8(e){return e.index===!0}function Ku(e,t,r=[],s={},o=!1){return e.map((l,u)=>{let d=[...r,String(u)],f=typeof l.id=="string"?l.id:d.join("-");if(ht(l.index!==!0||!l.children,"Cannot specify children on an index route"),ht(o||!s[f],`Found a route id collision on id "${f}". Route id's must be globally unique within Data Router usages`),y8(l)){let p={...l,id:f};return s[f]=NS(p,t(p)),p}else{let p={...l,id:f,children:void 0};return s[f]=NS(p,t(p)),l.children&&(p.children=Ku(l.children,t,d,s,o)),p}})}function NS(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function $3(e,t,r="/"){return Ba(e,t,r,!1)}function Ba(e,t,r,s,o){let l=typeof t=="string"?Ya(t):t,u=$a(l.pathname||"/",r);if(u==null)return null;let d=o??Mh(e),f=null,p=R8(u);for(let y=0;f==null&&y<d.length;++y)f=j8(d[y],p,s);return f}function C3(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 Mh(e){let t=T3(e);return b8(t),t}function T3(e,t=[],r=[],s="",o=!1){let l=(u,d,f=o,p)=>{let y={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&f)return;ht(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let g=Sa([s,y.relativePath]),k=r.concat(y);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 "${g}".`),T3(u.children,t,k,g,f)),!(u.path==null&&!u.index)&&t.push({path:g,score:C8(g,u.index),routesMeta:k.map((v,w)=>{let[S,E]=A3(v.relativePath,v.caseSensitive,w===k.length-1);return{...v,matcher:S,compiledParams:E}})})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))l(u,d);else for(let f of j3(u.path))l(u,d,!0,f)}),t}function j3(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=j3(s.join("/")),d=[];return d.push(...u.map(f=>f===""?l:[l,f].join("/"))),o&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function b8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:T8(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var k8=/^:[\w-]+$/,v8=3,w8=2,S8=1,E8=10,$8=-2,LS=e=>e==="*";function C8(e,t){let r=e.split("/"),s=r.length;return r.some(LS)&&(s+=$8),t&&(s+=w8),r.filter(o=>!LS(o)).reduce((o,l)=>o+(k8.test(l)?v8:l===""?S8:E8),s)}function T8(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 j8(e,t,r=!1){let{routesMeta:s}=e,o={},l="/",u=[];for(let d=0;d<s.length;++d){let f=s[d],p=d===s.length-1,y=l==="/"?t:t.slice(l.length)||"/",g={path:f.relativePath,caseSensitive:f.caseSensitive,end:p},k=f.matcher&&f.compiledParams?R3(g,y,f.matcher,f.compiledParams):Wh(g,y),v=f.route;if(!k&&p&&r&&!s[s.length-1].route.index&&(k=Wh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},y)),!k)return null;Object.assign(o,k.params),u.push({params:o,pathname:Sa([l,k.pathname]),pathnameBase:z8(Sa([l,k.pathnameBase])),route:v}),k.pathnameBase!=="/"&&(l=Sa([l,k.pathnameBase]))}return u}function Wh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=A3(e.path,e.caseSensitive,e.end);return R3(e,t,r,s)}function R3(e,t,r,s){let o=t.match(r);if(!o)return null;let l=o[0],u=tc(l,1),d=o.slice(1);return{params:s.reduce((p,{paramName:y,isOptional:g},k)=>{if(y==="*"){let w=d[k]||"";u=tc(l.slice(0,l.length-w.length),1)}const v=d[k];return g&&!v?p[y]=void 0:p[y]=(v||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:e}}function A3(e,t=!1,r=!0){ln(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,d,f,p,y)=>{if(s.push({paramName:d,isOptional:f!=null}),f){let g=y.charAt(p+u.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 R8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ln(!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 $a(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 A8({basename:e,pathname:t}){return t==="/"?e:Sa([e,t])}var kb=e=>zp.test(e);function M8(e,t="/"){let{pathname:r,search:s="",hash:o=""}=typeof e=="string"?Ya(e):e,l;return r?(r=vb(r),r.startsWith("/")||r.startsWith("\\")?l=DS(r.substring(1),"/"):l=DS(r,t)):l=t,{pathname:l,search:N8(s),hash:L8(o)}}function DS(e,t){let r=tc(t).split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ry(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 M3(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lp(e){let t=M3(e);return t.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase)}function cd(e,t,r,s=!1){let o;typeof e=="string"?o=Ya(e):(o={...e},ht(!o.pathname||!o.pathname.includes("?"),ry("?","pathname","search",o)),ht(!o.pathname||!o.pathname.includes("#"),ry("#","pathname","hash",o)),ht(!o.search||!o.search.includes("#"),ry("#","search","hash",o)));let l=e===""||o.pathname==="",u=l?"/":o.pathname,d;if(u==null)d=r;else{let g=t.length-1;if(!s&&u.startsWith("..")){let k=u.split("/");for(;k[0]==="..";)k.shift(),g-=1;o.pathname=k.join("/")}d=g>=0?t[g]:"/"}let f=M8(o,d),p=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(p||y)&&(f.pathname+="/"),f}var vb=e=>e.replace(/[\\/]{2,}/g,"/"),Sa=e=>vb(e.join("/"));function tc(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 z8=e=>tc(e).replace(/^\/*/,"/"),N8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,D8=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ud=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 Wu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function dd(e){let t=e.map(r=>r.route.path).filter(Boolean);return Sa(t)||"/"}var z3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N3(e,t){let r=e;if(typeof r!="string"||!zp.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,o=!1;if(z3)try{let l=new URL(window.location.href),u=Np.test(r)?new URL(S3(r,l.protocol)):new URL(r),d=$a(u.pathname,t);u.origin===l.origin&&d!=null?r=d+u.search+u.hash:o=!0}catch{ln(!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 Ro=Symbol("Uninstrumented");function O8(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 d of u)l[d]&&r[d].push(l[d])}}));let s={};if(typeof t.lazy=="function"&&r.lazy.length>0){let o=ql(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],d=r[`lazy.${l}`];if(typeof u=="function"&&d.length>0){let f=ql(d,u,()=>{});f&&(s.lazy=Object.assign(s.lazy||{},{[l]:f}))}})}return["loader","action"].forEach(o=>{let l=t[o];if(typeof l=="function"&&r[o].length>0){let u=l[Ro]??l,d=ql(r[o],u,(...f)=>OS(f[0]));d&&(o==="loader"&&u.hydrate===!0&&(d.hydrate=!0),d[Ro]=u,s[o]=d)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(s.middleware=t.middleware.map(o=>{let l=o[Ro]??o,u=ql(r.middleware,l,(...d)=>OS(d[0]));return u?(u[Ro]=l,u):o})),s}function I8(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[Ro]??e.navigate,o=ql(r.navigate,s,(...l)=>{let[u,d]=l;return{to:typeof u=="number"||typeof u=="string"?u:u?$r(u):".",...IS(e,d??{})}});o&&(o[Ro]=s,e.navigate=o)}if(r.fetch.length>0){let s=e.fetch[Ro]??e.fetch,o=ql(r.fetch,s,(...l)=>{let[u,,d,f]=l;return{href:d??".",fetcherKey:u,...IS(e,f??{})}});o&&(o[Ro]=s,e.fetch=o)}return e}function ql(e,t,r){return e.length===0?null:async(...s)=>{let o=await L3(e,r(...s),()=>t(...s),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function L3(e,t,r,s){let o=e[s],l;if(o){let u,d=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=L3(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(d,t)}catch(f){console.error("An instrumentation function threw an error:",f)}u||await d(),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 OS(e){let{request:t,context:r,params:s,pattern:o}=e;return{request:_8(t),params:{...s},pattern:o,context:q8(r)}}function IS(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 _8(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function q8(e){if(B8(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var P8=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function B8(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")===P8}var _S=new URL("http://localhost");function wb(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),_S)}catch{return _S}}function ay(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function H8(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 Fl(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&&!ay(o,r),d=!ay(l,r);if(s==="reject"){if(u||d)throw new Error("External navigation is not allowed")}else if(d&&(o==null||!H8(e,o)||!ay(o,l)))throw new Error("External navigation is not allowed")}var D3=["POST","PUT","PATCH","DELETE"],F8=new Set(D3),U8=["GET",...D3],V8=new Set(U8),O3=new Set([301,302,303,307,308]),G8=new Set([307,308]),sy={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},K8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},W8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),I3="remix-router-transitions",_3=Symbol("ResetLoaderData"),fi,Dl,$o,Ol,Y8=class{constructor(e){ju(this,fi),ju(this,Dl),ju(this,$o),ju(this,Ol),cs(this,fi,e),cs(this,Dl,Mh(e))}get stableRoutes(){return ba(this,fi)}get activeRoutes(){return ba(this,$o)??ba(this,fi)}get branches(){return ba(this,Ol)??ba(this,Dl)}get hasHMRRoutes(){return ba(this,$o)!=null}setRoutes(e){cs(this,fi,e),cs(this,Dl,Mh(e))}setHmrRoutes(e){cs(this,$o,e),cs(this,Ol,Mh(e))}commitHmrRoutes(){ba(this,$o)&&(cs(this,fi,ba(this,$o)),cs(this,Dl,ba(this,Ol)),cs(this,$o,void 0),cs(this,Ol,void 0))}};fi=new WeakMap;Dl=new WeakMap;$o=new WeakMap;Ol=new WeakMap;function X8(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||W8,l=o;if(e.instrumentations){let K=e.instrumentations;l=W=>({...o(W),...O8(K.map(se=>se.route).filter(Boolean),W)})}let u={},d=new Y8(Ku(e.routes,l,void 0,u)),f=e.basename||"/";f.startsWith("/")||(f=`/${f}`);let p=e.dataStrategy||tz,y={...e.future},g=null,k=new Set,v=null,w=null,S=null,E=null,R=e.hydrationData!=null,C=Ba(d.activeRoutes,e.history.location,f,!1,d.branches),T=!1,A=null,M,L;if(C==null&&!e.patchRoutesOnNavigation){let K=ka(404,{pathname:e.history.location.pathname}),{matches:W,route:se}=Wf(d.activeRoutes);M=!0,L=!M,C=W,A={[se.id]:K}}else if(C&&!e.hydrationData&&Xn(C,d.activeRoutes,e.history.location.pathname).active&&(C=null),C)if(C.some(K=>K.route.lazy))M=!1,L=!M;else if(!C.some(K=>Sb(K.route)))M=!0,L=!M;else{let K=e.hydrationData?e.hydrationData.loaderData:null,W=e.hydrationData?e.hydrationData.errors:null,se=C;if(W){let ge=C.findIndex(ke=>W[ke.route.id]!==void 0);se=se.slice(0,ge+1)}L=!1,M=!0,se.forEach(ge=>{let ke=q3(ge.route,K,W);L=L||ke.renderFallback,M=M&&!ke.shouldLoad})}else{M=!1,L=!M,C=[];let K=Xn(null,d.activeRoutes,e.history.location.pathname);K.active&&K.matches&&(T=!0,C=K.matches)}let D,j={historyAction:e.history.action,location:e.history.location,matches:C,initialized:M,renderFallback:L,navigation:sy,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},I="POP",z=null,H=!1,F,B=!1,q=new Map,U=null,_=!1,P=!1,G=new Set,Y=new Map,X=0,ee=-1,Q=new Map,oe=new Set,O=new Map,Z=new Map,de=new Set,ue=new Map,ve,xe=null;function $e(){if(g=e.history.listen(({action:K,location:W,delta:se})=>{if(ve){ve(),ve=void 0;return}ln(ue.size===0||se!=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:W,historyAction:K});if(ge&&se!=null){let ke=new Promise(Ie=>{ve=Ie});e.history.go(se*-1),Jt(ge,{state:"blocked",location:W,proceed(){Jt(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:W}),ke.then(()=>e.history.go(se))},reset(){let Ie=new Map(j.blockers);Ie.set(ge,gu),Re({blockers:Ie})}}),z?.resolve(),z=null;return}return je(K,W)}),r){kz(t,q);let K=()=>vz(t,q);t.addEventListener("pagehide",K),U=()=>t.removeEventListener("pagehide",K)}return j.initialized||je("POP",j.location,{initialHydration:!0}),D}function te(){g&&g(),U&&U(),k.clear(),F&&F.abort(),j.fetchers.forEach((K,W)=>gn(j.fetchers,W)),j.blockers.forEach((K,W)=>Le(W))}function pe(K){if(k.add(K),v){let{newErrors:W}=v;v=null,K(j,{deletedFetchers:[],newErrors:W,viewTransitionOpts:void 0,flushSync:!1})}return()=>k.delete(K)}function Re(K,W={}){K.matches&&(K.matches=K.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,...K};let se=[],ge=[];j.fetchers.forEach((ke,Ie)=>{ke.state==="idle"&&(de.has(Ie)?se.push(Ie):ge.push(Ie))}),de.forEach(ke=>{!j.fetchers.has(ke)&&!Y.has(ke)&&se.push(ke)}),k.size===0&&(v={newErrors:K.errors??null}),[...k].forEach(ke=>ke(j,{deletedFetchers:se,newErrors:K.errors??null,viewTransitionOpts:W.viewTransitionOpts,flushSync:W.flushSync===!0})),se.forEach(ke=>gn(j.fetchers,ke)),ge.forEach(ke=>j.fetchers.delete(ke))}function Te(K,W,{flushSync:se}={}){let ge=j.actionData!=null&&j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&j.navigation.state==="loading"&&K.state?._isRedirect!==!0,ke;W.actionData?Object.keys(W.actionData).length>0?ke=W.actionData:ke=null:ge?ke=j.actionData:ke=null;let Ie=W.loaderData?WS(j.loaderData,W.loaderData,W.matches||[],W.errors):j.loaderData,De=j.blockers;De.size>0&&(De=new Map(De),De.forEach((Be,Ze)=>De.set(Ze,gu)));let Se=_?!1:Br(K,W.matches||j.matches),ze=H===!0||j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&K.state?._isRedirect!==!0;d.commitHmrRoutes(),_||I==="POP"||(I==="PUSH"?e.history.push(K,K.state):I==="REPLACE"&&e.history.replace(K,K.state));let Ke;if(I==="POP"&&!_&&K!==j.location){let Be=q.get(j.location.pathname);Be&&Be.has(K.pathname)?Ke={currentLocation:j.location,nextLocation:K}:q.has(K.pathname)&&(Ke={currentLocation:K,nextLocation:j.location})}else if(B){let Be=q.get(j.location.pathname);Be?Be.add(K.pathname):(Be=new Set([K.pathname]),q.set(j.location.pathname,Be)),Ke={currentLocation:j.location,nextLocation:K}}Re({...W,actionData:ke,loaderData:Ie,historyAction:I,location:K,initialized:!0,renderFallback:!1,navigation:sy,revalidation:"idle",restoreScrollPosition:Se,preventScrollReset:ze,blockers:De},{viewTransitionOpts:Ke,flushSync:se===!0}),I="POP",H=!1,B=!1,_=!1,P=!1,z?.resolve(),z=null,xe?.resolve(),xe=null}async function Ce(K,W){if(z?.resolve(),z=null,typeof K=="number"){z||(z=QS());let At=z.promise;return e.history.go(K),At}let se=g1(j.location,j.matches,f,K,W?.fromRouteId,W?.relative),{path:ge,submission:ke,error:Ie}=qS(!1,se,W),De;if(W?.mask){let At=typeof W.mask=="string"?Ya(W.mask):{...j.location.mask,...W.mask};if(De={pathname:At.pathname??"",search:At.search??"",hash:At.hash??""},Np.test(De.pathname))throw new Error("External navigation is not allowed");De.pathname.startsWith("\\")&&(De.pathname=De.pathname.replace(/^\\+/,"/")),Fl(typeof W.mask=="string"?W.mask:$r(W.mask),$r(De),e.history.createURL("/"),"reject")}let Se=j.location,ze=Gu(Se,ge,W&&W.state,void 0,De);ze={...ze,...e.history.encodeLocation(ze)},Fl(K==null?e.history.createHref(j.location):typeof K=="string"?K:$r(K),e.history.createHref(ze.mask||ze),e.history.createURL("/"),"reject");let Ke=W&&W.replace!=null?W.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=W&&"preventScrollReset"in W?W.preventScrollReset===!0:void 0,Fe=(W&&W.flushSync)===!0,wt=un({currentLocation:Se,nextLocation:ze,historyAction:Be});if(wt){Jt(wt,{state:"blocked",location:ze,proceed(){Jt(wt,{state:"proceeding",proceed:void 0,reset:void 0,location:ze}),Ce(K,W)},reset(){let At=new Map(j.blockers);At.set(wt,gu),Re({blockers:At})}});return}await je(Be,ze,{submission:ke,pendingError:Ie,preventScrollReset:Ze,replace:W&&W.replace,enableViewTransition:W&&W.viewTransition,flushSync:Fe,callSiteDefaultShouldRevalidate:W&&W.defaultShouldRevalidate})}function Me(){xe||(xe=QS()),ct(),Re({revalidation:"loading"});let K=xe.promise;return j.navigation.state==="submitting"?K:j.navigation.state==="idle"?(je(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),K):(je(I||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:B===!0}),K)}async function je(K,W,se){F&&F.abort(),F=null,I=K,_=(se&&se.startUninterruptedRevalidation)===!0,Cr(j.location,j.matches),H=(se&&se.preventScrollReset)===!0,B=(se&&se.enableViewTransition)===!0;let ge=d.activeRoutes,ke=se?.initialHydration&&j.matches&&j.matches.length>0&&!T?j.matches:Ba(ge,W,f,!1,d.branches),Ie=(se&&se.flushSync)===!0;if(ke&&j.initialized&&!P&&uz(j.location,W)&&!(se&&se.submission&&lr(se.submission.formMethod))){Te(W,{matches:ke},{flushSync:Ie});return}let De=Xn(ke,ge,W.pathname);if(De.active&&De.matches&&(ke=De.matches),!ke){let{error:$t,notFoundMatches:bt,route:mn}=rn(W.pathname);Te(W,{matches:bt,loaderData:{},errors:{[mn.id]:$t}},{flushSync:Ie});return}let Se=se&&se.overrideNavigation?{...se.overrideNavigation,matches:ke,historyAction:K}:void 0;F=new AbortController;let ze=Il(e.history,W,F.signal,se&&se.submission),Ke=e.getContext?await e.getContext():new zS,Be;if(se&&se.pendingError)Be=[To(ke).route.id,{type:"error",error:se.pendingError}];else if(se&&se.submission&&lr(se.submission.formMethod)){let $t=await He(ze,W,se.submission,ke,K,Ke,De.active,se&&se.initialHydration===!0,{replace:se.replace,flushSync:Ie});if($t.shortCircuited)return;if($t.pendingActionResult){let[bt,mn]=$t.pendingActionResult;if(ta(mn)&&Wu(mn.error)&&mn.error.status===404){F=null,Te(W,{matches:$t.matches,loaderData:{},errors:{[bt]:mn.error}});return}}ke=$t.matches||ke,Be=$t.pendingActionResult,Se=oy(W,ke,K,se.submission),Ie=!1,De.active=!1,ze=Il(e.history,ze.url,ze.signal)}let{shortCircuited:Ze,matches:Fe,loaderData:wt,errors:At,workingFetchers:Ft}=await at(ze,W,ke,K,Ke,De.active,Se,se&&se.submission,se&&se.fetcherSubmission,se&&se.replace,se&&se.initialHydration===!0,Ie,Be,se&&se.callSiteDefaultShouldRevalidate);Ze||(F=null,Te(W,{matches:Fe||ke,...YS(Be),loaderData:wt,errors:At,...Ft?{fetchers:Ft}:{}}))}async function He(K,W,se,ge,ke,Ie,De,Se,ze={}){ct();let Ke=yz(W,ge,ke,se);if(Re({navigation:Ke},{flushSync:ze.flushSync===!0}),De){let Fe=await Gt(ge,W.pathname,K.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){if(Fe.partialMatches.length===0){let{matches:At,route:Ft}=Wf(d.activeRoutes);return{matches:At,pendingActionResult:[Ft.id,{type:"error",error:Fe.error}]}}let wt=To(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,pendingActionResult:[wt,{type:"error",error:Fe.error}]}}else if(Fe.matches)ge=Fe.matches;else{let{notFoundMatches:wt,error:At,route:Ft}=rn(W.pathname);return{matches:wt,pendingActionResult:[Ft.id,{type:"error",error:At}]}}}let Be,Ze=zh(ge,W);if(!Ze.route.action&&!Ze.route.lazy)Be={type:"error",error:ka(405,{method:K.method,pathname:W.pathname,routeId:Ze.route.id})};else{let Fe=Ul(l,u,K,W,ge,Ze,Se?[]:s,Ie),wt=await lt(K,W,Fe,Ie,null);if(Be=wt[Ze.route.id],!Be){for(let At of ge)if(wt[At.route.id]){Be=wt[At.route.id];break}}if(K.signal.aborted)return{shortCircuited:!0}}if(xi(Be)){let Fe;return ze&&ze.replace!=null?Fe=ze.replace:Fe=VS(Be.response.headers.get("Location"),new URL(K.url),f,e.history)===j.location.pathname+j.location.search,await rt(K,Be,!0,{submission:se,replace:Fe}),{shortCircuited:!0}}if(ta(Be)){let Fe=To(ge,Ze.route.id);return(ze&&ze.replace)!==!0&&(I="PUSH"),{matches:ge,pendingActionResult:[Fe.route.id,Be,Ze.route.id]}}return{matches:ge,pendingActionResult:[Ze.route.id,Be]}}async function at(K,W,se,ge,ke,Ie,De,Se,ze,Ke,Be,Ze,Fe,wt){let At=De||oy(W,se,ge,Se),Ft=Se||ze||ZS(At),$t=!_&&!Be;if(Ie){if($t){let an=pt(Fe);Re({navigation:At,...an!==void 0?{actionData:an}:{}},{flushSync:Ze})}let ot=await Gt(se,W.pathname,K.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:dn,route:Ln}=Wf(d.activeRoutes);return{matches:dn,loaderData:{},errors:{[Ln.id]:ot.error}}}let an=To(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[an]:ot.error}}}else if(ot.matches)se=ot.matches;else{let{error:an,notFoundMatches:dn,route:Ln}=rn(W.pathname);return{matches:dn,loaderData:{},errors:{[Ln.id]:an}}}}let bt=d.activeRoutes,{dsMatches:mn,revalidatingFetchers:Nn}=PS(K,ke,l,u,e.history,j,se,Ft,W,Be?[]:s,Be===!0,P,G,de,O,oe,bt,f,e.patchRoutesOnNavigation!=null,d.branches,Fe,wt);if(ee=++X,!e.dataStrategy&&!mn.some(ot=>ot.shouldLoad)&&!mn.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&Nn.length===0){let ot=new Map(j.fetchers),an=Qt(ot);return Te(W,{matches:se,loaderData:{},errors:Fe&&ta(Fe[1])?{[Fe[0]]:Fe[1].error}:null,...YS(Fe),...an?{fetchers:ot}:{}},{flushSync:Ze}),{shortCircuited:!0}}if($t){let ot={};if(!Ie){ot.navigation=At;let an=pt(Fe);an!==void 0&&(ot.actionData=an)}Nn.length>0&&(ot.fetchers=et(Nn)),Re(ot,{flushSync:Ze})}Nn.forEach(ot=>{Vt(ot.key),ot.controller&&Y.set(ot.key,ot.controller)});let Ra=()=>Nn.forEach(ot=>Vt(ot.key));F&&F.signal.addEventListener("abort",Ra);let{loaderResults:vn,fetcherResults:Bt}=await st(mn,Nn,K,W,ke);if(K.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Ra),Nn.forEach(ot=>Y.delete(ot.key));let Yt=Yf(vn);if(Yt)return await rt(K,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};if(Yt=Yf(Bt),Yt)return oe.add(Yt.key),await rt(K,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};let wn=new Map(j.fetchers),{loaderData:Zn,errors:Hr}=KS(j,se,vn,Fe,Nn,Bt,wn);Be&&j.errors&&(Hr={...j.errors,...Hr});let Fr=Qt(wn),bs=kn(ee,wn),Qn=Fr||bs||Nn.length>0;return{matches:se,loaderData:Zn,errors:Hr,...Qn?{workingFetchers:wn}:{}}}function pt(K){if(K&&!ta(K[1]))return{[K[0]]:K[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function et(K){let W=new Map(j.fetchers);return K.forEach(se=>{let ge=W.get(se.key),ke=mu(void 0,ge?ge.data:void 0);W.set(se.key,ke)}),W}async function Ve(K,W,se,ge){Vt(K);let ke=(ge&&ge.flushSync)===!0,Ie=d.activeRoutes,De=g1(j.location,j.matches,f,se,W,ge?.relative),Se=Ba(Ie,De,f,!1,d.branches),ze=Xn(Se,Ie,De);if(ze.active&&ze.matches&&(Se=ze.matches),!Se){Ge(K,W,ka(404,{pathname:De}),{flushSync:ke});return}let{path:Ke,submission:Be,error:Ze}=qS(!0,De,ge);if(Ze){Ge(K,W,Ze,{flushSync:ke});return}let Fe=e.getContext?await e.getContext():new zS,wt=(ge&&ge.preventScrollReset)===!0;if(Be&&lr(Be.formMethod)){await yt(K,W,Ke,Se,Fe,ze.active,ke,wt,Be,ge&&ge.defaultShouldRevalidate);return}O.set(K,{routeId:W,path:Ke}),await Pe(K,W,Ke,Se,Fe,ze.active,ke,wt,Be)}async function yt(K,W,se,ge,ke,Ie,De,Se,ze,Ke){ct(),O.delete(K);let Be=j.fetchers.get(K);we(K,bz(ze,Be),{flushSync:De});let Ze=new AbortController,Fe=Il(e.history,se,Ze.signal,ze);if(Ie){let tt=await Gt(ge,new URL(Fe.url).pathname,Fe.signal,K);if(tt.type==="aborted")return;if(tt.type==="error"){Ge(K,W,tt.error,{flushSync:De});return}else if(tt.matches)ge=tt.matches;else{Ge(K,W,ka(404,{pathname:se}),{flushSync:De});return}}let wt=zh(ge,se);if(!wt.route.action&&!wt.route.lazy){let tt=ka(405,{method:ze.formMethod,pathname:se,routeId:W});Ge(K,W,tt,{flushSync:De});return}Y.set(K,Ze);let At=X,Ft=Ul(l,u,Fe,se,ge,wt,s,ke),$t=await lt(Fe,se,Ft,ke,K),bt=$t[wt.route.id];if(!bt){for(let tt of Ft)if($t[tt.route.id]){bt=$t[tt.route.id];break}}if(Fe.signal.aborted){Y.get(K)===Ze&&Y.delete(K);return}if(de.has(K)){if(xi(bt)||ta(bt)){we(K,fs(void 0));return}}else{if(xi(bt))if(Y.delete(K),ee>At){we(K,fs(void 0));return}else return oe.add(K),we(K,mu(ze)),rt(Fe,bt,!1,{fetcherSubmission:ze,preventScrollReset:Se});if(ta(bt)){Ge(K,W,bt.error);return}}let mn=j.navigation.location||j.location,Nn=Il(e.history,mn,Ze.signal),Ra=d.activeRoutes,vn=j.navigation.state!=="idle"?Ba(Ra,j.navigation.location,f,!1,d.branches):j.matches;ht(vn,"Didn't find any matches after fetcher action");let Bt=++X;Q.set(K,Bt);let{dsMatches:Yt,revalidatingFetchers:wn}=PS(Nn,ke,l,u,e.history,j,vn,ze,mn,s,!1,P,G,de,O,oe,Ra,f,e.patchRoutesOnNavigation!=null,d.branches,[wt.route.id,bt],Ke),Zn=mu(ze,bt.data),Hr=new Map(j.fetchers);Hr.set(K,Zn),wn.filter(tt=>tt.key!==K).forEach(tt=>{let sa=tt.key,_o=Hr.get(sa),qo=mu(void 0,_o?_o.data:void 0);Hr.set(sa,qo),Vt(sa),tt.controller&&Y.set(sa,tt.controller)}),Re({fetchers:Hr});let Fr=()=>wn.forEach(tt=>Vt(tt.key));Ze.signal.addEventListener("abort",Fr);let{loaderResults:bs,fetcherResults:Qn}=await st(Yt,wn,Nn,mn,ke);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",Fr),Q.delete(K),Y.delete(K),wn.forEach(tt=>Y.delete(tt.key));let ot=j.fetchers.has(K),an=tt=>{if(!ot)return tt;let sa=new Map(tt.fetchers);return sa.set(K,fs(bt.data)),{...tt,fetchers:sa}},dn=Yf(bs);if(dn)return j=an(j),rt(Nn,dn.result,!1,{preventScrollReset:Se});if(dn=Yf(Qn),dn)return oe.add(dn.key),j=an(j),rt(Nn,dn.result,!1,{preventScrollReset:Se});let Ln=new Map(j.fetchers);ot&&Ln.set(K,fs(bt.data));let{loaderData:Aa,errors:Ur}=KS(j,vn,bs,void 0,wn,Qn,Ln);kn(Bt,Ln),j.navigation.state==="loading"&&Bt>ee?(ht(I,"Expected pending action"),F&&F.abort(),Te(j.navigation.location,{matches:vn,loaderData:Aa,errors:Ur,fetchers:Ln})):(Re({errors:Ur,loaderData:WS(j.loaderData,Aa,vn,Ur),fetchers:Ln}),P=!1)}async function Pe(K,W,se,ge,ke,Ie,De,Se,ze){let Ke=j.fetchers.get(K);we(K,mu(ze,Ke?Ke.data:void 0),{flushSync:De});let Be=new AbortController,Ze=Il(e.history,se,Be.signal);if(Ie){let bt=await Gt(ge,new URL(Ze.url).pathname,Ze.signal,K);if(bt.type==="aborted")return;if(bt.type==="error"){Ge(K,W,bt.error,{flushSync:De});return}else if(bt.matches)ge=bt.matches;else{Ge(K,W,ka(404,{pathname:se}),{flushSync:De});return}}let Fe=zh(ge,se);Y.set(K,Be);let wt=X,At=Ul(l,u,Ze,se,ge,Fe,s,ke),Ft=await lt(Ze,se,At,ke,K),$t=Ft[Fe.route.id];if(!$t){for(let bt of ge)if(Ft[bt.route.id]){$t=Ft[bt.route.id];break}}if(Y.get(K)===Be&&Y.delete(K),!Ze.signal.aborted){if(de.has(K)){we(K,fs(void 0));return}if(xi($t))if(ee>wt){we(K,fs(void 0));return}else{oe.add(K),await rt(Ze,$t,!1,{preventScrollReset:Se});return}if(ta($t)){Ge(K,W,$t.error);return}we(K,fs($t.data))}}async function rt(K,W,se,{submission:ge,fetcherSubmission:ke,preventScrollReset:Ie,replace:De}={}){se||(z?.resolve(),z=null),W.response.headers.has("X-Remix-Revalidate")&&(P=!0);let Se=W.response.headers.get("Location");ht(Se,"Expected a Location header on the redirect Response");let ze=Se,Ke=new URL(K.url);Se=VS(Se,Ke,f,e.history),Fl(ze,Se,Ke,"allow-explicit");let Be=Gu(j.location,Se,{_isRedirect:!0});if(r){let $t=!1;if(W.response.headers.has("X-Remix-Reload-Document"))$t=!0;else if(kb(Se)){const bt=E3(t,Se,!0);$t=bt.origin!==t.location.origin||$a(bt.pathname,f)==null}if($t){De?t.location.replace(Se):t.location.assign(Se);return}}F=null;let Ze=De===!0||W.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Fe,formAction:wt,formEncType:At}=j.navigation;!ge&&!ke&&Fe&&wt&&At&&(ge=ZS(j.navigation));let Ft=ge||ke;if(G8.has(W.response.status)&&Ft&&lr(Ft.formMethod))await je(Ze,Be,{submission:{...Ft,formAction:Se},preventScrollReset:Ie||H,enableViewTransition:se?B:void 0});else{let $t=oy(Be,[],Ze,ge);await je(Ze,Be,{overrideNavigation:$t,fetcherSubmission:ke,preventScrollReset:Ie||H,enableViewTransition:se?B:void 0})}}async function lt(K,W,se,ge,ke){let Ie,De={};try{Ie=await rz(p,K,W,se,ke,ge,!1)}catch(Se){return se.filter(ze=>ze.shouldLoad).forEach(ze=>{De[ze.route.id]={type:"error",error:Se}}),De}if(K.signal.aborted)return De;if(!lr(K.method))for(let Se of se){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,ze]of Object.entries(Ie))if(pz(ze)){let Ke=ze.result;De[Se]={type:"redirect",response:iz(Ke,K,Se,se,f)}}else De[Se]=await oz(ze);return De}async function st(K,W,se,ge,ke){let Ie=lt(se,ge,K,ke,null),De=Promise.all(W.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,ze=(await De).reduce((Ke,Be)=>Object.assign(Ke,Be),{});return{loaderResults:Se,fetcherResults:ze}}function ct(){P=!0,O.forEach((K,W)=>{Y.has(W)&&G.add(W),Vt(W)})}function we(K,W,se={}){let ge=new Map(j.fetchers);ge.set(K,W),Re({fetchers:ge},{flushSync:(se&&se.flushSync)===!0})}function Ge(K,W,se,ge={}){let ke=To(j.matches,W),Ie=new Map(j.fetchers);gn(Ie,K),Re({errors:{[ke.route.id]:se},fetchers:Ie},{flushSync:(ge&&ge.flushSync)===!0})}function Pt(K){return Z.set(K,(Z.get(K)||0)+1),de.has(K)&&de.delete(K),j.fetchers.get(K)||K8}function bn(K,W){Vt(K,W?.reason),we(K,fs(null))}function gn(K,W){let se=j.fetchers.get(W);Y.has(W)&&!(se&&se.state==="loading"&&Q.has(W))&&Vt(W),O.delete(W),Q.delete(W),oe.delete(W),de.delete(W),G.delete(W),K.delete(W)}function An(K){let W=(Z.get(K)||0)-1;W<=0?(Z.delete(K),de.add(K)):Z.set(K,W),Re({fetchers:new Map(j.fetchers)})}function Vt(K,W){let se=Y.get(K);se&&(se.abort(W),Y.delete(K))}function Yn(K,W){for(let se of K){let ge=W.get(se);ht(ge,`Expected fetcher: ${se}`);let ke=fs(ge.data);W.set(se,ke)}}function Qt(K){let W=[],se=!1;for(let ge of oe){let ke=K.get(ge);ht(ke,`Expected fetcher: ${ge}`),ke.state==="loading"&&(oe.delete(ge),W.push(ge),se=!0)}return Yn(W,K),se}function kn(K,W){let se=[];for(let[ge,ke]of Q)if(ke<K){let Ie=W.get(ge);ht(Ie,`Expected fetcher: ${ge}`),Ie.state==="loading"&&(Vt(ge),Q.delete(ge),se.push(ge))}return Yn(se,W),se.length>0}function Ye(K,W){let se=j.blockers.get(K)||gu;return ue.get(K)!==W&&ue.set(K,W),se}function Le(K){j.blockers.delete(K),ue.delete(K)}function Jt(K,W){let se=j.blockers.get(K)||gu;ht(se.state==="unblocked"&&W.state==="blocked"||se.state==="blocked"&&W.state==="blocked"||se.state==="blocked"&&W.state==="proceeding"||se.state==="blocked"&&W.state==="unblocked"||se.state==="proceeding"&&W.state==="unblocked",`Invalid blocker state transition: ${se.state} -> ${W.state}`);let ge=new Map(j.blockers);ge.set(K,W),Re({blockers:ge})}function un({currentLocation:K,nextLocation:W,historyAction:se}){if(ue.size===0)return;ue.size>1&&ln(!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:K,nextLocation:W,historyAction:se}))return ke}function rn(K){let W=ka(404,{pathname:K}),se=d.activeRoutes,{matches:ge,route:ke}=Wf(se);return{notFoundMatches:ge,route:ke,error:W}}function cr(K,W,se){if(w=K,E=W,S=se||null,!R&&j.navigation===sy){R=!0;let ge=Br(j.location,j.matches);ge!=null&&Re({restoreScrollPosition:ge})}return()=>{w=null,E=null,S=null}}function Za(K,W){return S&&S(K,W.map(ge=>C3(ge,j.loaderData)))||K.key}function Cr(K,W){if(w&&E){let se=Za(K,W);w[se]=E()}}function Br(K,W){if(w){let se=Za(K,W),ge=w[se];if(typeof ge=="number")return ge}return null}function Xn(K,W,se){if(e.patchRoutesOnNavigation){let ge=d.branches;if(K){if(Object.keys(K[0].params).length>0)return{active:!0,matches:Ba(W,se,f,!0,ge)}}else return{active:!0,matches:Ba(W,se,f,!0,ge)||[]}}return{active:!1,matches:null}}async function Gt(K,W,se,ge){if(!e.patchRoutesOnNavigation)return{type:"success",matches:K};let ke=K;for(;;){let Ie=u;try{await e.patchRoutesOnNavigation({signal:se,path:W,matches:ke,fetcherKey:ge,patch:(Ke,Be)=>{se.aborted||BS(Ke,Be,d,Ie,l,!1)}})}catch(Ke){return{type:"error",error:Ke,partialMatches:ke}}if(se.aborted)return{type:"aborted"};let De=d.branches,Se=Ba(d.activeRoutes,W,f,!1,De),ze=null;if(Se){if(Object.keys(Se[0].params).length===0)return{type:"success",matches:Se};if(ze=Ba(d.activeRoutes,W,f,!0,De),!(ze&&ke.length<ze.length&&ur(ke,ze.slice(0,ke.length))))return{type:"success",matches:Se}}if(ze||(ze=Ba(d.activeRoutes,W,f,!0,De)),!ze||ur(ke,ze))return{type:"success",matches:null};ke=ze}}function ur(K,W){return K.length===W.length&&K.every((se,ge)=>se.route.id===W[ge].route.id)}function Mn(K){u={},d.setHmrRoutes(Ku(K,l,void 0,u))}function zn(K,W,se=!1){BS(K,W,d,u,l,se),d.hasHMRRoutes||Re({})}return D={get basename(){return f},get future(){return y},get state(){return j},get routes(){return d.stableRoutes},get branches(){return d.branches},get manifest(){return u},get window(){return t},initialize:$e,subscribe:pe,enableScrollRestoration:cr,navigate:Ce,fetch:Ve,revalidate:Me,createHref:K=>e.history.createHref(K),createURL:K=>e.history.createURL(K),encodeLocation:K=>e.history.encodeLocation(K),getFetcher:Pt,resetFetcher:bn,deleteFetcher:An,dispose:te,getBlocker:Ye,deleteBlocker:Le,patchRoutes:zn,_internalFetchControllers:Y,_internalSetRoutes:Mn,_internalSetStateDoNotUseOrYouWillBreakYourApp(K){Re(K)}},e.instrumentations&&(D=I8(D,e.instrumentations.map(K=>K.router).filter(Boolean))),D}function Z8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function g1(e,t,r,s,o,l){let u,d;if(o){u=[];for(let p of t)if(u.push(p),p.route.id===o){d=p;break}}else u=t,d=t[t.length-1];let f=cd(s||".",Lp(u),$a(e.pathname,r)||e.pathname,l==="path");if(s==null&&(f.search=e.search,f.hash=e.hash),(s==null||s===""||s===".")&&d){let p=$b(f.search);if(d.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&p){let y=new URLSearchParams(f.search),g=y.getAll("index");y.delete("index"),g.filter(v=>v).forEach(v=>y.append("index",v));let k=y.toString();f.search=k?`?${k}`:""}}return r!=="/"&&(f.pathname=A8({basename:r,pathname:f.pathname})),$r(f)}function qS(e,t,r){if(!r||!Z8(r))return{path:t};if(r.formMethod&&!mz(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=G3(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!lr(l))return s();let g=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:g}}}else if(r.formEncType==="application/json"){if(!lr(l))return s();try{let g=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:g,text:void 0}}}catch{return s()}}}ht(typeof FormData=="function","FormData is not available in this environment");let d,f;if(r.formData)d=b1(r.formData),f=r.formData;else if(r.body instanceof FormData)d=b1(r.body),f=r.body;else if(r.body instanceof URLSearchParams)d=r.body,f=GS(d);else if(r.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(r.body),f=GS(d)}catch{return s()}let p={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(lr(p.formMethod))return{path:t,submission:p};let y=Ya(t);return e&&y.search&&$b(y.search)&&d.append("index",""),y.search=`?${d}`,{path:$r(y),submission:p}}function PS(e,t,r,s,o,l,u,d,f,p,y,g,k,v,w,S,E,R,C,T,A,M){let L=A?ta(A[1])?A[1].error:A[1].data:void 0,D=o.createURL(l.location),j=o.createURL(f),I;if(y&&l.errors){let _=Object.keys(l.errors)[0];I=u.findIndex(P=>P.route.id===_)}else if(A&&ta(A[1])){let _=A[0];I=u.findIndex(P=>P.route.id===_)-1}let z=A?A[1].statusCode:void 0,H=z&&z>=400,F={currentUrl:D,currentParams:l.matches[0]?.params||{},nextUrl:j,nextParams:u[0].params,...d,actionResult:L,actionStatus:z},B=dd(u),q=u.map((_,P)=>{let{route:G}=_,Y=null;if(I!=null&&P>I)Y=!1;else if(G.lazy)Y=!0;else if(!Sb(G))Y=!1;else if(y){let{shouldLoad:oe}=q3(G,l.loaderData,l.errors);Y=oe}else Q8(l.loaderData,l.matches[P],_)&&(Y=!0);if(Y!==null)return m1(r,s,e,f,B,_,p,t,Y);let X=!1;typeof M=="boolean"?X=M:H?X=!1:(g||D.pathname+D.search===j.pathname+j.search||D.search!==j.search||J8(l.matches[P],_))&&(X=!0);let ee={...F,defaultShouldRevalidate:X},Q=Iu(_,ee);return m1(r,s,e,f,B,_,p,t,Q,ee,M)}),U=[];return w.forEach((_,P)=>{if(y||!u.some(Z=>Z.route.id===_.routeId)||v.has(P))return;let G=l.fetchers.get(P),Y=G&&G.state!=="idle"&&G.data===void 0,X=Ba(E,_.path,R??"/",!1,T);if(!X){if(C&&Y)return;U.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(S.has(P))return;let ee=zh(X,_.path),Q=new AbortController,oe=Il(o,_.path,Q.signal),O=null;if(k.has(P))k.delete(P),O=Ul(r,s,oe,_.path,X,ee,p,t);else if(Y)g&&(O=Ul(r,s,oe,_.path,X,ee,p,t));else{let Z;typeof M=="boolean"?Z=M:H?Z=!1:Z=g;let de={...F,defaultShouldRevalidate:Z};Iu(ee,de)&&(O=Ul(r,s,oe,_.path,X,ee,p,t,de))}O&&U.push({key:P,routeId:_.routeId,path:_.path,matches:O,match:ee,request:oe,controller:Q})}),{dsMatches:q,revalidatingFetchers:U}}function Sb(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function q3(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Sb(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 Q8(e,t,r){let s=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return s||o}function J8(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Iu(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function BS(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 d=[],f=[];if(t.forEach(p=>{let y=u.find(g=>P3(p,g));y?f.push({existingRoute:y,newRoute:p}):d.push(p)}),d.length>0){let p=Ku(d,o,[e||"_","patch",String(u?.length||"0")],s);u.push(...p)}if(l&&f.length>0)for(let p=0;p<f.length;p++){let{existingRoute:y,newRoute:g}=f[p],k=y,[v]=Ku([g],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 P3(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=>P3(r,o)))??!1:!1}var HS=new WeakMap,B3=({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=HS.get(o);u||(u={},HS.set(o,u));let d=u[e];if(d)return d;let f=(async()=>{let p=x8(e),g=o[e]!==void 0&&e!=="hasErrorBoundary";if(p)ln(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(g)ln(!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]=f,f},FS=new WeakMap;function ez(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 y=FS.get(l);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let g=(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=m8(w),C=l[w]!==void 0&&w!=="hasErrorBoundary";E?ln(!E,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?ln(!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 FS.set(l,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let u=Object.keys(e.lazy),d=[],f;for(let y of u){if(o&&o.includes(y))continue;let g=B3({key:y,route:e,manifest:r,mapRouteProperties:s});g&&(d.push(g),y===t&&(f=g))}let p=d.length>0?Promise.all(d).then(()=>{}):void 0;return p?.catch(()=>{}),f?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:f}}async function US(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 tz(e){return e.matches.some(t=>t.route.middleware)?H3(e,()=>US(e)):US(e)}function H3(e,t){return nz(e,t,s=>{if(gz(s))throw s;return s},fz,r);function r(s,o,l){if(l)return Promise.resolve(Object.assign(l.value,{[o]:{type:"error",result:s}}));{let{matches:u}=e,d=Math.min(Math.max(u.findIndex(p=>p.route.id===o),0),Math.max(u.findIndex(p=>p.shouldCallHandler()),0)),f=To(u,u[d].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:s}})}}}async function nz(e,t,r,s,o){let{matches:l,...u}=e,d=l.flatMap(p=>p.route.middleware?p.route.middleware.map(y=>[p.route.id,y]):[]);return await F3(u,d,t,r,s,o)}async function F3(e,t,r,s,o,l,u=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let f=t[u];if(!f)return await r();let[p,y]=f,g,k=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");try{return g={value:await F3(e,t,r,s,o,l,u+1)},g.value}catch(v){return g={value:await l(v,p,g)},g.value}};try{let v=await y(e,k),w=v!=null?s(v):void 0;return o(w)?w:g?w??g.value:(g={value:await k()},g.value)}catch(v){return await l(v,p,g)}}function U3(e,t,r,s,o){let l=B3({key:"middleware",route:s.route,manifest:t,mapRouteProperties:e}),u=ez(s.route,lr(r.method)?"action":"loader",t,e,o);return{middleware:l,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function m1(e,t,r,s,o,l,u,d,f,p=null,y){let g=!1,k=U3(e,t,r,l,u);return{...l,_lazyPromises:k,shouldLoad:f,shouldRevalidateArgs:p,shouldCallHandler(v){return g=!0,p?typeof y=="boolean"?Iu(l,{...p,defaultShouldRevalidate:y}):typeof v=="boolean"?Iu(l,{...p,defaultShouldRevalidate:v}):Iu(l,p):f},resolve(v){let{lazy:w,loader:S,middleware:E}=l.route,R=g||f||v&&!lr(r.method)&&(w||S),C=E&&E.length>0&&!S&&!w;return R&&(lr(r.method)||!C)?az({request:r,path:s,pattern:o,match:l,lazyHandlerPromise:k?.handler,lazyRoutePromise:k?.route,handlerOverride:v,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function Ul(e,t,r,s,o,l,u,d,f=null){return o.map(p=>p.route.id!==l.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:f,shouldCallHandler:()=>!1,_lazyPromises:U3(e,t,r,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:m1(e,t,r,s,dd(o),p,u,d,!0,f))}async function rz(e,t,r,s,o,l,u){s.some(y=>y._lazyPromises?.middleware)&&await Promise.all(s.map(y=>y._lazyPromises?.middleware));let d={request:t,url:V3(t,r),pattern:dd(s),params:s[0].params,context:l,matches:s},p=await e({...d,fetcherKey:o,runClientMiddleware:y=>{let g=d;return H3(g,()=>y({...g,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return p}async function az({request:e,path:t,pattern:r,match:s,lazyHandlerPromise:o,lazyRoutePromise:l,handlerOverride:u,scopedContext:d}){let f,p,y=lr(e.method),g=y?"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 "${g}" [routeId: ${s.route.id}]`)):v({request:e,url:V3(e,t),pattern:r,params:s.params,context:d},...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=y?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;f=S}else{await o;let w=y?s.route.action:s.route.loader;if(w)[f]=await Promise.all([k(w),l]);else if(g==="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)f=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 f}async function sz(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 oz(e){let{result:t,type:r}=e;if(Eb(t)){let s;try{s=await sz(t)}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new ud(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:"data",data:s,statusCode:t.status,headers:t.headers}}return r==="error"?XS(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:dz(t),statusCode:Wu(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Wu(t)?t.status:void 0}:XS(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 iz(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"),!kb(l)){let u=s.slice(0,s.findIndex(d=>d.route.id===r)+1);l=g1(new URL(t.url),u,o,l),e.headers.set("Location",l)}return e}var lz=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function y1(e){try{return lz.includes(new URL(e).protocol)}catch{return!1}}function VS(e,t,r,s){if(kb(e)){let o=e,l=Np.test(o)?new URL(S3(o,t.protocol)):new URL(o);if(y1(l.toString()))throw new Error("Invalid redirect location");let u=$a(l.pathname,r)!=null;if(l.origin===t.origin&&u)return vb(l.pathname)+l.search+l.hash}try{let o=s.createURL(e);if(y1(o.toString()))throw new Error("Invalid redirect location")}catch{}return e}function Il(e,t,r,s){let o=e.createURL(G3(t)).toString(),l={signal:r};if(s&&lr(s.formMethod)){let{formMethod:u,formEncType:d}=s;l.method=u.toUpperCase(),d==="application/json"?(l.headers=new Headers({"Content-Type":d}),l.body=JSON.stringify(s.json)):d==="text/plain"?l.body=s.text:d==="application/x-www-form-urlencoded"&&s.formData?l.body=b1(s.formData):l.body=s.formData}return new Request(o,l)}function V3(e,t){let r=new URL(e.url),s=typeof t=="string"?Ya(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 b1(e){let t=new URLSearchParams;for(let[r,s]of e.entries())t.append(r,typeof s=="string"?s:s.name);return t}function GS(e){let t=new FormData;for(let[r,s]of e.entries())t.append(r,s);return t}function cz(e,t,r,s=!1,o=!1){let l={},u=null,d,f=!1,p={},y=r&&ta(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let k=g.route.id,v=t[k];if(ht(!xi(v),"Cannot handle redirect results in processLoaderData"),ta(v)){let w=v.error;if(y!==void 0&&(w=y,y=void 0),u=u||{},o)u[k]=w;else{let S=To(e,k);u[S.route.id]==null&&(u[S.route.id]=w)}s||(l[k]=_3),f||(f=!0,d=Wu(v.error)?v.error.status:500),v.headers&&(p[k]=v.headers)}else l[k]=v.data,v.statusCode&&v.statusCode!==200&&!f&&(d=v.statusCode),v.headers&&(p[k]=v.headers)}),y!==void 0&&r&&(u={[r[0]]:y},r[2]&&(l[r[2]]=void 0)),{loaderData:l,errors:u,statusCode:d||200,loaderHeaders:p}}function KS(e,t,r,s,o,l,u){let{loaderData:d,errors:f}=cz(t,r,s);return o.filter(p=>!p.matches||p.matches.some(y=>y.shouldLoad)).forEach(p=>{let{key:y,match:g,controller:k}=p;if(k&&k.signal.aborted)return;let v=l[y];if(ht(v,"Did not find corresponding fetcher result"),ta(v)){let w=To(e.matches,g?.route.id);f&&f[w.route.id]||(f={...f,[w.route.id]:v.error}),u.delete(y)}else if(xi(v))ht(!1,"Unhandled fetcher revalidation redirect");else{let w=fs(v.data);u.set(y,w)}}),{loaderData:d,errors:f}}function WS(e,t,r,s){let o=Object.entries(t).filter(([,l])=>l!==_3).reduce((l,[u,d])=>(l[u]=d,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 YS(e){return e?ta(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function To(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 Wf(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",d="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&t&&r?d=`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"&&(d="Unable to encode submission body")):e===403?(u="Forbidden",d=`Route "${r}" does not match URL "${t}"`):e===404?(u="Not Found",d=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",s&&t&&r?d=`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&&(d=`Invalid request method "${s.toUpperCase()}"`)),new ud(e||500,u,new Error(d),!0)}function Yf(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[s,o]=t[r];if(xi(o))return{key:s,result:o}}}function G3(e){let t=typeof e=="string"?Ya(e):e;return $r({...t,hash:""})}function uz(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function dz(e){return new ud(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function fz(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&hz(r))}function hz(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function pz(e){return Eb(e.result)&&O3.has(e.result.status)}function ta(e){return e.type==="error"}function xi(e){return(e&&e.type)==="redirect"}function XS(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Eb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function xz(e){return O3.has(e)}function gz(e){return Eb(e)&&xz(e.status)&&e.headers.has("Location")}function mz(e){return V8.has(e.toUpperCase())}function lr(e){return F8.has(e.toUpperCase())}function $b(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function zh(e,t){let r=typeof t=="string"?Ya(t).search:t.search;if(e[e.length-1].route.index&&$b(r||""))return e[e.length-1];let s=M3(e);return s[s.length-1]}function ZS(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 oy(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 yz(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 mu(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 bz(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 fs(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 kz(e,t){try{let r=e.sessionStorage.getItem(I3);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 vz(e,t){if(t.size>0){let r={};for(let[s,o]of t)r[s]=[...o];try{e.sessionStorage.setItem(I3,JSON.stringify(r))}catch(s){ln(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function QS(){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 zi=x.createContext(null);zi.displayName="DataRouter";var fd=x.createContext(null);fd.displayName="DataRouterState";var K3=x.createContext(!1);function W3(){return x.useContext(K3)}var Cb=x.createContext({isTransitioning:!1});Cb.displayName="ViewTransition";var Y3=x.createContext(new Map);Y3.displayName="Fetchers";var wz=x.createContext(null);wz.displayName="Await";var ra=x.createContext(null);ra.displayName="Navigation";var Dp=x.createContext(null);Dp.displayName="Location";var Ta=x.createContext({outlet:null,matches:[],isDataRoute:!1});Ta.displayName="Route";var Tb=x.createContext(null);Tb.displayName="RouteError";var X3="REACT_ROUTER_ERROR",Sz="REDIRECT",Ez="ROUTE_ERROR_RESPONSE";function $z(e){if(e.startsWith(`${X3}:${Sz}:{`))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 Cz(e){if(e.startsWith(`${X3}:${Ez}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new ud(t.status,t.statusText,t.data)}catch{}}function Tz(e,{relative:t}={}){ht(gc(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=x.useContext(ra),{hash:o,pathname:l,search:u}=hd(e,{relative:t}),d=l;return r!=="/"&&(d=l==="/"?r:Sa([r,l])),s.createHref({pathname:d,search:u,hash:o})}function gc(){return x.useContext(Dp)!=null}function Pr(){return ht(gc(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Dp).location}var Z3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Q3(e){x.useContext(ra).static||x.useLayoutEffect(e)}function mc(){let{isDataRoute:e}=x.useContext(Ta);return e?Hz():jz()}function jz(){ht(gc(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(zi),{basename:t,navigator:r}=x.useContext(ra),{matches:s}=x.useContext(Ta),{pathname:o}=Pr(),l=JSON.stringify(Lp(s)),u=x.useRef(!1);return Q3(()=>{u.current=!0}),x.useCallback((f,p={})=>{if(ln(u.current,Z3),!u.current)return;if(typeof f=="number"){r.go(f);return}let y=cd(f,JSON.parse(l),o,p.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:Sa([t,y.pathname])),Fl(typeof f=="string"?f:$r(f),r.createHref(y),wb(r),"reject"),(p.replace?r.replace:r.push)(y,p.state,p)},[t,r,l,o,e])}var Rz=x.createContext(null);function Az(e){let t=x.useContext(Ta).outlet;return x.useMemo(()=>t&&x.createElement(Rz.Provider,{value:e},t),[t,e])}function jb(){let{matches:e}=x.useContext(Ta);return e[e.length-1]?.params??{}}function hd(e,{relative:t}={}){let{matches:r}=x.useContext(Ta),{pathname:s}=Pr(),o=JSON.stringify(Lp(r));return x.useMemo(()=>cd(e,JSON.parse(o),s,t==="path"),[e,o,s,t])}function Mz(e,t,r){ht(gc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(ra),{matches:o}=x.useContext(Ta),l=o[o.length-1],u=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let E=p&&p.path||"";tC(d,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (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 y=Pr(),g;g=y;let k=g.pathname||"/",v=k;if(f!=="/"){let E=f.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})):$3(e,{pathname:v});return ln(p||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),ln(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 "${g.pathname}${g.search}${g.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.`),Oz(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Sa([f,s.encodeLocation?s.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?f:Sa([f,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),o,r)}function zz(){let e=Bz(),t=Wu(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=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:l},"ErrorBoundary")," or"," ",x.createElement("code",{style:l},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:o},r):null,u)}var Nz=x.createElement(zz,null),J3=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Cz(e.digest);r&&(e=r)}let t=e!==void 0?x.createElement(Ta.Provider,{value:this.props.routeContext},x.createElement(Tb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(Lz,{error:e},t):t}};J3.contextType=K3;var iy=new WeakMap;function Lz({children:e,error:t}){let{basename:r,navigator:s}=x.useContext(ra);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=$z(t.digest);if(o){let l=iy.get(t);if(l)throw l;let u=N3(o.location,r),d=u.absoluteURL||u.to;if(Fl(o.location,d,wb(s),"allow-explicit"),y1(d))throw new Error("Invalid redirect location");if(z3&&!iy.get(t))if(u.isExternal||o.reloadDocument)window.location.href=d;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:o.replace}));throw iy.set(t,f),f}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d}`})}}return e}function Dz({routeContext:e,match:t,children:r}){let s=x.useContext(zi);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Ta.Provider,{value:e},r)}function Oz(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 y=o.findIndex(g=>g.route.id&&l?.[g.route.id]!==void 0);ht(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let u=!1,d=-1;if(r&&s){u=s.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:k,errors:v}=s,w=g.route.loader&&!k.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||w){r.isStatic&&(u=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let f=r?.onError,p=s&&f?(y,g)=>{f(y,{location:s.location,params:s.matches?.[0]?.params??{},pattern:dd(s.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,k)=>{let v,w=!1,S=null,E=null;s&&(v=l&&g.route.id?l[g.route.id]:void 0,S=g.route.errorElement||Nz,u&&(d<0&&k===0?(tC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):d===k&&(w=!0,E=g.route.hydrateFallbackElement||null)));let R=t.concat(o.slice(0,k+1)),C=()=>{let T;return v?T=S:w?T=E:g.route.Component?T=x.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=y,x.createElement(Dz,{match:g,routeContext:{outlet:y,matches:R,isDataRoute:s!=null},children:T})};return s&&(g.route.ErrorBoundary||g.route.errorElement||k===0)?x.createElement(J3,{location:s.location,revalidation:s.revalidation,component:S,error:v,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):C()},null)}function Rb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iz(e){let t=x.useContext(zi);return ht(t,Rb(e)),t}function eC(e){let t=x.useContext(fd);return ht(t,Rb(e)),t}function _z(e){let t=x.useContext(Ta);return ht(t,Rb(e)),t}function Ab(e){let t=_z(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 qz(){return Ab("useRouteId")}function Pz(){let{matches:e,loaderData:t}=eC("useMatches");return x.useMemo(()=>e.map(r=>C3(r,t)),[e,t])}function Bz(){let e=x.useContext(Tb),t=eC("useRouteError"),r=Ab("useRouteError");return e!==void 0?e:t.errors?.[r]}function Hz(){let{router:e}=Iz("useNavigate"),t=Ab("useNavigate"),r=x.useRef(!1);return Q3(()=>{r.current=!0}),x.useCallback(async(o,l={})=>{ln(r.current,Z3),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var JS={};function tC(e,t,r){!t&&!JS[e]&&(JS[e]=!0,ln(!1,r))}var e5={};function t5(e,t){!e&&!e5[t]&&(e5[t]=!0,console.warn(t))}var Fz="useOptimistic",n5=vM[Fz],Uz=()=>{};function Vz(e){return n5?n5(e):[e,Uz]}function Gz(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&ln(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:x.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&ln(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&ln(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Kz=["HydrateFallback","hydrateFallbackElement"],Wz=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 Yz({router:e,flushSync:t,onError:r,useTransitions:s}){s=W3()||s;let[l,u]=x.useState(e.state),[d,f]=Vz(l),[p,y]=x.useState(),[g,k]=x.useState({isTransitioning:!1}),[v,w]=x.useState(),[S,E]=x.useState(),[R,C]=x.useState(),T=x.useRef(new Map),A=x.useCallback((j,{deletedFetchers:I,newErrors:z,flushSync:H,viewTransitionOpts:F})=>{z&&r&&Object.values(z).forEach(q=>r(q,{location:j.location,params:j.matches[0]?.params??{},pattern:dd(j.matches)})),j.fetchers.forEach((q,U)=>{q.data!==void 0&&T.current.set(U,q.data)}),I.forEach(q=>T.current.delete(q)),t5(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 B=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(t5(F==null||B,"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||!B){t&&H?t(()=>u(j)):s===!1?u(j):x.startTransition(()=>{s===!0&&f(q=>r5(q,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 q=e.window.document.startViewTransition(()=>{t(()=>u(j))});q.finished.finally(()=>{t(()=>{w(void 0),E(void 0),y(void 0),k({isTransitioning:!1})})}),t(()=>E(q));return}S?(v?.resolve(),S.skipTransition(),C({state:j,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(y(j),k({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[e.window,t,S,v,s,f,r]);x.useLayoutEffect(()=>e.subscribe(A),[e,A]),x.useEffect(()=>{g.isTransitioning&&!g.flushSync&&w(new Wz)},[g]),x.useEffect(()=>{if(v&&p&&e.window){let j=p,I=v.promise,z=e.window.document.startViewTransition(async()=>{s===!1?u(j):x.startTransition(()=>{s===!0&&f(H=>r5(H,j)),u(j)}),await I});z.finished.finally(()=>{w(void 0),E(void 0),y(void 0),k({isTransitioning:!1})}),E(z)}},[p,v,e.window,s,f]),x.useEffect(()=>{v&&p&&d.location.key===p.location.key&&v.resolve()},[v,S,d.location,p]),x.useEffect(()=>{!g.isTransitioning&&R&&(y(R.state),k({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}),C(void 0))},[g.isTransitioning,R]);let M=x.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:j=>e.navigate(j),push:(j,I,z)=>e.navigate(j,{state:I,preventScrollReset:z?.preventScrollReset}),replace:(j,I,z)=>e.navigate(j,{replace:!0,state:I,preventScrollReset:z?.preventScrollReset})}),[e]),L=e.basename||"/",D=x.useMemo(()=>({router:e,navigator:M,static:!1,basename:L,onError:r}),[e,M,L,r]);return x.createElement(x.Fragment,null,x.createElement(zi.Provider,{value:D},x.createElement(fd.Provider,{value:d},x.createElement(Y3.Provider,{value:T.current},x.createElement(Cb.Provider,{value:g},x.createElement(Jz,{basename:L,location:d.location,navigationType:d.historyAction,navigator:M,useTransitions:s},x.createElement(Xz,{routes:e.routes,manifest:e.manifest,future:e.future,state:d,isStatic:!1,onError:r})))))),null)}function r5(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 Xz=x.memo(Zz);function Zz({routes:e,manifest:t,future:r,state:s,isStatic:o,onError:l}){return Mz(e,void 0,{manifest:t,state:s,isStatic:o,onError:l})}function Qz({to:e,replace:t,state:r,relative:s}){ht(gc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:l}=x.useContext(ra);ln(!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}=x.useContext(Ta),{pathname:d}=Pr(),f=mc(),p=cd(e,Lp(u),d,s==="path");Fl(typeof e=="string"?e:$r(e),l.createHref(p),wb(l),"reject");let y=JSON.stringify(p);return x.useEffect(()=>{f(JSON.parse(y),{replace:t,state:r,relative:s})},[f,y,s,t,r]),null}function Mb(e){return Az(e.context)}function Jz({basename:e="/",children:t=null,location:r,navigationType:s="POP",navigator:o,static:l=!1,useTransitions:u}){ht(!gc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=x.useMemo(()=>({basename:d,navigator:o,static:l,useTransitions:u,future:{}}),[d,o,l,u]);typeof r=="string"&&(r=Ya(r));let{pathname:p="/",search:y="",hash:g="",state:k=null,key:v="default",mask:w}=r,S=x.useMemo(()=>{let E=$a(p,d);return E==null?null:{location:{pathname:E,search:y,hash:g,state:k,key:v,mask:w},navigationType:s}},[d,p,y,g,k,v,s,w]);return ln(S!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:x.createElement(ra.Provider,{value:f},x.createElement(Dp.Provider,{children:t,value:S}))}var Nh="get",Lh="application/x-www-form-urlencoded";function Op(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function eN(e){return Op(e)&&e.tagName.toLowerCase()==="button"}function tN(e){return Op(e)&&e.tagName.toLowerCase()==="form"}function nN(e){return Op(e)&&e.tagName.toLowerCase()==="input"}function rN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aN(e,t){return e.button===0&&(!t||t==="_self")&&!rN(e)}function k1(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 sN(e,t){let r=k1(e);return t&&t.forEach((s,o)=>{r.has(o)||t.getAll(o).forEach(l=>{r.append(o,l)})}),r}var Xf=null;function oN(){if(Xf===null)try{new FormData(document.createElement("form"),0),Xf=!1}catch{Xf=!0}return Xf}var iN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ly(e){return e!=null&&!iN.has(e)?(ln(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lh}"`),null):e}function lN(e,t){let r,s,o,l,u;if(tN(e)){let d=e.getAttribute("action");s=d?$a(d,t):null,r=e.getAttribute("method")||Nh,o=ly(e.getAttribute("enctype"))||Lh,l=new FormData(e)}else if(eN(e)||nN(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(s=f?$a(f,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||Nh,o=ly(e.getAttribute("formenctype"))||ly(d.getAttribute("enctype"))||Lh,l=new FormData(d,e),!oN()){let{name:p,type:y,value:g}=e;if(y==="image"){let k=p?`${p}.`:"";l.append(`${k}x`,"0"),l.append(`${k}y`,"0")}else p&&l.append(p,g)}}else{if(Op(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Nh,s=null,o=Lh,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 zb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nC(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&&$a(o.pathname,t)==="/"?o.pathname=`${tc(t)}/_root.${s}`:o.pathname=`${tc(o.pathname)}.${s}`,o}async function cN(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 uN(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 dN(e,t,r){let s=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let u=await cN(l,r);return u.links?u.links():[]}return[]}));return xN(s.flat(1).filter(uN).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function a5(e,t,r,s,o,l){let u=(f,p)=>r[p]?f.route.id!==r[p].route.id:!0,d=(f,p)=>r[p].pathname!==f.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==f.params["*"];return l==="assets"?t.filter((f,p)=>u(f,p)||d(f,p)):l==="data"?t.filter((f,p)=>{let y=s.routes[f.route.id];if(!y||!y.hasLoader)return!1;if(u(f,p)||d(f,p))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function fN(e,t,{includeHydrateFallback:r}={}){return hN(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 hN(e){return[...new Set(e)]}function pN(e){let t={},r=Object.keys(e).sort();for(let s of r)t[s]=e[s];return t}function xN(e,t){let r=new Set;return new Set(t),e.reduce((s,o)=>{let l=JSON.stringify(pN(o));return r.has(l)||(r.add(l),s.push({key:l,link:o})),s},[])}function Nb(){let e=x.useContext(zi);return zb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function gN(){let e=x.useContext(fd);return zb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Lb=x.createContext(void 0);Lb.displayName="FrameworkContext";function Ip(){let e=x.useContext(Lb);return zb(e,"You must render this element inside a <HydratedRouter> element"),e}function mN(e,t){let r=x.useContext(Lb),[s,o]=x.useState(!1),[l,u]=x.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=t,k=x.useRef(null);x.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]),x.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:yu(d,v),onBlur:yu(f,w),onMouseEnter:yu(p,v),onMouseLeave:yu(y,w),onTouchStart:yu(g,v)}]:[!1,k,{}]}function yu(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function yN({page:e,...t}){let r=W3(),{nonce:s}=Ip(),{router:o}=Nb(),l=x.useMemo(()=>$3(o.routes,e,o.basename),[o.routes,e,o.basename]);return l?(t.nonce==null&&s&&(t={...t,nonce:s}),r?x.createElement(kN,{page:e,matches:l,...t}):x.createElement(vN,{page:e,matches:l,...t})):null}function bN(e){let{manifest:t,routeModules:r}=Ip(),[s,o]=x.useState([]);return x.useEffect(()=>{let l=!1;return dN(e,t,r).then(u=>{l||o(u)}),()=>{l=!0}},[e,t,r]),s}function kN({page:e,matches:t,...r}){let s=Pr(),{future:o}=Ip(),{basename:l}=Nb(),u=x.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let d=nC(e,l,o.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,p=[];for(let y of t)typeof y.route.shouldRevalidate=="function"?f=!0:p.push(y.route.id);return f&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[l,o.v8_trailingSlashAwareDataRequests,e,s,t]);return x.createElement(x.Fragment,null,u.map(d=>x.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function vN({page:e,matches:t,...r}){let s=Pr(),{future:o,manifest:l,routeModules:u}=Ip(),{basename:d}=Nb(),{loaderData:f,matches:p}=gN(),y=x.useMemo(()=>a5(e,t,p,l,s,"data"),[e,t,p,l,s]),g=x.useMemo(()=>a5(e,t,p,l,s,"assets"),[e,t,p,l,s]),k=x.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||(!y.some(A=>A.route.id===C.route.id)&&C.route.id in f&&u[C.route.id]?.shouldRevalidate||T.hasClientLoader?E=!0:S.add(C.route.id))}),S.size===0)return[];let R=nC(e,d,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]},[d,o.v8_trailingSlashAwareDataRequests,f,s,l,y,t,e,u]),v=x.useMemo(()=>fN(g,l),[g,l]),w=bN(g);return x.createElement(x.Fragment,null,k.map(S=>x.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),v.map(S=>x.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),w.map(({key:S,link:E})=>x.createElement("link",{key:S,nonce:r.nonce,...E,crossOrigin:E.crossOrigin??r.crossOrigin})))}function wN(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var SN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{SN&&(window.__reactRouterVersion="7.18.5")}catch{}function EN(e,t){return X8({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d8({window:t?.window}),hydrationData:$N(),routes:e,mapRouteProperties:Gz,hydrationRouteProperties:Kz,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function $N(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:CN(e.errors)}),e}function CN(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 ud(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&D8.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 _u=x.forwardRef(function({onClick:t,discover:r="render",prefetch:s="none",relative:o,reloadDocument:l,replace:u,mask:d,state:f,target:p,to:y,preventScrollReset:g,viewTransition:k,defaultShouldRevalidate:v,...w},S){let{basename:E,navigator:R,useTransitions:C}=x.useContext(ra),T=typeof y=="string"&&zp.test(y),A=N3(y,E);y=A.to;let M=Tz(y,{relative:o}),L=Pr(),D=null;if(d){let U=cd(d,[],L.mask?L.mask.pathname:"/",!0);E!=="/"&&(U.pathname=U.pathname==="/"?E:Sa([E,U.pathname])),D=R.createHref(U)}let[j,I,z]=mN(s,w),H=RN(y,{replace:u,mask:d,state:f,target:p,preventScrollReset:g,relative:o,viewTransition:k,defaultShouldRevalidate:v,useTransitions:C});function F(U){t&&t(U),U.defaultPrevented||H(U)}let B=!(A.isExternal||l),q=x.createElement("a",{...w,...z,href:(B?D:void 0)||A.absoluteURL||M,onClick:B?F:t,ref:wN(S,I),target:p,"data-discover":!T&&r==="render"?"true":void 0});return j&&!T?x.createElement(x.Fragment,null,q,x.createElement(yN,{page:M})):q});_u.displayName="Link";var rC=x.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:s="",end:o=!1,style:l,to:u,viewTransition:d,children:f,...p},y){let g=hd(u,{relative:p.relative}),k=Pr(),v=x.useContext(fd),{navigator:w,basename:S}=x.useContext(ra),E=v!=null&&DN(g)&&d===!0,R=w.encodeLocation?w.encodeLocation(g).pathname:g.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=$a(T,S)||T);const A=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let M=C===R||!o&&C.startsWith(R)&&C.charAt(A)==="/",L=T!=null&&(T===R||!o&&T.startsWith(R)&&T.charAt(R.length)==="/"),D={isActive:M,isPending:L,isTransitioning:E},j=M?t:void 0,I;typeof s=="function"?I=s(D):I=[s,M?"active":null,L?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let z=typeof l=="function"?l(D):l;return x.createElement(_u,{...p,"aria-current":j,className:I,ref:y,style:z,to:u,viewTransition:d},typeof f=="function"?f(D):f)});rC.displayName="NavLink";var TN=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:s,replace:o,state:l,method:u=Nh,action:d,onSubmit:f,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:k,...v},w)=>{let{useTransitions:S}=x.useContext(ra),E=NN(),R=LN(d,{relative:p}),C=u.toLowerCase()==="get"?"get":"post",T=typeof d=="string"&&zp.test(d),A=M=>{if(f&&f(M),M.defaultPrevented)return;M.preventDefault();let L=M.nativeEvent.submitter,D=L?.getAttribute("formmethod")||u,j=()=>E(L||M.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:o,state:l,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:k});S&&r!==!1?x.startTransition(()=>j()):j()};return x.createElement("form",{ref:w,method:C,action:R,onSubmit:s?f:A,...v,"data-discover":!T&&e==="render"?"true":void 0})});TN.displayName="Form";function jN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aC(e){let t=x.useContext(zi);return ht(t,jN(e)),t}function RN(e,{target:t,replace:r,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:d,defaultShouldRevalidate:f,useTransitions:p}={}){let y=mc(),g=Pr(),k=hd(e,{relative:u});return x.useCallback(v=>{if(aN(v,t)){v.preventDefault();let w=r!==void 0?r:$r(g)===$r(k),S=()=>y(e,{replace:w,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:d,defaultShouldRevalidate:f});p?x.startTransition(()=>S()):S()}},[g,y,k,r,s,o,t,e,l,u,d,f,p])}function AN(e){ln(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(k1(e)),r=x.useRef(!1),s=Pr(),o=x.useMemo(()=>sN(s.search,r.current?null:t.current),[s.search]),l=mc(),u=x.useCallback((d,f)=>{const p=k1(typeof d=="function"?d(new URLSearchParams(o)):d);r.current=!0,l("?"+p,f)},[l,o]);return[o,u]}var MN=0,zN=()=>`__${String(++MN)}__`;function NN(){let{router:e}=aC("useSubmit"),{basename:t}=x.useContext(ra),r=qz(),s=e.fetch,o=e.navigate;return x.useCallback(async(l,u={})=>{let{action:d,method:f,encType:p,formData:y,body:g}=lN(l,t);if(u.navigate===!1){let k=u.fetcherKey||zN();await s(k,r,u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:g,formMethod:u.method||f,formEncType:u.encType||p,flushSync:u.flushSync})}else await o(u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:g,formMethod:u.method||f,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,o,t,r])}function LN(e,{relative:t}={}){let{basename:r}=x.useContext(ra),s=x.useContext(Ta);ht(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),l={...hd(e||".",{relative:t})},u=Pr();if(e==null){l.search=u.search;let d=new URLSearchParams(l.search),f=d.getAll("index");if(f.some(y=>y==="")){d.delete("index"),f.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();l.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Sa([r,l.pathname])),$r(l)}function DN(e,{relative:t}={}){let r=x.useContext(Cb);ht(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=aC("useViewTransitionState"),o=hd(e,{relative:t});if(!r.isTransitioning)return!1;let l=$a(r.currentLocation.pathname,s)||r.currentLocation.pathname,u=$a(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Wh(o.pathname,u)!=null||Wh(o.pathname,l)!=null}var Ks=l3();function ON(e){return x.createElement(Yz,{flushSync:Ks.flushSync,...e})}var bu={},s5;function IN(){if(s5)return bu;s5=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.styleq=void 0;var e=new WeakMap,t="$$css";function r(o){var l,u,d;return o!=null&&(l=o.disableCache===!0,u=o.disableMix===!0,d=o.transform),function(){for(var p=[],y="",g=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=d!=null?d(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 M=[];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&&M.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 I=new WeakMap;v.set(C,[T,M,k,I]),v=I}}T&&(y=y?T+" "+y:T)}else if(u)g==null&&(g={}),g=Object.assign({},C,g);else{var z=null;for(var H in C){var F=C[H];F!==void 0&&(p.includes(H)||(F!=null&&(g==null&&(g={}),z==null&&(z={}),z[H]=F),p.push(H),v=null))}z!=null&&(g=Object.assign(z,g))}}}var B=[y,g,k];return B}}var s=bu.styleq=r();return s.factory=r,bu}var _N=IN();function fe(...e){const[t,r,s]=_N.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 qN={"--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)"},PN={"--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)"},BN={"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},HN={"--border-width":"1px"},FN={"--focus-outline-width":"2px","--focus-outline-style":"solid","--focus-outline-color":"var(--color-accent)","--focus-outline-offset":"3px"},_p={"--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)"},UN={"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},VN={"--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)"},GN={"--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"},KN={"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},WN={"--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'},YN={"--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"},XN={"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},ZN={"--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"},Db=x.createContext(null);Db.displayName="LayoutAreaContext";const sC=[];function aa(e){const t=x.createContext(e);return t.displayName="LayerScopedContext",sC.push(r=>m.jsx(t,{value:e,children:r})),t}function nc({children:e}){const[t]=x.useState(()=>sC.slice());return t.reduceRight((r,s)=>s(r),e)}const QN={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},qp=aa(QN);qp.displayName="LayoutSlotsContext";const Pp=aa(null);Pp.displayName="LayoutDividerContext";const JN={center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xuk3077",$$css:!0},start:{kGNEyG:"x1cy8zhl",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},e9={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}},t9={horizontal:{kXwgrk:"x1q0g3np",$$css:!0},vertical:{kXwgrk:"xdt5ytf",$$css:!0}},n9={nowrap:{kwnvtZ:"xozqiw3",$$css:!0},wrap:{kwnvtZ:"x1a02dak",$$css:!0},"wrap-reverse":{kwnvtZ:"x8hhl5t",$$css:!0}},r9={stack:{k1xSpc:"x78zum5",$$css:!0}},a9={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 v1({crossAlign:e,direction:t,gap:r,mainAlign:s,wrap:o}){return[r9.stack,t9[t],r!=null&&a9[r],e!=null&&JN[e],s!=null&&e9[s],o!=null&&n9[o]]}const s9={reset:{kAzted:"x2lwn1j",k7Eaqz:"xeuugli",$$css:!0}},o9={center:{kSGwAc:"xamitd3",$$css:!0},end:{kSGwAc:"xpvyfi4",$$css:!0},start:{kSGwAc:"xqcrz7y",$$css:!0},stretch:{kSGwAc:"xkh2ocl",$$css:!0}},i9={fill:{kzQI83:"x1iyjqo2",$$css:!0},static:{kzQI83:"x1c4vz4f",kmuXW:"x2lah0s",$$css:!0}};function oC({crossAlignSelf:e,size:t}={}){return[s9.reset,i9[t??"static"],e!=null&&o9[e]]}const Ob="astryx",iC=Ob,Bp=Ob,l9=Ob;function lC(e){return`${iC}-${e}`}function Dr(e){return`data-${Bp}-${e}`}function c9(e){return`--${l9}-${e}`}function cC(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function u9(e){return lC(e)}function d9(e){const t={};if(e)for(const[r,s]of Object.entries(e))s!=null&&(t[cC(r)]=String(s));return t}function he(e,t){return{className:u9(e),...d9(t)}}function f9(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 Vl(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`[${cC(s)}="${f9(o)}"]`}).join("")}const o5=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function h9(e){if(o5){const r=o5.segment(e)[Symbol.iterator]().next();return r.done?"":r.value.segment}const t=e.codePointAt(0);return t==null?"":String.fromCodePoint(t)}function Zf(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 d=e,f=t??{className:""},p=r;let y=f.className?`${d} ${f.className}`:d;p&&(y=`${y} ${p}`);const g=s&&f.style?{...f.style,...s}:s||f.style;return{...f,className:y,style:g}}let u=Zf(e,typeof t=="string"?{className:t}:t??{});return typeof r=="string"?u=Zf(u,{className:r}):r!=null&&(u=Zf(u,{style:r})),s!=null&&(u=Zf(u,{style:s})),u}function Ib(...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 gi=null;const Gl=new Map;function p9(){return typeof ResizeObserver>"u"?null:(gi||(gi=new ResizeObserver(e=>{for(const t of e){const r=Gl.get(t.target);if(r)for(const s of[...r.keys()])s(t)}})),gi)}function Yu(e,t){const r=Gl.get(e);r?r.set(t,(r.get(t)??0)+1):Gl.set(e,new Map([[t,1]])),p9()?.observe(e),t({target:e});let o=!0;return()=>{o&&(o=!1,x9(e,t))}}function x9(e,t){const r=Gl.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}Gl.delete(e),gi&&(gi.unobserve(e),Gl.size===0&&(gi.disconnect(),gi=null))}function Fs(e){return e!=null&&typeof e!="boolean"&&e!==""}function i5(...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 _b(e,t=[],r){return{ariaLabelledBy:r?i5(r.labelID,e):void 0,ariaDescribedBy:i5(r?.describedByIDs,...t)}}const g9={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}},Yh=(e,t,r)=>Math.max(t,Math.min(r,e));function m9(e){return e.split("").map(t=>t+t).join("")}function uC(e){if(typeof e!="string")return null;const t=e.trim().replace(/^#/,""),r=t.length===3||t.length===4?m9(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 y9(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 y=p.endsWith("%")?parseFloat(p)/100*255:parseFloat(p);return Yh(y,0,255)},l=o(s[0]),u=o(s[1]),d=o(s[2]);if([l,u,d].some(Number.isNaN))return null;let f=1;if(s.length>=4){const p=s[3];if(f=p.endsWith("%")?parseFloat(p)/100:parseFloat(p),Number.isNaN(f))return null;f=Yh(f,0,1)}return{r:l,g:u,b:d,a:f}}function Xu(e){const t=e.trim(),r=g9[t.toLowerCase()];return r?{...r}:t.startsWith("#")?uC(t):/^rgba?\(/i.test(t)?y9(t):null}function qb(e,t,r){const s=o=>Yh(Math.round(o),0,255).toString(16).padStart(2,"0").toUpperCase();return`#${s(e)}${s(t)}${s(r)}`}function dC({r:e,g:t,b:r,a:s}){if(s>=1)return qb(e,t,r);const o=l=>Yh(Math.round(l),0,255);return`rgba(${o(e)}, ${o(t)}, ${o(r)}, ${parseFloat(s.toFixed(4))})`}function b9(e,t){return`${e}: ${t}`}function Ea(e,t,...r){}function Pb(e,t,...r){console.error(b9(e,t),...r)}function Hp(e,t,r,...s){}const k9={kbCHJM:"x1nrll8i",k3aq6I:"xsqj5wx",$$css:!0},Ga={mirror:{k3aq6I:"xgtlewx",$$css:!0},centerInline:e=>[k9,{"--x-transform":`translate(-50%, ${e})`!=null?`translate(-50%, ${e})`:void 0}]},v9=_p["--focus-outline-width"],w9=_p["--focus-outline-style"],S9=_p["--focus-outline-color"],E9=_p["--focus-outline-offset"],$9={outlineWidth:v9,outlineStyle:w9,outlineColor:S9,outlineOffset:E9},C9={outlineWidth:"",outlineStyle:"",outlineColor:"",outlineOffset:""},Ps={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)=>fe(e,...t)}const pn={focusVisible:Cl(Ps.focusVisible),focusWithin:Cl(Ps.focusWithin),focusWithinFirstChild:Cl(Ps.focusWithinFirstChild),suppressed:Cl(Ps.suppressed),publishFocusVisibleVars:Cl(Ps.publishFocusVisibleVars),focusWithinOrPublished:Cl(Ps.focusWithinOrPublished)},T9=229;function pd(e){return e.isComposing===!0||e.keyCode===T9}const j9={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}},Bb={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"},Ni={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}},Ei={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}},Mo={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}},Us={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}},R9={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}},A9={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}},M9={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}},z9={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}},fC={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}},hC={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}},N9={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}},L9={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}},pC={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}},Hb={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}},D9={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}},Zu={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 O9(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}},I9={kzqmXN:"xh8yej3",kUOVxO:"xvueqy4",$$css:!0},cy={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=>[I9,{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 ku({area:e,children:t}){return t==null?null:m.jsx(Db,{value:e,children:t})}const _9={"x-default-marker":"x-default-marker",$$css:!0};function Li({children:e,content:t,contentWidth:r,defaultHasDividers:s,end:o,footer:l,header:u,height:d="fill",padding:f,ref:p,start:y,xstyle:g,className:k,style:v,...w}){const S=d==="fill",E=t??e,R=x.useMemo(()=>s!=null?{defaultHasDividers:s}:null,[s]),C=u!=null,T=l!=null,A=y!=null,M=o!=null,L=A&&M,D=A!==M,j=r!=null&&O9(r),I=x.useMemo(()=>({hasHeader:C,hasFooter:T,hasStart:A,hasEnd:M}),[C,T,A,M]),z=m.jsx(qp,{value:I,children:m.jsx("div",{...w,ref:p,...ye(he("layout",{height:d}),fe(Qr.layoutOuter,S?Qr.fill:Qr.auto,g),k,v),children:m.jsxs("div",{...fe(_9,Qr.layoutInner,...v1({direction:"vertical"}),S?Qr.fill:Qr.auto,f===0&&Qr.fullBleed,f!=null&&R9[f],f!=null&&A9[f],r!=null&&cy.contentWidthVar(r),j&&cy.contentAlignmentWidthVar(r)),children:[m.jsx(ku,{area:"header",children:u}),m.jsxs("div",{...fe(...v1({direction:"horizontal"}),Qr.middle,r!=null&&(!j||L)&&cy.contentWidth(r),j&&!L&&Qr.middleQuery,j&&D&&Qr.singlePanelMiddle,j&&A&&!M&&Qr.singleStartPanel,j&&!A&&M&&Qr.singleEndPanel),children:[m.jsx(ku,{area:"start",children:y}),m.jsx("div",{...fe(...oC({size:"fill"}),j&&!A&&!M&&Qr.singleColumnContent),children:m.jsx(ku,{area:"content",children:E})}),m.jsx(ku,{area:"end",children:o})]}),m.jsx(ku,{area:"footer",children:l})]})})});return R!=null?m.jsx(Pp,{value:R,children:z}):z}Li.displayName="Layout";const Qf={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}},q9={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function Xh({children:e,hasDivider:t,height:r,label:s,padding:o,paddingBlockEnd:l,role:u,xstyle:d,className:f,style:p,ref:y,...g}){const k=x.use(Pp),v=t??k?.defaultHasDividers??!1,w=o===0;return m.jsx("div",{ref:y,role:u,"aria-label":s,"data-divider":v||void 0,...ye(he("layout-header"),fe(Qf.header,q9.sizing(r??null),v&&Qf.divider,d),f,p),...g,children:m.jsx("div",{...fe(Qf.inner,w&&Qf.fullBleed,o!=null&&Ni[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Us[o],l!=null&&Hb[l],l!=null&&Us[l]),children:e})})}Xh.displayName="LayoutHeader";const _a={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}},P9={sizing:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function xC({children:e,hasDivider:t=!1,isScrollable:r=!0,label:s,padding:o,role:l,width:u,resizable:d,xstyle:f,className:p,style:y,ref:g,...k}){const v=x.use(Db),{hasHeader:w,hasFooter:S}=x.use(qp),E=d?d._size:u,R=v==="start",C=v==="end",T=o===0,A=!t&&!T&&o==null,M=R?_a.dividerEnd:C?_a.dividerStart:null,L=R?_a.collapseEnd:C?_a.collapseStart:null;return m.jsx("div",{ref:g,role:l,"aria-label":s,...ye(he("layout-panel"),fe(_a.panel,P9.sizing(E??null),R&&!T&&o==null&&_a.startPanel,C&&!T&&o==null&&_a.endPanel,!w&&!T&&o==null&&_a.noHeader,!S&&!T&&o==null&&_a.noFooter,r&&_a.scrollable,T&&_a.fullBleed,o!=null&&Ni[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Us[o],t&&M,A&&L,f),p,y),...k,children:e})}xC.displayName="LayoutPanel";const qa={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 Di({children:e,isScrollable:t=!0,padding:r,label:s,role:o,xstyle:l,className:u,style:d,ref:f,...p}){const{hasHeader:y,hasFooter:g,hasStart:k,hasEnd:v}=x.use(qp),w=r===0;return m.jsx("div",{ref:f,role:o,"aria-label":s,...ye(he("layout-content"),fe(qa.content,!k&&!w&&r==null&&qa.noStart,!v&&!w&&r==null&&qa.noEnd,!y&&!w&&r==null&&qa.noHeader,!g&&!w&&r==null&&qa.noFooter,t&&qa.scrollable,w&&qa.fullBleed,r!=null&&Ni[r],r!=null&&Ei[r],r!=null&&Mo[r],r!=null&&Us[r],!k&&!v&&!w&&qa.constrainedNoPanelsStart,!k&&!v&&!w&&qa.constrainedNoPanelsEnd,k&&!v&&!w&&qa.constrainedSingleStartPanel,!k&&v&&!w&&qa.constrainedSingleEndPanel,l),u,d),...p,children:e})}Di.displayName="LayoutContent";function gC(e){return(e.style.anchorName??"").split(",").map(r=>r.trim()).filter(Boolean)}function mC(e,t){e.style.anchorName=t.join(", ")}function B9(e,t){const r=gC(e);r.includes(t)||(r.push(t),mC(e,r))}function H9(e,t){mC(e,gC(e).filter(r=>r!==t))}let Fp=0,yC=null,l5=!1;function c5(){Fp+=1}function F9(){yC=Fp}function bC(){l5||typeof document>"u"||(l5=!0,document.addEventListener("pointerdown",c5,!0),document.addEventListener("keydown",c5,!0),document.addEventListener("click",F9,!0))}function mi(){return bC(),Fp}function U9(){return bC(),yC===Fp}const V9=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 G9(e){if(!e)return null;let t=null,r=e;for(;r;){const s=r.tagName.toLowerCase();if(s==="dialog")break;V9.has(s)&&(t=r),r=r.parentElement}return t?.parentElement??null}const rc={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}},ac={reset:{"--step-connector-gap":"x1qkaldv",$$css:!0}},sc={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))"},K9=[["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 W9(e){return typeof e=="number"?`${e}px`:e}function kC(e){const t={};if(e)for(const[r,s]of K9){const o=e[r];o!=null&&o!==""&&(t[s]=W9(o))}return t}const vC="--_astryx-layer-clearance";function w1(e,t,r){return`--astryx-layer-slide-${e}-${t}-${r}`}const Jf=`var(${vC}, 0px)`;function wC(e,t,r){return`${e}:${t};${e}:${r};`}function Zh(e){return wC(e,sc.gutterBlockFallback,sc.gutterBlock)}function Qh(e){return wC(e,sc.gutterInlineFallback,sc.gutterInline)}const Y9={above:"below",below:"above",start:"end",end:"start"};function X9(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 Z9(e){switch(e){case"above":return`margin-block-end:${Jf};${Zh("margin-block-start")}`;case"below":return`margin-block-start:${Jf};${Zh("margin-block-end")}`;case"start":return`margin-inline-end:${Jf};${Qh("margin-inline-start")}`;case"end":return`margin-inline-start:${Jf};${Qh("margin-inline-end")}`}}function Q9(e){return e==="above"||e==="below"?`${Qh("margin-inline-start")}${Qh("margin-inline-end")}inset-inline-start:0;inset-inline-end:0;`:`${Zh("margin-block-start")}${Zh("margin-block-end")}inset-block-start:0;inset-block-end:0;`}function u5(e,t,r){const s=r==="same"?e:Y9[e];return`@position-try ${w1(e,t,r)}{position-area:${X9(s)};${Z9(s)}${Q9(s)}}`}const J9=["above","below","start","end"],eL=["start","center","end"];function tL(){return J9.flatMap(e=>eL.flatMap(t=>[u5(e,t,"same"),u5(e,t,"opposite")])).join("")}const d5="astryx-layer-slide-rules";function nL(e){if(e.getElementById(d5))return;const t=e.createElement("style");t.id=d5,t.textContent=tL(),e.head.appendChild(t)}const SC=x.createContext(null);SC.displayName="LayerContext";function rL(){return x.use(SC)}const qn=typeof window<"u"?x.useLayoutEffect:x.useEffect,aL={keoZOQ:"x1vhfslr",k1K539:"x119uzjn",$$css:!0},sL={keoZOQ:"x1lhixnp",k1K539:"xlm3tn6",$$css:!0},oL={k71WvV:"xa3ewmy",$$css:!0},iL={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=>[aL,{"--x-marginBlockStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementAbove:e=>[sL,{"--x-marginBlockEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementEnd:e=>[oL,{keTefX:e!=null?"x4lel18":e,$$css:!0},{"--x-marginInlineStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementStart:e=>[iL,{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 lL(e){return typeof e=="number"?`${e}px`:e}const Au=new WeakMap;function f5(e,t){Au.set(e,(Au.get(e)??0)+1);try{t()}finally{Au.set(e,(Au.get(e)??1)-1)}}function cL(e){return(Au.get(e)??0)>0}function uL(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 dL(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 fL(e="above",t="center"){const r="flip-block, flip-inline, flip-block flip-inline",s=`${w1(e,t,"same")}, ${w1(e,t,"opposite")}`;if(t!=="center")return`${r}, ${s}`;if(e==="above"||e==="below"){const[u,d]=e==="above"?["top","bottom"]:["bottom","top"];return`${r}, ${u} span-left, ${u} span-right, ${d} span-left, ${d} 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 hL(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 pL(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 xL(e,t){const r=x.useRef(t);return r.current=t,x.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 gL(e){const{mode:t,onShow:r,onHide:s,lightDismiss:o=!1}=e,l=t==="context"?e.lazyMount??!1:!1,u=x.useId(),d=`--astryx-layer-${u.replace(/:/g,"")}`,[f,p]=x.useState(!1),[y,g]=x.useState(!0),k=x.useRef(!0),v=x.useCallback(te=>{k.current!==te&&(k.current=te,g(te))},[]),S=rL()?.inset,E=x.useRef(null),R=x.useRef(null),C=x.useRef(null),T=x.useRef(null),A=x.useRef(null),[M,L]=x.useState(null),D=x.useRef(!1),j=x.useRef(!1),I=x.useRef(null),z=x.useRef(null),H=x.useCallback(()=>{const te=mi();return I.current===te},[]),F=x.useCallback(te=>{typeof te.showPopover=="function"?f5(te.ownerDocument,()=>{te.showPopover({source:C.current??void 0})}):te.style.display="block",R.current=te},[]),B=x.useCallback(te=>{if(t!=="context")return!0;const pe=A.current;if(pe===null)return!1;const Re=pe.portalTarget??T.current?.parentElement??null;return te.parentElement===Re},[t]),q=x.useCallback(()=>{if(t!=="context")return;const te=T.current,pe=te?.parentElement??null;if(!te||!pe)return;const Re=G9(pe),Te={portalTarget:Re,portalStyle:Re?uL(te,Re):{}};A.current=Te,L(Te)},[t]),U=x.useCallback(()=>{t!=="context"||!l||(A.current=null,L(null))},[t,l]),_=x.useCallback(()=>{if(H())return;const te=E.current,pe=te&&B(te)?te:null;if(!pe){D.current=!0,q();return}if(!j.current){if(cL(pe.ownerDocument)){D.current=!0,queueMicrotask(()=>{D.current&&(D.current=!1,G.current())});return}F(pe),j.current=!0,p(!0),r?.()}},[r,q,F,B,H]),P=x.useCallback(()=>{if(D.current=!1,j.current){const te=E.current;R.current=null,j.current=!1,te&&(typeof te.hidePopover=="function"?f5(te.ownerDocument,()=>{te.hidePopover()}):te.style.display="none"),p(!1),s?.()}U()},[s,U]),G=x.useRef(_);G.current=_;const Y=x.useCallback(te=>{C.current&&C.current!==te&&H9(C.current,d),te&&B9(te,d),C.current=te},[d]),X=x.useCallback(te=>{if(z.current?.(),U9())return;I.current=mi();const pe=te.defaultView;let Re=null;const Te=()=>{I.current=null,te.removeEventListener("click",Ce,!0),Re!==null&&(pe?.clearTimeout(Re),Re=null),z.current===Te&&(z.current=null)},Ce=()=>{te.removeEventListener("click",Ce,!0),pe?Re=pe.setTimeout(()=>{Re=null,z.current===Te&&Te()},0):Te()};te.addEventListener("click",Ce,!0),z.current=Te},[]);x.useEffect(()=>(mi(),()=>z.current?.()),[]);const ee=x.useCallback(te=>{te.newState==="closed"&&j.current&&(R.current=null,j.current=!1,X(te.currentTarget?.ownerDocument??document),p(!1),s?.(),U())},[s,U,X]),Q=x.useRef(null),oe=x.useRef(null),O=x.useCallback((te,pe)=>{Q.current&&oe.current&&(Q.current!==te||oe.current!==pe)&&(Q.current.removeEventListener("toggle",oe.current),Q.current=null,oe.current=null),te&&Q.current!==te&&(te.addEventListener("toggle",pe),Q.current=te,oe.current=pe)},[]),Z=x.useCallback(te=>{E.current=te,O(te,ee),te&&D.current?(D.current=!1,_()):te&&j.current&&R.current!==te&&B(te)&&F(te)},[ee,O,_,F,B]),de=x.useCallback(te=>{T.current=te,te&&(!l||D.current||j.current)&&q()},[l,q]);x.useEffect(()=>(E.current&&O(E.current,ee),()=>{Q.current&&oe.current&&(Q.current.removeEventListener("toggle",oe.current),Q.current=null,oe.current=null)}),[ee,O]),qn(()=>{if(t!=="context")return;const te=E.current?.ownerDocument??T.current?.ownerDocument;te&&nL(te)},[t,M]),qn(()=>{if(!f||t!=="context")return;const te=C.current;if(!te)return;const pe=te.ownerDocument.defaultView;if(pe){const Te=te.getBoundingClientRect(),Ce=Te.bottom>=0&&Te.right>=0&&Te.top<=pe.innerHeight&&Te.left<=pe.innerWidth;v(Ce)}if(typeof IntersectionObserver>"u")return;const Re=new IntersectionObserver(Te=>{const Ce=Te[Te.length-1];Ce&&v(Ce.isIntersecting)});return Re.observe(te),()=>Re.disconnect()},[f,t,v]);const ue=x.useCallback((te,pe)=>{const Re=m.jsx("template",{ref:de});if(M===null)return m.jsx(m.Fragment,{children:Re});const{placement:Te="above",alignment:Ce="center",positioning:Me="anchor",offset:je,role:He,"aria-label":at,xstyle:pt,className:et,style:Ve,as:yt="div",onMouseEnter:Pe,onMouseLeave:rt}=pe||{},lt=Me==="custom"?{positionAnchor:d}:{positionAnchor:d,positionArea:dL(Te,Ce),positionTryFallbacks:fL(Te,Ce),...hL(Te,Ce,y)},st=je?lL(je):null,ct=Me==="anchor"&&st!=null?{[vC]:st}:{},we=Me!=="anchor"?null:st==null?Te==="above"?Rn.farAbove:Te==="below"?Rn.farBelow:Te==="start"?Rn.farStart:Rn.farEnd:Te==="above"?Rn.placementAbove(st):Te==="below"?Rn.placementBelow(st):Te==="start"?Rn.placementStart(st):Rn.placementEnd(st),Ge=Me==="anchor"?[Rn.viewportFit,...pL(Te,Ce)]:null,Pt=fe(rc.reset,ac.reset,Rn.base,Zu.reset,Ge,we,pt),bn=et?`${et} ${Pt.className??""}`:Pt.className,gn=m.jsx(yt,{ref:Z,id:u,role:He,"aria-label":at,popover:o?"auto":"manual",className:bn,style:{...Pt.style,...lt,...ct,...kC(S),...M.portalStyle,...Ve},onMouseEnter:Pe,onMouseLeave:rt,children:m.jsx(nc,{children:te})});return m.jsxs(m.Fragment,{children:[Re,M.portalTarget?Ks.createPortal(gn,M.portalTarget):gn]})},[d,M,S,u,y,o,Z,de]),ve=x.useCallback((te,pe)=>{const{x:Re,y:Te,xstyle:Ce,className:Me,style:je}=pe,He={top:Te,left:Re},at=fe(rc.reset,ac.reset,Rn.base,Zu.reset,Rn.fixed,Ce),pt=Me?`${Me} ${at.className??""}`:at.className;return m.jsx("div",{ref:Z,id:u,popover:o?"auto":"manual",className:pt,style:{...at.style,...He,...je},children:m.jsx(nc,{children:te})})},[Z,u,o]),xe=x.useMemo(()=>({ref:Y,anchorId:d,show:_,hide:P,isOpen:f,wasJustDismissed:H,id:u,render:ue}),[Y,d,_,P,f,H,u,ue]),$e=x.useMemo(()=>({ref:void 0,show:_,hide:P,isOpen:f,wasJustDismissed:H,id:u,render:ve}),[_,P,f,H,u,ve]);return t==="context"?xe:$e}function xd(e){const t=gL(e);return x.useMemo(()=>{const{wasJustDismissed:r,...s}=t;return s},[t])}const h5=Symbol.for("@astryxdesign/core/interaction-modality/v1");function EC(e){const t=e,r=t[h5];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,h5,{value:s}),s}function mL(){if(typeof document>"u")return()=>{};const e=document,t=EC(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 Up(){x.useEffect(()=>mL(),[])}function oc(){return typeof document>"u"?"keyboard":EC(document).modality}const yL=new Set(["touch","pen"]),bL=new Set(["button","checkbox","combobox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","searchbox","slider","spinbutton","switch","tab","textbox"]);function kL(e){const t=e.getAttribute("role");if(t!=null&&t!=="")return bL.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 vL(e)}}function vL(e){if(e.isContentEditable===!0)return!0;const t=e.getAttribute("contenteditable");return t!=null&&t!=="false"}function wL(e){const{touchTrigger:t,isEnabled:r,isControlled:s,isOpen:o,layerId:l,triggerRef:u,show:d,hide:f}=e,p=x.useRef(!1),y=x.useRef(o);y.current=o;const g=x.useRef(f);g.current=f;const k=x.useRef(l);k.current=l;const v=x.useRef(!1),w=x.useRef(null);Up();const S=x.useCallback(()=>{v.current=!1;const M=w.current;M!=null&&(w.current=null,document.removeEventListener("pointerdown",M,!0))},[]),E=x.useCallback(()=>{if(v.current=!0,w.current!=null)return;const M=L=>{const D=L.target;D!=null&&(u.current?.contains(D)===!0||document.getElementById(k.current)?.contains(D)===!0)||(S(),g.current())};w.current=M,document.addEventListener("pointerdown",M,!0)},[u,S]);x.useEffect(()=>S,[S]);const R=x.useCallback(()=>p.current&&oc()==="pointer",[]),C=x.useCallback(M=>{p.current=M.pointerType==="touch"},[]),T=x.useCallback(M=>{const L=yL.has(M.pointerType);if(p.current=L,!L||s)return!1;const D=u.current;return(t==="auto"?D!=null&&kL(D)?"none":"tap":t)==="none"||!r||y.current||v.current?(S(),f(),!0):(E(),d(),!0)},[t,r,s,u,d,f,E,S]),A=x.useRef(o);return x.useEffect(()=>{A.current&&!o&&S(),A.current=o},[o,S]),{isTouchPointerRef:p,isTouchInteraction:R,handlePointerEnter:C,handlePointerDown:T,clearTapOpen:S}}const gd={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}},Jh=x.createContext(0);Jh.displayName="LayerDepthContext";function SL(){return x.use(Jh)}function Qu({children:e}){const t=x.use(Jh);return m.jsx(Jh,{value:t+1,children:e})}Qu.displayName="LayerDepthProvider";const Mu=[];let p5=new WeakMap,EL=0,ep=!1;function $L(e){const t=p5.get(e);if(t!==void 0)return t;const r=EL++;return p5.set(e,r),r}function CL(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 TL(e){return e.isPresent?.()??!0}let Vp=!1;function jL(){return Vp}function $C(){Vp=!0}function tp(){Vp=!1}function Fb(){let e=null;for(const t of Mu)TL(t)&&(e==null||CL(t,e)>0)&&(e=t);return e}function RL(e){return Fb()?.token===e}function AL(){const e=Fb();return e==null?!1:(e.behavior==="block"||e.dismiss(),!0)}function CC(e){if(e.key==="Escape"){if(pd(e)){Fb()!=null&&e.preventDefault();return}e.defaultPrevented||AL()&&e.preventDefault()}}function ML(){ep||typeof document>"u"||(document.addEventListener("keydown",CC),document.addEventListener("compositionstart",$C,!0),document.addEventListener("compositionend",tp,!0),document.addEventListener("blur",tp,!0),ep=!0)}function zL(){!ep||typeof document>"u"||(document.removeEventListener("keydown",CC),document.removeEventListener("compositionstart",$C,!0),document.removeEventListener("compositionend",tp,!0),document.removeEventListener("blur",tp,!0),Vp=!1,ep=!1)}function NL(e){const t={...e,seq:$L(e.token)};return Mu.push(t),ML(),()=>{const r=Mu.indexOf(t);r!==-1&&Mu.splice(r,1),Mu.length===0&&zL()}}function Gp(e){const{isActive:t,onDismiss:r,escapeBehavior:s="close",getContainer:o,isPresent:l,isEnabled:u=!0}=e,d=SL(),f=x.useRef({}),p=x.useRef(!1),y=x.useRef(r),g=x.useRef(o),k=x.useRef(l);x.useEffect(()=>{y.current=r,g.current=o,k.current=l});const v=t&&u;return x.useEffect(()=>{if(!v){p.current=!1;return}return p.current||(f.current={},p.current=!0),NL({token:f.current,depth:d,behavior:s,getContainer:()=>g.current?.()??null,isPresent:()=>k.current?.()??!0,dismiss:()=>y.current()})},[v,d,s]),{shouldDismissOnCloseRequest:x.useCallback(()=>v&&!jL()&&RL(f.current),[v])}}const LL=100,DL={container:{kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}};function OL(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Ka(e={}){const{placement:t="above",alignment:r="center",delay:s=200,hideDelay:o=0,focusTrigger:l="auto",touchTrigger:u="auto",isEnabled:d=!0,isOpen:f,isDefaultOpen:p=!1,onShow:y,onHide:g}=e,k=xd({mode:"context",onShow:y,onHide:g}),{ref:v,anchorId:w,show:S,hide:E,isOpen:R,id:C,render:T}=k,A=DL.container,M=x.useRef(null),L=x.useRef(null),D=x.useRef(null),j=x.useCallback(()=>{M.current&&(clearTimeout(M.current),M.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),I=x.useCallback(()=>{j(),S()},[j,S]),z=x.useCallback(()=>{j(),E()},[j,E]),{isTouchPointerRef:H,isTouchInteraction:F,handlePointerEnter:B,handlePointerDown:q,clearTapOpen:U}=wL({touchTrigger:u,isEnabled:d,isControlled:f!==void 0,isOpen:R,layerId:C,triggerRef:D,show:I,hide:z}),_=x.useCallback(()=>{!d||f===!1||(j(),M.current=setTimeout(()=>{S()},s))},[d,f,j,S,s]),P=x.useCallback(()=>{if(f===!0)return;j();const ue=o>0?o:LL;L.current=setTimeout(()=>{E()},ue)},[f,j,E,o]),G=x.useCallback(()=>{L.current&&(clearTimeout(L.current),L.current=null)},[]),Y=x.useCallback(()=>{H.current||_()},[H,_]),X=x.useCallback(()=>{H.current||P()},[H,P]),ee=x.useCallback(ue=>{!d||F()||!ue.target.matches(":focus-visible")||(j(),S())},[d,F,j,S]),Q=x.useCallback(()=>{P()},[P]),oe=x.useCallback(ue=>{q(ue)||f===void 0&&(j(),E())},[q,f,j,E]),O=x.useCallback(ue=>{D.current&&(D.current.removeEventListener("mouseenter",Y),D.current.removeEventListener("mouseleave",X),D.current.removeEventListener("focusin",ee),D.current.removeEventListener("focusout",Q),D.current.removeEventListener("pointerenter",B),D.current.removeEventListener("pointerdown",oe)),ue&&(ue.addEventListener("pointerenter",B),ue.addEventListener("mouseenter",Y),ue.addEventListener("mouseleave",X),ue.addEventListener("pointerdown",oe),(l==="always"||l==="auto"&&OL(ue))&&(ue.addEventListener("focusin",ee),ue.addEventListener("focusout",Q))),D.current=ue},[l,Y,X,ee,Q,B,oe]),Z=x.useCallback(ue=>{v(ue),O(ue)},[v,O]);x.useEffect(()=>()=>{j()},[j]),x.useEffect(()=>{p&&S()},[]),x.useEffect(()=>{f!==void 0&&(f?(j(),S()):(j(),E()))},[f,j,S,E]),Gp({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(),f!==void 0){g?.();return}E()}});const de=x.useCallback((ue,ve)=>{const xe=ve?.placement??t,$e={placement:xe,alignment:ve?.alignment??r,offset:Wn["--spacing-1"],role:"tooltip",xstyle:[A,gd[xe]],className:he("tooltip").className,onMouseEnter:G,onMouseLeave:P};return T(m.jsx("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:ue}),$e)},[T,t,r,A,G,P]);return{ref:Z,positionRef:v,interactionRef:O,anchorId:w,describedBy:C,renderTooltip:de}}const IL="modulepreload",_L=function(e){return"/"+e},x5={},md=function(t,r,s){let o=Promise.resolve();if(r&&r.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(r.map(p=>{if(p=_L(p),p in x5)return;x5[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const k=document.createElement("link");if(k.rel=y?"stylesheet":IL,y||(k.as="script"),k.crossOrigin="",k.href=p,d&&k.setAttribute("nonce",d),document.head.appendChild(k),y)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 d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})},Ub={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}},TC={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},jC={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}},Vb={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}},qL={"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}},PL={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}},RC={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},np={singleLine:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},multiLine:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0}},AC={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},MC={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},zC={enabled:{kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0}},NC={strikethrough:{kybGjl:"xmqliwb",$$css:!0}},BL={enabled:{kcqcaj:"xss6m8b",$$css:!0}},LC={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},DC={content:{ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0}};function OC(e){const{maxLines:t}=e,[r,s]=x.useState(!1),[o,l]=x.useState(""),u=x.useRef(null),d=x.useRef(null),f=x.useCallback(y=>{if(t===0){s(!1);return}if(l(y.textContent??""),t===1)s(y.scrollWidth>y.offsetWidth);else{let g=y.scrollHeight;try{const k=document.createRange();k.selectNodeContents(y),g=k.getBoundingClientRect().height,k.detach()}catch{}s(g>y.offsetHeight)}},[t]);return{ref:x.useCallback(y=>{d.current?.(),d.current=null,u.current=y,y&&t>0?typeof ResizeObserver<"u"?d.current=Yu(y,()=>{f(y)}):f(y):(s(!1),l(""))},[t,f]),isTruncated:r,fullText:o}}function xn(e,t,r,s,o,l){return x.useMemo(()=>Ib(e,t,r,s,o,l),[e,t,r,s,o,l])}const HL=x.lazy(async()=>md(()=>Promise.resolve().then(()=>XT),[]).then(e=>({default:e.Tooltip}))),FL={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function UL(e){return e in Vb?e:"body"}function IC(e){return e in Ub?e:"primary"}function Je({type:e="body",size:t,color:r,weight:s,display:o="inline",maxLines:l=0,hasTruncateTooltip:u=!0,wordBreak:d,textWrap:f,justify:p="start",hasCapsize:y=!1,hasStrikethrough:g=!1,hasTabularNumbers:k=!1,xstyle:v,className:w,style:S,as:E="span",children:R,ref:C,...T}){const A=r??FL[e]??"primary",M=UL(e),L=IC(A),D=d??(l===1?"break-all":"break-word"),j=l>0||y?"block":o,I=OC({maxLines:l}),z=typeof u=="string"?u:"above",H=l>0&&u!==!1&&I.isTruncated,F=x.useRef(null),B=xn(C,I.ref,F),q=l>1?{WebkitLineClamp:l}:void 0;return m.jsxs(m.Fragment,{children:[m.jsx(E,{ref:B,...ye(he("text",{type:e,size:t,color:A}),fe(Ub[L],Vb[M],t&&qL[t],jC[M],s&&TC[s],l===1?np.singleLine:l>1?np.multiLine:RC[j],l>0&&AC[D],f&&MC[f],p!=="start"&&LC[p],y&&zC.enabled,g&&NC.strikethrough,k&&BL.enabled,v),w,{...S,...q}),...T,children:R}),H&&m.jsx(x.Suspense,{fallback:null,children:m.jsx(HL,{anchorRef:F,content:m.jsx("span",{...fe(DC.content),children:I.fullText}),placement:z})})]})}Je.displayName="Text";function uy(e,t){const r=t&&t.cache?t.cache:ZL,s=t&&t.serializer?t.serializer:YL;return(t&&t.strategy?t.strategy:KL)(e,{cache:r,serializer:s})}function VL(e){return e==null||typeof e=="number"||typeof e=="boolean"}function GL(e,t,r,s){const o=VL(s)?s:r(s);let l=t.get(o);return typeof l>"u"&&(l=e.call(this,s),t.set(o,l)),l}function _C(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 qC(e,t,r,s,o){return r.bind(t,e,s,o)}function KL(e,t){const r=e.length===1?GL:_C;return qC(e,this,r,t.cache.create(),t.serializer)}function WL(e,t){return qC(e,this,_C,t.cache.create(),t.serializer)}const YL=function(){return JSON.stringify(arguments)};var XL=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const ZL={create:function(){return new XL}},dy={variadic:WL},QL=/(?:[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 JL(e){const t={};return e.replace(QL,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 eD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tD(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(eD).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 d of u)if(d.length===0)throw new Error("Invalid number skeleton");r.push({stem:l,options:u})}return r}function nD(e){return e.replace(/^(.*?)-/,"")}const g5=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,PC=/^(@+)?(\+|#+)?[rs]?$/g,rD=/(\*)(0+)|(#+)(0+)|(0+)/g,BC=/^(0+)$/;function m5(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(PC,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 HC(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 aD(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)),!BC.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function y5(e){const t={},r=HC(e);return r||t}function sD(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=nD(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,...y5(u)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((l,u)=>({...l,...y5(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(rD,function(l,u,d,f,p,y){if(u)t.minimumIntegerDigits=d.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(BC.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(g5.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(g5,function(u,d,f,p,y,g){return f==="*"?t.minimumFractionDigits=d.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:y&&g?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+g.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});const l=r.options[0];l==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:l&&(t={...t,...m5(l)});continue}if(PC.test(r.stem)){t={...t,...m5(r.stem)};continue}const s=HC(r.stem);s&&(t={...t,...s});const o=aD(r.stem);o&&(t={...t,...o})}return t}let oD=(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 b5(e){return e.type===0}function iD(e){return e.type===1}function FC(e){return e.type===2}function UC(e){return e.type===3}function VC(e){return e.type===4}function GC(e){return e.type===5}function KC(e){return e.type===6}function lD(e){return e.type===7}function WC(e){return e.type===8}function YC(e){return!!(e&&typeof e=="object"&&e.type===0)}function S1(e){return!!(e&&typeof e=="object"&&e.type===1)}const XC=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vu={"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 cD(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),d=l<2?1:3+(l>>1),f="a",p=uD(t);for((p=="H"||p=="k")&&(d=0);d-- >0;)r+=f;for(;u-- >0;)r=p+r}else o==="J"?r+="H":r+=o}return r}function uD(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),(vu[`${r}-${s}`]||vu[s||""]||vu[r||""]||vu[`${r}-001`]||vu["001"])[0].charAt(0)}const dD=new RegExp(`^${XC.source}*`),fD=new RegExp(`${XC.source}*$`);function Et(e,t){return{start:e,end:t}}const hD=!!Object.fromEntries,pD=!!String.prototype.trimStart,xD=!!String.prototype.trimEnd,k5=hD?Object.fromEntries:function(t){const r={};for(const[s,o]of t)r[s]=o;return r},gD=pD?function(t){return t.trimStart()}:function(t){return t.replace(dD,"")},mD=xD?function(t){return t.trimEnd()}:function(t){return t.replace(fD,"")},v5=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function yD(e,t){return v5.lastIndex=t,v5.exec(e)[1]??""}function bD(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 kD=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=bD(this.message);if(t){const r=this.clonePosition();return this.position=t,{val:[{type:0,value:this.message,location:Et(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:Et(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(26,Et(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&E1(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:Et(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()||!E1(this.char()))return this.error(23,Et(u,this.clonePosition()));const d=this.clonePosition();return s!==this.parseTagName()?this.error(26,Et(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:s,children:l,location:Et(r,this.clonePosition())},err:null}:this.error(23,Et(u,this.clonePosition())))}else return this.error(27,Et(r,this.clonePosition()))}else return this.error(23,Et(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&wD(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 d=this.tryParseLeftAngleBracket();if(d){s+=d;continue}break}const o=Et(r,this.clonePosition());return{val:{type:0,value:s,location:o},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vD(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,Et(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,Et(r,this.clonePosition()));let s=this.parseIdentifierIfPossible().value;if(!s)return this.error(3,Et(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,Et(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:s,location:Et(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,Et(r,this.clonePosition())):this.parseArgumentOptions(e,t,s,r);default:return this.error(3,Et(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=yD(this.message,t),s=t+r.length;return this.bumpTo(s),{value:r,location:Et(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,Et(o,u));case"number":case"date":case"time":{this.bumpSpace();let d=null;if(this.bumpIf(",")){this.bumpSpace();const y=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;const k=mD(g.val);if(k.length===0)return this.error(6,Et(this.clonePosition(),this.clonePosition()));d={style:k,styleLocation:Et(y,this.clonePosition())}}const f=this.tryParseArgumentClose(s);if(f.err)return f;const p=Et(s,this.clonePosition());if(d&&d.style.startsWith("::")){let y=gD(d.style.slice(2));if(l==="number"){const g=this.parseNumberSkeletonFromString(y,d.styleLocation);return g.err?g:{val:{type:2,value:r,location:p,style:g.val},err:null}}else{if(y.length===0)return this.error(10,p);let g=y;this.locale&&(g=cD(y,this.locale));const k={type:1,pattern:g,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?JL(g):{}};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:d?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,Et(d,{...d}));this.bumpSpace();let f=this.parseIdentifierIfPossible(),p=0;if(l!=="select"&&f.value==="offset"){if(!this.bumpIf(":"))return this.error(13,Et(this.clonePosition(),this.clonePosition()));this.bumpSpace();const v=this.tryParseDecimalInteger(13,14);if(v.err)return v;this.bumpSpace(),f=this.parseIdentifierIfPossible(),p=v.val}const y=this.tryParsePluralOrSelectOptions(e,l,t,f);if(y.err)return y;const g=this.tryParseArgumentClose(s);if(g.err)return g;const k=Et(s,this.clonePosition());return l==="select"?{val:{type:5,value:r,options:k5(y.val),location:k},err:null}:{val:{type:6,value:r,options:k5(y.val),offset:p,pluralType:l==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(5,Et(o,u))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,Et(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,Et(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=tD(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?sD(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,s){let o=!1;const l=[],u=new Set;let{value:d,location:f}=s;for(;;){if(d.length===0){const k=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){const v=this.tryParseDecimalInteger(16,19);if(v.err)return v;f=Et(k,this.clonePosition()),d=this.message.slice(k.offset,this.offset())}else break}if(u.has(d))return this.error(t==="select"?21:20,f);d==="other"&&(o=!0),this.bumpSpace();const p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?17:18,Et(this.clonePosition(),this.clonePosition()));const y=this.parseMessage(e+1,t,r);if(y.err)return y;const g=this.tryParseArgumentClose(p);if(g.err)return g;l.push([d,{value:y.val,location:Et(p,this.clonePosition())}]),u.add(d),this.bumpSpace(),{value:d,location:f}=this.parseIdentifierIfPossible()}return l.length===0?this.error(t==="select"?15:16,Et(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(22,Et(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 d=this.char();if(d>=48&&d<=57)o=!0,l=l*10+(d-48),this.bump();else break}const u=Et(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()&&SD(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 E1(e){return e>=97&&e<=122||e>=65&&e<=90}function vD(e){return E1(e)||e===47}function wD(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 SD(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function $1(e){e.forEach(t=>{if(delete t.location,GC(t)||KC(t))for(const r in t.options)delete t.options[r].location,$1(t.options[r].value);else FC(t)&&YC(t.style)||(UC(t)||VC(t))&&S1(t.style)?delete t.style.location:WC(t)&&$1(t.children)})}function ED(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const r=new kD(e,t).parse();if(r.err){const s=SyntaxError(oD[r.err.kind]);throw s.location=r.err.location,s.originalMessage=r.err.message,s}return t?.captureLocation||$1(r.val),r.val}var Kp=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},w5=class extends Kp{constructor(e,t,r,s){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",s)}},$D=class extends Kp{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},CD=class extends Kp{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function TD(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 jD(e){return typeof e=="function"}function Dh(e,t,r,s,o,l,u){if(e.length===1&&b5(e[0]))return[{type:0,value:e[0].value}];const d=[];for(const f of e){if(b5(f)){d.push({type:0,value:f.value});continue}if(lD(f)){typeof l=="number"&&d.push({type:0,value:r.getNumberFormat(t).format(l)});continue}const{value:p}=f;if(!(o&&p in o))throw new CD(p,u);let y=o[p];if(iD(f)){(!y||typeof y=="string"||typeof y=="number"||typeof y=="bigint")&&(y=typeof y=="string"||typeof y=="number"||typeof y=="bigint"?String(y):""),d.push({type:typeof y=="string"?0:1,value:y});continue}if(UC(f)){const g=typeof f.style=="string"?s.date[f.style]:S1(f.style)?f.style.parsedOptions:void 0;d.push({type:0,value:r.getDateTimeFormat(t,g).format(y)});continue}if(VC(f)){const g=typeof f.style=="string"?s.time[f.style]:S1(f.style)?f.style.parsedOptions:s.time.medium;d.push({type:0,value:r.getDateTimeFormat(t,g).format(y)});continue}if(FC(f)){const g=typeof f.style=="string"?s.number[f.style]:YC(f.style)?f.style.parsedOptions:void 0;if(g&&g.scale){const k=g.scale||1;if(typeof y=="bigint"){if(!Number.isInteger(k))throw new TypeError(`Cannot apply fractional scale ${k} to bigint value. Scale must be an integer when formatting bigint.`);y=y*BigInt(k)}else y=y*k}d.push({type:0,value:r.getNumberFormat(t,g).format(y)});continue}if(WC(f)){const{children:g,value:k}=f,v=o[k];if(!jD(v))throw new $D(k,"function",u);let w=v(Dh(g,t,r,s,o,l).map(S=>S.value));Array.isArray(w)||(w=[w]),d.push(...w.map(S=>({type:typeof S=="string"?0:1,value:S})))}if(GC(f)){const g=y,k=(Object.prototype.hasOwnProperty.call(f.options,g)?f.options[g]:void 0)||f.options.other;if(!k)throw new w5(f.value,y,Object.keys(f.options),u);d.push(...Dh(k.value,t,r,s,o));continue}if(KC(f)){const g=`=${y}`;let k=Object.prototype.hasOwnProperty.call(f.options,g)?f.options[g]:void 0;if(!k){if(!Intl.PluralRules)throw new Kp(`Intl.PluralRules is not available in this environment.
14
- Try polyfilling it using "@formatjs/intl-pluralrules"
15
- `,"MISSING_INTL_API",u);const w=typeof y=="bigint"?Number(y):y,S=r.getPluralRules(t,{type:f.pluralType}).select(w-(f.offset||0));k=(Object.prototype.hasOwnProperty.call(f.options,S)?f.options[S]:void 0)||f.options.other}if(!k)throw new w5(f.value,y,Object.keys(f.options),u);const v=typeof y=="bigint"?Number(y):y;d.push(...Dh(k.value,t,r,s,o,v-(f.offset||0)));continue}}return TD(d)}function RD(e,t){return t?{...e,...t,...Object.keys(e).reduce((r,s)=>(r[s]={...e[s],...t[s]},r),{})}:e}function AD(e,t){return t?Object.keys(e).reduce((r,s)=>(r[s]=RD(e[s],t[s]),r),{...e}):e}function fy(e){return{create(){return{get(t){return e[t]},set(t,r){e[t]=r}}}}}function MD(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:uy((...t)=>new Intl.NumberFormat(...t),{cache:fy(e.number),strategy:dy.variadic}),getDateTimeFormat:uy((...t)=>new Intl.DateTimeFormat(...t),{cache:fy(e.dateTime),strategy:dy.variadic}),getPluralRules:uy((...t)=>new Intl.PluralRules(...t),{cache:fy(e.pluralRules),strategy:dy.variadic})}}var sr,zD=(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 d=u.reduce((f,p)=>(!f.length||p.type!==0||typeof f[f.length-1]!="string"?f.push(p.value):f[f.length-1]+=p.value,f),[]);return d.length<=1?d[0]||"":d},this.formatToParts=l=>Dh(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=AD(sr.formats,s),this.formatters=o&&o.formatters||MD(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=ED,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),ND=zD;const LD={"@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"},S5=new Map;function DD(e,t){const r=`${t}::${e}`;let s=S5.get(r);return s===void 0&&(s=new ND(e,t),S5.set(r,s)),s}function OD(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 ID(e,t,r){const s={},o=OD(e);if(r!==void 0){for(const l of o)if(r[l])for(const[u,d]of Object.entries(r[l]))s[u]===void 0&&d!==null&&(s[u]=d)}for(const l of o)if(t[l])for(const[u,d]of Object.entries(t[l])){const f=typeof d=="string"?d:d?.defaultMessage;s[u]===void 0&&f!=null&&(s[u]=f)}return s}function ZC(e,t,r){const s=ID(e,t,r);return(o,l)=>{const u=s[o]??LD[o];return u===void 0?(Hp(),o):l===void 0?u:DD(u,e).format(l)}}const Wp=x.createContext({locale:"en",direction:"ltr",messages:{},translate:ZC("en",{})});Wp.displayName="InternationalizationContext";function _D(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 qD(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 QC({locale:e,messages:t,overrides:r,dir:s,children:o}){const l=s??_D(e),u=x.useMemo(()=>{const d=t??{};return{locale:e,direction:l,messages:qD(d),overrides:r,translate:ZC(e,d,r)}},[e,l,t,r]);return m.jsx(Wp,{value:u,children:o})}QC.displayName="InternationalizationProvider";function zt(){return x.use(Wp).translate}function PD(){return x.use(Wp).locale}const BD=.375,HD={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},FD="--_spinner-ring-diameter",UD="--_spinner-ring-stroke",VD=[FD,UD],E5="--_spinner-box-size";function GD(){if(!(typeof CSS>"u"||typeof CSS.registerProperty!="function"))for(const e of VD)try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!0,initialValue:"0px"})}catch{}}GD();const rp=new Set;let C1=!1;function KD(){C1=!1;const e=[];for(const t of rp)e.push(...t.getAnimations({subtree:!0}));rp.clear();for(const t of e)t.startTime=0}function WD(e){if(e!=null&&typeof e.getAnimations=="function")return rp.add(e),C1||(C1=!0,requestAnimationFrame(KD)),()=>{rp.delete(e)}}const eh={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}},$5={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}},C5={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}},YD={default:{kDd8S0:"x1g350g8",$$css:!0},subtle:{kDd8S0:"x1g350g8",$$css:!0},onMedia:{kDd8S0:"x1smxkh6",$$css:!0},inherit:{kDd8S0:"x7bo2k",$$css:!0}};function Do({size:e="md",shade:t="default",label:r,xstyle:s,className:o,style:l,"aria-label":u,"data-testid":d,ref:f,...p}){const{border:y,diameter:g}=HD[e],k=g+y*2,v=Math.PI*g,w=v*BD,S=r!=null,E=x.useId(),R=zt(),C=S&&typeof r=="string"&&u==null,T=u??(typeof r=="string"?r:void 0)??R("@astryx.spinner.loading"),A=m.jsx("span",{ref:S?void 0:f,role:"status","aria-label":C?void 0:T,"aria-labelledby":C?E:void 0,"data-testid":S?void 0:d,...S?{}:p,...ye(S?"":he("spinner",{size:e,shade:t}),fe(eh.spinner,!S&&$5[e],!S&&C5[t],!S&&s),S?void 0:o,{...S?{}:l,width:`var(${E5}, ${k}px)`,height:`var(${E5}, ${k}px)`}),children:m.jsxs("svg",{ref:WD,width:k,height:k,"aria-hidden":"true",className:"xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4",children:[m.jsx("circle",{cx:"50%",cy:"50%",r:g/2,strokeWidth:y,...fe(eh.circle,eh.track,YD[t])}),m.jsx("circle",{cx:"50%",cy:"50%",r:g/2,strokeWidth:y,strokeDasharray:`${w} ${v-w}`,className:"xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb"})]})});return S?m.jsxs("div",{ref:f,"data-testid":d,...p,...ye(he("spinner",{size:e,shade:t}),fe(eh.wrapper,$5[e],C5[t],s),o,l),children:[A,typeof r=="string"?m.jsx(Je,{id:E,type:"body",weight:"bold",children:r}):r]}):A}Do.displayName="Spinner";function Vs({children:e,as:t="span",ref:r,...s}){return x.createElement(t,{ref:r,...s,className:"x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o"},e)}Vs.displayName="VisuallyHidden";const Gb=aa(null);Gb.displayName="IconDefaultSizeContext";const XD=Gb.Provider;function ZD(e){const t=x.use(Gb);return e??t??"md"}const QD={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}},JC={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}},JD="data-astryx-edge-comp",Kb=aa(null);Kb.displayName="SizeContext";function yc(e,t="md"){const r=x.use(Kb);return e??r??t}const Pl=Kb.Provider,eT=aa(null);eT.displayName="ButtonGroupContext";function eO(){return x.use(eT)}const tT=x.createContext(null);tT.displayName="LinkContext";function nT(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function tO(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,"$1")}function rT(e){const t=nT(e),r=tO(t);return r.startsWith("javascript:")||r.startsWith("vbscript:")||r.startsWith("data:text/html")?null:t}function Bs(e){return rT(e)!==null}function T5(e){if(e==null)return!0;if(typeof e=="string")return Bs(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"&&!Bs(t)||typeof r=="string"&&!Bs(r))return!1;if(typeof s=="string"&&s!==""){const u=nT(s),d=u.endsWith(":")?u:`${u}:`;if(!Bs(d)||!Bs(`${d}${o||l||""}${typeof t=="string"?t:""}`))return!1}return!0}function nO(e){function t({href:r,to:s,ref:o,...l}){return!T5(r)||!T5(s)?x.createElement("a",{ref:o,...l}):e==="a"?x.createElement("a",{ref:o,...l,href:r}):x.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=x.use(tT),r=e??t?.component??"a";return x.useMemo(()=>nO(r),[r])}const rO=150,aO=10,sO=100,oO=j9.releaseMs,iO=150,Oh={originX:0,originY:0,phase:"idle"};function j5(e,t,r){return Math.hypot(t-e.originX,r-e.originY)>aO}function ii(e,t,r,s){return{gesture:{...e,phase:t},paint:r,timer:s}}function yd(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"?j5(e,t.x,t.y)?ii(e,"dead","none",null):{gesture:e,paint:"none",timer:null}:t.kind==="cancel"?ii(e,"dead","none",null):t.kind==="onset"?ii(e,"pressed","on",null):t.kind==="up"?ii(e,"flash","on","flash"):{gesture:e,paint:"none",timer:null};case"pressed":return t.kind==="move"&&!j5(e,t.x,t.y)?{gesture:e,paint:"on",timer:null}:t.kind==="move"||t.kind==="cancel"?ii(e,"dead","none",null):t.kind==="up"?ii(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"flash":return t.kind==="flashEnd"?ii(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"fading":return t.kind==="fadeEnd"?{gesture:Oh,paint:"none",timer:null}:{gesture:e,paint:"fading",timer:null};case"dead":return t.kind==="up"?{gesture:Oh,paint:"none",timer:null}:{gesture:e,paint:"none",timer:null};case"idle":return{gesture:Oh,paint:"none",timer:null}}}function aT(){return Oh}const sT="data-astryx-pressable",T1="data-astryx-press",lO={[sT]:""},cO=3e3,uO=':disabled, [aria-disabled="true"]';let Tt=null,th=0,Wb=0,ap=null,Yp=0,Ju=null;const dO={fade:oO,flash:sO,onset:rO},fO={fade:"fadeEnd",flash:"flashEnd",onset:"onset"};function hO(e,t){if(t==="none"){e.removeAttribute(T1);return}e.setAttribute(T1,t)}function Yb(){Tt?.timer!=null&&(clearTimeout(Tt.timer),Tt.timer=null)}function bd(e){if(Tt==null)return;const t=e.gesture.phase!==Tt.gesture.phase;if((e.timer!=null||t)&&Yb(),Tt.gesture=e.gesture,hO(Tt.element,e.paint),e.gesture.phase==="idle"){Tt=null;return}if(e.timer!=null){const r=e.timer;Tt.timer=setTimeout(()=>{Tt!=null&&(Tt.timer=null),bd(yd(Tt?.gesture??aT(),{kind:fO[r]}))},dO[r])}}function pO(e){if(!(e instanceof Element))return null;const t=e.closest(`[${sT}]`);return!(t instanceof HTMLElement)||t.matches(uO)?null:t}function xO(e){return Date.now()-Wb>=iO?!1:ap instanceof Node&&ap.contains(e)}function oT(){Tt?.gesture.phase==="dead"&&(Yb(),Tt=null)}function sp(){Tt!=null&&(Yb(),Tt.element.removeAttribute(T1),Tt=null)}function iT(e){if(e.pointerType==="mouse")return;if(Tt!=null){if(!(Tt.gesture.phase==="fading"||Tt.gesture.phase==="flash")){sp();return}sp()}const t=pO(e.target),r=t!=null&&xO(t);Yp=Date.now(),Ju=e.target instanceof Node?e.target:null,!(t==null||r)&&(Tt={element:t,gesture:aT(),pointerId:e.pointerId,timer:null},bd(yd(Tt.gesture,{kind:"down",x:e.clientX,y:e.clientY})))}function lT(e){Tt==null||Tt.pointerId!=null&&e.pointerId!==Tt.pointerId||bd(yd(Tt.gesture,{kind:"move",x:e.clientX,y:e.clientY}))}function cT(e){e.pointerType!=="mouse"&&(Yp=Date.now(),e.target instanceof Node&&(Ju=e.target),!(Tt==null||Tt.pointerId!=null&&e.pointerId!==Tt.pointerId)&&(bd(yd(Tt.gesture,{kind:"up"})),oT()))}function ki(){Tt!=null&&(bd(yd(Tt.gesture,{kind:"cancel"})),oT())}function uT(e){const t=e.target instanceof Node?e.target:document;Date.now()-Yp<cO&&Ju!=null&&t.contains(Ju)&&(Wb=Date.now(),ap=t),!(Tt==null||!(t===document||t.contains(Tt.element)))&&ki()}function dT(){document.visibilityState==="hidden"&&sp()}const Or={capture:!0,passive:!0};function gO(){window.addEventListener("pointerdown",iT,Or),window.addEventListener("pointermove",lT,Or),window.addEventListener("pointerup",cT,Or),window.addEventListener("pointercancel",ki,Or),window.addEventListener("touchcancel",ki,Or),window.addEventListener("dragstart",ki,Or),document.addEventListener("scroll",uT,Or),document.addEventListener("visibilitychange",dT)}function mO(){window.removeEventListener("pointerdown",iT,Or),window.removeEventListener("pointermove",lT,Or),window.removeEventListener("pointerup",cT,Or),window.removeEventListener("pointercancel",ki,Or),window.removeEventListener("touchcancel",ki,Or),window.removeEventListener("dragstart",ki,Or),document.removeEventListener("scroll",uT,Or),document.removeEventListener("visibilitychange",dT)}function yO(){if(typeof window>"u")return()=>{};th===0&&gO(),th+=1;let e=!1;return()=>{e||(e=!0,th-=1,!(th>0)&&(mO(),sp(),Wb=0,ap=null,Yp=0,Ju=null))}}function ja(){return x.useEffect(()=>yO(),[]),lO}const Ls={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}},bO={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},kO={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},vO={none:{kGVxlE:"x1gnnqk1",$$css:!0},low:{kGVxlE:"x1i5ehqx",$$css:!0},med:{kGVxlE:"x14hfi27",$$css:!0},high:{kGVxlE:"x1kcpxr7",$$css:!0}},wO={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}},SO={sm:"sm",md:"sm",lg:"md"},R5={hiddenContent:{kMwMTN:"x19co3pv",$$css:!0},hiddenContentDelayed:{kKVMdj:"x1ffowhz",k44tkh:"xjlvqhv",kWV6AL:"x10e4vud",kKxzle:"x17yabm6 x14q22ui",$$css:!0}},nh={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 jt({label:e,variant:t="secondary",size:r,type:s="button",isDisabled:o=!1,isLoading:l=!1,isInterruptible:u=!1,clickAction:d,icon:f,isIconOnly:p=!1,width:y,elevation:g="none",children:k,endContent:v,tooltip:w,href:S,as:E,target:R,rel:C,xstyle:T,className:A,style:M,ref:L,...D}){const j=ja(),I=zt(),z=yc(r,"md"),H=eO(),[F,B]=x.useTransition(),q=x.useRef(!1),U=l||F,_=F||u,P=H?.isDisabled??!1,G=o||P||U&&!u,Y=o||P,X=Oi(E),ee=S!=null&&!G,Q=w!=null&&G,oe=Ka({placement:"above",isEnabled:w!=null}),O=je=>{if(G||q.current&&!u){je.preventDefault();return}D.onClick?.(je),d&&!je.defaultPrevented&&(q.current=!0,B(async()=>{try{await d(je)}finally{q.current=!1}}))},Z=Q?je=>{je.key==="Enter"||je.key===" "?je.preventDefault():D.onKeyDown?.(je)}:void 0,ue=t==="ghost"?{[JD]:""}:null,ve=pn.focusVisible(Ls.base,kO[z],p&&Ls.iconOnly,or.backgroundImage,G&&Ls.inactive,Y&&Ls.disabled,Q&&Ls.ariaDisabled,ee&&Ls.link,!H&&Ls.pressable,H&&(H.orientation==="horizontal"?nh.horizontal:nh.vertical),H&&(t==="primary"||t==="destructive")&&(H.orientation==="horizontal"?nh.onSolidHorizontal:nh.onSolidVertical),!H&&vO[g],y!=null&&bO.width(y),wO[t],T),xe=ye(he("button",{variant:t,size:z,elevation:H?"none":g}),ve,A,M),$e=SO[z],te=m.jsxs(m.Fragment,{children:[U&&m.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:m.jsx(Do,{size:"sm",shade:"inherit"})}),m.jsxs("span",{...fe(Ls.contentWrapper,U&&(_?R5.hiddenContentDelayed:R5.hiddenContent)),"aria-hidden":U||void 0,children:[f&&m.jsx("span",{...fe(Ls.iconWrapper,JC[$e]),children:m.jsx(XD,{value:$e,children:f})}),p?null:m.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:k??e}),!p&&v&&m.jsx("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:v})]}),m.jsx(Vs,{role:"status","aria-live":"polite",children:U?I("@astryx.button.loading"):""})]}),Re=p&&e!==""||U&&!p||k!=null&&k!==e?{"aria-label":e}:null,Te=w!=null?{"aria-describedby":[D["aria-describedby"],oe.describedBy].filter(Boolean).join(" ")||void 0}:null,Ce=xn(L,w!=null?oe.ref:void 0);let Me;return ee?Me=m.jsx(X,{ref:Ce,href:S,target:R,rel:C,...xe,...j,...D,...Re,...Te,...ue,"aria-busy":U||void 0,onClick:O,children:te}):Me=m.jsx("button",{ref:Ce,type:s,disabled:Q?void 0:G,...xe,...j,...D,...Re,...Te,...ue,"aria-busy":U||void 0,"aria-disabled":Q||void 0,onClick:O,...Z?{onKeyDown:Z}:null,children:te}),w?m.jsxs(m.Fragment,{children:[Me,oe.renderTooltip(w)]}):Me}jt.displayName="Button";function j1(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 EO={"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"},$O={"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"};function CO(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function A5(e,t,r){const o={...e==="dark"?EO:$O,...r?.tokens};if(t?.tokens)for(const[l,u]of Object.entries(t.tokens))u!==void 0&&(o[l]=CO(u));return{tokens:o,components:j1(r?.components,t?.components)}}const hy={[-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"},TO={1:3,2:2,3:1,4:0,5:-1,6:-2},jO={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},RO={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)"},AO={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 py(e,t,r){return Math.round(e*Math.pow(t,r))}function MO(e){return`${Math.round(e/16*1e4)/1e4}rem`}function zO(e){return e<20?1.5:e<32?1.4:1.25}function M5(e){const t=zO(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 NO(e){const{base:t,ratio:r,weights:s}=e,o={},l={...RO,...s?.heading},u={...AO,...s?.text};for(let d=-5;d<=6;d++){const f=py(t,r,d);o[hy[d]]=MO(f)}for(const[d,f]of Object.entries(TO)){const p=Number(d),y=py(t,r,f),g=M5(y);o[`--text-heading-${p}-size`]=`var(${hy[f]})`,o[`--text-heading-${p}-weight`]=l[p],o[`--text-heading-${p}-leading`]=`${g}`}for(const[d,f]of Object.entries(jO)){const p=py(t,r,f),y=M5(p);o[`--text-${d}-size`]=`var(${hy[f]})`,o[`--text-${d}-weight`]=u[d],o[`--text-${d}-leading`]=`${y}`}return o}const LO={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 DO(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:LO[o],fontSize:`var(--text-${o}-size)`,lineHeight:`var(--text-${o}-leading)`};return t.text=s,t}function Ds(e){return Math.round(e/5)*5}function OO(e){const{fast:t,medium:r,slow:s,ratio:o,easing:l}=e,u={"--duration-fast-min":`${Ds(t*o)}ms`,"--duration-fast":`${Ds(t)}ms`,"--duration-fast-max":`${Ds(t/o)}ms`,"--duration-medium-min":`${Ds(r*o)}ms`,"--duration-medium":`${Ds(r)}ms`,"--duration-medium-max":`${Ds(r/o)}ms`};return s!=null&&(u["--duration-slow-min"]=`${Ds(s*o)}ms`,u["--duration-slow"]=`${Ds(s)}ms`,u["--duration-slow-max"]=`${Ds(s/o)}ms`),l&&(u["--ease-standard"]=l),u}function IO(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 z5(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 fT(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 N5(e,t){if(typeof e!="string")return e;const r=Xu(e);if(r===null)throw new TypeError(`contrastRatio: could not parse ${t} "${e}"`);return r}function Ih(e,t){const r=N5(t,"background");if(r.a<1)throw new TypeError("contrastRatio: background must be opaque — composite it over its backdrop first");let s=N5(e,"foreground");s.a<1&&(s=fT(s,r));const o=z5(s),l=z5(r),u=Math.max(o,l),d=Math.min(o,l);return(u+.05)/(d+.05)}function Kl(e){const t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _h(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 _O(e,t,r){return[.4124564*e+.3575761*t+.1804375*r,.2126729*e+.7151522*t+.072175*r,.0193339*e+.119192*t+.9503041*r]}function qO(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 Wl=[.95047,1,1.08883];function xy(e){const t=.20689655172413793;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function qh(e){const t=.20689655172413793;return e>t?e*e*e:3*t*t*(e-4/29)}function PO(e,t,r){const s=xy(e/Wl[0]),o=xy(t/Wl[1]),l=xy(r/Wl[2]);return[116*o-16,500*(s-o),200*(o-l)]}function BO(e,t,r){const s=(e+16)/116,o=t/500+s,l=s-r/200;return[qh(o)*Wl[0],qh(s)*Wl[1],qh(l)*Wl[2]]}function HO(e){return qh((e+16)/116)}function FO(e){const t=uC(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function L5(e){const[t,r,s]=FO(e),o=Kl(t),l=Kl(r),u=Kl(s),[d,f,p]=_O(o,l,u),[y,g,k]=PO(d,f,p);let w=Math.atan2(k,g)*180/Math.PI;w<0&&(w+=360);const S=Math.sqrt(g*g+k*k);return{hue:w,chroma:S,tone:Math.max(0,Math.min(100,y))}}function R1(e){const{hue:t,chroma:r,tone:s}=e;if(s<=0)return"#000000";if(s>=100)return"#FFFFFF";if(r<.5){const d=UO(s);return qb(d,d,d)}let o=0,l=r,u="#000000";for(let d=0;d<16;d++){const f=(o+l)/2,p=VO(t,f,s);p!==null?(u=p,o=f):l=f}return u}function UO(e){const t=HO(e);return _h(t)}function VO(e,t,r){const s=e*Math.PI/180,o=Math.cos(s)*t,l=Math.sin(s)*t,u=r,[d,f,p]=BO(u,o,l),[y,g,k]=qO(d,f,p),v=_h(y),w=_h(g),S=_h(k),E=Kl(v),R=Kl(w),C=Kl(S),T=.02;return Math.abs(E-y)>T||Math.abs(R-g)>T||Math.abs(C-k)>T||v<0||v>255||w<0||w>255||S<0||S>255?null:qb(v,w,S)}const GO=[0,5,10,20,30,40,50,60,70,80,90,95,99,100];function Tl(e,t){const r={};for(const s of GO)r[s]=R1({hue:e,chroma:t,tone:s});return r}function zr(e,t){const r=Math.round(t*255).toString(16).padStart(2,"0").toUpperCase();return e+r}const KO={warm:7,cool:5,neutral:3},WO={warm:10,cool:8,neutral:6},D5="#0064E0";function Xt(e,t){return`light-dark(${e}, ${t})`}function O5(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}const I5=3;function _5(e,t,r,s,o,l){let u=r,d=R1({hue:e,chroma:t,tone:u});for(;Ih(d,o)<l&&u+s>=0&&u+s<=100;)u+=s,d=R1({hue:e,chroma:t,tone:u});return d}function YO(e){const{accent:t,neutralStyle:r="cool",contrast:s="standard"}=e,[o,l]=Array.isArray(t)?t:[t,t],u=L5(o??D5),d=l===o,f=d?u:L5(l??D5),p=KO[r]??5,y=WO[r]??8,g=Tl(u.hue,Math.max(u.chroma,48)),k=Tl(u.hue,p),v=Tl(u.hue,y),w=d?g:Tl(f.hue,Math.max(f.chroma,48)),S=d?k:Tl(f.hue,p),E=d?v:Tl(f.hue,y),R=s==="high",C=R?0:10,T=R?99:90,A=R?20:30,M=R?80:70,L=R?.2:.1,D=R?50:70,j=R?50:30,I=Xt(_5(u.hue,y,D,-1,k[99],I5),_5(f.hue,y,j,1,S[10],I5));return{...t!=null?{"--color-accent":Xt(g[40],w[80]),"--color-accent-muted":Xt(O5(.2),O5(.25)),"--color-on-accent":Xt(g[100],w[20])}:null,"--color-neutral":Xt(zr(k[10],.1),zr(S[90],.2)),"--color-background-surface":Xt(k[99],S[10]),"--color-background-body":Xt(k[95],S[5]),"--color-overlay":Xt(zr(k[10],.4),zr(S[10],.6)),"--color-overlay-hover":Xt(zr(k[10],.05),zr(S[100],.05)),"--color-overlay-pressed":Xt(zr(k[10],.1),zr(S[100],.1)),"--color-background-muted":Xt(zr(k[10],.05),zr(S[10],.5)),"--color-text-primary":Xt(k[C],S[T]),"--color-text-secondary":Xt(v[A],E[M]),"--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[M]),"--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(zr(k[10],L),zr(S[95],L)),"--color-border-emphasized":I,"--color-skeleton":Xt(v[70],E[30]),"--color-track":Xt(v[70],E[30]),"--color-shadow":Xt(zr(k[0],.1),zr(S[0],.3)),"--color-tint-hover":Xt("black","white")}}function XO(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 rh(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 gy(e,t){if(!e)return;const r=e.includes(" ")?`"${e}"`:e;return t?`${r}, ${t}`:r}function ZO(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)]=rh(u));const s=r?.weight?rh(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=rh(e.body.weight)),e.code?.weight&&(o.code=rh(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 QO(e){const t={},r=gy(e.body?.family,e.body?.fallbacks),s=gy(e.heading?.family,e.heading?.fallbacks)??r,o=gy(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 hT(e,t,{strictTokens:r=!1}={}){const s={...t?.tokens},o=e.typography,l=o?ZO(o):void 0;if(e.color&&Object.assign(s,YO(e.color)),l&&Object.assign(s,NO(l)),e.radius&&Object.assign(s,IO(e.radius)),e.motion&&Object.assign(s,OO(e.motion)),o&&Object.assign(s,QO(o)),e.syntax){const d="--color-syntax-";for(const[f,p]of Object.entries(e.syntax.tokens))s[d+f]=p}if(e.tokens)for(const[d,f]of Object.entries(e.tokens))f!==void 0&&(s[d]=XO(f,{strict:r}));let u=e.components;return l&&(u=j1(DO(),e.components)),t?.components&&(u=j1(t.components,u)),{tokens:s,components:u}}const pT=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,JO=new RegExp(`^--${pT}*$`,"u"),my=new RegExp(`var\\(\\s*(--${pT}*)(?=\\s*(?:,|\\)))`,"giu");function Yl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xT(e){return!e.includes("\0")&&JO.test(e)}function gT(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 A1(e,t){if(typeof e=="string"){my.lastIndex=0;for(let r=my.exec(e);r;r=my.exec(e))t.add(r[1]);return}if(Array.isArray(e)){for(const r of e)A1(r,t);return}if(e&&typeof e=="object")for(const r of Object.values(e))A1(r,t)}function mT(e,t,r){const s=new Map;for(const[g,k]of Object.entries(e)){const v=new Set;A1(k,v),s.set(g,[...v].filter(w=>Yl(e,w)))}const o=(g,k)=>{const v=[g],w=new Set(v),S=E=>{for(const R of s.get(E)??[])if(k.has(R)){if(R===g)return v.push(g),!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(g),v};let l=0;const u=new Map,d=new Map,f=[],p=new Set,y=g=>{const k=l++;u.set(g,k),d.set(g,k),f.push(g),p.add(g);for(const C of s.get(g)??[])u.has(C)?p.has(C)&&d.set(g,Math.min(d.get(g)??k,u.get(C)??0)):(y(C),d.set(g,Math.min(d.get(g)??k,d.get(C)??0)));if(d.get(g)!==k)return;const v=[];let w;do w=f.pop()??g,p.delete(w),v.push(w);while(w!==g);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 g of Object.keys(e))u.has(g)||y(g)}function eI(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)||!xT(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(!Yl(t.localTokens,s))throw new Error(`defineTheme("${e}"): inherited local-token owner metadata names undeclared token "${s}".`)}function tI(e,t,r,s){const o=Yl(e,"localTokens"),l=t?.__localTokenLineage!==void 0;if(!o&&!l)return;l&&t&&eI(e.name,t);const u={...t?.localTokens},d={...t?.__localTokenOwners},f=e.localTokens;if(o&&(f==null||typeof f!="object"||Array.isArray(f)))throw new Error(`defineTheme("${e.name}"): localTokens must be a token map.`);for(const[p,y]of Object.entries(f??{})){const g=d[p];if(!xT(p))throw new Error(`defineTheme("${e.name}"): local token "${p}" must be a valid CSS custom-property name.`);g||(d[p]=e.name),u[p]=gT(y,`defineTheme("${e.name}").localTokens["${p}"]`)}for(const p of Object.keys(u)){if(!d[p])throw new Error(`defineTheme("${e.name}"): inherited local token "${p}" has no owner metadata.`);if(Yl(r,p)||Yl(s,p))throw new Error(`defineTheme("${e.name}"): token "${p}" cannot be declared in both tokens and localTokens.`)}return mT(u,`defineTheme("${e.name}").localTokens`),{localTokens:u,owners:d,lineage:[...t?.__localTokenLineage??[],e.name]}}function nI(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,d]of Object.entries(r)){if(!s||!Yl(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]=gT(d,`${o}["${u}"]`)}return Object.keys(l).length>0?l:void 0}const bc=["sm","md","lg","xl","2xl"],yT=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function Xp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function $i(e,t){if(!Xp(e))throw new Error(`${t} must be an object.`)}function Ci(e,t,r){for(const s of Object.keys(e))if(!t.has(s))throw new Error(`${r}.${s} is not supported.`)}function op(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(op(r));return t}return Xp(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,op(r)])):e}const bT=new Set(bc),rI=new Set(["widthBreakpoints","rules"]),aI=new Set(["when","value"]),sI=["width","pointer","contrast","motion"],oI=new Set(sI),iI=new Set(["from","below"]),q5=new Set(["typography","color","radius","motion","tokens","localTokens","components"]);function kT(e,t){$i(e,t),Ci(e,bT,t);const r={};for(const s of bc){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 lI(e,t){const r=kT(e,t);for(const s of bc)if(r[s]===void 0)throw new Error(`${t}.${s} is missing from the effective breakpoint map.`);return r}function cI(e,t){let r;for(const s of bc){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 uI(e,t){$i(e,t),Ci(e,oI,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=op(r);if(s.width!==void 0){if($i(s.width,`${t}.width`),Ci(s.width,iI,`${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"||!bT.has(l)))throw new Error(`${t}.width.${o} must be one of ${bc.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 dI(e,t){$i(e,t),Ci(e,q5,t);for(const r of q5){const s=e[r];if(s!==void 0&&!Xp(s))throw new Error(`${t}.${r} must be an object.`)}return op(e)}function fI(e,t){if($i(e,t),Ci(e,aI,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:uI(e.when,`${t}.when`),value:dI(e.value,`${t}.value`)}}function P5(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)=>fI(r,`${t}[${s}]`))}function vT(e,t,r){const s=`defineTheme("${e}").adaptations`;let o={...yT},l=[];t!==void 0&&($i(t,`defineTheme("${e}").extends.__adaptations`),Ci(t,new Set(["widthBreakpoints","rules"]),`defineTheme("${e}").extends.__adaptations`),o=lI(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),l=P5(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let u={},d=[];r!==void 0&&($i(r,s),Ci(r,rI,s),r.widthBreakpoints!==void 0&&(u=kT(r.widthBreakpoints,`${s}.widthBreakpoints`)),r.rules!==void 0&&(d=P5(r.rules,`${s}.rules`)));const f={...o,...u};return cI(f,`${s}.widthBreakpoints`),{widthBreakpoints:f,rules:[...l,...d]}}function Ph(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Ao(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Error(`${t} must be a finite number.`)}function hI(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.`);Ao(l,`${r}.scale.base`),Ao(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:Ph(e?.body,t.body),heading:Ph(e?.heading,t.heading),code:Ph(e?.code,t.code)}}function pI(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 Ao(s,`${r}.base`),Ao(o,`${r}.multiplier`),{base:s,multiplier:o}}function xI(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.`);Ao(s,`${r}.fast`),Ao(o,`${r}.medium`),Ao(l,`${r}.ratio`);const u=t.slow??e?.slow;u!==void 0&&Ao(u,`${r}.slow`);const d=t.easing??e?.easing;return{fast:s,medium:o,ratio:l,...u!==void 0?{slow:u}:{},...d!==void 0?{easing:d}:{}}}function gI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:r.typography?hI(s.typography,r.typography,`${o}.typography`):void 0,color:r.color?{...s.color,...r.color}:void 0,radius:r.radius?pI(s.radius,r.radius,`${o}.radius`):void 0,motion:r.motion?xI(s.motion,r.motion,`${o}.motion`):void 0,tokens:r.tokens,components:r.components}}function M1(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(Xp(e)){for(const[r,s]of Object.entries(e))M1(s,`${t}.${r}`);return}throw new Error(`${t} must resolve to a concrete CSS string.`)}function mI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].when`,l=[];if(r.width){const u=r.width.from,d=r.width.below;if(u!==void 0&&d!==void 0&&s[u]>=s[d])throw new Error(`${o}.width must resolve to \`from < below\`; ${u} is ${s[u]}px and ${d} is ${s[d]}px.`);u!==void 0&&l.push(`(width >= ${s[u]}px)`),d!==void 0&&l.push(`(width < ${s[d]}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 yI={pointer:["coarse","fine","none"],contrast:["more","less","no-preference","custom"],motion:["reduce","no-preference"]},yy=yI;function bI(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 kI(e,t,r,s,o){const l=o.flatMap((f,p)=>Object.keys(f.tokens).length>0||f.localTokens&&Object.keys(f.localTokens).length>0?[p]:[]);if(l.length===0)return;const u=[0,...bc.map(f=>t[f])],d=new Set;for(const f of u)for(const p of yy.pointer)for(const y of yy.contrast)for(const g of yy.motion){const k={width:f,pointer:p,contrast:y,motion:g},v=l.filter(T=>bI(o[T].when,t,k));if(v.length===0)continue;const w=v.join(",");if(d.has(w))continue;d.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 M of Object.keys(A.tokens))E.add(M);for(const M of Object.keys(A.localTokens??{}))E.add(M)}const R=v.join(", "),C=v.map(T=>o[T].query).join("; ");mT(S,`defineTheme("${e}").adaptations ${v.length===1?"rule":"overlapping rules"} [${R}] (${C})`,E)}}function vI(e,t){const r=e?.typography,s=t.typography,o=(w,S,E=!1)=>{const R=Ph(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)),d=o(r?.code,s?.code);const f=s?.scale?s:r?.scale?r:void 0,p=(w,S)=>w?{...w,weight:S?.weight,weights:S?.weights}:void 0;l=p(l,f?.body),u=p(u,f?.heading),d=p(d,f?.code);const y=r||s?{...r,...s,scale:s?.scale??r?.scale,body:l,heading:u,code:d}:void 0,g=t.color??e?.color,k=t.radius?{...e?.radius,...t.radius}:e?.radius,v=t.motion?{...e?.motion,...t.motion}:e?.motion;return{...y?{typography:y}:{},...g?{color:g}:{},...k?{radius:k}:{},...v?{motion:v}:{}}}function wI(e,t,r){if(!e||!t)return e;const s={};for(const[o,l]of Object.entries(e))for(const[u,d]of Object.entries(l)){const f=Object.fromEntries(Object.entries(d).filter(([p])=>t[o]?.[u]?.[p]===void 0||Object.hasOwn(r?.[o]?.[u]??{},p)));Object.keys(f).length>0&&((s[o]??={})[u]=f)}return Object.keys(s).length>0?s:void 0}function wT(e,t,r,s,o,l){if(t.rules.length===0)return;const u=t.rules.map((d,f)=>{const p=gI(e,f,d.value,r),y=hT(p,void 0,{strictTokens:!0});for(const[k,v]of Object.entries(y.tokens))M1(v,`defineTheme("${e}").adaptations.rules[${f}].value.tokens["${k}"]`);y.components&&M1(y.components,`defineTheme("${e}").adaptations.rules[${f}].value.components`);for(const k of Object.keys(d.value.tokens??{}))if(o&&Object.prototype.hasOwnProperty.call(o,k))throw new Error(`defineTheme("${e}").adaptations.rules[${f}].value.tokens["${k}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);const g=nI(e,f,d.value.localTokens,o);return{when:d.when,query:mI(e,f,d.when,t.widthBreakpoints),tokens:y.tokens,localTokens:g,components:p.typography?.scale?wI(y.components,l,d.value.components):y.components}});return kI(e,t.widthBreakpoints,s,o,u),u}const Xb={"--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)"},SI={"--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)"},EI={...Xb,...SI},ST=new Map;function ET(e){ST.set(e.name,e)}function Zp(e){return e==null||e===""?null:ST.get(e)??null}const $I={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 by(e,t){const r=$I[e];return r?r.filter(s=>s.property===t):[]}function ed(e){return e===`
16
- `||e==="\r"||e==="\f"}function ip(e){return e===" "||e===" "||ed(e)}function z1(e){return/^[0-9a-fA-F]$/.test(e)}function N1(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function CI(e){return N1(e)||/^[0-9-]$/.test(e)}function $T(e){return e.replace(/\r\n?|\f/g,`
17
- `).replace(/\0/g,"�")}const TI=/[\x01-\x08\x0b\x0e-\x1f\x7f]/;function lp(e,t){return e[t]==="\\"&&t+1<e.length&&!ed(e[t+1])}function CT(e,t){const r=e[t];if(r==="-"){const s=e[t+1];return s!==void 0&&(s==="-"||N1(s)||lp(e,t+1))}return r==="\\"?lp(e,t):r!==void 0&&N1(r)}function Qp(e,t){if(z1(e[t])){let s=t;for(;s<e.length&&s-t<6&&z1(e[s]);)s++;return s<e.length&&ip(e[s])&&s++,s}const r=e.codePointAt(t)??0;return t+(r>65535?2:1)}function TT(e,t){let r="",s=t;for(;s<e.length;){const o=e[s];if(CI(o))r+=o,s++;else if(lp(e,s)){const l=Qp(e,s+1);if(z1(e[s+1])){const u=e.slice(s+1,l).trim(),d=parseInt(u,16);r+=d===0||d>1114111||d>=55296&&d<=57343?"�":String.fromCodePoint(d)}else r+=e.slice(s+1,l);s=l}else break}return{end:s,name:r}}function jI(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(ed(o))return{reason:"a newline inside a quoted string makes a bad string"};if(o==="\\"){if(s+1>=e.length)break;s=ed(e[s+1])?s+2:Qp(e,s+1);continue}s++}return{reason:`an unclosed ${r} string would swallow the rest of the rule`}}function RI(e,t){let r=t;for(;r<e.length;){const s=e[r];if(s===")")return{end:r+1};if(ip(s)){for(;r<e.length&&ip(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(TI.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(!lp(e,r))return{reason:"a stray backslash inside url() makes a bad url"};r=Qp(e,r+1);continue}r++}return{reason:"an unclosed url( would swallow the rest of the rule"}}const AI={"(":")","[":"]","{":"}"};function jT(e){const t=$T(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=jI(t,s);if("reason"in l)return l.reason;s=l.end;continue}if(CT(t,s)){const l=TT(t,s);if(s=l.end,t[s]==="("&&l.name.toLowerCase()==="url"){let u=s+1;for(;u<t.length&&ip(t[u]);)u++;if(t[u]==='"'||t[u]==="'"){r.push(")"),s=s+1;continue}const d=RI(t,u);if("reason"in d)return d.reason;s=d.end}continue}if(o==="\\"){if(s+1>=t.length)return"a trailing backslash would escape the declaration terminator";s=ed(t[s+1])?s+1:Qp(t,s+1);continue}if(o==="("||o==="["||o==="{"){if(o==="{"&&r.length===0)return'an unquoted "{" would open a nested block';r.push(AI[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 MI(e){const t=$T(e);if(t.length===0||!CT(t,0))return"a property name must be a CSS identifier";const{end:r}=TT(t,0);return r!==t.length?`a property name must be one CSS identifier; "${t[r]}" cannot appear in one`:null}function Zb(e){return`[data-${Bp}-theme="${e}"]`}const Jp=`[data-${Bp}-theme]`;function RT(e){return`[data-${Bp}-media="${e}"]`}function zI(e,t){return`.${iC}-${e}${t}`}function Xl(e,t,r){const s=zI(e,t);return r?`:is(${RT(r)}) :is(${s})`:s}const B5=':where(:not(:disabled,[aria-disabled="true"]))';function NI(e,t){const r=[];let s=0,o=0;for(let u=0;u<e.length;u++){const d=e[u];d==="("?s++:d===")"?s=Math.max(0,s-1):d===","&&s===0&&(r.push(e.slice(o,u).trim()),o=u+1)}r.push(e.slice(o).trim());const l=LI(t);return r.map(u=>`${u}${l}`).join(", ")}function LI(e){if(!/^:hover(?![-\w])/.test(e)||e.includes("[aria-disabled"))return e;const t=e.indexOf("::");return t===-1?e+B5:e.slice(0,t)+B5+e.slice(t)}function ky(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const L1=new Set(["padding","paddingBlock","paddingInline","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]),Qb={paddingTop:"paddingBlockStart",paddingBottom:"paddingBlockEnd"},H5=new Set([...L1,...Object.keys(Qb)]);function DI(e){const t={};for(const[r,s]of e)switch(Qb[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 OI(e,t,r=!1){const s=c9(`${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(([g])=>g)),y=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 g of y)p.has(g)||o.push([g,"initial"])}return o}const AT=e=>{console.warn(`[astryx theme] ${e}`)};function Jb(e){return AT}function II(e){const t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function _I(e,t,r,s,o){e(`dropped "${t}" in ${s}: ${o} (value: ${II(r)})`)}function MT(e,t,r,s){const o=MI(e)??jT(t);return o===null?!0:(_I(s,e,t,r,o),!1)}function td(e,t,r,s=o=>o){const o=[];for(const[l,u]of e){const d=`${u}`,f=s(l);MT(f,d,t,r)&&o.push(` ${f}: ${d};`)}return o.join(`
18
- `)}function zT(e,t,r){const s=[td(Object.entries(e.tokens),`${t}tokens`,r),td(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 qI(e,t,r){return`${e}components.${t}[${JSON.stringify(r)}]`}function PI(e,t){const r=[],s=Jb(),o=u=>`var(${u})`,l=zT(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&&e0(e.components,r,{sink:s}),HI(o,r),t0(e.components||{},r),n0(e.components||{},r),cp(e.components||{},r),r}const BI={normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"};function cp(e,t,{surface:r,inheritedComponents:s,forceAll:o=!1,authoredOnly:l=!1}={}){const u=e.heading,d=u&&typeof u=="object"&&!Array.isArray(u)?u:void 0;if(!d&&!o)return;const f=s?.heading,p=f&&typeof f=="object"?f:void 0;for(const[y,g]of Object.entries(BI)){const k=`weight:${y}`,v=d?F5(d,k):void 0;if(l&&v===void 0)continue;const w=p?F5(p,k):void 0,S=v??w??g,E=Vl(k),R=Xl("heading",E,r);t.push(` ${R} { font-weight: ${S}; }`)}}function F5(e,t){const r=e[t];if(r==null||typeof r!="object"||Array.isArray(r))return;const s=r.fontWeight;return typeof s=="string"&&jT(s)===null?s:void 0}function e0(e,t,{resetInheritedPaddingSpecificity:r=!1,surface:s,sink:o=AT,location:l=""}={}){for(const[u,d]of Object.entries(e))for(const[f,p]of Object.entries(d)){const y=Object.entries(p);if(y.length===0)continue;const g=Vl(f),k=Xl(u,g,s),v=qI(l,u,f),w=[],S=[];for(const[A,M]of y)A.startsWith(":")&&typeof M=="object"?S.push([A,M]):MT(ky(A),`${M}`,v,o)&&w.push([A,M]);let E=w;const R=[];let C=!1;const T=new Set;for(const[A,M]of w){const L=by(u,A),D=L1.has(A)&&A!=="padding"?by(u,"padding"):[];for(const j of[...L,...D])if(j.expand==="container"&&L1.has(A)&&(C=!0),j.replaces&&T.add(A),j.vars)for(const I of j.vars)R.push([I,M]);A in Qb&&by(u,"padding").some(j=>j.expand==="container")&&(C=!0)}if(C){const A=w.filter(([j])=>H5.has(j)),M=w.filter(([j])=>!H5.has(j)),L=DI(A),D=OI(u,L,r);E=[...M,...D]}if(T.size>0&&(E=E.filter(([A])=>!T.has(A))),R.length>0&&(E=[...E,...R]),E.length>0){const A=td(E,v,o,ky);t.push(` ${k} {
24
- ${A}
25
- }`)}for(const[A,M]of S){const L=Object.entries(M);if(L.length>0){const D=td(L,`${v}[${JSON.stringify(A)}]`,o,ky);t.push(` ${NI(k,A)} {
26
- ${D}
27
- }`)}}}}function HI(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 t0(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[d,f]of Object.entries(s))o&&t.push(` ${Xl("text",Vl(`color:${d}`),r)} { color: ${f}; }`),l&&t.push(` ${Xl("heading",Vl(`color:${d}`),r)} { color: ${f}; }`),u&&t.push(` ${Xl("link",Vl(`color:${d}`),r)} { color: ${f}; }`)}const FI={"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 n0(e,t,r){if("text"in e)for(const[s,o]of Object.entries(FI)){const l=Vl(`size:${s}`);t.push(` ${Xl("text",l,r)} { font-size: ${o}; }`)}}function UI(e,t){const r=PI(e),s=[],o=[];for(const l of r)l.trimStart().startsWith(":where(")?s.push(l):o.push(l);return{component:o,prose:s}}function VI(e,t){const r=[],s=Zb(e.name),o=Jb();for(const u of["dark","light"]){const d=u==="dark"?e.__onDark:e.__onLight;if(!d)continue;const f=u==="dark"?"onDark.":"onLight.",p=Object.entries(d.tokens);if(p.length>0){const y=td(p,`${f}tokens`,o);r.push(` ${RT(u)} {
53
- ${y}
54
- }`)}d.components&&(e0(d.components,r,{resetInheritedPaddingSpecificity:!0,surface:u,sink:o,location:f}),t0(d.components,r,u),n0(d.components,r,u),cp(d.components,r,{surface:u,inheritedComponents:e.components}))}if(r.length===0)return"";const l=r.join(`
55
-
56
- `);return`@scope (${s}) to (${Jp}) {
57
- ${l}
58
- }`}function GI(e,t,r){const s=[],o=zT(e,t,r);return o!==null&&s.push(o),e.components&&(e0(e.components,s,{resetInheritedPaddingSpecificity:!0,sink:r,location:t}),t0(e.components,s),n0(e.components,s)),s}function KI(e){const t=e?.heading;return t!==null&&typeof t=="object"&&!Array.isArray(t)}function U5(e,t,r){return`@media ${e} {
59
- @scope (${r}) to (${Jp}) {
60
- ${t.map(YI).join(`
61
-
62
- `)}
63
- }
64
- }`}function WI(e,t){const r=Jb(),s=e.__adaptations===void 0?void 0:vT(e.name,e.__adaptations,void 0),o=e.__adaptationRules??(s?wT(e.name,s,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!o||o.length===0)return{prose:"",component:""};const l=Zb(e.name),u=[],d=o.some(f=>KI(f.components));for(const[f,p]of o.entries()){const y=GI(p,`adaptations[${f}].`,r);y.length!==0&&u.push(U5(p.query,y,l))}if(d){const f=[];cp(e.components??{},f,{forceAll:!0}),u.push(`@scope (${l}) to (${Jp}) {
65
- ${f.join(`
66
-
67
- `)}
68
- }`);for(const p of o){const y=[];cp(p.components??{},y,{authoredOnly:!0}),y.length>0&&u.push(U5(p.query,y,l))}}return{prose:"",component:u.join(`
69
-
70
- `)}}function YI(e){return` ${e}`}function XI(e,t){const{component:r,prose:s}=UI(e),o=Zb(e.name),l=Jp;let u="";if(s.length>0){const y=s.join(`
71
-
72
- `);u=`@scope (${o}) to (${l}) {
73
- ${y}
74
- }`}let d="";if(r.length>0){const y=r.join(`
75
-
76
- `);d=`@scope (${o}) to (${l}) {
77
- ${y}
78
- }`}const f=WI(e);f.component&&(d=d?`${d}
79
-
80
- ${f.component}`:f.component);const p=VI(e);return p&&(d=d?`${d}
81
-
82
- ${p}`:p),{prose:u,component:d}}const r0={...qN,...PN,...BN,...HN,...FN,...UN,...VN,...GN,...KN,...WN,...YN,...XN,...ZN,...EI};function ZI(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 NT(e){if("extends"in e&&!QI(e.extends))throw new Error(`defineTheme("${e.name}"): \`extends\` must be a theme from defineTheme(), got ${ZI(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}=hT(r,o),d=A5("dark",e.onDark,t?.__onDark),f=A5("light",e.onLight,t?.__onLight),p=tI(e,t,l,r0),y=vI(t?.__axes,s),g=vT(e.name,t?.__adaptations,e.adaptations),k=wT(e.name,g,y,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:d,__onLight:f,__adaptations:g,__adaptationRules:k,__axes:y};return ET(S),S}function QI(e){return typeof e=="object"&&e!==null&&"name"in e&&"tokens"in e&&!("styles"in e)}function JI(e){return`var(${e})`}Object.fromEntries(Object.keys(r0).map(e=>[e,JI(e)]));function a0(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 e_(e){const t=e.trim(),r="light-dark(";if(!t.startsWith(r)||!t.endsWith(")"))return null;const s=t.slice(r.length,-1);return a0(s)}function vy(e,t){if(Array.isArray(e))return t==="dark"?e[1]:e[0];const r=e_(e);return r!==null?t==="dark"?r[1]:r[0]:e}function LT(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 V5(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 t_(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=a0(s);if(o===null)return null;const l=V5(o[0]),u=V5(o[1]);if(l===null||u===null)return null;const d=Xu(l.color),f=Xu(u.color);if(d===null||f===null)return null;let p,y;l.percentage!==null&&u.percentage!==null?(p=l.percentage,y=u.percentage):l.percentage!==null?(p=l.percentage,y=100-p):u.percentage!==null?(y=u.percentage,p=100-y):(p=50,y=50);const g=p+y;if(g<=0)return null;const k=p/g,v=y/g,w=g<100?g/100:1,S=k*d.a+v*f.a,E=(M,L)=>k*M*d.a+v*L*f.a,R=E(d.r,f.r),C=E(d.g,f.g),T=E(d.b,f.b),A=S===0?{r:0,g:0,b:0}:{r:R/S,g:C/S,b:T/S};return dC({...A,a:S*w})}function D1(e){const t=e.indexOf("color-mix(");if(t===-1)return e;const r=t+9,s=LT(e,r);if(s===-1)return e;const o=D1(e.slice(r+1,s)),u=t_(o)??`color-mix(${o})`;return e.slice(0,t)+u+D1(e.slice(s+1))}function O1(e,t,r,s){const o=e.indexOf("var(");if(o===-1)return e;const l=o+3,u=LT(e,l);if(u===-1)return e;const d=e.slice(l+1,u),f=a0(d),p=(f?f[0]:d).trim(),y=f?f[1]:null;let g;s.has(p)?g=e.slice(o,u+1):p in t?(s.add(p),g=DT(p,t,r,s),s.delete(p)):y!==null?g=O1(y.trim(),t,r,s):g=e.slice(o,u+1);const k=O1(e.slice(u+1),t,r,s);return e.slice(0,o)+g+k}function n_(e,t,r,s){if(!e.includes("var(")&&!e.includes("color-mix("))return e;const o=O1(e,t,r,s);return D1(o)}function DT(e,t,r,s){if(e in r)return r[e];const o=t[e];if(o===void 0)return"";const l=n_(o,t,r,s);return r[e]=l,l}function G5(e){const t={};for(const r of Object.keys(e))DT(r,e,t,new Set);return t}function r_(e,t){const{mode:r}=t,s={};for(const[o,l]of Object.entries(r0))s[o]=vy(l,r);if(e==null)return G5(s);for(const[o,l]of Object.entries(e.tokens))s[o]=vy(l,r);if(e.__inputTokens)for(const[o,l]of Object.entries(e.__inputTokens))l!==void 0&&(s[o]=vy(l,r));return G5(s)}function kd(e,t=!1){const r=x.useCallback(l=>{const u=window.matchMedia(e);return u.addEventListener("change",l),()=>u.removeEventListener("change",l)},[e]),s=x.useCallback(()=>window.matchMedia(e).matches,[e]),o=x.useCallback(()=>t,[t]);return x.useSyncExternalStore(r,s,o)}const vd=x.createContext(null);vd.displayName="ThemeContext";function a_(){if(typeof document>"u")return null;const e=document.documentElement.getAttribute("data-theme");return e==="light"||e==="dark"?e:null}function s_(){return null}function o_(){return typeof document>"u"?null:document.documentElement.getAttribute(Dr("theme"))}function i_(){return null}function OT(){return null}const zu=new Set;let wu=null;const Nu=new Set;let Su=null;function l_(){for(const e of zu)e()}function c_(e){return zu.add(e),zu.size===1&&typeof MutationObserver<"u"&&(wu=new MutationObserver(l_),wu.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})),()=>{zu.delete(e),zu.size===0&&wu&&(wu.disconnect(),wu=null)}}function u_(){for(const e of Nu)e()}function d_(e){return Nu.add(e),Nu.size===1&&typeof MutationObserver<"u"&&(Su=new MutationObserver(u_),Su.observe(document.documentElement,{attributes:!0,attributeFilter:[Dr("theme")]})),()=>{Nu.delete(e),Nu.size===0&&Su&&(Su.disconnect(),Su=null)}}function IT(){return()=>{}}function f_(e){return x.useSyncExternalStore(e?IT:c_,e?OT:a_,s_)}function s0(e){return x.useSyncExternalStore(e?IT:d_,e?OT:o_,i_)}function _T(){const e=x.use(vd),t=e!=null,r=s0(t);return e?.theme.name??r}function h_(){const e=x.use(vd),t=e!=null,r=s0(t);return e?.theme??Zp(r)??void 0}function ex(){const e=x.use(vd),t=e!=null,r=f_(t),s=s0(t),o=kd("(prefers-color-scheme: dark)"),l=e?.mode??r??"system",u=e?.theme??Zp(s),d=l==="system"?o?"dark":"light":l,f=x.useMemo(()=>r_(u,{mode:d}),[u,d]),p=x.useCallback(g=>f[g]??"",[f]),y=u?.name??"default";return x.useMemo(()=>({name:y,mode:d,token:p,tokens:f}),[y,d,p,f])}const tn={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},jl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-hidden":!0},p_={close:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M6 6l12 12M6 18L18 6"})}),chevronDown:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M6 9l6 6 6-6"})}),"numberInput:stepperDown":m.jsx("svg",{...tn,children:m.jsx("path",{d:"M7.5 9.75l4.5 4.5 4.5-4.5"})}),chevronLeft:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M15 6l-6 6 6 6"})}),chevronRight:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M9 6l6 6-6 6"})}),chevronsLeft:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M18 6l-6 6 6 6M11 6l-6 6 6 6"})}),chevronsRight:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M6 6l6 6-6 6M13 6l6 6-6 6"})}),check:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M5 13l4 4L19 7"})}),success:m.jsx("svg",{...jl,children:m.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:m.jsx("svg",{...jl,children:m.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:m.jsx("svg",{...jl,children:m.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:m.jsx("svg",{...jl,children:m.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:m.jsxs("svg",{...tn,children:[m.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),m.jsx("path",{d:"M16 2v4M8 2v4M3 10h18"})]}),clock:m.jsxs("svg",{...tn,children:[m.jsx("circle",{cx:"12",cy:"12",r:"9"}),m.jsx("path",{d:"M12 7v5l3 3"})]}),externalLink:m.jsxs("svg",{...tn,children:[m.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),m.jsx("path",{d:"M15 3h6v6"}),m.jsx("path",{d:"M10 14L21 3"})]}),menu:m.jsx("svg",{...tn,strokeWidth:2,children:m.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),moreHorizontal:m.jsxs("svg",{...jl,children:[m.jsx("circle",{cx:"5",cy:"12",r:"1.5"}),m.jsx("circle",{cx:"12",cy:"12",r:"1.5"}),m.jsx("circle",{cx:"19",cy:"12",r:"1.5"})]}),search:m.jsxs("svg",{...tn,children:[m.jsx("circle",{cx:"11",cy:"11",r:"8"}),m.jsx("path",{d:"M21 21l-4.35-4.35"})]}),upload:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4"})}),arrowUp:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M12 19V5m0 0l-7 7m7-7l7 7"})}),arrowDown:m.jsx("svg",{...tn,children:m.jsx("path",{d:"M12 5v14m0 0l7-7m-7 7l-7-7"})}),arrowsUpDown:m.jsx("svg",{...tn,children:m.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:m.jsx("svg",{...tn,children:m.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:m.jsx("svg",{...tn,children:m.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:m.jsx("svg",{...tn,children:m.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:m.jsxs("svg",{...tn,children:[m.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"}),m.jsx("path",{d:"M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"})]}),checkDouble:m.jsxs("svg",{...tn,children:[m.jsx("path",{d:"M2 13l4 4L14 7"}),m.jsx("path",{d:"M9 13l4 4L21 7"})]}),wrench:m.jsx("svg",{...tn,children:m.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:m.jsx("svg",{...jl,children:m.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),microphone:m.jsxs("svg",{...tn,children:[m.jsx("path",{d:"M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"}),m.jsx("path",{d:"M19 10v1a7 7 0 01-14 0v-1"}),m.jsx("path",{d:"M12 18v4m-4 0h8"})]})};let x_={};function g_(e){return e==null?null:typeof e=="string"?Zp(e)?.icons??null:e.icons??null}function m_(e,t){return g_(t)?.[e]??x_[e]??p_[e]}const qT={root:{kmuXW:"x2lah0s",$$css:!0},span:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},PT={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 y_(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:d,...f}){const p=ZD(r),y=y_(s);if(typeof e=="string")return m.jsx(b_,{name:e,color:t,size:p,a11yProps:y,className:l,style:u,xstyle:d,spanProps:f});const g=e;return m.jsx(g,{ref:o,...y,...ye(he("icon",{size:p,color:t}),fe(qT.root,PT[t],QD[p],d),l??void 0,u),...f})}ft.displayName="Icon";function b_({name:e,color:t,size:r,a11yProps:s,className:o,style:l,xstyle:u,spanProps:d}){const f=_T(),p=m_(e,f);if(p==null)return null;const y=d??{};return m.jsx("span",{...s,...y,...ye(he("icon",{size:r,color:t}),fe(qT.span,PT[t],JC[r],u),o??void 0,l),children:p})}function Ca(e,t){return typeof e=="string"?m.jsx(ft,{icon:e,...t}):typeof e=="function"||typeof e=="object"&&e!==null&&"render"in e?m.jsx(ft,{icon:e,...t}):e}const k_={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},o0=x.createContext(k_);o0.displayName="AppShellMobileContext";function tx(){return x.use(o0)}function BT({ref:e,children:t,label:r,"data-testid":s,xstyle:o,className:l,style:u}){const d=zt(),f=r??d("@astryx.mobileNav.toggle.open"),{isMobile:p,isMobileNavEnabled:y,isMobileNavOpen:g,mobileNavId:k,toggleMobileNav:v}=tx();return!p||!y?null:m.jsx(jt,{ref:e,variant:"ghost",label:f,icon:t??m.jsx(ft,{icon:"menu",color:"inherit"}),onClick:v,"aria-expanded":g,"aria-controls":k||void 0,"data-testid":s??"mobile-nav-toggle",xstyle:o,className:l,style:u,isIconOnly:!0})}BT.displayName="MobileNavToggle";const Bl=x.createContext("default");Bl.displayName="SideNavRenderContext";function HT(){return x.use(Bl)}const I1=x.createContext("default");I1.displayName="TopNavRenderContext";const _1=x.createContext(null);_1.displayName="TopNavMobileContentContext";const v_=typeof Mp.Activity<"u",w_=v_?({mode:e,children:t})=>m.jsx(Mp.Activity,{mode:e,children:t}):({children:e})=>m.jsx(m.Fragment,{children:e}),wy="astryx-app-shell-main",Tn={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 i0({variant:e="elevated",banner:t,children:r,contentPadding:s,"data-testid":o,height:l="fill",mobileNav:u,sideNav:d,topNav:f,xstyle:p,className:y,style:g,ref:k,...v}){const w=zt(),S=h_(),E=u===!1,R=u!=null&&u!==!1&&typeof u=="object"&&!x.isValidElement(u)?u:null,C=R?.breakpoint??"md",T=u!=null&&u!==!1&&(x.isValidElement(u)||typeof u=="string")?u:null,A=R?.content??null,M=R?.hasToggle!==!1,L=R?.isOpen!==void 0,D=S?.__adaptations?.widthBreakpoints,j=C==="none"?"(width < 0px)":`(width < ${D?.[C]??yT[C]}px)`,I=kd(j,C==="none"?!1:R?.defaultIsMobile),[z,H]=x.useState(!1),F=R?.isOpen??z,B=R?.onOpenChange,q=x.useCallback(ct=>{L||H(ct),B?.(ct)},[L,B]),U=x.useCallback(()=>{document.getElementById(wy)?.focus()},[]),_=l==="fill",P=l==="auto",G=Fs(t),Y=Fs(f),X=Fs(d),Q=!E&&(Y||X)&&T==null,oe=e==="section",O=e==="elevated",Z=e==="wash"||e==="elevated"?Tn.navAreaWash:e==="surface"?Tn.navAreaSurface:void 0,de=Z??(P&&e==="section"?Tn.navAreaSurface:void 0),ue=e==="wash"?Tn.contentBgWash:e==="elevated"&&Y&&X&&!I?Tn.contentBgTransparent:e==="surface"||e==="elevated"?Tn.contentBgSurface:void 0,ve=Z??Tn.navAreaSurface,xe=x.useRef(null),$e=x.useRef(null);x.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 Yu(ct,()=>Ge())},[P]);const te=X&&!I,pe=T!=null,Re=Q&&A!=null&&I,Te=x.useId(),Ce=x.useMemo(()=>({isMobile:I,isMobileNavOpen:F,mobileNavId:Te,toggleMobileNav:()=>Q&&q(!F),openMobileNav:()=>Q&&q(!0),closeMobileNav:()=>q(!1),isMobileNavEnabled:Q,hasAutoToggle:M}),[I,F,Te,q,Q,M]),Me=X&&M?m.jsx(Bl,{value:"drawer-content",children:d}):null,je=X?m.jsx(Bl,{value:"drawer-content",children:d}):null,He=Y?I&&!E&&T==null?m.jsx(_1,{value:Me,children:m.jsx(I1,{value:"mobile-bar",children:f})}):f:null,at=Y||G?m.jsxs(Xh,{padding:0,hasDivider:oe&&Y,children:[G&&m.jsx("div",{...fe(Tn.banner,Z),children:t}),Y&&He]}):void 0,pt=Fs(at)?m.jsx("div",{ref:xe,role:"banner",...ye(he("app-shell-header",{variant:e}),fe(de,P&&Tn.headerSticky)),children:at}):void 0,et=te?m.jsx(xC,{padding:0,hasDivider:oe,isScrollable:_,...he("app-shell-sidenav",{variant:e}),xstyle:[Z,P&&ve,P&&Tn.panelAutoFill],children:d}):void 0,Ve=et!=null&&P?m.jsx("div",{className:"x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf",children:et}):et,yt=O&&Y&&te,Pe=m.jsx(Di,{padding:s??0,role:"main",id:wy,tabIndex:-1,isScrollable:_,xstyle:[ue,Tn.mainFocusTarget],children:r}),rt=m.jsxs("div",{...{0:{className:"xjp7ctv"},1:{className:"x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d"}}[!!yt<<0],children:[yt&&m.jsx("div",{className:"x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl"}),Pe]}),st=!E&&M&&I&&!Y&&X?m.jsx("div",{role:pt==null?"banner":void 0,...ye(he("app-shell-header",{variant:e}),fe(de,P&&Tn.headerSticky)),children:m.jsx(Xh,{padding:0,hasDivider:oe,children:m.jsxs("div",{className:"x78zum5 x6s0dn4 x1k15mir xf314gf",role:"navigation","aria-label":w("@astryx.appShell.mobileNavigation"),children:[m.jsx(Bl,{value:"topbar",children:d}),m.jsx(BT,{})]})})}):void 0;return m.jsx(o0,{value:Ce,children:m.jsxs("div",{...v,ref:xn(k,$e),"data-testid":o,...ye(he("app-shell",{variant:e}),fe(Tn.root,e==="wash"?Tn.variantWash:e==="surface"?Tn.variantSurface:e==="section"?Tn.variantSection:Tn.variantElevated,_?Tn.rootFill:Tn.rootAuto,p),y,g),children:[m.jsx("a",{href:`#${wy}`,onClick:U,...pn.focusVisible(Tn.skipLink),"data-testid":"skip-to-content",children:w("@astryx.appShell.skipToContent")}),m.jsx(Li,{height:l,padding:0,header:m.jsxs(m.Fragment,{children:[pt,st]}),start:Ve,content:rt}),pe&&T,Re&&A,I&&!E&&T==null&&!A&&m.jsxs(w_,{mode:F?"visible":"hidden",children:[X&&!Y&&m.jsx(Bl,{value:"drawer",children:d}),Y&&m.jsx(_1,{value:je,children:m.jsx(I1,{value:"drawer",children:f})})]})]})})}i0.displayName="AppShell";function _r({icon:e,...t}){return m.jsx(jt,{...t,icon:e,isIconOnly:!0})}_r.displayName="IconButton";const K5={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}},S_={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}},E_={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}},$_={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}},C_={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}},T_={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}},j_={card:S_,section:E_,dialog:$_,"bottom-sheet":C_,drawer:T_},R_={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}},A_={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}},M_={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}},z_={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}},N_={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}},L_={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}},D_={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}},O_={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}},I_={containerMaxHeight:e=>[{"--container-max-height":e!=null?"x18nyedi":e,$$css:!0},{"--x---container-max-height":e??void 0}]};function l0({padding:e="spacing4",paddingOuterX:t,paddingOuterY:r,paddingInnerX:s,paddingInnerY:o,useThemeDefault:l,maxHeight:u}){const d=t??e,f=r??e,p=s??e,y=o??e,g=u?I_.containerMaxHeight(u):null;if(l){const k=j_[l];return[K5.container,k.containerPaddingInlineStart,k.containerPaddingInlineEnd,k.containerPaddingBlockStart,k.containerPaddingBlockEnd,k.layoutPaddingOuterX,k.layoutPaddingOuterY,k.layoutPaddingInnerX,k.layoutPaddingInnerY,g]}return[K5.container,R_[d],A_[d],M_[f],z_[f],N_[d],L_[f],D_[p],O_[y],g]}const __={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function nx({direction:e="vertical",hAlign:t,vAlign:r,justify:s,align:o,gap:l,padding:u,paddingInline:d,paddingInlineStart:f,paddingInlineEnd:p,paddingBlock:y,paddingBlockStart:g,paddingBlockEnd:k,isScrollable:v,width:w,height:S,maxWidth:E,minHeight:R,wrap:C,as:T="div",xstyle:A,className:M,style:L,children:D,ref:j,...I}){const z=t??(e==="horizontal"?s:o),H=r??(e==="horizontal"?o:s),F=e==="horizontal"?z:H,B=e==="horizontal"?H:z,q=f??d??u,U=p??d??u,_=g??y??u,P=k??y??u,G=fe(...v1({direction:e,crossAlign:B,mainAlign:F,gap:l,wrap:C}),q!=null&&fC[q],U!=null&&hC[U],_!=null&&pC[_],P!=null&&Hb[P],v&&__.scrollable,A),Y={...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 x.createElement(T,{ref:j,...ye(he("stack",{direction:e,gap:l,wrap:C}),G,M,{...L,...Y}),...I},D)}nx.displayName="Stack";function Rt({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return m.jsx(nx,{...l,direction:"horizontal",hAlign:s??t,vAlign:o??r,ref:e})}Rt.displayName="HStack";function We({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return m.jsx(nx,{...l,direction:"vertical",hAlign:s??r,vAlign:o??t,ref:e})}We.displayName="VStack";const q_={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function ic({crossAlignSelf:e,size:t,isScrollable:r,as:s="div",xstyle:o,className:l,style:u,children:d,ref:f,...p}){const y=fe(...oC({crossAlignSelf:e,size:t}),r&&q_.scrollable,o);return x.createElement(s,{ref:f,...ye(he("stack-item",{size:t}),y,l,u),...p},d)}ic.displayName="StackItem";const Sy={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}},P_={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}},B_={none:{"--_card-elevation":"xw28qpl",$$css:!0},low:{"--_card-elevation":"x1nn8khe",$$css:!0},med:{"--_card-elevation":"x1ovzxg0",$$css:!0},high:{"--_card-elevation":"xnpe7fx",$$css:!0}},H_={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 Gs({width:e,height:t,maxWidth:r,minHeight:s,children:o,padding:l,variant:u="default",elevation:d="none",xstyle:f,className:p,style:y,ref:g,...k}){const v=t!=null&&t!=="auto",S=l==null?void 0:Bb[l];return m.jsx("div",{ref:g,...ye(he("card",{variant:u,elevation:d}),fe(Sy.card,P_[u],B_[d],v&&Sy.scrollable,H_.sizing(e??null,t??null,r??null,s??null),...l0(S==null?{useThemeDefault:"card"}:{paddingInnerX:S,paddingInnerY:S,paddingOuterX:S,paddingOuterY:S}),u==="default"&&Sy.withBorder,f),p,y),...k,children:o})}Gs.displayName="Card";const F_={section:{kWkggS:"x10xzikg",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0}},W5={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}},ah={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}},U_={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 FT({variant:e="section",width:t,height:r,maxWidth:s,minHeight:o,children:l,dividers:u,padding:d,paddingInline:f,paddingInlineStart:p,paddingInlineEnd:y,paddingBlock:g,paddingBlockStart:k,paddingBlockEnd:v,xstyle:w,className:S,style:E,ref:R,...C}){const T=d==null,A=d??4,M=Bb[A],L=fe(W5.outer,U_.sizing(t??null,r??null,s??null,o??null),w);return m.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:m.jsx("div",{...ye(he("section",{variant:e}),fe(W5.inner,...l0(T?{useThemeDefault:"section"}:{paddingInnerX:M,paddingInnerY:M,paddingOuterX:M,paddingOuterY:M}),!T&&A!==4&&Ni[A],!T&&A!==4&&Ei[A],!T&&A!==4&&Mo[A],!T&&A!==4&&Us[A],!T&&D9[A],f!=null&&M9[f],f!=null&&Ei[f],g!=null&&z9[g],g!=null&&Mo[g],g!=null&&Us[g],k!=null&&pC[k],k!=null&&Mo[k],v!=null&&Hb[v],v!=null&&Us[v],p!=null&&fC[p],p!=null&&N9[p],y!=null&&hC[y],y!=null&&L9[y],F_[e],u?.includes("top")&&ah.top,u?.includes("bottom")&&ah.bottom,u?.includes("start")&&ah.start,u?.includes("end")&&ah.end)),children:l})})}FT.displayName="Section";const sh={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}},V_={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function c0({children:e,hasDivider:t,height:r,label:s,padding:o,role:l,xstyle:u,className:d,style:f,ref:p,...y}){const g=x.use(Pp),k=t??g?.defaultHasDividers??!1,v=o===0;return m.jsx("div",{ref:p,role:l,"aria-label":s,"data-divider":k||void 0,...ye(he("layout-footer"),fe(sh.footer,V_.sizing(r??null),k&&sh.divider,u),d,f),...y,children:m.jsx("div",{...fe(sh.inner,v&&sh.fullBleed,o!=null&&Ni[o],o!=null&&Ei[o],o!=null&&Mo[o],o!=null&&Us[o]),children:e})})}c0.displayName="LayoutFooter";const rx=x.createContext({isCollapsed:!1,toggle:()=>{},isCollapsible:!1});rx.displayName="SideNavCollapseContext";function u0(){return x.use(rx)}const Ey={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 d0({ref:e,collapsible:t,handleRef:r,label:s,size:o,children:l,onClick:u,...d}){const f=zt(),{isCollapsed:p,toggle:y,isCollapsible:g}=G_(t,r),{isMobile:k}=tx();return!g||k?null:m.jsx(jt,{ref:e,label:s??f(p?"@astryx.sideNavCollapseButton.expandSidebar":"@astryx.sideNavCollapseButton.collapseSidebar"),variant:"ghost",size:o,...d,onClick:Ir(u,y),icon:l??m.jsx("span",{...fe(Ey.chevronMirror,Ga.mirror),children:m.jsx(ft,{icon:"chevronLeft",size:"sm",color:"inherit",xstyle:[Ey.chevron,p&&Ey.chevronCollapsed]})}),isIconOnly:!0})}d0.displayName="SideNavCollapseButton";function G_(e,t){const r=u0(),{isCollapsed:s,onCollapsedChange:o}=e??{},l=x.useCallback(()=>o?.(!s),[s,o]),u=x.useCallback(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:s??!1,toggle:l,isCollapsible:!0};if(t==null)return r;const d=t.current?.getCollapseState()??null;return{isCollapsed:d?.isCollapsed??!1,toggle:u,isCollapsible:d?.isCollapsible??!0}}const K_=x.lazy(async()=>md(()=>Promise.resolve().then(()=>XT),void 0).then(e=>({default:e.Tooltip})));function W_(e){return e==="display-1"||e==="display-2"||e==="display-3"}const Y_={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};function Oo({level:e,type:t,weight:r,accessibilityLevel:s,color:o="primary",display:l="block",maxLines:u=0,hasTruncateTooltip:d=!0,wordBreak:f,textWrap:p,justify:y="start",hasCapsize:g=!1,hasStrikethrough:k=!1,xstyle:v,className:w,style:S,children:E,ref:R,...C}){const T=Y_[e],A=s&&s!==e?{"aria-level":s}:{},M=f??(u===1?"break-all":"break-word"),L=u>0||g?"block":l,D=t&&W_(t)?t:void 0,j=OC({maxLines:u}),I=typeof d=="string"?d:"above",z=u>0&&d!==!1&&j.isTruncated,H=x.useRef(null),F=xn(R,j.ref,H),B=u>1?{WebkitLineClamp:u}:void 0;return m.jsxs(m.Fragment,{children:[m.jsx(T,{ref:F,...ye(he("heading",{level:e,color:o,type:t,weight:r}),fe(Ub[IC(o)],D?Vb[D]:PL[e],D&&jC[D],r&&TC[r],u===1?np.singleLine:u>1?np.multiLine:RC[L],u>0&&AC[M],p&&MC[p],y!=="start"&&LC[y],g&&zC.enabled,k&&NC.strikethrough,v),w,{...S,...B}),...A,...C,children:E}),z&&m.jsx(x.Suspense,{fallback:null,children:m.jsx(K_,{anchorRef:H,content:m.jsx("span",{...fe(DC.content),children:j.fullText}),placement:I})})]})}Oo.displayName="Heading";const Y5={settle(){},release(){}};function UT(e){if(typeof window>"u"||typeof document>"u")return Y5;const t=document.documentElement,r=t.clientWidth;if(r===0)return Y5;const s=t.style.scrollbarGutter,o=e.style.paddingRight,l=e.getBoundingClientRect().width;let u=!1,d=!1,f=!1;return window.innerWidth>r&&(t.style.scrollbarGutter="stable",u=!0),{settle(){if(f)return;f=!0;const p=e.getBoundingClientRect().width-l;if(p<=0)return;const y=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${y+p}px`,d=!0},release(){d&&(e.style.paddingRight=o,d=!1),u&&(t.style.scrollbarGutter=s,u=!1)}}}const us={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}},X_={kzqmXN:"xn9wirt",ks0D6T:"xf68679",$$css:!0},Z_={width:e=>[X_,{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`${e}px`)}]},Q_=250,J_=.6;function eq(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 tq(e){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:Q_,r=eq(window.getComputedStyle(e).transitionDuration);return r===null?t:r<=0?0:Math.min(t,r*J_)}function VT({isOpen:e,onOpenChange:t,children:r,header:s,width:o=320,side:l="auto",label:u,"data-testid":d,xstyle:f,className:p,style:y,onClick:g,ref:k,...v}){const w=zt(),S=tx(),E=e??S.isMobileNavOpen,R=x.useId(),C=S.mobileNavId||R,T=x.useMemo(()=>t??(q=>{q?S.openMobileNav():S.closeMobileNav()}),[t,S]),A=x.useRef(null),M=x.useRef(null),L=x.useRef(null),D=x.useCallback(()=>{L.current&&(L.current.release(),L.current=null)},[]),[j,I]=x.useState(l==="auto"?"end":l);x.useEffect(()=>{if(E)if(l==="auto"){const q=document.activeElement;if(q&&q!==document.body){const U=q.getBoundingClientRect(),_=U.left+U.width/2;I(_<window.innerWidth/2?"start":"end")}}else I(l)},[E,l]),x.useEffect(()=>{const q=A.current;if(q)return E?(L.current??=UT(document.documentElement),q.open||q.showModal(),document.documentElement.style.overflow="clip",L.current.settle()):q.open&&(document.documentElement.style.overflow="",D(),M.current=setTimeout(()=>{q.close()},tq(q))),()=>{M.current&&(clearTimeout(M.current),M.current=null),document.documentElement.style.overflow="",D()}},[E,D]),x.useEffect(()=>{const q=A.current;return()=>{q?.open&&q.close()}},[]);const{shouldDismissOnCloseRequest:z}=Gp({isActive:E,onDismiss:()=>T(!1)}),H=x.useCallback(q=>{q.preventDefault(),z()&&T(!1)},[T,z]),F=x.useCallback(q=>{q.target===q.currentTarget&&T(!1)},[T]),B=j==="start";return m.jsx("dialog",{ref:xn(k,A),id:C,...ye(he("mobile-nav",{side:j}),fe(rc.reset,ac.reset,us.dialog,Zu.reset,E&&us.open,us.backdrop,E&&us.backdropOpen,f),p,y),...v,"data-testid":d,"aria-label":u??(typeof s=="string"?s:w("@astryx.mobileNav.navigation")),onClick:Ir(g,F),onCancel:H,children:m.jsx(Qu,{children:m.jsx(nc,{children:m.jsxs("div",{tabIndex:-1,...fe(us.drawer,Z_.width(o),B&&us.drawerStart,B&&E&&us.drawerStartOpen,!B&&us.drawerEnd,!B&&E&&us.drawerEndOpen),children:[m.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"?m.jsx(Oo,{level:2,xstyle:us.headerText,children:s}):s??null,m.jsx(jt,{variant:"ghost",label:w("@astryx.mobileNav.closeNavigation"),icon:m.jsx(ft,{icon:"close",color:"inherit"}),onClick:()=>T(!1),isIconOnly:!0})]}),m.jsx("div",{className:"x98rzlu x1odjw0f x6ikm8r xish69e xge0x1e xf314gf xce4md1",children:r})]})})})})}VT.displayName="MobileNav";const nq=50,rq=40,GT="astryx-resizable:";function Rl(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 d=1;d<s.length;d++){const f=Math.abs(o-s[d]);f<u&&(l=s[d],u=f)}return Math.min(r,Math.max(t,l))}return o}function aq(e){if(typeof window>"u")return null;try{const t=localStorage.getItem(GT+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 sq(e,t){if(!(typeof window>"u"))try{localStorage.setItem(GT+e,JSON.stringify(t))}catch{}}const $y=1200,oq=250,Cy='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)}).',iq=/^(\d+(?:\.\d+)?)px$/,lq=/^(\d+(?:\.\d+)?)%$/;function cq(e){const t=iq.exec(e);if(t){const s=Number(t[1]);return Number.isFinite(s)?{kind:"px",value:s}:null}const r=lq.exec(e);if(r){const s=Number(r[1]);return Number.isFinite(s)&&s<=100?{kind:"percent",value:s}:null}return null}function q1(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 uq(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=q1(t.min);return l==null?null:{kind:"percent",value:t.value,min:l}}const o=q1(t.max);return o==null?null:{kind:"percent",value:t.value,max:o}}function Ty(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?{kind:"px",value:e}:null;if(typeof e=="string")return cq(e);if(typeof e=="object"&&e!=null){const t=q1(e);return t==null?uq(e):{kind:"px",value:t}}return null}function jy(e){return e?.kind==="percent"}function dq(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 qu(e){if(typeof e=="number"&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function Ry(e){if(typeof e!="object"||e==null||Array.isArray(e))return qu(e);const t=e;return t.type==="pixel"?`{"type":"pixel","value":${qu(t.value)}}`:qu(e)}function fq(e){if(typeof e=="object"&&e!=null&&!Array.isArray(e)){const t=e;if(t.type==="pixel")return Ry(e);if(t.type==="percent"){const r=['"type":"percent"',`"value":${qu(t.value)}`];return t.min!==void 0&&r.push(`"min":${Ry(t.min)}`),t.max!==void 0&&r.push(`"max":${Ry(t.max)}`),`{${r.join(",")}}`}}return qu(e)}function Ay(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,Ea("useResizable",`${o}: ${fq(e)} is not a size. ${l} Falling back to ${s}.`)),s):dq(t,r)??s}function X5(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 KT(e){const{defaultSize:t,minSize:r,maxSize:s,containerRef:o,direction:l="horizontal",collapsible:u=!1,collapsedSize:d=rq,snaps:f,autoSaveId:p,defaultIsCollapsed:y,isCollapsed:g,onSizeChange:k,onCollapseChange:v}=e,w=x.useRef([]),S=f??w.current,E=r,R=s,C=Ty(t),T=Ty(r),A=Ty(s),M=o!=null,L=p?aq(p):null,D=x.useRef(null),[,j]=x.useState(0),I=jy(C),z=jy(T)||jy(A),H=L?.size==null&&I&&D.current?.isFinal!==!0,F=M&&(z||H),B=!M&&z,q=x.useRef(null),[,U]=x.useState(0),_=x.useRef(null),P=F?q.current:null;qn(()=>{if(!F){q.current=null,_.current=null;return}const Ye=o?.current??null;Ye!==q.current&&(_.current=null,q.current=Ye,U(Le=>Le+1))});const G=x.useCallback(Ye=>!F||P==null||P!==o?.current?()=>{}:Yu(P,Le=>{_.current=X5(P,l,Le),Ye()}),[P,F,l,o]),Y=x.useCallback(()=>!F||P==null?(_.current=null,null):(_.current==null&&(_.current=X5(P,l)),_.current),[P,F,l]),X=x.useSyncExternalStore(G,Y,()=>null),ee=x.useCallback(Ye=>M||!B||typeof window>"u"?()=>{}:(window.addEventListener("resize",Ye),()=>window.removeEventListener("resize",Ye)),[M,B]),Q=x.useSyncExternalStore(ee,()=>typeof window>"u"?$y:window.innerWidth,()=>$y),oe=F,O=X!=null&&X>0,Z=M?O?X:$y:Q,de=oe?O:!0,ue=x.useRef(null),[ve,xe]=x.useState(0),$e=ue.current??Z,te=x.useRef(!1),pe=x.useRef(!1),Re=x.useRef(!1),Te=x.useRef(!1),Ce=Ay(E,T,$e,nq,"minSize",Cy,te),Me=Ay(R,A,$e,1/0,"maxSize",Cy,pe);(D.current==null||!D.current.isFinal)&&(D.current={px:Ay(t,C,$e,oq,"defaultSize",Cy,Re),isFinal:de});const je=D.current.px,[He,at]=x.useState(()=>L?.size!=null?L.size:de?Rl(je,Ce,Me,S):null);M&&!z&&de&&H&&He!=null&&j(Ye=>Ye+1),de&&He==null&&at(Rl(je,Ce,Me,S));const[pt,et]=x.useState({min:Ce,max:Me});de&&ue.current==null&&(pt.min!==Ce||pt.max!==Me)&&(et({min:Ce,max:Me}),at(Ye=>Ye==null?null:Rl(Ye,Ce,Me,S)));const Ve=Rl(He??je,Ce,Me,S),[yt,Pe]=x.useState(()=>L?.isCollapsed??y??!1),rt=g!==void 0,lt=u&&(rt?g:yt),st=x.useRef(Ve),ct=x.useRef(lt);ct.current=lt;const we=x.useCallback(Ye=>{rt||(ct.current=Ye,Pe(Ye))},[rt]);x.useEffect(()=>{Ce>Me&&!Te.current&&(Te.current=!0,Ea())},[Ce,Me]),x.useEffect(()=>{p&&de&&sq(p,{size:Ve,isCollapsed:lt})},[Ve,lt,p,de]);const Ge=x.useCallback(()=>{!u||ct.current||(we(!0),v?.(!0),k?.(0))},[u,we,v,k]),Pt=x.useCallback(()=>{const Ye=ct.current;we(!1),Ye&&v?.(!1),k?.(Ve)},[we,Ve,v,k]),bn=x.useCallback(Ye=>{if(!Number.isFinite(Ye)||Ye<0){Ea();return}const Le=Rl(Ye,Ce,Me,S),Jt=ct.current;at(Le),we(!1),Jt&&v?.(!1),k?.(Le)},[Ce,Me,S,we,v,k]),gn=x.useCallback(()=>{ue.current=Z,st.current=ct.current?0:Ve},[Ve,Z]),An=x.useCallback(Ye=>{const Le=st.current+Ye;if(u&&Le<d){ct.current||(we(!0),v?.(!0),k?.(0));return}ct.current&&Le>=d&&(we(!1),v?.(!1));const Jt=Rl(Le,Ce,Me,S);at(Jt),k?.(Jt)},[u,d,we,Ce,Me,S,k,v]),Vt=x.useCallback(()=>{ue.current!=null&&(ue.current=null,xe(Ye=>Ye+1))},[]),Yn=x.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:Ce,_maxSizePx:Me,_snaps:S,_collapsedSize:d,_collapsible:u,_direction:l,_isResizableProps:!0}}}function hq(e){const{regions:t,autoSaveId:r,containerRef:s,direction:o}=e,l=Object.entries(t),u=l.map(([f,p])=>KT({...p,containerRef:s,direction:o,autoSaveId:r?`${r}:${f}`:void 0})),d={};return l.forEach(([f],p)=>{d[f]=u[p]}),d}function pq(e){return"regions"in e?hq(e):KT(e)}const xq=10,gq=50;function mq(e,t,r){if(e!=="auto")return e;const s=t?"end":"start";return r?s==="start"?"end":"start":s}function yq(e){return e==="center"?null:e==="start"?-1:1}function bq(e){document.body.style.cursor=e?"col-resize":"row-resize",document.body.style.userSelect="none"}function Z5(){document.body.style.cursor="",document.body.style.userSelect=""}const on={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}},kq={kLqNvP:"x1o0tod",k3aq6I:"x11wx31z x75qhwu",$$css:!0},vq={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},wq={kLqNvP:"x1o0tod",k3aq6I:"xsqj5wx",$$css:!0},Sq={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},oh={hitAreaOffsetX:e=>[kq,{"--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=>[vq,{"--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=>[wq,{"--x-transform":`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`!=null?`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`:void 0}],pillOffsetY:e=>[Sq,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`!=null?`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`:void 0}]};function WT({direction:e="horizontal",position:t="inline",isReversed:r=!1,isDisabled:s=!1,hasDivider:o=!1,isAlwaysVisible:l=!0,pillPlacement:u="auto",label:d,resizable:f,children:p,xstyle:y,className:g,ref:k,...v}){const w=zt(),S=d??w("@astryx.resizable.handle.label"),E=x.useRef(null),R=x.useRef(null),[C,T]=x.useState(!1),[A,M]=x.useState(!1),[L,D]=x.useState(!1),j=e==="horizontal",I=t==="overlay",z=r?-1:1,H=mq(u,r,f?._isCollapsed??!1),F=yq(H),B=x.useCallback(()=>{const xe=E.current;return xe&&getComputedStyle(xe).direction==="rtl"?-1:1},[]),q=A||L,U=x.useRef(!1);x.useEffect(()=>{const xe=f?._direction;xe!=null&&xe!==e&&!U.current&&(U.current=!0,Ea())},[e,f]);const _=x.useCallback(()=>{R.current=null,T(!1),Z5()},[]),P=x.useCallback(xe=>{s||!f||R.current||(xe.preventDefault(),xe.stopPropagation(),xe.currentTarget.setPointerCapture?.(xe.pointerId),R.current={pointerId:xe.pointerId,startPos:j?xe.clientX:xe.clientY,rtl:j?B():1},T(!0),f._onResizeStart(),bq(j))},[s,f,j,B]),G=x.useCallback(xe=>{const $e=R.current;if(!$e||$e.pointerId!==xe.pointerId||!f)return;const te=j?xe.clientX:xe.clientY;f._onResizeMove((te-$e.startPos)*$e.rtl*z)},[f,j,z]),Y=x.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),f?._onResizeEnd())},[_,f]),X=x.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),f?._onResizeCancel?.())},[_,f]),ee=x.useCallback(xe=>{if(s||!f)return;const $e=xe.shiftKey?gq:xq,te=j?B():1;switch(xe.key){case"ArrowRight":case"ArrowDown":{xe.preventDefault(),f._onResizeStart(),f._onResizeMove($e*(j?te:1)*z),f._onResizeEnd();break}case"ArrowLeft":case"ArrowUp":{xe.preventDefault(),f._onResizeStart(),f._onResizeMove(-$e*(j?te:1)*z),f._onResizeEnd();break}case"Home":{xe.preventDefault(),f._onResizeStart(),f._onResizeMove(f._minSizePx-f._size),f._onResizeEnd();break}case"End":{xe.preventDefault(),f._maxSizePx!==1/0&&(f._onResizeStart(),f._onResizeMove(f._maxSizePx-f._size),f._onResizeEnd());break}case"Enter":{xe.preventDefault(),f._collapsible&&(f._onResizeStart(),f._onResizeMove(f._isCollapsed?f._minSizePx:-f._size),f._onResizeEnd());break}}},[s,f,j,B,z]),Q=x.useCallback(()=>{s||!f||!f._collapsible||(f._onResizeStart(),f._onResizeMove(f._isCollapsed?f._minSizePx:-f._size),f._onResizeEnd())},[s,f]),oe=x.useRef(void 0);oe.current=f?._onResizeCancel,x.useEffect(()=>()=>{R.current&&(R.current=null,Z5(),oe.current?.())},[]);const O=f?._isCollapsed??!1,Z=f?O?Math.max(f._size,f._minSizePx):f._size:void 0,de=f?f._minSizePx:void 0,ue=f&&f._maxSizePx!==1/0?f._maxSizePx:void 0,ve=f&&O?w("@astryx.resizable.collapsed"):void 0;return m.jsxs("div",{ref:xn(k,E),role:"separator","aria-orientation":j?"vertical":"horizontal","aria-valuenow":Z,"aria-valuemin":de,"aria-valuemax":ue,"aria-valuetext":ve,"aria-label":S,"aria-disabled":s||void 0,tabIndex:s?-1:0,onDoubleClick:Q,onFocus:()=>D(!0),onBlur:()=>D(!1),"data-resizing":C||void 0,...ye(he("resize-handle"),pn.focusVisible(on.handle,I&&on.overlay,I&&(j?on.overlayHorizontal:on.overlayVertical),!I&&(j?on.horizontal:on.vertical),!I&&!o&&(j?on.noDividerHorizontal:on.noDividerVertical),!I&&o&&q&&!C&&on.handleHover,!I&&o&&C&&on.handleActive,s&&on.disabled,y),g),...v,onKeyDown:xe=>{v.onKeyDown?.(xe),ee(xe)},children:[m.jsx("div",{...fe(on.hitArea,j?on.hitAreaHorizontal:on.hitAreaVertical,F==null?j?Ga.centerInline("0px"):on.hitAreaCenteredY:j?oh.hitAreaOffsetX(F):oh.hitAreaOffsetY(F),s&&on.disabled),onPointerDown:P,onPointerMove:G,onPointerUp:Y,onPointerCancel:X,onLostPointerCapture:X,onPointerEnter:()=>M(!0),onPointerLeave:()=>{C||M(!1)}}),p??m.jsx("div",{...ye(he("resize-handle-pill"),fe(on.pill,j?on.pillHorizontal:on.pillVertical,H==="center"?Ga.centerInline("-50%"):j?oh.pillOffsetX(H==="start"?-1:1):oh.pillOffsetY(H==="start"?-1:1),l?on.pillVisible:on.pillHidden,q&&!C&&on.pillHover,C&&on.pillActive))})]})}WT.displayName="ResizeHandle";function Ti(e,t,r=!0){const s=x.useRef(!1);x.useEffect(()=>{r&&!s.current&&(s.current=!0,Ea())},[e,t,r])}const Eq=160;function $q(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:Cq(r,s)}}function Cq(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 ih={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}},lh="sm";function f0({header:e,topContent:t,children:r,footer:s,footerIcons:o,collapsible:l=!1,resizable:u=!1,xstyle:d,className:f,style:p,"data-testid":y,ref:g,handleRef:k,...v}){const w=zt(),E=(typeof l=="object"?l:{}).hasButton??!0,R=typeof u=="object"?u:{},C=!!u,T=$q(l,u),{isCollapsible:A,onCollapsedChange:M}=T;Ti("SideNav",T.conflict??"",T.conflict!=null);const L=x.useRef(null),D=xn(g,L),j=x.useRef({isCollapsed:!1,toggle:()=>{},isCollapsible:A}),I=pq({defaultSize:R.defaultWidth??260,minSize:R.minWidth??180,maxSize:R.maxWidth??480,collapsible:A,collapsedSize:Eq,autoSaveId:R.autoSaveId,defaultIsCollapsed:T.defaultIsCollapsed,isCollapsed:T.isCollapsed,onSizeChange:R.onWidthChange,onCollapseChange:M}),z=I.isCollapsed,H=x.useCallback(()=>{const Q=!z;j.current={...j.current,isCollapsed:Q},Q?I.collapse():I.expand()},[z,I]),F=C&&!z;j.current={isCollapsed:z,toggle:H,isCollapsible:A};const B={isCollapsed:z,toggle:H,isCollapsible:A};x.useImperativeHandle(k,()=>({getCollapseState:()=>j.current}),[]);const q=HT();if(q==="topbar")return m.jsxs("div",{"data-testid":y,...ye(he("side-nav",{mode:"topbar"}),fe(ih.topbar,d),f,p),children:[e,m.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw xvc5jky",children:m.jsx(Pl,{value:lh,children:o})})]});const U=!!(s||o);if(q==="drawer")return m.jsxs(VT,{header:e,"data-testid":y,xstyle:d,className:f,style:p,...v,children:[t,r,U&&m.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&m.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:m.jsx(Pl,{value:lh,children:o})})]})]});if(q==="drawer-content")return m.jsxs(m.Fragment,{children:[t,r,U&&m.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&m.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:m.jsx(Pl,{value:lh,children:o})})]})]});const _=!!(e||t),P=!!(s||o),G=A&&E,Y=C?{...p??{},width:z?void 0:I.size}:p,X=m.jsxs("nav",{ref:D,role:"navigation","aria-label":w("@astryx.sideNav.label"),"data-testid":y,...ye(he("side-nav"),fe(ih.root,z&&ih.rootCollapsed,d),f,Y),...v,children:[_&&m.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"}}[!!z<<0],children:[e,t&&m.jsx("div",{children:t})]}),m.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"}}[!!z<<2|!!_<<1|!!P<<0],children:r}),(P||G)&&m.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"}}[!!z<<0],children:[s,m.jsx("div",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw"},1:{className:"x78zum5 x6s0dn4 xzye2dw x3ieub6"}}[!!z<<0],children:m.jsxs(Pl,{value:lh,children:[G&&m.jsx(d0,{}),o]})})]})]}),ee=F?m.jsxs("div",{className:"x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3",children:[X,m.jsx(WT,{"data-testid":"astryx-sidenav-resize-handle",direction:"horizontal",position:"overlay",pillPlacement:"end",isAlwaysVisible:!1,xstyle:ih.resizableHandle,resizable:I.props,label:w("@astryx.sideNav.resizeSidebar")})]}):X;return A?m.jsx(rx,{value:B,children:ee}):ee}f0.displayName="SideNav";const up='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 Tq(e){x.useEffect(()=>{if(e)return()=>{}},[e])}function jq(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 h0(e){return Array.from(e.querySelectorAll(up)).filter(jq)}function p0(e){try{e.focus()}catch{}return document.activeElement===e}function Q5(e){const t=h0(e);for(const r of t)if(p0(r))return!0;return!1}function Rq(e){const t=h0(e);for(let r=t.length-1;r>=0;r--)if(p0(t[r]))return!0;return!1}function Aq(e){const{isActive:t,onEscape:r}=e,s=x.useRef(null),o=x.useRef(null),l=x.useRef(!1),u=t&&r!=null;Gp({isActive:u,onDismiss:()=>{r?.()},getContainer:()=>s.current}),Tq(u);const d=x.useCallback(()=>{s.current&&Q5(s.current)},[]);return x.useEffect(()=>{if(!t)return;const f=document.activeElement,p=s.current;let y=p!=null&&p.contains(document.activeElement);const g=k=>{const v=k.target;v!=null&&s.current?.contains(v)&&(y=!0)};return document.addEventListener("focusin",g,!0),()=>{if(document.removeEventListener("focusin",g,!0),!y)return;const k=document.activeElement;(k==null||k===document.body||k===document.documentElement||p!=null&&p.contains(k))&&f!=null&&f.isConnected&&typeof f.focus=="function"&&f.focus()}},[t]),x.useEffect(()=>{if(!t)return;const f=p=>{const y=s.current;if(!y)return;const g=p.target;if(y.contains(g))o.current=g;else if(l.current){const k=Q5(y);k&&o.current===document.activeElement?Rq(y):!k&&o.current instanceof HTMLElement&&y.contains(o.current)&&p0(o.current),o.current=document.activeElement}l.current=!1};return document.addEventListener("focus",f,!0),()=>{document.removeEventListener("focus",f,!0)}},[t]),x.useEffect(()=>{if(!t)return;const f=p=>{const y=s.current;if(y&&p.key==="Tab"){l.current=!0;const g=h0(y);if(g.length===0){const w=document.activeElement;if(!(w instanceof HTMLElement)||!y.contains(w))return;p.preventDefault(),o.current=w,l.current=!1;return}const k=g[0],v=g[g.length-1];if(document.activeElement===y){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",f),()=>{document.removeEventListener("keydown",f)}},[t,r]),{containerRef:s,focusFirst:d}}const Mq="[data-astryx-popover-fallback-close]";function YT(e){try{e.focus()}catch{}return document.activeElement===e}function zq(e){const t=Array.from(e.querySelectorAll(up)).filter(r=>r.closest(Mq)==null);for(const r of t)if(YT(r))return!0;return!1}const My={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 Nq(e={}){const{onShow:t,onHide:r,xstyle:s,className:o,style:l,hasLightDismiss:u=!0,hasEscapeDismiss:d=!0,hasAutoFocus:f=!0,hasSurface:p=!0,padding:y,surfaceTarget:g,hasCloseButton:k=!0,closeButtonLabel:v,dialogLabel:w,role:S="dialog",isModal:E=!0}=e,R=zt(),C=v??R("@astryx.popover.close"),T=x.useRef(null),A=x.useRef(!1),M=xd({mode:"context",lightDismiss:u,onShow:t,onHide:r}),{containerRef:L,focusFirst:D}=Aq({isActive:M.isOpen,onEscape:d||u?M.hide:void 0}),j=x.useCallback(()=>{const q=L.current;if(q&&!zq(q)){if(S==="dialog"){YT(q);return}D()}},[L,D,S]);x.useEffect(()=>{M.isOpen&&f&&!A.current&&requestAnimationFrame(j),M.isOpen||(A.current=!1)},[M.isOpen,f,j]);const I=x.useCallback(q=>{T.current=q,M.ref(q)},[M]),z=x.useCallback(q=>{A.current=q?.skipAutoFocus??!1,M.show()},[M]),H=x.useCallback(()=>{M.isOpen?M.hide():z()},[M,z]),F={"aria-haspopup":S==="dialog"?"dialog":"true","aria-expanded":M.isOpen,"aria-controls":M.id};Ti("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 B=x.useCallback((q,U)=>{const _=he("popover"),P=g!=null&&g!=="popover"?`${_.className} ${lC(g)}`:_.className;return M.render(m.jsx(Qu,{children:m.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(My.contentWrapper,p&&My.surface,y!=null&&Ni[y],s),o,l),children:[q,k&&m.jsx("div",{"data-astryx-popover-fallback-close":"",...fe(My.closeButtonWrapper,Ga.centerInline("100%")),children:m.jsx(jt,{variant:"secondary",label:C,onClick:M.hide})})]})}),{...U,xstyle:U?.xstyle})},[M,k,p,y,g,o,l,C,L,w,S,E,s]);return{triggerRef:I,contentRef:L,anchorId:M.anchorId,show:z,hide:M.hide,toggle:H,isOpen:M.isOpen,id:M.id,render:B,triggerProps:F}}function x0(e={}){return Nq(e)}function Lq(e){return typeof e=="string"||typeof e=="number"}function J5(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function Ii({children:e,anchorRef:t,content:r,placement:s="above",alignment:o="center",delay:l=200,hideDelay:u=0,focusTrigger:d="auto",touchTrigger:f="auto",isEnabled:p=!0,onOpenChange:y,hasHoverIndication:g="auto",isOpen:k,isDefaultOpen:v}){const w=x.useRef(null),S=e!=null?Lq(e):!1,E=g===!0||g==="auto"&&S,R=x.useCallback(()=>{y?.(!0)},[y]),C=x.useCallback(()=>{y?.(!1)},[y]),T=Ka({placement:s,alignment:o,delay:l,hideDelay:u,focusTrigger:d,touchTrigger:f,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 M=A.getAttribute("aria-describedby");return A.setAttribute("aria-describedby",J5(M,T.describedBy)??""),()=>{T.ref(null),M?A.setAttribute("aria-describedby",M):A.removeAttribute("aria-describedby")}},[t,T.ref,T.describedBy]),qn(()=>{if(t||S)return;const A=w.current;if(!A)return;const M=A.firstElementChild;if(!M)return;T.ref(M);const L=M.getAttribute("aria-describedby");return M.setAttribute("aria-describedby",J5(L,T.describedBy)??""),()=>{T.ref(null),L?M.setAttribute("aria-describedby",L):M.removeAttribute("aria-describedby")}},[t,S,T.ref,T.describedBy]),t&&e==null?m.jsx(m.Fragment,{children:T.renderTooltip(r)}):S?m.jsxs(m.Fragment,{children:[m.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)]}):m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:w,className:"xjp7ctv",children:e}),T.renderTooltip(r)]})}Ii.displayName="Tooltip";const XT=Object.freeze(Object.defineProperty({__proto__:null,Tooltip:Ii},Symbol.toStringTag,{value:"Module"})),Dq=["noopener","noreferrer"];function ZT(e,t){if(e!=="_blank")return{target:e,rel:t};const r=t?.split(/\s+/).filter(Boolean)??[];for(const s of Dq)r.includes(s)||r.push(s);return{target:e,rel:r.join(" ")}}const g0=x.createContext(null);g0.displayName="InteractiveRoleContext";function Oq(){return x.use(g0)}function QT({href:e,onClick:t,isDisabled:r=!1}){const s=Oq();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}},zy={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 Iq(e){e.preventDefault()}function ax({as:e,label:t,href:r,hasUnderline:s=!1,isDisabled:o=!1,isExternalLink:l=!1,newTabLabel:u,target:d,onClick:f,tooltip:p,isStandalone:y=!1,type:g="body",size:k,weight:v,color:w="accent",display:S="inline",maxLines:E=0,children:R,rel:C,xstyle:T,className:A,style:M,ref:L,...D}){const j=ja(),I=zt(),z=u??I("@astryx.link.newTab"),H=Oi(e),F=QT({href:r,onClick:f,isDisabled:o}),{target:B,rel:q}=ZT(l?"_blank":d,C),U=F==="button"||F==="inert"&&r==null,_=m.jsxs(m.Fragment,{children:[m.jsx(Je,{type:g,size:k,weight:v,color:w,display:S,maxLines:E,children:R}),l&&!U&&m.jsxs(m.Fragment,{children:[m.jsx(ft,{icon:"externalLink",size:"xsm",color:"inherit"}),m.jsx(Vs,{children:z})]})]});let P;return U?P=m.jsx("button",{ref:L,type:"button",onClick:f,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,disabled:o,...ye(he("link",{color:w}),pn.focusVisible(Jr.base,Jr.buttonReset,zy[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,y&&Jr.standalone,o&&Jr.disabled,T),A,M),...D,children:_}):o?P=m.jsx("a",{ref:L,onClick:Iq,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...ye(he("link",{color:w}),pn.focusVisible(Jr.base,zy[w],s&&Jr.hasUnderline,y&&Jr.standalone,Jr.disabled,T),A,M),...D,children:_}):P=m.jsx(H,{ref:L,href:r,target:B,rel:q,onClick:f,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,...ye(he("link",{color:w}),pn.focusVisible(Jr.base,zy[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,y&&Jr.standalone,o&&Jr.disabled,T),A,M),...D,children:_}),p?m.jsx(Ii,{content:p,placement:"above",children:P}):P}ax.displayName="Link";const vo={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 _q(e){return!e||typeof window>"u"?!1:window.getComputedStyle(e).direction==="rtl"}const qq=new Set(["text","search","url","tel","email","password","number"]);function Pq(e,t){const r=e.parentElement?.closest("[hidden],[inert]");return r!=null&&r!==t&&t.contains(r)}function Bq(e){if(e.isContentEditable)return e;const t=e.closest("[contenteditable]");return t&&t.getAttribute("contenteditable")!=="false"?t:null}function eE(e,t){if(!(e instanceof HTMLElement))return!1;const r=Bq(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"&&qq.has(e.type);if(!s&&!o)return!1;const l=e,{selectionStart:u,selectionEnd:d,value:f}=l;return u!==d||u==null?!0:t==="ArrowLeft"||t==="ArrowUp"||t==="Home"?u>0:t==="ArrowRight"||t==="ArrowDown"||t==="End"?u<f.length:!1}function sx(e={}){const{itemSelector:t='[role="menuitem"]',boundarySelector:r,wrap:s=!0,onEscape:o,orientation:l="vertical",hasHomeEnd:u=!0,hasPaging:d=!1,hasRovingTabIndex:f=!1,hasCaretGuard:p=!1}=e,y=x.useRef(null),g=x.useCallback(I=>I.getAttribute("aria-disabled")==="true"||I.disabled===!0||I.hasAttribute("disabled"),[]),k=x.useCallback(()=>{const I=y.current;if(!I)return[];const z=Array.from(I.querySelectorAll(t)).filter(H=>!Pq(H,I));return r?z.filter(H=>H.closest(r)===I):z},[t,r]),v=x.useCallback(I=>{const z=y.current;if(!z||!r)return!0;const H=I.target;return H?H.closest(r)===z:!0},[r]),w=x.useCallback((I,z,H,F)=>{const B=I.length;if(B===0)return-1;let q=z;for(let U=0;U<B;U++){if(q<0||q>=B){if(!F)return-1;q=(q+B)%B}const _=I[q];if(_&&!g(_))return q;q+=H}return-1},[g]),S=x.useCallback(()=>{const I=k(),z=document.activeElement;return I.findIndex(H=>H===z||H.contains(z))},[k]),E=x.useCallback((I,z)=>{I.getAttribute("tabindex")!==String(z)&&I.setAttribute("tabindex",String(z))},[]),R=x.useCallback(()=>{const I=k(),z=I.filter(B=>!g(B));if(z.length===0)return;const F=z.find(B=>B.getAttribute("tabindex")==="0")??z[0];for(const B of I)E(B,B===F?0:-1)},[k,g,E]);qn(()=>{f&&R()});const C=x.useCallback((I,z)=>{const H=I[z];if(H){if(f)for(const F of I)E(F,F===H?0:-1);H.focus()}},[f,E]),T=x.useCallback(I=>{const z=k();if(z.length===0)return;const H=Math.max(0,Math.min(I,z.length-1));C(z,H)},[k,C]),A=x.useCallback(()=>{const I=k(),z=w(I,0,1,!1);return z!==-1?(C(I,z),!0):!1},[k,w,C]),M=x.useCallback(()=>{const I=k(),z=w(I,I.length-1,-1,!1);return z!==-1?(C(I,z),!0):!1},[k,w,C]),L=x.useCallback(I=>{const z=y.current,H=k();if(!z||H.length===0)return;const F=S(),B=H.map((P,G)=>g(P)?-1:G).filter(P=>P!==-1);if(B.length===0)return;const q=()=>{const P=z.getBoundingClientRect(),G=B.filter(Y=>{const X=H[Y].getBoundingClientRect();return X.top>=P.top-1&&X.bottom<=P.bottom+1});return G.length===0?-1:I===1?G[G.length-1]:G[0]},U=P=>F===-1||(I===1?P>F:P<F);if(F===-1&&I===-1){A();return}let _=q();if(_===-1||!U(_)){const P=z.scrollTop;if(z.scrollTop=P+I*z.clientHeight,_=q(),_===-1||!U(_)){const G=Math.max(1,B.filter(Q=>{const oe=z.getBoundingClientRect(),O=H[Q].getBoundingClientRect();return O.height>0&&O.top>=oe.top-1&&O.bottom<=oe.bottom+1}).length),Y=B.indexOf(F),X=Y===-1?I===1?-1:B.length:Y,ee=Math.max(0,Math.min(B.length-1,X+I*G));_=B[ee]}}_!==-1&&_!==F&&C(H,_)},[k,S,g,C,A]),D=x.useCallback(()=>{f&&R()},[f,R]),j=x.useCallback(I=>{if(I.ctrlKey||I.metaKey||I.altKey||!v(I))return;if(I.key==="Escape"){o&&(I.preventDefault(),o());return}const z=l==="horizontal"||l==="both",H=l==="vertical"||l==="both",F=[],B=[];if(z){const Q=I.key==="ArrowLeft"||I.key==="ArrowRight"?_q(y.current):!1;F.push(Q?"ArrowLeft":"ArrowRight"),B.push(Q?"ArrowRight":"ArrowLeft")}H&&(F.push("ArrowDown"),B.push("ArrowUp"));const q=F.includes(I.key),U=B.includes(I.key),_=u&&I.key==="Home",P=u&&I.key==="End",G=d&&I.key==="PageDown",Y=d&&I.key==="PageUp";if(!q&&!U&&!_&&!P&&!G&&!Y||p&&(eE(I.target,I.key)||eE(document.activeElement,I.key)))return;const X=S(),ee=k();if(q){const Q=X===-1?0:X+1,oe=w(ee,Q,1,s);oe!==-1&&C(ee,oe)}else if(U){const Q=X===-1?ee.length-1:X-1,oe=w(ee,Q,-1,s);oe!==-1&&C(ee,oe)}else _?A():P?M():G?L(1):Y&&L(-1);I.preventDefault()},[S,k,s,l,u,d,p,w,C,A,M,L,o,v]);return{listRef:y,handleKeyDown:j,handleFocus:D,focusItem:T,focusFirst:A,focusLast:M,ownsEvent:v,getItems:k}}const Hq=500,Fq=300,Uq=8;function Ny(e,t,r){return(e.x-r.x)*(t.y-r.y)-(t.x-r.x)*(e.y-r.y)}function Vq(e,t,r,s){const o=Ny(e,t,r),l=Ny(e,r,s),u=Ny(e,s,t),d=o<0||l<0||u<0,f=o>0||l>0||u>0;return!(d&&f)}function Gq(e,t,r){const s=Uq;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 Vq(e,t,o,l)}function JT(e){const{show:t,hide:r,isOpen:s,isEnabled:o,showDelay:l=150,hideDelay:u=200,clickGuardMs:d=Hq,itemSelector:f,popoverId:p,ownsFocus:y=!0,flyoutRef:g}=e,k=kd("(hover: hover)"),v=x.useRef(null),w=x.useRef(null),S=x.useRef(null),E=x.useRef(null),R=x.useRef(!1),C=x.useRef(0),T=x.useRef(0),A=x.useRef(s);qn(()=>{const Q=A.current;A.current=s,Q&&!s&&(R.current=!1,T.current=0,C.current=Date.now())},[s]);const M=x.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null),w.current&&(clearTimeout(w.current),w.current=null),E.current?.(),E.current=null},[]),L=x.useRef(()=>{}),{listRef:D,handleKeyDown:j,focusFirst:I}=sx({itemSelector:f,onEscape:()=>L.current()}),z=x.useCallback(()=>{const Q=D.current?.contains(document.activeElement)??!1;r(),Q&&S.current?.focus()},[r,D]);x.useEffect(()=>{L.current=()=>{M(),z()}},[M,z]),x.useEffect(()=>()=>M(),[M]),x.useEffect(()=>{o||M()},[o,M]);const H=x.useCallback(()=>{I()||D.current?.focus()},[I,D]),F=x.useCallback(()=>{if(!y){t();return}t({skipAutoFocus:!0}),H()},[y,t,H]),B=x.useCallback(()=>d>0&&T.current>0&&Date.now()-T.current<d?(R.current=!1,T.current=0,!0):!1,[d]),q=x.useCallback(Q=>{if(p&&Q?.preventDefault(),M(),Q!=null&&Q.detail===0){C.current=0,R.current=!1,T.current=0,s?y&&H():F();return}if(!s){C.current=0,R.current=!1,T.current=0,F();return}if(B()){y&&H();return}z()},[p,M,s,y,B,F,H,z]),U=x.useCallback(()=>{if(!k||C.current>0&&Date.now()-C.current<Fq)return;if(s){M();return}R.current=!0,M();const Q=()=>{T.current=Date.now(),t({skipAutoFocus:!0})};l>0?v.current=setTimeout(Q,l):Q()},[k,s,M,t,l]),_=x.useCallback(Q=>{if(C.current=0,!R.current)return;M();let oe=null,O=!1,Z=()=>!1;const de=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{if(O&&oe!=null&&Z(oe)){de();return}r()},u)};de();const ue=g?.current??D.current,ve=Q!=null?{x:Q.clientX,y:Q.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;Z=pe=>Gq(pe,ve,xe),O=!0,oe=ve;const te=pe=>{const Re={x:pe.clientX,y:pe.clientY};if(oe=Re,Z(Re)){de();return}O=!1,E.current?.(),E.current=null};$e.addEventListener("pointermove",te,!0),E.current=()=>{$e.removeEventListener("pointermove",te,!0)}},[M,r,u,s,D,g]),P=x.useCallback(()=>{M()},[M]),G=x.useCallback(Q=>{S.current=Q},[]),Y=x.useCallback(()=>{},[]),X=x.useCallback(Q=>{},[]),ee=x.useCallback(Q=>{},[]);return o?{triggerProps:{onClick:q,onMouseEnter:U,onMouseLeave:_,...p?{popoverTarget:p}:null},contentProps:{onMouseEnter:P,onMouseLeave:_,onKeyDown:j},menuRef:D,focusFirst:I,focusMenu:H,confirmHoverOpen:B,close:z,setTriggerEl:G}:{triggerProps:{onClick:Y,onMouseEnter:Y,onMouseLeave:Y},contentProps:{onMouseEnter:Y,onMouseLeave:Y,onKeyDown:ee},menuRef:D,focusFirst:I,focusMenu:H,confirmHoverOpen:B,close:z,setTriggerEl:X}}const Nr={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}},Kq="sm",Wq={isCollapsed:!1,toggle:()=>{},isCollapsible:!1};function Ly({href:e,as:t,isDisabled:r,onClick:s,ref:o,children:l,...u}){const d=Oi(t);return e&&!r?m.jsx(d,{ref:o,href:e,onClick:s,...u,children:l}):m.jsx("button",{ref:o,type:"button",onClick:s,disabled:r,...u,children:l})}function ox({as:e,label:t,icon:r,selectedIcon:s,isSelected:o=!1,isDisabled:l=!1,href:u,onClick:d,endContent:f,actions:p,children:y,collapsible:g,size:k="md","data-testid":v,ref:w,xstyle:S,...E}){const R=ja(),C=zt(),{isCollapsed:T}=u0(),A=HT(),{closeMobileNav:M}=tx(),L=A==="drawer"||A==="drawer-content",D=x.useId(),j=!!y,I=x.useRef(null),z=x0({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:C("@astryx.sideNavItem.submenuLabel",{label:t})}),H=xn(w,z.triggerRef),F=x.useMemo(()=>typeof g=="object"?g:{},[g]),B=j&&g!==!1,q=F.isCollapsed,U=q!==void 0,[_,P]=x.useState(F.defaultIsCollapsed??!1),G=U?q:_,Y=x.useCallback(()=>{const je=!G;U||P(je),F.onCollapsedChange?.(je)},[G,U,F]),X=o&&s?s:r,Q=B&&(!!u||!!d)&&!T,oe=!!p,O=je=>{if(l){je.preventDefault();return}if(B&&!Q&&!T){je.preventDefault(),Y();return}d?.(je),L&&M()},Z=je=>{je.preventDefault(),je.stopPropagation(),Y()},{triggerProps:de,contentProps:ue}=JT({show:z.show,hide:z.hide,isOpen:z.isOpen,isEnabled:T&&j,clickGuardMs:0,ownsFocus:!1});if(T&&!r)return null;if(T){const je=X&&Ca(X,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),He={...ye(he("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),pn.focusVisible(vo.item,or.backgroundColor,vo[k],Nr.itemCollapsed,k==="sm"&&Nr.itemCollapsedSm,k==="lg"&&Nr.itemCollapsedLg,o&&vo.selected,l&&vo.disabled)),...R},at=E["aria-label"]!=null&&E["aria-label"].trim()!==""?E["aria-label"]:t;if(j)return m.jsxs("div",{...fe(Nr.root,S),children:[m.jsx("button",{ref:H,type:"button",...E,...de,"aria-label":at,"data-testid":v,...z.triggerProps,...He,children:je}),z.render(m.jsxs("div",{className:"x1hviunn xu0wf1k x7a5moj xfb3i0g",onMouseEnter:ue.onMouseEnter,onMouseLeave:ue.onMouseLeave,onClick:()=>z.hide(),children:[m.jsx("div",{className:"xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j",children:t}),m.jsx(rx,{value:Wq,children:y})]}),{placement:"end",alignment:"start",xstyle:Nr.popoverGap})]});const pt={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-label":at,"data-testid":v},et=m.jsx(Ly,{ref:w,href:u,as:e,isDisabled:l,onClick:O,...E,...pt,...He,children:je});return m.jsxs("div",{ref:I,...fe(Nr.root,S),children:[et,m.jsx(Ii,{content:t,placement:"end",anchorRef:I})]})}const ve=m.jsxs(m.Fragment,{children:[X&&Ca(X,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),!T&&m.jsx("span",{className:"x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft",children:t}),!T&&f&&m.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:f}),!T&&B&&!Q&&m.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[Nr.expandChevron,!G&&Nr.expandChevronExpanded]})]}),xe=he("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),$e=[vo.item,or.backgroundColor,vo[k],o&&vo.selected,l&&vo.disabled],te={...ye(xe,fe(...$e)),...R},pe={...ye(xe,pn.focusVisible(...$e)),...R},Re={...ye(xe,pn.focusWithinFirstChild(...$e)),...R},Te=Q||oe;let Ce;if(Te){const je=Q?{"aria-current":o?"page":void 0}:{"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":B?!G:void 0,"aria-controls":B?`${D}-children`:void 0};Ce=m.jsxs("div",{"data-testid":v,...oe?Re:te,children:[m.jsx(Ly,{ref:w,href:u,as:e,isDisabled:l,onClick:O,...E,...je,...oe?pn.suppressed(Nr.splitAction):pn.focusVisible(Nr.splitAction),children:ve}),Q&&m.jsx("button",{type:"button",onClick:Z,"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(Nr.expandToggle,or.backgroundColor),children:m.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[Nr.expandChevron,!G&&Nr.expandChevronExpanded]})}),oe&&m.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w",children:m.jsx(Pl,{value:Kq,children:p})})]})}else{const je={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":B?!G:void 0,"aria-controls":B?`${D}-children`:void 0,"data-testid":v};Ce=m.jsx(Ly,{ref:w,href:u,as:e,isDisabled:l,onClick:O,...E,...je,...pe,children:ve})}return m.jsxs("div",{ref:I,...fe(Nr.root,S),children:[Ce,j&&!T&&m.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:m.jsxs("div",{className:"xb3r6kr x2lwn1j x31w388",children:[m.jsx("span",{id:`${D}-label`,hidden:!0,children:t}),y]})})]})}ox.displayName="SideNavItem";const Yq={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",k8WAf4:"xu0wf1k",$$css:!0}};function dp({ref:e,title:t,subtitle:r,children:s,endContent:o,isHeaderHidden:l=!1,xstyle:u,className:d,style:f,"data-testid":p,...y}){const{isCollapsed:g}=u0(),v=`${x.useId()}-title`,w=m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"x78zum5 xdt5ytf x98rzlu xeuugli",children:[m.jsx("span",{id:v,className:"x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:t}),r&&m.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:r})]}),o&&m.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:o})]}),S=l||g;return m.jsxs("div",{ref:e,...ye(he("side-nav-section"),fe(Yq.root,u),d,f),...y,role:"group","aria-labelledby":v,"data-testid":p,children:[S?m.jsx(Vs,{as:"div",children:w}):m.jsx("div",{className:"x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o",children:w}),m.jsx("div",{className:"x78zum5 xdt5ytf x1lsbc85",children:s})]})}dp.displayName="SideNavSection";const ch={base:{k1xSpc:"xjp7ctv",kMwMTN:"x1tgivj0",kMv6JI:"x9ynric",$$css:!0},light:{kQNsl9:"x19aimcq",$$css:!0},dark:{kQNsl9:"xntwwlm",$$css:!0},system:{kQNsl9:"x108lcm5",$$css:!0}},P1=Mp.createContext(!1);P1.displayName="ThemeNestingContext";const Dy=new Set,tE="@layer reset, astryx-base, astryx-theme;";function Xq(e){const t=x.useId();x.useInsertionEffect(()=>{if(e.__built)return;const r=`astryx-theme-${e.name}`;if(Dy.has(r))return;Hp(`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}=XI(e);Dy.add(r);const l=[()=>Dy.delete(r)];if(s){const u=document.createElement("style");u.setAttribute(Dr("theme-prose"),e.name),u.setAttribute(Dr("id"),t),u.textContent=`${tE}
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=`${tE}
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}"]`),d=document.querySelector(`style[${Dr("theme")}="${e.name}"][${Dr("id")}="${t}"]`);u?.remove(),d?.remove()}),()=>{for(const u of l)u()}},[e,t])}function Zq(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 m0({theme:e,mode:t="system",children:r}){const s=x.use(P1);ET(e),Xq(e),Zq(s,t,e.name);const o=t==="dark"?ch.dark:t==="light"?ch.light:ch.system,l=x.useMemo(()=>({theme:e,mode:t}),[e,t]);return m.jsx(vd,{value:l,children:m.jsx(P1,{value:!0,children:m.jsx("div",{...fe(ch.base,o),"data-astryx-theme":e.name,"data-theme":t==="system"?void 0:t,children:r})})})}m0.displayName="Theme";function Qq(e,t){const r=document.createElement("span");r.style.display="none",e.appendChild(r);try{return t.map(s=>(r.style.color=`var(${s})`,Xu(getComputedStyle(r).color)))}finally{r.remove()}}function Jq(e){const t=[];let r=e;for(;r!==null;){const o=getComputedStyle(r);if(o.backgroundImage!=="none")return null;const l=Xu(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)=>fT(l,o),s)}const eP=3;function tP(e,t,r,s){return r===null||s===null?null:t!==null&&Ih(t,e)>=eP?"off":Ih(r,e)>=Ih(s,e)?"dark":"light"}function nP(e,t){const[r,s]=x.useState(null),{tokens:o}=ex(),l=x.useRef(null);return qn(()=>{const u=e.current?.parentElement??null;if(!t||u===null)return;const d=Jq(u);if(d===null)return;const f=dC(d),p=l.current;if(p!==null&&p.background===f&&p.tokens===o)return;l.current={background:f,tokens:o};const[y,g,k]=Qq(u,["--color-text-primary","--color-on-dark","--color-on-light"]),v=tP(d,y,g,k);v!==null&&s(w=>w===v?w:v)}),t?r:null}function ej({mode:e,fallback:t="dark",children:r}){const s=x.useRef(null),o=nP(s,e==="auto"),l=e==="auto"?o??t:e;return m.jsx("div",{ref:s,...l==="off"?null:{[Dr("media")]:l},...{0:{className:"xjp7ctv"},1:{className:"xjp7ctv x1tgivj0"}}[(l!=="off")<<0],children:r})}ej.displayName="MediaTheme";const tj="--color-syntax-";function rP(e){return tj+e}const B1=Object.keys(Xb).map(e=>e.replace(tj,""));function aP(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function sP(e){const t=B1.filter(s=>!(s in e.tokens));t.length>0&&Ea("defineSyntaxTheme",`"${e.name}": missing tokens: ${t.join(", ")}. All 14 syntax tokens are required.`);const r={};for(const s of B1)r[s]=aP(e.tokens[s]);return{name:e.name,tokens:r,__inputTokens:{...e.tokens}}}function oP(e){const t={};for(const r of B1)t[rP(r)]=e.tokens[r];return t}const nj=x.createContext(null);nj.displayName="SyntaxThemeContext";function rj({theme:e,children:t}){const r=x.useMemo(()=>oP(e),[e]),s=x.useMemo(()=>({theme:e}),[e]);return m.jsx(nj,{value:s,children:m.jsx("div",{style:r,"data-astryx-syntax-theme":e.name,children:t})})}rj.displayName="SyntaxTheme";function iP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const lP=x.forwardRef(iP);function cP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const H1=x.forwardRef(cP);function uP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"}))}const aj=x.forwardRef(uP);function dP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ix=x.forwardRef(dP);function fP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const F1=x.forwardRef(fP);function hP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"}))}const sj=x.forwardRef(hP);function pP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"}))}const oj=x.forwardRef(pP);function xP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const gP=x.forwardRef(xP);function mP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"}))}const yP=x.forwardRef(mP);function bP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const ij=x.forwardRef(bP);function kP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const vP=x.forwardRef(kP);function wP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const SP=x.forwardRef(wP);function EP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const $P=x.forwardRef(EP);function CP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))}const TP=x.forwardRef(CP);function jP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const RP=x.forwardRef(jP);function AP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const MP=x.forwardRef(AP);function zP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const lj=x.forwardRef(zP);function NP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const LP=x.forwardRef(NP);function DP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const y0=x.forwardRef(DP);function OP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const b0=x.forwardRef(OP);function IP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m7.875 14.25 1.214 1.942a2.25 2.25 0 0 0 1.908 1.058h2.006c.776 0 1.497-.4 1.908-1.058l1.214-1.942M2.41 9h4.636a2.25 2.25 0 0 1 1.872 1.002l.164.246a2.25 2.25 0 0 0 1.872 1.002h2.092a2.25 2.25 0 0 0 1.872-1.002l.164-.246A2.25 2.25 0 0 1 16.954 9h4.636M2.41 9a2.25 2.25 0 0 0-.16.832V12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 12V9.832c0-.287-.055-.57-.16-.832M2.41 9a2.25 2.25 0 0 1 .382-.632l3.285-3.832a2.25 2.25 0 0 1 1.708-.786h8.43c.657 0 1.281.287 1.709.786l3.284 3.832c.163.19.291.404.382.632M4.5 20.25h15A2.25 2.25 0 0 0 21.75 18v-2.625c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125V18a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _P=x.forwardRef(IP);function qP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const PP=x.forwardRef(qP);function BP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"}))}const HP=x.forwardRef(BP);function FP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const cj=x.forwardRef(FP);function UP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const VP=x.forwardRef(UP);function GP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const KP=x.forwardRef(GP);function WP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const YP=x.forwardRef(WP);function XP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))}const k0=x.forwardRef(XP);function ZP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const QP=x.forwardRef(ZP);function JP({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const uj=x.forwardRef(JP);function eB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const tB=x.forwardRef(eB);function nB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"}))}const rB=x.forwardRef(nB);function aB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))}const v0=x.forwardRef(aB);function sB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const oB=x.forwardRef(sB);function iB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const lB=x.forwardRef(iB);function cB({title:e,titleId:t,...r},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const dj=x.forwardRef(cB);const uB=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function dB(e,t,r=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:uB(e),size:24,node:t,...r.length>0?{aliases:r}:{}}}const fB=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 hB=e=>{const t=fB(e);return t.charAt(0).toUpperCase()+t.slice(1)};const U1=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();const li={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 Oy(e){return e!=null}function pB(e,t={}){const r=t.attributeNames??{},s=k=>r[k]??k,o=e.size??e.width??li.width,l=e.size??e.height??li.height,u=e.aliases?.filter(k=>typeof k=="string"&&k.trim()!=="").map(k=>`lucide-${k}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...u],f=t.className?.split(" ").filter(Boolean)??[],p=t.includeDefaultClasses===!1?U1(...f):U1("lucide",...d,...f),y=t.absoluteStrokeWidth?Number(t.strokeWidth??li["stroke-width"])*Number(e.size??e.width??li.width)/Number(t.size??t.width??li.width):t.strokeWidth??li["stroke-width"];return["svg",{...Object.entries(li).reduce((k,[v,w])=>(k[s(v)]=w,k),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&Oy(t.size)&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&Oy(t.width)&&{[s("width")]:t.width},..."height"in t&&Oy(t.height)&&{[s("height")]:t.height},[s("stroke-width")]:y,...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 xB(e,t={}){return pB(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const gB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},mB=x.createContext({}),yB=()=>x.useContext(mB),bB=x.forwardRef(({color:e,size:t,width:r,height:s,strokeWidth:o,absoluteStrokeWidth:l,nonScalingStroke:u,className:d="",children:f,iconNode:p=[],icon:y={node:p,aliases:[],size:24},...g},k)=>{const{size:v=24,strokeWidth:w=2,absoluteStrokeWidth:S=!1,nonScalingStroke:E=!1,color:R="currentColor",className:C=""}=yB()??{},T=!!f||gB(g),[A,M,L=[]]=xB(y,{color:e??R,width:r??t??v,height:s??t??v,strokeWidth:o??w,absoluteStrokeWidth:l??S,nonScalingStroke:u??E,className:U1(C,d),hasA11yProp:T,attributes:g});return x.createElement(A,{ref:k,...M},[...L.map(([D,j])=>x.createElement(D,j)),...Array.isArray(f)?f:[f]])});function qt(e,t=[],r=[]){const s=typeof e=="string"?dB(e,t,r):e,o=x.forwardRef(({className:l,...u},d)=>x.createElement(bB,{ref:d,icon:s,className:l,...u}));return s.name&&(o.displayName=hB(s.name)),o}const fj={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};fj.node;const hj=qt(fj);const pj={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"}]]};pj.node;const xj=qt(pj);const gj={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};gj.node;const mj=qt(gj);const yj={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"}]]};yj.node;const bj=qt(yj);const kj={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"}]]};kj.node;const vj=qt(kj);const wj={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};wj.node;const Sj=qt(wj);const Ej={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Ej.node;const $j=qt(Ej);const Cj={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Cj.node;const Tj=qt(Cj);const jj={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};jj.node;const Rj=qt(jj);const Aj={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"}]]};Aj.node;const Mj=qt(Aj);const zj={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"}]]};zj.node;const Nj=qt(zj);const Lj={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"]};Lj.node;const Dj=qt(Lj);const Oj={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"]};Oj.node;const Ij=qt(Oj);const _j={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};_j.node;const qj=qt(_j);const Pj={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"]};Pj.node;const Bj=qt(Pj);const Hj={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"}]]};Hj.node;const Fj=qt(Hj);const Uj={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"]};Uj.node;const Vj=qt(Uj);const Gj={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"}]]};Gj.node;const Kj=qt(Gj);const Wj={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"}]]};Wj.node;const Yj=qt(Wj);const Xj={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"]};Xj.node;const Zj=qt(Xj);const Qj={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"}]]};Qj.node;const Jj=qt(Qj);const e4={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};e4.node;const t4=qt(e4);const n4={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"}]]};n4.node;const r4=qt(n4);const a4={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a4.node;const s4=qt(a4);const o4={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};o4.node;const i4=qt(o4);const l4={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"]};l4.node;const c4=qt(l4);const u4={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"}]]};u4.node;const d4=qt(u4);const f4={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"}]]};f4.node;const h4=qt(f4);const p4={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};p4.node;const x4=qt(p4);var It={size:"1em","aria-hidden":!0},kB={close:m.jsx(x4,{...It}),chevronDown:m.jsx($j,{...It}),chevronLeft:m.jsx(Tj,{...It}),chevronRight:m.jsx(Rj,{...It}),chevronsLeft:m.jsx(Mj,{...It}),chevronsRight:m.jsx(Nj,{...It}),check:m.jsx(Sj,{...It}),success:m.jsx(Dj,{...It}),error:m.jsx(Ij,{...It}),warning:m.jsx(c4,{...It}),info:m.jsx(Jj,{...It}),calendar:m.jsx(bj,{...It}),clock:m.jsx(qj,{...It}),externalLink:m.jsx(Kj,{...It}),menu:m.jsx(t4,{...It}),moreHorizontal:m.jsx(Vj,{...It}),search:m.jsx(s4,{...It}),upload:m.jsx(d4,{...It}),arrowUp:m.jsx(mj,{...It}),arrowDown:m.jsx(hj,{...It}),arrowsUpDown:m.jsx(xj,{...It}),funnel:m.jsx(Zj,{...It}),eyeSlash:m.jsx(Yj,{...It}),viewColumns:m.jsx(Bj,{...It}),copy:m.jsx(Fj,{...It}),checkDouble:m.jsx(vj,{...It}),wrench:m.jsx(h4,{...It}),stop:m.jsx(i4,{...It}),microphone:m.jsx(r4,{...It})},vB={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:wo,green:yr,neutral:Ne,orange:va,pink:So,purple:wa,red:In,teal:hs,yellow:br}=vB,Zt=(e,t)=>`${e}${t}`,wB=sP({name:"astryx-neutral",tokens:{keyword:[wa.light[30],wa.light[80]],string:[yr.light[30],yr.light[80]],comment:[Ne.light[45],Ne.dark[65]],number:[va.light[30],va.dark[80]],function:[Lr.light[30],Lr.dark[80]],type:[wa.light[30],wa.light[80]],variable:[Ne.light[5],Ne.dark[90]],operator:[Ne.light[45],Ne.dark[65]],constant:[va.light[30],va.dark[80]],tag:[In.light[30],In.dark[80]],attribute:[br.light[30],br.light[80]],property:[hs.light[30],hs.light[80]],punctuation:[Ne.light[45],Ne.dark[65]],background:[Ne.light[100],Ne.dark[5]]}}),SB={"--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)"},EB=NT({name:"neutral",localTokens:SB,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:wB,tokens:{"--color-background-surface":[Ne.light[100],Ne.dark[15]],"--color-background-body":[Ne.light[95],Ne.dark[10]],"--color-background-card":[Ne.light[100],Ne.dark[10]],"--color-background-popover":[Ne.light[100],Ne.dark[10]],"--color-background-muted":[Ne.light[95],Ne.dark[10]],"--color-accent":[Ne.light[10],Ne.dark[95]],"--color-accent-muted":[Ne.light[95],Ne.dark[15]],"--color-neutral":[Zt(Ne.light[0],"0F"),Zt(Ne.dark[100],"1A")],"--color-overlay":[Zt(Ne.light[0],"80"),Zt(Ne.dark[0],"CC")],"--color-overlay-hover":[Zt(Ne.light[0],"0D"),Zt(Ne.dark[100],"0D")],"--color-overlay-pressed":[Zt(Ne.light[0],"1A"),Zt(Ne.dark[100],"1A")],"--color-text-primary":[Ne.light[0],Ne.dark[100]],"--color-text-secondary":[Ne.light[30],Ne.dark[65]],"--color-text-disabled":[Ne.light[60],Ne.dark[35]],"--color-text-accent":[Ne.light[10],Ne.dark[95]],"--color-on-dark":Ne.light[100],"--color-on-light":Ne.light[5],"--color-on-accent":[Ne.light[100],Ne.dark[5]],"--color-on-success":[Ne.light[100],Ne.dark[5]],"--color-on-error":[Ne.light[100],Ne.dark[5]],"--color-on-warning":Ne.light[5],"--color-icon-accent":[Ne.light[10],Ne.dark[95]],"--color-icon-primary":[Ne.light[0],Ne.dark[100]],"--color-icon-secondary":[Ne.light[45],Ne.dark[65]],"--color-icon-disabled":[Ne.light[60],Ne.dark[35]],"--color-success":[yr.light[25],yr.light[80]],"--color-error":[In.light[25],In.dark[85]],"--color-warning":[br.light[25],br.light[85]],"--color-success-muted":[yr.dark[85],Zt(yr.light[75],"3D")],"--color-error-muted":[In.light[85],Zt(In.dark[75],"3D")],"--color-warning-muted":[br.dark[90],Zt(br.light[75],"3D")],"--color-border":[Zt(Ne.light[0],"14"),Zt(Ne.dark[100],"1A")],"--color-border-emphasized":[Ne.light[85],Ne.dark[35]],"--color-skeleton":[Ne.light[95],Ne.dark[35]],"--color-shadow":[Zt(Ne.light[0],"1A"),Zt(Ne.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":[br.dark[90],br.dark[25]],"--color-border-yellow":[br.dark[80],br.light[65]],"--color-icon-yellow":[br.light[25],br.light[75]],"--color-text-yellow":[br.light[25],br.light[80]],"--color-background-green":[yr.dark[85],yr.dark[25]],"--color-border-green":[yr.dark[80],yr.light[65]],"--color-icon-green":[yr.light[25],yr.light[75]],"--color-text-green":[yr.light[25],yr.light[75]],"--color-background-teal":[hs.light[85],hs.dark[25]],"--color-border-teal":[hs.light[80],hs.dark[65]],"--color-icon-teal":[hs.light[25],hs.dark[75]],"--color-text-teal":[hs.light[25],hs.light[80]],"--color-background-cyan":[wo.dark[85],wo.dark[25]],"--color-border-cyan":[wo.dark[80],wo.dark[65]],"--color-icon-cyan":[wo.light[25],wo.dark[75]],"--color-text-cyan":[wo.light[25],wo.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":[So.light[85],So.dark[25]],"--color-border-pink":[So.light[85],So.light[70]],"--color-icon-pink":[So.light[25],So.dark[75]],"--color-text-pink":[So.light[25],So.dark[80]],"--color-background-gray":[Ne.light[90],Ne.dark[20]],"--color-border-gray":[Ne.light[85],Ne.dark[15]],"--color-icon-gray":[Ne.light[30],Ne.dark[65]],"--color-text-gray":[Ne.light[10],Ne.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(yr.light[45],"4D")}`,"--shadow-inset-warning":`inset 0px 0px 0px 2px ${Zt(br.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:kB});const nE='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',$B=NT({name:"foundry",extends:EB,typography:{scale:{base:14,ratio:1.2},body:{family:"Poppins",fallbacks:nE},heading:{family:"Poppins",fallbacks:nE,weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}}}),Qe=e=>typeof e=="string",Eu=()=>{let e,t;const r=new Promise((s,o)=>{e=s,t=o});return r.resolve=e,r.reject=t,r},uh=e=>e==null?"":String(e),CB=(e,t,r)=>{e.forEach(s=>{t[s]&&(r[s]=t[s])})},TB=/###/g,rE=e=>e&&e.includes("###")?e.replace(TB,"."):e,aE=e=>!e||Qe(e),Pu=(e,t,r)=>{const s=Qe(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(aE(e))return{};const l=rE(s[o]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++o}return aE(e)?{}:{obj:e,k:rE(s[o])}},sE=(e,t,r)=>{const{obj:s,k:o}=Pu(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),d=Pu(e,u,Object);for(;d.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),d=Pu(e,u,Object),d?.obj&&typeof d.obj[`${d.k}.${l}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${l}`]=r},jB=(e,t,r,s)=>{const{obj:o,k:l}=Pu(e,t,Object);o[l]=o[l]||[],o[l].push(r)},fp=(e,t)=>{const{obj:r,k:s}=Pu(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},RB=(e,t,r)=>{const s=fp(e,r);return s!==void 0?s:fp(t,r)},g4=(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]):g4(e[s],t[s],r):e[s]=t[s]);return e},Os=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),AB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},MB=e=>Qe(e)?e.replace(/[&<>"'\/]/g,t=>AB[t]):e;class zB{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 NB=[" ",",","?","!",";"],LB=new zB(20),DB=(e,t,r)=>{t=t||"",r=r||"";const s=NB.filter(u=>!t.includes(u)&&!r.includes(u));if(s.length===0)return!0;const o=LB.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},V1=(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,d="";for(let f=l;f<s.length;++f)if(f!==l&&(d+=r),d+=s[f],u=o[d],(typeof u=="function"||d==="__proto__")&&!Object.prototype.hasOwnProperty.call(o,d)&&(u=void 0),u!==void 0){if(["string","number","boolean"].includes(typeof u)&&f<s.length-1)continue;l+=f-l+1;break}o=u}return o},lc=e=>e?.replace(/_/g,"-"),OB={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 hp{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||OB,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 hp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new hp(this.logger,t)}}var ps=new hp;class lx{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 oE=new WeakSet;class iE extends lx{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 d;t.includes(".")?d=t.split("."):(d=[t,r],s&&(Array.isArray(s)?d.push(...s):Qe(s)&&l?d.push(...s.split(l)):d.push(s)));const f=fp(this.data,d);return f==null&&!r&&!s&&t.includes(".")&&(t=d[0],r=d[1],s=d.slice(2).join(".")),f!=null||!u||!Qe(s)?f:V1(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 d=[t,r];s&&(d=d.concat(u?s.split(u):s)),t.includes(".")&&(d=t.split("."),o=r,r=d[1]),this.addNamespaces(r),sE(this.data,d,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 d=[t,r];t.includes(".")&&(d=t.split("."),o=s,s=r,r=d[1]),this.addNamespaces(r);let f=fp(this.data,d)||{};u.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?g4(f,s,l):f={...f,...s},sE(this.data,d,f),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 oE.has(l)?!0:!l||Object.keys(l).length===0?!1:(typeof l=="object"&&oE.add(l),!0)})}toJSON(){return this.data}}var m4={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 y4=Symbol("i18next/PATH_KEY");function IB(){const e=[],t=Object.create(null);let r;return t.get=(s,o)=>(r?.revoke?.(),o===y4?e:(e.push(o),r=Proxy.revocable(s,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function vi(e,t){const{[y4]:r}=e(IB()),s=t?.keySeparator??".",o=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&o){const u=t?.ns,d=l?Array.isArray(u)?u:u?[u]:null:Array.isArray(u)?u:null;if(d&&(l?d:d.length>1?d.slice(1):[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(s)}`}return r.join(s)}const Iy=e=>!Qe(e)&&typeof e!="boolean"&&typeof e!="number";class pp extends lx{constructor(t,r={}){super(),CB(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ps.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=Iy(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),d=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!DB(t,s,o);if(u&&!d){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.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=vi(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(B=>typeof B=="function"?vi(B,{...this.options,...o}):String(B));const l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:d,namespaces:f}=this.extractFromKey(t[t.length-1],o),p=f[f.length-1];let y=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const g=o.lng||this.language,k=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return k?l?{res:`${p}${y}${d}`,usedKey:d,exactUsedKey:d,usedLng:g,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${y}${d}`:l?{res:d,usedKey:d,exactUsedKey:d,usedLng:g,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:d;const v=this.resolve(t,o);let w=v?.res;const S=v?.usedKey||d,E=v?.exactUsedKey||d,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),M=pp.hasDefaultValue(o),L=A?this.pluralResolver.getSuffix(g,o.count,o):"",D=o.ordinal&&A?this.pluralResolver.getSuffix(g,o.count,{ordinal:!1}):"",j=A&&!o.ordinal&&o.count===0,I=j&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${L}`]||o[`defaultValue${D}`]||o.defaultValue;let z=w;T&&!w&&M&&(z=I);const H=Iy(z),F=Object.prototype.toString.apply(z);if(T&&z&&H&&!R.includes(F)&&!(Qe(C)&&Array.isArray(z))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,z,{...o,ns:f}):`key '${d} (${this.language})' returned an object instead of string.`;return l?(v.res=B,v.usedParams=this.getUsedParamsDetails(o),v):B}if(u){const B=Array.isArray(z),q=B?[]:{},U=B?E:S;for(const _ in z)if(Object.prototype.hasOwnProperty.call(z,_)){const P=`${U}${u}${_}`;M&&!w?q[_]=this.translate(P,{...o,defaultValue:Iy(I)?I[_]:void 0,joinArrays:!1,ns:f}):q[_]=this.translate(P,{...o,joinArrays:!1,ns:f}),q[_]===P&&(q[_]=z[_])}w=q}}else if(T&&Qe(C)&&Array.isArray(w))w=w.join(C),w&&(w=this.extendTranslation(w,t,o,v,s));else{let B=!1,q=!1;!this.isValidLookup(w)&&M&&(B=!0,w=I),this.isValidLookup(w)||(q=!0,w=d);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:w,P=M&&I!==w&&this.options.updateMissing;if(q||B||P){if(this.logger.log(P?"updateKey":"missingKey",g,p,A&&!P?`${d}${this.pluralResolver.getSuffix(g,o.count,o)}`:d,P?I:w),u){const ee=this.resolve(d,{...o,keySeparator:!1});ee&&ee.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 Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let ee=0;ee<Y.length;ee++)G.push(Y[ee]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(o.lng||this.language):G.push(o.lng||this.language);const X=(ee,Q,oe)=>{const O=M&&oe!==w?oe:_;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,p,Q,O,P,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ee,p,Q,O,P,o),this.emit("missingKey",ee,p,Q,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?G.forEach(ee=>{const Q=this.pluralResolver.getSuffixes(ee,o);j&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!Q.includes(`${this.options.pluralSeparator}zero`)&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(oe=>{X([ee],d+oe,o[`defaultValue${oe}`]||I)})}):X(G,d,I))}w=this.extendTranslation(w,t,o,v,s),q&&w===d&&this.options.appendNamespaceToMissingKey&&(w=`${p}${y}${d}`),(q||B)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${y}${d}`:d,B?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 f=Qe(t)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let y=s.replace&&!Qe(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,s.lng||this.language||o.usedLng,s),f){const g=t.match(this.interpolator.nestingRegexp),k=g&&g.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,(...g)=>l?.[0]===g[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${r[0]}`),null):this.translate(...g,r),s)),s.interpolation&&this.interpolator.reset()}const u=s.postProcess||this.options.postProcess,d=Qe(u)?[u]:u;return t!=null&&d?.length&&s.applyPostProcessor!==!1&&(t=m4.handle(d,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,d;return Qe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(f=>typeof f=="function"?vi(f,{...this.options,...r}):f)),t.forEach(f=>{if(this.isValidLookup(s))return;const p=this.extractFromKey(f,r),y=p.key;o=y;let g=p.namespaces;this.options.fallbackNS&&(g=g.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);g.forEach(E=>{this.isValidLookup(s)||(d=E,!this.checkedLoadedFor[`${S[0]}-${E}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(this.checkedLoadedFor[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(R=>{if(this.isValidLookup(s))return;u=R;const C=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,y,R,E,r);else{let A;k&&(A=this.pluralResolver.getSuffix(R,r.count,r));const M=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(r.ordinal&&A.startsWith(L)&&C.push(y+A.replace(L,this.options.pluralSeparator)),C.push(y+A),v&&C.push(y+M)),w){const D=`${y}${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+M))}}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:d}}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 lE{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ps.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(t){if(t=lc(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=lc(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",d=Qe(t)&&l&&!u;let f=null;if(d){let k;r===void 0?k="undefined":r===!1?k="boolean:false":k=`string:${r}`,f=`${t.length}:${t}|${k}`}if(f!==null){const k=this.resolveHierarchyCache[f];if(k!==void 0)return k.slice()}const p=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),y=[],g=k=>{k&&(this.isSupportedCode(k)?y.push(k):this.logger.warn(`rejecting language code not found in supportedLngs: ${k}`))};return Qe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(t))):Qe(t)&&g(this.formatLanguageCode(t)),p.forEach(k=>{const v=this.formatLanguageCode(k);y.includes(v)||g(v)}),f!==null?(this.resolveHierarchyCache[f]=y,y.slice()):y}}const cE={zero:0,one:1,two:2,few:3,many:4,other:5},uE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class _B{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=ps.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const s=lc(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!"),uE;if(!t.match(/-|_/))return uE;const f=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(f,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)=>cE[o]-cE[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 dE=(e,t,r,s=".",o=!0)=>{let l=RB(e,t,r);return!l&&o&&Qe(r)&&(l=V1(e,r,s),l===void 0&&(l=V1(t,r,s))),l};class fE{constructor(t={}){this.logger=ps.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:d,suffixEscaped:f,formatSeparator:p,unescapeSuffix:y,unescapePrefix:g,nestingPrefix:k,nestingPrefixEscaped:v,nestingSuffix:w,nestingSuffixEscaped:S,nestingOptionsSeparator:E,maxReplaces:R,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:MB,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?Os(l):u||"{{",this.suffix=d?Os(d):f||"}}",this.formatSeparator=p||",",this.unescapePrefix=y?"":g?Os(g):"-",this.unescapeSuffix=this.unescapePrefix?"":y?Os(y):"",this.nestingPrefix=k?Os(k):v||Os("$t("),this.nestingSuffix=w?Os(w):S||Os(")"),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,d;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=S=>{if(!S.includes(this.formatSeparator)){const T=dE(r,f,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(dE(r,f,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 y=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=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(d=0;l=S.regex.exec(t);){const E=l.index-w,R=v.find(([A,M])=>E>=A&&E<M);if(R){S.regex.lastIndex=R[1]+w;continue}const C=l[1].trim();if(u=p(C),u===void 0)if(typeof y=="function"){const A=y(t,l,o);u=Qe(A)?A:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))u="";else if(g){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),u="";else!Qe(u)&&!this.useRawValueToEscape&&(u=uh(u));const T=uh(S.safeValue(u));if(t=t.slice(0,l.index)+T+t.slice(l.index+l[0].length),g?(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,d++,d>=this.maxReplaces)break}}),t}nest(t,r,s={}){let o,l,u;const d=(g,k)=>{const v=this.nestingOptionsSeparator;if(!g.includes(v))return g;const w=g.split(new RegExp(`${Os(v)}[ ]*{`));let S=`{${w[1]}`;g=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 ${g}`,C),`${g}${v}${S}`}return u.defaultValue&&u.defaultValue.includes(this.prefix)&&delete u.defaultValue,g},f=new RegExp(this.nestingRegexp);let p="",y=0;for(;o=f.exec(t);){let g=[];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&&(g=o[1].slice(k).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),o[1]=o[1].slice(0,k)),l=r(d.call(this,o[1].trim(),u),u),l&&o[0]===t&&!Qe(l))return l;Qe(l)||(l=uh(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),l=""),g.length&&(l=g.reduce((v,w)=>this.format(v,w,s.lng,{...s,interpolationkey:o[1].trim()}),l.trim())),p+=t.slice(y,o.index)+uh(l),y=f.lastIndex,this.regexp.lastIndex=0}return y?p+t.slice(y):t}}const qB=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[d,...f]=u.split(":"),p=f.join(":").trim().replace(/^'+|'+$/g,""),y=d.trim();r[y]||(r[y]=p),p==="false"&&(r[y]=!1),p==="true"&&(r[y]=!0),isNaN(p)||(r[y]=parseInt(p,10))}})}return{formatName:t,formatOptions:r}},hE=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(lc(s),o)(r)}let d=t[u];return d||(d=e(lc(s),o),t[u]=d),d(r)}},PB=e=>(t,r,s)=>e(lc(r),s)(t);class BB{constructor(t={}){this.logger=ps.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?hE:PB;this.formats={number:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l});return d=>u.format(d)}),currency:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l,style:"currency"});return d=>u.format(d)}),datetime:s((o,l)=>{const u=new Intl.DateTimeFormat(o,{...l});return d=>u.format(d)}),relativetime:s((o,l)=>{const u=new Intl.RelativeTimeFormat(o,{...l});return d=>u.format(d,l.range||"day")}),list:s((o,l)=>{const u=new Intl.ListFormat(o,{...l});return d=>u.format(d)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=hE(r)}format(t,r,s,o={}){if(!r||t==null)return t;const l=r.split(this.formatSeparator),u=[];for(let f=0;f<l.length;f++){let p=l[f];for(;p.indexOf("(")>-1&&!p.includes(")")&&f+1<l.length;)p=`${p}${this.formatSeparator}${l[++f]}`;u.push(p)}return u.reduce((f,p)=>{const{formatName:y,formatOptions:g}=qB(p);if(this.formats[y]){let k=f;try{const v=o?.formatParams?.[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||s;k=this.formats[y](f,w,{...g,...o,...v})}catch(v){this.logger.warn(v)}return k}else this.logger.warn(`there was no format function for ${y}`);return f},t)}}const HB=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class FB extends lx{constructor(t,r,s,o={}){super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=ps.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={},d={},f={};return t.forEach(p=>{let y=!0;r.forEach(g=>{const k=`${p}|${g}`;!s.reload&&this.store.hasResourceBundle(p,g)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?u[k]===void 0&&(u[k]=!0):(this.state[k]=1,y=!1,u[k]===void 0&&(u[k]=!0),l[k]===void 0&&(l[k]=!0),f[g]===void 0&&(f[g]=!0)))}),y||(d[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(d),toLoadNamespaces:Object.keys(f)}}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 d={};this.queue.forEach(f=>{jB(f.loaded,[l],u),HB(f,t),r&&f.errors.push(r),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(p=>{d[p]||(d[p]={});const y=f.loaded[p];y.length&&y.forEach(g=>{d[p][g]===void 0&&(d[p][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(f=>!f.done)}read(t,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 d=(p,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(p&&y&&o<this.maxRetries){setTimeout(()=>{this.read(t,r,s,o+1,l*2,u)},l);return}u(p,y)},f=this.backend[s].bind(this.backend);if(f.length===2){try{const p=f(t,r);p&&typeof p.then=="function"?p.then(y=>d(null,y)).catch(d):d(null,p)}catch(p){d(p)}return}return f(t,r,d)}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,d)=>{u&&this.logger.warn(`${r}loading namespace ${l} for language ${o} failed`,u),!u&&d&&this.logger.log(`${r}loaded namespace ${l} for language ${o}`,d),this.loaded(t,u,d)})}saveMissing(t,r,s,o,l,u={},d=()=>{}){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 f={...u,isUpdate:l},p=this.backend.create.bind(this.backend);if(p.length<6)try{let y;p.length===5?y=p(t,r,s,o,f):y=p(t,r,s,o),y&&typeof y.then=="function"?y.then(g=>d(null,g)).catch(d):d(null,y)}catch(y){d(y)}else p(t,r,s,o,d,f)}!t||!t[0]||this.store.addResource(t[0],r,s,o)}}}const _y=()=>({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}),pE=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),dh=()=>{},UB=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Bu extends lx{constructor(t={},r){if(super(),this.options=pE(t),this.services={},this.logger=ps,this.modules={external:[]},UB(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=_y();this.options={...s,...this.options,...pE(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?ps.init(o(this.modules.logger),this.options):ps.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=BB;const y=new lE(this.options);this.store=new iE(this.options.resources,this.options);const g=this.services;g.logger=ps,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new _B(y,{prepend:this.options.pluralSeparator}),p&&(g.formatter=o(p),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new fE(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new FB(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(k,...v)=>{this.emit(k,...v)}),this.modules.languageDetector&&(g.languageDetector=o(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=o(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new pp(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=dh),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]=(...y)=>this.store[p](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...y)=>(this.store[p](...y),this)});const d=Eu(),f=()=>{const p=(y,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(g),r(y,g)};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?f():setTimeout(f,0),d}loadResources(t,r=dh){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=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(p=>{p!=="cimode"&&(l.includes(p)||l.push(p))})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>u(f)),this.options.preload?.forEach?.(d=>u(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(t,r,s){const o=Eu();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=dh),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"&&m4.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=Eu();this.emit("languageChanging",t);const o=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,f)=>{f?this.isLanguageChangingTo===t&&(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve((...p)=>this.t(...p)),r&&r(d,(...p)=>this.t(...p))},u=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const f=Qe(d)?d:d&&d[0],p=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Qe(d)?[d]:d);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,y=>{l(y,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=(d,f,...p)=>{let y;typeof f!="object"?y=this.options.overloadTranslationOptionHandler([d,f].concat(p)):y={...f},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs;const g=y.ns!==void 0&&y.ns!==null;y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||s||u.keyPrefix);const k={...this.options,...y};Array.isArray(l)&&!g&&(k.ns=l),typeof y.keyPrefix=="function"&&(y.keyPrefix=vi(y.keyPrefix,k));const v=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(d)?w=d.map(S=>(typeof S=="function"&&(S=vi(S,k)),`${y.keyPrefix}${v}${S}`)):(typeof d=="function"&&(d=vi(d,k)),w=y.keyPrefix?`${y.keyPrefix}${v}${d}`:d),this.t(w,y)};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,y)=>{const g=this.services.backendConnector.state[`${p}|${y}`];return g===-1||g===0||g===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:d}=this.services,f=r.lng?d.isSupportedCode(s)&&d.toResolveHierarchy(s,!1)[0]:s;return!!((!f||u(f,t))&&(!o||u(l,t)))}loadNamespaces(t,r){const s=Eu();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=Eu();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 lE(_y());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 Bu(t,r);return s.createInstance=Bu.createInstance,s}cloneInstance(t={},r=dh){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,preload:!1,...t,isClone:!0},l=new Bu(o);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(d=>{l[d]=this[d]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},s){const d=p=>{const y=Array.isArray(p)?[...p]:{...p};return Object.keys(y).forEach(g=>{y[g]&&typeof y[g]=="object"&&(y[g]=d(y[g]))}),y},f=d(this.store.data);l.store=new iE(f,o),l.services.resourceStore=l.store}if(t.interpolation){const f={..._y().interpolation,...this.options.interpolation,...t.interpolation},p={...o,interpolation:f};l.services.interpolator=new fE(p)}return l.translator=new pp(l.services,o),l.translator.on("*",(d,...f)=>{l.emit(d,...f)}),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=Bu.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 VB=(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);ji(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},xE={},Bh=(e,t,r,s)=>{ji(r)&&xE[r]||(ji(r)&&(xE[r]=new Date),VB(e,t,r,s))},b4=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},G1=(e,t,r)=>{e.loadNamespaces(t,b4(e,r))},gE=(e,t,r,s)=>{if(ji(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return G1(e,r,s);r.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,b4(e,s))},GB=(e,t,r={})=>!t.languages||!t.languages.length?(Bh(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}}),ji=e=>typeof e=="string",KB=e=>typeof e=="object"&&e!==null,WB=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,YB={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},XB=e=>YB[e],ZB=e=>e.replace(WB,XB);let QB={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ZB,transDefaultProps:void 0};const JB=()=>QB;let eH;const tH=()=>eH,k4=x.createContext();class nH{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var qy={exports:{}},Py={};var mE;function rH(){if(mE)return Py;mE=1;var e=Ap();function t(g,k){return g===k&&(g!==0||1/g===1/k)||g!==g&&k!==k}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function d(g,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,f(S)&&E({inst:S})},[g,v,k]),o(function(){return f(S)&&E({inst:S}),g(function(){f(S)&&E({inst:S})})},[g]),u(v),v}function f(g){var k=g.getSnapshot;g=g.value;try{var v=k();return!r(g,v)}catch{return!0}}function p(g,k){return k()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Py.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Py}var yE;function aH(){return yE||(yE=1,qy.exports=rH()),qy.exports}var sH=aH();const oH=(e,t)=>{if(ji(t))return t;if(KB(t)&&ji(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},iH={t:oH,ready:!1},lH=()=>()=>{},cH=(e,t={})=>{const{i18n:r}=t,{i18n:s,defaultNS:o}=x.useContext(k4)||{},l=r||s||tH();l&&!l.reportNamespaces&&(l.reportNamespaces=new nH),l||Bh(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=x.useMemo(()=>({...JB(),...l?.options?.react,...t}),[l,t]),{useSuspense:d,keyPrefix:f,bindI18n:p,bindI18nStore:y}=u,g=o||l?.options?.defaultNS,k=ji(g)?[g]:g||["translation"],v=JSON.stringify(k),w=x.useMemo(()=>k,[v]);l?.reportNamespaces?.addUsedNamespaces?.(w);const S=x.useRef(0),E=x.useCallback(q=>{if(!l)return lH;const U=()=>{S.current+=1,q()};return p&&l.on(p,U),y&&l.store.on(y,U),()=>{p&&p.split(" ").forEach(_=>l.off(_,U)),y&&y.split(" ").forEach(_=>l.store.off(_,U))}},[l,p,y]),R=x.useRef(),C=x.useCallback(()=>{if(!l)return iH;const q=!!(l.isInitialized||l.initializedStoreOnce)&&w.every(ee=>GB(ee,l,u)),U=t.lng||l.language,_=S.current,P=typeof f=="function"?vi(f,{...l.options,ns:w}):f,G=R.current;if(G&&G.i18n===l&&G.ready===q&&G.lng===U&&G.namespaces===w&&G.keyPrefix===P&&G.revision===_)return G;const X={t:l.getFixedT(U,u.nsMode==="fallback"?w:w[0],f,{scopeNs:w}),i18n:l,ready:q,lng:U,namespaces:w,keyPrefix:P,revision:_};return R.current=X,X},[l,w,f,u,t.lng]),[T,A]=x.useState(0);let{t:M,ready:L}=sH.useSyncExternalStore(E,C,C),D;l&&d&&!L&&(D=new Promise(q=>{const U=()=>q();t.lng?gE(l,t.lng,w,U):G1(l,w,U)}),{t:M,ready:L}=C()),x.useEffect(()=>{if(l&&!L&&!d){const q=()=>A(U=>U+1);t.lng?gE(l,t.lng,w,q):G1(l,w,q)}},[l,t.lng,w,L,d,T]);const j=l||{},I=x.useRef(null),z=x.useRef(),H=q=>`${q.language}|${q.resolvedLanguage}|${q.languages?.join(",")}`,F=q=>{const U=Object.getOwnPropertyDescriptors(q);U.__original&&delete U.__original;const _=Object.create(Object.getPrototypeOf(q),U);if(!Object.prototype.hasOwnProperty.call(_,"__original"))try{Object.defineProperty(_,"__original",{value:q,writable:!1,enumerable:!1,configurable:!1})}catch{}return _},B=x.useMemo(()=>{const q=j,U=q&&H(q);let _=q;q&&(I.current&&I.current.__original===q?z.current!==U?(_=F(q),I.current=_,z.current=U):_=I.current:(_=F(q),I.current=_,z.current=U));const P=!L&&!d?(...Y)=>(Bh(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."),M(...Y)):M,G=[P,_,L];return G.t=P,G.i18n=_,G.ready=L,G},[M,j,L,j.resolvedLanguage,j.language,j.languages]);if(l&&d&&!L){let q=!1;try{q=!1}catch{}throw q&&Bh(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 B};function uH({i18n:e,defaultNS:t,children:r}){const s=x.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return x.createElement(k4.Provider,{value:s},r)}const dH={"@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} 项"},fH={"@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} 項"},hH={"@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} 件選択済み"},cx=x.createContext(null);cx.displayName="ToastContext";const w0=["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(","),pH='[aria-readonly="true"]';function bE(e,t){let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(w0)&&!r.matches(pH))return!0;r=r.parentElement}return!1}function xH(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 ux({containerRef:e,interactiveRef:t,onClick:r,href:s,target:o,disabled:l=!1}){x.useEffect(()=>{const f=e.current;f&&f.setAttribute("data-pressable-container","true")},[e]);const u=x.useCallback(f=>{if(l)return;const p=e.current;if(!p||xH(p))return;const y=f.target;if(y instanceof Element&&!(y!==f.currentTarget&&bE(y,p))&&(r?.(f),!f.defaultPrevented&&(s!=null&&Bs(s)&&(o==="_blank"||f.ctrlKey||f.metaKey?window.open(s,"_blank","noopener"):t?.current?t.current.click():window.location.href=s),s==null&&r==null&&t?.current))){const g=new MouseEvent("click",{bubbles:f.bubbles,cancelable:f.cancelable,ctrlKey:f.ctrlKey,metaKey:f.metaKey,shiftKey:f.shiftKey,altKey:f.altKey,button:f.button});t.current.dispatchEvent(g),f.stopPropagation()}},[e,t,r,s,o,l]),d=x.useCallback(f=>{if(l)return;const p=e.current;if(!p)return;const y=f.target;if(!(y instanceof Element))return;f.button===1&&s!=null&&Bs(s)&&(y===f.currentTarget||!bE(y,p))&&window.open(s,"_blank","noopener")},[e,s,l]);return{onClick:u,onMouseUp:d}}const gH="data-astryx-live-region",mH="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;",yH=2e3,xp={polite:null,assertive:null};function v4(e){const t=xp[e];t!=null&&(clearTimeout(t),xp[e]=null)}const gp={polite:new Set,assertive:new Set};function bH(e){for(const t of gp[e])cancelAnimationFrame(t);gp[e].clear()}function kH(e,t){v4(e),xp[e]=setTimeout(()=>{xp[e]=null,t.textContent=""},yH)}let Ha=null;function kE(e){const t=document.createElement("div");return t.setAttribute(gH,e),t.setAttribute("aria-live",e),t.setAttribute("aria-atomic","true"),t.setAttribute("role",e==="assertive"?"alert":"status"),t.style.cssText=mH,document.body.appendChild(t),t}function vH(){return typeof document>"u"?null:Ha?(Ha.polite.isConnected||document.body.appendChild(Ha.polite),Ha.assertive.isConnected||document.body.appendChild(Ha.assertive),Ha):(Ha={polite:kE("polite"),assertive:kE("assertive")},Ha)}function wH(e,t){const r=vH();if(!r)return;const s=t==="assertive"?r.assertive:r.polite;s.textContent="";const o=requestAnimationFrame(()=>{gp[t].delete(o),s.textContent=e});gp[t].add(o),kH(t,s)}function SH(e){if(bH(e),v4(e),!Ha)return;const t=e==="assertive"?Ha.assertive:Ha.polite;t.textContent=""}function kc(){return x.useCallback((e,t="polite")=>{if(!e){SH(t);return}wH(e,t)},[])}const wi=[],K1=new Set;function w4(){for(const e of K1)e()}function EH(e){const t=wi.indexOf(e);t!==-1&&wi.splice(t,1),wi.push(e),w4()}function By(e){const t=wi.indexOf(e);t!==-1&&(wi.splice(t,1),w4())}function $H(){return wi[wi.length-1]??null}function CH(e){return K1.add(e),()=>{K1.delete(e)}}function TH(e,t){x.useEffect(()=>{const r=e.current;if(!t||r==null)return;const s=()=>{By(r)};return r.addEventListener("close",s),EH(r),()=>{r.removeEventListener("close",s),By(r)}},[e,t]),x.useLayoutEffect(()=>{const r=e.current;return()=>{r!=null&&By(r)}},[e])}const vE=8,jH=.4,wE=48,RH=1.2,AH=1.2,SE="120%",MH=.4,zH=.02;function NH(e,t){return Math.min(Math.max(e/t,0),1)}function Hy(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 LH({direction:e,enabled:t,canPauseTimer:r,isTimerPaused:s,pauseTimer:o,resumeTimer:l,dismiss:u,shouldIgnoreTarget:d}){const f=x.useRef(null),p=x.useRef(null),y=x.useCallback(C=>{const T=f.current,A=p.current;p.current=null,T&&Hy(T),C&&A?.pausedTimer&&l()},[l]),g=x.useCallback((C,T)=>{const A=f.current;if(!A||!t||p.current!=null||d(T,A))return!1;const M=r&&!s();M&&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:M,surfaceSize:L,dismissThreshold:Math.max(L*jH,wE)},!0},[r,e,t,s,o,d]),k=x.useCallback((C,T,A)=>{const M=p.current,L=f.current;if(!M||!L||C.source!==M.source||C.pointerId!==M.pointerId)return;const D=C.clientX-M.startX,j=C.clientY-M.startY,I=Math.abs(D),z=Math.abs(j);if(M.intent==="pending"){if(I>vE&&I>z){A?.(),y(!0);return}if(z<=vE||z<=I*AH)return;if(M.intent=j*M.direction>0?"vertical":"opposite",M.intent==="opposite"){A?.(),y(!0);return}L.style.setProperty("transition-duration","0s")}T();const H=Math.max(0,j*M.direction),F=NH(H,M.surfaceSize);L.style.setProperty("--_toast-swipe-y",`${H*M.direction}px`),L.style.setProperty("--_toast-swipe-opacity",(1-F*MH).toFixed(3)),L.style.setProperty("--_toast-swipe-scale",(1-F*zH).toFixed(3))},[y]),v=x.useCallback(C=>{const T=p.current,A=f.current;if(!T||!A||C.source!==T.source||C.pointerId!==T.pointerId)return;const M=Math.max(0,(C.clientY-T.startY)*T.direction),L=Math.max(1,Date.now()-T.startTime),D=T.intent==="vertical"&&(M>=T.dismissThreshold||M>=wE&&M/L>RH);if(p.current=null,A.style.removeProperty("transition-duration"),D){Hy(A),A.style.setProperty("--_toast-swipe-exit-y",T.direction===1?SE:`calc(-1 * ${SE})`),u();return}Hy(A),T.pausedTimer&&l()},[u,l]),w=x.useCallback(C=>{C.pointerType==="pen"&&(C.button==null||C.button===0)&&g({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},C.target)&&f.current?.setPointerCapture?.(C.pointerId)},[g]),S=x.useCallback(C=>{C.pointerType==="pen"&&k({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},()=>C.preventDefault(),()=>f.current?.releasePointerCapture?.(C.pointerId))},[k]),E=x.useCallback(C=>{C.pointerType==="pen"&&(f.current?.releasePointerCapture?.(C.pointerId),v({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY}))},[v]),R=x.useCallback(C=>{C.pointerType==="pen"&&p.current?.source==="pen"&&p.current?.pointerId===C.pointerId&&y(!0)},[y]);return x.useEffect(()=>{const C=f.current;if(!C||!t)return;const T=I=>({source:"touch",pointerId:I.identifier,clientX:I.clientX,clientY:I.clientY}),A=I=>{const z=p.current,H=z?.source==="touch"?z.pointerId:null;return H==null?void 0:[...I.changedTouches].find(F=>F.identifier===H)},M=I=>{if(I.touches?.length!==1){y(!0);return}const z=I.changedTouches[0];z!=null&&g(T(z),I.target)},L=I=>{if(I.touches?.length!==1){y(!0);return}const z=A(I);z&&k(T(z),()=>{I.cancelable&&I.preventDefault()})},D=I=>{if(I.touches.length>0){y(!0);return}const z=A(I);z?v(T(z)):I.touches.length===0&&y(!0)},j=()=>y(!0);return C.addEventListener("touchstart",M,{passive:!0}),C.addEventListener("touchmove",L,{passive:!1}),C.addEventListener("touchend",D,{passive:!0}),C.addEventListener("touchcancel",j,{passive:!0}),()=>{C.removeEventListener("touchstart",M),C.removeEventListener("touchmove",L),C.removeEventListener("touchend",D),C.removeEventListener("touchcancel",j)}},[g,t,v,k,y]),{rootRef:f,bindings:{onPointerDown:w,onPointerMove:S,onPointerUp:E,onPointerCancel:R,onLostPointerCapture:R}}}const DH=`${w0},[tabindex],[contenteditable]:not([contenteditable="false"])`;function OH(e,t){if(!(e instanceof Element))return!1;let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(DH))return!0;r=r.parentElement}return!1}function S4({type:e,body:t,endContent:r,isAutoHide:s,autoHideDuration:o,isExiting:l=!1,onDismiss:u,renderContent:d,gestureDirection:f}){const p=zt(),y=x.useRef(null),g=x.useRef(!1),k=x.useRef(o),v=x.useRef(null),w=x.useRef(u);w.current=u;const S=x.useCallback(()=>{!s||g.current||(y.current&&clearTimeout(y.current),v.current=Date.now(),y.current=setTimeout(()=>{w.current("auto")},k.current))},[s]),E=x.useCallback(()=>{if(!(!s||g.current)&&(g.current=!0,y.current&&(clearTimeout(y.current),y.current=null),v.current!=null)){const z=Date.now()-v.current;k.current=Math.max(k.current-z,1e3)}},[s]),R=x.useCallback(()=>{!s||!g.current||(g.current=!1,S())},[s,S]);x.useEffect(()=>(k.current=o,S(),()=>{y.current&&clearTimeout(y.current)}),[o,S]),x.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=x.useCallback(()=>g.current,[]),T=x.useCallback(()=>{w.current("manual")},[]),{rootRef:A,bindings:M}=LH({direction:f,enabled:!l,canPauseTimer:s,isTimerPaused:C,pauseTimer:E,resumeTimer:R,dismiss:T,shouldIgnoreTarget:OH}),L=x.useCallback(()=>{u("manual")},[u]),D=e==="error",{mode:j}=ex(),I=D||j==="light"?"dark":"light";return m.jsx("div",{ref:A,role:D?"alert":"status","aria-live":D?"assertive":"polite","aria-atomic":"true",onMouseEnter:E,onMouseLeave:R,onFocusCapture:E,onBlurCapture:R,...M,...ye(he("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:m.jsx(ej,{mode:"auto",fallback:I,children:d?d({body:t,endContent:r,type:e,isAutoHide:s,autoHideDuration:o,dismiss:L}):m.jsxs("div",{className:"x78zum5 x1cy8zhl xozqiw3 xjcht0a xh8yej3",children:[m.jsx("div",{className:"x98rzlu xeuugli xj0a0fe",children:t}),m.jsxs("div",{className:"x2lah0s x78zum5 x6s0dn4 x1txdalj x1q370uo xmequkd",children:[r,m.jsx(jt,{variant:"ghost",size:"sm",icon:m.jsx(ft,{icon:"close",size:"sm",color:"inherit"}),label:p("@astryx.toast.dismiss"),onClick:L,isIconOnly:!0})]})]})})})}S4.displayName="ToastSurface";const Al={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 W1(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(W1).filter(Boolean).join(" ");if(x.isValidElement(e)){const{children:t}=e.props;return W1(t)}return""}const IH=e=>t=>{if(!t.has(e))return t;const r=new Set(t);return r.delete(e),r};function E4({entry:e,isExiting:t,isReversed:r,onExited:s,onDismiss:o}){const l=e.options,u=l.type??"info",d=l.isAutoHide??u!=="error",f=l.autoHideDuration??5e3,[p,y]=x.useState(!1);return m.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:g=>{if(g.target===g.currentTarget&&g.propertyName==="grid-template-rows"){if(t){s(e.id);return}y(!0)}},children:m.jsx("div",{...{0:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j xb3r6kr"},1:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j x1rea2x4"}}[!!(p&&!t)<<0],children:m.jsx(S4,{type:u,body:l.body,endContent:l.endContent,isAutoHide:d,autoHideDuration:f,isExiting:t,gestureDirection:r?-1:1,onDismiss:g=>o(e.id,g),renderContent:l.renderContent})})})}E4.displayName="ToastRow";function $4({position:e="bottomEnd",maxVisible:t=5,inset:r,layerInset:s,isTopLayer:o=!0,children:l}){const u=zt(),[d,f]=x.useState([]),[p,y]=x.useState(new Set),g=x.useRef(d);g.current=d;const k=x.useRef(null),v=x.useRef(new Set),w=x.useRef(null),S=x.useRef(null),E=x.useRef(null),R=x.useCallback(P=>{if(!P)return null;const G=P.querySelectorAll(w0);for(const Y of G)if(!(Y.getAttribute("tabindex")==="-1"||Y.hasAttribute("disabled")||Y.getAttribute("aria-disabled")==="true"))return Y;return null},[]),C=kc(),T=x.useCallback(P=>{const{uniqueID:G,collisionBehavior:Y="overwrite"}=P.options;if(G&&Y==="ignore"&&g.current.some(ee=>ee.options.uniqueID===G))return;const X=W1(P.options.body);X&&C(X,P.options.type==="error"?"assertive":"polite"),f(ee=>G&&ee.find(oe=>oe.options.uniqueID===G)?ee.map(oe=>oe.options.uniqueID===G?P:oe):[...ee,P])},[C]),A=x.useCallback((P,G)=>{if(v.current.has(P))return;v.current.add(P);const Y=g.current.find(oe=>oe.id===P);Y&&Y.options.onHide?.(G);const X=k.current,ee=document.activeElement,Q=X?.querySelector(`[data-toast-id="${P}"]`)??null;if(Q&&ee instanceof Node&&Q.contains(ee))if(S.current=P,g.current.filter(O=>O.id!==P).length>0){const O=g.current.findIndex(de=>de.id===P),Z=g.current[O+1]??g.current[O-1];E.current=Z?Z.id:"restore"}else E.current="restore";y(oe=>oe.has(P)?oe:new Set(oe).add(P))},[]),M=x.useCallback(P=>{v.current.delete(P),y(IH(P)),f(G=>G.filter(Y=>Y.id!==P))},[]);x.useLayoutEffect(()=>{const P=S.current,G=E.current;if(P==null||G==null||d.some(ee=>ee.id===P))return;S.current=null,E.current=null;const Y=k.current;if(G!=="restore"&&Y){const ee=Y.querySelector(`[data-toast-id="${G}"]`),Q=R(ee)??ee;if(Q){Q.focus();return}}const X=w.current;w.current=null,X&&X.isConnected?X.focus():Y&&Y.focus()},[d,R]);const L=x.useCallback(P=>g.current.find(G=>G.options.uniqueID===P),[]),D=x.useMemo(()=>({addToast:T,removeToast:A,findByUniqueID:L}),[T,A,L]),j=d.slice(-t),I={...kC(s)};r?.top&&(I.top=r.top),r?.bottom&&(I.bottom=r.bottom),r?.start&&(I.insetInlineStart=r.start),r?.end&&(I.insetInlineEnd=r.end);const z=x.useRef(null),[H,F]=x.useState(null);x.useLayoutEffect(()=>{if(!o)return;const P=document.createElement("div");return P.style.display="contents",F(P),()=>{P.remove(),F(null)}},[o]),x.useLayoutEffect(()=>{if(!o||H==null)return;const P=()=>{const G=$H()??z.current;if(G==null)return;if(H.parentNode!==G){const ee=document.activeElement,Q=ee instanceof HTMLElement&&H.contains(ee);G.appendChild(H),Q&&ee.focus({preventScroll:!0})}const Y=k.current;if(Y==null||typeof Y.showPopover!="function")return;let X=!1;try{X=Y.matches(":popover-open")}catch{}if(!X)try{Y.showPopover()}catch{}};return P(),CH(P)},[o,H]);const B=d.length>0;x.useEffect(()=>{if(!B)return;const P=G=>{if(G.key!=="F6")return;const Y=k.current;if(!Y)return;const X=document.activeElement;if(X instanceof Node&&Y.contains(X))return;G.preventDefault(),X instanceof HTMLElement&&(w.current=X);const ee=Y.querySelectorAll("[data-toast-id]"),Q=ee[ee.length-1]??null;(R(Q)??Q??Y).focus()};return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[B,R]);const q=e==="topEnd"?Al.topEnd:e==="topStart"?Al.topStart:e==="bottomStart"?Al.bottomStart:Al.bottomEnd,U=e==="topEnd"||e==="topStart",_=m.jsx("div",{ref:k,role:B?"region":void 0,"aria-label":B?u("@astryx.toast.viewport"):void 0,tabIndex:B?-1:void 0,popover:o?"manual":void 0,...ye(fe(rc.reset,ac.reset,Al.viewport,Al.viewportInlineSpan,q),{style:Object.keys(I).length>0?I:void 0}),children:m.jsx(nc,{children:j.map(P=>m.jsx(E4,{entry:P,isExiting:p.has(P.id),isReversed:U,onExited:M,onDismiss:A},P.id))})});return m.jsxs(cx,{value:D,children:[l,o?m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:z,className:"xjp7ctv"}),H!=null?Ks.createPortal(_,H):null]}):_]})}$4.displayName="ToastViewport";let ea=null,EE=null;const $E=["data-theme",Dr("theme")];function _H(e){const t=()=>{let s=null;for(const o of $E){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:[...$E]})}function qH(){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>.");Hp();const e=document.createElement("div");e.setAttribute("data-astryx-toast-fallback",""),document.body.appendChild(e),_H(e);let t;const r=new Promise(u=>{t=u}),s=()=>{const u=x.use(cx),d=x.useRef(!1);return x.useEffect(()=>{u&&!d.current&&(d.current=!0,ea=u,t?.(u))},[u]),null};EE=c3.createRoot(e),EE.render(m.jsx($4,{children:m.jsx(s,{})}));const o=[],l={addToast:u=>{ea&&ea!==l?ea.addToast(u):(o.push(u),r.then(d=>{for(const f of o)d.addToast(f);o.length=0}))},removeToast:(u,d)=>{ea&&ea!==l&&ea.removeToast(u,d)},findByUniqueID:u=>{if(ea&&ea!==l)return ea.findByUniqueID(u)}};return ea=l,l}let PH=0;function BH(){return`astryx-toast-${++PH}`}function HH(){const e=x.use(cx);return x.useCallback(r=>{const s=e??qH(),o=BH(),l={id:o,options:r,createdAt:Date.now()};return s.addToast(l),()=>s.removeToast(o,"manual")},[e])}class Y1 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 FH(r);if(!r.ok)throw S0(s,r.status);return s}function S0(e,t){return new Y1(VH(e)??(t===void 0?"The request failed":`Request failed with HTTP ${t}`),UH(e))}async function FH(e){try{return await e.json()}catch{return null}}function UH(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 VH(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 C4(e){const t=e instanceof Y1?e:new Y1(e instanceof Error?e.message:"The request failed");return{ok:!1,error:{code:t.code??"REQUEST_FAILED",message:t.message}}}function Io(){const e=HH();return x.useCallback(t=>e({...t,isAutoHide:!0,autoHideDuration:2500}),[e])}const T4=new JM({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),Ri={current:()=>["settings","current"]};function E0(){return j4()}function Xa(){return T4.query({queryKey:Ri.current(),queryFn:j4})}async function GH(){return(await Xa()).configFolder}async function KH(){await Hn("/api/settings/config-folder/open",{method:"POST"})}function WH(e){return wd({theme:e})}function YH(e){return wd({language:e})}function XH(e){return wd({timeFormat:e})}function ZH(e){return wd({timezone:e})}function QH(e){const t=e.captures;return wd({captures:t?{fetcher:t.fetcher,maxAttempts:t.maxAttempts,scrapeConcurrency:t.scrapeConcurrency,...t.firecrawl.apiKey&&{firecrawlApiKey:t.firecrawl.apiKey},...t.deepseek.apiKey&&{deepseekApiKey:t.deepseek.apiKey}}:void 0})}async function j4(){const e=await Hn("/api/settings");return R4(e)}async function wd(e){const t=await Hn("/api/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return R4(t)}function R4(e){const t=e.features,r=t.library.captures;return{workspace:e.workspace,features:{...t,library:{...t.library,captures:{...r,firecrawl:{apiKey:""},deepseek:{apiKey:""}}}},configFolder:typeof e.configFolder=="string"?e.configFolder:""}}const $0={"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.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.languageRegion":"Language & region","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.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."},A4={...$0,"navigation.overview":"概览","navigation.captures":"收藏","navigation.captureDetails":"收藏详情","navigation.captureDetailsDescription":"阅读最近一次成功抓取的页面内容。","navigation.library":"资料库","navigation.prompts":"提示词","navigation.providers":"服务提供商","navigation.settings":"设置","navigation.main":"主要功能","navigation.account":"账户","navigation.back":"返回","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.languageRegion":"语言和地区","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":"试试搜索主题、语言或会话。","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":"数据传输未能完成。"},JH={...A4,"navigation.overview":"總覽","navigation.captures":"收藏","navigation.captureDetails":"收藏詳情","navigation.captureDetailsDescription":"閱讀最近一次成功抓取的頁面內容。","navigation.library":"資料庫","navigation.prompts":"提示詞","navigation.providers":"服務提供者","navigation.settings":"設定","navigation.main":"主要功能","navigation.account":"帳戶","navigation.back":"返回","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.languageRegion":"語言與地區","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":"試著搜尋主題、語言或工作階段。","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":"資料傳輸未能完成。"},eF={...$0,"navigation.overview":"概要","navigation.captures":"キャプチャ","navigation.library":"ライブラリ","navigation.prompts":"プロンプト","navigation.providers":"プロバイダー","navigation.settings":"設定","navigation.main":"メイン","navigation.account":"アカウント","navigation.back":"戻る","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.languageRegion":"言語と地域","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":"テーマ、言語、セッションを検索してみてください。","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":"データ転送を完了できませんでした。"},tF={"en-US":$0,"zh-CN":A4,"zh-TW":JH,"ja-JP":eF};function nF(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 nd(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 X1(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 cn(){const{t:e}=cH(),t=Bn.language||"en-US",r=x.useCallback(s=>e(s),[e]);return x.useMemo(()=>({locale:t,language:t,t:r}),[t,r])}const rF=Object.fromEntries(Object.entries(tF).map(([e,t])=>[e,{translation:t}]));Bn.isInitialized||Bn.init({resources:rF,lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});function aF({children:e}){const r=ms({queryKey:Ri.current(),queryFn:E0}).data?.workspace["language-region"].language??"system",s=x.useMemo(()=>nF(r),[r]);return x.useEffect(()=>{Bn.changeLanguage(s)},[s]),m.jsx(QC,{locale:s,messages:{"zh-CN":dH,"zh-TW":fH,"ja-JP":hH},children:m.jsx(uH,{i18n:Bn,children:e})})}const CE=1,M4="capture.job.changed",z4="captures.changed",sF="data-transfer.status.changed",oF="data-transfer.imported",iF="providers.changed",lF="settings.changed";function cF(e){let t;try{t=JSON.parse(e)}catch{return null}return!uF(t)||t.version!==CE||typeof t.id!="string"||typeof t.type!="string"||typeof t.occurredAt!="string"||!("data"in t)?null:{version:CE,id:t.id,type:t.type,occurredAt:t.occurredAt,data:t.data}}function uF(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const C0=x.createContext(null);C0.displayName="FoundryEventsContext";function dF({children:e}){const[t,r]=x.useState("connecting"),s=x.useRef(new Set),o=x.useCallback(l=>(s.current.add(l),()=>{s.current.delete(l)}),[]);return x.useEffect(()=>{const l=new EventSource("/api/events"),u=()=>{r("open")},d=()=>{r("connecting")},f=p=>{const y=cF(p.data);if(y)for(const g of s.current)g(y)};return l.addEventListener("open",u),l.addEventListener("error",d),l.addEventListener("foundry",f),()=>{l.removeEventListener("open",u),l.removeEventListener("error",d),l.removeEventListener("foundry",f),l.close()}},[]),m.jsx(C0,{value:{status:t,subscribe:o},children:e})}function dx(){const e=x.use(C0);if(!e)throw new Error("useFoundryEvents must be used within FoundryEventsProvider");return e}function fF(){const{t:e}=cn();return m.jsx(We,{gap:5,children:m.jsxs(We,{gap:2,children:[m.jsx(Oo,{level:1,children:e("overview.title")}),m.jsx(Je,{type:"supporting",children:e("overview.description")})]})})}function hF(){const{t:e}=cn();return m.jsx(We,{gap:2,children:m.jsx(Je,{type:"supporting",children:e("prompts.description")})})}const TE={horizontal:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",$$css:!0},vertical:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kZKoxP:"x5yr21d",$$css:!0}},Ml={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}},jE={horizontal:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",$$css:!0},vertical:{keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",kZKoxP:"x12qplqi",$$css:!0}};function Ai({orientation:e="horizontal",label:t,variant:r="subtle",isFullBleed:s=!1,xstyle:o,className:l,style:u,ref:d,"aria-label":f,"aria-labelledby":p,...y}){const g=e==="horizontal",k=x.useId(),v=p??(t&&f==null?k:void 0);return m.jsxs("div",{ref:d,...y,role:"separator","aria-orientation":e,"aria-label":f,"aria-labelledby":v,...ye(he("divider",{variant:r,orientation:e}),fe(g?TE.horizontal:TE.vertical,s&&(g?jE.horizontal:jE.vertical),o),l,u),children:[m.jsx("div",{...fe(g?Ml.horizontalLine:Ml.verticalLine,Ml[r])}),t&&m.jsx("div",{id:k,...{0:{className:"x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4"},1:{className:"x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82"}}[!g<<0],children:t}),t&&m.jsx("div",{...fe(g?Ml.horizontalLine:Ml.verticalLine,Ml[r])})]})}Ai.displayName="Divider";const pF=2e3;function N4(e={}){const{announce:t,resetAfterMs:r=pF}=e,s=kc(),[o,l]=x.useState(!1),u=x.useRef(null);return x.useEffect(()=>()=>{u.current!=null&&clearTimeout(u.current)},[]),{copy:x.useCallback(async f=>{try{return await navigator.clipboard.writeText(f),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 xF(){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 gF(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!L4(e)&&e.key!==" "}function L4(e){return e.isComposing===!0?!0:e.nativeEvent?.isComposing===!0}function T0(e){const{getItemLabels:t,onMatch:r,getCurrentIndex:s,resetMs:o=750,isDisabled:l}=e,u=x.useRef(""),d=x.useRef(void 0),f=x.useCallback(()=>{u.current="",d.current&&(clearTimeout(d.current),d.current=void 0)},[]),p=x.useCallback(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{u.current="",d.current=void 0},o)},[o]);return{onKeyDown:x.useCallback(g=>{const k=g.key===" "&&!g.ctrlKey&&!g.metaKey&&!L4(g)&&u.current.length>0;if(!gF(g)&&!k)return!1;const v=t();if(v.length===0)return!1;const w=g.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,M=T&&E.length===1?1:0;for(let L=0;L<C;L++){const D=(A+M+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:f}}const mF=300,RE={phase:"idle"},Lo={type:"none"};function zo(e){return{gesture:{phase:"idle"},effect:e}}function j0(e){return e==null?{type:"clear"}:{type:"highlight",row:e}}function D4(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 yF(e,t){switch(e.phase){case"idle":return bF(e,t);case"triggerPress":return kF(e,t);case"open":return vF(e,t);case"tracking":return wF(e,t)}}function bF(e,t){return t.type!=="down"?{gesture:e,effect:Lo}:t.target==="menu"?{gesture:{phase:"tracking",pointerType:t.pointerType,origin:"menu",row:t.row},effect:j0(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:Lo}}function kF(e,t){switch(t.type){case"opened":return{gesture:{phase:"open",pointerType:e.pointerType,openedAt:t.time},effect:Lo};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:Lo}}}function vF(e,t){switch(t.type){case"move":return t.isInMenu?{gesture:{phase:"tracking",pointerType:e.pointerType,origin:"trigger",row:t.row},effect:j0(t.row)}:{gesture:e,effect:Lo};case"up":return t.time-e.openedAt>=mF?D4(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:Lo}}}function wF(e,t){switch(t.type){case"move":return t.row===e.row?{gesture:e,effect:Lo}:{gesture:{...e,row:t.row},effect:j0(t.row)};case"up":return D4(e.pointerType,t);case"cancel":return zo({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Lo}}}const SF=500,EF=10;function O4(e){const{onLongPress:t,disabled:r=!1,delayMs:s=SF,moveCancelPx:o=EF}=e,l=x.useRef(null),u=x.useRef(null),d=x.useRef(t);d.current=t;const f=x.useCallback(()=>{l.current!=null&&(clearTimeout(l.current),l.current=null),u.current=null},[]),p=x.useCallback(v=>{r||(f(),u.current={x:v.x,y:v.y},l.current=setTimeout(()=>{const w=u.current;w!=null&&d.current({x:w.x,y:w.y})},s))},[r,s,f]),y=x.useCallback(v=>{const w=u.current;return w==null?!1:Math.abs(v.x-w.x)>o||Math.abs(v.y-w.y)>o?(f(),!1):!0},[o,f]),g=x.useCallback(v=>{if(r)return;if(v.touches.length!==1){f();return}const w=v.touches[0];p({x:w.clientX,y:w.clientY})},[r,f,p]),k=x.useCallback(v=>{if(u.current==null)return;if(v.touches.length!==1){f();return}const w=v.touches[0];y({x:w.clientX,y:w.clientY})},[f,y]);return x.useEffect(()=>f,[f]),{onTouchStart:g,onTouchMove:k,onTouchEnd:f,onTouchCancel:f,start:p,moveTo:y,cancel:f}}const I4="data-astryx-menu-press",_4=`[${I4}]`,$F=400,CF=500,AE=24,TF=6,jF=16,RF="[tabindex], a[href], button, input, select, textarea, [contenteditable]",AF="a[href], button, [tabindex]";let mp=!1;function MF(){return mp}let Sr=null;function Lu(){Sr!=null&&(Sr.isArmed=!1,Sr.timer!=null&&(clearTimeout(Sr.timer),Sr.timer=null))}function ME(e){Sr==null||!Sr.isArmed||e.detail===0||mp||(e.preventDefault(),e.stopImmediatePropagation(),Lu())}function zE(e){const t=e.defaultView;t!=null&&((Sr==null||Sr.doc!==e)&&(Sr!=null&&(Sr.doc.defaultView?.removeEventListener("click",ME,!0),Sr.doc.removeEventListener("pointerdown",Lu,!0)),t.addEventListener("click",ME,!0),e.addEventListener("pointerdown",Lu,!0),Sr={doc:e,isArmed:!1,timer:null}),Lu(),Sr.isArmed=!0,Sr.timer=setTimeout(Lu,$F))}function NE(e){return e==="mouse"||e==="touch"||e==="pen"?e:null}function zF(e){return e.matches(RF)}function NF(e){let t=e;for(;;){const r=t.parentElement?.closest(_4);if(r==null)return t;t=r}}function fx(e){const t=x.useRef(e);t.current=e;const r=x.useRef(RE),s=x.useRef(null),o=x.useRef(null),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=x.useRef(null),y=x.useRef(null),g=x.useCallback(()=>t.current.menuRef.current?.ownerDocument??t.current.triggerRef?.current?.ownerDocument??document,[]),k=x.useCallback(B=>{const{menuRef:q,triggerRef:U,itemSelector:_,hitTest:P}=t.current,G=q.current,Y=g();let X;P!=null?X=P(B.clientX,B.clientY):typeof Y.elementFromPoint=="function"?X=Y.elementFromPoint(B.clientX,B.clientY):X=B.target instanceof Element?B.target:null;const ee=G==null?null:NF(G),Q=ee!=null&&X!=null&&ee.contains(X),oe=U?.current??null,O=oe!=null&&X!=null&&oe.contains(X);let Z=null;return Q&&X!=null&&(Z=X.closest(_),Z!=null&&!ee.contains(Z)&&(Z=null)),{row:Z,isInMenu:Q,isOnTrigger:O}},[g]),v=x.useCallback(()=>{d.current!=null&&(clearInterval(d.current.timer),d.current=null)},[]),w=x.useCallback(()=>{l.current?.cancel(),u.current?.(),u.current=null,v(),o.current?.(),o.current=null,s.current=null,f.current=null,r.current=RE},[v]),S=x.useCallback(B=>{const{onHighlight:q,menuRef:U}=t.current;if(q!=null){q(B);return}const _=B==null?U.current:zF(B)?B:B.querySelector(AF);_!=null&&_!==g().activeElement&&_.focus({preventScroll:!0})},[g]),E=x.useCallback((B,q)=>{const{onActivate:U}=t.current;mp=!0;try{if(U!=null){U(B,q);return}B.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:0,button:q.button,clientX:q.clientX,clientY:q.clientY,screenX:q.screenX,screenY:q.screenY,ctrlKey:q.ctrlKey,shiftKey:q.shiftKey,altKey:q.altKey,metaKey:q.metaKey}))}finally{mp=!1}},[]),R=x.useRef(()=>{}),C=x.useCallback((B,q,U)=>{const _=g();switch(B.type){case"none":return;case"open":{const P=q.phase==="open"?q.pointerType:"mouse";p.current=mi(),(t.current.onTriggerPress?.(P)??!1)||w();return}case"highlight":S(B.row);return;case"clear":S(null);return;case"act":{w(),zE(_),U!=null&&E(B.row,U);return}case"settle":{w(),B.stray&&zE(_),B.dismiss&&t.current.onDismiss?.();return}}},[E,w,g,S]),T=x.useCallback((B,q)=>{const U=yF(r.current,B);r.current=U.gesture,C(U.effect,U.gesture,q)},[C]);R.current=T;const A=x.useCallback(()=>{const{getScroller:B,menuRef:q}=t.current;if(B!=null)return B();const U=q.current;return U==null?null:U.scrollHeight>U.clientHeight+1?U:null},[]),M=x.useCallback(B=>{if(r.current.phase!=="tracking"){v();return}const q=A();if(q==null){v();return}const U=q.getBoundingClientRect();if(U.height<=0){v();return}let _=0;if(B.clientY<=U.top+AE?_=-1:B.clientY>=U.bottom-AE&&(_=1),_===0){v();return}if(d.current?.direction===_)return;v();const P=()=>{const G=q.scrollTop;if(q.scrollTop=G+_*TF,q.scrollTop===G){v();return}const Y=f.current;if(Y!=null){const X=k(Y);R.current({type:"move",row:X.row,isInMenu:X.isInMenu,time:Date.now()},Y)}};d.current={direction:_,timer:setInterval(P,jF)},P()},[A,k,v]),L=x.useCallback(B=>{o.current?.();const q=g(),U=q.defaultView;s.current=B;const _=ee=>{if(ee.pointerId!==s.current)return;if(f.current=ee,r.current.phase==="triggerPress"){l.current?.moveTo({x:ee.clientX,y:ee.clientY})===!1&&R.current({type:"cancel"});return}const oe=k(ee);R.current({type:"move",row:oe.row,isInMenu:oe.isInMenu,time:Date.now()},ee),M(ee)},P=ee=>{if(ee.pointerId!==s.current)return;const Q=k(ee);R.current({type:"up",row:Q.row,isInMenu:Q.isInMenu,isOnTrigger:Q.isOnTrigger,time:Date.now()},ee)},G=ee=>{ee.pointerId===s.current&&R.current({type:"cancel"})},Y=ee=>{ee.pointerId!==s.current&&(y.current=ee.pointerId,R.current({type:"cancel"}))},X=()=>{R.current({type:"cancel"})};q.addEventListener("pointermove",_,!0),q.addEventListener("pointerup",P,!0),q.addEventListener("pointercancel",G,!0),q.addEventListener("pointerdown",Y,!0),U?.addEventListener("blur",X),o.current=()=>{q.removeEventListener("pointermove",_,!0),q.removeEventListener("pointerup",P,!0),q.removeEventListener("pointercancel",G,!0),q.removeEventListener("pointerdown",Y,!0),U?.removeEventListener("blur",X)}},[g,k,M]),D=x.useCallback(()=>{const B=r.current;if(B.phase!=="triggerPress")return;if(p.current=mi(),!(t.current.onTriggerPress?.(B.pointerType)??!1)){T({type:"cancel"});return}const U=g(),_=P=>{P.cancelable&&P.preventDefault()};U.addEventListener("touchmove",_,{passive:!1,capture:!0}),u.current=()=>{U.removeEventListener("touchmove",_,!0)},T({type:"opened",time:Date.now()})},[g,T]);l.current=O4({onLongPress:D,delayMs:e.longPressDelayMs??CF});const j=x.useCallback(B=>{const{menuRef:q,isEnabled:U=!0}=t.current,_=q.current;if(!U||_==null)return;if(B.pointerId===y.current){y.current=null;return}if(r.current.phase!=="idle"){T({type:"cancel"});return}const P=NE(B.pointerType);if(P==null||P==="mouse"&&B.button!==0||B.target?.closest(_4)!==_)return;P!=="mouse"&&B.preventDefault();const Y=B.nativeEvent;L(Y.pointerId),f.current=Y;const X=k(Y);T({type:"down",target:"menu",pointerType:P,row:X.row,time:Date.now()},Y)},[L,k,T]),I=x.useCallback(B=>{const{isEnabled:q=!0}=t.current;if(B.pointerId===y.current){y.current=null;return}if(!q||r.current.phase!=="idle")return;const U=NE(B.pointerType);if(U==null||B.button!==0||U==="mouse"&&B.ctrlKey)return;const _=B.nativeEvent;L(_.pointerId),f.current=_,U!=="mouse"&&l.current?.start({x:_.clientX,y:_.clientY}),T({type:"down",target:"trigger",pointerType:U,row:null,time:Date.now()},_)},[L,T]),z=x.useCallback(B=>{const q=r.current;q.phase!=="idle"&&q.pointerType!=="mouse"&&B.preventDefault()},[]),H=x.useCallback(()=>p.current!=null&&p.current===mi(),[]),F=x.useCallback(()=>{r.current.phase!=="idle"&&T({type:"cancel"}),w()},[w,T]);return x.useEffect(()=>(mi(),()=>{w()}),[w]),x.useMemo(()=>({menuProps:{onPointerDown:j,[I4]:""},triggerProps:{onPointerDown:I,onContextMenu:z},isTriggerClickFromPress:H,cancel:F}),[j,I,z,H,F])}const LF={wrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kmuXW:"x2lah0s",$$css:!0}},DF=new Map([["ctrl","⌃"],["alt","⌥"],["shift","⇧"],["enter","↵"],["backspace","⌫"],["escape","Esc"],["tab","⇥"],["up","↑"],["down","↓"],["left","←"],["right","→"],["plus","+"]]),OF=new Map([["esc","escape"],["return","enter"]]);function IF(e,t){return e==="mod"?t?"⌘":"Ctrl":DF.get(e)??e.toUpperCase()}const _F=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 qF(e,t){return e==="mod"?t?"Command":"Control":_F.get(e)??e.toUpperCase()}function PF(){return()=>{}}function BF(){return!1}function yp({keys:e,ref:t,xstyle:r,className:s,style:o,...l}){const u=x.useSyncExternalStore(PF,xF,BF),d=new Map,f=e.split("+").map(y=>y.trim().toLowerCase()).map(y=>{const g=d.get(y)??0;return d.set(y,g+1),{key:OF.get(y)??y,reactKey:`${y}:${g}`}}),p=f.map(({key:y})=>qF(y,u)).join(" + ");return m.jsx("span",{...l,ref:t,role:"img","aria-label":p,...ye(he("kbd"),fe(LF.wrapper,r),s,o),children:f.map(({key:y,reactKey:g})=>m.jsx("kbd",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle x1tgivj0 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o",children:IF(y,u)},g))})}yp.displayName="Kbd";const HF=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),FF={horizontal:["left","right"],vertical:["up","down"],both:["left","right","up","down"]},UF={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 VF(e={}){const{orientation:t="horizontal",dismissAfterMs:r=3e3,isEnabled:s=!0}=e,o=zt(),l=x.useRef(null),u=x.useRef(!1),d=x.useRef(!1),f=x.useRef(()=>{}),p=x.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]),y=x.useCallback(()=>{d.current=!0},[]),g=x.useCallback(()=>{d.current=!1,p(),f.current(null)},[p]),k=xd({mode:"context",onShow:y,onHide:g});f.current=k.ref;const v=x.useCallback(()=>{u.current=!0,p(),k.hide(),d.current=!1,f.current(null)},[p,k]),w=x.useCallback(A=>{u.current||!s||(f.current(A),k.show(),p(),l.current=setTimeout(()=>{v()},r))},[p,v,r,s,k]);x.useEffect(()=>()=>{p(),f.current(null)},[p]);const S=x.useCallback(A=>{if(u.current||!s)return;const M=A.target;if(!M.matches(":focus-visible"))return;const L=A.currentTarget;A.relatedTarget instanceof Node&&L.contains(A.relatedTarget)||w(M)},[w,s]),E=x.useCallback(A=>{if(!d.current)return;const M=A.currentTarget;if(A.relatedTarget instanceof Node&&M.contains(A.relatedTarget)){!u.current&&A.relatedTarget instanceof HTMLElement&&f.current(A.relatedTarget);return}v()},[v]),R=x.useCallback(A=>{d.current&&HF.has(A.key)&&v()},[v]),C=m.jsx("span",{className:"x3nfvp2 x6s0dn4 xzye2dw",children:FF[t].map(A=>m.jsx(yp,{keys:A},A))});return{hintElement:k.render(m.jsxs("span",{"aria-hidden":"true",children:[C,m.jsx("span",{className:"x11g1kdw",children:o("@astryx.keyboardHint.toNavigate")})]}),{placement:"below",alignment:"start",xstyle:UF.hint,style:{marginBlockStart:Wn["--spacing-2"]}}),onFocus:S,onBlur:E,onKeyDown:R}}const R0=new WeakMap;function LE(e,t){R0.set(e,t)}function GF(e){R0.delete(e)}function KF(e){return R0.get(e)}const WF=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 DE(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 YF(e,t){const r=t.querySelectorAll(up);let s=t.matches(up)&&DE(t)?t:null;for(const l of r)if(!(s!=null&&l.tabIndex<=0)&&DE(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&&!WF.has(l)||o===s&&l!=null&&l!==""&&!u||o.hasAttribute("aria-activedescendant")||o.isContentEditable||o.matches('[contenteditable]:not([contenteditable="false"])')||KF(o)!=null)return null;const d=getComputedStyle(o);if(/^(auto|scroll|overlay)$/.test(d.overflowX)&&o.scrollWidth>o.clientWidth+1||/^(auto|scroll|overlay)$/.test(d.overflowY)&&o.scrollHeight>o.clientHeight+1)return null;o=o.parentElement}return o===e?s:null}function XF(e,t){const r=e.ownerDocument,s=r.defaultView;if(s==null)return()=>{};let o=null,l=null,u=null,d,f;const p=()=>{o=null,l=null,s.clearTimeout(d),f?.(),f=void 0},y=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,f=()=>{e.getAttribute("tabindex")==="-1"&&(v==null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",v))}}d=s.setTimeout(p,0)}},g=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=YF(e,t);S!=null&&(u=S,S.focus(),r.activeElement!==S&&(u=null))};return r.addEventListener("keydown",y,!0),r.addEventListener("keyup",p,!0),r.addEventListener("pointerdown",p,!0),r.addEventListener("focusin",g,!0),s.addEventListener("blur",p),()=>{p(),r.removeEventListener("keydown",y,!0),r.removeEventListener("keyup",p,!0),r.removeEventListener("pointerdown",p,!0),r.removeEventListener("focusin",g,!0),s.removeEventListener("blur",p)}}const Hh=1,ZF={isScrollable:!1,atStart:!0,atEnd:!0};function QF(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 JF(e){return e==="auto"||e==="scroll"||e==="overlay"}function eU(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 q4(e,t){return e.isConnected&&t.display!=="none"&&e.clientWidth>0&&e.clientHeight>0}function OE(e,t,r){const s=getComputedStyle(e);if(!q4(e,s))return null;const o=r[t],l=o==="x"?e.clientWidth:e.clientHeight;return(o==="x"?e.scrollWidth:e.scrollHeight)-l>Hh}function IE(e,t,r){const s=getComputedStyle(e);if(!q4(e,s))return null;const o=r[t],l=eU(e,o),u=l.contentExtent-l.clientExtent;if(!JF(l.overflow)||u<=Hh)return ZF;const d=r[`${t}Reversed`],f=Math.min(u,Math.max(0,d?Math.abs(l.offset):l.offset));return{isScrollable:!0,atStart:f<=Hh,atEnd:f>=u-Hh}}const Hl={isScrollable:!1,atStart:!0,atEnd:!0},_E={inline:Hl,block:Hl},tU={inline:!1,block:!1},nU={inline:"x",block:"y",inlineReversed:!1,blockReversed:!1},rU={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 aU(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 sU(e,t){return e.inline===t.inline&&e.block===t.block}function oU(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function iU(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 qE(e){const t=x.useRef(void 0),r=x.useRef(null);return x.useCallback(s=>{if(r.current!=null&&Object.is(t.current,s))return r.current;const o=Ib(s,e);return t.current=s,r.current=o,o},[e])}function lU({axis:e,keyboardAccess:t,overscroll:r="allow",stickyContainment:s="whenScrollable"}){const[o,l]=x.useState(null),[u,d]=x.useState(null),[f,p]=x.useState(_E),[y,g]=x.useState(tU),[k,v]=x.useState(nU),w=x.useRef(_E),S=x.useCallback(D=>{l(j=>j===D?j:D)},[]),E=x.useCallback(D=>{d(j=>j===D?j:D)},[]),R=qE(S),C=qE(E);qn(()=>{if(o==null||u==null)return;let D=null,j=!0;const I=()=>{D=null;const _=getComputedStyle(o),P=QF(_.writingMode,_.direction),G=ma(e,"inline")?OE(o,"inline",P):!1,Y=ma(e,"block")?OE(o,"block",P):!1,X=ma(e,"inline")?IE(o,"inline",P):Hl,ee=ma(e,"block")?IE(o,"block",P):Hl;if(G==null||Y==null||X==null||ee==null)return;const Q={inline:G,block:Y},oe={inline:X,block:ee};w.current=oe,LE(o,oe),g(O=>sU(O,Q)?O:Q),p(O=>aU(O,oe)?O:oe),v(O=>oU(O,P)?O:P)},z=()=>{!j||D!=null||(D=window.requestAnimationFrame(I))};LE(o,w.current),I();const H=Yu(o,z),F=Yu(u,z);o.addEventListener("scroll",z,{passive:!0}),window.addEventListener("resize",z),window.visualViewport?.addEventListener("resize",z),u.addEventListener("load",z,!0),o.addEventListener("transitionend",z),o.addEventListener("animationend",z),u.addEventListener("transitionend",z),u.addEventListener("animationend",z);const B=typeof MutationObserver>"u"?null:new MutationObserver(z);B?.observe(o,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),B?.observe(u,{attributes:!0,attributeFilter:["class","dir","hidden","style"],characterData:!0,childList:!0,subtree:!0});let q=o.parentElement;for(;q!=null;)B?.observe(q,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),q=q.parentElement;const U=document.fonts;return U?.addEventListener?.("loadingdone",z),U?.ready.then(z),()=>{j=!1,GF(o),H(),F(),B?.disconnect(),o.removeEventListener("scroll",z),window.removeEventListener("resize",z),window.visualViewport?.removeEventListener("resize",z),u.removeEventListener("load",z,!0),o.removeEventListener("transitionend",z),o.removeEventListener("animationend",z),u.removeEventListener("transitionend",z),u.removeEventListener("animationend",z),U?.removeEventListener?.("loadingdone",z),D!=null&&window.cancelAnimationFrame(D)}},[e,u,o]);const T=x.useMemo(()=>({inline:ma(e,"inline")?f.inline:Hl,block:ma(e,"block")?f.block:Hl}),[e,f]),A=T.inline.isScrollable||T.block.isScrollable;qn(()=>{if(!(t.owner!=="contentOrViewport"||!A||o==null||u==null))return XF(o,u)},[u,A,t.owner,o]);const M=x.useCallback((D={})=>{const j=T.inline.isScrollable||T.block.isScrollable,I=ma(e,"inline")&&k.inline==="x"||ma(e,"block")&&k.block==="x",z=ma(e,"inline")&&k.inline==="y"||ma(e,"block")&&k.block==="y",H=y.inline&&k.inline==="x"||y.block&&k.block==="x",F=y.inline&&k.inline==="y"||y.block&&k.block==="y",B=H||F||s==="always",q=s==="always"?I:H,U=s==="always"?z:F,{xstyle:_,...P}=D,G={...P,style:iU(P.style)},Y=ye(G,fe(_,rU.overflow(B?q?"auto":"hidden":"clip",B?U?"auto":"hidden":"clip"))),X=t.owner!=="content",ee=(!X||!j)&&o!=null&&typeof document<"u"&&document.activeElement===o,Q={...Y.style},oe=r==="contain"&&T.inline.isScrollable,O=r==="contain"&&T.block.isScrollable,Z=k.inline,de=k.block;ma(e,"inline")&&(Q[Z==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=oe?"contain":"auto"),ma(e,"block")&&(Q[de==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=O?"contain":"auto");const ue=t.owner!=="content"?{role:t.role??"group","aria-label":t.label,tabIndex:X&&j?0:ee?-1:void 0}:{};return{...Y,...ue,ref:R(Y.ref),style:Q,"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,y,r,T,s,o]),L=x.useCallback((D={})=>({...D,ref:C(D.ref),"data-scroll-content":""}),[C]);return{getViewportProps:M,getContentProps:L,state:T}}let fh=0,hh=null;function cU(e){x.useEffect(()=>{if(!e)return;const{body:t}=document;if(fh===0){const r=window.scrollX,s=window.scrollY,o=UT(t);hh={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 fh+=1,()=>{if(fh-=1,fh!==0||hh==null)return;const r=hh;hh=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 P4=!1;typeof window<"u"&&requestAnimationFrame(()=>{P4=!0});const uU={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 dU(e="slideDown"){const[t]=x.useState(()=>P4);return t?uU[e]:null}const fU=50;function hU(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 pU={natural:10,fast:4,instant:1/0},PE=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function xU(e){return e>=56320&&e<=57343}function gU(e,t){return t<=0||t>=e.length?t:PE?PE.segment(e).containing(t)?.index??t:xU(e.charCodeAt(t))?t-1:t}function mU(e,t,r){const s="natural",o=pU[s],{token:l}=ex(),u=x.useMemo(()=>{const E=hU(l("--duration-fast-min"));if(E==null)return fU;const R=E/10;return Math.max(4,Math.round(R))},[l,s]),[d,f]=x.useState(0),p=x.useRef(e),y=x.useRef(0),g=x.useRef(0),k=x.useRef(null);p.current=e;const v=x.useRef(e.length);e.length!==v.current&&(v.current=e.length,e.length===0&&d!==0&&(y.current=0,f(0)));const w=x.useRef(t);t!==w.current&&(w.current=t,!t&&e.length>0&&(y.current=e.length,f(e.length)));const S=kd("(prefers-reduced-motion: reduce)");return x.useEffect(()=>{if(!t||s==="instant"||S)return;function E(R){if(R-g.current>=u){g.current=R;const T=p.current,A=y.current;if(A<T.length){const M=Math.min(A+o,T.length);y.current=M,f(M)}}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,gU(e,d))}const yU=new Set(["text","password","email","number","search","tel","url","date","datetime-local","month","time","week"]),bU=new Set(["true","menu","listbox","tree","grid","dialog"]);function kU(e){if(e.getAttribute("role")==="combobox")return!0;const t=e.getAttribute("aria-haspopup");return t!=null&&bU.has(t)}function A0({containerRef:e,inputRef:t,disabled:r=!1}){const s=x.useCallback(()=>{const o=t.current;o!=null&&(o instanceof HTMLElement&&kU(o)?o.click():o instanceof HTMLInputElement&&yU.has(o.type)||o instanceof HTMLTextAreaElement?o.focus():o instanceof HTMLElement?o.click():"focus"in o&&o.focus())},[t]);return ux({containerRef:e,interactiveRef:t,onClick:s,disabled:r})}const vU={warning:"warning",error:"error",success:"success"},wU={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"},SU={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 B4({status:e,statusVariant:t="attached",isInGroup:r=!1,size:s="md"}){const o=zt(),u=t==="tooltip"&&!!e?.message,[d,f]=x.useState(void 0),p=Ka({placement:"above",isEnabled:u,isOpen:d}),y=x.useCallback(()=>{f(void 0)},[]),g=x.useCallback(()=>{typeof window>"u"||typeof window.matchMedia!="function"||!window.matchMedia("(hover: none)").matches||f(w=>w!==!0)},[]);if(x.useEffect(()=>{if(d!==!0)return;const w=S=>{S.key==="Escape"&&f(void 0)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[d]),!(!!e&&!r&&t!=="detached"))return{statusIcon:null,describedBy:void 0};const v=m.jsx(ft,{icon:vU[e.type],size:s,color:e.type,...he("input-status-icon",{size:s,status:e.type})});return u?{statusIcon:m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",ref:p.ref,"aria-label":o(wU[e.type]),"aria-describedby":p.describedBy,onClick:g,onBlur:y,...fe(Ps.focusVisible,SU.statusButton),children:v}),p.renderTooltip(e.message)]}),describedBy:p.describedBy}:{statusIcon:v,describedBy:void 0}}function EU(e,t=!1){const r=x.useCallback(l=>{const u=e.current?.firstElementChild;u instanceof HTMLElement&&Object.assign(u.style,l?$9:C9)},[e]),s=x.useCallback(l=>{if(t)return;const u=l.target;u instanceof HTMLElement&&!u.matches(":focus-visible")||r(!0)},[t,r]),o=x.useCallback(()=>r(!1),[r]);return x.useMemo(()=>({focusProps:{onFocus:s,onBlur:o}}),[s,o])}const Pa={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}},BE=Object.freeze({});function $U(e={}){const{isEnabled:t=!0}=e;return x.useMemo(()=>t?{getContainerProps:(r={})=>{const{forceState:s,hoverDelay:o=0}=r;return fe(Pa.container,o>0&&Pa.hoverDelay(`${o}ms`),s==="inactive"&&Pa.stateInactive,s==="active"&&Pa.stateActive)},getContentRevealProps:(r={})=>{const{isRevealInverted:s=!1,isLayoutPreserved:o=!1,forceVisibility:l}=r,u=s?o?Pa.concealLayoutPreserved:Pa.conceal:o?Pa.revealLayoutPreserved:Pa.reveal;return fe(u,l==="shown"&&Pa.contentShown,l==="hidden"&&(o?Pa.contentHiddenLayoutPreserved:Pa.contentHidden))}}:{getContainerProps:()=>BE,getContentRevealProps:()=>BE},[t])}const Sd=aa({direction:"vertical"});Sd.displayName="FormLayoutContext";const Fy={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 hx({label:e,inputID:t,labelID:r,isGroupLabel:s=!1,isLabelHidden:o=!1,isDisabled:l=!1,isOptional:u=!1,isRequired:d=!1,labelIcon:f,labelTooltip:p,description:y,descriptionID:g,className:k,style:v,xstyle:w,ref:S,...E}){const R=zt(),{defaultOptionality:C}=x.use(Sd),M=u&&C!=="optional"?R("@astryx.field.optional"):d&&C!=="required"?R("@astryx.field.required"):null,L=s?"span":"label",D=!s&&t!=null,j=x.useRef(null),I=x.useMemo(()=>({get current(){return t==null?null:j.current?.ownerDocument.getElementById(t)??null},set current(B){}}),[t]),z=A0({containerRef:j,inputRef:I,disabled:!D}),H=m.jsxs(m.Fragment,{children:[f&&Ca(f,{size:"sm",color:"inherit"}),e,M&&m.jsxs("span",{className:"x1sodnla x141an7d x1ltkj2j xv1l7n4",children:[m.jsx("span",{"aria-hidden":"true",children:" ∙ "}),M]}),p&&m.jsx(Ii,{content:p,placement:"above",children:m.jsx(ft,{icon:"info",size:"sm",color:"inherit"})})]}),F=m.jsx(L,{ref:S,id:r,htmlFor:s?void 0:t,...E,...ye(he("field-label"),fe(Fy.label,l&&Fy.labelDisabled,o&&Fy.srOnly,w),k,v),children:H});return y?m.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf"},1:{className:"xdt5ytf xjp7ctv"}}[!!o<<0],children:[F,m.jsx("span",{ref:D?j:void 0,id:g,...D?z: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:y})]}):F}hx.displayName="FieldLabel";function H4(e,t){const r=kc();x.useEffect(()=>{e&&r(e,t==="error"?"assertive":"polite")},[r,e,t])}const CU={warning:"warning",error:"error",success:"success"},Uy={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}},TU={warning:{kWkggS:"x24i8r5",kMwMTN:"xdhq94a",$$css:!0},error:{kWkggS:"x1pritpl",kMwMTN:"x1joocv1",$$css:!0},success:{kWkggS:"xu13z74",kMwMTN:"xltfdvo",$$css:!0}};function px({ref:e,type:t,message:r,id:s,variant:o="attached",xstyle:l,className:u,style:d,...f}){const p=dU("slideDown");return H4(r,t),m.jsx("div",{ref:e,id:s,...f,...ye(he("field-status",{type:t,variant:o}),fe(Uy.base,p,o==="attached"?Uy.attached:Uy.detached,TU[t],l),u,d),children:o==="detached"?m.jsxs("span",{className:"x78zum5 x1cy8zhl xzye2dw",children:[m.jsx("span",{className:"x3nfvp2 x6s0dn4 x14o5nre x2lah0s",children:m.jsx(ft,{icon:CU[t],size:"sm",color:"inherit",...he("field-status-icon",{type:t})})}),m.jsx("span",{children:r})]}):r})}px.displayName="FieldStatus";const ph={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}},jU={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function vc({label:e,isLabelHidden:t=!1,description:r,inputID:s,labelID:o,isGroupLabel:l=!1,descriptionID:u,isOptional:d=!1,isRequired:f=!1,isDisabled:p=!1,labelIcon:y,status:g,labelTooltip:k,statusVariant:v="attached",width:w,xstyle:S,children:E,className:R,style:C,ref:T,...A}){const{direction:M}=x.use(Sd),L=M==="horizontal-labels",D=u??(r?`${s}-desc`:void 0),j=g?.messageID??(g?.message?`${s}-status`:void 0);Ti("Field","isOptional and isRequired are mutually exclusive. isOptional takes precedence.",d&&f);const I=m.jsx(hx,{label:e,inputID:s,labelID:o,isGroupLabel:l,isLabelHidden:t,isDisabled:p,isOptional:d,isRequired:f,labelIcon:y,labelTooltip:k,description:L?void 0:r,descriptionID:L?void 0:D});H4(v==="tooltip"?g?.message:void 0,g?.type);const z=g?.message&&v!=="tooltip"?m.jsx(px,{type:g.type,message:g.message,id:j,variant:v,xstyle:v==="attached"?ph.attachedStatusLayer:void 0}):null;return L?m.jsxs("div",{ref:T,...ye(he("field",{layout:"horizontal-labels"}),fe(ph.horizontalLabels,S),R,C),...A,children:[m.jsx("div",{className:"x1enrzb7",children:I}),m.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[r&&m.jsx(Je,{type:"supporting",display:"block",id:D,children:r}),E,z]})]}):m.jsxs("div",{ref:T,...ye(he("field"),fe(ph.container,!t&&ph.containerGap,w!=null&&jU.width(w),S),R,C),...A,children:[I,v==="attached"?m.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[E,z]}):m.jsxs(m.Fragment,{children:[E,z]})]})}vc.displayName="Field";const cc={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}},M0={warning:{kVAM5u:"x8wg1ba",$$css:!0},error:{kVAM5u:"x1ofxpqo",$$css:!0},success:{kVAM5u:"x16m2moy",$$css:!0}},z0={warning:{kGVxlE:"x1gnnqk1 x9156jc",$$css:!0},error:{kGVxlE:"x1gnnqk1 x1bgmis8",$$css:!0},success:{kGVxlE:"x1gnnqk1 x8wp45d",$$css:!0}},F4={warning:{kVAM5u:"x8wg1ba xa1yw2k",$$css:!0},error:{kVAM5u:"x1ofxpqo xk2sxw7",$$css:!0},success:{kVAM5u:"x16m2moy xyq33ac",$$css:!0}},RU={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 U4({label:e,onClick:t,onPointerDown:r,onClickCapture:s,xstyle:o,iconClassName:l}){const{className:u}=he("input-clear-icon"),{className:d}=he("input-clear-button");return m.jsx(jt,{variant:"ghost",size:"sm",label:e,tooltip:e,className:d,icon:m.jsx(ft,{icon:"close",size:"sm",color:"secondary",className:l!=null?`${u} ${l}`:u}),onPointerDown:f=>{f.preventDefault(),r?.(f)},onMouseDown:f=>f.preventDefault(),onClick:t,onClickCapture:s,isIconOnly:!0,xstyle:[RU.button,o]})}function xx(e){return U4(e)}function AU(e){return U4(e)}xx.displayName="InputClearButton";const N0={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 Ed({isRequired:e=!1,isOptional:t=!1}){const{defaultOptionality:r}=x.use(Sd);return!t&&(e||r==="required")}const L0=aa(null);L0.displayName="InputGroupContext";function gx(){return x.use(L0)}const MU="`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.",zU="`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 mx(e,t,r){const s=gx(),{direction:o}=x.use(Sd),l=s==null&&o!=="horizontal-labels",u=t,d=u.xstyle!=null||u.className!=null||u.style!=null;let f=t;if(d){const{xstyle:v,className:w,style:S,...E}=u;f=E}Ti(e,MU,d);const{containerXstyle:p,containerClassName:y,containerStyle:g}=r,k=p!=null||y!=null||g!=null;return Ti(e,zU,k&&!l),{rest:f,hasFieldBox:l,container:l?{xstyle:p,className:y,style:g}:{}}}const NU={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function Fa({type:e="text",label:t,isLabelHidden:r=!1,description:s,isOptional:o=!1,isRequired:l=!1,isDisabled:u=!1,isReadOnly:d=!1,disabledMessage:f,startIcon:p,status:y,statusVariant:g="attached",size:k,onChange:v,changeAction:w,isLoading:S=!1,value:E,placeholder:R,labelTooltip:C,hasClear:T=!1,hasAutoFocus:A=!1,htmlName:M,onEnter:L,onKeyDown:D,width:j,containerXstyle:I,containerClassName:z,containerStyle:H,controlXstyle:F,controlClassName:B,controlStyle:q,ref:U,id:_,"aria-describedby":P,...G}){const{rest:Y,container:X}=mx("TextInput",G,{containerXstyle:I,containerClassName:z,containerStyle:H}),ee=zt(),Q=Ed({isRequired:l,isOptional:o}),oe=yc(k,"md"),O=x.useId(),Z=_??O,de=x.useId(),ue=x.useId(),ve=x.useId(),xe=x.useRef(null),$e=x.useRef(null),te=gx(),[,pe]=x.useTransition(),[Re,Te]=x.useOptimistic(E),Ce=S||Re!==E,Me=u&&!!f,je=Ka({placement:"above",focusTrigger:"always",isEnabled:Me}),{statusIcon:He,describedBy:at}=B4({status:y,statusVariant:g,isInGroup:!!te}),{ariaLabelledBy:pt,ariaDescribedBy:et}=_b(de,[s?ue:null,!te&&g!=="tooltip"&&y?.message?ve:null,at,Me?je.describedBy:null],te),Ve=st=>{if(u||d)return;const ct=st.target.value;v?.(ct,st),w&&!st.defaultPrevented&&pe(async()=>{Te(ct),await w(ct,st)})},yt=x.useCallback(st=>{v?.("",null),!st||st.detail===0?xe.current?.focus():requestAnimationFrame(()=>{xe.current?.focus({preventScroll:!0})})},[v]),{onClick:Pe,onMouseUp:rt}=A0({containerRef:$e,inputRef:xe,disabled:u}),lt=m.jsxs("div",{ref:st=>{$e.current=st,je.ref(st)},onClick:Pe,onMouseUp:rt,...ye(he("text-input",{size:oe,status:y?.type??null,disabled:u?"disabled":null,readonly:d?"readonly":null}),fe(cc.base,NU[oe],u&&cc.disabled,y&&M0[y.type],y&&!u&&z0[y.type],y&&F4[y.type],te&&N0.inGroup,F),B,q),children:[p&&Ca(p,{size:"sm",color:"secondary"}),te&&m.jsx(Vs,{id:de,children:t}),m.jsx("input",{...Y,ref:xn(U,xe),id:Z,name:u?void 0:M,type:e,value:Re,onChange:Ve,onKeyDown:L||D?st=>{st.key==="Enter"&&!pd(st.nativeEvent)&&L?.(),D?.(st)}:void 0,placeholder:R,disabled:u&&!Me,"aria-disabled":Me?"true":void 0,readOnly:d||Me||void 0,autoFocus:A,"data-autofocus":A||void 0,"aria-describedby":[P,et].filter(Boolean).join(" ")||void 0,"aria-required":Q?"true":void 0,"aria-invalid":y?.type==="error"?"true":void 0,"aria-busy":Ce||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&&!d&&m.jsx(xx,{label:ee("@astryx.textInput.clearLabel",{label:t}),onClick:yt}),Ce&&m.jsx(Do,{size:"sm"}),He]});return te?m.jsxs(m.Fragment,{children:[lt,Me&&je.renderTooltip(f)]}):m.jsxs(vc,{...X,label:t,isLabelHidden:r,description:s,inputID:Z,descriptionID:s?ue:void 0,isOptional:o,isRequired:l,isDisabled:u,status:y?{type:y.type,message:y.message,messageID:y.message?ve:void 0}:void 0,statusVariant:g,labelTooltip:C,width:j,children:[lt,Me&&je.renderTooltip(f)]})}Fa.displayName="TextInput";const Mi=aa(null);Mi.displayName="ListContext";function LU({marker:e,task:t,children:r}){const s=x.use(Mi),o=x.useMemo(()=>s==null?null:{...s,marker:e,task:t},[s,e,t]);return o==null?r:m.jsx(Mi,{value:o,children:r})}const Vy={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}},DU={kt6KFK:"x1khind5",$$css:!0},OU={counterStart:e=>[DU,{"--x-counterReset":`astryx-list ${e}`!=null?`astryx-list ${e}`:void 0}]};function uc({children:e,density:t="balanced",hasDividers:r=!1,edgeCompensation:s,header:o,listStyle:l="none",start:u,xstyle:d,className:f,style:p,"data-testid":y,ref:g,...k}){const v=x.useId(),w=l==="decimal",S=w?"ol":"ul",E=x.useMemo(()=>({density:t,hasDividers:r,listStyle:l,edgeCompensation:s}),[t,r,l,s]),R=m.jsx(S,{ref:g,...k,"data-testid":y,...o!=null?{"aria-labelledby":v}:null,...w&&u!=null&&u!==1?{start:u}:{},role:"list",...ye(he("list",{density:t,listStyle:l}),fe(Vy.list,r&&Vy.withDividers,l!=="none"&&(u!=null&&u!==1?OU.counterStart(u-1):Vy.withCounter),d),f,p),children:e});return o==null?m.jsx(Mi,{value:E,children:R}):m.jsx(Mi,{value:E,children:m.jsxs("div",{className:"x78zum5 xdt5ytf",children:[m.jsx("div",{id:v,className:"x1p37lm5",children:o}),R]})})}uc.displayName="List";const IU={x1odsvnm:"x1odsvnm",$$css:!0},Is={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}},_U={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},qU={sm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",$$css:!0},md:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0}},PU={sm:{kzqmXN:"x1fsd2vl",kZKoxP:"x36qwtl",$$css:!0},md:{kzqmXN:"xsmyaan",kZKoxP:"x36qwtl",$$css:!0}};function V4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:d,...f}){const p=e==="checked",y=e==="indeterminate",g=p||y;return m.jsx("span",{...f,ref:o,"aria-hidden":"true",...ye(he("checkbox-indicator",{size:t,checked:p?"checked":y?"indeterminate":null,disabled:r?"disabled":null}),fe(Is.box,_U[t],g?Is.checked:Is.unchecked,r&&Is.disabled,r&&!g&&Is.disabledUnchecked,d),l,u),children:Fs(s)?s:m.jsxs(m.Fragment,{children:[m.jsx("svg",{viewBox:"0 0 10 10",...ye(he("checkbox-indicator-check",{size:t}),fe(Is.checkmark,qU[t],p&&Is.checkmarkVisible)),children:m.jsx("path",{d:"M8.5 2.5L4 7.5L1.5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),m.jsx("span",{...ye(he("checkbox-indicator-dash",{size:t}),fe(Is.indeterminateMark,PU[t],y&&Is.indeterminateMarkVisible))})]})})}V4.displayName="CheckboxIndicator";const BU={sm:"sm",md:"sm"},Gy={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 G4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:d,...f}){const p=e==="checked";return Fs(s)?m.jsx("span",{...f,ref:o,"aria-hidden":"true",...ye(fe(Gy.slot,r?Gy.disabled:Gy.enabled,d),l,u),children:s}):p?m.jsx(ft,{...f,"aria-hidden":"true",icon:"check",size:BU[t],color:r?"disabled":"accent",xstyle:d,className:l,style:u}):null}G4.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}},HU={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},FU={sm:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",$$css:!0},md:{kzqmXN:"x1fsd2vl",kZKoxP:"x170jfvy",$$css:!0}};function K4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:d,...f}){const p=e!=="unchecked";return m.jsx("span",{...f,ref:o,"aria-hidden":"true",...ye(he("radio-indicator",{size:t,checked:p?"checked":null,disabled:r?"disabled":null}),fe(zl.circle,HU[t],p?zl.checked:zl.unchecked,r&&zl.disabled,r&&!p&&zl.disabledUnchecked,d),l,u),children:Fs(s)?s:p&&m.jsx("span",{...ye(he("radio-indicator-dot",{size:t}),fe(zl.dot,FU[t]))})})}K4.displayName="RadioIndicator";const UU={check:G4,checkbox:V4,radio:K4};function VU(e){return e==null?null:typeof e=="string"?Zp(e):e}function GU(e){return VU(e)?.indicators??null}function KU(e,t){return GU(t)?.[e]??UU[e]}function W4(e){return KU(e,_T())}const yx=aa(null);yx.displayName="CheckboxListContext";const ci={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}},HE={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},WU={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function D0({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:d=!1,htmlName:f,disabledMessage:p,isReadOnly:y=!1,isOptional:g=!1,isRequired:k=!1,size:v="md",onFocus:w,onBlur:S,labelIcon:E,status:R,width:C,xstyle:T,className:A,style:M,ref:L,"aria-describedby":D,...j}){const I=ja(),z=x.useId(),H=x.useId(),F=x.useId(),B=Ed({isRequired:k,isOptional:g}),[,q]=x.useTransition(),[U,_]=x.useOptimistic(u),P=l||U!==u,G=d&&!!p,Y=x.use(yx),X=d&&(G||(Y?.hasDisabledMessage??!1)),ee=Ka({placement:"above",focusTrigger:"always",isEnabled:G}),Q=W4("checkbox"),oe=x.useRef(null),{focusProps:O}=EU(oe,d),Z=U==="indeterminate",de=U===!0,ue=x.useCallback($e=>{$e&&($e.indeterminate=Z)},[Z]),ve=[];D&&ve.push(D),r&&ve.push(H),R?.message&&ve.push(F),G&&ve.push(ee.describedBy);const xe=ve.length>0?ve.join(" "):void 0;return m.jsxs("div",{...ye(he("checkbox-input",{size:v}),fe(C!=null&&WU.width(C),T),A,M),children:[m.jsxs("div",{ref:$e=>{ee.interactionRef($e)},...d?void 0:I,...fe(ci.container,t&&ci.containerLabelHidden,!d&&IU,!d&&or.pressedAlpha),children:[m.jsxs("div",{...fe(ci.checkboxWrapper,HE[v],!d&&ci.indicatorPressOverlay),...O,children:[m.jsx("input",{...j,ref:xn(L,ue,ee.positionRef),id:z,type:"checkbox",name:d?void 0:f,checked:de,disabled:d&&!X,"aria-disabled":X?"true":void 0,form:X?"":void 0,readOnly:y,required:k,"aria-required":B?"true":void 0,onChange:$e=>{if(d||P||y)return;const te=$e.target.checked;s?.(te,$e),o&&!$e.defaultPrevented&&q(async()=>{_(te),await o(te,$e)})},onFocus:w,onBlur:S,"aria-readonly":y||void 0,"aria-describedby":xe,"aria-invalid":R?.type==="error"?!0:void 0,"aria-busy":P||void 0,...fe(ci.input,Ga.centerInline("-50%"),ci.inputCoarse,HE[v],d&&ci.inputDisabled)}),m.jsx("span",{ref:oe,className:"xjp7ctv",children:m.jsx(Q,{state:Z?"indeterminate":de?"checked":"unchecked",size:v,isDisabled:d,children:P?m.jsx(Do,{size:"sm",shade:"inherit"}):null})})]}),m.jsx("div",{className:"x78zum5 xdt5ytf",children:m.jsx(hx,{...he("checkbox-label"),label:e,inputID:z,isLabelHidden:t,isDisabled:d,isOptional:g,isRequired:k,labelIcon:E,description:r,descriptionID:H})})]}),R?.message&&m.jsx(px,{type:R.type,message:R.message,id:F,variant:"detached"}),G&&ee.renderTooltip(p)]})}D0.displayName="CheckboxInput";const O0=x.createContext(null);O0.displayName="ItemDescriptionContext";const YU=x.lazy(async()=>md(()=>import("./ItemSwipeLayer-yJw7PzFS.js"),[])),XU=new Set(["option","tab","row","gridcell","columnheader","rowheader","treeitem"]),ZU=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}},FE={lineClamp:e=>[{kJFfOR:e!=null?"x1yhjpo9":e,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},QU={compact:{k8WAf4:"xu0wf1k",$$css:!0},balanced:{k8WAf4:"xce4md1",$$css:!0},spacious:{k8WAf4:"x8o8v82","--_item-inset-inline":"x1ytau7y",$$css:!0}};function $d({as:e="div",marker:t,startContent:r,label:s,description:o,endContent:l,align:u="center",density:d="balanced",labelLines:f,descriptionLines:p,layout:y="stacked",onClick:g,interactiveRef:k,href:v,target:w,rel:S,isHighlighted:E=!1,isSelected:R=!1,isDisabled:C=!1,swipeActions:T,swipeBehavior:A="reveal",xstyle:M,className:L,style:D,ref:j,role:I,...z}){const H=ja(),F=Oi(),B=k!=null,q=x.useRef(null),{onClick:U}=ux({containerRef:q,interactiveRef:k??void 0,disabled:C});Ti("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.",B&&(g!=null||v!=null));const _=g!=null||v!=null||B,{target:P,rel:G}=ZT(w,S),Y=I!=null,X=typeof e!="string"&&v!=null,ee=T?.leading??[],Q=T?.trailing??[],oe=T!=null&&(ee.length>0||Q.length>0)&&!C&&!B&&!X&&(I==null||ZU.has(I));Ti("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"`.',oe&&A==="commit"&&(ee.length>1||Q.length>1));const O=x.useRef(null),Z=x.useRef(null),de=x.useCallback(Pe=>{Z.current=Pe},[]),ue=X?{href:C?void 0:v,target:C?void 0:P,rel:C?void 0:G}:null,ve=I!=null&&XU.has(I),xe=x.useId(),$e=Fs(o),te=typeof s=="string",pe=typeof o=="string",Re=f!=null?f===1?Kn.labelSingleTruncate:Kn.labelMultiTruncate:te?Kn.labelSingleTruncate:null,Te=y==="inline"&&o!=null,Ce=p!=null?p===1?Kn.descriptionSingleTruncate:Kn.descriptionMultiTruncate:pe||Te?Kn.descriptionSingleTruncate:null,Me=m.jsxs(m.Fragment,{children:[m.jsx("span",{...fe(Kn.label,Te&&Kn.inlineLabel,Re,f!=null&&f>1&&FE.lineClamp(f)),children:s}),o!=null&&m.jsx("span",{id:$e?xe:void 0,...fe(Kn.description,Te&&Kn.inlineDescription,Ce,p!=null&&p>1&&FE.lineClamp(p)),children:o})]}),je=Pe=>{C||Pe.target.closest("button, a, input, select, textarea")||g?.(Pe)},He=m.jsxs(m.Fragment,{children:[t,r!=null&&m.jsx("span",{className:"x3psx0u x78zum5",children:r}),Y||B?m.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"}}[!!Te<<1|!!C<<0],children:Me}):v!=null&&!X?m.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"}}[!!Te<<1|!!C<<0],children:Me}):g!=null?m.jsx("button",{type:"button",onClick:g,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"}}[!!Te<<1|!!C<<0],children:Me}):m.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"}}[!!Te<<1|!!C<<0],children:Me}),l!=null&&m.jsx("span",{...{0:{className:"x3psx0u x78zum5 xvc5jky"},1:{className:"x3psx0u x78zum5 xvc5jky xbyyjgo"}}[!!C<<0],children:l})]}),at=xn(j,q),pt=xn(B?at:j,oe?O:void 0),et=B?U:Y?g:_?je:void 0,Ve=oe&&et!=null?Pe=>{Z.current?.shouldSuppressClick()!==!0&&et(Pe)}:et,yt=oe?{onPointerDown:Pe=>Z.current?.handlers.onPointerDown(Pe),onPointerMove:Pe=>Z.current?.handlers.onPointerMove(Pe),onPointerUp:Pe=>Z.current?.handlers.onPointerUp(Pe),onPointerCancel:Pe=>Z.current?.handlers.onPointerCancel(Pe),onClickCapture:Pe=>Z.current?.handlers.onClickCapture(Pe),onKeyDown:Pe=>Z.current?.handlers.onKeyDown(Pe)}:void 0;return m.jsxs(e,{ref:pt,...z,...yt,...ue,"aria-selected":ve&&R||void 0,"aria-current":z["aria-current"]??(R&&!ve?!0:void 0),"aria-disabled":C||void 0,..._?H:void 0,...ye(he("item",{density:d,align:u}),pn.focusWithin(Kn.root,QU[d],u==="start"&&Kn.alignStart,_&&Kn.interactive,_&&or.backgroundColor,X&&Kn.linkRoot,E&&Kn.highlighted,R&&Kn.selected,C&&!Y&&Kn.disabled,oe&&Kn.swipeRoot,M),L,D),role:I,onClick:Ve,children:[m.jsx(O0,{value:$e?xe:null,children:He}),oe&&m.jsx(x.Suspense,{fallback:null,children:m.jsx(YU,{rootRef:O,onBridge:de,leading:ee,trailing:Q,behavior:A})})]})}$d.displayName="Item";const Ky={withCounter:{kAmcRD:"xfrknyr",$$css:!0},inlineEdgeCompensation:{keTefX:"x1t1czy8",k71WvV:"x1cphv78",$$css:!0},withDivider:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",kx8K5S:"x1t1lzn6",$$css:!0}},yi={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}},JU={decimal:yi.decimal,"lower-alpha":yi.lowerAlpha,"lower-roman":yi.lowerRoman},eV={noRadius:{kaIpWk:"x2u8bby",$$css:!0}};function wc({label:e,description:t,startContent:r,endContent:s,onClick:o,interactiveRef:l,href:u,target:d,rel:f,isDisabled:p=!1,isSelected:y=!1,xstyle:g,className:k,style:v,ref:w,...S}){const E=x.use(Mi),R=E?.density??"balanced",C=E?.hasDividers??!1,T=E?.listStyle??"none",A=E?.edgeCompensation,M=T!=="none",L=T==="none"?null:E?.marker??T,D=L==null?void 0:E?.task,j=D!=null?m.jsx("span",{className:"xqcrz7y x78zum5 x2lah0s x1oms9s6",children:m.jsx(D0,{size:"sm",value:D.isChecked,label:D.label,isLabelHidden:!0,isReadOnly:!0})}):L==="disc"||L==="circle"||L==="square"?m.jsx("span",{className:"xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv",children:m.jsx("span",{...fe(L==="disc"?yi.dot:L==="circle"?yi.circle:yi.square)})}):L!=null?m.jsx("span",{...fe(yi.number,JU[L])}):null;return m.jsx($d,{as:"li",ref:w,marker:j,startContent:r,label:e,description:t,endContent:s,onClick:o,interactiveRef:l,href:u,target:d,rel:f,isDisabled:p,isSelected:y,density:R,xstyle:[M&&Ky.withCounter,C&&Ky.withDivider,C&&eV.noRadius,A==="inline"&&Ky.inlineEdgeCompensation,g],...ye(he("list-item"),{className:k,style:v}),...S})}wc.displayName="ListItem";const Y4=[{label:"Workspace",panels:[{id:"appearance",label:"Appearance",description:"Theme and density for this browser.",icon:k0},{id:"language",label:"Language & region",description:"Language, formats, and time zone.",icon:b0},{id:"advanced",label:"Advanced",description:"Data transfer and local configuration.",icon:lP}]},{label:"Features",panels:[{id:"library",label:"Library",description:"Capture and prompt settings.",icon:y0}]}],UE=Y4.flatMap(e=>e.panels),tV="appearance",nV=[{title:"Color theme",description:"Light, dark, or follow the system",panel:"appearance",icon:k0},{title:"Time zone",description:"Used for scheduling and timestamps",panel:"language",icon:b0},{title:"Time format",description:"Date and time structure used across Foundry",panel:"language",icon:ij},{title:"Fetcher",description:"Choose the service used to capture pages",panel:"library",icon:oj},{title:"Scrape concurrency",description:"Limit simultaneous page fetches",panel:"library",icon:sj},{title:"Export data",description:"Create an encrypted Foundry snapshot",panel:"advanced",icon:F1},{title:"Import data",description:"Restore data from an encrypted Foundry snapshot",panel:"advanced",icon:H1}];function X4(e){return UE.find(t=>t.id===e)??UE[0]}function rV(e,t){return[e.title,e.description,X4(e.panel).label].some(r=>r.toLowerCase().includes(t))}const aV={grid:{k1xSpc:"xrvj5dj",$$css:!0}},sV={kJBjZk:"xhij9v2",$$css:!0},VE={templateColumns:e=>[{kumcoG:e!=null?"xqketvx":e,$$css:!0},{"--x-gridTemplateColumns":e??void 0}],autoRows:e=>[sV,{"--x-gridAutoRows":`${e}px`!=null?`${e}px`:void 0}]},oV={start:{kGNEyG:"x7a106z",$$css:!0},center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xpqajaz",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},iV={start:{kAPf3g:"x619ttb",$$css:!0},center:{kAPf3g:"x1o2pa38",$$css:!0},end:{kAPf3g:"x4xo5sw",$$css:!0},stretch:{kAPf3g:"xl4xnwh",$$css:!0}},lV={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}},cV={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}},uV={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}},GE={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 dV(e,t,r,s,o){const l=o!=null?GE[o]:s!=null?GE[s]:null,u=l?`calc((100% - ${t-1} * var(${l})) / ${t})`:`calc(100% / ${t})`,d=`min(100%, max(${e}px, ${u}))`;return`repeat(${r}, minmax(${d}, 1fr))`}function Z4({columns:e,rowHeight:t,width:r,height:s,maxWidth:o,minHeight:l,gap:u,rowGap:d,columnGap:f,align:p,justify:y,xstyle:g,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=dV(e.minWidth,e.max,A,u,f):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 m.jsx("div",{ref:S,...ye(he("grid",{columns:T,gap:u,align:p,justify:y}),fe(aV.grid,VE.templateColumns(R),t!=null&&VE.autoRows(t),u!=null&&lV[u],d!=null&&cV[d],f!=null&&uV[f],p!=null&&oV[p],y!=null&&iV[y],g),k,{...v,...C}),...E,children:w})}Z4.displayName="Grid";const kr={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}},fV=e=>{switch(e){case"default":case"transparent":case"muted":return kr.selected;case"blue":return kr.selectedBlue;case"cyan":return kr.selectedCyan;case"gray":return kr.selectedGray;case"green":return kr.selectedGreen;case"orange":return kr.selectedOrange;case"pink":return kr.selectedPink;case"purple":return kr.selectedPurple;case"red":return kr.selectedRed;case"teal":return kr.selectedTeal;case"yellow":return kr.selectedYellow;default:return kr.selectedUnknown}};function Q4({label:e,isSelected:t,onChange:r,onClick:s,onMouseUp:o,isDisabled:l=!1,children:u,padding:d,variant:f="default",elevation:p="none",width:y,height:g,maxWidth:k,ref:v,xstyle:w,className:S,style:E,...R}){const C=ja(),T=x.useRef(null),A=x.useRef(null),M=x.useCallback(H=>{l||r(!t)},[l,t,r]),L=x.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}=ux({containerRef:T,interactiveRef:A,onClick:M,disabled:l}),I=s?H=>{D(H),s(H)}:D,z=o?H=>{j(H),o(H)}:j;return m.jsxs(Gs,{ref:xn(v,T),...l?void 0:C,width:y,height:g,maxWidth:k,padding:d,variant:f,elevation:p,...ye(he("selectable-card",{variant:f,selected:t?"true":"false"}),pn.focusWithin(),S,E),xstyle:[kr.interactive,t&&fV(f),!l&&kr.overlay,!l&&or.pressedAlpha,l&&kr.disabled,w],onClick:l?void 0:I,onMouseUp:l?void 0:z,...R,children:[m.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]})}Q4.displayName="SelectableCard";var _t={size:"1em","aria-hidden":!0},hV={close:m.jsx(x4,{..._t}),chevronDown:m.jsx($j,{..._t}),chevronLeft:m.jsx(Tj,{..._t}),chevronRight:m.jsx(Rj,{..._t}),chevronsLeft:m.jsx(Mj,{..._t}),chevronsRight:m.jsx(Nj,{..._t}),check:m.jsx(Sj,{..._t}),success:m.jsx(Dj,{..._t}),error:m.jsx(Ij,{..._t}),warning:m.jsx(c4,{..._t}),info:m.jsx(Jj,{..._t}),calendar:m.jsx(bj,{..._t}),clock:m.jsx(qj,{..._t}),externalLink:m.jsx(Kj,{..._t}),menu:m.jsx(t4,{..._t}),moreHorizontal:m.jsx(Vj,{..._t}),search:m.jsx(s4,{..._t}),upload:m.jsx(d4,{..._t}),arrowUp:m.jsx(mj,{..._t}),arrowDown:m.jsx(hj,{..._t}),arrowsUpDown:m.jsx(xj,{..._t}),funnel:m.jsx(Zj,{..._t}),eyeSlash:m.jsx(Yj,{..._t}),viewColumns:m.jsx(Bj,{..._t}),copy:m.jsx(Fj,{..._t}),checkDouble:m.jsx(vj,{..._t}),wrench:m.jsx(h4,{..._t}),stop:m.jsx(i4,{..._t}),microphone:m.jsx(r4,{..._t})};const pV={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:hV},KE={container:{kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",kVQacm:"x7giv3",kAzted:"x2lwn1j",kmuXW:"x2lah0s",$$css:!0},ellipse:{kaIpWk:"x16rqkct",$$css:!0}},xV={ratio:e=>[{kOBAk4:e!=null?"x10y9f9r":e,$$css:!0},{"--x-aspectRatio":e??void 0}]};function J4({ratio:e,shape:t="rectangle",fit:r,children:s,xstyle:o,className:l,style:u,ref:d,...f}){return m.jsx("div",{ref:d,...ye(he("aspect-ratio",{shape:t}),fe(KE.container,xV.ratio(e),t==="ellipse"&&KE.ellipse,o),l,u),...f,children:m.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})})}J4.displayName="AspectRatio";const WE={wrapper:{k8WAf4:"xu0wf1k",kg3NbH:"x7a5moj",$$css:!0},icon:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",$$css:!0}};function e6({ref:e,label:t,clearLabel:r,placeholder:s,value:o,onValueChange:l,onKeyDown:u,onFocus:d,onBlur:f,onContainerKeyDown:p,xstyle:y,className:g,style:k,...v}){const[w,S]=x.useState(!1);Up();const E=x.useCallback(T=>{S(oc()==="keyboard"),d?.(T)},[d]),R=x.useCallback(T=>{S(!1),f?.(T)},[f]),C=x.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 m.jsx("div",{onKeyDown:p,...ye(fe(WE.wrapper,y),g,k),children:m.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:[m.jsx(ft,{icon:"search",size:"sm",color:"secondary",xstyle:WE.icon}),m.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!==""&&m.jsx(xx,{label:r,onClick:C})]})})}e6.displayName="PanelSearchInput";function gV(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 mV(e,t,r){const s=kc(),o=x.useRef(null);x.useEffect(()=>{if(!t){o.current=null;return}const l=e.current;if(!l)return;const u=gV(l);if(u==="")return;const d=`${r}\0${u}`;o.current!==d&&(o.current=d,s(u))})}function t6(e){return typeof e=="string"?!0:!("type"in e)}function yV(e){return typeof e=="object"&&"type"in e&&e.type==="divider"}function n6(e){return typeof e=="object"&&"type"in e&&e.type==="section"}function bp(e){return typeof e=="string"?{value:e,label:e}:{...e,label:e.label??e.value}}function bV(e){const t=[];for(const r of e)if(t6(r))t.push(bp(r));else if(n6(r))for(const s of r.options)t.push(bp(s));return t}function kV({isOpen:e,highlightedIndex:t,setHighlightedIndex:r,getOptionId:s,itemCount:o}){const l=x.useRef(!1),u=x.useCallback(d=>{d!==t&&(l.current=!0),r(d)},[t,r]);return x.useEffect(()=>{if(l.current){l.current=!1;return}!e||t<0||document.getElementById(s(t))?.scrollIntoView?.({block:"nearest"})},[e,t,s,o]),u}const vV=1;function YE(e){let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t}function wV({isOpen:e,selectedItemIndex:t,listboxId:r,listboxRef:s,anchorRef:o}){const[l,u]=x.useState(0),[d,f]=x.useState(!1),p=x.useCallback((y,g)=>{u(y),f(g)},[]);return qn(()=>{if(!e){p(0,!1);return}if(!s.current||!o.current){p(0,!0);return}const y=t>=0?t:0,g=`${r}-item-${y}`,k=document.getElementById(g);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=YE(k)-YE(v)-v.scrollTop+k.offsetHeight/2,C=w.top+w.height/2-E-vV,T=window.innerHeight,A=Math.max(0,T-S),M=Math.min(Math.max(C,0),A),L=Math.max(0,w.bottom-M);p(L,!0)},[e,t,r,s,o,p]),{offset:l,isPositioned:d}}function SV({selectableItems:e,value:t,isDisabled:r=!1,isOpen:s,hasSearch:o=!1,onOpen:l,onClose:u,onSelect:d,onClear:f,onSearchSeed:p,listboxId:y}){const[g,k]=x.useState(-1),v=x.useCallback(L=>`${y}-item-${L}`,[y]),w=x.useCallback(()=>e.map((L,D)=>L.disabled?-1:D).filter(L=>L>=0),[e]),S=x.useCallback(()=>e.findIndex(L=>L.value===t),[e,t]),E=x.useCallback(()=>{k(-1),u()},[u]),R=x.useCallback(L=>{L.disabled||(d?.(L.value),E())},[d,E]),C=x.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=kV({isOpen:s,highlightedIndex:g,setHighlightedIndex:k,getOptionId:v}),A=x.useCallback((L,D)=>{L.disabled||T(D)},[T]),M=x.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(g),I=Math.min(j+1,D.length-1);k(D[I]??g)}break;case"ArrowUp":if(L.preventDefault(),!s)l()!==!1&&k(e.length-1);else{const j=D.indexOf(g),I=Math.max(j-1,0);k(D[I]??g)}break;case" ":if(o)break;case"Enter":if(L.preventDefault(),s&&g>=0){const j=e[g];j&&!j.disabled&&R(j)}else if(!s&&l()!==!1&&!o){const I=S();k(I>=0?I: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&&f!=null&&t!=null&&(L.preventDefault(),f());break;default:o&&p&&L.key.length===1&&!L.ctrlKey&&!L.metaKey&&(s||l()!==!1)&&p(L.key);break}},[r,s,l,E,e,g,R,S,w,o,f,p,t]);return{highlightedIndex:g,setHighlightedIndex:k,getItemId:v,onTriggerClick:C,onKeyDown:M,onItemSelect:R,onItemMouseEnter:A}}function I0(e,t,r){const[s,o]=x.useState(!1),l=x.useCallback(()=>{const u=e.current;if(!u)return;const d=u.scrollHeight>u.clientHeight+1;o(f=>f===d?f:d)},[e]);return qn(()=>{if(!r)return;const u=e.current;if(!u)return;l();const d=typeof ResizeObserver>"u"?null:new ResizeObserver(l),f=typeof MutationObserver>"u"?null:new MutationObserver(l);return d?.observe(u),f?.observe(u,{childList:!0,characterData:!0,subtree:!0}),u.addEventListener("load",l,!0),window.addEventListener("resize",l),window.visualViewport?.addEventListener("resize",l),()=>{d?.disconnect(),f?.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 _0=aa("stacked");_0.displayName="SelectorRowLayoutContext";function EV(){return x.use(_0)}const $V={root:{k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kaIpWk:"x2u8bby",$$css:!0}};function r6({icon:e,label:t,description:r,layout:s,endContent:o,xstyle:l,className:u,style:d}){const f=EV();return m.jsx($d,{startContent:e?Ca(e,{size:"sm",color:"secondary"}):void 0,label:t,description:r,layout:f==="inline"?"inline":s,endContent:o,xstyle:[$V.root,l],...ye(he("selector-option"),{className:u,style:d})})}r6.displayName="SelectorOption";const CV=x.lazy(async()=>md(()=>import("./BottomSheet-8bK6bbnE.js"),[]).then(e=>({default:e.BottomSheet}))),TV={heading:{k1K539:"x1p37lm5",kUOVxO:"xam6yil",$$css:!0}};function jV({isOpen:e,targetRef:t}){return x.useEffect(()=>{if(!e)return;const r=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(r)},[e,t]),null}function a6({children:e,finalFocusRef:t,initialFocusRef:r,isOpen:s,label:o,onOpenChange:l}){return m.jsx(x.Suspense,{fallback:null,children:m.jsx(CV,{isOpen:s,onOpenChange:l,finalFocusRef:t,label:o,height:"hug",purpose:"info",children:m.jsx(FT,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:m.jsxs("div",{className:"xh8yej3",children:[m.jsx(Oo,{level:3,xstyle:TV.heading,children:o}),e,m.jsx(jV,{isOpen:s,targetRef:r})]})})})})}a6.displayName="SelectorBottomSheet";const s6="(max-width: 768px) and (pointer: coarse)";function o6(e){const t=kd(s6);return e==="adaptive"?t?"bottom-sheet":"popover":e}function RV(){const[e,t]=x.useState(!1);Up();const r=x.useCallback(()=>{t(oc()==="pointer")},[]),s=x.useCallback(()=>{t(!1)},[]),o=x.useCallback(()=>{oc()==="keyboard"&&t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:o,prepareFocusReturn:r,resetFocusReturn:s}}function AV({presentation:e,onHide:t,onShow:r,popoverOptions:s,triggerRef:o}){const l=o6(e),u=x.useRef(l),[d,f]=x.useState(!1),p=x.useRef(!1),[y,g]=x.useState(!1),k=x.useRef(t),v=x.useRef(r),w=x.useRef(!1),{isFocusRingSuppressed:S,onFocusReturnTargetFocus:E,prepareFocusReturn:R,resetFocusReturn:C}=RV();k.current=t,v.current=r;const T=x.useCallback(()=>{R(),k.current(),o.current?.focus()},[R,o]),A=x.useCallback(()=>{w.current=!0,C(),v.current()},[C]),M=x0({...s,onHide:T,onShow:A}),{hide:L,show:D}=M,j=x.useCallback(()=>(u.current=l,l==="bottom-sheet"?(C(),v.current(),p.current=!0,g(!0),f(!0),!0):(g(!1),w.current=!1,D(),w.current)),[C,l,D]),I=x.useCallback(()=>{p.current?(R(),p.current=!1,f(!1),k.current()):L()},[L,R]),z=x.useCallback(q=>{E(),!p.current&&u.current==="bottom-sheet"&&g(!1)},[E]),H=x.useCallback(q=>{q?j():I()},[I,j]),F=M.isOpen||d;return{activePresentation:F||y?u.current:l,hide:I,isOpen:F,isSheetOpen:d,isSheetPresented:y,isTriggerFocusRingSuppressed:S,onSheetOpenChange:H,onTriggerFocus:z,popover:M,show:j}}const MV={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}},zV={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}},NV={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},XE={warning:"warning",error:"error",success:"success"},ZE={warning:"warning",error:"error",success:"success"},LV={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"};function DV({option:e}){return m.jsx(r6,{icon:e.icon,label:e.label??e.value,description:e.description})}function Z1(e,t){return t?(e.label??e.value).toLowerCase().includes(t.toLowerCase()):!0}function QE(e,t){return t?e.filter(r=>Z1(r,t)):e}function Zl(e){const t=zt(),r=ja(),{label:s,isLabelHidden:o=!1,description:l,isOptional:u=!1,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,disabledMessage:y,options:g,value:k,onChange:v,changeAction:w,isLoading:S=!1,placeholder:E,size:R,variant:C="input",status:T,statusVariant:A="attached",labelTooltip:M,startIcon:L,htmlName:D,renderOption:j,renderValue:I,indicatorPosition:z="end",hasSearch:H=!1,searchPlaceholder:F,emptyText:B,emptySearchText:q,placement:U,presentation:_="popover",isDefaultOpen:P=!1,width:G,containerXstyle:Y,containerClassName:X,containerStyle:ee,controlXstyle:Q,controlClassName:oe,controlStyle:O,ref:Z,onFocus:de,onKeyDown:ue,"aria-describedby":ve,hasClear:xe,id:$e,...te}=e,{rest:pe,container:Re}=mx("Selector",te,{containerXstyle:Y,containerClassName:X,containerStyle:ee}),Te=Ed({isRequired:d,isOptional:u}),Ce=E??t("@astryx.selector.placeholder"),Me=F??t("@astryx.selector.searchPlaceholder"),je=B??t("@astryx.selector.empty"),He=q??t("@astryx.selector.emptySearchResults"),at=xe===!0,pt=yc(R,"md"),et=C==="ghost"&&A==="attached"?"detached":A,Ve=p&&!f,yt=k===null?void 0:k,Pe=x.useId(),rt=$e??Pe,lt=x.useId(),st=x.useRef(null),ct=x.useId(),we=x.useId(),Ge=x.useId(),Pt=x.useId(),bn=x.useId(),gn=x.useRef(null),An=x.useRef(null),Vt=xn(An,Z),Yn=x.useRef(null),Qt=gx(),[kn,Ye]=x.useState(""),Le=x.useRef(""),Jt=kn.length>0,[,un]=x.useTransition(),[rn,cr]=x.useOptimistic(yt),Za=S||rn!==yt,Cr=kc(),Br=f&&!!y,Xn=Ka({placement:"above",focusTrigger:"always",isEnabled:Br}),Gt=Ka({placement:"above",isEnabled:et==="tooltip"&&!!T?.message}),{ariaLabelledBy:ur,ariaDescribedBy:Mn}=_b(Ge,[l?ct:null,!Qt&&et!=="tooltip"&&T?.message?we:null,et==="tooltip"&&T?.message?Gt.describedBy:null,Br?Xn.describedBy:null,Ve?Pt:null],Qt),zn=x.useMemo(()=>bV(g),[g]);x.useEffect(()=>{zn.some(Ee=>Ee.action!=null)&&Hp()},[zn]);const K=x.useMemo(()=>QE(zn,kn),[zn,kn]),W=x.useMemo(()=>zn.findIndex(Ee=>Ee.value===rn),[zn,rn]),se=x.useMemo(()=>W>=0?zn[W]:void 0,[zn,W]),ge=x.useRef(null),ke=x.useRef(()=>{}),Ie=x.useCallback(()=>{Ye(""),Le.current="",ke.current(),Cr("")},[Cr]),De=x.useCallback(()=>{H&&requestAnimationFrame(()=>{const Ee=Yn.current;Ee&&(Ee.focus(),Ee.setSelectionRange(Ee.value.length,Ee.value.length))})},[H]),Se=AV({presentation:_,onHide:Ie,onShow:De,triggerRef:An,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:"none",surfaceTarget:"selector-popup"}}),{popover:ze}=Se,Ke=Se.hide,Be=Se.isOpen,Ze=xL(ze.id,ze.isOpen);x.useEffect(()=>{P&&!Ve&&Se.show()},[]),x.useEffect(()=>{Ve&&Be&&Ke()},[Ve,Be,Ke]);const Fe=x.useCallback(Ee=>{if(Ee.length===0){Cr("");return}if(S){Cr("");return}const it=QE(zn,Ee).length;it!==0&&Cr(t("@astryx.selector.resultCount",{count:it}))},[Cr,S,zn,t]),wt=x.useCallback(Ee=>{Ye(Ee),Le.current=Ee,Fe(Ee)},[Fe]),At=Se.isOpen&&!S&&K.length===0;mV(st,At,kn);const Ft=U==null&&!H,{offset:$t,isPositioned:bt}=wV({isOpen:ze.isOpen&&Ft,selectedItemIndex:W,listboxId:lt,listboxRef:ge,anchorRef:gn}),mn=Ft?$t:0,Nn=Ft?bt:!0,Ra=U??"below",vn=mn>0?{marginBlockStart:`-${mn}px`}:void 0,Bt=x.useCallback(()=>{ke.current(),v?.(null),w&&un(async()=>{cr(void 0),await w(null)})},[v,w,un,cr]),Yt=x.useCallback(Ee=>{const it=Le.current+Ee;Le.current=it,Ye(it),Fe(it)},[Fe]),wn=x.useCallback(Ee=>{v?.(Ee),w&&un(async()=>{cr(Ee),await w(Ee)})},[v,w,un,cr]),{highlightedIndex:Zn,setHighlightedIndex:Hr,getItemId:Fr,onTriggerClick:bs,onKeyDown:Qn,onItemSelect:ot,onItemMouseEnter:an}=SV({selectableItems:K,value:rn,isDisabled:f||Ve,isOpen:Se.isOpen,hasSearch:H,onOpen:x.useCallback(()=>Se.show(),[Se]),onClose:Se.hide,onSelect:wn,onClear:at?Bt:void 0,onSearchSeed:Yt,listboxId:lt}),dn=T0({getItemLabels:()=>zn.map(Ee=>Ee.label??Ee.value),isDisabled:Ee=>zn[Ee]?.disabled===!0,getCurrentIndex:()=>Se.isOpen?Zn:W,onMatch:Ee=>{const it=zn[Ee];Se.isOpen?Hr(Ee):it.value!==rn&&(wn(it.value),Cr(it.label??it.value))}});ke.current=dn.reset;const Ln=x.useCallback(Ee=>{const it=/-item-(\d+)$/.exec(Ee.id);return it==null?-1:Number(it[1])},[]),Aa=I0(ge,K.length,Se.isOpen),Ur=fx({menuRef:ge,itemSelector:'[role="option"]:not([aria-disabled="true"])',onHighlight:Ee=>{if(Ee==null){Hr(-1);return}const it=Ln(Ee),oa=K[it];oa!=null&&an(oa,it)},onActivate:Ee=>{const it=K[Ln(Ee)];it!=null&&ot(it)},onDismiss:Se.hide}),tt=x.useCallback(Ee=>{if(!(f||Ve)){if(!H&&dn.onKeyDown(Ee)){Ee.preventDefault();return}Qn(Ee)}},[f,Ve,H,dn,Qn]),sa=x.useCallback(Ee=>{Ee.stopPropagation(),Bt()},[Bt]),_o=x.useCallback(()=>H?m.jsx(e6,{ref:Yn,id:bn,label:t("@astryx.selector.searchOptions"),clearLabel:t("@astryx.textInput.clearLabel",{label:t("@astryx.selector.searchOptions")}),...he("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:wt,onContainerKeyDown:Ee=>{Ee.target!==Yn.current&&Ee.key==="Tab"&&!Ee.shiftKey&&Qn(Ee)},onKeyDown:Ee=>{if(!pd(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||!Jt)&&Qn(Ee)}},placeholder:Me}):null,[H,bn,lt,kn,Jt,Me,wt,Qn,Se.isOpen,Se.activePresentation,Zn,Fr,C,t]),qo=W4("check"),Ma=x.useCallback((Ee,it)=>{const oa=it===Zn,ia=Ee.value===yt,dr=m.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj",children:m.jsx(qo,{state:ia?"checked":"unchecked",size:"sm",isDisabled:Ee.disabled??!1,...he("selector-check")})}),la=m.jsx("span",{className:"x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli",children:j?j(Ee):m.jsx(DV,{option:Ee})}),$c=z==="start"?m.jsxs(m.Fragment,{children:[dr,la]}):m.jsxs(m.Fragment,{children:[la,dr]});return m.jsx("div",{id:Fr(it),role:"option","aria-selected":ia,"aria-disabled":Ee.disabled,onClick:()=>ot(Ee),onMouseEnter:()=>an(Ee,it),...ye(he("selector-option-row",{size:pt,selected:ia?"selected":null,disabled:Ee.disabled?"disabled":null}),fe(jn.item,NV[pt],oa&&jn.itemHighlighted,ia&&jn.itemSelected,Ee.disabled&&jn.itemDisabled)),children:$c},Ee.value)},[j,z,Zn,pt,yt,Fr,ot,an,qo]),ks=x.useCallback(()=>{const Ee=H&&!!kn;if(K.length===0&&!S)return[m.jsx("div",{ref:st,role:"presentation",...ye(he("selector-empty-state"),{className:"x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib"}),children:Ee?He:je},"empty")];let it=0;const oa=[];for(let ia=0;ia<g.length;ia++){const dr=g[ia];if(yV(dr)){if(Ee)continue;oa.push(m.jsx(Ai,{"aria-hidden":"true",xstyle:jn.divider},`divider-${ia}`))}else if(n6(dr)){const la=[];for(const $c of dr.options){const fr=bp($c);Ee&&!Z1(fr,kn)||(la.push(Ma(fr,it)),it++)}if(la.length===0)continue;oa.push(m.jsxs("div",{role:"group","aria-label":dr.title,children:[dr.title&&m.jsx("div",{"aria-hidden":"true",...ye(he("selector-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:dr.title}),la]},`section-${ia}`))}else if(t6(dr)){const la=bp(dr);if(Ee&&!Z1(la,kn))continue;oa.push(Ma(la,it)),it++}}return oa},[g,Ma,H,kn,K,S,je,He]),Cx=T!=null&&et!=="detached",Ec=T!=null&&et==="tooltip"&&!!T.message,Td=Qt?"inline":"stacked",Tx=se&&I?m.jsx(_0,{value:Td,children:m.jsx("span",{...{0:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h"},1:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r"}}[!!Qt<<0],children:I(se)})}):m.jsxs(m.Fragment,{children:[!L&&se?.icon!=null&&Ca(se.icon,{size:"sm",color:"secondary"}),m.jsx("span",{className:"x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h",children:se?.label??Ce})]}),St=H?m.jsxs("div",{children:[_o(),m.jsx(Ai,{}),m.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"}}[!!Aa<<1|(Se.activePresentation==="popover"&&C!=="ghost")<<0],children:ks()})]}):m.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"}}[!!Aa<<2|(Se.activePresentation==="popover"&&C!=="ghost")<<1|(Se.activePresentation==="popover"&&!Nn)<<0],children:ks()});let qi=null;Se.activePresentation==="bottom-sheet"?(!Ve||Se.isSheetPresented)&&(qi=m.jsx(a6,{isOpen:Se.isSheetOpen,onOpenChange:Se.onSheetOpenChange,finalFocusRef:An,initialFocusRef:H?Yn:ge,label:s,children:St})):Ve||(qi=ze.render(St,{placement:Ra,alignment:"start",offset:Ft?void 0:Wn["--spacing-1"],xstyle:[jn.popover,gd[Ra]],style:vn}));const Pi={...pe,id:rt,"aria-describedby":[ve,Mn].filter(Boolean).join(" ")||void 0,"aria-labelledby":ur,"aria-required":Te?"true":void 0,"aria-invalid":T?.type==="error"?"true":void 0,"aria-busy":Za||void 0,onKeyDown:Ir(tt,ue),onFocus:Ee=>{de?.(Ee),Se.onTriggerFocus(Ee)},tabIndex:f&&!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|!!Qt<<0]},Po=m.jsxs(m.Fragment,{children:[m.jsxs("div",{ref:Ee=>{gn.current=Ee,ze.triggerRef(Ee),Xn.ref(Ee)},onClick:bs,...r,...ye(he("selector",{variant:C,size:pt,status:T?.type??null,disabled:f?"disabled":null,readonly:Ve?"readonly":null}),fe(cc.base,jn.triggerContainer,zV[pt],C==="ghost"&&jn.triggerGhost,C==="ghost"&&or.backgroundImage,C==="ghost"&&Ps.focusWithin,Se.isTriggerFocusRingSuppressed&&MV.pointerRestoredFocus,f&&cc.disabled,Ve&&jn.triggerReadOnly,C==="ghost"&&f&&jn.triggerGhostDisabled,C==="ghost"&&Ve&&jn.triggerGhostReadOnly,!se&&jn.triggerPlaceholder,C!=="ghost"&&T&&M0[T.type],C!=="ghost"&&T&&!f&&z0[T.type],C!=="ghost"&&Qt&&N0.inGroup,Qt&&jn.triggerInGroup,Q),oe,O),children:[L&&Ca(L,{size:"sm",color:"secondary"}),Qt&&m.jsx(Vs,{id:Ge,children:s}),Ve&&m.jsx(Vs,{id:Pt,children:t("@astryx.input.readOnly")}),m.jsx("button",{...Pi,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:f&&!Br,"aria-disabled":Br?"true":void 0,children:Tx}),D!=null&&m.jsx("input",{type:"hidden",name:D,value:k??"",disabled:f}),Za&&m.jsx(Do,{size:"sm"}),at&&k!=null&&!f&&!Ve&&m.jsx(AU,{...Ze,label:t("@astryx.selector.clearLabel",{label:s}),onClick:sa}),Cx?Ec?m.jsx("button",{ref:Gt.ref,type:"button","aria-label":t(LV[T.type]),"aria-describedby":Gt.describedBy,...Ze,onClick:Ee=>Ee.stopPropagation(),...fe(Ps.focusVisible,jn.statusButton),children:m.jsx(ft,{icon:XE[T.type],size:"sm",color:ZE[T.type],xstyle:jn.triggerIcon})}):m.jsx(ft,{icon:XE[T.type],size:"sm",color:ZE[T.type],xstyle:jn.triggerIcon}):Ve?null:m.jsx(ft,{icon:"chevronDown",size:"sm",color:"secondary",xstyle:[jn.triggerIcon,jn.triggerIconRotation,Se.isOpen&&jn.triggerIconOpen],...he("selector-indicator-icon",{state:Se.isOpen?"expanded":"collapsed"})})]}),qi,Ec&&Gt.renderTooltip(T?.message??""),Br&&Xn.renderTooltip(y)]});return Qt?Po:m.jsx(vc,{label:s,isLabelHidden:o,description:l,inputID:rt,descriptionID:l?ct:void 0,isOptional:u,isRequired:d,isDisabled:f,status:T?{type:T.type,message:T.message,messageID:T.message?we:void 0}:void 0,statusVariant:et,labelTooltip:M,width:G,...Re,children:Po})}Zl.displayName="Selector";const JE=new Map;function i6(e){const t=e??"";let r=JE.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(d=>d.type==="integer").map(d=>d.value.length),u=l.length>1;r={group:(o.find(d=>d.type==="group")?.value??",").normalize("NFKC"),decimal:o.find(d=>d.type==="decimal")?.value??".",primaryGroupSize:u?l[l.length-1]:3,secondaryGroupSize:u?l[l.length-2]:3},JE.set(t,r)}return r}const l6=new RegExp("\\p{Nd}","u"),e$=new RegExp("\\p{Sc}","u"),OV=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,t$="−‒–-",IV=",.' ’٫٬",_V=new RegExp(`^[0-9${IV}]+$`),qV=/^(?:\d+\.?\d*|\.\d+)$/;function PV(e){const t=e.codePointAt(0);if(t==null)return null;for(let r=t;t-r<10;r--)if(!l6.test(String.fromCodePoint(r-1)))return t-r;return null}function BV(e){let t="";for(const r of e){if(!l6.test(r)){t+=r;continue}const s=PV(r);if(s==null)return null;t+=String(s)}return t}function n$(e,t,r,s,o,l){let u=e,d=null;if(r!==""&&e.includes(r)){const p=e.indexOf(r);if(e.includes(r,p+r.length)||(u=e.slice(0,p),d=e.slice(p+r.length),!/^\d*$/.test(d)))return null}let f;if(t!==""&&u.includes(t)){const p=u.split(t);if(p.length-1<l||!p.every(k=>/^\d+$/.test(k)))return null;const y=p[0];if(p[p.length-1].length!==s||y.length>o)return null;for(let k=1;k<p.length-1;k++)if(p[k].length!==o)return null;f=p.join("")}else{if(!/^\d*$/.test(u))return null;f=u}return f===""&&(d==null||d==="")?null:d==null?f:`${f}.${d}`}function HV(e){return/^[\s'\u2019]$/.test(e)}function FV(e,t){if(!_V.test(e))return null;const{group:r,decimal:s,primaryGroupSize:o,secondaryGroupSize:l}=i6(t),u=n$(e,r,s,o,l,1);if(u!=null)return u;if(qV.test(e))return e;const d=[...new Set(e.replace(/\d/g,""))];if(d.length===0||d.length>2)return null;for(const f of d){const p=e.split(f).length-1,y=HV(f)?1:2;if(p<y)continue;const g=d.find(v=>v!==f)??"";if(g!==""&&e.split(g).length-1!==1)continue;const k=n$(e,f,g,3,3,y);if(k!=null)return k}return null}function UV(e,t){const r=BV(e.normalize("NFKC").replace(OV,""));if(r==null)return null;let s=r.trim(),o=1;const l=/^\((.*)\)$/s.exec(s);l&&(o=-1,s=l[1].trim()),s=r$(s);let u=!1;const d=new RegExp(`^([+${t$}])\\s*`).exec(s);if(d)u=!0,o=d[1]==="+"?o:-o,s=s.slice(d[0].length);else{const S=new RegExp(`\\s*([+${t$}])$`).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=r$(s);let f=0;const p=/\s*[eE]\s*([+-]?\d+)$/.exec(s);p&&(f=Number(p[1]),s=s.slice(0,s.length-p[0].length));const y=s.trim();if(y==="")return null;const g=FV(y,t);if(g==null)return null;const k=Number(g);if(!Number.isFinite(k))return null;const v=f===0?k:Number((k*10**f).toPrecision(15));if(!Number.isFinite(v))return null;const w=o*v;return Object.is(w,-0)?0:w}function r$(e){let t=e.trim();return e$.test(t.charAt(0))&&(t=t.slice(1).trim()),e$.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function VV(e,t){const{decimal:r}=i6(t),s=String(e);return r==="."?s:s.replace(".",r)}function c6(e,t){const r=e.trim();if(r==="")return null;const s=UV(r,t.locale);return s==null||!Number.isFinite(s)||t.isIntegerOnly&&!Number.isInteger(s)?null:s}function GV(e,t){const r=c6(e,t);return r===null||t.min!=null&&r<t.min||t.max!=null&&r>t.max?null:r}function KV(e,t){if(e.trim()==="")return t.hasClear?{type:"clear"}:{type:"revert"};const r=c6(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 Eo={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}},WV={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function a$(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 YV(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function XV({currentValue:e,direction:t,min:r,max:s,step:o,isIntegerOnly:l}){const u=YV(o,l),d=r!=null&&(!l||Number.isInteger(r))?r:0;let f;if(e==null)f=t===1?r??0:s??0,l&&(f=t===1?Math.ceil(f):Math.floor(f));else{const y=(e-d)/u,g=Number.EPSILON*Math.max(1,Math.abs(y))*4,k=t===1?Math.floor(y+g)+1:Math.ceil(y-g)-1;f=d+k*u}const p=Math.min(12,Math.max(a$(u),a$(d)));return f=Number(f.toFixed(p)),r!=null&&(f=Math.max(r,f)),s!=null&&(f=Math.min(s,f)),!Number.isFinite(f)||l&&!Number.isInteger(f)?e:Object.is(f,-0)?0:f}function Q1({label:e,isLabelHidden:t=!1,description:r,isOptional:s=!1,isRequired:o=!1,isDisabled:l=!1,isReadOnly:u=!1,disabledMessage:d,startIcon:f,labelIcon:p,status:y,statusVariant:g="attached",size:k,onChange:v,value:w,placeholder:S,labelTooltip:E,hasAutoFocus:R=!1,htmlName:C,autoComplete:T,min:A,max:M,step:L,formatValue:D,isWheelEnabled:j=!0,hasNumberSteppers:I=!1,units:z,isIntegerOnly:H=!1,onFocus:F,onBlur:B,hasClear:q,onEnter:U,onKeyDown:_,width:P,containerXstyle:G,containerClassName:Y,containerStyle:X,controlXstyle:ee,controlClassName:Q,controlStyle:oe,ref:O,id:Z,"aria-describedby":de,...ue}){const{rest:ve,container:xe}=mx("NumberInput",ue,{containerXstyle:G,containerClassName:Y,containerStyle:X}),$e=ja(),te=zt(),pe=PD(),Re=Ed({isRequired:o,isOptional:s}),Te=yc(k,"md"),Ce=x.useId(),Me=Z??Ce,je=x.useId(),He=x.useId(),at=x.useId(),pt=x.useId(),et=x.useRef(null),Ve=x.useRef(null),yt=gx(),[Pe,rt]=x.useState(null),[lt,st]=x.useState(!1),ct=l&&!!d,we=Ka({placement:"above",focusTrigger:"always",isEnabled:ct}),{statusIcon:Ge,describedBy:Pt}=B4({status:y,statusVariant:g,isInGroup:!!yt}),{ariaLabelledBy:bn,ariaDescribedBy:gn}=_b(je,[r?He:null,!yt&&g!=="tooltip"&&y?.message?at:null,Pt,z?pt:null,ct?we.describedBy:null],yt),An=x.useCallback(W=>GV(W,{min:A,max:M,isIntegerOnly:H,locale:pe}),[H,pe,M,A]),Vt=x.useMemo(()=>w==null?"":D?.(w)??String(w),[D,w]),Yn=x.useMemo(()=>Pe!==null?Pe:w==null?"":lt?VV(w,pe):Vt,[Vt,lt,pe,Pe,w]),Qt=x.useMemo(()=>Pe===null||!Pe.trim()?!0:An(Pe)!==null,[Pe,An]),kn=x.useCallback(W=>{l||u||rt(W.target.value)},[l,u]),Ye=x.useCallback(W=>{st(!0),F?.(W)},[F]),Le=x.useCallback(W=>{if(Pe===null)return;const se=KV(Pe,{min:A,max:M,isIntegerOnly:H,locale:pe,hasClear:!!q});(W==="blur"||se.type==="commit"&&se.didClamp)&&rt(null),se.type==="clear"?q&&w!=null&&v(null):se.type==="commit"&&se.value!==w&&v(se.value)},[q,H,pe,M,A,v,Pe,w]),Jt=x.useCallback(W=>{Le("blur"),st(!1),B?.(W)},[Le,B]),un=x.useMemo(()=>Pe===null?w??null:Pe.trim()===""?null:An(Pe)??w??null,[An,Pe,w]),rn=x.useCallback(W=>XV({currentValue:un,direction:W,min:A,max:M,step:L,isIntegerOnly:H}),[H,M,A,L,un]),cr=x.useCallback(W=>{if(l||u)return;const se=rn(W);se!=null&&(rt(null),se!==w&&v(se))},[rn,l,u,v,w]),Za=x.useCallback(W=>{if(pd(W.nativeEvent))return;if(!(W.altKey||W.ctrlKey||W.metaKey||W.shiftKey)&&(W.key==="ArrowUp"||W.key==="ArrowDown")){if(_?.(W),W.defaultPrevented)return;W.preventDefault(),cr(W.key==="ArrowUp"?1:-1);return}W.key==="Enter"&&(Le("Enter"),U?.()),_?.(W)},[Le,U,_,cr]),Cr=x.useCallback(W=>{if(W==null||!j)return;const se=ge=>{document.activeElement!==W||l||u||ge.deltaY===0||ge.altKey||ge.ctrlKey||ge.metaKey||ge.shiftKey||(ge.preventDefault(),ge.stopPropagation(),cr(ge.deltaY<0?1:-1))};return W.addEventListener("wheel",se,{passive:!1}),()=>W.removeEventListener("wheel",se)},[l,u,j,cr]),Br=x.useMemo(()=>Ib(O,et,Cr),[O,Cr]),Xn=rn(1)!==un,Gt=rn(-1)!==un,ur=x.useCallback(W=>{q&&v(null),rt(null),!W||W.detail===0?et.current?.focus():requestAnimationFrame(()=>{et.current?.focus({preventScroll:!0})})},[q,v]),{onClick:Mn,onMouseUp:zn}=A0({containerRef:Ve,inputRef:et,disabled:l}),K=m.jsxs("div",{ref:W=>{Ve.current=W,we.ref(W)},onClick:Mn,onMouseUp:zn,...ye(he("number-input",{size:Te,status:y?.type??null,disabled:l?"disabled":null,readonly:u?"readonly":null}),fe(cc.base,Eo.wrapper,I&&Eo.wrapperWithNumberSteppers,WV[Te],l&&cc.disabled,y&&M0[y.type],y&&!l&&z0[y.type],y&&F4[y.type],yt&&N0.inGroup,ee),Q,oe),children:[f&&Ca(f,{size:"sm",color:"secondary"}),yt&&m.jsx(Vs,{id:je,children:e}),m.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:Jt,onKeyDown:Za,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":M??void 0,"aria-valuenow":w??void 0,"aria-valuetext":w==null||!D?void 0:Vt,"aria-describedby":[de,gn].filter(Boolean).join(" ")||void 0,"aria-required":Re?"true":void 0,"aria-invalid":y?.type==="error"||!Qt?"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|!Qt<<0]}),D&&C&&!l&&m.jsx("input",{type:"hidden",name:C,value:w==null?"":String(w)}),z&&m.jsx("span",{id:pt,className:"x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s",children:z}),m.jsx(Vs,{as:"div",role:"alert","aria-live":"assertive",children:Qt?"":"Invalid number"}),q&&w!=null&&!l&&!u&&m.jsx(xx,{label:te("@astryx.numberInput.clearLabel",{label:e}),onClick:ur}),Ge,I&&m.jsxs("div",{className:"xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b",children:[m.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Xn,"aria-label":te("@astryx.numberInput.incrementLabel",{label:e}),onPointerDown:W=>W.preventDefault(),onClick:()=>{et.current?.focus(),cr(1)},...fe(Eo.numberStepperButton,or.backgroundImage,(l||u||!Xn)&&Eo.numberStepperButtonDisabled),children:m.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit",xstyle:Eo.incrementIcon})}),m.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Gt,"aria-label":te("@astryx.numberInput.decrementLabel",{label:e}),onPointerDown:W=>W.preventDefault(),onClick:()=>{et.current?.focus(),cr(-1)},...fe(Eo.numberStepperButton,or.backgroundImage,Eo.decrementButton,(l||u||!Gt)&&Eo.numberStepperButtonDisabled),children:m.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit"})})]})]});return yt?m.jsxs(m.Fragment,{children:[K,ct&&we.renderTooltip(d)]}):m.jsxs(vc,{...xe,label:e,isLabelHidden:t,description:r,inputID:Me,descriptionID:r?He:void 0,isOptional:s,isRequired:o,isDisabled:l,labelIcon:p,status:y?{type:y.type,message:y.message,messageID:y.message?at:void 0}:void 0,statusVariant:g,labelTooltip:E,width:P,children:[K,ct&&we.renderTooltip(d)]})}Q1.displayName="NumberInput";const kp={all:["data-transfer"],status:()=>[...kp.all,"status"]};function ZV(){return Hn("/api/data-transfer/status")}async function QV(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 S0(await u6(t),t.status);const r=aG(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:Wy(t,"x-foundry-provider-count"),captureCount:Wy(t,"x-foundry-capture-count"),jobCount:Wy(t,"x-foundry-job-count")}}}catch(t){return q0(t)}}function JV(){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 eG(e,t){const r=new FormData;r.append("file",e),r.append("passphrase",t);try{return{ok:!0,data:await Hn("/api/data-transfer/inspect",{method:"POST",body:r})}}catch(s){return q0(s)}}async function tG(e){const t=await fetch(`/api/data-transfer/imports/${e}`,{method:"DELETE"});if(!t.ok)throw S0(await u6(t),t.status)}async function nG(e){try{return{ok:!0,data:await Hn(`/api/data-transfer/imports/${e}/commit`,{method:"POST"})}}catch(t){return q0(t)}}function rG(){location.reload()}function q0(e){const t=C4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}function aG(e){const t=e.headers.get("content-disposition")??"";return/filename="([^"]+)"/u.exec(t)?.[1]??"foundry.foundry-backup"}function Wy(e,t){return Number(e.headers.get(t)??0)}async function u6(e){try{return await e.json()}catch{return null}}const P0=x.createContext(null);P0.displayName="DialogContext";function sG(){return x.use(P0)}function s$(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||oc()!=="pointer"){e.focus();return}e.matches(":focus-visible")&&e.blur(),e.focus({focusVisible:!1})}function oG(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 _s={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}},o$=Wn["--spacing-4"],iG=`calc(100dvw - ${o$} - ${o$})`,lG=`min(100%, ${iG})`;function i$(e){return typeof e=="number"?`${e}px`:e}function cG(e,t){return{width:i$(e),maxWidth:lG,maxHeight:i$(t)}}const uG={kogj98:"x1ghz6dp",$$css:!0},Yy={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)=>[uG,{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 xh(e){return typeof e=="number"?`${e}px`:e}function dG(e){const{top:t,bottom:r,start:s,end:o}=e;return{top:t!==void 0?xh(t):"auto",bottom:r!==void 0?xh(r):"auto",insetInlineStart:s!==void 0?xh(s):"auto",insetInlineEnd:o!==void 0?xh(o):"auto"}}function bx({isOpen:e,isInline:t=!1,onOpenChange:r,width:s=400,maxHeight:o="75dvh",position:l,variant:u="standard",purpose:d="info",padding:f,children:p,xstyle:y,className:g,style:k,ref:v,...w}){const S=f==null,E=f??4,R=Bb[E],C=u==="fullscreen",T=C?null:cG(s,o),A=x.useId(),M=x.useMemo(()=>({isInline:t,titleId:A}),[t,A]),L=w["aria-label"]!=null||w["aria-labelledby"]!=null,D=x.useRef(null),j=x.useCallback(ee=>{if(D.current=ee,!ee||L)return;ee.querySelector(`#${CSS.escape(A)}`)!=null?ee.setAttribute("aria-labelledby",A):ee.removeAttribute("aria-labelledby")},[A,L]),I=xn(v,j),z=x.useRef(null);Up();const H=d!=="required",F=d==="info";x.useEffect(()=>{if(t)return;const ee=D.current;if(ee)if(e){z.current=document.activeElement;const Q=z.current;if(Q&&Q!==document.body){const oe=oG(Q);ee.style.setProperty("--dialog-dir-x",`${oe.x}px`),ee.style.setProperty("--dialog-dir-y",`${oe.y}px`)}else ee.style.setProperty("--dialog-dir-x","0px"),ee.style.setProperty("--dialog-dir-y","16px");if(!ee.open){ee.showModal();const oe=ee.querySelector("[data-autofocus]");oe&&s$(oe)}}else ee.open&&ee.close(),z.current&&s$(z.current),z.current=null},[e,t]),TH(D,e&&!t),cU(e&&!t);const{shouldDismissOnCloseRequest:B}=Gp({isActive:e,isEnabled:!t,escapeBehavior:H?"close":"block",onDismiss:()=>{r(!1)}}),q=x.useRef(!1);x.useEffect(()=>{const ee=D.current?.querySelector(`#${CSS.escape(A)}`)!=null;e&&!t&&!L&&!ee&&!q.current&&(q.current=!0,Ea())},[e,t,L,A]);const U=ee=>{ee.target===ee.currentTarget&&F&&r(!1)},_=ee=>{ee.preventDefault(),B()&&H&&r(!1)},P=m.jsx("div",{...fe(_s.inner,...l0(S?{useThemeDefault:"dialog",maxHeight:T?.maxHeight}:{paddingInnerX:R,paddingInnerY:R,paddingOuterX:R,paddingOuterY:R,maxHeight:T?.maxHeight}),!S&&E!==4&&Ni[E],!S&&E!==4&&Ei[E],!S&&E!==4&&Mo[E],!S&&E!==4&&Us[E],C&&S&&_s.fullscreenSafeArea),children:m.jsx(P0,{value:M,children:p})}),G=l!=null&&!C,{open:Y,...X}=w;return t?e?m.jsx("div",{...X,...ye(he("dialog",{variant:u}),fe(rc.reset,ac.reset,_s.inlineWrapper,Zu.reset,T&&Yy.sizing(T.width,T.maxWidth,T.maxHeight),C&&_s.fullscreen,y),g,k),"data-testid":w["data-testid"],children:m.jsx(Qu,{children:m.jsx(nc,{children:P})})}):null:m.jsx("dialog",{ref:I,...X,...ye(he("dialog",{variant:u}),pn.focusVisible(rc.reset,ac.reset,_s.dialog,Zu.reset,e&&_s.open,_s.backdrop,T&&Yy.sizing(T.width,T.maxWidth,T.maxHeight),G&&(()=>{const ee=dG(l);return Yy.position(ee.top,ee.insetInlineStart,ee.insetInlineEnd,ee.bottom)})(),C&&_s.fullscreen,C&&e&&_s.fullscreenOpen,y),g,k),onClick:U,onCancel:_,"aria-modal":"true",...d==="required"?{role:"alertdialog"}:void 0,children:m.jsx(Qu,{children:m.jsx(nc,{children:P})})})}bx.displayName="Dialog";const fG={titleFocusable:{kI3sdo:"x1a2a7pz",$$css:!0}};function B0({title:e,subtitle:t,onOpenChange:r,startContent:s,endContent:o,endContentEdgeCompensation:l,hasDivider:u,xstyle:d,className:f,style:p,ref:y,...g}){const k=zt(),v=x.useRef(null),w=sG(),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 x.useEffect(()=>{S&&v.current&&v.current.focus()},[S]),m.jsx(Xh,{ref:y,hasDivider:u,xstyle:d,className:f,style:p,...g,children:m.jsxs("div",{...ye(he("dialog-header"),{className:"x78zum5 x1cy8zhl x1qughib xjcht0a"}),children:[s&&m.jsx("div",{...ye(he("dialog-header-start-content"),{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"}),children:s}),m.jsxs("div",{...ye(he("dialog-header-title-block"),{className:"x78zum5 xdt5ytf xsn7fz1 x98rzlu xeuugli xqixskq"}),children:[m.jsx(Oo,{ref:v,id:E,level:2,tabIndex:-1,xstyle:fG.titleFocusable,children:e}),R&&m.jsx(Je,{type:"body",size:"sm",color:"secondary",children:t})]}),(o||r)&&m.jsxs("div",{...ye(he("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&&m.jsx(jt,{variant:"ghost",label:k("@astryx.dialog.close"),tooltip:k("@astryx.dialog.close"),icon:m.jsx(ft,{icon:"close",color:"inherit",...he("dialog-header-close-icon")}),onClick:()=>{r?.(!1)},isIconOnly:!0})]})]})})}B0.displayName="DialogHeader";function d6({passphrase:e,confirmation:t,onPassphraseChange:r,onConfirmationChange:s,onEnter:o,isDisabled:l}){const{t:u}=cn();return m.jsxs(We,{gap:3,children:[m.jsx(Fa,{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"}),m.jsx(Fa,{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 hG({onClose:e}){const{t}=cn(),r=Io(),[s,o]=x.useState(""),[l,u]=x.useState(""),d=Er({mutationFn:()=>QV(s),onSuccess:p=>{if(!p.ok){r({body:t(X1(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"})}}),f=()=>{s!==l||s.length===0||d.isPending||d.mutate()};return m.jsx(bx,{isOpen:!0,onOpenChange:p=>{!p&&!d.isPending&&e()},width:560,padding:5,purpose:"form",children:m.jsx(Li,{header:m.jsx(B0,{title:t("dataTransfer.exportTitle"),subtitle:t("dataTransfer.exportSubtitle"),onOpenChange:()=>{d.isPending||e()}}),content:m.jsx(Di,{children:m.jsxs(We,{gap:5,children:[m.jsx(d6,{passphrase:s,confirmation:l,onPassphraseChange:o,onConfirmationChange:u,onEnter:f,isDisabled:d.isPending}),m.jsx(Gs,{padding:2,variant:"muted",children:m.jsxs(Rt,{gap:2,align:"start",children:[m.jsx(ft,{icon:VP,size:"sm",color:"secondary"}),m.jsx(Je,{type:"supporting",color:"secondary",children:t("dataTransfer.passphraseWarning")})]})})]})}),footer:m.jsx(c0,{children:m.jsxs(Rt,{gap:2,hAlign:"end",children:[m.jsx(jt,{label:t("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:d.isPending,onClick:e}),m.jsx(jt,{label:t("dataTransfer.exportAction"),variant:"primary",size:"sm",isLoading:d.isPending,isDisabled:s!==l||s.length===0,onClick:f})]})})})})}function Nl({label:e,value:t}){return m.jsxs(Rt,{gap:2,children:[m.jsx(Je,{type:"supporting",color:"secondary",children:e}),m.jsx(Je,{type:"label",children:String(t)})]})}function pG({file:e,fileName:t,onClose:r}){const{t:s,locale:o}=cn(),l=Io(),[u,d]=x.useState(""),[f,p]=x.useState(""),[y,g]=x.useState(null),[k,v]=x.useState("passphrase"),[w,S]=x.useState(!1),E=Er({mutationFn:()=>eG(e,u),onSuccess:z=>{if(!z.ok){l({body:s(X1(z.error.code)),type:"error",uniqueID:`data-transfer-import-${z.error.code}`});return}g(z.data),d(""),v("preview")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-inspect-error"})}}),R=Er({mutationFn:z=>nG(z),onSuccess:z=>{if(!z.ok){l({body:s(X1(z.error.code)),type:"error",uniqueID:`data-transfer-commit-${z.error.code}`}),v("preview");return}v("complete")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-commit-error"}),v("preview")}}),C=u===f&&u.length>0,T=k==="importing"||k==="complete",A=()=>{T||R.isPending||(y&&tG(y.importId),r())},M=()=>{!C||E.isPending||E.mutate()},L=()=>{!y||R.isPending||(v("importing"),R.mutate(y.importId))},D=()=>{S(!0);try{rG()}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")}})(),I=y?new Intl.DateTimeFormat(o,{dateStyle:"medium",timeStyle:"short"}).format(new Date(y.exportedAt)):"";return m.jsx(bx,{isOpen:!0,onOpenChange:z=>{z||A()},width:520,padding:5,purpose:T?"required":"form",children:m.jsx(Li,{header:m.jsx(B0,{title:j,subtitle:t,onOpenChange:T?void 0:A}),content:m.jsxs(Di,{children:[k==="passphrase"&&m.jsxs(We,{gap:4,children:[m.jsx(d6,{passphrase:u,confirmation:f,onPassphraseChange:d,onConfirmationChange:p,onEnter:M,isDisabled:E.isPending}),m.jsx(Gs,{padding:3,variant:"muted",children:m.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importPassphraseDescription")})})]}),k==="preview"&&y&&m.jsxs(We,{gap:4,children:[m.jsx(Gs,{padding:3,variant:"muted",children:m.jsxs(We,{gap:2,children:[m.jsx(Nl,{label:s("dataTransfer.exportedAt"),value:I}),m.jsx(Nl,{label:s("dataTransfer.appVersion"),value:y.appVersion}),m.jsx(Nl,{label:s("dataTransfer.schemaVersion"),value:y.databaseSchemaVersion}),m.jsx(Nl,{label:s("dataTransfer.providers"),value:y.providerCount}),m.jsx(Nl,{label:s("dataTransfer.captures"),value:y.captureCount}),m.jsx(Nl,{label:s("dataTransfer.jobs"),value:y.jobCount})]})}),m.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.replaceWarning")})]}),k==="importing"&&m.jsxs(We,{hAlign:"center",vAlign:"center",gap:4,paddingBlock:8,children:[m.jsx(Do,{size:"lg",label:s("dataTransfer.importingDescription")}),m.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importingHint")})]}),k==="complete"&&m.jsxs(We,{gap:3,children:[m.jsx(Je,{children:s("dataTransfer.restartDescription")}),m.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.restartHint")})]})]}),footer:m.jsxs(c0,{children:[k==="passphrase"&&m.jsxs(Rt,{gap:2,hAlign:"end",children:[m.jsx(jt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:E.isPending,onClick:A}),m.jsx(jt,{label:s("dataTransfer.inspectAction"),variant:"primary",size:"sm",isLoading:E.isPending,isDisabled:!C,onClick:M})]}),k==="preview"&&m.jsxs(Rt,{gap:2,hAlign:"end",children:[m.jsx(jt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",onClick:A}),m.jsx(jt,{label:s("dataTransfer.importAction"),variant:"destructive",size:"sm",isLoading:R.isPending,onClick:L})]}),k==="complete"&&m.jsx(Rt,{gap:2,hAlign:"end",children:m.jsx(jt,{label:s("dataTransfer.restartAction"),variant:"primary",size:"sm",isLoading:w,onClick:D})})]})})})}function xG(e){const[t,r]=x.useState(""),[s,o]=x.useState(0),l=t.trim().toLowerCase(),u=l.length>0,d=x.useMemo(()=>u?nV.filter(p=>rV(p,l)):[],[u,l]);return{query:t,setQuery:r,isActive:u,results:d,activeIndex:s,setActiveIndex:o,onKeyDown:p=>{if(t&&p.key==="Escape"){p.preventDefault(),r("");return}if(!(!u||d.length===0))switch(p.key){case"ArrowDown":{p.preventDefault(),o(y=>(y+1)%d.length);break}case"ArrowUp":{p.preventDefault(),o(y=>(y-1+d.length)%d.length);break}case"Enter":{p.preventDefault(),e(d[s].panel);break}}},activeResultId:u&&d.length>0?`settings-search-result-${s}`:void 0}}function l$(e,t){const r=new Date(e);if(Number.isNaN(r.getTime()))return"";const{timeZone:s,pattern:o}=gG(t),l=mG(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,d=>u[d]??d)}function ys(e,t){return{...e,createdAt:l$(e.createdAt,t),updatedAt:l$(e.updatedAt,t)}}function gG(e){const t=e.workspace["language-region"];return{timeZone:t["time-zone"],pattern:t["time-format"]}}function mG(e,t){const r=c$(e,t,"h23"),s=c$(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 c$(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 yG(e="all"){const[t,r]=await Promise.all([Hn(`/api/captures?filter=${e}`),Xa()]);return t.map(s=>ys(s,r))}function bG(){return Hn("/api/captures/counts")}async function kG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}`),Xa()]);return{ok:!0,data:{...t,capture:ys(t.capture,r)}}}catch(t){return Sc(t)}}async function vG(e){try{const[t,r]=await Promise.all([Hn("/api/captures",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Xa()]);return{ok:!0,data:{capture:ys(t,r)}}}catch(t){return Sc(t)}}async function f6(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/recapture`,{method:"POST"}),Xa()]);return{ok:!0,data:ys(t,r)}}catch(t){return Sc(t)}}async function wG(e){try{return await Hn(`/api/captures/${e}`,{method:"DELETE"}),{ok:!0,data:null}}catch(t){return Sc(t)}}async function SG(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})}),Xa()]);return{ok:!0,data:ys(r,s)}}catch(r){return Sc(r)}}async function EG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/jobs`),Xa()]);return{ok:!0,data:t.map(s=>ys(s,r))}}catch(t){return Sc(t)}}function Sc(e){const t=C4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}const gs={all:["providers"],list:()=>[...gs.all,"list"],detail:e=>[...gs.all,"detail",e]};async function $G(){const[e,t]=await Promise.all([Hn("/api/providers"),Xa()]);return e.map(r=>({...ys(r,t),apiKey:"",isInUse:!1}))}async function CG(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)}),Xa()]);return{...ys(r,s),apiKey:""}}async function TG(e){try{const[t,r]=await Promise.all([Hn(`/api/providers/${e}`),Xa()]);return{...ys(t,r),apiKey:""}}catch{return null}}async function u$(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})}),Xa()]);return{...ys(r,s),apiKey:""}}function jG(e){return Hn("/api/providers/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}const $u={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 RG(){const e=qr(),t=ms({queryKey:Ri.current(),queryFn:E0}),r=ms({queryKey:["settings","config-folder"],queryFn:GH}),s=k=>e.setQueryData(Ri.current(),k),o=k=>{s(k),e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:gs.all})},l=Er({mutationFn:WH,onSuccess:s}),u=Er({mutationFn:QH,onSuccess:s}),d=Er({mutationFn:YH,onSuccess:s}),f=Er({mutationFn:XH,onSuccess:o}),p=Er({mutationFn:ZH,onSuccess:o}),y={theme:t.data?.workspace.appearance["color-theme"]??$u.theme,language:t.data?.workspace["language-region"].language??$u.language,timeFormat:t.data?.workspace["language-region"]["time-format"]??$u.timeFormat,timezone:t.data?.workspace["language-region"]["time-zone"]??$u.timezone,library:t.data?.features.library??$u.library},g=(k,v)=>{switch(k){case"theme":{l.mutate(v);break}case"language":{d.mutate(v);break}case"timeFormat":{f.mutate(v);break}case"timezone":{p.mutate(v);break}case"library":{u.mutate(v);break}}};return{settings:y,configFolderPath:r.data??"",update:g}}function kx({title:e,children:t}){const r=(Array.isArray(t)?t:[t]).filter(s=>!!s);return m.jsxs(We,{gap:1.5,children:[e!=null&&m.jsx(Je,{type:"supporting",weight:"semibold",color:"secondary",children:e}),m.jsx(Gs,{padding:0,width:"100%",variant:"muted",children:m.jsx(We,{as:"ul",role:"list",gap:0,children:r.map((s,o)=>{const l=o>0;return m.jsxs(We,{as:"li",gap:0,children:[l&&m.jsx(Ai,{variant:"subtle"}),m.jsx(We,{children:s})]},x.isValidElement(s)?s.key:void 0)})})})]})}const AG=4,Hu=260,Fh={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 Ua({title:e,titleAccessory:t,description:r,icon:s,control:o,detail:l}){return m.jsxs(We,{padding:AG,gap:2,children:[m.jsxs(nx,{xstyle:Fh.line,"data-settings-line":!0,children:[m.jsx(ic,{size:"fill",children:m.jsxs(Rt,{gap:2,align:"start",children:[m.jsx(We,{paddingBlockStart:.5,children:m.jsx(ft,{icon:s,size:"sm",color:"secondary"})}),m.jsxs(We,{gap:.5,xstyle:Fh.textColumn,children:[t==null?m.jsx(Je,{type:"label",children:e}):m.jsxs(Rt,{gap:1.5,align:"center",children:[m.jsx(Je,{type:"label",children:e}),t]}),r!=null&&m.jsx(Je,{type:"supporting",color:"secondary",children:r})]})]})}),o!=null&&m.jsx(We,{"data-settings-control":!0,xstyle:Fh.control,children:o})]}),l]})}function MG({search:e}){const{t}=cn();return m.jsx(Fa,{label:t("settings.search"),isLabelHidden:!0,placeholder:t("settings.search"),size:"sm",width:"100%",hasClear:!0,startIcon:KP,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 zG({results:e,activeIndex:t,onActiveIndexChange:r,onSelect:s}){const{t:o}=cn(),l={"Color theme":o("settings.colorTheme"),"Time zone":o("settings.timezone"),Appearance:o("settings.appearance"),"Language & region":o("settings.languageRegion")},u=d=>l[d]??d;return e.length===0?m.jsxs(We,{id:"settings-search-results",gap:.5,padding:2,children:[m.jsx(Je,{type:"label",children:o("settings.noResults")}),m.jsx(Je,{type:"supporting",color:"secondary",children:o("settings.trySearch")})]}):m.jsx(We,{as:"ul",gap:0,id:"settings-search-results",role:"listbox","aria-label":"Search results",isScrollable:!0,children:e.map((d,f)=>m.jsx(wc,{id:`settings-search-result-${f}`,role:"option","aria-selected":f===t,label:u(d.title),description:`${u(X4(d.panel).label)} · ${d.description}`,startContent:m.jsx(ft,{icon:d.icon,size:"sm",color:"secondary"}),endContent:m.jsx(ft,{icon:gP,size:"sm",color:"secondary"}),isSelected:f===t,onMouseEnter:()=>r(f),onClick:()=>s(d)},`${d.panel}-${d.title}`))})}const d$={sideNav:{kmuXW:"x2lah0s",$$css:!0},sideNavSection:{k8WAf4:"xce4md1",$$css:!0}};function NG({search:e,activePanel:t,onSelectPanel:r}){const{t:s}=cn(),o=l=>{switch(l){case"appearance":return s("settings.appearance");case"language":return s("settings.languageRegion");case"library":return s("settings.library");case"advanced":return s("settings.advanced")}};return m.jsx(f0,{"aria-label":s("settings.search"),xstyle:d$.sideNav,topContent:m.jsx(MG,{search:e}),children:e.isActive?m.jsx(zG,{results:e.results,activeIndex:e.activeIndex,onActiveIndexChange:e.setActiveIndex,onSelect:l=>r(l.panel)}):Y4.map(l=>m.jsx(dp,{title:s(l.label==="Workspace"?"settings.workspace":"settings.features"),xstyle:d$.sideNavSection,children:l.panels.map(u=>m.jsx(ox,{label:o(u.id),icon:m.jsx(ft,{icon:u.icon,size:"sm",color:"primary"}),size:"sm",isSelected:u.id===t,onClick:()=>r(u.id)},u.id))},l.label))})}const LG=[{value:"light",labelKey:"settings.light",scheme:"light",icon:lB},{value:"dark",labelKey:"settings.dark",scheme:"dark",icon:YP},{value:"system",labelKey:"settings.system",scheme:"system",icon:$P}];function DG({value:e,onChange:t}){const{t:r}=cn();return m.jsx(Z4,{role:"radiogroup","aria-label":"Color theme",columns:{minWidth:96,max:3},gap:2,maxWidth:480,children:LG.map(s=>{const o=s.value===e,l=r(s.labelKey);return m.jsx(Q4,{label:l,isSelected:o,padding:2,onChange:()=>{o||t(s.value)},children:m.jsxs(We,{gap:1.5,children:[m.jsx(OG,{scheme:s.scheme}),m.jsxs(Rt,{gap:1,align:"center",justify:"center",children:[m.jsx(ft,{icon:s.icon,size:"sm",color:"secondary"}),m.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 Xy({mode:e}){return m.jsx(m0,{theme:pV,mode:e,children:m.jsxs(We,{padding:2,gap:1.5,height:"100%",xstyle:Co.mutedSurface,children:[m.jsxs(We,{gap:1,align:"center",children:[m.jsx(We,{xstyle:[Co.bar,Co.barWide]}),m.jsx(We,{xstyle:Co.bar})]}),m.jsx(ic,{size:"fill",children:m.jsx(We,{padding:2,gap:1,justify:"center",height:"100%",xstyle:Co.contentSurface,children:[0,1,2].map(t=>m.jsx(We,{xstyle:Co.bar},t))})})]})})}function OG({scheme:e}){return m.jsx(J4,{ratio:3/2,xstyle:Co.inert,children:m.jsx(We,{"aria-hidden":"true",height:"100%",xstyle:Co.clip,children:e==="system"?m.jsxs(Rt,{gap:0,height:"100%",children:[m.jsx(ic,{size:"fill",children:m.jsx(Xy,{mode:"light"})}),m.jsx(ic,{size:"fill",children:m.jsx(Xy,{mode:"dark"})})]}):m.jsx(Xy,{mode:e})})})}function IG({settings:e,update:t}){const{t:r}=cn();return m.jsx(We,{gap:5,children:m.jsx(kx,{children:m.jsx(Ua,{title:r("settings.colorTheme"),icon:k0,description:r("settings.colorThemeDescription"),detail:m.jsx(DG,{value:e.theme,onChange:s=>t("theme",s)})})})})}function _G({settings:e,update:t}){const{t:r}=cn();return m.jsxs(kx,{children:[m.jsx(Ua,{title:r("settings.language"),icon:HP,description:r("settings.languageDescription"),control:m.jsx(Zl,{label:r("settings.language"),isLabelHidden:!0,size:"sm",width:Hu,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:"日本語"}]})}),m.jsx(Ua,{title:r("settings.timeFormat"),icon:ij,description:r("settings.timeFormatDescription"),control:m.jsx(Zl,{label:r("settings.timeFormat"),isLabelHidden:!0,size:"sm",width:Hu,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"}]})}),m.jsx(Ua,{title:r("settings.timezone"),icon:b0,description:r("settings.timezoneDescription"),control:m.jsx(Zl,{label:r("settings.timezone"),isLabelHidden:!0,size:"sm",width:Hu,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 qG({value:e,label:t,placeholder:r,onChange:s}){const[o,l]=x.useState(e);x.useEffect(()=>{l(e)},[e]);const u=()=>{o!==e&&s(o.trim())};return m.jsx(Fa,{label:t,isLabelHidden:!0,size:"sm",type:"password",value:o,onChange:l,onBlur:u,onEnter:u,placeholder:r,hasClear:!0,width:Hu})}function PG({settings:e,update:t}){const{t:r}=cn(),s=e.library,o=s.captures,l=o.fetcher?o[o.fetcher].apiKey:"",u=f=>{t("library",{...s,captures:{...o,...f,firecrawl:{...o.firecrawl,...f.firecrawl},deepseek:{...o.deepseek,...f.deepseek}}})},d=f=>{o.fetcher&&u({[o.fetcher]:{apiKey:f}})};return m.jsxs(kx,{title:r("settings.captures"),children:[m.jsx(Ua,{title:r("settings.capturesFetcher"),icon:oj,description:r("settings.capturesFetcherDescription"),control:m.jsx(Zl,{label:r("settings.capturesFetcher"),isLabelHidden:!0,size:"sm",width:Hu,value:o.fetcher??"none",onChange:f=>{u({fetcher:f==="none"?null:f})},options:[{value:"none",label:r("settings.capturesNotConfigured")},{value:"firecrawl",label:"Firecrawl"},{value:"deepseek",label:"DeepSeek Fetch"}]})},"fetcher"),o.fetcher&&m.jsx(Ua,{title:r("settings.capturesApiKey"),icon:PP,description:r("settings.capturesApiKeyDescription"),control:m.jsx(qG,{value:l,label:r("settings.capturesApiKey"),placeholder:r("settings.capturesApiKeyPlaceholder"),onChange:d},o.fetcher)},`api-key-${o.fetcher}`),m.jsx(Ua,{title:r("settings.capturesMaxAttempts"),icon:aj,description:r("settings.capturesMaxAttemptsDescription"),control:m.jsx(Q1,{label:r("settings.capturesMaxAttempts"),isLabelHidden:!0,size:"sm",value:o.maxAttempts,onChange:f=>{u({maxAttempts:f})},min:1,max:10,step:1,isIntegerOnly:!0,width:120})},"max-attempts"),m.jsx(Ua,{title:r("settings.capturesConcurrency"),icon:sj,description:r("settings.capturesConcurrencyDescription"),control:m.jsx(Q1,{label:r("settings.capturesConcurrency"),isLabelHidden:!0,size:"sm",value:o.scrapeConcurrency,onChange:f=>{u({scrapeConcurrency:f})},min:1,max:5,step:1,isIntegerOnly:!0,width:120})},"scrape-concurrency")]})}function BG(e){return m.jsx(We,{gap:4,children:m.jsx(PG,{...e})})}function HG({configFolderPath:e,onOpenConfigFolder:t}){const{t:r}=cn(),s=Io(),[o,l]=x.useState(!1),[u,d]=x.useState(!1),[f,p]=x.useState(null),y=ms({queryKey:kp.status(),queryFn:ZV}),g=y.data?.activeJobCount??0,k=y.isLoading||y.data?.isBusy===!0||g>0,v=r("settings.finishJobsBeforeTransfer"),w=g>0?v:r("settings.exportDataDescription"),S=g>0?v:r("settings.importDataDescription"),E=async()=>{d(!0);try{const R=await JV();R.status==="selected"&&p({file:R.file,fileName:R.fileName})}catch{s({body:r("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-select-file-error"})}finally{d(!1)}};return m.jsxs(m.Fragment,{children:[m.jsxs(kx,{children:[m.jsx(Ua,{title:r("settings.configFolder"),icon:y0,description:e,control:m.jsx(jt,{label:r("settings.openConfigFolder"),icon:m.jsx(LP,{}),variant:"ghost",size:"sm",onClick:t})}),m.jsx(Ua,{title:r("settings.exportData"),icon:F1,description:w,control:m.jsx(jt,{label:r("settings.exportDataAction"),icon:m.jsx(F1,{}),variant:"ghost",size:"sm",isDisabled:k,onClick:()=>l(!0)})}),m.jsx(Ua,{title:r("settings.importData"),icon:H1,description:S,control:m.jsx(jt,{label:r("settings.importDataAction"),icon:m.jsx(H1,{}),variant:"ghost",size:"sm",isDisabled:k||u,isLoading:u,onClick:()=>{E()}})})]}),o&&m.jsx(hG,{onClose:()=>l(!1)}),f&&m.jsx(pG,{file:f.file,fileName:f.fileName,onClose:()=>p(null)},`${f.fileName}:${f.file.lastModified}`)]})}const FG={contentTopAligned:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kGO01o:"x1awphl8",kLKAdn:"xexx8yu",$$css:!0}};function UG({panel:e,settings:t,update:r,configFolderPath:s=""}){const o=(()=>{switch(e){case"appearance":return m.jsx(IG,{settings:t,update:r});case"language":return m.jsx(_G,{settings:t,update:r});case"library":return m.jsx(BG,{settings:t,update:r});case"advanced":return m.jsx(HG,{configFolderPath:s,onOpenConfigFolder:()=>{KH()}})}})();return m.jsx(Di,{isScrollable:!0,padding:0,xstyle:FG.contentTopAligned,children:m.jsx(We,{gap:4,xstyle:Fh.panel,children:o})})}function VG(){const[e]=AN(),[t,r]=x.useState(e.get("panel")==="library"?"library":tV),{settings:s,configFolderPath:o,update:l}=RG(),u=xG(r),d=f=>{r(f),u.setQuery("")};return m.jsx(Li,{height:"fill",start:m.jsx(NG,{search:u,activePanel:t,onSelectPanel:d}),content:m.jsx(UG,{panel:t,settings:s,update:l,configFolderPath:o})})}const GG={x1iwu4tg:"x1iwu4tg",$$css:!0},KG={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},WG={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},YG={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",kmVPX3:"x1i3ajwb",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",kmVPX3:"xfawy5m",$$css:!0}},XG={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",k3aq6I:"xbryuvx",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xbryuvx",$$css:!0}},ZG={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xv5t66b xi9aj42",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",k3aq6I:"x15481yp x12xz5k6",$$css:!0}},QG={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}},JG={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function h6({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:d=!1,htmlName:f,disabledMessage:p,isOptional:y=!1,isRequired:g=!1,onFocus:k,onBlur:v,labelIcon:w,labelTooltip:S,labelPosition:E="end",labelSpacing:R="hug",status:C,size:T="md",width:A,xstyle:M,className:L,style:D,ref:j,...I}){const z=zt(),H=x.useId(),F=ja(),B=x.useId(),q=x.useId(),U=Ed({isRequired:g,isOptional:y}),[,_]=x.useTransition(),[P,G]=x.useOptimistic(u),Y=l||P!==u,X=kc();x.useEffect(()=>{Y&&X(z("@astryx.switch.loading"))},[X,Y,z]);const ee=P===!0,Q=d&&!!p,oe=Ka({placement:"above",focusTrigger:"always",isEnabled:Q}),O=[];r&&O.push(B),C?.message&&O.push(q),Q&&O.push(oe.describedBy);const Z=O.length>0?O.join(" "):void 0,de=m.jsxs("div",{...fe(On.switchWrapper,KG[T]),children:[m.jsx("input",{ref:xn(j,oe.positionRef),id:H,type:"checkbox",role:"switch",name:d?void 0:f,checked:ee,disabled:d&&!Q,"aria-disabled":Q?"true":void 0,form:Q?"":void 0,required:g,"aria-required":U?"true":void 0,onChange:ve=>{if(d||Y)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":Z,"aria-invalid":C?.type==="error"?!0:void 0,"aria-busy":Y||void 0,...fe(On.input,Ga.centerInline("-50%"),On.inputCoarse,WG[T],d&&On.inputDisabled,Y&&On.inputBusy)}),m.jsx("div",{"aria-hidden":"true",...ye(he("switch",{checked:ee?"checked":null,disabled:d?"disabled":null,size:T}),fe(On.track,YG[T],ee?On.trackOn:On.trackOff,!d&&On.trackFocus,d&&On.trackDisabled,d&&!ee&&On.trackDisabledOff)),children:m.jsx("div",{...ye(he("switch-thumb",{checked:ee?"checked":null,size:T}),fe(On.thumb,ee?ZG[T]:XG[T],ee?On.thumbOn:On.thumbOff)),children:Y&&m.jsx(Do,{size:"sm"})})})]}),ue=m.jsx("div",{...fe(On.labelWrapper,QG[T]),children:m.jsx(hx,{...he("switch-label"),label:e,inputID:H,isLabelHidden:t,isDisabled:d,isOptional:y,isRequired:g,labelIcon:w,labelTooltip:S,description:r,descriptionID:B})});return m.jsxs("div",{...ye(he("switch-field",{labelPosition:E!=="end"?E:void 0,labelSpacing:R!=="hug"?R:void 0}),fe(A!=null&&JG.width(A),M),L,D),...I,children:[m.jsxs("div",{ref:ve=>{oe.interactionRef(ve)},...d?void 0:F,...fe(On.container,t&&On.containerLabelHidden,R==="spread"&&On.containerSpread,!d&&GG,!d&&or.pressedAlpha),children:[" ",E==="start"?m.jsxs(m.Fragment,{children:[ue,de]}):m.jsxs(m.Fragment,{children:[de,ue]})]}),C?.message&&m.jsx(px,{type:C.type,message:C.message,id:q,variant:"detached",xstyle:On.statusGap}),Q&&oe.renderTooltip(p)]})}h6.displayName="Switch";function p6({ref:e,href:t,isDisabled:r,LinkComponent:s,linkStyleProps:o,labelContent:l,icon:u,endContent:d,removeButton:f,onClick:p,onMouseUp:y,...g}){const k=x.useRef(null),v=x.useRef(null),{onClick:w,onMouseUp:S}=ux({containerRef:k,interactiveRef:v,href:t,disabled:r});return m.jsxs("span",{ref:xn(e,k),...g,onClick:r?p:Ir(p,w),onMouseUp:r?y:Ir(y,S),children:[u,m.jsx(s,{ref:v,href:t,"aria-disabled":r||void 0,...o,children:l}),d,f]})}p6.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}},gh={sm:{kZKoxP:"xzydfjl",kGuDYH:"x141an7d",kg3NbH:"xf314gf",$$css:!0},md:{kZKoxP:"xrmxcn7",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"x102lyln",kg3NbH:"xf314gf",$$css:!0}},mh={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 H0({label:e,size:t="md",color:r="default",icon:s,isDisabled:o=!1,onRemove:l,onClick:u,href:d,description:f,endContent:p,isLabelHidden:y=!1,xstyle:g,className:k,style:v,"data-testid":w,ref:S,...E}){const R=ja(),C=zt(),T=Oi(),A=QT({href:d,onClick:u,isDisabled:o}),M=u??(A==="button"?()=>{}:null),L=l!=null&&m.jsx("button",{type:"button","aria-label":C("@astryx.token.remove",{label:e}),onClick:I=>{I.stopPropagation(),l(I)},disabled:o,...pn.focusVisible(ya.removeButton),children:m.jsx(ft,{icon:"close",size:"xsm",color:"inherit"})}),D=m.jsxs(m.Fragment,{children:[s,m.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),p,L]}),j={"data-testid":w,...y?{"aria-label":e}:{},...f!=null?{"aria-description":f}:{}};if(A==="link")return l==null?m.jsx(T,{ref:S,href:d,...R,...ye(he("token",{color:r,size:t}),pn.focusVisible(ya.base,gh[t],mh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,g),k,v),...E,...o?{"aria-disabled":!0}:{},...j,children:D}):m.jsx(p6,{ref:S,href:d,isDisabled:o,LinkComponent:T,icon:s,endContent:p,removeButton:L,linkStyleProps:{className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli"},...R,labelContent:m.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),...ye(he("token",{color:r,size:t}),pn.focusWithin(ya.base,gh[t],mh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,g),k,v),...E,...j});if(M!=null){const I=z=>{z.target.closest("button, a")||M(z)};return m.jsxs("span",{ref:S,onClick:o?void 0:I,...R,...ye(he("token",{color:r,size:t}),pn.focusWithin(ya.base,gh[t],mh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,g),k,v),...E,...j,children:[s,m.jsx("button",{type:"button",onClick:M,disabled:o,className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli",children:m.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e})}),p,L]})}return m.jsx("span",{ref:S,...ye(he("token",{color:r,size:t}),fe(ya.base,gh[t],mh[r],o&&ya.disabled,g),k,v),...E,...j,children:D})}H0.displayName="Token";const eK=new Set(["auto","contain","fit-content","inherit","initial","max-content","min-content","revert","revert-layer","stretch","unset"]);function x6(e){const t=e.trim().toLowerCase();return eK.has(t)||t.startsWith("fit-content(")}function g6(e,t){return`min(${typeof e=="number"?`${e}px`:e.trim()}, ${t})`}const f$='button, [role="button"]';function h$(e){return e.matches(f$)?e:e.querySelector(f$)}const yh={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 vx({children:e,anchorRef:t,content:r,placement:s="below",alignment:o="start",isOpen:l,onOpenChange:u,isEnabled:d=!0,width:f,padding:p=3,label:y,role:g="dialog",isModal:k,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,hasLightDismiss:E=!0,hasEscapeDismiss:R=!0,xstyle:C,className:T,style:A,"data-testid":M}){const L=x.useRef(null),D=x.useRef(null),[j,I]=x.useState(!1),z=l!==void 0,H=x.useCallback(()=>{u?.(!0)},[u]),F=x.useCallback(()=>{u?.(!1)},[u]),B=x0({dialogLabel:y,role:g,isModal:k,hasLightDismiss:E,hasEscapeDismiss:R,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,surfaceTarget:"popover",padding:p,xstyle:[yh.surfaceViewportFit,j&&yh.surfaceScrollable,C],className:T,style:A,onShow:H,onHide:F}),q=x.useCallback(()=>{const Q=B.contentRef.current;if(!Q)return;const oe=Q.scrollHeight>Q.clientHeight+1||Q.scrollWidth>Q.clientWidth+1;I(O=>O===oe?O:oe)},[B.contentRef]),U=x.useCallback(()=>{D.current==null&&(D.current=window.requestAnimationFrame(()=>{D.current=null,q()}))},[q]);qn(()=>{if(!B.isOpen)return;const Q=B.contentRef.current;if(!Q)return;q();const oe=typeof ResizeObserver>"u"?null:new ResizeObserver(U),O=typeof MutationObserver>"u"?null:new MutationObserver(U);return oe?.observe(Q),O?.observe(Q,{childList:!0,characterData:!0,subtree:!0}),Q.addEventListener("load",U,!0),window.addEventListener("resize",U),window.visualViewport?.addEventListener("resize",U),()=>{oe?.disconnect(),O?.disconnect(),Q.removeEventListener("load",U,!0),window.removeEventListener("resize",U),window.visualViewport?.removeEventListener("resize",U),D.current!=null&&(window.cancelAnimationFrame(D.current),D.current=null)}},[q,B.isOpen,U]),qn(()=>{B.isOpen&&U()},[r,B.isOpen,U]);const _=x.useCallback(()=>{d&&B.toggle()},[d,B]),P=x.useCallback(Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),_())},[_]),G=x.useCallback(Q=>{Q.setAttribute("aria-haspopup",B.triggerProps["aria-haspopup"]),Q.setAttribute("aria-expanded",String(B.triggerProps["aria-expanded"])),Q.setAttribute("aria-controls",B.triggerProps["aria-controls"]),Q.addEventListener("click",_);const oe=Q.tagName!=="BUTTON"&&Q.getAttribute("role")==="button";return oe&&Q.addEventListener("keydown",P),()=>{Q.removeAttribute("aria-haspopup"),Q.removeAttribute("aria-expanded"),Q.removeAttribute("aria-controls"),Q.removeEventListener("click",_),oe&&Q.removeEventListener("keydown",P)}},[B,_,P]);qn(()=>{if(!t)return;const Q=t.current;if(!Q)return;const oe=h$(Q);if(oe||Ea(),!oe)return;B.triggerRef(Q);const O=G(oe);return()=>{B.triggerRef(null),O()}},[t,B,G]),qn(()=>{if(t||typeof e=="function")return;const Q=L.current;if(!Q)return;B.triggerRef(Q);const oe=h$(Q);if(oe||Ea(),!oe)return;const O=G(oe);return()=>{B.triggerRef(null),O()}},[t,B,G]),qn(()=>{z&&(l&&!B.isOpen?B.show():!l&&B.isOpen&&B.hide())},[l,z,B]);const X=[f?yh.customWidth(typeof f=="string"&&x6(f)?f.trim():g6(f,sc.maxInlineSizeFallback)):yh.matchTrigger,gd[s]];if(t&&e==null)return m.jsx(m.Fragment,{children:B.render(m.jsx("div",{"data-testid":M,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:X})});if(typeof e=="function"){const Q={ref:B.triggerRef,onClick:_,"aria-haspopup":"dialog","aria-expanded":B.isOpen,"aria-controls":B.id};return m.jsxs(m.Fragment,{children:[e(Q),B.render(m.jsx("div",{"data-testid":M,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:X})]})}return m.jsxs(m.Fragment,{children:[m.jsx(g0,{value:"button",children:m.jsx("div",{ref:L,className:"x3nfvp2",children:e})}),B.render(m.jsx("div",{"data-testid":M,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:X})]})}vx.displayName="Popover";const p$={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 dc({title:e,description:t,icon:r,actions:s,headingLevel:o=3,isCompact:l=!1,xstyle:u,className:d,style:f,ref:p,...y}){const g=`h${o}`;return m.jsxs("div",{ref:p,...y,role:"status",...ye(he("empty-state",{variant:l?"compact":null}),fe(p$.container,l&&p$.containerCompact,u),d,f),children:[r!=null&&m.jsx("div",{"aria-hidden":"true",children:r}),m.jsxs("div",{className:"x78zum5 xdt5ytf x6s0dn4 xxc7z9f",children:[x.createElement(g,ye(he("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&&m.jsx("div",{...ye(he("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&&m.jsx("div",{...{0:{className:"x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d"},1:{className:"x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf"}}[!!l<<0],children:s})]})}dc.displayName="EmptyState";const Fu={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 m6({startIcon:e,centerIcon:t,endIcon:r,title:s,description:o,actions:l}){return m.jsx(Rt,{width:"100%",hAlign:"center",children:m.jsx(Gs,{width:"100%",padding:0,children:m.jsx(dc,{headingLevel:2,icon:m.jsxs(Rt,{gap:2,vAlign:"center",xstyle:Fu.illustration,children:[m.jsx(Zy,{icon:e,isCore:!1}),m.jsx(We,{xstyle:Fu.connector}),m.jsx(Zy,{icon:t,isCore:!0}),m.jsx(We,{xstyle:Fu.connector}),m.jsx(Zy,{icon:r,isCore:!1})]}),title:s,description:o,actions:l})})})}function Zy({icon:e,isCore:t}){return m.jsx(Rt,{hAlign:"center",vAlign:"center",xstyle:t?Fu.coreNode:Fu.satelliteNode,children:m.jsx(ft,{icon:e,size:t?"lg":"sm",color:t?"accent":"secondary"})})}const qs={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}},tK={"openai-responses":"OpenAI Responses","anthropic-messages":"Anthropic Messages","openai-compatible-chat-completions":"OpenAI-compatible Chat Completions"};function nK(){const{t:e}=cn(),t=qr(),[r,s]=x.useState(null),[o,l]=x.useState(null),u=ms({queryKey:gs.list(),queryFn:$G}),d=Er({mutationFn:({id:k,status:v})=>u$(k,v),onSuccess:()=>{t.invalidateQueries({queryKey:gs.list()})}}),f=Er({mutationFn:k=>u$(k,"deleted"),onSuccess:()=>{s(null),t.invalidateQueries({queryKey:gs.list()})}}),p=u.data??[];x.useEffect(()=>{l(document.getElementById("window-titlebar-actions"))},[]);function y(k,v){k.status==="deleted"||k.isInUse||d.mutate({id:k.id,status:v?"active":"disabled"})}function g(k){return k.isInUse?e("providers.inUse"):e(k.status==="active"?"providers.disable":"providers.enable")}return m.jsxs(m.Fragment,{children:[o&&Ks.createPortal(m.jsx(jt,{label:e("providers.add"),size:"sm",variant:"primary",href:"/providers/new",as:_u}),o),m.jsx(We,{gap:5,children:p.length===0?m.jsx(m6,{startIcon:vP,centerIcon:rB,endIcon:TP,title:e("providers.emptyTitle"),description:e("providers.empty"),actions:m.jsx(jt,{label:e("providers.addFirst"),size:"sm",variant:"primary",icon:m.jsx(uj,{}),href:"/providers/new",as:_u})}):m.jsx(uc,{density:"balanced",hasDividers:!1,xstyle:qs.providerList,children:p.map(k=>m.jsx(wc,{label:k.name,xstyle:qs.providerItem,startContent:m.jsx(ft,{icon:v0,size:"lg",color:"secondary"}),description:m.jsxs(Rt,{gap:1,wrap:"nowrap",xstyle:qs.providerDescription,children:[m.jsx(H0,{size:"sm",label:tK[k.protocol],xstyle:qs.providerProtocol}),m.jsxs(Rt,{gap:1,vAlign:"center",xstyle:qs.providerBaseURLGroup,children:[m.jsx(Je,{type:"supporting",children:"·"}),m.jsx(Je,{type:"supporting",maxLines:1,xstyle:qs.providerBaseURL,children:k.baseURL})]}),m.jsxs(Rt,{gap:1,vAlign:"center",xstyle:qs.providerCustomModelsGroup,children:[m.jsx(Je,{type:"supporting",children:"·"}),m.jsx(Je,{type:"supporting",maxLines:1,children:`${k.customModels.length} ${e("providers.customModels")}`})]})]}),endContent:m.jsxs(Rt,{gap:2,vAlign:"center",xstyle:qs.providerActions,children:[m.jsx(_r,{label:`${e("providers.edit")} ${k.name}`,tooltip:e("providers.edit"),icon:m.jsx(QP,{}),variant:"ghost",size:"sm",href:`/providers/${k.id}`,as:_u}),m.jsx(vx,{label:`${e("providers.deleteLabel")} ${k.name}`,xstyle:qs.providerPopover,isOpen:r?.id===k.id,isEnabled:!k.isInUse,onOpenChange:v=>{s(v?k:null)},content:m.jsxs(We,{gap:3,children:[m.jsx(We,{gap:1,children:m.jsx(Je,{type:"label",children:e("providers.deleteQuestion")})}),m.jsxs(Rt,{gap:2,hAlign:"end",children:[m.jsx(jt,{label:e("providers.cancel"),variant:"ghost",size:"sm",onClick:()=>{s(null)}}),m.jsx(jt,{label:e("providers.delete"),variant:"destructive",size:"sm",isLoading:f.isPending&&r?.id===k.id,onClick:()=>{f.mutate(k.id)}})]})]}),children:m.jsx(_r,{label:`${e("providers.deleteLabel")} ${k.name}`,tooltip:e("providers.deleteLabel"),icon:m.jsx(dj,{}),variant:"ghost",size:"sm",isDisabled:k.isInUse})}),m.jsx(Ii,{content:g(k),children:m.jsx(h6,{label:`${k.name} ${e("providers.enabled")}`,isLabelHidden:!0,value:k.status==="active",onChange:v=>{y(k,v)},isDisabled:k.isInUse,size:"sm"})})]})},k.id))})})]})}const x$={group:{k1xSpc:"x3nfvp2",kGNEyG:"x1qjc9v5",kWkggS:"xjbqb8w",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0}},rK={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function y6({children:e,label:t,isLabelHidden:r=!1,description:s,isDisabled:o=!1,isOptional:l=!1,isRequired:u=!1,size:d,status:f,labelTooltip:p,xstyle:y,className:g,style:k,ref:v,"data-testid":w,...S}){const E=yc(d,"md"),R=x.useId(),C=x.useId(),T=x.useId(),A=x.useId(),M=[s?T:null,f?.message?A:null].filter(Boolean).join(" ")||void 0,L=x.useMemo(()=>({isInGroup:!0,labelID:C,describedByIDs:M}),[C,M]);return m.jsx(L0,{value:L,children:m.jsx(Pl,{value:E,children:m.jsx(vc,{label:t,isLabelHidden:r,description:s,inputID:R,labelID:C,descriptionID:s?T:void 0,isGroupLabel:!0,isOptional:l,isRequired:u,isDisabled:o,status:f?{type:f.type,message:f.message,messageID:f.message?A:void 0}:void 0,statusVariant:"detached",labelTooltip:p,children:m.jsx("div",{ref:v,"data-testid":w,...S,role:"group","aria-labelledby":C,"aria-describedby":M,...ye(he("input-group",{size:E,status:f?.type??null}),fe(x$.group,rK[E],o&&x$.disabled,y),g,k),children:e})})})})}y6.displayName="InputGroup";const aK={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 b6({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return m.jsx("div",{ref:e,...l,...ye(he("input-group-text"),fe(aK.text,r),s,o),children:t})}b6.displayName="InputGroupText";const ui={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 g$(){const{providerId:e}=jb(),{t}=cn(),r=mc(),s=qr(),o=Io(),[l,u]=x.useState(""),[d,f]=x.useState("openai-responses"),[p,y]=x.useState(""),[g,k]=x.useState(""),[v,w]=x.useState(!1),[S,E]=x.useState(!1),R=x.useRef(null),[C,T]=x.useState([]),[A,M]=x.useState(""),[L,D]=x.useState(""),[j,I]=x.useState(!1),[z,H]=x.useState(!1),[F,B]=x.useState(null);x.useEffect(()=>{B(document.getElementById("window-titlebar-actions"))},[]),x.useEffect(()=>{e&&TG(e).then(O=>{O&&(u(O.name),f(O.protocol),y(O.baseURL),k(O.apiKey),T(O.customModels.map(Z=>({...Z,source:"custom"}))))})},[e]);const q=!!(p.trim()&&(d==="openai-compatible-chat-completions"||g.trim())),U=C.length>0&&!j&&!z&&!!(l.trim()&&p.trim()),_=x.useMemo(()=>C.filter(O=>O.source==="custom"),[C]),P=x.useCallback(async()=>{if(q){I(!0);try{const O=await jG({protocol:d,baseURL:p,apiKey:g});T(Z=>[...O.map(de=>({...de,source:"remote"})),...Z.filter(de=>de.source==="custom")])}catch{T(O=>O.filter(Z=>Z.source==="custom")),o({body:t("providers.failedFetchModels"),type:"error"})}finally{I(!1)}}},[g,p,q,d,t,o]);x.useEffect(()=>{if(!q)return;const O=setTimeout(()=>{P()},500);return()=>clearTimeout(O)},[q,P]);function G(){const O=A.trim();!O||_.some(Z=>Z.id===O)||(T(Z=>[...Z,{id:O,displayName:L.trim()||null,source:"custom"}]),M(""),D(""))}const Y=x.useCallback(async()=>{if(!U)return;H(!0);const O={name:l.trim(),protocol:d,baseURL:p.trim(),apiKey:g,customModels:_.map(({source:Z,...de})=>de)};try{await CG(O,e),await s.invalidateQueries({queryKey:gs.all}),r("/providers")}finally{H(!1)}},[g,p,U,_,r,l,e,d,s]),X=x.useCallback(()=>{r("/providers")},[r]),ee=x.useCallback(()=>{Y()},[Y]),Q=x.useCallback(()=>{R.current&&clearTimeout(R.current),E(!0)},[]),oe=x.useCallback(()=>{R.current=setTimeout(()=>{E(!1)},120)},[]);return m.jsxs(m.Fragment,{children:[F&&Ks.createPortal(m.jsxs(Rt,{gap:2,children:[m.jsx(jt,{label:t("providers.cancel"),variant:"ghost",size:"sm",onClick:X}),m.jsx(jt,{label:t("providers.save"),variant:"primary",size:"sm",isDisabled:!U,isLoading:z,onClick:ee})]}),F),m.jsxs(We,{gap:5,children:[m.jsxs(We,{gap:4,children:[m.jsxs(Rt,{gap:3,wrap:"wrap",xstyle:ui.formFieldRow,children:[m.jsx(Fa,{containerXstyle:ui.formNameField,size:"sm",label:t("providers.name"),value:l,onChange:u,isRequired:!0}),m.jsx(Zl,{containerXstyle:ui.formProtocolField,size:"sm",label:t("providers.protocol"),options:sK,value:d,onChange:O=>f(O),isDisabled:!!e,isRequired:!0})]}),m.jsx(Fa,{size:"sm",label:t("providers.baseUrl"),value:p,onChange:y,placeholder:"https://api.example.com/v1",isRequired:!0}),m.jsxs(y6,{label:t("providers.apiKey"),size:"sm",isRequired:d!=="openai-compatible-chat-completions",xstyle:ui.formApiKeyField,children:[m.jsx(Fa,{size:"sm",label:t("providers.apiKey"),isLabelHidden:!0,type:v?"text":"password",value:g,onChange:k}),m.jsx(b6,{xstyle:ui.apiKeyVisibilityAddon,children:m.jsx(_r,{label:t(v?"providers.hideApiKey":"providers.showApiKey"),tooltip:t(v?"providers.hideApiKey":"providers.showApiKey"),icon:v?m.jsx(MP,{}):m.jsx(lj,{}),variant:"ghost",size:"sm",onClick:()=>w(O=>!O)})})]})]}),m.jsxs(We,{gap:3,children:[m.jsxs(Rt,{gap:1,vAlign:"center",children:[m.jsx(Je,{type:"label",color:"secondary",children:t("providers.models")}),m.jsxs(Je,{type:"supporting",children:["·",t("providers.required")]}),m.jsx(vx,{label:t("providers.modelSources"),placement:"below",alignment:"start",isOpen:S,isEnabled:!1,onOpenChange:E,content:m.jsx(We,{gap:1,onMouseEnter:Q,onMouseLeave:oe,children:m.jsx(Je,{type:"supporting",children:t("providers.modelsTemporary")})}),children:m.jsx("button",{type:"button","aria-label":t("providers.aboutModelSources"),className:"x3nfvp2 x6s0dn4 xl56j7k x1717udv xjspbzw xjbqb8w xv9yike x1ypdohk x1cqbx0l x17nn4n9 x7s97pk",onMouseEnter:Q,onMouseLeave:oe,children:m.jsx(ft,{icon:tB,size:"sm"})})}),m.jsx(_r,{label:t("providers.fetchModels"),tooltip:t("providers.fetchModels"),icon:m.jsx(ix,{}),variant:"ghost",size:"sm",isDisabled:!q,isLoading:j,onClick:()=>{P()}})]}),C.length>0&&m.jsx(Rt,{gap:1,wrap:"wrap",children:C.map(O=>m.jsx(H0,{size:"sm",label:O.displayName||O.id,color:O.source==="custom"?"blue":"default",onRemove:O.source==="custom"?()=>T(Z=>Z.filter(de=>de!==O)):void 0},`${O.source}-${O.id}`))}),m.jsxs(Rt,{gap:2,wrap:"wrap",children:[m.jsx(Fa,{size:"sm",containerXstyle:ui.formModelInput,label:t("providers.modelId"),isLabelHidden:!0,value:A,onChange:M,placeholder:t("providers.customModelId"),isRequired:!0}),m.jsx(Fa,{size:"sm",containerXstyle:ui.formModelNameInput,label:t("providers.displayName"),isLabelHidden:!0,value:L,onChange:D,isOptional:!0,placeholder:t("providers.displayNameOptional")}),m.jsx(jt,{label:t("providers.addCustomModel"),variant:"secondary",size:"sm",isDisabled:!A.trim(),onClick:G})]})]})]})]})}const F0=aa(null);F0.displayName="SegmentedControlContext";function oK(){const e=x.use(F0);if(e==null)throw new Error("useSegmentedControlContext must be used within SegmentedControl. Wrap your SegmentedControlItem in <SegmentedControl>.");return e}const bh={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}},iK={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 k6({ref:e,value:t,onChange:r,label:s,size:o,layout:l="hug",isDisabled:u=!1,disabledMessage:d,children:f,xstyle:p,className:y,style:g,onKeyDown:k,onFocus:v,onBlur:w,...S}){const E=yc(o,"md"),R=u&&!!d,C=Ka({placement:"above",focusTrigger:"always",isEnabled:R}),{listRef:T,handleKeyDown:A,handleFocus:M}=sx({itemSelector:'[role="radio"]:not([aria-disabled="true"])',hasRovingTabIndex:!0,wrap:!0,orientation:"horizontal"}),L=VF({orientation:"horizontal",isEnabled:!u}),D=x.useCallback(z=>{k?.(z),!z.defaultPrevented&&(L.onKeyDown(z),A(z))},[k,L,A]),j=x.useCallback(z=>{if(v?.(z),z.defaultPrevented||(L.onFocus(z),M(z),u)||!z.currentTarget.contains(z.relatedTarget))return;const H=z.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,M,u,r,t]),I=x.useMemo(()=>({value:t,onChange:r,size:E,layout:l,isDisabled:u,hasDisabledMessage:R}),[t,r,E,l,u,R]);return m.jsxs(F0,{value:I,children:[m.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(he("segmented-control",{size:E}),fe(bh.container,iK[E],l==="fill"&&bh.fill,u&&(R?bh.disabledWithMessage:bh.disabled),p),y,g),children:[f,L.hintElement]}),R&&C.renderTooltip(d)]})}k6.displayName="SegmentedControl";const Ll={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}},lK={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 J1({ref:e,value:t,label:r,isLabelHidden:s=!1,icon:o,isDisabled:l=!1,onClick:u,xstyle:d,...f}){const p=ja(),y=oK(),g=y.value===t,k=l||y.isDisabled,v=g&&(y.hasDisabledMessage??!1)&&!l,w=y.size,S=y.layout==="fill",E=Ir(u,()=>{!k&&!g&&y.onChange(t)}),R=o?m.jsx("span",{...fe(Ll.icon,cK[w]),children:o}):null;return m.jsxs("button",{ref:e,...f,type:"button",role:"radio","aria-checked":g,"aria-disabled":k||void 0,"aria-label":s?r:void 0,"data-value":t,...!g&&!k?p:void 0,tabIndex:g&&!k||v?0:-1,onClick:E,...ye(he("segmented-control-item",{size:w,selected:g?"selected":null,disabled:k?"disabled":null}),pn.focusVisible(Ll.base,lK[w],S&&Ll.fill,s&&Ll.iconOnly,g&&Ll.selected,!g&&!k&&or.backgroundColor,k&&Ll.disabled,d)),children:[R,!s&&m.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:r})]})}J1.displayName="SegmentedControlItem";const v6=120,w6=60;function S6(e){return e?.minWidth??(e==null?w6:v6)}function E6(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 d=u?.value??1;t+=d,s.push({proportion:d,minWidth:S6(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 $6(e){const{totalProportion:t,maxProportionalSpace:r}=E6(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 uK=/^[+-]?(?:\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,dK=/^(?:calc|min|max|clamp|var)\(/i,fK=/^[+-]?(?:0+\.?0*|\.0+)(?:[a-z]+|%)?$/i,hK=/^(\d+(?:\.\d+)?)px$/i;function pK(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===""||fK.test(s))return r;const o=hK.exec(s);return o?`${Math.max(Number(o[1]),t)}px`:uK.test(s)||dK.test(s)?`max(${s}, ${r})`:r}function xK(e){const{totalProportion:t,pixelTotal:r,maxProportionalSpace:s}=E6(e),o=r+s,l=new Map;for(const u of e){const d=u.width,f={};if(d?.type==="pixel")f.width=`${d.value}px`,f.minWidth=`${d.value}px`;else{const p=d?.value??1;t>0&&(f.width=`${p/t*100}%`),f.minWidth=`${S6(d)}px`}l.set(u.key,{style:f})}return{columns:l,tableMinWidth:o}}function Uh(e=1,t){return{type:"proportional",value:e,minWidth:t?.minWidth??v6}}function jo(e){return{type:"pixel",value:e}}function m$(e){if(e.length===0)return e;const t=h9(e);return t.toUpperCase()+e.slice(t.length)}function gK(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 mK(e){return e==null?0:typeof e=="string"?e.length:typeof e=="number"||typeof e=="boolean"?String(e).length:0}function yK(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 bK=8;function kK(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=m$(l).length;let d=u,f=u;for(const p of s){const y=mK(p[l]);y>d&&(d=y);const g=yK(p[l]);g>f&&(f=g)}return{key:l,headerLen:u,maxContentLen:d,maxWordLen:f}}).map(l=>{const u=l.maxContentLen<=6?1:l.maxContentLen<=15?2:3,d=Math.max(Math.max(l.headerLen,l.maxWordLen)*bK,w6);return{key:l.key,header:m$(l.key),width:Uh(u,{minWidth:d})}})}const y$={x139im0d:"x139im0d",$$css:!0},C6={cell:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",ks0D6T:"x1m189uc",$$css:!0}},vK={cell:{kVQacm:"xb3r6kr",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",ks0D6T:"x1m189uc",$$css:!0}},T6={compact:{kZCmMZ:"x5uh4xs",kwRFfy:"xbg7gas",$$css:!0},balanced:{kZCmMZ:"x9bi00s",kwRFfy:"xpilulx",$$css:!0},spacious:{kZCmMZ:"x18c6q21",kwRFfy:"x1wzlfcn",$$css:!0}},wx=aa(null);wx.displayName="TableContext";const wK={row:{kWkggS:"x189zj9d","--table-row-overlay":"xztvxw7",$$css:!0}},SK={row:{kWkggS:"xoevpu5","--table-row-overlay":"xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}},EK={row:{kWkggS:"x189zj9d xoevpu5","--table-row-overlay":"xztvxw7 xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}};function vp({children:e,xstyle:t,ref:r,isHeaderRow:s=!1,className:o,style:l,...u}){const d=x.use(wx);if(!d)return m.jsx("tr",{ref:r,...u,...ye(he("table-row"),fe(y$,t),o,l),children:e});const f=[];return s||(d.isStriped&&d.hasHover?f.push(EK.row):d.isStriped?f.push(wK.row):d.hasHover&&f.push(SK.row)),d.dividers==="rows"||d.dividers,t&&f.push(...t),m.jsx("tr",{ref:r,...u,...ye(he("table-row"),fe(y$,...f),o,l),children:e})}vp.displayName="TableRow";const U0=new Set(["menuitem","menuitemradio","menuitemcheckbox"]),wp=[...U0].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(","),j6='[role="menu"]';function R6(e){return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0}function A6(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 $K="button:not(:disabled), a[href]",kh={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 CK(e,t){return`item-${e.id??t}`}function M6({items:e,onSelect:t,onOpenSubmenu:r}){const s=x.useRef(null),o=fx({menuRef:s,itemSelector:$K}),l=(u,d)=>{const f=u.items!=null&&u.items.length>0,p=u.variant==="destructive",y=!f&&u.href!=null,g=k=>{if(y&&u.isDisabled){k.preventDefault();return}oc()==="pointer"&&k.currentTarget.blur(),f?r(u):y&&R6(k)?t({...u,onClick:void 0},k):t(u,k)};return m.jsx(wc,{label:u.label,description:u.description,startContent:u.icon?Ca(u.icon,{size:"sm",color:p?"error":"secondary"}):void 0,endContent:f?m.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Ga.mirror}):u.endContent,isDisabled:u.isDisabled,href:y?u.href:void 0,target:y?u.target:void 0,rel:y?u.rel:void 0,onClick:y?void 0:g,onClickCapture:y?g:void 0,xstyle:p&&kh.destructiveAction},CK(u,d))};return m.jsx(uc,{ref:s,density:"spacious",xstyle:kh.list,...o.menuProps,children:e.map((u,d)=>"type"in u&&u.type==="divider"?m.jsx("li",{role:"presentation",className:"x3ct3a4",children:m.jsx(Ai,{xstyle:kh.divider})},`divider-${d}`):"type"in u&&u.type==="section"?m.jsx("li",{className:"x3ct3a4",children:m.jsxs("div",{role:"group","aria-label":u.title,className:"x78zum5 xdt5ytf xzye2dw",children:[u.title&&m.jsx(Oo,{level:4,xstyle:kh.sectionHeading,children:u.title}),m.jsx(uc,{density:"spacious",children:u.items.map(l)})]})},`section-${u.id??d}`):l(u,d))})}M6.displayName="MenuBottomSheetActionList";const Sx=aa(null);Sx.displayName="DropdownMenuContext";function z6(){return x.use(Sx)}const TK=x.createContext(null);TK.displayName="DropdownMenuRadioGroupContext";function N6(e,t){if(t||e.pointerType!=="mouse")return;const r=e.currentTarget;r!==r.ownerDocument.activeElement&&r.focus({preventScroll:!0})}const Qy={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}},jK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}};function V0({icon:e,label:t,description:r,onClick:s,href:o,target:l,rel:u,isDisabled:d=!1,endContent:f,hasCloseOnSelect:p=!0,variant:y="default",xstyle:g,className:k,style:v,ref:w,onPointerMove:S,onAuxClick:E,...R}){const C=z6(),T=C?.menuSize??"md",A=ja(),M=x.useCallback(z=>{if(d){z.preventDefault();return}o!=null&&R6(z)||s?.(z),p&&C?.closeMenu()},[d,o,s,p,C]),L=x.useCallback(z=>{if(d){z.preventDefault();return}o==null||z.button!==1||p&&C?.closeMenu()},[d,o,p,C]),D=x.useCallback(z=>N6(z,d),[d]),j=y==="destructive",I=Oi();return m.jsx($d,{...R,ref:w,as:o!=null?I:void 0,role:"menuitem",tabIndex:d?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:f,onClick:M,onAuxClick:Ir(L,E),href:o,target:l,rel:u,draggable:o!=null?!1:void 0,isDisabled:d,xstyle:[Qy.root,jK[T],j&&Qy.destructive,d&&Qy.disabled,g],...ye(he("dropdown-menu-item",{size:T,variant:j?"destructive":null}),{className:k,style:v})})}V0.displayName="DropdownMenuItem";const RK={divider:{kqGvvJ:"xsq74q5",$$css:!0}},b$=he("dropdown-menu-divider").className;function L6({xstyle:e,className:t,style:r,ref:s}){return m.jsx(Ai,{ref:s,xstyle:[RK.divider,e],className:t?`${b$} ${t}`:b$,style:r})}L6.displayName="DropdownMenuDivider";const D6=x.createContext(!1);D6.displayName="MenuRegionsContext";function AK(e,t){return typeof e=="string"&&x6(e)?{property:"inlineSize",value:e.trim()}:{property:"minWidth",value:g6(e,t)}}const Jy={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}},MK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},zK={kzqmXN:"x1uyokj7",$$css:!0},vh={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=>[zK,{"--x-inlineSize":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function O6(e){const{icon:t,label:r,description:s,isDisabled:o=!1,hasSpinner:l=!1,menuWidth:u,onOpenChange:d,presentation:f="adaptive",children:p,xstyle:y,className:g,style:k,"data-testid":v,menuDataTestId:w,ref:S,id:E,onMouseEnter:R,onMouseLeave:C,onPointerMove:T,onClick:A,onKeyDown:M,...L}=e,D=zt(),j=z6(),I=x.use(D6),z=j?.menuSize??"md",H=!o,F=x.useId(),B=x.useId(),q=E??B,U=x.useRef(null),_=j?.drillIn,P=_!=null&&(f==="drill-in"||f==="adaptive"&&_.isCompactTouch)?_:null,G=P!=null,Y=x.useId(),X=P?.viewStack.includes(Y)===!0,ee=X&&P?.viewStack.at(-1)===Y,Q=typeof r=="string"?r:void 0,oe=j?.menuLabel,O=oe!=null?D("@astryx.dropdownMenu.backTo",{parent:oe}):D("@astryx.dropdownMenu.back"),[Z,de]=x.useState(!1),ue=G?X:Z,ve=xd({mode:"context",lightDismiss:!1,onShow:x.useCallback(()=>{de(!0),d?.(!0)},[d]),onHide:x.useCallback(()=>{de(!1),d?.(!1)},[d])}),xe=x.useCallback(()=>{H&&ve.show()},[H,ve]),$e=x.useCallback(()=>{ve.hide()},[ve]),{listRef:te,handleKeyDown:pe,focusFirst:Re,focusItem:Te,ownsEvent:Ce,getItems:Me}=sx({itemSelector:wp,boundarySelector:j6,wrap:!0,hasPaging:!0,onEscape:()=>rt({focusTrigger:!0})}),je=I0(te,p,ue&&!G),He=T0({getItemLabels:()=>Me().map(Le=>Le.textContent),onMatch:Te,getCurrentIndex:()=>Me().findIndex(Le=>Le===document.activeElement||Le.contains(document.activeElement))}),{triggerProps:at,contentProps:pt,confirmHoverOpen:et}=JT({show:xe,hide:$e,isOpen:Z,isEnabled:H&&!G,flyoutRef:te}),Ve=x.useRef(null),yt=x.useRef(!1),Pe=x.useCallback(Le=>{if(H){if(P!=null){Ve.current=Le?.focusFirst?"first":"container",P.push(Y),d?.(!0);return}ve.show(),Le?.focusFirst&&(Re()||te.current?.focus())}},[H,P,Y,d,ve,Re,te]),rt=x.useCallback(Le=>{if(P!=null){X&&(yt.current=Le?.focusTrigger!==!1,P.pop(),d?.(!1));return}ve.hide(),Le?.focusTrigger!==!1&&U.current?.focus()},[P,X,d,ve]);x.useEffect(()=>{if(!ee||P?.host==null)return;const Le=Ve.current;if(Le==null)return;Ve.current=null;const Jt=Me(),un=Le==="first"?Jt[1]??Jt[0]:null;un!=null?un.focus({preventScroll:!0}):te.current?.focus({preventScroll:!0})},[ee,P?.host,Me,te]),x.useEffect(()=>{X||!yt.current||(yt.current=!1,U.current?.focus({preventScroll:!0}))},[X]);const lt=ve.ref,st=x.useCallback(Le=>{U.current=Le,lt(Le)},[lt]),ct=xn(st,S),we=x.useCallback(Le=>{if(o){Le.preventDefault();return}if(G){const Jt=Le.detail>0||MF();Pe({focusFirst:!Jt});return}if(Z){if(et()){Re()||te.current?.focus();return}rt({focusTrigger:!0})}else Pe({focusFirst:!0})},[o,G,Z,Pe,rt,et,Re,te]),Ge=x.useCallback(Le=>{Ir(we,A)(Le)},[we,A]),Pt=x.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=x.useCallback(Le=>N6(Le,o),[o]),gn=x.useCallback(Le=>{if(Le.key==="Tab"&&I){rt({focusTrigger:!1});return}if(!Ce(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 rn=document.activeElement;rn&&U0.has(rn.getAttribute("role")??"")&&A6(rn,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}pe(Le)},[Ce,rt,pe,He,te,I]),An=x.useMemo(()=>({menuSize:z,closeMenu:()=>{rt({focusTrigger:!1}),j?.closeMenu()},drillIn:_,menuLabel:Q}),[z,rt,j,_,Q]),Vt=fx({menuRef:te,itemSelector:wp,onDismiss:An.closeMenu}),Yn=l?m.jsx("span",{className:"x78zum5 x6s0dn4",children:m.jsx(Do,{size:"sm"})}):m.jsx("span",{className:"x78zum5 x6s0dn4",children:m.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Ga.mirror,...he("dropdown-menu-indicator-icon")})}),Qt=u?AK(u,sc.maxInlineSizeFallback):null,kn=Qt?Qt.property==="inlineSize"?vh.popoverCustomIntrinsicWidth(Qt.value):vh.popoverCustomWidth(Qt.value):vh.popover,Ye=m.jsxs(Sx,{value:An,children:[G&&m.jsx(V0,{icon:m.jsx(ft,{icon:"chevronLeft",size:"sm",color:"secondary",xstyle:Ga.mirror}),label:O,hasCloseOnSelect:!1,onClick:()=>rt({focusTrigger:!0})}),p]});return m.jsxs(m.Fragment,{children:[m.jsx($d,{...L,ref:ct,id:q,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,M),isDisabled:o,xstyle:[Jy.root,MK[z],ue&&Jy.open,o&&Jy.disabled,y],...ye(he("dropdown-menu-item",{size:z}),{className:g,style:k})}),P!=null?X&&P.host!=null&&Ks.createPortal(m.jsx("div",{ref:te,id:F,role:"menu",tabIndex:-1,"aria-label":Q,"aria-labelledby":Q==null?q:void 0,hidden:!ee,inert:!ee,onKeyDown:gn,"data-testid":w,...Vt.menuProps,...{0:{className:"x78zum5 xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o"},1:{className:"xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o x1s85apg"}}[!ee<<0],children:Ye}),P.host):ve.render(m.jsx("div",{ref:te,id:F,role:"menu",tabIndex:je?0:-1,"aria-labelledby":q,onKeyDown:gn,onMouseEnter:pt.onMouseEnter,onMouseLeave:pt.onMouseLeave,"data-testid":w,...Vt.menuProps,...ye(he("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:[vh.popoverViewport,kn,gd.end]})]})}O6.displayName="DropdownMenuSubMenu";function I6(e,t){return`item-${e.id??t}`}function NK(e,t){return`section-${e.id??t}`}function k$(e,t){const{items:r,id:s,...o}=e;return m.jsx(V0,{...o},I6(e,t))}function _6(e){const t=[];for(let r=0;r<e.length;r++){const s=e[r];"type"in s&&s.type==="divider"?t.push(m.jsx(L6,{},`divider-${r}`)):"type"in s&&s.type==="section"?t.push(m.jsxs("div",{role:"group","aria-label":s.title,children:[s.title&&m.jsx("div",{"aria-hidden":"true",...ye(he("dropdown-menu-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:s.title}),s.items.map(k$)]},NK(s,r))):"type"in s||(s.items&&s.items.length>0?t.push(m.jsx(O6,{icon:s.icon,label:s.label,isDisabled:s.isDisabled,children:_6(s.items)},I6(s,r))):t.push(k$(s,r)))}return t}function LK(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(s6).matches}function DK(e){const[t,r]=x.useState(!1),[s,o]=x.useState([]),[l,u]=x.useState(null),[d,f]=x.useState(e);d!==e&&(f(e),e?r(LK()):s.length>0&&o([]));const p=x.useCallback(w=>{o(S=>S.includes(w)?S:[...S,w])},[]),y=x.useCallback(()=>{o(w=>w.length===0?w:w.slice(0,-1))},[]),g=x.useMemo(()=>({isCompactTouch:t,viewStack:s,host:l,push:p,pop:y}),[t,s,l,p,y]),k=s.length>0,v=x.useCallback(w=>m.jsxs(m.Fragment,{children:[m.jsx("div",{hidden:k,inert:k,...{0:{className:"xjp7ctv"},1:{className:"x1s85apg"}}[!!k<<0],children:w}),m.jsx("div",{ref:u,className:"xjp7ctv"})]}),[k]);return{drillIn:g,isDrilled:k,wrapContent:v}}const OK=x.lazy(async()=>md(()=>import("./MenuBottomSheet-Bs2WJHmm.js"),__vite__mapDeps([0,1])).then(e=>({default:e.MenuBottomSheet}))),ds={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 G0({children:e,menuWidth:t,size:r="md",label:s,isDisabled:o=!1,onOpenChange:l,presentation:u="popover",triggerAs:d="div",ref:f,className:p,style:y,xstyle:g,triggerXstyle:k,"data-testid":v,...w}){const S=zt(),E=s??S("@astryx.contextMenu.label"),R=S("@astryx.dropdownMenu.back"),T=o6(u)==="bottom-sheet",{items:A,menuContent:M,...L}=w,D=A??[],j=M,I=x.useId(),z=x.useRef({x:0,y:0}),H=x.useRef(null),F=x.useRef(null),B=x.useRef(null),q=x.useRef(null),[U,_]=x.useState(!1),[P,G]=x.useState([]),Y=P.at(-1),X=Y?.items??D,ee=Y?.label??E,Q=typeof ee=="string"?ee:E,oe=x.useCallback(we=>{we||G([]),_(we),l?.(we)},[l]),O=xd({mode:"context",onHide:x.useCallback(()=>{_(!1),l?.(!1);const we=B.current;B.current=null,we&&document.contains(we)&&we.focus()},[l]),onShow:x.useCallback(()=>{_(!0),l?.(!0)},[l]),lightDismiss:!1}),Z=x.useCallback(()=>{T?oe(!1):O.hide()},[O,oe,T]),de=x.useCallback((we,Ge)=>{we.isDisabled||(we.onClick?.(Ge),we.hasCloseOnSelect!==!1&&Z())},[Z]);x.useEffect(()=>{if(!U||P.length===0)return;const we=requestAnimationFrame(()=>{q.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(we)},[U,P.length]);const{listRef:ue,handleKeyDown:ve,focusFirst:xe,focusItem:$e,ownsEvent:te,getItems:pe}=sx({itemSelector:wp,boundarySelector:j6,wrap:!0,hasPaging:!0,onEscape:Z}),Re=T0({getItemLabels:()=>pe().map(we=>we.textContent),onMatch:$e,getCurrentIndex:()=>pe().findIndex(we=>we===document.activeElement||we.contains(document.activeElement))});x.useEffect(()=>{if(!U||T)return;const we=Ge=>{const Pt=ue.current;Pt&&!Pt.contains(Ge.target)&&Z()};return document.addEventListener("mousedown",we),()=>{document.removeEventListener("mousedown",we)}},[U,Z,ue,T]),x.useEffect(()=>{if(!U||T)return;const we=Ge=>{Ge.key==="Escape"&&(pd(Ge)||(Ge.preventDefault(),Z()))};return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[U,Z,T]);const Te=x.useCallback(we=>{if(te(we)){if(we.key==="Enter"||we.key===" "){if(we.preventDefault(),we.repeat)return;const Ge=document.activeElement;Ge&&U0.has(Ge.getAttribute("role")??"")&&A6(Ge,we);return}if(we.key==="Tab"){Z();return}if(Re.onKeyDown(we)){we.preventDefault();return}ve(we)}},[ve,Z,Re,te]),Ce=x.useCallback((we,Ge,Pt)=>{z.current={x:we,y:Ge};const bn=H.current;bn&&(bn.style.left=`${we}px`,bn.style.top=`${Ge}px`),B.current=document.activeElement instanceof HTMLElement?document.activeElement:Pt,T?oe(!0):(O.show(),requestAnimationFrame(()=>xe()))},[O,xe,oe,T]),Me=x.useCallback(()=>F.current?.getBoundingClientRect(),[]),je=x.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;Ce(bn,gn,we.currentTarget)},[o,Ce,Me]),He=O4({disabled:o,onLongPress:x.useCallback(we=>{const Ge=Me();Ce(Ge?we.x-Ge.left:we.x,Ge?we.y-Ge.top:we.y,F.current)},[Ce,Me])}),at=t?ds.popoverCustomWidth(t):ds.popover,{drillIn:pt,wrapContent:et}=DK(U&&!T),Ve=x.useMemo(()=>({closeMenu:Z,menuSize:r,drillIn:pt,menuLabel:E}),[Z,r,pt,E]),yt=et(A!==void 0?_6(D):j),Pe=I0(ue,yt,U&&!T),rt=fx({menuRef:ue,itemSelector:wp,onDismiss:Z,isEnabled:!T}),lt=m.jsx("div",{ref:ue,id:I,role:"menu","data-autofocus":T?"":void 0,tabIndex:T?0:-1,"aria-label":E,onKeyDown:Te,onContextMenu:we=>we.preventDefault(),...rt.menuProps,...ye(he("context-menu"),fe(T?ds.sheetMenu:ds.menu,!T&&(Pe?ds.touchPanYPinchZoom:ds.touchPinchZoom),g),p,y),children:m.jsx(Sx,{value:Ve,children:yt})}),st=A!==void 0?m.jsxs("div",{ref:ue,"data-autofocus":"",tabIndex:0,...ye(he("context-menu"),fe(ds.sheetMenu,g),p,y),children:[m.jsxs("div",{className:"x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5",children:[P.length>0&&m.jsx(jt,{label:R,variant:"ghost",size:"sm",icon:m.jsx(ft,{icon:"chevronLeft",size:"sm",xstyle:Ga.mirror}),isIconOnly:!0,onClick:()=>G(we=>we.slice(0,-1))}),m.jsx(Oo,{ref:q,level:3,tabIndex:-1,xstyle:[ds.sheetViewHeading,P.length===0&&ds.sheetRootHeading],children:ee})]}),m.jsx(M6,{items:X,onSelect:de,onOpenSubmenu:we=>G(Ge=>[...Ge,we])})]}):lt,ct=d==="div"?"div":"span";return m.jsxs(m.Fragment,{children:[m.jsxs(ct,{ref:xn(f,F),...L,onContextMenu:je,onTouchStart:He.onTouchStart,onTouchMove:He.onTouchMove,onTouchEnd:He.onTouchEnd,onTouchCancel:He.onTouchCancel,"data-testid":v,...fe(ds.trigger,...k?Array.isArray(k)?k:[k]:[]),children:[e,m.jsx("span",{ref:xn(H,O.ref),"aria-hidden":"true",...ye({className:"x10l6tqk xnalus7 xqtp20y x47corl"},{style:{left:`${z.current.x}px`,top:`${z.current.y}px`}})})]}),T?m.jsx(x.Suspense,{fallback:null,children:m.jsx(OK,{isOpen:U,onOpenChange:oe,label:Q,children:st})}):O.render(lt,{placement:"below",alignment:"start",xstyle:[at,gd.below]})]})}G0.displayName="ContextMenu";function q6(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?m.jsx(ft,{icon:"check",size:"xsm","aria-hidden":!0}):u.icon,isDisabled:u.disabled,onClick:u.onSelect,variant:u.variant})}),s}function IK({element:e,getActions:t,triggerXstyle:r}){const[s,o]=x.useState(null);return m.jsx(G0,{items:s??[],triggerXstyle:r,onOpenChange:l=>{o(l?q6(t()):null)},children:e})}function P6(e,t,r){return typeof t=="function"?m.jsx(IK,{element:e,getActions:t,triggerXstyle:r}):!t||t.length===0?e:m.jsx(G0,{items:q6(t),triggerXstyle:r,children:e})}function _K(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 B6(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function H6(){return x.use(wx)}const qK={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}},PK={compact:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},BK={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0}},v$={fill:{k1xSpc:"x1lliihq",kB7OPa:"x9f619",kZKoxP:"x5yr21d",kzqmXN:"xh8yej3",$$css:!0}},HK={cell:{kZKoxP:"x5yr21d",$$css:!0}},FK={cell:{kt9PQ7:"x92x3c3 x1wp2rvj",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},UK={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},VK={middle:{kXLuUW:"xxymvpz",$$css:!0},top:{kXLuUW:"x16dsc37",$$css:!0},bottom:{kXLuUW:"x3ajldb",$$css:!0}};function K0({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const d=H6(),f=typeof l=="function"||Array.isArray(l)&&l.length>0,p=d?[f?PK[d.density]:qK[d.density],d.textOverflow==="truncate"?C6.cell:vK.cell,T6[d.density],VK[d.verticalAlign],..._K(d,FK.cell,UK.cell),...f?[HK.cell]:[]]:[],y=f&&d?[v$.fill,BK[d.density]]:f?v$.fill:void 0,g=P6(e,l,y);return m.jsx("td",{ref:r,...u,...ye(he("table-cell",{density:d?.density}),fe(...B6(p,t)),s,o),children:g})}K0.displayName="TableCell";const GK={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}},KK={cell:{k63SB2:"x2mo6ok",kMwMTN:"xv1l7n4",k9WMMc:"x1yc453h",$$css:!0}},WK={cell:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},YK={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}};function W0({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const d=H6(),f=[];d&&(f.push(KK.cell,GK[d.density],WK.cell,C6.cell,T6[d.density]),(d.dividers==="columns"||d.dividers==="grid")&&f.push(YK.cell));const p=P6(e,l);return m.jsx("th",{ref:r,...u,...ye(he("table-header-cell",{density:d?.density}),fe(...B6(f,t)),s,o),children:p})}W0.displayName="TableHeaderCell";function Y0({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return m.jsx("thead",{ref:e,...ye(he("table-header"),fe(r),s,o),...l,children:t})}Y0.displayName="TableHeader";function X0({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return m.jsx("tbody",{ref:e,...ye(he("table-body"),fe(r),s,o),...l,children:t})}X0.displayName="TableBody";const e1={table:{kzqmXN:"xh8yej3",kLvRdT:"x1mwwwfo",kheTzg:"x1gukg7c",kPzzVL:"x140o2bo",$$css:!0},tableAutoLayout:{kPzzVL:"x1drmoe9",$$css:!0}};function hi(e,t,r,...s){return e.reduce((o,l,u)=>{const d=t(l);if(!d)return o;try{return d(o,...s)}catch(f){return Pb("Table",`Plugin at index ${u} threw in transform:`,f),o}},r)}const XK=[];function ZK(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 QK({item:e,rowIndex:t,rowKey:r,columns:s,plugins:o,textOverflow:l,RowComponent:u,CellComponent:d,ariaRowIndex:f}){const p=s.map((k,v)=>{const w={};k.align&&(w.style={textAlign:k.align});const E=hi(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?gK(e,k.key):k.renderCell?.(e)??null);let T;return R&&l==="truncate"&&typeof C=="string"&&C.length>0?T=m.jsx(Je,{type:"body",maxLines:1,children:C}):T=C,m.jsx(d,{...E.htmlProps,contextMenuActions:E.contextMenuActions,xstyle:E.xstyle,children:T},k.key)}),y=hi(o,k=>k.transformBodyRow,{htmlProps:f==null?{}:{"aria-rowindex":f},xstyle:[],children:m.jsx(m.Fragment,{children:p})},e,t),g=m.jsx(u,{ref:y.ref,...y.htmlProps,xstyle:y.xstyle,children:y.children},r);return y.afterRow?m.jsxs(m.Fragment,{children:[g,y.afterRow]}):g}function JK(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 eW=x.memo(QK,JK);function tW({data:e,columns:t,idKey:r,plugins:s,children:o,textOverflow:l="wrap",scrollWrapper:u,emptyState:d,rowIndexStart:f,rowCount:p,xstyle:y,className:g,style:k,ref:v,...w}){const S=zt(),E=s??XK,R=f!=null||p!=null,C=f??1,T=R?p??-1:void 0,A=vp,M=K0,L=W0,D=t??(e?kK(e):[]),j=hi(E,X=>X.transformColumns,D),I=x.useRef(j);ZK(I.current,j)||(I.current=j);const z=I.current,H=xK(z),F=hi(E,X=>X.transformTable,{htmlProps:{},xstyle:o?[e1.table,e1.tableAutoLayout]:[e1.table]}),B=z.map((X,ee)=>{const Q=X.header??X.key,oe={"data-column-key":X.key,scope:"col"};X.align&&(oe.style={textAlign:X.align});const Z=hi(E,je=>je.transformHeaderCell,{htmlProps:oe,xstyle:[],content:Q,columnIndex:ee,columns:z},X,ee,z),de=H.columns.get(X.key)?.style??{},ue=Z.htmlProps.style,ve={...Z.htmlProps,style:ue?{...de,...ue}:de},xe=Z.content??Q,$e=typeof xe=="string"&&xe.length>0?{title:xe}:{},{before:te,after:pe,overlay:Re,below:Te}=Z,Me=te!=null||pe!=null||Re!=null||Te!=null?m.jsxs(m.Fragment,{children:[te,pe!=null?m.jsxs("div",{className:"x3nfvp2 x6s0dn4 xzye2dw xeuugli",children:[xe,pe]}):xe,Re,Te]}):xe;return m.jsx(L,{...ve,...$e,contextMenuActions:Z.contextMenuActions,xstyle:Z.xstyle,children:Me},X.key)}),q=hi(E,X=>X.transformHeaderRow,{htmlProps:{},xstyle:[],children:m.jsx(m.Fragment,{children:B})}),U=e!=null&&e.length>0,_=z.length>0,P={...F.htmlProps.style,...k},G=H.tableMinWidth>0?{...P,minWidth:pK(P.minWidth,H.tableMinWidth)}:P;let Y=m.jsx("table",{ref:v,...T!=null?{"aria-rowcount":T}:null,...F.htmlProps,...ye(he("table"),fe(...F.xstyle,y),[F.htmlProps.className,g].filter(Boolean).join(" ")||void 0,G),...w,children:o||m.jsxs(m.Fragment,{children:[_&&m.jsx(Y0,{children:m.jsx(A,{...q.htmlProps,isHeaderRow:!0,xstyle:q.xstyle,children:q.children})}),m.jsx(X0,{children:U?e.map((X,ee)=>{const Q=r==null?ee:typeof r=="function"?r(X):String(X[r]);return m.jsx(eW,{item:X,rowIndex:ee,rowKey:Q,columns:z,plugins:E,textOverflow:l,RowComponent:A,CellComponent:M,ariaRowIndex:R?C+ee:void 0},Q)}):e!=null&&d!==!1&&m.jsx("tr",{children:m.jsx("td",{colSpan:z.length,children:d??m.jsx(dc,{title:S("@astryx.table.noData"),isCompact:!0})})})})]})});if(u){const X=hi(E,ee=>ee.transformScrollWrapper,{htmlProps:{},xstyle:[]});Y=m.jsx(u,{htmlProps:X.htmlProps,xstyle:X.xstyle,beforeTable:X.beforeTable,afterTable:X.afterTable,children:Y})}for(let X=E.length-1;X>=0;X--){const ee=E[X];if(ee.transformTableContext)try{Y=ee.transformTableContext(Y)}catch(Q){Pb("Table","Plugin threw in transformTableContext:",Q)}}return Y}const F6=tW;F6.displayName="BaseTable";const U6=["columnSettings","sort","tree","selection","pagination"],w$=new Map(U6.map((e,t)=>[e,t]));function nW(e){const t=U6.length;return e.sort(([r],[s])=>{const o=w$.get(r)??t,l=w$.get(s)??t;return o-l})}const wh=new Set(["transformColumns","transformTable","transformHeaderRow","transformHeaderCell","transformBodyRow","transformBodyCell","transformScrollWrapper","transformTableContext"]);function rW(e,t){const r=Object.keys(t);for(const o of r)wh.has(o)||Ea("Table",`Plugin "${e}" has unknown key "${o}". Valid keys: ${[...wh].join(", ")}. This key will be ignored.`);for(const o of r)if(wh.has(o)){const l=t[o];l!=null&&typeof l!="function"&&Ea()}r.some(o=>wh.has(o)&&typeof t[o]=="function")||Ea()}function aW(e,t){const r=x.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?nW(Object.entries(t)).map(([,l])=>l):[],o=[...e,...s];if(t)for(const[l,u]of Object.entries(t))rW(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 oW={base:{kMv6JI:"xjb2p0i",kMwMTN:"x1tgivj0",$$css:!0}},S$={base:{kXHlph:"xw2csxc",kuHK5b:"x5lxg6s",$$css:!0},containerBleed:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0}};function iW({children:e,htmlProps:t,xstyle:r,beforeTable:s,afterTable:o}){const u=zt()("@astryx.table.label"),{getViewportProps:d,getContentProps:f,state:p}=lU({axis:"inline",keyboardAccess:{owner:"content"},overscroll:"contain"}),{ref:y,...g}=t??{},k=d({role:"group","aria-label":u,...p.inline.isScrollable?{tabIndex:0}:{},...g,ref:y,...ye(he("table-scroll-wrapper"),fe(S$.base,S$.containerBleed,...r??[]))});return m.jsx("div",{...k,children:m.jsxs("div",{...f(),children:[s,e,o]})})}function lW(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,oW.base]}}}}function cW({density:e="balanced",dividers:t="rows",isStriped:r=!1,hasHover:s=!1,verticalAlign:o="middle",textOverflow:l="wrap",plugins:u,columns:d,data:f,ref:p,...y}){const g=x.useMemo(()=>lW(),[]),k=x.useMemo(()=>[g],[g]),v=aW(k,u),w=x.useMemo(()=>({density:e,dividers:t,isStriped:r,hasHover:s,verticalAlign:o,textOverflow:l}),[e,t,r,s,o,l]);return m.jsx(wx,{value:w,children:m.jsx(F6,{ref:p,data:f,columns:d,plugins:v,textOverflow:l,scrollWrapper:iW,...y})})}const Ex=cW;Ex.displayName="Table";function uW(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=$6(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 dW(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=$6(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 E$(e,t,r,s){const o=uW(e,r);if(o?.has(t))return{edge:"start",offset:o.get(t)??0};const l=dW(e,s);return l?.has(t)?{edge:"end",offset:l.get(t)??0}:null}const fW="--table-sticky-shadow-start",hW="--table-sticky-shadow-end",Sh={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}},Eh={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}},$$=[];function pW(e){const{startKeys:t,endKeys:r}=e,s=t??$$,o=r??$$,l=s.length>0,u=o.length>0,d=x.useRef({start:s,end:o,hasStart:l,hasEnd:u});d.current={start:s,end:o,hasStart:l,hasEnd:u};const f=x.useRef(null),p=x.useCallback(y=>{if(f.current?.(),f.current=null,!y)return;const g=()=>{const{hasStart:v,hasEnd:w}=d.current,S=y.scrollWidth-y.clientWidth,E=S>1,R=Math.abs(y.scrollLeft);v&&y.style.setProperty(fW,E&&R>1?"1":"0"),w&&y.style.setProperty(hW,E&&R<S-1?"1":"0")};y.addEventListener("scroll",g,{passive:!0});const k=typeof ResizeObserver<"u"?new ResizeObserver(g):null;k?.observe(y),g(),f.current=()=>{y.removeEventListener("scroll",g),k?.disconnect()}},[]);return x.useMemo(()=>({transformHeaderCell(y,g){const{start:k,end:v}=d.current,w=E$(y.columns,g.key,k,v);if(!w)return y;const S=w.edge==="start"?{position:"sticky",insetInlineStart:`${w.offset}px`}:{position:"sticky",insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...S}},xstyle:[...y.xstyle,Sh.cell,Sh.headerCell,w.edge==="start"?Eh.start:Eh.end]}},transformBodyCell(y,g){const{start:k,end:v}=d.current,w=E$(y.columns,g.key,k,v);if(!w)return y;const S=w.edge==="start"?{insetInlineStart:`${w.offset}px`}:{insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...S}},xstyle:[...y.xstyle,Sh.cell,Sh.bodyCell,w.edge==="start"?Eh.start:Eh.end]}},transformScrollWrapper(y){if(!d.current.hasStart&&!d.current.hasEnd)return y;const g=y.htmlProps.ref,k=v=>{p(v),typeof g=="function"?g(v):g!=null&&(g.current=v)};return{...y,htmlProps:{...y.htmlProps,ref:k}}}}),[p])}const xW={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}},gW={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 V6({variant:e="neutral",label:t,icon:r,xstyle:s,className:o,style:l,ref:u,...d}){const f=typeof t=="number"?String(t):typeof t=="string"&&t.length>0?t:void 0;return m.jsxs("span",{ref:u,...ye(he("badge",{variant:e}),fe(xW.base,gW[e],s),o,l),title:f,...d,children:[r,m.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:t})]})}V6.displayName="Badge";const $h={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 mW(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function yW({isOpen:e,onOpenChange:t,onCreated:r}){const{t:s}=cn(),o=Io(),l=qr(),u=x.useRef(null),[d,f]=x.useState(""),p=Er({mutationFn:vG,onSuccess:k=>{if(!k.ok){o({body:s(nd(k.error.code)),type:"error",uniqueID:`capture-error-${k.error.code}`}),k.error.code==="CAPTURE_ALREADY_EXISTS"&&f(""),u.current?.focus();return}l.invalidateQueries({queryKey:Pn.all}),o({body:s("captures.captureAdded"),uniqueID:"capture-added"}),r(k.data)}});x.useEffect(()=>{e&&(f(""),requestAnimationFrame(()=>{u.current?.focus()}))},[e]);const y=k=>{const v=k.clipboardData.getData("text/plain").trim();k.preventDefault(),v&&f(v)},g=k=>{if(!(k.key!=="Enter"||p.isPending)&&(k.preventDefault(),!!d)){if(!mW(d)){o({body:s("captures.invalidUrl"),type:"error",uniqueID:"invalid-capture-url"});return}p.mutate({url:d})}};return m.jsx(bx,{isOpen:e,onOpenChange:t,width:620,padding:4,purpose:"form","aria-label":s("captures.addCapture"),children:m.jsx(Gs,{ref:u,role:"button",tabIndex:0,"aria-label":s("captures.pasteLink"),padding:8,variant:"transparent",xstyle:$h.dropZone,onClick:()=>{u.current?.focus()},onPaste:y,onKeyDown:g,children:m.jsx(We,{hAlign:"center",vAlign:"center",gap:4,xstyle:$h.content,children:d?m.jsxs(m.Fragment,{children:[m.jsx(ax,{href:d,isStandalone:!0,size:"lg",display:"block",weight:"semibold",maxLines:3,target:"_blank",xstyle:$h.urlLink,children:d}),p.isPending?m.jsx(Je,{type:"supporting",children:s("captures.capturing")}):m.jsxs(Rt,{gap:2,vAlign:"center",hAlign:"center",children:[m.jsx(yp,{keys:"enter",xstyle:$h.enterKey}),m.jsx(Je,{type:"supporting",children:s("captures.enterToCapture")})]})]}):m.jsxs(Rt,{gap:2,vAlign:"center",hAlign:"center",wrap:"wrap",children:[m.jsx(yp,{keys:"mod+v"}),m.jsx(Je,{type:"supporting",children:s("captures.toPaste")})]})})})})}const C$={noteButton:{kzqmXN:"xh8yej3",kjj79g:"x1nhvcw1",k9WMMc:"x1yc453h",$$css:!0},noteInput:{k7Eaqz:"xeuugli",$$css:!0}};function bW({capture:e}){const{t}=cn(),r=Io(),s=qr(),[o,l]=x.useState(!1),[u,d]=x.useState(e.userNote??""),f=Er({mutationFn:p=>SG(e.id,p),onSuccess:p=>{if(!p.ok){r({body:t(nd(p.error.code)),type:"error"});return}d(p.data.userNote??""),l(!1),s.invalidateQueries({queryKey:Pn.all})}});if(o){const p=()=>{if(f.isPending||u===(e.userNote??"")){l(!1);return}f.mutate(u)};return m.jsx(Fa,{label:t("captures.note"),isLabelHidden:!0,size:"sm",value:u,onChange:d,onEnter:p,onBlur:p,hasAutoFocus:!0,isLoading:f.isPending,width:"100%",containerXstyle:C$.noteInput})}return m.jsx(jt,{label:e.userNote||t("captures.addNote"),variant:"ghost",size:"sm",xstyle:C$.noteButton,onClick:()=>{d(e.userNote??""),l(!0)}})}const kW={urlLink:{kzqmXN:"xh8yej3",$$css:!0}},vW={"--table-sticky-background":"var(--color-background-surface)"};function T$(e,t){return t===void 0?e:`${e} (${t})`}function wW(){const{t:e}=cn(),t=mc(),r=qr(),s=Io(),[o,l]=x.useState("all"),[u,d]=x.useState(null),[f,p]=x.useState(!1),[y,g]=x.useState(null),k=pW({endKeys:["actions"]}),v=ms({queryKey:Pn.list(o),queryFn:()=>yG(o)}),w=ms({queryKey:Pn.counts(),queryFn:bG}),S=Er({mutationFn:f6,onSuccess:M=>{s(M.ok?{body:e("captures.recaptureStarted"),uniqueID:"recapture-started"}:{body:e(nd(M.error.code)),type:"error",uniqueID:M.error.code})}}),E=Er({mutationFn:wG,onSuccess:M=>{if(!M.ok){s({body:e(nd(M.error.code)),type:"error",uniqueID:M.error.code}),g(null);return}r.invalidateQueries({queryKey:Pn.all}),s({body:e("captures.captureDeleted"),uniqueID:"capture-deleted"}),g(null)}});x.useEffect(()=>{d(document.getElementById("window-titlebar-actions"))},[]);const R=()=>{r.invalidateQueries({queryKey:Pn.list(o)})},C=x.useMemo(()=>[{key:"url",header:e("captures.url"),width:Uh(3),renderCell:M=>m.jsx(ax,{href:M.url,isStandalone:!0,display:"block",maxLines:1,target:"_blank",tooltip:M.url,xstyle:kW.urlLink,children:M.url})},{key:"title",header:e("captures.title"),width:Uh(2),renderCell:M=>m.jsx(Je,{maxLines:1,children:M.title??""})},{key:"note",header:e("captures.note"),width:Uh(2),renderCell:M=>m.jsx(bW,{capture:M})},{key:"updatedAt",header:e("captures.updatedAt"),width:jo(160),renderCell:M=>m.jsx(Je,{color:"secondary",children:M.updatedAt})},{key:"createdAt",header:e("captures.createdAt"),width:jo(160),renderCell:M=>m.jsx(Je,{color:"secondary",children:M.createdAt})},{key:"actions",header:"",width:jo(184),align:"end",renderCell:M=>m.jsxs(Rt,{gap:1,hAlign:"end",children:[m.jsx(_r,{label:e("captures.viewDetails"),tooltip:e("captures.viewDetails"),icon:m.jsx(lj,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${M.id}`)}}),m.jsx(_r,{label:e("captures.viewJobs"),tooltip:e("captures.viewJobs"),icon:m.jsx(yP,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${M.id}/jobs`)}}),m.jsx(_r,{label:e("captures.recapture"),tooltip:e("captures.recapture"),icon:m.jsx(aj,{}),size:"sm",variant:"ghost",onClick:()=>{S.mutate(M.id)}}),m.jsx(vx,{label:`${e("captures.delete")} ${M.url}`,isOpen:y?.id===M.id,onOpenChange:L=>{g(L?M:null)},content:m.jsxs(We,{gap:3,children:[m.jsx(Je,{type:"label",children:e("captures.deleteCaptureTitle")}),m.jsxs(Rt,{gap:2,hAlign:"end",children:[m.jsx(jt,{label:e("captures.cancel"),size:"sm",variant:"ghost",onClick:()=>{g(null)}}),m.jsx(jt,{label:e("captures.delete"),size:"sm",variant:"destructive",isLoading:E.isPending&&y?.id===M.id,onClick:()=>{E.mutate(M.id)}})]})]}),children:m.jsx(_r,{label:e("captures.delete"),tooltip:e("captures.delete"),icon:m.jsx(dj,{}),size:"sm",variant:"ghost"})})]})}],[E,y,t,S,e]),T=v.data??[],A=w.data;return m.jsxs(m.Fragment,{children:[u&&Ks.createPortal(m.jsxs(Rt,{gap:2,vAlign:"center",children:[m.jsx(_r,{label:e("captures.refresh"),tooltip:e("captures.refresh"),icon:m.jsx(ix,{}),size:"sm",variant:"ghost",onClick:R}),m.jsx(jt,{label:e("captures.addCapture"),size:"sm",variant:"primary",onClick:()=>{p(!0)}})]}),u),m.jsxs(We,{gap:5,children:[m.jsxs(k6,{label:e("captures.captureFilter"),size:"sm",value:o,onChange:M=>{l(M)},children:[m.jsx(J1,{value:"all",label:T$(e("captures.allCaptures"),A?.all)}),m.jsx(J1,{value:"no-successful",label:T$(e("captures.noCapturedContent"),A?.noSuccessful)})]}),T.length===0?m.jsx(m6,{startIcon:cj,centerIcon:_P,endIcon:v0,title:e("captures.emptyTitle"),description:e("captures.emptyDescription"),actions:m.jsx(jt,{label:e("captures.addCapture"),size:"sm",variant:"primary",icon:m.jsx(uj,{}),onClick:()=>{p(!0)}})}):m.jsx(Ex,{data:T,columns:C,idKey:"id",hasHover:!0,density:"compact",plugins:{stickyColumns:k},style:vW})]}),m.jsx(yW,{isOpen:f,onOpenChange:p,onCreated:()=>{p(!1)}})]})}const G6=Symbol("MarkdownAstLegacyCodeLanguage");function SW(e,t){return t===e.lang||Object.defineProperty(e,G6,{configurable:!1,enumerable:!0,value:t,writable:!1}),e}function K6(e){const t=e[G6];return t===void 0?e.lang:t}function EW(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 Cd(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+=Cd(s.children,t);break;case"image":r+=s.alt;break;case"citation":case"break":break;case"extension":r+=t(s);break}return r}const j$=new Map,$W=/\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/,CW=/\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/,TW=/\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/,jW=/\b(important|inherit|initial|unset|revert|auto|none)\b/,RW=/\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/,AW=/\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 W6(e){const t=j$.get(e);if(t!==void 0)return t;const r=MW(e);return j$.set(e,r),r}function MW(e){const t=zW(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 zW(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:$W},{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:jW},{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:CW},{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:TW},{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:RW},{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:AW},{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 R$=2e3,NW=800;async function LW(){return typeof scheduler<"u"&&typeof scheduler.yield=="function"?scheduler.yield():new Promise(e=>setTimeout(e,0))}function Y6(e,t,r,s){const o=[];let l=r;const u=Math.min(s,e.length);for(;l<u;){let d=!1;for(const f of t.patterns){f.anchored.lastIndex=l;const p=f.anchored.exec(e);if(p&&p.index===l&&p[0].length>0){f.type!==t.defaultType&&o.push({type:f.type,start:l-r,end:l-r+p[0].length}),l+=p[0].length,d=!0;break}}d||l++}return o}function DW(e,t){const r=W6(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(Y6(e,r,o,l)),o=l+1);return s}async function OW(e,t,r){const s=W6(t);if(!s)return[];const o=[];let l=0,u=0;for(let d=0;d<=e.length;d++)if((d===e.length||e[d]===`
96
- `)&&(o.push(Y6(e,s,l,d)),u+=d-l+1,l=d+1,u>=NW&&d<e.length)){if(r?.aborted)return o;u=0,await LW()}return o}function IW(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 _W=`:root {
98
- ${Object.entries(Xb).map(([e,t])=>` ${e}: ${t};`).join(`
99
- `)}
100
- }`,qW=`
101
- ${_W}
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 A$=!1;function $x(){if(A$||typeof document>"u")return;const e=document.createElement("style");e.setAttribute("data-astryx-highlight-styles",""),e.textContent=qW,document.head.appendChild(e),A$=!0}const PW=["keyword","string","comment","number","function","type","tag","attribute","property","operator","constant","punctuation","variable"],M$=new Set(PW);let Ch=null;function BW(e){if(M$.has(e)||(M$.add(e),$x(),typeof document>"u"))return;if(!Ch){const s=document.createElement("style");if(s.setAttribute("data-astryx-highlight-dynamic",""),document.head.appendChild(s),Ch=s.sheet??null,!Ch)return}const t=CSS.escape(`astryx-${e}`),r=`var(${CSS.escape(`--color-syntax-${e}`)}, currentColor)`;try{Ch.insertRule(`.astryx-code-block code::highlight(${t}), .astryx-codeeditor code::highlight(${t}) { color: ${r}; }`)}catch{}}function HW(){const e=new Map;return t=>{let r=e.get(t);if(r)return r;BW(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 X6(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 d=Math.min(u.start,l),f=Math.min(u.end,l),p=s(u.type);try{const y=new Range;y.setStart(o,d),y.setEnd(o,f),p.add(y),r.push({range:y,highlight:p})}catch{}}}function t1(e){for(const{range:t,highlight:r}of e)r.delete(t)}function FW(e,t,r,s){const o=[],l=e.querySelectorAll("[data-line]");for(let u=0;u<l.length;u++){const d=r+u,f=t[d];f&&f.length>0&&X6(l[u],f,o,s)}return o}function UW(e,t){$x();const r=HW(),s=[],o=[];let l=0;for(let y=0;y<e.children.length;y++){const g=e.children[y],k=g.querySelectorAll("[data-line]");k.length>0&&g.tagName==="DIV"&&!g.hasAttribute("data-line")&&(s.push(g),o.push(l),l+=k.length)}if(s.length===0){const y=[],g=e.querySelectorAll("[data-line]");for(let k=0;k<g.length;k++){const v=t[k];v&&v.length>0&&X6(g[k],v,y,r)}return()=>t1(y)}const u=new Map,d=new Map;function f(y,g){if(u.has(y))return;const k=FW(y,t,o[g],r);u.set(y,k)}function p(y){const g=u.get(y);g&&(t1(g),u.delete(y))}for(let y=0;y<s.length;y++){const g=s[y],k=w=>{w.skipped?p(g):f(g,y)};g.addEventListener("contentvisibilityautostatechange",k),d.set(g,k);const v=g;typeof v.checkVisibility=="function"?v.checkVisibility({checkVisibilityCSS:!0,contentVisibilityAuto:!0})&&f(g,y):y<5&&f(g,y)}return function(){for(const[g,k]of d)g.removeEventListener("contentvisibilityautostatechange",k);d.clear();for(const g of u.values())t1(g);u.clear()}}const VW={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}},GW={"--_codeblock-gutter-width":"xtk08jq",$$css:!0},Z0={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=>[GW,{"--x---_codeblock-gutter-width":`${e}ch`!=null?`${e}ch`:void 0}]},vr={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}},KW=20,WW=100,z$=x.memo(function({lines:t,startIndex:r,highlightSet:s,renderLineContent:o,lineNumbers:l}){return m.jsx(m.Fragment,{children:t.map((u,d)=>{const f=r+d;return m.jsx("div",{"data-line":f+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(f+1)??!1)<<0],children:o(u,f)},f)})})});function Z6(e,t,r,s,o=KW){if(o=Math.max(1,Math.floor(o)),e.length<WW)return m.jsx(z$,{lines:e,startIndex:0,highlightSet:t,renderLineContent:r,lineNumbers:s});const l=[];for(let u=0;u<e.length;u+=o){const d=Math.min(u+o,e.length),f=e.slice(u,d),p=`${f.length}lh`;l.push(m.jsx("div",{...ye({className:"xb5mbof"},{style:{containIntrinsicBlockSize:`auto ${p}`}}),children:m.jsx(z$,{lines:f,startIndex:u,highlightSet:t,renderLineContent:r,lineNumbers:s})},u))}return l}function Q6(){return typeof CSS<"u"&&"highlights"in CSS&&typeof Highlight<"u"}function YW(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}function XW(e,t,r){const[s,o]=x.useState(null),l=x.useMemo(()=>r?IW(r(e,t),e):e.length>=R$?null:DW(e,t),[e,t,r]);return x.useEffect(()=>{if(e.length<R$||r)return;const u=new AbortController;async function d(){try{const f=await OW(e,t,u.signal);u.signal.aborted||o({code:e,language:t,tokens:f})}catch{u.signal.aborted||o({code:e,language:t,tokens:[]})}}return d(),()=>{u.abort()}},[e,t,r]),l??(s?.code===e&&s.language===t?s.tokens:[])}function ZW(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(m.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 QW({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){x.useInsertionEffect(()=>{$x()},[]);const d=x.useCallback((f,p)=>{const y=t[p]??[];return m.jsx("span",{className:"xeuugli",children:ZW(f,y)})},[t]);return m.jsx("code",{...fe(vr.code,o,s&&vr.codeWrapped,l&&vr.codeNumbered,l&&Z0.gutterWidth(u)),children:Z6(e,r,d,l)})}function JW({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){const d=x.useRef(null);x.useEffect(()=>{if(!Q6())return;$x();const p=d.current;if(!(!p||t.length===0))return UW(p,t)},[t]);const f=x.useCallback(p=>p||"​",[]);return m.jsx("code",{ref:d,...fe(vr.code,o,s&&vr.codeWrapped,l&&vr.codeNumbered,l&&Z0.gutterWidth(u)),children:Z6(e,r,f,l)})}function J6({code:e,language:t="plaintext",title:r,hasLanguageLabel:s=!0,hasLineNumbers:o=!1,highlightLines:l,hasCopyButton:u=!0,onCopy:d,isWrapped:f=!1,maxHeight:p,isCollapsible:y=!1,collapsibleThreshold:g=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:M,...L}){const D=zt(),{copy:j,isCopied:I}=N4({announce:D("@astryx.codeBlock.copied")}),z=E==="spans"||E==="auto"&&!Q6()||E==="auto"&&YW(),H=x.useMemo(()=>{const pe=e.split(`
146
- `);return pe.length>1&&pe[pe.length-1]===""&&pe.pop(),pe},[e]),F=XW(e,t,S),B=x.useMemo(()=>l?new Set(l):null,[l]),q=x.useCallback(async()=>{await j(e)&&d?.()},[e,j,d]),U=k==="sm"?vr.sizeSm:vr.sizeMd,_=String(H.length).length,P=s&&t!=="plaintext"?t:null,G=r!=null||P!=null,Y=G&&y&&H.length>=g,X=x.useMemo(()=>Y?{}:null,[Y]),[ee,Q]=x.useState(null),oe=X!=null&&ee===X,O=x.useCallback(()=>{Q(pe=>pe===X?null:X)},[X]),Z=x.useId(),de=x.useRef(null),ue=p!=null?{maxHeight:typeof p=="number"?`${p}px`:p}:void 0,ve=u?m.jsx(_r,{variant:"ghost",size:"sm",icon:m.jsx(ft,{icon:I?"check":"copy",size:"sm",color:"inherit"}),tooltip:D("@astryx.codeBlock.copyCode"),label:D(I?"@astryx.codeBlock.copied":"@astryx.codeBlock.copyCode"),onClick:pe=>{pe.stopPropagation(),q()},xstyle:[vr.copyButton,!G&&vr.copyButtonAbsolute],...he("code-block-copy-button")}):null,xe=G?m.jsxs("div",{...ye(he("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:[m.jsx("div",{role:Y?"button":void 0,tabIndex:Y?0:void 0,"aria-expanded":Y?!oe:void 0,"aria-controls":Y?Z:void 0,"aria-label":Y&&!r?.trim()&&!P?D("@astryx.codeBlock.code"):void 0,onClick:Y?O:void 0,onKeyDown:Y?pe=>{(pe.key==="Enter"||pe.key===" ")&&(pe.preventDefault(),O())}:void 0,...pn.focusVisible(vr.header,Y&&vr.headerCollapsible),children:m.jsxs("span",{...ye(he("code-block-title",{size:k,language:t}),{className:"x78zum5 x6s0dn4 x141an7d x9m5x89 x1e4wzip x1mjzq1q x1ghz6dp x1ltkj2j"}),children:[Y&&m.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s x6jxa94 x1v9usgg xnur1sd xb3r6kr x1mjzq1q x1gbn2au x1aquc0h x12wqnr7 x128ha8g",children:m.jsx(ft,{icon:"chevronRight",size:"xsm",color:"inherit",xstyle:[vr.collapseChevronIcon,!oe&&vr.collapseChevronExpanded]})}),r,r&&P?" — ":"",P]})}),ve]}):null,$e=m.jsx("div",{ref:de,tabIndex:0,role:"group","aria-label":P??D("@astryx.codeBlock.code"),...ye({className:"xw2csxc x1odjw0f"},{style:ue}),children:m.jsx("div",{...{0:{className:"x78zum5 x1pshirs"},1:{className:"x78zum5 x1pshirs x1ajqlyv"}}[!!(G&&!o)<<0],children:z?m.jsx(QW,{lines:H,tokenLines:F,highlightSet:B,isWrapped:f,sizeStyle:U,hasLineNumbers:o,maxDigits:_}):m.jsx(JW,{lines:H,tokenLines:F,highlightSet:B,isWrapped:f,sizeStyle:U,hasLineNumbers:o,maxDigits:_})})}),te=m.jsxs("pre",{ref:M,...ye(he("code-block",{size:k,language:t,container:w}),fe(vr.root,Z0.width(v),VW[w],C),T,A),...L,children:[xe,Y?m.jsx("div",{id:Z,inert:oe?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz xlr8y92 xihq33y"}}[!!oe<<0],children:m.jsx("div",{className:"xb3r6kr x2lwn1j",children:$e})}):$e,!G&&ve]});return R?m.jsx(rj,{theme:R,children:te}):te}J6.displayName="CodeBlock";const eY={base:{kMv6JI:"x9m5x89",kGuDYH:"xp03k98",kLWn49:"x15bjb6t",kWkggS:"xwmxj5m",kg3NbH:"x7a5moj",k8WAf4:"x1hp7d8q",kaIpWk:"xx3sua9",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",$$css:!0}},tY={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},nY={inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}};function Q0({children:e,color:t="primary",size:r,xstyle:s,className:o,style:l,ref:u,...d}){return m.jsx("code",{ref:u,...d,...ye(he("code",{color:t}),fe(eY.base,tY[t],r&&nY[r],s),o,l),children:e})}Q0.displayName="Code";const N$=[];function eR({label:e,isLabelHidden:t=!1,description:r,status:s,value:o,onChange:l,changeAction:u,density:d="balanced",hasDividers:f=!1,isDisabled:p=!1,disabledMessage:y,isReadOnly:g=!1,children:k,ref:v,width:w,containerXstyle:S,containerClassName:E,containerStyle:R,controlXstyle:C,controlClassName:T,controlStyle:A,"aria-describedby":M,...L}){const{rest:D,container:j}=mx("CheckboxList",L,{containerXstyle:S,containerClassName:E,containerStyle:R}),I=x.useId(),z=x.useId(),H=x.useId(),F=x.useId(),[,B]=x.useTransition(),q=o!==void 0,U=o??N$,[_,P]=x.useOptimistic(U),[G,Y]=x.useOptimistic(N$,(O,Z)=>O.includes(Z)?O:[...O,Z]),X=p&&!!y,ee=Ka({placement:"above",focusTrigger:"always",isEnabled:X}),Q=x.useCallback((O,Z)=>{l?.(O),u&&B(async()=>{P(O),Z!==void 0&&Y(Z),await u(O)})},[l,u,B,P,Y]),oe=x.useMemo(()=>({value:q?_:void 0,onChange:q?Q:void 0,isDisabled:p,hasDisabledMessage:X,isReadOnly:g,loadingValues:G}),[q,_,Q,p,X,g,G]);return m.jsxs(vc,{label:e,isLabelHidden:t,description:r,inputID:I,labelID:z,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(he("checkbox-list"),{className:j.className,style:j.style}),children:[m.jsx(yx,{value:oe,children:m.jsx("div",{...D,ref:xn(v,ee.ref),...ye(fe(C),T,A),role:"group","aria-labelledby":z,"aria-describedby":[M,r?H:null,s?.message?F:null,X?ee.describedBy:null].filter(Boolean).join(" ")||void 0,children:m.jsx(uc,{density:d,hasDividers:f,children:k})})}),X&&ee.renderTooltip(y)]})}eR.displayName="CheckboxList";const rY={selected:{kWkggS:"xgcxg3y",$$css:!0}};function aY(e){const t=x.use(O0);return m.jsx(D0,{...e,"aria-describedby":t??void 0})}function tR({label:e,"aria-label":t,value:r,description:s,endContent:o,isDisabled:l=!1,isLoading:u=!1,isChecked:d,onCheck:f,ref:p,xstyle:y,className:g,style:k,onClick:v,...w}){const S=zt(),E=x.use(yx);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=x.useId(),T=R&&t==null,A=t??(R?S("@astryx.checkboxList.item.checkbox"):e),D=(x.use(Mi)?.density??"balanced")==="compact"?"sm":"md",j=(E?.isDisabled??!1)||l,I=E?.isReadOnly??!1,z=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):d!==void 0&&(H=d);const F=!I&&(E!=null||f!=null),B=x.useRef(null),q=F||v!=null,U=I&&v!=null?P=>{v(P),P.stopPropagation()}:v,_=()=>{j||I||z||(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):f?.(H!==!0))};return m.jsx(wc,{...w,ref:p,label:T?m.jsx("span",{id:C,children:e}):e,description:s,endContent:o,isDisabled:j,interactiveRef:q?B:void 0,"aria-busy":z||void 0,xstyle:[H===!0&&!j&&!I&&rY.selected,y],className:g,style:k,startContent:m.jsx(aY,{ref:B,label:A,"aria-labelledby":T?C:void 0,isLabelHidden:!0,value:H,onChange:()=>_(),onClick:U,isDisabled:j,isReadOnly:I,isLoading:z,size:D})})}tR.displayName="CheckboxListItem";const sY={root:{k2ei4v:"xtpqe59",kVhnKS:"x1t7ytsu",kGJrpR:"x14ydlgx",kZCmMZ:"x1rey3nv",kMwMTN:"xv1l7n4",kHjlTd:"x1mzt3pk",keTefX:"x1lziwak",k71WvV:"x14z9mp",keoZOQ:"xdj266r",k1K539:"xat24cr",$$css:!0}};function nR({children:e,cite:t,xstyle:r,className:s,style:o,ref:l,...u}){return m.jsxs("blockquote",{ref:l,...ye(he("blockquote"),fe(sY.root,r),s,o),...u,children:[e,Fs(t)&&m.jsx("cite",{className:"x1lliihq xtbrsbv x141an7d x1ltkj2j x1j61x8r",children:t})]})}nR.displayName="Blockquote";function oY(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 iY(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 d=t;d<l&&l<o&&(u.push({key:`settled-${s}`,text:e.slice(0,l-t),fading:!1}),d=l);for(let f=0;f<r.length;f++){const p=r[f],y=f+1<r.length?r[f+1]:o;if(p>=o||y<=d)continue;const g=Math.max(p,d),k=Math.min(y,o);g>=k||(u.push({key:`fade-${s}-b${p}`,text:e.slice(g-t,k-t),fading:!0}),d=k)}return u.length>0?u:null}const di={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 rR({ref:e,source:t,number:r,variant:s="label",xstyle:o,className:l,style:u,"data-testid":d,...f}){const p=zt(),y=t.title??String(r),g=t.url!=null&&Bs(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=g?"a":"span",E=g?"doc-noteref":"group",R=g?{href:g,target:"_blank",rel:"noopener noreferrer",title:y}:{title:y},C=e;return s==="number"?m.jsx(S,{...f,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:y}),"data-testid":d,...R,...ye(he("citation",{variant:s}),fe(di.number,g!=null&&di.numberHover,g!=null&&di.numberInteractive,o),l,u),children:r}):m.jsxs(S,{...f,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:y}),"data-testid":d,...R,...ye(he("citation",{variant:s}),fe(di.label,w&&di.labelWithIcon,g!=null&&di.labelHover,g!=null&&di.labelInteractive,o),l,u),children:[w&&m.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"}):m.jsx("img",{src:v,alt:"",className:"x1ad1g3v x9gl9lo"})}),m.jsx("span",{className:"xb3r6kr xlyipyv xuxw1ft xeuugli",children:y})]})}rR.displayName="Citation";const lY=/^(?:javascript:|data:|vbscript:)/i;function cY(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function Wa(e){return Bs(e)}function aR(e){const t=rT(e);return t===""?null:t}function sR(e){const t=cY(e);return t!==""&&!lY.test(t)?t:null}const uY=Symbol("MarkdownTransformPluginName"),dY=Symbol("MarkdownTransformHasRenderer"),fY=Symbol("MarkdownTransformSourceUnchanged"),hY=Symbol("MarkdownTransformClaim"),pY=Symbol("MarkdownSourceLines"),oR=Symbol("MarkdownTransformTrusted");function xY(e){return Object.defineProperty(e,oR,{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}const J0="@astryxdesign/core/MarkdownPluginEntry",iR=Symbol.for(J0);function ek(e){(e==null||typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype)&&eb("entries must come from a compatible createMarkdownPlugin()");const t=e,r=t[iR],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!==J0||r.apiVersion!==1||s==null||typeof s!="object"||!Object.isFrozen(s)||s.name!==t.name||s.apiVersion!==t.apiVersion)&&eb("entries must come from a compatible createMarkdownPlugin()"),s}function eb(e){throw new Error(`Markdown plugin: ${e}`)}const L$=new WeakMap;function D$(e,t,r){const s=e.get(t);s==null?e.set(t,[r]):s.push(r)}function O$(e){const t=e,r=ek(e);if(r.transform==null)return e;const s=Object.freeze({...r,transform:void 0});return Object.freeze({name:t.name,apiVersion:t.apiVersion,[iR]:Object.freeze({kind:J0,apiVersion:1,definition:s})})}function lR(e){if(e.length===0)return;const t=L$.get(e);if(t!=null)return t;const r=new Set,s=new Map,o=new Map,l=[],u=new Map,d=[],f=[],p=[];let y=!1;for(const k of e){const v=ek(k),w=k;if(r.has(v.name)&&eb(`duplicate name "${v.name}"`),r.add(v.name),f.push(w),v.transform!=null&&l.push({pluginName:v.name,transform:v.transform,claims:v.transform[hY],trusted:v.transform[oR]===!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[pY]===!0&&(y=!0,p.push(O$(k)),d.push(`${v.name}\0${v.apiVersion}\0source-lines`)),"syntax"in v&&v.syntax!=null){p.push(O$(k)),d.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])))D$(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])))D$(o,R,E)}}}const g={entries:f,syntaxEntries:p,inlineByFirstCharacter:s,blockByFirstCharacter:o,transforms:l,hasUntrustedTransform:l.some(k=>!k.trusted),syntaxIdentity:d.join(""),renderers:u,sourceLines:y};return L$.set(e,g),g}function rd(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=>rd(s,t)):Object.getPrototypeOf(e)!==Object.prototype?r=!1:r=Object.values(e).every(s=>rd(s,t)),t.delete(e),r}function cR(e){if(e!=null&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))cR(t);Object.freeze(e)}return e}function tk(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 gY(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 uR(e){return JSON.stringify([e.lang,e.meta,e.value,e.position??null])}function mY(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=uR(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 yY(e,t){const r=mY(e);if(r.size===0)return t;const s=o=>{let l=o;if(o.type==="code"){const u=uR(o),f=r.get(u)?.shift(),p=f?.descriptors.some(([y,g])=>{const k=Object.getOwnPropertyDescriptor(o,y);return k==null||k.value!==g.value||k.get!==g.get||k.set!==g.set||k.enumerable!==g.enumerable||k.configurable!==g.configurable||k.writable!==g.writable});if(f!=null&&p===!0){const y={...o};for(const[g,k]of f.descriptors)Object.defineProperty(y,g,k);l=y}}if("children"in l&&Array.isArray(l.children)){const u=l.children,d=u.map(f=>s(f));d.some((f,p)=>f!==u[p])&&(l={...l,children:d})}return l};return s(t)}function bY(e){const t=new Map,r=s=>{const o=tk(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 dR(e){return JSON.stringify([e.plugin,e.name,e.display,e.data,e.source,tk(e.position)])}function kY(e){const t=new Map,r=s=>{if(s.type==="extension"){const o=dR(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 Vh=Symbol("MarkdownSourceHeading");function vY(e){const t=new Set,r=s=>{if(s.type==="heading"&&!(Vh in s)&&Object.defineProperty(s,Vh,{configurable:!1,enumerable:!0,value:Object.freeze({depth:s.depth}),writable:!1}),s.type==="heading"&&t.add(s[Vh]),"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 wY=new Set(["text","strong","emphasis","delete","inlineCode","inlineMath","break","link","image","citation"]),SY=new Set(["heading","paragraph","code","math","blockquote","list","table","thematicBreak","image"]),fR=new Set(["heading","paragraph","strong","emphasis","delete","link","tableCell"]),hR=new Set(["root","blockquote","listItem"]),EY=new Set([...fR,...hR,"list","table","tableRow"]);function $Y(e,t,r,s,o,l,u,d){if(e==null||typeof e!="object")return!1;const f=new Set,p=new Set;let y=0;const g=(v,w,S)=>{if(v==null||typeof v!="object"||f.has(v)||++y>1e5)return!1;f.add(v);const E=v,R=E.type;if(typeof R!="string"||E.data!==void 0&&!rd(E.data))return!1;if(w!=null){const A=R==="extension"?E.display:void 0,M=wY.has(R)||A==="inline",L=SY.has(R)||A==="block";if(fR.has(w)&&!M||hR.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=tk(C);if(C!=null&&!gY(C))return!1;if(T!=null){const A=s.get(T)??[],M=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(M<0)return!1;A.splice(M,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[Vh];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"||!Wa(E.url))return!1;break;case"image":if(typeof E.url!="string"||!Wa(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"||!rd(E.data)||!r.has(`${E.plugin}\0${E.name}`))return!1;const A=dR(E),M=u.get(A);if(M!=null&&M.count>0)M.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(EY.has(R)){if(!Array.isArray(E.children))return!1;for(const A of E.children)if(!g(A,R,S||R==="link"))return!1}else if("children"in E)return!1;return!0},k=e;return g(k,null,!1)&&k.type==="root"&&Array.from(u.values()).every(v=>v.plugin===l||v.count===0)&&(d==="block"||k.children.length===1&&k.children[0]?.type==="paragraph")}function tb(e){if(!(e==null||typeof e!="object")){if(Array.isArray(e))for(let t=0;t<e.length;t++)tb(e[t]);else for(const t in e)tb(e[t]);Object.freeze(e)}}function n1(e){return tb(e),e}const I$=new Set;function nb(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++)nb(s?.[o],t[o])}else for(const s in t)nb(r?.[s],t[s]);return Object.freeze(t),t}function Va(e,t,r){const s=`markdown-plugin:${e}:${t}`,o=`plugin "${e}" failed in ${t}; rendered readable fallback.`;{I$.has(s)||(I$.add(s),Pb("Markdown",o));return}}function ad(e,t,r,s,o){if(t==null||t.transforms.length===0)return e;let l,u,d=e;const f=t.hasUntrustedTransform?vY(e):void 0;let p=!1,y=!1,g=!1;for(const k of t.transforms)if(!(!y&&k.claims?.(r)===!1)){k.trusted||(p||(l=new Set(t.entries.map(v=>v.name)),u=new Set(t.renderers.keys()),p=!0),d=n1(d),g=!1);try{const v={source:r,isFinal:s,display:o,report(R){Va(k.pluginName,"transform",R)},[uY]:k.pluginName,[dY]:R=>t.renderers.has(`${k.pluginName}\0${R}`),[fY]:!y},w=k.transform(d,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===d)continue;if(k.trusted){y=!0,g=!0,d=w;continue}const S=bY(d),E=kY(d);if(!$Y(w,l,u,S,f,k.pluginName,E,o))throw new TypeError("Transform returned an invalid Markdown document");y=!0,d=n1(yY(d,w))}catch{Va(k.pluginName,"transform")}}return g?t.hasUntrustedTransform?n1(d):nb(e,d):d}function nk(e,t){return e?.renderers.get(`${t.plugin}\0${t.name}`)?.renderer}function sd(e,t){const r=nk(e,t);if(r==null)return t.source??"";try{return r.toText(t)}catch{return Va(t.plugin,"render"),t.source??""}}const CY="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 Th;function TY(e){if(Th===void 0){Th=new Map;for(const t of CY.split(" ")){const r=t.indexOf("="),s=t.slice(r+1).split(",").map(o=>parseInt(o,16));Th.set(t.slice(0,r),String.fromCodePoint(...s))}}return Th.get(e)}const jY=/^&(?:#[xX]([0-9a-fA-F]{1,6})|#([0-9]{1,7})|([A-Za-z][A-Za-z0-9]{0,31}));/;function rk(e,t){const r=jY.exec(e.slice(t,t+40));if(r==null)return null;const[s,o,l,u]=r,d=t+s.length;if(u!=null){const y=TY(u);return y===void 0?null:{value:y,end:d}}const f=o!=null?parseInt(o,16):parseInt(l??"0",10);return{value:f!==0&&f<=1114111&&(f<55296||f>57343)?String.fromCodePoint(f):"�",end:d}}function ak(e){return e!=null&&/^[!-/:-@[-`{-~]$/.test(e)}function RY(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&&ak(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=rk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function AY(e){const t=e?.start.offset,r=e?.end.offset;return t==null||r==null?{}:{range:{start:t,end:r}}}function pR(e,t){if(t||e.position===void 0)return e;const{position:r,...s}=e;return s}function bi(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=>bi(l,t,r))};break;case"emphasis":o={type:"italic",children:e.children.map(l=>bi(l,t,r))};break;case"delete":o={type:"strikethrough",children:e.children.map(l=>bi(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=>bi(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=pR(e,r);break}return t.set(e,o),o}function _$(e,t,r){const s=t.get(e);if(s!=null)return s;const o={children:e.children.map(l=>bi(l,t,r))};return t.set(e,o),o}function MY(e,t,r){const s=t.get(e);if(s!=null)return s;const o={checked:e.checked,children:e.children.map(l=>Uu(l,t,r))};return t.set(e,o),o}function Uu(e,t,r){const s=t.get(e);if(s!=null)return s;const o=r?AY(e.position):{};let l;switch(e.type){case"heading":l={type:"heading",level:e.depth,children:e.children.map(u=>bi(u,t,r)),...o};break;case"paragraph":l={type:"paragraph",children:e.children.map(u=>bi(u,t,r)),...o};break;case"code":l={type:"codeblock",language:K6(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=>Uu(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=>MY(u,t,r)),...o};break;case"table":{const[u={type:"tableRow",children:[]},...d]=e.children;l={type:"table",headers:u.children.map(f=>_$(f,t,r)),alignments:[...e.align],rows:d.map(f=>f.children.map(p=>_$(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=pR(e,r);break}return t.set(e,l),l}const zY=100;function xR(e,t){return`${e}\0${t}`}function Sp(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 NY=Sp({isFinal:!0}),LY=Sp({isFinal:!1});function sk(e,t=!1){if(e==null)return t?LY:NY;if(typeof e.has=="function")return Sp({sourceIds:e,isFinal:!t});const r=e,s=r.plugins!=null&&r.plugins.length>0?lR(r.plugins):void 0;return Sp({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 DY=/^ {0,3}\[([^\]^](?:\\.|[^\]\\])*)\]:[ \t]*(?:<([^<>\n]*)>|(\S+))([ \t]+(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\)))?[ \t]*$/,rb=999,OY=/^ {0,3}(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\))[ \t]*$/;function fc(e){return e.trim().replace(/\s+/g," ").toLowerCase()}function q$(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 P$(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 gR(e){const t=q$(e),r=/^( {0,9})(?:[-*+]|\d+[.)]) +(.*)$/.exec(t.content);if(r!=null){const s=/^\[[ xX]\] +(.*)$/.exec(r[2]),o=q$(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 mR(e,t){const r=P$(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=P$(r.trimStart(),t.innerQuoteDepth);return o==null||/^ {0,3}> ?/.test(o)?"outside":o.trim()==="$$"?"close":"inside"}function ab(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 IY(e){const t=DY.exec(e);if(t==null||t[1].length>rb)return null;const r=fc(t[1]),s=t[2]!=null?t[2]:t[3];return r===""||s==null?null:{label:r,destination:Tp(s),hasTitle:t[4]!=null}}const od=/^( {0,3})(`{3,}|~{3,})/;function sb(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 _Y(e){if(_i(e))return null;const t=/^( {0,9})([-*+]|\d+[.)]) /.exec(e);if(t==null)return null;const r=t[0].length,s=Hs(e.slice(r));return{base:t[1].length,content:s>=4?r:r+s,ordered:t[2]!=="-"&&t[2]!=="*"&&t[2]!=="+"}}function ok(){let e="",t=null,r=!1,s="",o=!1,l=!1;const u=f=>/^ {0,3}#{1,6}(?:[ \t]|$)/.test(f)||_i(f),d=f=>{if(s!==""){sb(f,s)&&(s=""),o=!1;return}const p=od.exec(f);if(p!=null){s=p[2],o=!1;return}o=f.trim()!==""&&!u(f)};return{get open(){return e!==""},read(f,p){const y=f[p];if(e!=="")return sb(y,e)?(e="","close"):"inside";if(y.trim()==="")return r=t!=null,l=!1,null;const g=Hs(y);if(t!=null&&(r?g>=t.content:g>t.base))return d(y.slice(Math.min(g,t.content))),null;const k=_Y(y);if(k!=null&&!(l&&t==null&&k.ordered&&!/^ {0,9}0*1[.)]/.test(y)))return t=k,r=!1,s="",l=!1,d(y.slice(k.content)),null;const v=od.exec(y);return v!=null?(t=null,l=!1,e=v[2],"open"):(t!=null&&!r&&o&&Jl(f,p)||(t=null,l=!u(y)),null)}}}function Ep(e,t=!1){const r=e.split(`
148
- `),s=new Map,o=new Array(r.length).fill(!0);let l=!0;const u=ok();for(let p=0;p<r.length;p++){const y=r[p];if(u.open){l=u.read(r,p)==="close";continue}if(t){const g=ab(r,p);if(g!=null){p=g.endLine,l=!0;continue}}if(u.read(r,p)==="open"){l=!1;continue}if(y.trim()===""){l=!0;continue}if(l){const g=IY(y);if(g!=null){s.has(g.label)||s.set(g.label,g.destination),o[p]=!1,!g.hasTitle&&p+1<r.length&&OY.test(r[p+1])&&(o[p+1]=!1,p++);continue}}l=/^ {0,3}#{1,6}(?: |\t|$)/.test(y)||_i(y)}if(s.size===0)return{defs:s,cleaned:e};const d=[];for(let p=0;p<r.length;p++)o[p]&&d.push(p);const f=d.map(p=>r[p]).join(`
149
- `);return{defs:s,cleaned:f,lineMap:d}}function qY(e){return e==null||e.size===0?"":[...e].sort().join("\0")}function yR(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 $p(e){return e.plugins==null?e:{...e,plugins:void 0}}function PY(e,t,r,s,o,l){const u=l.openerClose(t);if(u===-1)return null;const d=e.slice(t+1,u);if(e[u+1]==="["){const p=l.closingBracket(u+2);if(p!==-1){const y=e.slice(u+2,p),g=y===""?d:y,k=r.get(fc(g));if(k!=null&&Wa(k))return{node:{type:"link",url:k,children:hc(d,$p(s),o)},end:p+1}}}if(d.trim()==="")return null;const f=r.get(fc(d));return f==null||!Wa(f)?null:{node:{type:"link",url:f,children:hc(d,$p(s),o)},end:u+1}}let r1=0;const BY=10;function Cp(e,t,r){if(r1>=BY)return RY(e);r1++;try{return Cd(bR(hc(e,$p(t),r)))}finally{r1--}}function bR(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:bR(t.children)};case"text":case"inlineCode":case"inlineMath":case"image":case"citation":case"extension":return t}})}function HY(e,t,r,s,o,l){const u=s.openerClose(t+1);if(u===-1)return null;const d=e.slice(t+2,u);if(e[u+1]==="["){const p=s.closingBracket(u+2);if(p!==-1){const y=e.slice(u+2,p),g=y===""?d:y,k=r.get(fc(g));if(k!=null&&Wa(k))return{node:{type:"image",url:k,alt:Cp(d,o,l)},end:p+1}}}if(d.trim()==="")return null;const f=r.get(fc(d));return f==null||!Wa(f)?null:{node:{type:"image",url:f,alt:Cp(d,o,l)},end:u+1}}const FY=/^\s*(?:<((?:[^<>\n\\]|\\.)*)>|([^\s<]\S*?))(?:\s+(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\((?:[^()\\]|\\.)*\)))?\s*$/s;function ob(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 ib(e){const t=FY.exec(e);return t==null?e:t[1]??t[2]??e}function Tp(e){if(!e.includes("\\")&&!e.includes("&"))return e;let t="",r=0;for(;r<e.length;){const s=e[r];if(s==="\\"&&ak(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=rk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function UY(e,t){let r=null;const s=(g,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]<g?w=E+1:S=E}return w<v.length?v[w]:-1};let o=null;const l=g=>{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 g<e.length?o[g]:-1};let u=null;const d=g=>{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[g]==="("?u[g]:-1},f=(g,k)=>{if(e[k+1]==="("){const S=ob(e,k+1),E=S==="refused"?-1:S??d(k+1);if(E!==-1)return E+1}if(t==null||k-g-1>rb)return-1;const v=e.slice(g+1,k),w=S=>{const E=t.get(fc(S));return E!=null&&Wa(E)};if(e[k+1]==="["){const S=l(k+2);if(S!==-1&&S-k-2<=rb&&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:d,openerClose:g=>{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=f(R.index,w);if(T===-1)continue;p.set(R.index,w),R.image||(v=k.length),w=T-1}}}return p.get(g)??-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 B$=/^[\t\n\f\r\p{Zs}]$/u,H$=/^[\p{P}\p{S}]$/u;function VY(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 GY(e,t){if(t>=e.length)return;const r=e.codePointAt(t);return r==null?void 0:String.fromCodePoint(r)}function KY(e,t,r,s){const o=VY(t,r),l=GY(t,s),u=o==null||B$.test(o),d=l==null||B$.test(l),f=o!=null&&H$.test(o),p=l!=null&&H$.test(l),y=!d&&(!p||u||f),g=!u&&(!f||d||p);return{node:{type:"text",value:t.slice(r,s)},character:e,originalLength:s-r,length:s-r,canOpen:e==="*"?y:y&&(!g||f),canClose:e==="*"?g:g&&(!y||p)}}const WY=100;function YY(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 d=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)},f=new Map;let p=null,y=u[0]??null;for(;y!=null;){const w=y.run;if(!y.canClose||w.length===0){y=y.next;continue}const S=`${w.character}${w.canOpen?1:0}${w.originalLength%3}`,E=f.get(S)??-1;let R=y.previous;for(;R!=null&&R.index>E;){const z=R.run,H=(w.canOpen||z.canClose)&&(z.originalLength+w.originalLength)%3===0&&!(z.originalLength%3===0&&w.originalLength%3===0);if(z.character===w.character&&z.canOpen&&z.length>0&&!H)break;R=R.previous}if(R==null||R.index<=E){f.set(S,y.index-1);const z=y.next;w.canOpen||d(y),y=z;continue}const C=R.run;let T=R.depthAfter;for(let z=R.next;z!=null&&z!==y;z=z.next)T=Math.max(T,z.depthAfter);if(R.next=y,y.previous=R,R.depthAfter=T,T>=WY){const z=y.next;d(R),y.canClose=!1,w.canOpen||d(y),y=z;continue}const A=o.get(C.node),M=o.get(w.node);if(A==null||M==null)break;const L=C.length>=2&&w.length>=2?2:1,D=[];for(let z=A.next;z!=null&&z!==M;z=z.next)D.push(z.node);let j;if(L===2)j={type:"strong",children:D},p={node:j,opener:C,closer:w};else{const[z]=D;j=D.length===1&&z===p?.node&&p.opener===C&&p.closer===w&&z.type==="strong"?{type:"strong",children:[{type:"emphasis",children:z.children}]}:{type:"emphasis",children:D}}const I={node:j,previous:A,next:M};if(A.next=I,M.previous=I,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),d(R)),w.length===0){l(M);const z=y.next;d(y),y=z}}const g=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=g.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 jp(e,t){let r=0;for(let s=t-1;s>=0&&e[s]==="\\";s--)r++;return r%2===1}function kR(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]??"")&&!jp(e,t)}function vR(e,t){if(!kR(e,t))return-1;for(let r=t+1;r<e.length;r++){if(e[r]===`
153
- `)return-1;if(!(e[r]!=="$"||jp(e,r)))return e[r-1]==="$"||e[r+1]==="$"||/\s/.test(e[r-1])||/\d/.test(e[r+1]??"")?-1:r}return-1}function XY(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 ZY(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 F$(e,t){return e.lastIndexOf(`
154
- `,t-1)+1}function lb(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 d of l){if(u.has(d))continue;u.add(d);let f=!1;for(const R of d.contribution.startsWith){if(e.startsWith(R,t)){f=!0;break}if(!s.isFinal){const C=e.slice(t);if(C.length<R.length&&R.startsWith(C))return{status:"defer"}}}if(!f)continue;const p=Math.min(e.length,t+d.contribution.maxSpan);let y;try{y=d.contribution.tokenize({source:p===e.length?e:e.slice(0,p),offset:t,end:p,isFinal:s.isFinal,context:r,lineStart:F$(e,t),column:t-F$(e,t)})}catch{Va(d.pluginName,"syntax");continue}if(y==null||typeof y!="object"||typeof y.then=="function"){Va(d.pluginName,"syntax");continue}if(y.status==="no-match")continue;if(y.status==="defer")return!s.isFinal&&p===e.length&&e.length-t<d.contribution.maxSpan?{status:"defer"}:{status:"none"};if(y.status!=="match"||!Number.isInteger(y.end)||y.end<=t||y.end>p||y.node.type!=="extension"||y.node.plugin!==d.pluginName||y.node.display!==r||y.node.name.trim()===""||!rd(y.node.data)||!s.plugins?.renderers.has(`${d.pluginName}\0${y.node.name}`)){Va(d.pluginName,"syntax");continue}const g=y.node,{source:k,position:v,...w}=g,S=(s.baseOffset??0)+t,E=(s.baseOffset??0)+y.end;return{status:"match",end:y.end,node:Object.freeze({...w,data:cR(y.node.data),source:e.slice(t,y.end),...s.sourceRanges&&r==="block"?{position:Object.freeze({start:Object.freeze({offset:S}),end:Object.freeze({offset:E})})}:null})}}return{status:"none"}}function QY(e,t){return e[t]===`
155
- `?1:e[t]==="\r"&&e[t+1]===`
156
- `?2:0}function U$(e,t){return JY(e,t)}function JY(e,t){const r=sk(t),s=Ql(e,r);if((r.plugins?.transforms.length??0)===0)return s;const l=ad({type:"root",children:[{type:"paragraph",children:s}]},r.plugins,e,r.isFinal,"inline").children[0];return l?.type==="paragraph"?[...l.children]:s}function Ql(e,t,r="default"){const s=hc(e,t,r);return t.autolink==="gfm"?$R(s):s}function hc(e,t,r="default"){const s=[];let o=null,l=null;const u=UY(e,t.linkDefs),d=t.plugins!=null&&t.plugins.inlineByFirstCharacter.size>0?t.plugins.inlineByFirstCharacter:void 0;let f=0;for(;f<e.length;){if(e[f]==="\\"&&f+1<e.length){const g=QY(e,f+1);if(g>0){s.push({type:"break"}),f+=1+g;continue}if(ak(e[f+1])){s.push({type:"text",value:e[f+1]}),f+=2;continue}}if(e[f]==="`"){let g=f;for(;e[g]==="`";)g++;const k=g-f,v=u.backtickCloser(g,k);if(v===-1){Cu(s,l,e.slice(f,g)),f=g;continue}s.push({type:"inlineCode",value:r==="tableCell"?e.slice(g,v).replace(/\\\|/g,"|"):e.slice(g,v)}),f=v+k;continue}if(t.math&&e[f]==="$"){const g=vR(e,f);if(g!==-1){s.push({type:"inlineMath",value:e.slice(f+1,g)}),f=g+1;continue}}{const g=XY(e,f,t);if(g){s.push({type:"citation",sourceId:g.sourceId}),f=g.end;continue}}if(e[f]==="!"&&e[f+1]==="["){const g=u.openerClose(f+1);if(g!==-1&&e[g+1]==="("){const k=ob(e,g+1),v=k==="refused"?-1:k??u.closingParen(g+1);if(v!==-1){const w=Tp(ib(e.slice(g+2,v)));Wa(w)?s.push({type:"image",url:w,alt:Cp(e.slice(f+2,g),t,r)}):s.push({type:"text",value:e.slice(f,v+1)}),f=v+1;continue}}}if(t.linkDefs!=null&&e[f]==="!"&&e[f+1]==="["){const g=HY(e,f,t.linkDefs,u,t,r);if(g){s.push(g.node),f=g.end;continue}}{const g=ZY(e,f,t);if(g){s.push({type:"citation",sourceId:g.sourceId}),f=g.end;continue}}if(e[f]==="["){const g=u.openerClose(f);if(g!==-1&&e[g+1]==="("){const k=ob(e,g+1),v=k==="refused"?-1:k??u.closingParen(g+1);if(v!==-1){const w=Tp(ib(e.slice(g+2,v)));Wa(w)?s.push({type:"link",url:w,children:hc(e.slice(f+1,g),$p(t),r)}):s.push({type:"text",value:e.slice(f,v+1)}),f=v+1;continue}}}if(t.linkDefs!=null&&e[f]==="["){const g=PY(e,f,t.linkDefs,t,r,u);if(g){s.push(g.node),f=g.end;continue}}if(e[f]==="*"||e[f]==="_"){const g=e[f];let k=f+1;for(;e[k]===g;)k++;const v=KY(g,e,f,k);if(v.canOpen||v.canClose){s.push(v.node),(o??=[]).push(v),(l??=new Set).add(v.node),f=k;continue}if(d?.has(g)!==!0){Cu(s,l,e.slice(f,k)),f=k;continue}}if(e[f]==="~"&&e[f+1]==="~"){const g=e.indexOf("~~",f+2);if(g!==-1){s.push({type:"delete",children:hc(e.slice(f+2,g),t,r)}),f=g+2;continue}}if(d!==void 0){const g=lb(e,f,"inline",t);if(g.status==="match"){s.push(g.node),f=g.end;continue}if(g.status==="defer")break}if(e[f]==="&"){const g=rk(e,f);if(g!=null){Cu(s,l,g.value),f=g.end;continue}}let p=f+1;for(;p<e.length&&!"*_~`[!\\\n【&".includes(e[p])&&!(t.math&&e[p]==="$")&&(d===void 0||!d.has(e[p]));)p++;const y=e.slice(f,p);if(p<e.length&&e[p]===`
157
- `){const g=y.endsWith("\r")?y.slice(0,-1):y;let k=0;for(;g[g.length-1-k]===" ";)k++;const v=g.slice(0,g.length-k);if(k>=2){v.length>0&&Cu(s,l,v),s.push({type:"break"}),f=p+1;continue}}Cu(s,l,y),f=p}return o==null?s:YY(s,o)}const wR="[^\\s<]+",eX="https?:\\/\\/",SR="[A-Za-z0-9._%+-]+",V$="[A-Za-z0-9-]+",ER=`${V$}(?:\\.${V$})+`,tX="[a-zA-Z][a-zA-Z0-9+.-]*",nX="[^<>\\s]*",rX=new RegExp(`${eX}${wR}`,"g"),aX=new RegExp(`www\\.${wR}`,"g"),sX=new RegExp(`${SR}@${ER}`,"g"),oX=new RegExp(`<(${tX}:${nX})>`,"g"),iX=new RegExp(`<(${SR}@${ER})>`,"g"),G$=new Set("?!.,:*_~"),lX=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._%+-@");function K$(e){let t=e;for(;t.length>0;){if(G$.has(t[t.length-1])){let r=t.length-1;for(;r>0&&G$.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 cX=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/=");function W$(e){return e==null?!0:!cX.has(e)}function uX(e){const t=[];{const o=new RegExp(oX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=l[1];Wa(u)&&t.push({start:l.index,end:l.index+l[0].length,href:u,display:u})}}{const o=new RegExp(iX.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(rX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!W$(u)||e.slice(l.index-2,l.index)==="](")continue;const d=K$(l[0]);d.length!==0&&t.push({start:l.index,end:l.index+d.length,href:d,display:d})}}{const o=new RegExp(aX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!W$(u)||e.slice(l.index-3,l.index)==="://")continue;const d=K$(l[0]);d.length!==0&&t.push({start:l.index,end:l.index+d.length,href:`http://${d}`,display:d})}}{const o=new RegExp(sX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];u!=null&&lX.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 dX(e){const t=uX(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 $R(e){const t=[];for(const r of e)if(r.type==="text"){const s=dX(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:$R(r.children)}):t.push(r);return t}function Hs(e){let t=0;for(;t<e.length&&e[t]===" ";)t++;return t}function _i(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 fX(e){for(let t=0;t<e.length;t++){if(e[t]==="\\"){t++;continue}if(e[t]==="|")return!0}return!1}function Vu(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 id(e){return{...e,allowBlockSyntax:!1,sourceRanges:!1,astPositions:!1,blockDepth:e.blockDepth+1,baseLine:void 0,lineOrigin:void 0}}function CR(e,t){return t==null?id(e):{...id(e),lineOrigin:t}}function Y$(e){const t=e.length-e.trimStart().length;return t<=3?t:null}const Rp=/^ {0,3}>/;function hX(e){return e.replace(/^ {0,3}>[ \t]?/,"")}function pX(e){return!!(/^ {0,3}#{1,6} /.test(e)||od.test(e)||_i(e)||Rp.test(e)||/^ {0,9}[-*+] /.test(e)||/^ {0,9}0*1[.)] /.test(e)||e.includes("|"))}function Jl(e,t,r=!1){const s=e[t];return s==null||s.trim()===""||/^ {0,3}#{1,6} /.test(s)||od.test(s)||_i(s)||Rp.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&&Vu(e[t+1]))}function cb(e){const t=e[e.length-1];if(t==null)return!1;if(t.type==="paragraph")return!0;if(t.type==="blockquote")return cb(t.children);if(t.type==="list"){const r=t.children[t.children.length-1];return r!=null&&cb(r.children)}return!1}function TR(e,t){const r=t.nestedParses;r!=null&&(r.map??=new Map);const s=r?.map?.get(xR(t.blockDepth+1,e));return cb(s??No(e,{...id(t),probing:!0}))}function a1(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 xX(e,t,r){const s=a1(e[t]).map(f=>({type:"tableCell",children:Ql(f,r,"tableCell")})),o=a1(e[t+1]).map(f=>{const p=f.trim(),y=p.startsWith(":"),g=p.endsWith(":");return y&&g?"center":g?"right":y?"left":null}),l=[];let u=t+2;for(;u<e.length&&e[u].includes("|")&&e[u].trim()!=="";)l.push({type:"tableRow",children:a1(e[u]).map(f=>({type:"tableCell",children:Ql(f,r,"tableCell")}))}),u++;return{node:{type:"table",align:o,children:[{type:"tableRow",children:s},...l]},nextIndex:u}}function X$(e,t,r){if(t.length===0)return e;const s=t.filter((l,u)=>l.trim()!==""&&!r.has(u)).map(Hs),o=s.length===0?0:Math.min(...s);return`${e}
158
- ${t.map((l,u)=>l.trim()===""?"":l.slice(r.has(u)?Hs(l):o)).join(`
159
- `)}`}function Z$(e,t,r,s,o,l){const u=[],d=Hs(e[t]),f=r?e[t].match(/^ *(\d+)([.)]) /):null,p=f?f[2]:".",y=`\\${p}`,g=r?null:e[t].trimStart()[0],k=r?new RegExp(`^ {${d}}\\d+${y} `):new RegExp(`^ {${d}}\\${g} `),v=f?parseInt(f[1],10):void 0;let w=!1,S=t;const E=C=>k.test(C)&&!_i(C);for(;S<e.length&&E(e[S]);){const C=S,T=r?e[S].replace(new RegExp(`^ *\\d+${y} `),""):e[S].replace(/^ *[-*+] /,""),A=e[S].length-T.length,M=Hs(T),L=M>=4?A:A+M,D=T.match(/^\[([ xX])\] (.*)/);let j,I;D?(j=D[1].toLowerCase()==="x",I=D[2]):I=T,S++;const z=[],H=new Set;let F=Jl([I],0,!0)?!0:void 0;for(;S<e.length&&e[S].trim()!=="";){if(Hs(e[S])>d){z.push(e[S]),F===!0&&!Jl([e[S].trimStart()],0)&&(F=void 0),S++;continue}if(o(S)||!Jl(e,S,!0)||(F===void 0&&(F=TR(X$(I,z,H),s)),!F))break;H.add(z.length),z.push(e[S]),S++}for(;;){let U=S;for(;U<e.length&&e[U].trim()==="";)U++;if(U===S||U>=e.length||Hs(e[U])<L)break;for(;S<U;S++)z.push("");for(;S<e.length&&e[S].trim()!==""&&Hs(e[S])>=L;)z.push(e[S]),S++;w=!0}const B=X$(I,z,H);if(l==null)u.push({type:"listItem",checked:j,children:No(B,id(s))});else{const U=[];for(let _=C;_<S;_++)U.push(l(_));u.push({type:"listItem",checked:j,children:No(B,CR(s,U)),position:{start:{line:U[0]+1},end:{line:U[U.length-1]+1}}})}let q=S;for(;q<e.length&&e[q].trim()==="";)q++;q>S&&q<e.length&&E(e[q])&&(w=!0,S=q)}const R={type:"list",ordered:r,start:v,delimiter:r?p:void 0,spread:w||void 0,children:u};return ld.set(R,`${d}:${r?p:g}`),{node:R,nextIndex:S}}function Q$(e,t){return gX(e,t)}function gX(e,t,r){const o=sk(t),l={type:"root",children:No(e,o)};return ad(l,o.plugins,e,o.isFinal,"block")}function No(e,t){if(t.blockDepth>=zY){const L=e.trim();return L===""?[]:[{type:"paragraph",children:Ql(L,t)}]}const r=t.nestedParses==null?{...t,nestedParses:{map:null}}:t,{defs:s,cleaned:o,lineMap:l}=Ep(e,r.math),u=r.linkDefs;let d;s.size===0?d=u:u==null?d=s:d=new Map([...s,...u]);const f=d!=null?{...r,linkDefs:d}:r,p=o.split(`
160
- `),y=f.allowBlockSyntax!==!1&&(f.plugins?.blockByFirstCharacter.size??0)>0,g=[0];if(f.astPositions===!0||y){let L=0;for(let D=0;D<p.length;D++)L+=p[D].length+1,g.push(L)}const k=new Map,v=L=>{if(!y)return!1;const D=Y$(p[L]);if(D==null)return!1;const j=g[L]+D,I=lb(o,j,"block",f);return I.status==="none"?!1:(k.set(j,I),!0)},w=[],S=yX(f,l),E=f.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=od.exec(L);if(D){const[F,B,q]=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,Y=[],X=new RegExp(`^ {0,${B.length}}`);for(A++;A<p.length&&!sb(p[A],q);)Y.push(p[A].replace(X,"")),A++;const ee=A<p.length;f.blockDepth===0&&!ee&&Y.length>0&&p[p.length-1]===""&&Y.pop(),A++,T(SW({type:"code",lang:_,...G==null?{}:{meta:G},value:Y.join(`
161
- `)},P),Math.min(A,p.length)-1);continue}if(f.math){const F=ab(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:Ql(j[2],f)}),A++;continue}if(_i(L)){T({type:"thematicBreak"}),A++;continue}const I=L.match(/^!\[([^\]]*)\]\(([^)]+)\)/),z=I?Tp(ib(I[2])):"";if(I&&L.trim()===I[0]&&Wa(z)){T({type:"image",alt:Cp(I[1],f,"default"),url:z}),A++;continue}if(A+1<p.length&&L.includes("|")&&Vu(p[A+1])){const F=xX(p,A,f);T(F.node),A=F.nextIndex;continue}if(Rp.test(L)){const F=[];let B;for(;A<p.length;){const q=p[A];if(Rp.test(q)){const U=hX(q);F.push(U),U.trim()===""?B=!1:(B===!1||B===!0&&!Jl([U],0))&&(B=void 0),A++;continue}if(F[F.length-1]?.trim()===""||v(A)||!Jl(p,A)||(B===void 0&&(B=TR(F.join(`
162
- `),f)),!B))break;F.push(q),A++}T({type:"blockquote",children:No(F.join(`
163
- `),CR(f,S==null?null:F.map((q,U)=>S(C+U))))});continue}if(/^ {0,9}[-*+] /.test(L)){const F=Z$(p,A,!1,f,v,S);T(F.node),A=F.nextIndex;continue}if(/^ {0,9}\d+[.)] /.test(L)){const F=Z$(p,A,!0,f,v,S);T(F.node),A=F.nextIndex;continue}if(y){const F=Y$(L),B=F==null?g[A]:g[A]+F,q=k.get(B)??(F==null?{status:"none"}:lb(o,B,"block",f));if(k.delete(B),q.status==="match"){const U=q.end,_=o.slice(g[A],U);if(U<o.length&&o[U]!==`
164
- `&&o[U-1]!==`
165
- `)Va(q.node.plugin,"syntax");else{const P=_.split(`
166
- `).length-1,G=Math.max(1,P+(_.endsWith(`
167
- `)?0:1));T(q.node,A+G-1),A+=G;continue}}if(q.status==="defer")break}const H=[L];for(A++;A<p.length;){const F=p[A];if(pX(F)||f.math&&ab(p,A)!=null||F.trim()===""||v(A))break;H.push(F),A++}T({type:"paragraph",children:Ql(H.join(`
168
- `),f)})}E!=null&&mX(w,E,R??[],p,l,e,f,S);const M=r.nestedParses?.map;return r.probing===!0&&M!=null&&M.set(xR(r.blockDepth,e),w),w}function mX(e,t,r,s,o,l,u,d){const f=u.astPositions===!0,p=u.baseOffset??0,y=[0];if(f)for(let k=0;k<l.length;k++)l[k]===`
169
- `&&y.push(k+1);const g=k=>p+y[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;d==null?S={start:{offset:g(v)},end:{offset:g(w)+s[w].length}}:f?S={start:{offset:g(v),line:d(v)+1},end:{offset:g(w)+s[w].length,line:d(w)+1}}:S={start:{line:d(v)+1},end:{line:d(w)+1}},e[k]=ik(e[k],{...e[k],position:S})}}function yX(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 jR=new WeakMap;function RR(e){const{defs:t}=Ep(e.settledText,e.math),r={settledEnd:e.settledText.length,settledEndLine:void 0,settledLinkDefs:new Map(t),tailLinkDefs:new Map,linkDefs:t,linkDefsKey:yR(t),settledAstBlocks:[],settledRevision:0,projectedRevision:-1,projectedSettledBlocks:[],projectionCache:new WeakMap,work:{splitCharacters:0,boundaryLines:0,definitionCharacters:0,renderedBlocks:0}};return jR.set(e,r),r}function s1(){const e={prevInput:"",settledText:"",settledBlocks:[],settledUpTo:0};return RR(e),e}function bX(e,t=!1){const r=ok();let s=null,o=!1,l=-1,u=-1,d=-1;for(let f=0;f<e.length;f++){const p=e[f];if(r.open){r.read(e,f);continue}if(s!=null){const y=mR(p,s);if(y==="close"){s=null;continue}if(y==="inside")continue;s=null,o=!0}if(t&&!o){const y=gR(p);if(y!=null){s=y,d=l;continue}}if(r.read(e,f)==="open"){u=l;continue}p.trim()===""&&(o=!1,f>0&&f<e.length-1&&/^\S/.test(e[f+1])&&(l=f))}return{boundary:r.open?u:s!=null?d:l,openFence:r.open,openMath:s!=null}}function jh(e,t){const r=t?.math?AR(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 f=0;f<l.length;f++){if(l[f]==="$"&&l[f+1]==null&&l[f-1]!=="$"&&!/\d/.test(l[f-1]??"")&&!jp(l,f)){l=l.slice(0,f);break}if(!kR(l,f))continue;const p=vR(l,f);if(p!==-1){f=p;continue}let y=-1;for(let g=f+1;g<l.length;g++)if(l[g]==="$"&&!jp(l,g)){y=g;break}if(y===-1){l=l.slice(0,f);break}f=y}const u=l.lastIndexOf("[");if(u!==-1){const f=l.slice(u);if(!(f.includes("](")&&f.includes(")"))){const y=u>0&&l[u-1]==="!"?u-1:u;l=l.slice(0,y)}}let d=l.length;for(;d>0&&l[d-1]==="`";)d--;if(d<l.length&&d>0){const f=l.length-d;l.lastIndexOf("`".repeat(f),d-1)===-1&&(l=l.slice(0,d))}for(d=l.length;d>0&&l[d-1]==="*";)d--;if(d<l.length&&d>0){const f=l.length-d;f<=3&&l.lastIndexOf("*".repeat(f),d-1)===-1&&(l=l.slice(0,d))}{let f=0;const p=[];for(;f<l.length;){const g=l.indexOf("*",f);if(g===-1)break;let k=1;for(;g+k<l.length&&l[g+k]==="*";)k++;if(k>3){f=g+k;continue}p.push({pos:g,len:k}),f=g+k}const y=new Set;for(let g=0;g<p.length;g++)if(!y.has(g)){for(let k=g+1;k<p.length;k++)if(!y.has(k)&&p[k].len===p[g].len){y.add(g),y.add(k);break}}for(let g=p.length-1;g>=0;g--)if(!y.has(g)){const k=p[g],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 f=l.length-2;f>=0&&l[f]!=="~"&&(l=l.slice(0,-1))}{let f=0,p=0;const y=[];for(;;){const g=l.indexOf("~~",p);if(g===-1)break;y.push(g),f++,p=g+2}f%2===1&&(l=l.slice(0,y[y.length-1]))}return o+l}function AR(e){const t=e.split(`
171
- `),r=ok();let s=null,o=!1,l=-1;for(let u=0;u<t.length;u++){const d=t[u];if(r.open){r.read(t,u);continue}if(s!=null){const p=mR(d,s);if(p==="close"){s=null,l=-1;continue}if(p==="inside")continue;s=null,l=-1,o=!0}if(d.trim()===""&&(o=!1),r.read(t,u)==="open")continue;const f=o?null:gR(d);f!=null&&(s=f,l=u)}return s!=null&&l>=0?t.slice(0,l).join(`
172
- `).trimEnd():e}function kX(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(fX(s)&&!Vu(r)){let o=!1;for(let l=t.length-2;l>=1;l--)if(Vu(t[l])&&t[l-1].includes("|")){o=!0;break}if(!o){t.pop();continue}}if(Vu(r)&&(t.length<2||!t[t.length-2].includes("|"))){t.pop();continue}break}return t.join(`
174
- `)}function J$(e,t,r){return e.astPositions!==!0?e:e.sourceLines===!0?{...e,baseOffset:t,baseLine:r}:{...e,baseOffset:t}}function o1(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 ld=new WeakMap;function MR(e,t){if(e.ordered!==t.ordered||e.delimiter!==t.delimiter)return!1;const r=ld.get(e),s=ld.get(t);return r==null||s==null||r===s}function ik(e,t){const r=ld.get(e);return r!=null&&ld.set(t,r),t}function vX(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"&&MR(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),ik(r,o),...t.slice(1)]}return[...e,...t]}function wX(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"&&MR(r,s)?(e[e.length-1]=ik(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 SX(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 e3(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 t3(e,t,r){const s=sk(r,!0),o={type:"root",children:EX(e,t,s)};return ad(o,s.plugins,e,s.isFinal,"block")}function EX(e,t,r){const s=jR.get(t)??RR(t);let o=!1;const l=qY(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 e3(t,s),[];(t.settledText.length!==s.settledEnd||!e.startsWith(t.settledText))&&(e3(t,s),t.autolink=r.autolink,t.math=r.math,t.sourceRanges=r.sourceRanges,t.sourceIdsKey=l,t.pluginSyntaxIdentity=u);const d=s.settledEnd,f=r.sourceLines===!0?s.settledEndLine??=o1(t.settledText):0,p=e.slice(d),y=p.split(`
177
- `),{boundary:g,openFence:k,openMath:v}=bX(y,r.math),w=g>=0?y.slice(0,g).join(`
178
- `):"",S=d+w.length,E=e.slice(S);let R=!1;if(w!==""){const{defs:H}=Ep(w,r.math);for(const[F,B]of H)s.settledLinkDefs.has(F)||(s.settledLinkDefs.set(F,B),s.linkDefs.get(F)!==B&&(R=!0))}const{defs:C}=Ep(E,r.math);SX(s.tailLinkDefs,C,s.settledLinkDefs)||(R=!0),s.tailLinkDefs=C,R&&(s.linkDefs=new Map([...C,...s.settledLinkDefs]),s.linkDefsKey=yR(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,d===0&&t.settledUpTo++,s.settledEnd=S,s.settledEndLine=r.sourceLines===!0?f+o1(w):void 0);const A=E.replace(/^(?:[ \t]*\r?\n)+/,"").trimEnd(),M=A!==""&&/\r(?:\n[\s]*)?$/.test(E)?`${A}\r`:A,L=k?E.replace(/^(?:[ \t]*\r?\n)+/,""):v?AR(M):kX(M),D=r.sourceRanges===!0;let j=0;if(o)s.settledAstBlocks=t.settledText?No(t.settledText,T):[],j=s.settledAstBlocks.length,s.settledRevision++,s.projectedSettledBlocks=s.settledAstBlocks.map(H=>Uu(H,s.projectionCache,D)),s.projectedRevision=s.settledRevision;else if(w!==""){const H=No(w,J$(T,d,f)),F=s.settledAstBlocks.length-1,B=wX(s.settledAstBlocks,H);j=H.length,s.settledRevision++;const q=H.map(U=>Uu(U,s.projectionCache,D));if(B){const U=s.settledAstBlocks[F],_=Uu(U,s.projectionCache,D);s.projectedSettledBlocks[F]=_,s.projectedSettledBlocks.push(...q.slice(1))}else s.projectedSettledBlocks.push(...q);s.projectedRevision=s.settledRevision}const I=L&&r.astPositions===!0?e.indexOf(L,s.settledEnd):-1,z=L?No(L,I>=0?J$(T,I,r.sourceLines===!0?(s.settledEndLine??0)+o1(e,s.settledEnd,I):0):id(T)):[];return t.prevInput=e,s.work={splitCharacters:p.length,boundaryLines:y.length,definitionCharacters:w.length+E.length,renderedBlocks:j+z.length},vX(s.settledAstBlocks,z)}function $X(e){return e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function CX(e,t){const r=e||"section",s=t.get(r)??0;return t.set(r,s+1),s===0?r:`${r}-${s}`}const TX=Symbol("MarkdownFenceProposal");function jX(e){return e[TX]}class zR extends x.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){Va(this.props.pluginName,"render")}render(){return this.state.failed?this.props.fallback:this.props.children}}function NR(e,t,r,s){const o=nk(e,t);if(o==null)return r;let l;try{l=o.render({node:t})}catch{return Va(t.plugin,"render"),r}return m.jsx(zR,{pluginName:t.plugin,resetKey:t,resetRenderer:o.render,fallback:r,children:m.jsx(x.Suspense,{fallback:r,children:l})},s)}const RX="heading-links",LR="@astryxdesign/core/MarkdownHeadingLinksConfig",AX=Symbol.for(LR);xY(e=>e);function MX(e){return e.normalize("NFKC").trim().toLowerCase().replace(/['"]/gu,"").replace(/[^\p{Letter}\p{Number}]+/gu,"-").replace(/^-+|-+$/gu,"")}function zX(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 NX="https://astryx.invalid/";function LX(e){try{return new URL(e,NX),!0}catch{return!1}}function DX(e){const t=ek(e);if(t.name!==RX)return;const r=t[AX];if(!(r==null||typeof r!="object"||Object.getPrototypeOf(r)!==Object.prototype||Reflect.ownKeys(r).length!==4||!Object.isFrozen(r)||r.kind!==LR||r.apiVersion!==1||r.headingIdPrefix!==void 0&&typeof r.headingIdPrefix!="string"||typeof r.permalinkBaseUrl!="string"||r.permalinkBaseUrl.includes("#")||!LX(r.permalinkBaseUrl)||r.permalinkBaseUrl!==""&&aR(r.permalinkBaseUrl)!==r.permalinkBaseUrl))return r}function OX(e){if(e!=null)for(const t of e.entries){const r=DX(t);if(r!=null)return r}}function IX(e,t){const r=OX(t);if(r==null)return;const s=new Map,o=new Map,l=new Map,u=new Map;return EW(e,"heading",d=>{const f=Cd(d.children,g=>sd(t,g)).trim(),p=zX(MX(f),u),y=r.headingIdPrefix!=null&&r.headingIdPrefix!==""?`${r.headingIdPrefix}--${p}`:p;s.set(d,y),o.set(d,f),l.set(d,`${r.permalinkBaseUrl}#${y}`)}),{ids:s,labels:o,permalinkUrls:l}}function _X(e,t){const r=e.children.filter(f=>f.type==="heading"),s=IX(e,t);if(s!=null)return{...s,outline:r.map(f=>{const p=s.ids.get(f),y=s.labels.get(f);if(p==null||y==null)throw new Error("Heading-links projection omitted a root heading");return{id:p,label:y,level:f.depth}})};const o=new Map,l=new Map,u=new Map,d=r.map(f=>{const p=Cd(f.children,g=>sd(t,g)).trim(),y=CX($X(p),u);return o.set(f,y),l.set(f,p),{id:y,label:p,level:f.depth}});return{ids:o,labels:l,permalinkUrls:new Map,outline:d}}const qX=1500,PX={start:"0",center:"auto"},n3={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)}]},ub={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}},BX=ub.heading;function HX(e){return e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}function FX({children:e,headingId:t,headingLabel:r,permalinkUrl:s,contentWidth:o,contentAlign:l,headingTextStyle:u,blockSpacingStyle:d}){const f=zt(),p=f("@astryx.markdownHeadingLinks.copied"),y=f("@astryx.markdownHeadingLinks.copy",{heading:r||t}),{copy:g,isCopied:k}=N4({announce:p,resetAfterMs:qX}),{getContainerProps:v,getContentRevealProps:w}=$U(),S=x.useCallback(E=>{HX(E)&&g(new URL(s,window.location.href).href)},[g,s]);return m.jsxs("div",{...ye(v(),fe(ub.row,u,d,o!=null?n3.proseWidth(o):null,l!=="start"?n3.proseAlign(PX[l]):null)),children:[e,m.jsxs("span",{className:"x1n2onr6 x1rg5ohu x2lah0s x1vjfegm x1fvqzum x1c4064q x17lnmll xv1l7n4 xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t",children:[m.jsx("span",{"aria-hidden":"true",className:"xlshs6z",children:"#"}),m.jsx(jt,{type:"button",variant:"ghost",size:"sm",label:k?p:y,icon:m.jsx("span",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x15vhz18 xlzyvqe",children:k?m.jsx(ft,{icon:"check",size:"sm",color:"inherit"}):"#"}),isIconOnly:!0,onClick:S,xstyle:[ub.copyButton,Ga.centerInline("-50%")],...w({isLayoutPreserved:!0})})]})]})}const UX=["disc","circle","square"],VX=["decimal","lower-alpha","lower-roman"];function i1(e){const t=e.position?.start.line,r=e.position?.end.line;return t==null||r==null?void 0:{start:t,end:r}}function l1(e){return e==null?void 0:{"data-source-line":String(e.start),"data-source-line-end":String(e.end)}}const Tu={start:"0",center:"auto"},c1={start:null,center:"auto"},GX={k7Eaqz:"xkj4a21",$$css:!0},mr={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=>[GX,{"--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)}]},Rh={center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},db={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 KX({children:e}){return m.jsx(Q0,{xstyle:db.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 r3(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 pc(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+=pc(r.children);break;case"break":t+=1;break;case"citation":t+=1;break;case"extension":t+=r.source?.length??0;break}return t}function fb(e){let t=0;for(const r of e)switch(r.type){case"heading":case"paragraph":t+=pc(r.children);break;case"code":t+=r.value.length;break;case"math":t+=r.value.length;break;case"blockquote":t+=fb(r.children);break;case"list":for(const s of r.children)t+=fb(s.children);break;case"table":for(const s of r.children)for(const o of s.children)t+=pc(o.children);break;case"extension":t+=r.source?.length??0;break;case"thematicBreak":break;case"image":t+=r.alt.length;break}return t}const u1={1:qe.h1,2:qe.h2,3:qe.h3,4:qe.h4,5:qe.h5,6:qe.h6};function WX(e,t){const r=[];for(const d of t){d.pattern.lastIndex=0;let f;for(;(f=d.pattern.exec(e))!==null;){let p;if(d.getEndIndex){const y=d.getEndIndex(e,f);if(y===!1)continue;p=y}else p=f.index+f[0].length;r.push({start:f.index,end:p,match:f,plugin:d})}}r.sort((d,f)=>d.start-f.start);const s=[];let o=0;for(const d of r)d.start>=o&&(s.push(d),o=d.end);if(s.length===0)return[{type:"text",content:e}];const l=[];let u=0;for(let d=0;d<s.length;d++){const f=s[d];f.start>u&&l.push({type:"text",content:e.slice(u,f.start)}),l.push({type:"plugin",element:f.plugin.render(f.match,`plugin-${d}`),matchLength:f.end-f.start}),u=f.end}return u<e.length&&l.push({type:"text",content:e.slice(u)}),l}function YX(e){const t=e?.syntaxIdentity??"",r=x.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 Du(e,t,r){const s=t.offset;if(t.offset+=e.length,!t.active)return e;const o=iY(e,s,t.boundaries,r);if(o==null)return e;const l=o.map(u=>u.fading?m.jsx("span",{className:"x1hc1fzr x19991ni x80gvsz x12w9bfk xlr8y92 x4itv7f",children:u.text},u.key):m.jsx("span",{children:u.text},u.key));return m.jsx("span",{children:l},`wrap-${r}`)}function XX(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,d,f){switch(e.type){case"text":{if(u&&u.length>0){const p=WX(e.value,u);if(!(p.length===1&&p[0].type==="text")){const y=[];for(let g=0;g<p.length;g++){const k=p[g];k.type==="text"?y.push(Du(k.content,s,`${t}-seg-${g}`)):(s.offset+=k.matchLength,y.push(m.jsx(x.Fragment,{children:k.element},`plugin-${t}-${g}`)))}return m.jsx(x.Fragment,{children:y},t)}}return Du(e.value,s,t)}case"strong":return m.jsx("strong",{className:"x2mo6ok",children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,d,f))},t);case"emphasis":return m.jsx("em",{children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,d,f))},t);case"delete":return m.jsx("del",{className:"xv1l7n4",children:e.children.map((p,y)=>na(p,y,r,s,o,l,u,d,f))},t);case"inlineCode":{s.offset+=e.value.length;const p=d?.inlineCode;return p?m.jsx(p,{children:e.value},t):m.jsx(Q0,{children:e.value},t)}case"inlineMath":{const p=d?.math;return p==null?Du(`$${e.value}$`,s,t):(s.offset+=e.value.length,m.jsx(p,{value:e.value,display:"inline"},t))}case"link":{const p=aR(e.url);if(p==null)return m.jsx("span",{children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,d,f))},t);const y=d?.link;if(y)return m.jsx(y,{href:p,children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,d,f))},t);const g=p.startsWith("https://")||p.startsWith("http://"),k=r?w=>{r(p,w)===!1&&w.preventDefault()}:void 0,v=g?"a":l;return m.jsx(v,{href:p,onClick:k,...g?{target:"_blank",rel:"noopener noreferrer"}:{},className:"xjse4m1 x1bvjpef",children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,d,f))},t)}case"image":{const p=sR(e.url);if(p==null)return m.jsxs("span",{children:["[",e.alt,"]"]},t);const y=d?.image;return y?m.jsx(y,{src:p,alt:e.alt},t):m.jsx("img",{src:p,alt:e.alt,className:"x193iq5w xh6dtrn"},t)}case"extension":return NR(f,e,Du(e.source??sd(f,e),s,t),t);case"break":return s.offset+=1,m.jsx("br",{},t);case"citation":{if(s.offset+=1,!o)return m.jsxs("span",{children:["[",e.sourceId,"]"]},t);const p=XX(o,e.sourceId),y=o.sources[e.sourceId]??{title:e.sourceId},g=o.style==="number"?"number":"label",k=d?.citation;return k?m.jsx(k,{source:y,number:p,variant:g},t):m.jsx(rR,{source:y,number:p,variant:g},t)}}}function ZX(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 QX=4,JX=24,eZ=2,tZ=20;function nZ(e){const[t,...r]=e.children;return t==null?[]:t.children.map((s,o)=>{const l=pc(s.children);let u=l;for(const p of r){const y=p.children[o];if(y!=null){const g=pc(y.children);g>u&&(u=g)}}const d=Math.ceil(u/eZ),f=Math.min(l,tZ);return Math.min(JX,Math.max(QX,d,f))})}function Ou(e,t,r,s,o,l,u,d,f,p,y="a",g,k,v,w,S,E=0){const R=c1[p],C=R!=null?mr.blockAlign(R):null,T=ZX(e,s),A=t===0,M=t===r-1,L=v?.sourceLines===!0,D=L?i1(e):void 0,j=l1(D),I=D==null?null:{sourceLines:D};switch(e.type){case"heading":{const z=Math.min(e.depth+o-1,6),H=e.children.map((P,G)=>na(P,G,l,u,d,y,g,k,v)),F=S?.ids.get(e),B=S?.labels.get(e)??"",q=S?.permalinkUrls.get(e),U=k?.heading;if(U)return m.jsx(U,{level:z,id:F,...I,children:H},t);const _=`h${z}`;return q==null||F==null?m.jsx(_,{id:F,...ye(he("markdown-heading",{density:s,level:z}),fe(qe.headingBase,u1[z],T,f!=null?mr.proseWidth(f):null,p!=="start"?mr.proseAlign(Tu[p]):null,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:H},t):m.jsx(FX,{headingId:F,headingLabel:B,permalinkUrl:q,contentWidth:f,contentAlign:p,headingTextStyle:[qe.headingBase,u1[z]],blockSpacingStyle:[T,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd],children:m.jsx(_,{id:F,...ye(he("markdown-heading",{density:s,level:z}),fe(qe.headingBase,BX,u1[z])),...j,children:H})},t)}case"paragraph":{const z=e.children.map((F,B)=>na(F,B,l,u,d,y,g,k,v)),H=k?.paragraph;return H?m.jsx(H,{...I,children:z},t):m.jsx("div",{role:"paragraph",...ye(he("markdown-paragraph",{density:s}),fe(T,f!=null?mr.proseWidth(f):null,p!=="start"?mr.proseAlign(Tu[p]):null,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:z},t)}case"code":{u.offset+=e.value.length;const z=K6(e)??"plaintext",H=k?.code,F=H?m.jsx(H,{code:e.value,language:z,...I},t):m.jsx("div",{...ye(he("markdown-codeblock",{density:s}),fe(T,qe.codeBlockWrapper,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:m.jsx(J6,{code:e.value,language:z,isCollapsible:!0,xstyle:[f!=null?mr.blockWidth(f):void 0,C]})},t),B=jX(e);if(B==null)return F;const q=nk(v,B.node);if(q==null)return F;try{const U=q.render({node:B.node});return U==null||typeof U=="boolean"?F:m.jsx(zR,{pluginName:B.node.plugin,resetKey:B.node,resetRenderer:q.render,fallback:F,children:m.jsx(x.Suspense,{fallback:F,children:U})},t)}catch{return Va(B.node.plugin,"render"),F}}case"math":{u.offset+=e.value.length;const z=k?.math;return z==null?m.jsx("div",{role:"paragraph",children:`$$${e.value}$$`},t):m.jsx(z,{value:e.value,display:"block",...I},t)}case"blockquote":{const z=k?.blockquote;if(z){const H=e.children.map((F,B)=>Ou(F,B,e.children.length,s,o,l,u,d,f,p,y,g,k,v,w,S,E));return m.jsx(z,{...I,children:H},t)}return m.jsx(nR,{...he("markdown-blockquote",{density:s}),...j,xstyle:[T,f!=null?mr.proseWidth(f):void 0,p!=="start"?mr.proseAlign(Tu[p]):void 0,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd],children:e.children.map((H,F)=>Ou(H,F,e.children.length,s,o,l,u,d,f,p,y,g,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,B)=>({item:F,key:`task-${B}`})).filter(({item:F})=>F.checked).map(({key:F})=>F);return m.jsx("div",{...ye(he("markdown-list",{density:s}),fe(T,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),children:m.jsx(eR,{label:w("@astryx.markdown.taskList"),isLabelHidden:!0,value:H,containerXstyle:qe.blockIndent,isReadOnly:!0,density:"compact",children:e.children.map((F,B)=>{const q=F.children[0],_=F.children.length===1&&q?.type==="paragraph"?m.jsx(m.Fragment,{children:q.children.map((P,G)=>na(P,G,l,u,d,y,g,k,v))}):m.jsx(m.Fragment,{children:F.children.map((P,G)=>Ou(P,G,F.children.length,s,o,l,u,d,f,p,y,g,k,v,w,S,E+1))});return m.jsx(tR,{value:`task-${B}`,label:_,...L?l1(i1(F)):void 0},B)})})},t)}return m.jsx("div",{...ye(he("markdown-list",{density:s}),fe(T,f!=null?mr.proseWidth(f):null,p!=="start"?mr.proseAlign(Tu[p]):null,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),children:m.jsx(uc,{listStyle:e.ordered?"decimal":"disc",density:"compact",start:e.ordered?e.start:void 0,xstyle:qe.blockIndent,children:e.children.map((H,F)=>{const B=H.children[0],U=H.children.length===1&&B?.type==="paragraph"?m.jsx(m.Fragment,{children:B.children.map((G,Y)=>na(G,Y,l,u,d,y,g,k,v))}):m.jsx(m.Fragment,{children:H.children.map((G,Y)=>Ou(G,Y,H.children.length,s,o,l,u,d,f,p,y,g,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"?Cd(_.children,G=>sd(v,G)):w("@astryx.markdown.taskList")};return m.jsx(LU,{marker:(e.ordered?VX:UX)[E%3],task:P,children:m.jsx(wc,{label:U,...L?l1(i1(H)):void 0})},F)})})},t)}case"table":{const z=nZ(e),[H,...F]=e.children,B=k?.inlineCode!=null?k:{...k,inlineCode:KX};return m.jsx("div",{...ye(he("markdown-table",{density:s}),fe(qe.tableWrapper,T,f!=null?mr.blockWidth(f):null,c1[p]!=null?mr.blockAlign(c1[p]):null,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:m.jsxs(Ex,{dividers:"rows",textOverflow:"wrap",children:[m.jsx(Y0,{children:m.jsx(vp,{children:H?.children.map((q,U)=>m.jsx(W0,{xstyle:[db.headerCell,mr.cellMinWidth(`${z[U]}ch`),e.align[U]==="center"&&Rh.center,e.align[U]==="right"&&Rh.end],children:q.children.map((_,P)=>na(_,P,l,u,d,y,g,B,v))},U))})}),m.jsx(X0,{children:F.map((q,U)=>{const _=q.children.map((P,G)=>m.jsx(K0,{xstyle:[db.cell,e.align[G]==="center"&&Rh.center,e.align[G]==="right"&&Rh.end],children:P.children.map((Y,X)=>na(Y,X,l,u,d,y,g,B,v))},G));return m.jsx(vp,{children:_},U)})})]})},t)}case"extension":{const z=NR(v,e,Du(e.source??sd(v,e),u,t));return m.jsx("div",{...fe(T,f!=null?mr.proseWidth(f):null,p!=="start"?mr.proseAlign(Tu[p]):null,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd),children:z},t)}case"thematicBreak":{const z=k?.hr;return z?m.jsx(z,{...I},t):m.jsx("hr",{...ye(he("markdown-hr",{density:s}),fe(qe.hr,T,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j},t)}case"image":{const z=sR(e.url);if(z==null)return m.jsxs("div",{...ye(he("markdown-image",{density:s}),fe(T,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:["[",e.alt,"]"]},t);const H=k?.image;return H?m.jsx(H,{src:z,alt:e.alt,...I},t):m.jsx("div",{...ye(he("markdown-image",{density:s}),fe(T,A&&qe.noMarginBlockStart,M&&qe.noMarginBlockEnd)),...j,children:m.jsx("img",{src:z,alt:e.alt,className:"x193iq5w xh6dtrn"})},t)}}}function DR({ref:e,children:t,display:r="block",density:s="default",headingLevelStart:o=1,isStreaming:l=!1,onLinkClick:u,sources:d,citationStyle:f="label",contentWidth:p=680,contentAlign:y="start",components:g,plugins:k,inlinePlugins:v,autolink:w,xstyle:S,className:E,style:R,id:C,"data-testid":T,...A}){const M=zt(),L=Oi(),D=x.useMemo(()=>d?new Set(Object.keys(d)):void 0,[d]),j=x.useMemo(()=>{if(k!=null)try{return lR(k)}catch{Va("configuration","transform");return}},[k]),I=YX(j),z=g?.math!=null,H=x.useMemo(()=>({sourceIds:D,autolink:w,plugins:I}),[D,w,I]),F=x.useMemo(()=>({sourceIds:D,autolink:w,math:!0,plugins:I}),[D,w,I]),B=mU(t,l),q=x.useRef(s1()),U=x.useRef(w),_=x.useRef(z);(U.current!==w||_.current!==z)&&(q.current=s1(),U.current=w,_.current=z);const P=x.useMemo(()=>{if(r==="inline")return[];if(l){if(B==="")return q.current=s1(),[];const Ce=jh(B,z?F:H);return(z?t3(Ce,q.current,F):t3(Ce,q.current,H)).children}return(z?Q$(t,F):Q$(t,H)).children},[r,B,t,l,z,F,H]),G=l?jh(B,z?F:H):t,Y=x.useMemo(()=>ad({type:"root",children:P},j,G,!l,"block").children,[P,j,G,l]),X=x.useMemo(()=>{if(!(r==="inline"||Y.length===0))return _X({type:"root",children:Y},j)},[r,Y,j]),ee=x.useMemo(()=>{if(r!=="inline")return[];const Ce=l?jh(B,z?F:H):t;return z?U$(Ce,F):U$(Ce,H)},[r,B,t,l,z,F,H]),Q=l?jh(B,z?F:H):t,oe=x.useMemo(()=>{if(r!=="inline")return[];const Ce=ad({type:"root",children:[{type:"paragraph",children:ee}]},j,Q,!l,"inline").children[0];return Ce?.type==="paragraph"?[...Ce.children]:ee},[r,ee,j,Q,l]),{token:O}=ex(),Z=x.useMemo(()=>{const Te=r3(O("--duration-fast-max"))??230,Ce=r3(O("--duration-fast-min")),Me=Ce!=null?Math.max(4,Math.round(Ce/10)):50;return Math.min(Math.ceil(Te/Me),12)},[O]),de=x.useRef([]),ue=x.useRef([]),ve=x.useRef([]),xe=B.length,te={offset:0,boundaries:x.useMemo(()=>{const Te=r==="inline"?pc(ue.current):fb(de.current),Ce=oY(ve.current,Te,Z);return ve.current=Ce,Ce},[r,xe,Z]),active:l},pe=d?{sources:d,numberMap:new Map,nextNumber:1,style:f}:null;if(r==="inline"){const Te=m.jsx("span",{ref:e,...A,id:C,"data-testid":T,...ye(he("markdown",{density:s}),fe(qe.root,qe.inlineRoot,S),E,R),children:oe.map((Ce,Me)=>na(Ce,Me,u,te,pe,L,v,g,j))});return ue.current=oe,de.current=[],Te}const Re=m.jsx("div",{ref:e,...A,id:C,role:"document","data-testid":T,...ye(he("markdown",{density:s}),fe(qe.root,S),E,R),children:Y.map((Te,Ce)=>Ou(Te,Ce,Y.length,s,o,u,te,pe,p?typeof p=="number"?`${p}px`:p:null,y,L,v,g,j,M,X))});return de.current=Y,ue.current=[],Re}DR.displayName="Markdown";const rZ=1e3,aZ=100,a3={root:{kWkggS:"xprdx6m x1j0df82 x1o55y2u",kSiTet:"xvpkmg4 x1tbh5bv",$$css:!0},animate:{kILWW9:"xpz12be",k44tkh:"xqgcaz",ko0y90:"xa4qsjk",kKVMdj:"xeuoslp x1aquc0h",kyAemX:"x193epu2",$$css:!0}},sZ={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}},oZ={kKxzle:"xvo38ju",$$css:!0},s3={animationDelay:e=>[oZ,{"--x-animationDelay":(t=>typeof t=="number"?t+"ms":t??void 0)(`${rZ+aZ*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 Gh({width:e="100%",height:t="100%",radius:r=3,index:s=0,"data-testid":o,xstyle:l,className:u,style:d,ref:f,...p}){return m.jsx("div",{ref:f,"aria-hidden":"true","data-testid":o,...ye(he("skeleton"),fe(a3.root,a3.animate,sZ[r],s3.dimensions(e,t),s3.animationDelay(s),l),u,d),...p})}Gh.displayName="Skeleton";function iZ(){const{captureId:e=""}=jb(),t=qr(),{t:r}=cn(),[s,o]=x.useState(null),l=ms({queryKey:Pn.detail(e),queryFn:()=>kG(e),enabled:!!e});x.useEffect(()=>{o(document.getElementById("window-titlebar-actions"))},[]);const u=()=>{t.invalidateQueries({queryKey:Pn.detail(e)})},d=l.data?.ok?l.data.data:null;return m.jsxs(m.Fragment,{children:[s&&Ks.createPortal(m.jsx(Rt,{gap:2,vAlign:"center",children:m.jsx(_r,{label:r("captures.refresh"),tooltip:r("captures.refresh"),icon:m.jsx(ix,{}),size:"sm",variant:"ghost",onClick:u})}),s),l.isPending?m.jsxs(We,{gap:3,width:"100%",children:[m.jsx(Gh,{width:280,height:30}),m.jsx(Gh,{width:420,height:18,index:1}),m.jsx(Gh,{width:"100%",height:280,radius:2,index:2})]}):d?m.jsxs(We,{gap:5,width:"100%",children:[m.jsxs(We,{gap:2,children:[m.jsx(Oo,{level:1,children:d.capture.title||r("navigation.captureDetails")}),m.jsx(ax,{href:d.capture.url,isExternalLink:!0,type:"supporting",display:"block",maxLines:2,children:d.capture.url}),m.jsxs(Rt,{gap:4,wrap:"wrap",children:[m.jsx(Je,{type:"supporting",children:`${r("captures.createdAt")}: ${d.capture.createdAt}`}),m.jsx(Je,{type:"supporting",children:`${r("captures.updatedAt")}: ${d.capture.updatedAt}`})]}),d.capture.userNote&&m.jsx(Je,{color:"secondary",children:d.capture.userNote})]}),m.jsx(Ai,{}),d.content?m.jsx(Gs,{width:"100%",padding:5,variant:"muted",children:m.jsx(DR,{density:"compact",headingLevelStart:2,contentWidth:"none",onLinkClick:(f,p)=>{f.startsWith("#")||(p.preventDefault(),(f.startsWith("http://")||f.startsWith("https://"))&&window.open(f,"_blank","noopener,noreferrer"))},children:d.content.markdown})}):m.jsx(dc,{title:r("captures.noContentTitle"),description:r("captures.noContentDescription")})]}):m.jsx(dc,{title:r("captures.detailUnavailable")})]})}const lZ={pending:"neutral",running:"neutral",succeeded:"success",failed:"error"};function cZ(){const{captureId:e=""}=jb(),{t}=cn(),r=qr(),s=Io(),[o,l]=x.useState(null),u=ms({queryKey:Pn.jobs(e),queryFn:()=>EG(e),enabled:!!e}),d=Er({mutationFn:f6,onSuccess:g=>{if(!g.ok){s({body:t(nd(g.error.code)),type:"error",uniqueID:g.error.code});return}r.invalidateQueries({queryKey:Pn.jobs(e)}),s({body:t("captures.recaptureStarted"),uniqueID:"recapture-started"})}});x.useEffect(()=>{l(document.getElementById("window-titlebar-actions"))},[]);const f=u.data?.ok?u.data.data:[],p=()=>{r.invalidateQueries({queryKey:Pn.jobs(e)})},y=x.useMemo(()=>[{key:"status",header:t("captures.jobStatus"),width:jo(120),renderCell:g=>m.jsx(V6,{label:t(`captures.jobStatus.${g.status}`),variant:lZ[g.status]})},{key:"fetcher",header:t("captures.fetcher"),width:jo(160),renderCell:g=>m.jsx(Je,{children:g.fetcher==="firecrawl"?"Firecrawl":"DeepSeek Fetch"})},{key:"createdAt",header:t("captures.createdAt"),width:jo(200),renderCell:g=>m.jsx(Je,{color:"secondary",children:g.createdAt})},{key:"updatedAt",header:t("captures.updatedAt"),width:jo(200),renderCell:g=>m.jsx(Je,{color:"secondary",children:g.updatedAt})},{key:"error",header:t("captures.error"),width:jo(220),renderCell:g=>g.errorMessage?m.jsx(Ii,{content:g.errorMessage,children:m.jsx(Je,{color:"primary",display:"block",maxLines:2,textWrap:"wrap",children:g.errorMessage})}):m.jsx(Je,{color:"secondary",children:"—"})}],[t]);return m.jsxs(m.Fragment,{children:[o&&Ks.createPortal(m.jsxs(Rt,{gap:2,vAlign:"center",children:[m.jsx(_r,{label:t("captures.refresh"),tooltip:t("captures.refresh"),icon:m.jsx(ix,{}),size:"sm",variant:"ghost",onClick:p}),m.jsx(jt,{label:t("captures.recapture"),size:"sm",variant:"primary",onClick:()=>{d.mutate(e)}})]}),o),m.jsx(We,{gap:5,children:f.length===0?m.jsx(dc,{title:t("captures.noJobsTitle"),description:t("captures.noJobsDescription")}):m.jsx(Ex,{data:f,columns:y,idKey:"id",textOverflow:"truncate"})})]})}function uZ(){const e=qr(),{subscribe:t,status:r}=dx();return x.useEffect(()=>t(s=>{(s.type===M4||s.type===z4)&&e.invalidateQueries({queryKey:Pn.all})}),[e,t]),x.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:Pn.all})},[e,r]),null}const dZ=new Set([sF,M4,z4]);function fZ(){const e=qr(),{subscribe:t,status:r}=dx();return x.useEffect(()=>t(s=>{dZ.has(s.type)?e.invalidateQueries({queryKey:kp.status()}):s.type===oF&&e.invalidateQueries()}),[e,t]),x.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:kp.status()})},[e,r]),null}function hZ(){const e=qr(),{subscribe:t,status:r}=dx();return x.useEffect(()=>t(s=>{s.type===iF&&e.invalidateQueries({queryKey:gs.all})}),[e,t]),x.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:gs.all})},[e,r]),null}const pZ=new Set(["timeFormat","timezone"]);function xZ(){const e=qr(),{subscribe:t,status:r}=dx();return x.useEffect(()=>t(s=>{s.type===lF&&(e.invalidateQueries({queryKey:Ri.current()}),gZ(s.data)&&o3(e))}),[e,t]),x.useEffect(()=>{r==="open"&&(e.invalidateQueries({queryKey:Ri.current()}),o3(e))},[e,r]),null}function o3(e){e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:gs.all})}function gZ(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"&&pZ.has(r))}const xs={appShell:{kMv6JI:"x14194xn",$$css:!0},sideNav:{kzqmXN:"x18nvf5t",$$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}},mZ={className:"x78zum5 x6s0dn4 x1txdalj xpx4bdk xbih8ty x1rey3nv xnjyzlh x87ps6o"},_l={overview:oB,captures:cj,prompts:RP,library:y0,providers:v0,settings:SP},yZ=[{kind:"item",id:"overview",label:"Overview",href:"/overview",icon:_l.overview},{kind:"section",id:"library",title:"Library",icon:_l.library,items:[{kind:"item",id:"prompts",label:"Prompts",href:"/library/prompts",icon:_l.prompts},{kind:"item",id:"captures",label:"Captures",href:"/library/captures",icon:_l.captures}]},{kind:"item",id:"providers",label:"Providers",href:"/providers",icon:_l.providers}],d1={kind:"item",id:"settings",label:"Settings",href:"/settings",icon:_l.settings};function OR({href:e="/",ref:t,...r}){return m.jsx(rC,{ref:t,to:e,...r})}function hb({label:e,icon:t,href:r}){const{pathname:s}=Pr();return m.jsx(ox,{label:e,icon:t,href:r,as:OR,isSelected:s===r,size:"sm"})}function bZ({title:e,icon:t,items:r,getLabel:s}){const[o,l]=x.useState(!1),u=r[0];return m.jsx(ox,{label:e,icon:t,href:u.href,as:OR,collapsible:{isCollapsed:o,onCollapsedChange:l},onClick:()=>l(!1),size:"sm",children:m.jsx(We,{gap:0,xstyle:xs.compactNavItems,children:r.map(d=>m.jsx(hb,{label:s(d.id,d.label),icon:d.icon,href:d.href},d.id))})})}function i3(e){return typeof e=="object"&&e!==null&&"title"in e&&typeof e.title=="string"}function IR({collapsible:e,showBackButton:t=!1}){const r=Pz(),s=mc(),{t:o}=cn(),l=r.findLast(f=>i3(f.handle))?.handle,u={Overview:o("navigation.overview"),Captures:o("navigation.captures"),"Capture details":o("navigation.captureDetails"),Jobs:o("navigation.jobs"),Prompts:o("navigation.prompts"),Providers:o("navigation.providers"),Settings:o("navigation.settings"),"New provider":o("navigation.newProvider"),"Edit provider":o("navigation.editProvider"),"Page not found":o("navigation.notFound")},d={"Manage the model service connections used by Foundry.":o("navigation.providersDescription"),"Collect links first, then organize them later.":o("navigation.capturesDescription"),"Read the latest successfully captured page.":o("navigation.captureDetailsDescription"),"Review scrape history and errors for this capture.":o("navigation.jobsDescription"),"Connect a model service using one of Foundry's supported protocols.":o("providers.formDescription")};return m.jsxs("header",{...mZ,"aria-label":o("navigation.windowTitlebar"),children:[t&&m.jsx(_r,{label:o("navigation.back"),icon:m.jsx(ft,{icon:"chevronLeft"}),variant:"ghost",size:"sm",tooltip:o("navigation.back"),onClick:()=>s(-1)}),e&&m.jsx(d0,{collapsible:e,size:"sm",children:m.jsx(ft,{icon:e.isCollapsed?"chevronsRight":"chevronsLeft",size:"sm"})}),i3(l)&&m.jsxs(Rt,{gap:2,vAlign:"center",width:"100%",xstyle:xs.titlebarContent,children:[m.jsx(Je,{type:"large",weight:"semibold",maxLines:1,textWrap:"nowrap",xstyle:xs.title,children:l.title&&(u[l.title]??l.title)}),l.description&&m.jsx(Je,{type:"supporting",maxLines:1,textWrap:"nowrap",xstyle:xs.description,children:d[l.description]??l.description}),m.jsx(ic,{size:"fill"}),m.jsx(Rt,{id:"window-titlebar-actions",vAlign:"center",xstyle:xs.actions})]})]})}function kZ(){const[e,t]=x.useState(!1),{t:r}=cn(),s=(l,u)=>({overview:r("navigation.overview"),captures:r("navigation.captures"),prompts:r("navigation.prompts"),providers:r("navigation.providers"),settings:r("navigation.settings"),library:r("navigation.library")})[l]??u,o={isCollapsed:e,onCollapsedChange:t};return m.jsx(i0,{height:"fill",variant:"surface",contentPadding:0,xstyle:xs.appShell,topNav:m.jsx(IR,{collapsible:o}),sideNav:m.jsx(f0,{collapsible:{...o,hasButton:!1},xstyle:e?xs.sideNavCollapsed:xs.sideNav,footer:m.jsx(dp,{title:r("navigation.account"),isHeaderHidden:!0,children:m.jsx(hb,{...d1,label:s(d1.id,d1.label)})}),children:m.jsx(dp,{title:r("navigation.main"),isHeaderHidden:!0,children:m.jsx(We,{gap:0,xstyle:xs.compactNavItems,children:yZ.map(l=>l.kind==="item"?m.jsx(hb,{...l,label:s(l.id,l.label)},l.id):m.jsx(bZ,{title:s(l.id,l.title),icon:l.icon,items:l.items,getLabel:s},l.id))})})}),children:m.jsx(Li,{height:"fill",content:m.jsx(Di,{padding:4,children:m.jsx(Mb,{})})})})}function vZ(){const{pathname:e}=Pr(),t=e==="/settings";return m.jsx(i0,{height:"fill",variant:"surface",contentPadding:0,mobileNav:!1,xstyle:xs.appShell,topNav:m.jsx(IR,{showBackButton:!0}),children:m.jsx(Li,{height:"fill",content:m.jsx(Di,{padding:t?0:4,isScrollable:!t,children:m.jsx(Mb,{})})})})}function wZ(){const{pathname:e}=Pr(),{t}=cn();return m.jsx(We,{gap:2,children:m.jsxs(Je,{type:"supporting",children:[t("navigation.notFound"),":",e]})})}function SZ(){return m.jsx(Mb,{})}const EZ=EN([{path:"/",element:m.jsx(SZ,{}),children:[{index:!0,element:m.jsx(Qz,{to:"/overview",replace:!0})},{element:m.jsx(kZ,{}),children:[{path:"overview",element:m.jsx(fF,{}),handle:{title:"Overview"}},{path:"library/captures",element:m.jsx(wW,{}),handle:{title:"Captures",description:"Collect links first, then organize them later."}},{path:"library/prompts",element:m.jsx(hF,{}),handle:{title:"Prompts"}},{path:"providers",element:m.jsx(nK,{}),handle:{title:"Providers",description:"Manage the model service connections used by Foundry."}}]},{element:m.jsx(vZ,{}),children:[{path:"library/captures/:captureId",element:m.jsx(iZ,{}),handle:{title:"Capture details",description:"Read the latest successfully captured page."}},{path:"library/captures/:captureId/jobs",element:m.jsx(cZ,{}),handle:{title:"Jobs",description:"Review scrape history and errors for this capture."}},{path:"settings",element:m.jsx(VG,{}),handle:{title:"Settings"}},{path:"providers/new",element:m.jsx(g$,{}),handle:{title:"New provider",description:"Connect a model service using one of Foundry's supported protocols."}},{path:"providers/:providerId",element:m.jsx(g$,{}),handle:{title:"Edit provider",description:"Connect a model service using one of Foundry's supported protocols."}},{path:"*",element:m.jsx(wZ,{}),handle:{title:"Page not found"}}]}]}]);function $Z({children:e}){const r=ms({queryKey:Ri.current(),queryFn:E0}).data?.workspace.appearance["color-theme"]??"system";return m.jsx(m0,{theme:$B,mode:r,children:e})}function CZ(){return m.jsx(TM,{client:T4,children:m.jsxs(dF,{children:[m.jsx(uZ,{}),m.jsx(fZ,{}),m.jsx(hZ,{}),m.jsx(xZ,{}),m.jsx($Z,{children:m.jsx(aF,{children:m.jsx(ON,{router:EZ})})})]})})}c3.createRoot(document.getElementById("root")).render(m.jsx(x.StrictMode,{children:m.jsx(CZ,{})}));export{nc as L,FT as S,Ti as a,lU as b,l0 as c,Ni as d,Ei as e,pn as f,Mo as g,Us as h,_q as i,m as j,Ps as k,ac as l,ye as m,rc as n,Zu as o,fe as p,cU as q,x as r,Bb as s,he as t,kd as u,Gp as v,Qu as w};