agent-afk 5.304.0 → 5.305.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,410 @@
1
+ function Ak(t,r){for(var a=0;a<r.length;a++){const u=r[a];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in t)){const f=Object.getOwnPropertyDescriptor(u,o);f&&Object.defineProperty(t,o,f.get?f:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&u(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(o){if(o.ep)return;o.ep=!0;const f=a(o);fetch(o.href,f)}})();function gm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ed={exports:{}},Qi={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var S0;function zk(){if(S0)return Qi;S0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(u,o,f){var c=null;if(f!==void 0&&(c=""+f),o.key!==void 0&&(c=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:t,type:u,key:c,ref:o!==void 0?o:null,props:f}}return Qi.Fragment=r,Qi.jsx=a,Qi.jsxs=a,Qi}var w0;function jk(){return w0||(w0=1,ed.exports=zk()),ed.exports}var b=jk(),td={exports:{}},Ne={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var k0;function Ok(){if(k0)return Ne;k0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.for("react.view_transition"),S=Symbol.iterator;function E(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function M(j,I,J){this.props=j,this.context=I,this.refs=_,this.updater=J||T}M.prototype.isReactComponent={},M.prototype.setState=function(j,I){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,I,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=M.prototype;function P(j,I,J){this.props=j,this.context=I,this.refs=_,this.updater=J||T}var W=P.prototype=new L;W.constructor=P,N(W,M.prototype),W.isPureReactComponent=!0;var D=Array.isArray;function F(){}var q={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function H(j,I,J){var ae=J.ref;return{$$typeof:t,type:j,key:I,ref:ae!==void 0?ae:null,props:J}}function ne(j,I){return H(j.type,I,j.props)}function $(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function ve(j){var I={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(J){return I[J]})}var se=/\/+/g;function te(j,I){return typeof j=="object"&&j!==null&&j.key!=null?ve(""+j.key):I.toString(36)}function X(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(F,F):(j.status="pending",j.then(function(I){j.status==="pending"&&(j.status="fulfilled",j.value=I)},function(I){j.status==="pending"&&(j.status="rejected",j.reason=I)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function le(j,I,J,ae,be){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var Ce=!1;if(j===null)Ce=!0;else switch(fe){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(j.$$typeof){case t:case r:Ce=!0;break;case y:return Ce=j._init,le(Ce(j._payload),I,J,ae,be)}}if(Ce)return be=be(j),Ce=ae===""?"."+te(j,0):ae,D(be)?(J="",Ce!=null&&(J=Ce.replace(se,"$&/")+"/"),le(be,I,J,"",function(Rt){return Rt})):be!=null&&($(be)&&(be=ne(be,J+(be.key==null||j&&j.key===be.key?"":(""+be.key).replace(se,"$&/")+"/")+Ce)),I.push(be)),1;Ce=0;var me=ae===""?".":ae+":";if(D(j))for(var Se=0;Se<j.length;Se++)ae=j[Se],fe=me+te(ae,Se),Ce+=le(ae,I,J,fe,be);else if(Se=E(j),typeof Se=="function")for(j=Se.call(j),Se=0;!(ae=j.next()).done;)ae=ae.value,fe=me+te(ae,Se++),Ce+=le(ae,I,J,fe,be);else if(fe==="object"){if(typeof j.then=="function")return le(X(j),I,J,ae,be);throw I=String(j),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function de(j,I,J){if(j==null)return j;var ae=[],be=0;return le(j,ae,"","",function(fe){return I.call(J,fe,be++)}),ae}function Ae(j){if(j._status===-1){var I=j._result,J=I();J.then(function(ae){(j._status===0||j._status===-1)&&(j._status=1,j._result=ae,J.status===void 0&&(J.status="fulfilled",J.value=ae))},function(ae){(j._status===0||j._status===-1)&&(j._status=2,j._result=ae,J.status===void 0&&(J.status="rejected",J.reason=ae))}),j._status===-1&&(j._status=0,j._result=J)}if(j._status===1)return j._result.default;throw j._result}var C=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function Xe(j){var I=q.T,J={};J.types=I!==null?I.types:null,q.T=J;try{var ae=j(),be=q.S;be!==null&&be(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(F,C)}catch(fe){C(fe)}finally{I!==null&&J.types!==null&&(I.types=J.types),q.T=I}}function ee(j){var I=q.T;if(I!==null){var J=I.types;J===null?I.types=[j]:J.indexOf(j)===-1&&J.push(j)}else Xe(ee.bind(null,j))}var A={map:de,forEach:function(j,I,J){de(j,function(){I.apply(this,arguments)},J)},count:function(j){var I=0;return de(j,function(){I++}),I},toArray:function(j){return de(j,function(I){return I})||[]},only:function(j){if(!$(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ne.Activity=p,Ne.Children=A,Ne.Component=M,Ne.Fragment=a,Ne.Profiler=o,Ne.PureComponent=P,Ne.StrictMode=u,Ne.Suspense=h,Ne.ViewTransition=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(j){return q.H.useMemoCache(j)}},Ne.addTransitionType=ee,Ne.cache=function(j){return function(){return j.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(j,I,J){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ae=N({},j.props),be=j.key;if(I!=null)for(fe in I.key!==void 0&&(be=""+I.key),I)!ie.call(I,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&I.ref===void 0||(ae[fe]=I[fe]);var fe=arguments.length-2;if(fe===1)ae.children=J;else if(1<fe){for(var Ce=Array(fe),me=0;me<fe;me++)Ce[me]=arguments[me+2];ae.children=Ce}return H(j.type,be,ae)},Ne.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},Ne.createElement=function(j,I,J){var ae,be={},fe=null;if(I!=null)for(ae in I.key!==void 0&&(fe=""+I.key),I)ie.call(I,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(be[ae]=I[ae]);var Ce=arguments.length-2;if(Ce===1)be.children=J;else if(1<Ce){for(var me=Array(Ce),Se=0;Se<Ce;Se++)me[Se]=arguments[Se+2];be.children=me}if(j&&j.defaultProps)for(ae in Ce=j.defaultProps,Ce)be[ae]===void 0&&(be[ae]=Ce[ae]);return H(j,fe,be)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(j){return{$$typeof:m,render:j}},Ne.isValidElement=$,Ne.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:Ae}},Ne.memo=function(j,I){return{$$typeof:g,type:j,compare:I===void 0?null:I}},Ne.startTransition=Xe,Ne.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ne.use=function(j){return q.H.use(j)},Ne.useActionState=function(j,I,J){return q.H.useActionState(j,I,J)},Ne.useCallback=function(j,I){return q.H.useCallback(j,I)},Ne.useContext=function(j){return q.H.useContext(j)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(j,I){return q.H.useDeferredValue(j,I)},Ne.useEffect=function(j,I){return q.H.useEffect(j,I)},Ne.useEffectEvent=function(j){return q.H.useEffectEvent(j)},Ne.useId=function(){return q.H.useId()},Ne.useImperativeHandle=function(j,I,J){return q.H.useImperativeHandle(j,I,J)},Ne.useInsertionEffect=function(j,I){return q.H.useInsertionEffect(j,I)},Ne.useLayoutEffect=function(j,I){return q.H.useLayoutEffect(j,I)},Ne.useMemo=function(j,I){return q.H.useMemo(j,I)},Ne.useOptimistic=function(j,I){return q.H.useOptimistic(j,I)},Ne.useReducer=function(j,I,J){return q.H.useReducer(j,I,J)},Ne.useRef=function(j){return q.H.useRef(j)},Ne.useState=function(j){return q.H.useState(j)},Ne.useSyncExternalStore=function(j,I,J){return q.H.useSyncExternalStore(j,I,J)},Ne.useTransition=function(){return q.H.useTransition()},Ne.version="19.3.0",Ne}var E0;function ym(){return E0||(E0=1,td.exports=Ok()),td.exports}var w=ym();const Dk=gm(w),fu=Ak({__proto__:null,default:Dk},[w]);var nd={exports:{}},Zi={},ld={exports:{}},rd={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var C0;function Mk(){return C0||(C0=1,(function(t){function r(X,le){var de=X.length;X.push(le);e:for(;0<de;){var Ae=de-1>>>1,C=X[Ae];if(0<o(C,le))X[Ae]=le,X[de]=C,de=Ae;else break e}}function a(X){return X.length===0?null:X[0]}function u(X){if(X.length===0)return null;var le=X[0],de=X.pop();if(de!==le){X[0]=de;e:for(var Ae=0,C=X.length,Xe=C>>>1;Ae<Xe;){var ee=2*(Ae+1)-1,A=X[ee],j=ee+1,I=X[j];if(0>o(A,de))j<C&&0>o(I,A)?(X[Ae]=I,X[j]=de,Ae=j):(X[Ae]=A,X[ee]=de,Ae=ee);else if(j<C&&0>o(I,de))X[Ae]=I,X[j]=de,Ae=j;else break e}}return le}function o(X,le){var de=X.sortIndex-le.sortIndex;return de!==0?de:X.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var c=Date,m=c.now();t.unstable_now=function(){return c.now()-m}}var h=[],g=[],y=1,p=null,v=3,S=!1,E=!1,T=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function P(X){for(var le=a(g);le!==null;){if(le.callback===null)u(g);else if(le.startTime<=X)u(g),le.sortIndex=le.expirationTime,r(h,le);else break;le=a(g)}}function W(X){if(T=!1,P(X),!E)if(a(h)!==null)E=!0,D||(D=!0,$());else{var le=a(g);le!==null&&te(W,le.startTime-X)}}var D=!1,F=-1,q=5,ie=-1;function H(){return N?!0:!(t.unstable_now()-ie<q)}function ne(){if(N=!1,D){var X=t.unstable_now();ie=X;var le=!0;try{e:{E=!1,T&&(T=!1,M(F),F=-1),S=!0;var de=v;try{t:{for(P(X),p=a(h);p!==null&&!(p.expirationTime>X&&H());){var Ae=p.callback;if(typeof Ae=="function"){p.callback=null,v=p.priorityLevel;var C=Ae(p.expirationTime<=X);if(X=t.unstable_now(),typeof C=="function"){p.callback=C,P(X),le=!0;break t}p===a(h)&&u(h),P(X)}else u(h);p=a(h)}if(p!==null)le=!0;else{var Xe=a(g);Xe!==null&&te(W,Xe.startTime-X),le=!1}}break e}finally{p=null,v=de,S=!1}le=void 0}}finally{le?$():D=!1}}}var $;if(typeof L=="function")$=function(){L(ne)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,se=ve.port2;ve.port1.onmessage=ne,$=function(){se.postMessage(null)}}else $=function(){_(ne,0)};function te(X,le){F=_(function(){X(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(X){X.callback=null},t.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<X?Math.floor(1e3/X):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(X){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var de=v;v=le;try{return X()}finally{v=de}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(X,le){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var de=v;v=X;try{return le()}finally{v=de}},t.unstable_scheduleCallback=function(X,le,de){var Ae=t.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?Ae+de:Ae):de=Ae,X){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=de+C,X={id:y++,callback:le,priorityLevel:X,startTime:de,expirationTime:C,sortIndex:-1},de>Ae?(X.sortIndex=de,r(g,X),a(h)===null&&X===a(g)&&(T?(M(F),F=-1):T=!0,te(W,de-Ae))):(X.sortIndex=C,r(h,X),E||S||(E=!0,D||(D=!0,$()))),X},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(X){var le=v;return function(){var de=v;v=le;try{return X.apply(this,arguments)}finally{v=de}}}})(rd)),rd}var T0;function Rk(){return T0||(T0=1,ld.exports=Mk()),ld.exports}var ad={exports:{}},zt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var N0;function Lk(){if(N0)return zt;N0=1;var t=ym();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var u={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),c=Symbol.for("react.optimistic_key");function m(y,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:S===c?c:""+S,children:y,containerInfo:p,implementation:v}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,zt.browser=function(y){return{$$typeof:f,_reason:y}},zt.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return m(y,p,null,v)},zt.flushSync=function(y){var p=h.T,v=u.p;try{if(h.T=null,u.p=2,y)return y()}finally{h.T=p,u.p=v,u.d.f()}},zt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},zt.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},zt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:T}):v==="script"&&u.d.X(y,{crossOrigin:S,integrity:E,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},zt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&u.d.M(y)},zt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin);u.d.L(y,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},zt.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=g(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else u.d.m(y)},zt.requestFormReset=function(y){u.d.r(y)},zt.unstable_batchedUpdates=function(y,p){return y(p)},zt.useFormState=function(y,p,v){return h.H.useFormState(y,p,v)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.3.0",zt}var _0;function Qb(){if(_0)return ad.exports;_0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),ad.exports=Lk(),ad.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var A0;function Uk(){if(A0)return Zi;A0=1;var t=Rk(),r=ym(),a=Qb();function u(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var n=e,l=n;l&&!l.alternate;)n=l,(n.flags&4098)!==0&&(e=n.return),l=n.return;for(;n.return;)n=n.return;return n.tag===3?e:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(u(188))}function g(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(u(188));return n!==e?null:e}for(var l=e,i=n;;){var s=l.return;if(s===null)break;var d=s.alternate;if(d===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===d.child){for(d=s.child;d;){if(d===l)return h(s),e;if(d===i)return h(s),n;d=d.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=d;else{for(var x=!1,k=s.child;k;){if(k===l){x=!0,l=s,i=d;break}if(k===i){x=!0,i=s,l=d;break}k=k.sibling}if(!x){for(k=d.child;k;){if(k===l){x=!0,l=d,i=s;break}if(k===i){x=!0,i=d,l=s;break}k=k.sibling}if(!x)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}function p(e,n,l,i,s,d){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,i,s,d)||(e.tag!==22||e.memoizedState===null)&&(n||e.tag!==5&&e.tag!==27)&&p(e.child,n,l,i,s,d))return!0;e=e.sibling}return!1}function v(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var n=!1;for(e=e.return;e!==null&&(e.tag===4&&(n=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return n}function E(e){var n=[null,null],l=v(e);return l===null||T(n,e,l.child,{foundSelf:!1}),n}function T(e,n,l,i){for(;l!==null;){if(l===n)i.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(i.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&T(e,n,l.child,i))return!0;l=l.sibling}return!1}function N(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(u(559))}}var _=null,M=null;function L(e,n,l){return e===l?!0:e===n?(_=e,!0):!1}function P(e,n,l){return e===l?(M=e,!1):e===n?(M!==null&&(_=e),!0):!1}function W(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function D(e,n,l){for(var i=0,s=e;s;s=l(s))i++;s=0;for(var d=n;d;d=l(d))s++;for(;0<i-s;)e=l(e),i--;for(;0<s-i;)n=l(n),s--;for(;i--;){if(e===n||n!==null&&e===n.alternate)return e;e=l(e),n=l(n)}return null}var F=Object.assign,q=Symbol.for("react.element"),ie=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),te=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Xe=Symbol.for("react.activity"),ee=Symbol.for("react.legacy_hidden"),A=Symbol.for("react.memo_cache_sentinel"),j=Symbol.for("react.view_transition"),I=Symbol.for("react.recoverable"),J=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ne:return"Fragment";case ve:return"Profiler";case $:return"StrictMode";case le:return"Suspense";case de:return"SuspenseList";case Xe:return"Activity";case j:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case te:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case X:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ae:return n=e.displayName||null,n!==null?n:fe(e.type)||"Memo";case C:n=e._payload,e=e._init;try{return fe(e(n))}catch{}}return null}var Ce=Array.isArray,me=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Rt={pending:!1,data:null,method:null,action:null},Bn=[],ll=-1;function Jt(e){return{current:e}}function ct(e){0>ll||(e.current=Bn[ll],Bn[ll]=null,ll--)}function Pe(e,n){ll++,Bn[ll]=e.current,e.current=n}var Wt=Jt(null),Nl=Jt(null),Hn=Jt(null),Yr=Jt(null);function Gr(e,n){switch(Pe(Hn,n),Pe(Nl,e),Pe(Wt,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?zy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=zy(n),e=jy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ct(Wt),Pe(Wt,e)}function _l(){ct(Wt),ct(Nl),ct(Hn)}function Wa(e){var n=e.memoizedState;n!==null&&(ja._currentValue=n.memoizedState,Pe(Yr,e)),n=Wt.current;var l=jy(n,e.type);n!==l&&(Pe(Nl,e),Pe(Wt,l))}function K(e){Nl.current===e&&(ct(Wt),ct(Nl)),Yr.current===e&&(ct(Yr),ja._currentValue=Rt)}var ue,Te;function ze(e){if(ue===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);ue=n&&n[1]||"",Te=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ue+e+Te}var Ye=!1;function Lt(e,n){if(!e||Ye)return"";Ye=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(ce){var R=ce}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(ce){R=ce}Z=!1;try{var Y=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Z=!0,new e}finally{Z&&(Y!==void 0?Object.defineProperty(e.prototype,"props",Y):delete e.prototype.props)}}}else{try{throw Error()}catch(ce){R=ce}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(ce){if(ce&&R&&typeof ce.stack=="string")return[ce.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),x=d[0],k=d[1];if(x&&k){var z=x.split(`
44
+ `),B=k.split(`
45
+ `);for(s=i=0;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;for(;s<B.length&&!B[s].includes("DetermineComponentFrameRoot");)s++;if(i===z.length||s===B.length)for(i=z.length-1,s=B.length-1;1<=i&&0<=s&&z[i]!==B[s];)s--;for(;1<=i&&0<=s;i--,s--)if(z[i]!==B[s]){if(i!==1||s!==1)do if(i--,s--,0>s||z[i]!==B[s]){var G=`
46
+ `+z[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=s);break}}}finally{Ye=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ze(l):""}function rl(e,n){switch(e.tag){case 26:case 27:case 5:return ze(e.type);case 16:return ze("Lazy");case 13:return e.child!==n&&n!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Lt(e.type,!1);case 11:return Lt(e.type.render,!1);case 1:return Lt(e.type,!0);case 31:return ze("Activity");case 30:return ze("ViewTransition");default:return""}}function hn(e){try{var n="",l=null;do n+=rl(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var al=Object.prototype.hasOwnProperty,il=t.unstable_scheduleCallback,kt=t.unstable_cancelCallback,Al=t.unstable_shouldYield,_n=t.unstable_requestPaint,en=t.unstable_now,LS=t.unstable_getCurrentPriorityLevel,Wm=t.unstable_ImmediatePriority,eh=t.unstable_UserBlockingPriority,yu=t.unstable_NormalPriority,US=t.unstable_LowPriority,th=t.unstable_IdlePriority,BS=t.log,HS=t.unstable_setDisableYieldValue,ei=null,tn=null;function zl(e){if(typeof BS=="function"&&HS(e),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(ei,e)}catch{}}var nn=Math.clz32?Math.clz32:VS,qS=Math.log,IS=Math.LN2;function VS(e){return e>>>=0,e===0?32:31-(qS(e)/IS|0)|0}var bu=256,xu=262144,vu=4194304;function or(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Su(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var k=i&134217727;return k!==0?(i=k&~d,i!==0?s=or(i):(x&=k,x!==0?s=or(x):l||(l=k&~e,l!==0&&(s=or(l))))):(k=i&~d,k!==0?s=or(k):x!==0?s=or(x):l||(l=i&~e,l!==0&&(s=or(l)))),s===0?0:n!==0&&n!==s&&(n&d)===0&&(d=s&-s,l=n&-n,d>=l||d===32&&(l&4194048)!==0)?n:s}function ti(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function nh(e,n){(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var i=31-nn(l),s=1<<i;n|=e[i],l&=~s}return n}function YS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 lh(){var e=vu;return vu<<=1,(vu&62914560)===0&&(vu=4194304),e}function Ts(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ni(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function GS(e,n,l,i,s,d){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var k=e.entanglements,z=e.expirationTimes,B=e.hiddenUpdates;for(l=x&~l;0<l;){var G=31-nn(l),Z=1<<G;k[G]=0,z[G]=-1;var R=B[G];if(R!==null)for(B[G]=null,G=0;G<R.length;G++){var Y=R[G];Y!==null&&(Y.lane&=-536870913)}l&=~Z}i!==0&&rh(e,i,0),d!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function rh(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-nn(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function ah(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-nn(l),s=1<<i;s&n|e[i]&n&&(e[i]|=n),l&=~s}}function ih(e,n){var l=n&-n;return l=(l&42)!==0?1:Ns(l),(l&(e.suspendedLanes|n))!==0?0:l}function Ns(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _s(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uh(){var e=Se.p;return e!==0?e:(e=window.event,e===void 0?32:h0(e.type))}function oh(e,n){var l=Se.p;try{return Se.p=e,n()}finally{Se.p=l}}var ul=Math.random().toString(36).slice(2),Et="__reactFiber$"+ul,Yt="__reactProps$"+ul,Fr="__reactContainer$"+ul,sh="__reactEvents$"+ul,FS="__reactListeners$"+ul,XS="__reactHandles$"+ul,ch="__reactResources$"+ul,li="__reactMarker$"+ul,wu="__reactLoad$"+ul;function ku(e){delete e[Et],delete e[Yt],delete e[FS],delete e[XS]}function sr(e){var n;if(n=e[Et])return n;for(var l=e.parentNode;l;){if(n=l[Fr]||l[Et]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Zy(e);e!==null;){if(l=e[Et])return l;e=Zy(e)}return n}e=l,l=e.parentNode}return null}function Xr(e){if(e=e[Et]||e[Fr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ri(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(u(33))}function Qr(e){var n=e[ch];return n||(n=e[ch]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(e){e[li]=!0}function fh(e){e[wu]=void 0}var dh=new Set,mh={};function cr(e,n){Zr(e,n),Zr(e+"Capture",n)}function Zr(e,n){for(mh[e]=n,e=0;e<n.length;e++)dh.add(n[e])}var QS=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]*$"),hh={},ph={};function ZS(e){return al.call(ph,e)?!0:al.call(hh,e)?!1:QS.test(e)?ph[e]=!0:(hh[e]=!0,!1)}var Ve=!1;function gh(){var e=Ve;return Ve=!1,e}function Eu(e,n,l){if(ZS(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,l)}}function Cu(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,l)}}function ol(e,n,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,i)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function KS(e,n,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,d=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return s.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function As(e){if(!e._valueTracker){var n=yh(e)?"checked":"value";e._valueTracker=KS(e,n,""+e[n])}}function bh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=yh(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}var PS=/[\n"\\]/g;function pn(e){return e.replace(PS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function zs(e,n,l,i,s,d,x,k){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+ln(n)):e.value!==""+ln(n)&&(e.value=""+ln(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?x==="number"&&e.value==n?js(e,ln(e.value)):js(e,ln(n)):l!=null?js(e,ln(l)):i!=null&&e.removeAttribute("value"),s==null&&d!=null&&(e.defaultChecked=!!d),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+ln(k):e.removeAttribute("name")}function xh(e,n,l,i,s,d,x,k){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){As(e);return}l=l!=null?""+ln(l):"",n=n!=null?""+ln(n):l,k||n===e.value||(e.value=n),e.defaultValue=n}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=k?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),As(e)}function js(e,n){e.defaultValue!==""+n&&(e.defaultValue=""+n)}function Kr(e,n,l,i){if(e=e.options,n){n={};for(var s=0;s<l.length;s++)n["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=n.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+ln(l),n=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}n!==null||e[s].disabled||(n=e[s])}n!==null&&(n.selected=!0)}}function vh(e,n,l){if(n!=null&&(n=""+ln(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+ln(l):""}function Sh(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(u(92));if(Ce(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=ln(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),As(e)}function Pr(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var $S=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 wh(e,n,l){var i=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,l):typeof l!="number"||l===0||$S.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function kh(e,n,l){if(n!=null&&typeof n!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",Ve=!0);for(var s in n)i=n[s],n.hasOwnProperty(s)&&l[s]!==i&&(wh(e,s,i),Ve=!0)}else for(var d in n)n.hasOwnProperty(d)&&wh(e,d,n[d])}function Os(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var JS=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"]]),WS=/^[\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 Tu(e){return WS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qn(){}var Ds=null;function Ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $r=null,Jr=null;function Eh(e){var n=Xr(e);if(n&&(e=n.stateNode)){var l=e[Yt]||null;e:switch(e=n.stateNode,n.type){case"input":if(zs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var s=i[Yt]||null;if(!s)throw Error(u(90));zs(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(n=0;n<l.length;n++)i=l[n],i.form===e.form&&bh(i)}break e;case"textarea":vh(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Kr(e,!!l.multiple,n,!1)}}}var Rs=!1;function Ch(e,n,l){if(Rs)return e(n,l);Rs=!0;try{var i=e(n);return i}finally{if(Rs=!1,($r!==null||Jr!==null)&&(No(),$r&&(n=$r,e=Jr,Jr=$r=null,Eh(n),e)))for(n=0;n<e.length;n++)Eh(e[n])}}function ai(e,n){var l=e.stateNode;if(l===null)return null;var i=l[Yt]||null;if(i===null)return null;l=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,n,typeof l));return l}var sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=!1;if(sl)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Ls=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Ls=!1}var jl=null,Us=null,Nu=null;function Th(){if(Nu)return Nu;var e,n=Us,l=n.length,i,s="value"in jl?jl.value:jl.textContent,d=s.length;for(e=0;e<l&&n[e]===s[e];e++);var x=l-e;for(i=1;i<=x&&n[l-i]===s[d-i];i++);return Nu=s.slice(e,1<i?1-i:void 0)}function _u(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Au(){return!0}function Nh(){return!1}function Ut(e){function n(l,i,s,d,x){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(l=e[k],this[k]=l?l(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Au:Nh,this.isPropagationStopped=Nh,this}return F(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Au)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Au)},persist:function(){},isPersistent:Au}),n}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zu=Ut(Ol),ui=F({},Ol,{view:0,detail:0}),e2=Ut(ui),Bs,Hs,oi,ju=F({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==oi&&(oi&&e.type==="mousemove"?(Bs=e.screenX-oi.screenX,Hs=e.screenY-oi.screenY):Hs=Bs=0,oi=e),Bs)},movementY:function(e){return"movementY"in e?e.movementY:Hs}}),_h=Ut(ju),t2=F({},ju,{dataTransfer:0}),n2=Ut(t2),l2=F({},ui,{relatedTarget:0}),qs=Ut(l2),r2=F({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),a2=Ut(r2),i2=F({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u2=Ut(i2),o2=F({},Ol,{data:0}),Ah=Ut(o2),s2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c2={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"},f2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=f2[e])?!!n[e]:!1}function Is(){return d2}var m2=F({},ui,{key:function(e){if(e.key){var n=s2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=_u(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(e){return e.type==="keypress"?_u(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_u(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),h2=Ut(m2),p2=F({},ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zh=Ut(p2),g2=F({},Ol,{submitter:0}),y2=Ut(g2),b2=F({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is}),x2=Ut(b2),v2=F({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),S2=Ut(v2),w2=F({},ju,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),k2=Ut(w2),E2=F({},Ol,{newState:0,oldState:0,source:0}),C2=Ut(E2),T2=[9,13,27,32],Vs=sl&&"CompositionEvent"in window,si=null;sl&&"documentMode"in document&&(si=document.documentMode);var N2=sl&&"TextEvent"in window&&!si,jh=sl&&(!Vs||si&&8<si&&11>=si),Oh=" ",Dh=!1;function Mh(e,n){switch(e){case"keyup":return T2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function _2(e,n){switch(e){case"compositionend":return Rh(n);case"keypress":return n.which!==32?null:(Dh=!0,Oh);case"textInput":return e=n.data,e===Oh&&Dh?null:e;default:return null}}function A2(e,n){if(Wr)return e==="compositionend"||!Vs&&Mh(e,n)?(e=Th(),Nu=Us=jl=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return jh&&n.locale!=="ko"?null:n.data;default:return null}}var z2={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 Lh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!z2[e.type]:n==="textarea"}function Uh(e,n,l,i){$r?Jr?Jr.push(i):Jr=[i]:$r=i,n=Do(n,"onChange"),0<n.length&&(l=new zu("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var ci=null,fi=null;function j2(e){Ey(e,0)}function Ou(e){var n=ri(e);if(bh(n))return e}function Bh(e,n){if(e==="change")return n}var Hh=!1;if(sl){var Ys;if(sl){var Gs="oninput"in document;if(!Gs){var qh=document.createElement("div");qh.setAttribute("oninput","return;"),Gs=typeof qh.oninput=="function"}Ys=Gs}else Ys=!1;Hh=Ys&&(!document.documentMode||9<document.documentMode)}function Ih(){ci&&(ci.detachEvent("onpropertychange",Vh),fi=ci=null)}function Vh(e){if(e.propertyName==="value"&&Ou(fi)){var n=[];Uh(n,fi,e,Ms(e)),Ch(j2,n)}}function O2(e,n,l){e==="focusin"?(Ih(),ci=n,fi=l,ci.attachEvent("onpropertychange",Vh)):e==="focusout"&&Ih()}function D2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ou(fi)}function M2(e,n){if(e==="click")return Ou(n)}function R2(e,n){if(e==="input"||e==="change")return Ou(n)}function L2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var rn=typeof Object.is=="function"?Object.is:L2;function di(e,n){if(rn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),i=Object.keys(n);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!al.call(n,s)||!rn(e[s],n[s]))return!1}return!0}function Fs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gh(e,n){var l=Yh(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=n&&i>=n)return{node:l,offset:n-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Yh(l)}}function Fh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Fh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Xh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Fs(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Fs(e.document)}return n}function Xs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var U2=sl&&"documentMode"in document&&11>=document.documentMode,ea=null,Qs=null,mi=null,Zs=!1;function Qh(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zs||ea==null||ea!==Fs(i)||(i=ea,"selectionStart"in i&&Xs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),mi&&di(mi,i)||(mi=i,i=Do(Qs,"onSelect"),0<i.length&&(n=new zu("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=ea)))}function fr(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var ta={animationend:fr("Animation","AnimationEnd"),animationiteration:fr("Animation","AnimationIteration"),animationstart:fr("Animation","AnimationStart"),transitionrun:fr("Transition","TransitionRun"),transitionstart:fr("Transition","TransitionStart"),transitioncancel:fr("Transition","TransitionCancel"),transitionend:fr("Transition","TransitionEnd")},Ks={},Zh={};sl&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete ta.animationend.animation,delete ta.animationiteration.animation,delete ta.animationstart.animation),"TransitionEvent"in window||delete ta.transitionend.transition);function dr(e){if(Ks[e])return Ks[e];if(!ta[e])return e;var n=ta[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Zh)return Ks[e]=n[l];return e}var Kh=dr("animationend"),Ph=dr("animationiteration"),$h=dr("animationstart"),B2=dr("transitionrun"),H2=dr("transitionstart"),q2=dr("transitioncancel"),Jh=dr("transitionend"),Wh=new Map,Ps="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(" ");Ps.push("scrollEnd");function An(e,n){Wh.set(e,n),cr(n,[e])}var I2=0;function cl(e,n){if(e.name!=null&&e.name!=="auto")return e.name;if(n.autoName!==null)return n.autoName;e=Dn.identifierPrefix;var l=I2++;return e="_"+e+"t_"+l.toString(32)+"_",n.autoName=e}function ep(e){if(e==null||typeof e=="string")return e;var n=null,l=Sa;if(l!==null)for(var i=0;i<l.length;i++){var s=e[l[i]];if(s!=null){if(s==="none")return"none";n=n==null?s:n+(" "+s)}}return n??e.default}function fl(e,n){return e=ep(e),n=ep(n),n==null?e==="auto"?null:e:n==="auto"?null:n}var Du=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gn=[],na=0,$s=0;function Mu(){for(var e=na,n=$s=na=0;n<e;){var l=gn[n];gn[n++]=null;var i=gn[n];gn[n++]=null;var s=gn[n];gn[n++]=null;var d=gn[n];if(gn[n++]=null,i!==null&&s!==null){var x=i.pending;x===null?s.next=s:(s.next=x.next,x.next=s),i.pending=s}d!==0&&tp(l,s,d)}}function Ru(e,n,l,i){gn[na++]=e,gn[na++]=n,gn[na++]=l,gn[na++]=i,$s|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Js(e,n,l,i){return Ru(e,n,l,i),Lu(e)}function mr(e,n){return Ru(e,null,null,n),Lu(e)}function tp(e,n,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,d=e.return;d!==null;)d.childLanes|=l,i=d.alternate,i!==null&&(i.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(s=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,s&&n!==null&&(s=31-nn(l),e=d.hiddenUpdates,i=e[s],i===null?e[s]=[n]:i.push(n),n.lane=l|536870912),d):null}function Lu(e){if(50<Ri)throw Ri=0,To=null,Error(u(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var la={};function V2(e,n,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,n,l,i){return new V2(e,n,l,i)}function Ws(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e,n){var l=e.alternate;return l===null?(l=Gt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function np(e,n){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Uu(e,n,l,i,s,d){var x=0;if(i=e,typeof i=="function")Ws(i)&&(x=1);else if(typeof i=="string")x=gk(e,l,Wt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Xe:return e=Gt(31,l,n,s),e.elementType=Xe,e.lanes=d,e;case ne:return hr(l.children,s,d,n);case $:x=8,s|=24;break;case ve:return e=Gt(12,l,n,s|2),e.elementType=ve,e.lanes=d,e;case le:return e=Gt(13,l,n,s),e.elementType=le,e.lanes=d,e;case de:return e=Gt(19,l,n,s),e.elementType=de,e.lanes=d,e;case ee:case j:return e=s|32,e=Gt(30,l,n,e),e.elementType=j,e.lanes=d,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case te:x=10;break e;case se:x=9;break e;case X:x=11;break e;case Ae:x=14;break e;case C:x=16,i=null;break e}x=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return n=Gt(x,l,n,s),n.elementType=e,n.type=i,n.lanes=d,n}function hr(e,n,l,i){return e=Gt(7,e,i,n),e.lanes=l,e}function ec(e,n,l){return e=Gt(6,e,null,n),e.lanes=l,e}function lp(e){var n=Gt(18,null,null,0);return n.stateNode=e,n}function tc(e,n,l){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var rp=new WeakMap;function yn(e,n){if(typeof e=="object"&&e!==null){var l=rp.get(e);return l!==void 0?l:(n={value:e,source:n,stack:hn(n)},rp.set(e,n),n)}return{value:e,source:n,stack:hn(n)}}var ra=[],aa=0,Bu=null,hi=0,bn=[],xn=0,Dl=null,In=1,Vn="";function ml(e,n){ra[aa++]=hi,ra[aa++]=Bu,Bu=e,hi=n}function ap(e,n,l){bn[xn++]=In,bn[xn++]=Vn,bn[xn++]=Dl,Dl=e;var i=In;e=Vn;var s=32-nn(i)-1;i&=~(1<<s),l+=1;var d=32-nn(n)+s;if(30<d){var x=s-s%5;d=(i&(1<<x)-1).toString(32),i>>=x,s-=x,In=1<<32-nn(n)+s|l<<s|i,Vn=d+e}else In=1<<d|l<<s|i,Vn=e}function Hu(e){e.return!==null&&(ml(e,1),ap(e,1,0))}function nc(e){for(;e===Bu;)Bu=ra[--aa],ra[aa]=null,hi=ra[--aa],ra[aa]=null;for(;e===Dl;)Dl=bn[--xn],bn[xn]=null,Vn=bn[--xn],bn[xn]=null,In=bn[--xn],bn[xn]=null}function ip(e,n){bn[xn++]=In,bn[xn++]=Vn,bn[xn++]=Dl,In=n.id,Vn=n.overflow,Dl=e}var xt=null,nt=null,De=!1,Ml=null,vn=!1,lc=Error(u(519));function Rl(e){var n=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pi(yn(n,e)),lc}function up(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[Et]=e,n[Yt]=i,l){case"dialog":Le("cancel",n),Le("close",n);break;case"iframe":case"object":case"embed":Le("load",n);break;case"video":case"audio":for(l=0;l<Ui.length;l++)Le(Ui[l],n);break;case"source":Le("error",n);break;case"img":case"image":case"link":Le("error",n),Le("load",n);break;case"details":Le("toggle",n);break;case"input":Le("invalid",n),xh(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Le("invalid",n);break;case"textarea":Le("invalid",n),Sh(n,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||i.suppressHydrationWarning===!0||_y(n.textContent,l)?(i.popover!=null&&(Le("beforetoggle",n),Le("toggle",n)),i.onScroll!=null&&Le("scroll",n),i.onScrollEnd!=null&&Le("scrollend",n),i.onClick!=null&&(n.onclick=qn),n=!0):n=!1,n||Rl(e,!0)}function qu(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:xt=xt.return}}function ia(e){if(e!==xt)return!1;if(!De)return qu(e),De=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Mf(e.type,e.memoizedProps)),l=!l),l&&nt&&Rl(e),qu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Qy(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Qy(e)}else n===27?(n=nt,$l(e.type)?(e=Yf,Yf=null,nt=e):nt=n):nt=xt?wn(e.stateNode.nextSibling):null;return!0}function pr(){nt=xt=null,De=!1}function rc(){var e=Ml;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Ml=null),e}function pi(e){Ml===null?Ml=[e]:Ml.push(e)}var ac=Jt(null),gr=null,hl=null;function Ll(e,n,l){Pe(ac,n._currentValue),n._currentValue=l}function pl(e){e._currentValue=ac.current,ct(ac)}function Iu(e,n,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===l)break;e=e.return}}function ic(e,n,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var d=s.dependencies;if(d!==null){var x=s.child;d=d.firstContext;e:for(;d!==null;){var k=d;d=s;for(var z=0;z<n.length;z++)if(k.context===n[z]){d.lanes|=l,k=d.alternate,k!==null&&(k.lanes|=l),Iu(d.return,l,e),i||(x=null);break e}d=k.next}}else if(s.tag===18){if(x=s.return,x===null)throw Error(u(341));x.lanes|=l,d=x.alternate,d!==null&&(d.lanes|=l),Iu(x,l,e),x=null}else s.tag===13&&s.memoizedState!==null&&s.memoizedState.dehydrated===null?(s.lanes|=l,x=s.alternate,x!==null&&(x.lanes|=l),Iu(s.return,l,e),x=s.child,x=x!==null?x.sibling:null):x=s.child;if(x!==null)x.return=s;else for(x=s;x!==null;){if(x===e){x=null;break}if(s=x.sibling,s!==null){s.return=x.return,x=s;break}x=x.return}s=x}}function yr(e,n,l,i){e=null;for(var s=n,d=!1;s!==null;){if(!d){if((s.flags&524288)!==0)d=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var x=s.alternate;if(x===null)throw Error(u(387));if(x=x.memoizedProps,x!==null){var k=s.type;rn(s.pendingProps.value,x.value)||(e!==null?e.push(k):e=[k])}}else if(s===Yr.current){if(x=s.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ja):e=[ja])}s=s.return}return e!==null&&ic(n,e,l,i),n.flags|=262144,e!==null}function Vu(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function br(e){gr=e,hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return op(gr,e)}function Yu(e,n){return gr===null&&br(e),op(e,n)}function op(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},hl===null){if(e===null)throw Error(u(308));hl=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else hl=hl.next=n;return l}var Y2=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},G2=t.unstable_scheduleCallback,F2=t.unstable_NormalPriority,ft={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uc(){return{controller:new Y2,data:new Map,refCount:0}}function gi(e){e.refCount--,e.refCount===0&&G2(F2,function(){e.controller.abort()})}function sp(e,n){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<n.length;e++){var i=n[e];l.indexOf(i)===-1&&l.push(i)}}}var yi=null;function X2(e){var n=e.transitionTypes;return e.transitionTypes=null,n}var bi=null,oc=0,xr=0,ua=null;function Q2(e,n){if(bi===null){var l=bi=[];oc=0,xr=Cf(),ua={status:"pending",value:void 0,then:function(i){l.push(i)}}}return oc++,n.then(cp,cp),n}function cp(){if(--oc===0&&(yi=null,bi!==null)){ua!==null&&(ua.status="fulfilled");var e=bi;bi=null,xr=0,ua=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Z2(e,n){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var s=0;s<l.length;s++)(0,l[s])(n)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var fp=me.S;me.S=function(e,n){if(ly=en(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Q2(e,n),yi!==null)for(var l=Ca;l!==null;)sp(l,yi),l=l.next;if(l=e.types,l!==null){for(var i=Ca;i!==null;)sp(i,l),i=i.next;if(xr!==0){i=yi,i===null&&(i=yi=[]);for(var s=0;s<l.length;s++){var d=l[s];i.indexOf(d)===-1&&i.push(d)}}}fp!==null&&fp(e,n)};var vr=Jt(null);function sc(){var e=vr.current;return e!==null?e:We.pooledCache}function Gu(e,n){n===null?Pe(vr,vr.current):Pe(vr,n.pool)}function dp(){var e=sc();return e===null?null:{parent:ft._currentValue,pool:e}}var oa=Error(u(460)),cc=Error(u(474)),Fu=Error(u(542)),Xu={then:function(){}};function mp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hp(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(qn,qn),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gp(e),e===void 0&&!("reason"in n)?Error(u(600)):e;default:if(typeof n.status=="string")n.then(qn,qn);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var s=n;s.status="fulfilled",s.value=i}},function(i){if(n.status==="pending"){var s=n;s.status="rejected",s.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gp(e),e}throw wr=n,oa}}function Sr(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wr=l,oa):l}}var wr=null;function pp(){if(wr===null)throw Error(u(459));var e=wr;return wr=null,e}function gp(e){if(e===oa||e===Fu)throw Error(u(483))}var sa=null,xi=0;function Qu(e){var n=xi;return xi+=1,sa===null&&(sa=[]),hp(sa,e,n)}function Ul(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Zu(e,n){throw n.$$typeof===q?Error(u(525)):(e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function yp(e){function n(U,O){if(e){var V=U.deletions;V===null?(U.deletions=[O],U.flags|=16):V.push(O)}}function l(U,O){if(!e)return null;for(;O!==null;)n(U,O),O=O.sibling;return null}function i(U){for(var O=new Map;U!==null;)U.key===null?O.set(U.index,U):O.set(U.key,U),U=U.sibling;return O}function s(U,O){return U=dl(U,O),U.index=0,U.sibling=null,U}function d(U,O,V){return U.index=V,e?(V=U.alternate,V!==null?(V=V.index,V<O?(U.flags|=2,O):V):(U.flags|=134217730,O)):(U.flags|=1048576,O)}function x(U){return e&&U.alternate===null&&(U.flags|=134217730),U}function k(U,O,V,Q){return O===null||O.tag!==6?(O=ec(V,U.mode,Q),O.return=U,O):(O=s(O,V),O.return=U,O)}function z(U,O,V,Q){var he=V.type;return he===ne?(U=G(U,O,V.props.children,Q,V.key),Ul(U,V),U):O!==null&&(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===C&&Sr(he)===O.type)?(O=s(O,V.props),Ul(O,V),O.return=U,O):(O=Uu(V.type,V.key,V.props,null,U.mode,Q),Ul(O,V),O.return=U,O)}function B(U,O,V,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==V.containerInfo||O.stateNode.implementation!==V.implementation?(O=tc(V,U.mode,Q),O.return=U,O):(O=s(O,V.children||[]),O.return=U,O)}function G(U,O,V,Q,he){return O===null||O.tag!==7?(O=hr(V,U.mode,Q,he),O.return=U,O):(O=s(O,V),O.return=U,O)}function Z(U,O,V){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=ec(""+O,U.mode,V),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case ie:return V=Uu(O.type,O.key,O.props,null,U.mode,V),Ul(V,O),V.return=U,V;case H:return O=tc(O,U.mode,V),O.return=U,O;case C:return O=Sr(O),Z(U,O,V)}if(Ce(O)||ae(O))return O=hr(O,U.mode,V,null),O.return=U,O;if(typeof O.then=="function")return Z(U,Qu(O),V);if(O.$$typeof===te)return Z(U,Yu(U,O),V);Zu(U,O)}return null}function R(U,O,V,Q){var he=O!==null?O.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return he!==null?null:k(U,O,""+V,Q);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case ie:return V.key===he?z(U,O,V,Q):null;case H:return V.key===he?B(U,O,V,Q):null;case C:return V=Sr(V),R(U,O,V,Q)}if(Ce(V)||ae(V))return he!==null?null:G(U,O,V,Q,null);if(typeof V.then=="function")return R(U,O,Qu(V),Q);if(V.$$typeof===te)return R(U,O,Yu(U,V),Q);Zu(U,V)}return null}function Y(U,O,V,Q,he){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return U=U.get(V)||null,k(O,U,""+Q,he);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case ie:return U=U.get(Q.key===null?V:Q.key)||null,z(O,U,Q,he);case H:return U=U.get(Q.key===null?V:Q.key)||null,B(O,U,Q,he);case C:return Q=Sr(Q),Y(U,O,V,Q,he)}if(Ce(Q)||ae(Q))return U=U.get(V)||null,G(O,U,Q,he,null);if(typeof Q.then=="function")return Y(U,O,V,Qu(Q),he);if(Q.$$typeof===te)return Y(U,O,V,Yu(O,Q),he);Zu(O,Q)}return null}function ce(U,O,V,Q){for(var he=null,He=null,xe=O,ke=O=0,ht=null;xe!==null&&ke<V.length;ke++){xe.index>ke?(ht=xe,xe=null):ht=xe.sibling;var qe=R(U,xe,V[ke],Q);if(qe===null){xe===null&&(xe=ht);break}e&&xe&&qe.alternate===null&&n(U,xe),O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe,xe=ht}if(ke===V.length)return l(U,xe),De&&ml(U,ke),he;if(xe===null){for(;ke<V.length;ke++)xe=Z(U,V[ke],Q),xe!==null&&(O=d(xe,O,ke),He===null?he=xe:He.sibling=xe,He=xe);return De&&ml(U,ke),he}for(xe=i(xe);ke<V.length;ke++)ht=Y(xe,U,ke,V[ke],Q),ht!==null&&(e&&(qe=ht.alternate,qe!==null&&xe.delete(qe.key===null?ke:qe.key)),O=d(ht,O,ke),He===null?he=ht:He.sibling=ht,He=ht);return e&&xe.forEach(function(nr){return n(U,nr)}),De&&ml(U,ke),he}function ye(U,O,V,Q){if(V==null)throw Error(u(151));for(var he=null,He=null,xe=O,ke=O=0,ht=null,qe=V.next();xe!==null&&!qe.done;ke++,qe=V.next()){xe.index>ke?(ht=xe,xe=null):ht=xe.sibling;var nr=R(U,xe,qe.value,Q);if(nr===null){xe===null&&(xe=ht);break}e&&xe&&nr.alternate===null&&n(U,xe),O=d(nr,O,ke),He===null?he=nr:He.sibling=nr,He=nr,xe=ht}if(qe.done)return l(U,xe),De&&ml(U,ke),he;if(xe===null){for(;!qe.done;ke++,qe=V.next())qe=Z(U,qe.value,Q),qe!==null&&(O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe);return De&&ml(U,ke),he}for(xe=i(xe);!qe.done;ke++,qe=V.next())qe=Y(xe,U,ke,qe.value,Q),qe!==null&&(e&&(ht=qe.alternate,ht!==null&&xe.delete(ht.key===null?ke:ht.key)),O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe);return e&&xe.forEach(function(_k){return n(U,_k)}),De&&ml(U,ke),he}function Oe(U,O,V,Q){if(typeof V=="object"&&V!==null&&V.type===ne&&V.key===null&&V.props.ref===void 0&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case ie:e:{for(var he=V.key;O!==null;){if(O.key===he){if(he=V.type,he===ne){if(O.tag===7){l(U,O.sibling),Q=s(O,V.props.children),Ul(Q,V),Q.return=U,U=Q;break e}}else if(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===C&&Sr(he)===O.type){l(U,O.sibling),Q=s(O,V.props),Ul(Q,V),Q.return=U,U=Q;break e}l(U,O);break}else n(U,O);O=O.sibling}V.type===ne?(Q=hr(V.props.children,U.mode,Q,V.key),Ul(Q,V),Q.return=U,U=Q):(Q=Uu(V.type,V.key,V.props,null,U.mode,Q),Ul(Q,V),Q.return=U,U=Q)}return x(U);case H:e:{for(he=V.key;O!==null;){if(O.key===he)if(O.tag===4&&O.stateNode.containerInfo===V.containerInfo&&O.stateNode.implementation===V.implementation){l(U,O.sibling),Q=s(O,V.children||[]),Q.return=U,U=Q;break e}else{l(U,O);break}else n(U,O);O=O.sibling}Q=tc(V,U.mode,Q),Q.return=U,U=Q}return x(U);case C:return V=Sr(V),Oe(U,O,V,Q)}if(Ce(V))return ce(U,O,V,Q);if(ae(V)){if(he=ae(V),typeof he!="function")throw Error(u(150));return V=he.call(V),ye(U,O,V,Q)}if(typeof V.then=="function")return Oe(U,O,Qu(V),Q);if(V.$$typeof===te)return Oe(U,O,Yu(U,V),Q);Zu(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,O!==null&&O.tag===6?(l(U,O.sibling),Q=s(O,V),Q.return=U,U=Q):(l(U,O),Q=ec(V,U.mode,Q),Q.return=U,U=Q),x(U)):l(U,O)}return function(U,O,V,Q){try{xi=0;var he=Oe(U,O,V,Q);return sa=null,he}catch(xe){if(xe===oa||xe===Fu)throw xe;var He=Gt(29,xe,null,U.mode);return He.lanes=Q,He.return=U,He}finally{}}}var kr=yp(!0),bp=yp(!1),Bl=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ql(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ge&2)!==0){var s=i.pending;return s===null?n.next=n:(n.next=s.next,s.next=n),i.pending=n,n=Lu(e),tp(e,null,l),n}return Ru(e,i,n,l),Lu(e)}function vi(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,ah(e,l)}}function mc(e,n){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?s=d=x:d=d.next=x,l=l.next}while(l!==null);d===null?s=d=n:d=d.next=n}else s=d=n;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var hc=!1;function Si(){if(hc){var e=ua;if(e!==null)throw e}}function wi(e,n,l,i){hc=!1;var s=e.updateQueue;Bl=!1;var d=s.firstBaseUpdate,x=s.lastBaseUpdate,k=s.shared.pending;if(k!==null){s.shared.pending=null;var z=k,B=z.next;z.next=null,x===null?d=B:x.next=B,x=z;var G=e.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==x&&(k===null?G.firstBaseUpdate=B:k.next=B,G.lastBaseUpdate=z))}if(d!==null){var Z=s.baseState;x=0,G=B=z=null,k=d;do{var R=k.lane&-536870913,Y=R!==k.lane;if(Y?(Be&R)===R:(i&R)===R){R!==0&&R===xr&&(hc=!0),G!==null&&(G=G.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ce=e,ye=k;R=n;var Oe=l;switch(ye.tag){case 1:if(ce=ye.payload,typeof ce=="function"){Z=ce.call(Oe,Z,R);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ye.payload,R=typeof ce=="function"?ce.call(Oe,Z,R):ce,R==null)break e;Z=F({},Z,R);break e;case 2:Bl=!0}}R=k.callback,R!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[R]:Y.push(R))}else Y={lane:R,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?(B=G=Y,z=Z):G=G.next=Y,x|=R;if(k=k.next,k===null){if(k=s.shared.pending,k===null)break;Y=k,k=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);G===null&&(z=Z),s.baseState=z,s.firstBaseUpdate=B,s.lastBaseUpdate=G,d===null&&(s.shared.lanes=0),Ql|=x,e.lanes=x,e.memoizedState=Z}}function xp(e,n){if(typeof e!="function")throw Error(u(191,e));e.call(n)}function vp(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)xp(l[e],n)}var Il=Jt(null),Ku=Jt(0);function Sp(e,n){e=vl,Pe(Ku,e),Pe(Il,n),vl=e|n.baseLanes}function pc(){Pe(Ku,vl),Pe(Il,Il.current)}function gc(){vl=Ku.current,ct(Il),ct(Ku)}var Tt=Jt(null),Ot=null;function Vl(e){var n=e.alternate;Pe(Nt,Nt.current&1),Pe(Tt,e),Ot===null&&(n===null||Il.current!==null||n.memoizedState!==null)&&(Ot=e)}function yc(e){Pe(Nt,Nt.current),Pe(Tt,e),Ot===null&&(Ot=e)}function wp(e){e.tag===22?(Pe(Nt,Nt.current),Pe(Tt,e),Ot===null&&(Ot=e)):Yl()}function Yl(){Pe(Nt,Nt.current),Pe(Tt,Tt.current)}function an(e){ct(Tt),Ot===e&&(Ot=null),ct(Nt)}var Nt=Jt(0);function ki(e,n){Pe(Tt,Tt.current),Pe(Nt,n)}function bc(e){ct(Nt),ct(Tt),Ot===e&&(Ot=null)}function Pu(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||If(l)||Vf(l)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!=="independent"){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gl=0,je=null,$e=null,dt=null,$u=!1,ca=!1,Er=!1,Ju=0,Ei=0,fa=null,K2=0;function ut(){throw Error(u(321))}function xc(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!rn(e[l],n[l]))return!1;return!0}function vc(e,n,l,i,s,d){return gl=d,je=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,me.H=e===null||e.memoizedState===null?ag:ig,Er=!1,d=l(i,s),Er=!1,ca&&(d=Ep(n,l,i,s)),kp(e),d}function kp(e){me.H=ao;var n=$e!==null&&$e.next!==null;if(gl=0,dt=$e=je=null,$u=!1,Ei=0,fa=null,n)throw Error(u(300));e===null||mt||(e=e.dependencies,e!==null&&Vu(e)&&(mt=!0))}function Ep(e,n,l,i){je=e;var s=0;do{if(ca&&(fa=null),Ei=0,ca=!1,25<=s)throw Error(u(301));if(s+=1,dt=$e=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}me.H=lw,d=n(l,i)}while(ca);return d}function P2(){var e=me.H,n=e.useState()[0];return n=typeof n.then=="function"?Ci(n):n,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(je.flags|=1024),n}function Sc(){var e=Ju!==0;return Ju=0,e}function wc(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function kc(e){if($u){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}$u=!1}gl=0,dt=$e=je=null,ca=!1,Ei=Ju=0,fa=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?je.memoizedState=dt=e:dt=dt.next=e,dt}function st(){if($e===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var n=dt===null?je.memoizedState:dt.next;if(n!==null)dt=n,$e=e;else{if(e===null)throw je.alternate===null?Error(u(467)):Error(u(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},dt===null?je.memoizedState=dt=e:dt=dt.next=e}return dt}function Wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ci(e){var n=Ei;return Ei+=1,fa===null&&(fa=[]),e=hp(fa,e,n),n=je,(dt===null?n.memoizedState:dt.next)===null&&(n=n.alternate,me.H=n===null||n.memoizedState===null?ag:ig),e}function eo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ci(e);if(e.$$typeof===I)return;if(e.$$typeof===te)return Ct(e)}throw Error(u(438,String(e)))}function Ec(e){var n=null,l=je.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=je.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(s){return s.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Wu(),je.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),i=0;i<e;i++)l[i]=A;return n.index++,l}function yl(e,n){return typeof n=="function"?n(e):n}function to(e){var n=st();return Cc(n,$e,e)}function Cc(e,n,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,d=i.pending;if(d!==null){if(s!==null){var x=s.next;s.next=d.next,d.next=x}n.baseQueue=s=d,i.pending=null}if(d=e.baseState,s===null)e.memoizedState=d;else{n=s.next;var k=x=null,z=null,B=n,G=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Be&Z)===Z:(gl&Z)===Z){var R=B.revertLane;if(R===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===xr&&(G=!0);else if((gl&R)===R){B=B.next,R===xr&&(G=!0);continue}else Z={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},z===null?(k=z=Z,x=d):z=z.next=Z,je.lanes|=R,Ql|=R;Z=B.action,Er&&l(d,Z),d=B.hasEagerState?B.eagerState:l(d,Z)}else R={lane:Z,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},z===null?(k=z=R,x=d):z=z.next=R,je.lanes|=Z,Ql|=Z;B=B.next}while(B!==null&&B!==n);if(z===null?x=d:z.next=k,!rn(d,e.memoizedState)&&(mt=!0,G&&(l=ua,l!==null)))throw l;e.memoizedState=d,e.baseState=x,e.baseQueue=z,i.lastRenderedState=d}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Tc(e){var n=st(),l=n.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,d=n.memoizedState;if(s!==null){l.pending=null;var x=s=s.next;do d=e(d,x.action),x=x.next;while(x!==s);rn(d,n.memoizedState)||(mt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,i]}function Cp(e,n,l){var i=je,s=st(),d=De;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=n();var x=!rn(($e||s).memoizedState,l);if(x&&(s.memoizedState=l,mt=!0),s=s.queue,Ac(_p.bind(null,i,s,e),[e]),e=s.getSnapshot!==n||x||dt!==null&&(dt.memoizedState.tag&1)!==0,da(e?9:8,{destroy:void 0},Np.bind(null,i,s,l,n),null),e){if(i.flags|=2048,We===null)throw Error(u(349));d||(gl&127)!==0||Tp(i,n,l)}return l}function Tp(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=je.updateQueue,n===null?(n=Wu(),je.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Np(e,n,l,i){n.value=l,n.getSnapshot=i,Ap(n)&&zp(e)}function _p(e,n,l){return l(function(){Ap(n)&&zp(e)})}function Ap(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!rn(e,l)}catch{return!0}}function zp(e){var n=mr(e,2);n!==null&&Zt(n,e,2)}function Nc(e){var n=Bt();if(typeof e=="function"){var l=e;if(e=l(),Er){zl(!0);try{l()}finally{zl(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:e},n}function jp(e,n,l,i){return e.baseState=l,Cc(e,$e,typeof i=="function"?i:yl)}function $2(e,n,l,i,s){if(ro(e))throw Error(u(485));if(e=n.action,e!==null){var d={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};me.T!==null?l(!0):d.isTransition=!1,i(d),l=n.pending,l===null?(d.next=n.pending=d,Op(n,d)):(d.next=l.next,n.pending=l.next=d)}}function Op(e,n){var l=n.action,i=n.payload,s=e.state;if(n.isTransition){var d=me.T,x={};x.types=d!==null?d.types:null,me.T=x;try{var k=l(s,i),z=me.S;z!==null&&z(x,k),Dp(e,n,k)}catch(B){_c(e,n,B)}finally{d!==null&&x.types!==null&&(d.types=x.types),me.T=d}}else try{d=l(s,i),Dp(e,n,d)}catch(B){_c(e,n,B)}}function Dp(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Mp(e,n,i)},function(i){return _c(e,n,i)}):Mp(e,n,l)}function Mp(e,n,l){n.status="fulfilled",n.value=l,Rp(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,Op(e,l)))}function _c(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,Rp(n),n=n.next;while(n!==i)}e.action=null}function Rp(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Lp(e,n){return n}function Up(e,n){if(De){var l=We.formState;if(l!==null){e:{var i=je;if(De){if(nt){t:{for(var s=nt,d=vn;s.nodeType!==8;){if(!d){s=null;break t}if(s=wn(s.nextSibling),s===null){s=null;break t}}d=s.data,s=d==="F!"||d==="F"?s:null}if(s){nt=wn(s.nextSibling),i=s.data==="F!";break e}}Rl(i)}i=!1}i&&(n=l[0])}}return l=Bt(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lp,lastRenderedState:n},l.queue=i,l=ng.bind(null,je,i),i.dispatch=l,i=Nc(!1),d=Mc.bind(null,je,!1,i.queue),i=Bt(),s={state:n,dispatch:null,action:e,pending:null},i.queue=s,l=$2.bind(null,je,s,d,l),s.dispatch=l,i.memoizedState=e,[n,l,!1]}function Bp(e){var n=st();return Hp(n,$e,e)}function Hp(e,n,l){if(n=Cc(e,n,Lp)[0],e=to(yl)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=Ci(n)}catch(x){throw x===oa?Fu:x}else i=n;n=st();var s=n.queue,d=s.dispatch;return l!==n.memoizedState&&(je.flags|=2048,da(9,{destroy:void 0},J2.bind(null,s,l),null)),[i,d,e]}function J2(e,n){e.action=n}function qp(e){var n=st(),l=$e;if(l!==null)return Hp(n,l,e);st(),n=n.memoizedState,l=st();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function da(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=je.updateQueue,n===null&&(n=Wu(),je.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,n.lastEffect=e),e}function Ip(){return st().memoizedState}function no(e,n,l,i){var s=Bt();je.flags|=e,s.memoizedState=da(1|n,{destroy:void 0},l,i===void 0?null:i)}function lo(e,n,l,i){var s=st();i=i===void 0?null:i;var d=s.memoizedState.inst;$e!==null&&i!==null&&xc(i,$e.memoizedState.deps)?s.memoizedState=da(n,d,l,i):(je.flags|=e,s.memoizedState=da(1|n,d,l,i))}function Vp(e,n){no(8390656,8,e,n)}function Ac(e,n){lo(2048,8,e,n)}function W2(e){je.flags|=4;var n=je.updateQueue;if(n===null)n=Wu(),je.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function Yp(e){var n=st().memoizedState;return W2({ref:n,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}function Gp(e,n){return lo(4,2,e,n)}function Fp(e,n){return lo(4,4,e,n)}function Xp(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Qp(e,n,l){l=l!=null?l.concat([e]):null,lo(4,4,Xp.bind(null,n,e),l)}function zc(){}function Zp(e,n){var l=st();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&xc(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function Kp(e,n){var l=st();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&xc(n,i[1]))return i[0];if(i=e(),Er){zl(!0);try{e()}finally{zl(!1)}}return l.memoizedState=[i,n],i}function jc(e,n,l){return l===void 0||(gl&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=ay(),je.lanes|=e,Ql|=e,l)}function Pp(e,n,l,i){return rn(l,n)?l:Il.current!==null?(e=jc(e,l,i),rn(e,n)||(mt=!0),e):(gl&106)===0||(gl&1073741824)!==0&&(Be&261930)===0?(mt=!0,e.memoizedState=l):(e=ay(),je.lanes|=e,Ql|=e,n)}function $p(e,n,l,i,s){var d=Se.p;Se.p=d!==0&&8>d?d:8;var x=me.T,k={};k.types=x!==null?x.types:null,me.T=k,Mc(e,!1,n,l);try{var z=s(),B=me.S;if(B!==null&&B(k,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var G=Z2(z,i);Ti(e,n,G,cn(e))}else Ti(e,n,i,cn(e))}catch(Z){Ti(e,n,{then:function(){},status:"rejected",reason:Z},cn())}finally{Se.p=d,x!==null&&k.types!==null&&(x.types=k.types),me.T=x}}function ew(){}function Oc(e,n,l,i){if(e.tag!==5)throw Error(u(476));var s=Jp(e).queue;$p(e,s,n,Rt,l===null?ew:function(){return Wp(e),l(i)})}function Jp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Rt,baseState:Rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:Rt},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Wp(e){var n=Jp(e);n.next===null&&(n=e.alternate.memoizedState),Ti(e,n.next.queue,{},cn())}function Dc(){return Ct(ja)}function eg(){return st().memoizedState}function tg(){return st().memoizedState}function tw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=cn();e=Hl(l);var i=ql(n,e,l);i!==null&&(Zt(i,n,l),vi(i,n,l)),n={cache:uc()},e.payload=n;return}n=n.return}}function nw(e,n,l){var i=cn();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ro(e)?lg(n,l):(l=Js(e,n,l,i),l!==null&&(Zt(l,e,i),rg(l,n,i)))}function ng(e,n,l){var i=cn();Ti(e,n,l,i)}function Ti(e,n,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ro(e))lg(n,s);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,k=d(x,l);if(s.hasEagerState=!0,s.eagerState=k,rn(k,x))return Ru(e,n,s,0),We===null&&Mu(),!1}catch{}finally{}if(l=Js(e,n,s,i),l!==null)return Zt(l,e,i),rg(l,n,i),!0}return!1}function Mc(e,n,l,i){if(i={lane:2,revertLane:Cf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ro(e)){if(n)throw Error(u(479))}else n=Js(e,l,i,2),n!==null&&Zt(n,e,2)}function ro(e){var n=e.alternate;return e===je||n!==null&&n===je}function lg(e,n){ca=$u=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function rg(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,ah(e,l)}}var ao={readContext:Ct,use:eo,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut,useEffectEvent:ut},ag={readContext:Ct,use:eo,useCallback:function(e,n){return Bt().memoizedState=[e,n===void 0?null:n],e},useContext:Ct,useEffect:Vp,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,no(4194308,4,Xp.bind(null,n,e),l)},useLayoutEffect:function(e,n){return no(4194308,4,e,n)},useInsertionEffect:function(e,n){no(4,2,e,n)},useMemo:function(e,n){var l=Bt();n=n===void 0?null:n;var i=e();if(Er){zl(!0);try{e()}finally{zl(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=Bt();if(l!==void 0){var s=l(n);if(Er){zl(!0);try{l(n)}finally{zl(!1)}}}else s=n;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=nw.bind(null,je,e),[i.memoizedState,e]},useRef:function(e){var n=Bt();return e={current:e},n.memoizedState=e},useState:function(e){e=Nc(e);var n=e.queue,l=ng.bind(null,je,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:zc,useDeferredValue:function(e,n){var l=Bt();return jc(l,e,n)},useTransition:function(){var e=Nc(!1);return e=$p.bind(null,je,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=je,s=Bt();if(De){if(l===void 0)throw Error(u(407));l=l()}else{if(l=n(),We===null)throw Error(u(349));(Be&127)!==0||Tp(i,n,l)}s.memoizedState=l;var d={value:l,getSnapshot:n};return s.queue=d,Vp(_p.bind(null,i,d,e),[e]),i.flags|=2048,da(9,{destroy:void 0},Np.bind(null,i,d,l,n),null),l},useId:function(){var e=Bt(),n=We.identifierPrefix;if(De){var l=Vn,i=In;l=(i&~(1<<32-nn(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Ju++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=K2++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Dc,useFormState:Up,useActionState:Up,useOptimistic:function(e){var n=Bt();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Mc.bind(null,je,!0,l),l.dispatch=n,[e,n]},useMemoCache:Ec,useCacheRefresh:function(){return Bt().memoizedState=tw.bind(null,je)},useEffectEvent:function(e){var n=Bt(),l={impl:e};return n.memoizedState=l,function(){if((Ge&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},ig={readContext:Ct,use:eo,useCallback:Zp,useContext:Ct,useEffect:Ac,useImperativeHandle:Qp,useInsertionEffect:Gp,useLayoutEffect:Fp,useMemo:Kp,useReducer:to,useRef:Ip,useState:function(){return to(yl)},useDebugValue:zc,useDeferredValue:function(e,n){var l=st();return Pp(l,$e.memoizedState,e,n)},useTransition:function(){var e=to(yl)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Cp,useId:eg,useHostTransitionStatus:Dc,useFormState:Bp,useActionState:Bp,useOptimistic:function(e,n){var l=st();return jp(l,$e,e,n)},useMemoCache:Ec,useCacheRefresh:tg,useEffectEvent:Yp},lw={readContext:Ct,use:eo,useCallback:Zp,useContext:Ct,useEffect:Ac,useImperativeHandle:Qp,useInsertionEffect:Gp,useLayoutEffect:Fp,useMemo:Kp,useReducer:Tc,useRef:Ip,useState:function(){return Tc(yl)},useDebugValue:zc,useDeferredValue:function(e,n){var l=st();return $e===null?jc(l,e,n):Pp(l,$e.memoizedState,e,n)},useTransition:function(){var e=Tc(yl)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ci(e),n]},useSyncExternalStore:Cp,useId:eg,useHostTransitionStatus:Dc,useFormState:qp,useActionState:qp,useOptimistic:function(e,n){var l=st();return $e!==null?jp(l,$e,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:tg,useEffectEvent:Yp};function Rc(e,n,l,i){n=e.memoizedState,l=l(i,n),l=l==null?n:F({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Lc={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=cn(),s=Hl(i);s.payload=n,l!=null&&(s.callback=l),n=ql(e,s,i),n!==null&&(Zt(n,e,i),vi(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=cn(),s=Hl(i);s.tag=1,s.payload=n,l!=null&&(s.callback=l),n=ql(e,s,i),n!==null&&(Zt(n,e,i),vi(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=cn(),i=Hl(l);i.tag=2,n!=null&&(i.callback=n),n=ql(e,i,l),n!==null&&(Zt(n,e,l),vi(n,e,l))}};function ug(e,n,l,i,s,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,x):n.prototype&&n.prototype.isPureReactComponent?!di(l,i)||!di(s,d):!0}function og(e,n,l,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,i),n.state!==e&&Lc.enqueueReplaceState(n,n.state,null)}function Cr(e,n){var l=n;if("ref"in n){l={};for(var i in n)i!=="ref"&&(l[i]=n[i])}if(e=e.defaultProps){l===n&&(l=F({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function sg(e){Du(e)}function cg(e){console.error(e)}function fg(e){Du(e)}function io(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function dg(e,n,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Uc(e,n,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){io(e,n)},l}function mg(e){return e=Hl(e),e.tag=3,e}function hg(e,n,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var d=i.value;e.payload=function(){return s(d)},e.callback=function(){dg(n,l,i)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){dg(n,l,i),typeof s!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})})}function rw(e,n,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&yr(n,l,s,!0),l=Tt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Ot===null?_o():l.alternate===null&&ot===0&&(ot=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Xu?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),wf(e,i,s)),!1;case 22:return l.flags|=65536,i===Xu?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([i]):l.add(i)),wf(e,i,s)),!1}throw Error(u(435,l.tag))}return wf(e,i,s),_o(),!1}if(De)return n=Tt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=s,i!==lc&&(e=Error(u(422),{cause:i}),pi(yn(e,l)))):(i!==lc&&(n=Error(u(423),{cause:i}),pi(yn(n,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=yn(i,l),s=Uc(e.stateNode,i,s),mc(e,s),ot!==4&&(ot=2)),!1;var d=Error(u(520),{cause:i});if(d=yn(d,l),Mi===null?Mi=[d]:Mi.push(d),ot!==4&&(ot=2),n===null)return!0;i=yn(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=Uc(l.stateNode,i,e),mc(l,e),!1;case 1:if(n=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Zl===null||!Zl.has(d))))return l.flags|=65536,s&=-s,l.lanes|=s,s=mg(s),hg(s,e,l,i),mc(l,s),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var Bc=Error(u(461)),mt=!1;function gt(e,n,l,i){n.child=e===null?bp(n,null,l,i):kr(n,e.child,l,i)}function pg(e,n,l,i,s){l=l.render;var d=n.ref;if("ref"in i){var x={};for(var k in i)k!=="ref"&&(x[k]=i[k])}else x=i;return br(n),i=vc(e,n,l,x,d,s),k=Sc(),e!==null&&!mt?(wc(e,n,s),bl(e,n,s)):(De&&k&&Hu(n),n.flags|=1,gt(e,n,i,s),n.child)}function gg(e,n,l,i,s){if(e===null){var d=l.type;return typeof d=="function"&&!Ws(d)&&d.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=d,yg(e,n,d,i,s)):(e=Uu(l.type,null,i,n,n.mode,s),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Xc(e,s)){var x=d.memoizedProps;if(l=l.compare,l=l!==null?l:di,l(x,i)&&e.ref===n.ref)return bl(e,n,s)}return n.flags|=1,e=dl(d,i),e.ref=n.ref,e.return=n,n.child=e}function yg(e,n,l,i,s){if(e!==null){var d=e.memoizedProps;if(di(d,i)&&e.ref===n.ref)if(mt=!1,n.pendingProps=i=d,Xc(e,s))(e.flags&131072)!==0&&(mt=!0);else return n.lanes=e.lanes,bl(e,n,s)}return Hc(e,n,l,i,s)}function bg(e,n,l,i){var s=i.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(i=n.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~d}else i=0,n.child=null;return xg(e,n,d,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gu(n,d!==null?d.cachePool:null),d!==null?Sp(n,d):pc(),wp(n);else return i=n.lanes=536870912,xg(e,n,d!==null?d.baseLanes|l:l,l,i)}else d!==null?(Gu(n,d.cachePool),Sp(n,d),Yl(),n.memoizedState=null):(e!==null&&Gu(n,null),pc(),Yl());return gt(e,n,s,l),n.child}function Ni(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function xg(e,n,l,i,s){var d=sc();return d=d===null?null:{parent:ft._currentValue,pool:d},n.memoizedState={baseLanes:l,cachePool:d},e!==null&&Gu(n,null),pc(),wp(n),e!==null&&yr(e,n,i,!0),n.childLanes=s,null}function uo(e,n){return n=oo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function vg(e,n,l){return kr(n,e.child,null,l),e=uo(n,n.pendingProps),e.flags|=2,an(n),n.memoizedState=null,e}function aw(e,n,l){var i=n.pendingProps,s=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(i.mode==="hidden")return e=uo(n,i),n.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ni(null,e);if(yc(n),(e=nt)?(e=Xy(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Dl!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=lp(e),l.return=n,n.child=l,xt=n,nt=null)):e=null,e===null)throw Rl(n);return n.lanes=536870912,null}return uo(n,i)}var d=e.memoizedState;if(d!==null){var x=d.dehydrated;if(yc(n),s)if(n.flags&256)n.flags&=-257,n=vg(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(u(558));else if(mt||yr(e,n,l,!1),s=(l&e.childLanes)!==0,mt||s){if(Il.current===null){if(i=We,i!==null&&(x=ih(i,l),x!==0&&x!==d.retryLane))throw d.retryLane=x,mr(e,x),Zt(i,e,x),Bc;_o()}n=vg(e,n,l)}else e=d.treeContext,nt=wn(x.nextSibling),xt=n,De=!0,Ml=null,vn=!1,e!==null&&ip(n,e),n=uo(n,i),n.flags|=134221824;return n}return e=dl(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ma(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Hc(e,n,l,i,s){return br(n),l=vc(e,n,l,i,void 0,s),i=Sc(),e!==null&&!mt?(wc(e,n,s),bl(e,n,s)):(De&&i&&Hu(n),n.flags|=1,gt(e,n,l,s),n.child)}function Sg(e,n,l,i,s,d){return br(n),n.updateQueue=null,l=Ep(n,i,l,s),kp(e),i=Sc(),e!==null&&!mt?(wc(e,n,d),bl(e,n,d)):(De&&i&&Hu(n),n.flags|=1,gt(e,n,l,d),n.child)}function wg(e,n,l,i,s){if(br(n),n.stateNode===null){var d=la,x=l.contextType;typeof x=="object"&&x!==null&&(d=Ct(x)),d=new l(i,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Lc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=i,d.state=n.memoizedState,d.refs={},fc(n),x=l.contextType,d.context=typeof x=="object"&&x!==null?Ct(x):la,d.state=n.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Rc(n,l,x,i),d.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Lc.enqueueReplaceState(d,d.state,null),wi(n,i,d,s),Si(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){d=n.stateNode;var k=n.memoizedProps,z=Cr(l,k);d.props=z;var B=d.context,G=l.contextType;x=la,typeof G=="object"&&G!==null&&(x=Ct(G));var Z=l.getDerivedStateFromProps;G=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",k=n.pendingProps!==k,G||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(k||B!==x)&&og(n,d,i,x),Bl=!1;var R=n.memoizedState;d.state=R,wi(n,i,d,s),Si(),B=n.memoizedState,k||R!==B||Bl?(typeof Z=="function"&&(Rc(n,l,Z,i),B=n.memoizedState),(z=Bl||ug(n,l,z,i,R,B,x))?(G||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=B),d.props=i,d.state=B,d.context=x,i=z):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{d=n.stateNode,dc(e,n),x=n.memoizedProps,G=Cr(l,x),d.props=G,Z=n.pendingProps,R=d.context,B=l.contextType,z=la,typeof B=="object"&&B!==null&&(z=Ct(B)),k=l.getDerivedStateFromProps,(B=typeof k=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||R!==z)&&og(n,d,i,z),Bl=!1,R=n.memoizedState,d.state=R,wi(n,i,d,s),Si();var Y=n.memoizedState;x!==Z||R!==Y||Bl||e!==null&&e.dependencies!==null&&Vu(e.dependencies)?(typeof k=="function"&&(Rc(n,l,k,i),Y=n.memoizedState),(G=Bl||ug(n,l,G,i,R,Y,z)||e!==null&&e.dependencies!==null&&Vu(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,Y,z),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,Y,z)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=Y),d.props=i,d.state=Y,d.context=z,i=G):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=1024),i=!1)}return d=i,ma(e,n),i=(n.flags&128)!==0,d||i?(d=n.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&i?(n.child=kr(n,e.child,null,s),n.child=kr(n,null,l,s)):gt(e,n,l,s),n.memoizedState=d.state,e=n.child):e=bl(e,n,s),e}function kg(e,n,l,i){return pr(),n.flags|=256,gt(e,n,l,i),n.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ic(e){return{baseLanes:e,cachePool:dp()}}function Vc(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=sn),e}function Eg(e,n,l){var i=n.pendingProps,s=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(Nt.current&2)!==0),x&&(s=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(s?Vl(n):Yl(),(e=nt)?(e=Xy(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Dl!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=lp(e),l.return=n,n.child=l,xt=n,nt=null)):e=null,e===null)throw Rl(n);return Vf(e)?n.lanes=32:n.lanes=536870912,null}return d=i.children,i=i.fallback,s?(Yl(),s=n.mode,d=oo({mode:"hidden",children:d},s),i=hr(i,s,l,null),d.return=n,i.return=n,d.sibling=i,n.child=d,i=n.child,i.memoizedState=Ic(l),i.childLanes=Vc(e,x,l),n.memoizedState=qc,Ni(null,i)):(Vl(n),Yc(n,d))}var k=e.memoizedState;if(k!==null){var z=k.dehydrated;if(z!==null)return iw(e,n,d,x,i,z,k,l)}return s?(Yl(),s=i.fallback,d=n.mode,k=e.child,z=k.sibling,i=dl(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&1206910976,z!==null?s=dl(z,s):(s=hr(s,d,l,null),s.flags|=2),s.return=n,i.return=n,i.sibling=s,n.child=i,Ni(null,i),i=n.child,s=e.child.memoizedState,s===null?s=Ic(l):(d=s.cachePool,d!==null?(k=ft._currentValue,d=d.parent!==k?{parent:k,pool:k}:d):d=dp(),s={baseLanes:s.baseLanes|l,cachePool:d}),i.memoizedState=s,i.childLanes=Vc(e,x,l),n.memoizedState=qc,Ni(e.child,i)):(Vl(n),l=e.child,e=l.sibling,l=dl(l,{mode:"visible",children:i.children}),l.return=n,l.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=l,n.memoizedState=null,l)}function Yc(e,n){return n=oo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function oo(e,n){return e=Gt(22,e,null,n),e.lanes=0,e}function so(e,n,l){return kr(n,e.child,null,l),e=Yc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function iw(e,n,l,i,s,d,x,k){if(l)return n.flags&256?(Vl(n),n.flags&=-257,so(e,n,k)):n.memoizedState!==null?(Yl(),n.child=e.child,n.flags|=128,null):(Yl(),d=s.fallback,x=n.mode,s=oo({mode:"visible",children:s.children},x),d=hr(d,x,k,null),d.flags|=2,s.return=n,d.return=n,s.sibling=d,n.child=s,kr(n,e.child,null,k),s=n.child,s.memoizedState=Ic(k),s.childLanes=Vc(e,i,k),n.memoizedState=qc,Ni(null,s));if(Vl(n),Vf(d)){if(i=d.nextSibling&&d.nextSibling.dataset,i)var z=i.dgst;return i=z,i!==""&&(s=Error(u(419)),s.stack="",s.digest=i,pi({value:s,source:null,stack:null})),so(e,n,k)}if(mt||yr(e,n,k,!1),i=(k&e.childLanes)!==0,mt||i){if(Il.current!==null)return so(e,n,k);if(i=We,i!==null&&(s=ih(i,k),s!==0&&s!==x.retryLane))throw x.retryLane=s,mr(e,s),Zt(i,e,s),Bc;return If(d)||_o(),so(e,n,k)}return If(d)?(n.flags|=192,n.child=e.child,null):(e=x.treeContext,nt=wn(d.nextSibling),xt=n,De=!0,Ml=null,vn=!1,e!==null&&ip(n,e),n=Yc(n,s.children),n.flags|=134221824,n)}function Cg(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),Iu(e.return,n,l)}function Tg(e){for(var n=null;e!==null;){var l=e.alternate;l!==null&&Pu(l)===null&&(n=e),e=e.sibling}return n}function co(e,n,l,i,s,d){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:d}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=l,x.tailMode=s,x.treeForkCount=d)}function Gc(e){var n=e.child;for(e.child=null;n!==null;){var l=n.sibling;n.sibling=e.child,e.child=n,n=l}}function Fc(e,n,l){var i=n.pendingProps,s=i.revealOrder,d=i.tail;i=i.children;var x=Nt.current;if(n.flags&128)return ki(n,x),null;var k=(x&2)!==0;if(k?(x=x&1|2,n.flags|=128):x&=1,ki(n,x),s==="backwards"&&e!==null?(Gc(e),gt(e,n,i,l),Gc(e)):gt(e,n,i,l),i=De?hi:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cg(e,l,n);else if(e.tag===19)Cg(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"backwards":l=Tg(n.child),l===null?(s=n.child,n.child=null):(s=l.sibling,l.sibling=null,Gc(n)),co(n,!0,s,null,d,i);break;case"unstable_legacy-backwards":for(l=null,s=n.child,n.child=null;s!==null;){if(e=s.alternate,e!==null&&Pu(e)===null){n.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}co(n,!0,l,null,d,i);break;case"together":co(n,!1,null,null,void 0,i);break;case"independent":n.memoizedState=null;break;default:l=Tg(n.child),l===null?(s=n.child,n.child=null):(s=l.sibling,l.sibling=null),co(n,!1,s,l,d,i)}return n.child}function Ng(e,n,l){var i=n.pendingProps;return Ll(n,n.type,i.value),gt(e,n,i.children,l),n.child}function bl(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Ql|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(yr(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,l=dl(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=dl(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Xc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Vu(e)))}function uw(e,n,l){switch(n.tag){case 3:Gr(n,n.stateNode.containerInfo),Ll(n,ft,e.memoizedState.cache),pr();break;case 27:case 5:Wa(n);break;case 4:Gr(n,n.stateNode.containerInfo);break;case 10:Ll(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,yc(n),null;break;case 13:var i=n.memoizedState;if(i!==null){if(i.dehydrated!==null)return Vl(n),n.flags|=128,null;i=yr(e,n,l,!1);var s=n.child.childLanes;return i||(l&s)!==0?Eg(e,n,l):(Vl(n),e=bl(e,n,l),e!==null?e.sibling:null)}Vl(n);break;case 19:if(n.flags&128)return Fc(e,n,l);if(s=(e.flags&128)!==0,i=(l&n.childLanes)!==0,i||(yr(e,n,l,!1),i=(l&n.childLanes)!==0),s){if(i)return Fc(e,n,l);n.flags|=128}if(s=n.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ki(n,Nt.current),i)break;return null;case 22:return n.lanes=0,bg(e,n,l,n.pendingProps);case 24:Ll(n,ft,e.memoizedState.cache)}return bl(e,n,l)}function _g(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)mt=!0;else{if(!Xc(e,l)&&(n.flags&128)===0)return mt=!1,uw(e,n,l);mt=(e.flags&131072)!==0}else mt=!1,De&&(n.flags&1048576)!==0&&ap(n,hi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Sr(n.elementType),n.type=e,typeof e=="function")Ws(e)?(i=Cr(e,i),n.tag=1,n=wg(null,n,e,i,l)):(n.tag=0,n=Hc(null,n,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===X){n.tag=11,n=pg(null,n,e,i,l);break e}else if(s===Ae){n.tag=14,n=gg(null,n,e,i,l);break e}else if(s===te){n.tag=10,n.type=e,n=Ng(null,n,l);break e}}throw n=fe(e)||e,Error(u(306,n,""))}}return n;case 0:return Hc(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,s=Cr(i,n.pendingProps),wg(e,n,i,s,l);case 3:e:{if(Gr(n,n.stateNode.containerInfo),e===null)throw Error(u(387));i=n.pendingProps;var d=n.memoizedState;s=d.element,dc(e,n),wi(n,i,null,l);var x=n.memoizedState;if(i=x.cache,Ll(n,ft,i),i!==d.cache&&ic(n,[ft],l,!0),Si(),i=x.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=kg(e,n,i,l);break e}else if(i!==s){s=yn(Error(u(424)),n),pi(s),n=kg(e,n,i,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=wn(e.firstChild),xt=n,De=!0,Ml=null,vn=!0,l=bp(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(pr(),i===s){n=bl(e,n,l);break e}gt(e,n,i,l)}n=n.child}return n;case 26:return ma(e,n),e===null?(l=Wy(n.type,null,n.pendingProps,null))?n.memoizedState=l:De||(n.stateNode=Oy(n.type,n.pendingProps,Hn.current,n)):n.memoizedState=Wy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Wa(n),e===null&&De&&(i=n.stateNode=Ky(n.type,n.pendingProps,Hn.current),xt=n,vn=!0,s=nt,$l(n.type)?(Yf=s,nt=wn(i.firstChild)):nt=s),gt(e,n,n.pendingProps.children,l),ma(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((s=i=nt)&&(i=tk(i,n.type,n.pendingProps,vn),i!==null?(n.stateNode=i,xt=n,nt=wn(i.firstChild),vn=!1,s=!0):s=!1),s||Rl(n)),Wa(n),s=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,i=d.children,Mf(s,d)?i=null:x!==null&&Mf(s,x)&&(n.flags|=32),n.memoizedState!==null&&(s=vc(e,n,P2,null,null,l),ja._currentValue=s),ma(e,n),gt(e,n,i,l),n.child;case 6:return e===null&&De&&((e=l=nt)&&(l=nk(l,n.pendingProps,vn),l!==null?(n.stateNode=l,xt=n,nt=null,e=!0):e=!1),e||Rl(n)),null;case 13:return Eg(e,n,l);case 4:return Gr(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=kr(n,null,i,l):gt(e,n,i,l),n.child;case 11:return pg(e,n,n.type,n.pendingProps,l);case 7:return i=n.pendingProps,ma(e,n),gt(e,n,i,l),n.child;case 8:return gt(e,n,n.pendingProps.children,l),n.child;case 12:return gt(e,n,n.pendingProps.children,l),n.child;case 10:return Ng(e,n,l);case 9:return s=n.type._context,i=n.pendingProps.children,br(n),s=Ct(s),i=i(s),n.flags|=1,gt(e,n,i,l),n.child;case 14:return gg(e,n,n.type,n.pendingProps,l);case 15:return yg(e,n,n.type,n.pendingProps,l);case 19:return Fc(e,n,l);case 31:return aw(e,n,l);case 22:return bg(e,n,l,n.pendingProps);case 24:return br(n),i=Ct(ft),e===null?(s=sc(),s===null&&(s=We,d=uc(),s.pooledCache=d,d.refCount++,d!==null&&(s.pooledCacheLanes|=l),s=d),n.memoizedState={parent:i,cache:s},fc(n),Ll(n,ft,s)):((e.lanes&l)!==0&&(dc(e,n),wi(n,null,null,l),Si()),s=e.memoizedState,d=n.memoizedState,s.parent!==i?(s={parent:i,cache:i},n.memoizedState=s,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=s),Ll(n,ft,i)):(i=d.cache,Ll(n,ft,i),i!==s.cache&&ic(n,[ft],l,!0))),gt(e,n,n.pendingProps.children,l),n.child;case 30:return n.stateNode===null&&(n.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=n.pendingProps,i.name!=null&&i.name!=="auto"?n.flags|=e===null?18882560:18874368:De&&Hu(n),e!==null&&e.memoizedProps.name!==i.name?n.flags|=4194816:ma(e,n),gt(e,n,i.children,l),n.child;case 29:throw n.pendingProps}throw Error(u(156,n.tag))}function xl(e){e.flags|=4}function Qc(e,n,l,i,s){var d;if((d=(e.mode&32)!==0)&&(d=l===null?l0(n,i):l0(n,i)&&(i.src!==l.src||i.srcSet!==l.srcSet)),d){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(sy())e.flags|=8192;else throw wr=Xu,cc}else e.flags&=-16777217}function Ag(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!r0(n))if(sy())e.flags|=8192;else throw wr=Xu,cc}function fo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?lh():536870912,e.lanes|=n,ba|=n)}function _i(e,n){if(!De)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null}}function lt(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(n)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&1206910976,i|=s.flags&1206910976,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,n}function ow(e,n,l){var i=n.pendingProps;switch(nc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(n),null;case 1:return lt(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),pl(ft),_l(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ia(n)?xl(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,rc())),lt(n),null;case 26:var s=n.type,d=n.memoizedState;return e===null?(xl(n),d!==null?(lt(n),Ag(n,d)):(lt(n),Qc(n,s,null,i,l))):d?d!==e.memoizedState?(xl(n),lt(n),Ag(n,d)):(lt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&xl(n),lt(n),Qc(n,s,e,i,l)),null;case 27:if(K(n),l=Hn.current,s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(!i){if(n.stateNode===null)throw Error(u(166));return lt(n),n.subtreeFlags&=-33554433,null}e=Wt.current,ia(n)?up(n):(e=Ky(s,i,l),n.stateNode=e,xl(n))}return lt(n),n.subtreeFlags&=-33554433,null;case 5:if(K(n),s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(!i){if(n.stateNode===null)throw Error(u(166));return lt(n),n.subtreeFlags&=-33554433,null}if(d=Wt.current,ia(n))up(n);else{var x=Hi(Hn.current);switch(d){case 1:d=x.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:d=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":d=x.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":d=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":d=x.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?x.createElement(s,{is:i.is}):x.createElement(s)}}d[Et]=n,d[Yt]=i;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)d.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=d;e:switch(At(d,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&xl(n)}}return lt(n),n.subtreeFlags&=-33554433,Qc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(u(166));if(e=Hn.current,ia(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,s=xt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[Et]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||_y(e.nodeValue,l)),e||Rl(n,!0)}else e=Hi(e).createTextNode(i),e[Et]=n,n.stateNode=e}return lt(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=ia(n),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Et]=n}else pr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),e=!1}else l=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(an(n),n):(an(n),null);if((n.flags&128)!==0)throw Error(u(558))}return lt(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ia(n),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=n.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Et]=n}else pr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),s=!1}else s=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return n.flags&256?(an(n),n):(an(n),null)}return an(n),(n.flags&128)!==0?(n.lanes=l,n):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=n.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==s&&(i.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),fo(n,n.updateQueue),lt(n),null);case 4:return _l(),e===null&&Af(n.stateNode.containerInfo),n.flags|=67108864,lt(n),null;case 10:return pl(n.type),lt(n),null;case 19:if(bc(n),i=n.memoizedState,i===null)return lt(n),null;if(s=(n.flags&128)!==0,d=i.rendering,d===null)if(s)_i(i,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=Pu(e),d!==null){for(n.flags|=128,_i(i,!1),e=d.updateQueue,n.updateQueue=e,fo(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)np(l,e),l=l.sibling;return ki(n,Nt.current&1|2),De&&ml(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&en()>Eo&&(n.flags|=128,s=!0,_i(i,!1),n.lanes=4194304)}else{if(!s)if(e=Pu(d),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,fo(n,e),_i(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!d.alternate&&!De)return lt(n),null}else 2*en()-i.renderingStartTime>Eo&&l!==536870912&&(n.flags|=128,s=!0,_i(i,!1),n.lanes=4194304);i.isBackwards?(d.sibling=n.child,n.child=d):(e=i.last,e!==null?e.sibling=d:n.child=d,i.last=d)}if(i.tail!==null){e=i.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=en(),e.sibling=null,d=Nt.current,d=s?d&1|2:d&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!l||De?ki(n,d):(l=d,Pe(Tt,n),Pe(Nt,l),Ot===null&&(Ot=n)),De&&ml(n,i.treeForkCount),e}return lt(n),null;case 22:case 23:return an(n),gc(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(l&536870912)!==0&&(n.flags&128)===0&&(lt(n),n.subtreeFlags&6&&(n.flags|=8192)):lt(n),l=n.updateQueue,l!==null&&fo(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048),e!==null&&ct(vr),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),pl(ft),lt(n),null;case 25:return null;case 30:return n.flags|=33554432,lt(n),null}throw Error(u(156,n.tag))}function sw(e,n){switch(nc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return pl(ft),_l(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return K(n),null;case 31:if(n.memoizedState!==null){if(an(n),n.alternate===null)throw Error(u(340));pr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(an(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));pr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return bc(n),e=n.flags,e&65536?(n.flags=e&-65537|128,e=n.memoizedState,e!==null&&(e.rendering=null,e.tail=null),n.flags|=4,n):null;case 4:return _l(),null;case 10:return pl(n.type),null;case 22:case 23:return an(n),gc(),e!==null&&ct(vr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return pl(ft),null;case 25:return null;default:return null}}function zg(e,n){switch(nc(n),n.tag){case 3:pl(ft),_l();break;case 26:case 27:case 5:K(n);break;case 4:_l();break;case 31:n.memoizedState!==null&&an(n);break;case 13:an(n);break;case 19:bc(n);break;case 10:pl(n.type);break;case 22:case 23:an(n),gc(),e!==null&&ct(vr);break;case 24:pl(ft)}}function Ai(e,n){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var d=l.create,x=l.inst;i=d(),x.destroy=i}l=l.next}while(l!==s)}}catch(k){Ze(n,n.return,k)}}function Gl(e,n,l){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var d=s.next;i=d;do{if((i.tag&e)===e){var x=i.inst,k=x.destroy;if(k!==void 0){x.destroy=void 0,s=n;var z=l,B=k;try{B()}catch(G){Ze(s,z,G)}}}i=i.next}while(i!==d)}}catch(G){Ze(n,n.return,G)}}function jg(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{vp(n,l)}catch(i){Ze(e,e.return,i)}}}function Og(e,n,l){l.props=Cr(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Ze(e,n,i)}}function Yn(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var s=e.stateNode,d=cl(e.memoizedProps,s);(s.ref===null||s.ref.name!==d)&&(s.ref=Hy(d)),i=s.ref;break;case 7:if(e.stateNode===null){var x=new fn(e);p(e.child,!1,Ww,x,void 0,void 0),e.stateNode=x}i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(k){Ze(e,n,k)}}function _t(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){Ze(e,n,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Ze(e,n,s)}else l.current=null}function mo(e,n){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&n!==null)for(var l=0;l<n.length;l++)Fy(e.stateNode,n[l])}function Dg(e){for(var n=e.return;n!==null&&(Kc(n)&&Fy(e.stateNode,n.stateNode),!Zc(n));)n=n.return}function zi(e){for(var n=e.return;n!==null&&(Kc(n)&&ek(e.stateNode,n.stateNode),!Zc(n));)n=n.return}function Zc(e){return e.tag===5||e.tag===3||e.tag===27}function Kc(e){return e&&e.tag===7&&e.stateNode!==null}function Pc(e){var n=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){Ze(e,e.return,s)}}function $c(e,n,l){try{var i=e.stateNode;Rw(i,e.type,l,n),i[Yt]=n}catch(s){Ze(e,e.return,s)}}function Mg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$l(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$l(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,n,l,i){var s=e.tag;if(s===5||s===6)s=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(s,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(s),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=qn)),mo(e,i),Ve=!0;else if(s!==4&&(s===27&&(mo(e,i),i=null,$l(e.type)&&(l=e.stateNode,n=null)),e=e.child,e!==null))for(Wc(e,n,l,i),e=e.sibling;e!==null;)Wc(e,n,l,i),e=e.sibling}function ho(e,n,l,i){var s=e.tag;if(s===5||s===6)s=e.stateNode,n?l.insertBefore(s,n):l.appendChild(s),mo(e,i),Ve=!0;else if(s!==4&&(s===27&&(mo(e,i),i=null,$l(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(ho(e,n,l,i),e=e.sibling;e!==null;)ho(e,n,l,i),e=e.sibling}function Rg(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=n.attributes;s.length;)n.removeAttributeNode(s[0]);At(n,i,l),n[Et]=e,n[Yt]=l}catch(d){Ze(e,e.return,d)}}var po=!1,un=null;function Lg(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(po=!0)}var Gn=null;function Ug(){var e=Gn;return Gn=null,e}var Ft=0;function ha(e,n,l,i,s){return Ft=0,Bg(e.child,n,l,i,s)}function Bg(e,n,l,i,s){for(var d=!1;e!==null;){if(e.tag===5){var x=e.stateNode;if(i!==null){var k=Uf(x);i.push(k),k.view&&(d=!0)}else d||Uf(x).view&&(d=!0);po=!0,Uy(x,Ft===0?n:n+"_"+Ft,l),Ft++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&s||Bg(e.child,n,l,i,s)&&(d=!0));e=e.sibling}return d}function Fn(e,n){for(;e!==null;)e.tag===5?By(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||Fn(e.child,n)),e=e.sibling}function go(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(go(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var n=e.memoizedProps;if(n.name==null||n.name==="auto")throw Error(u(544));var l=n.name;n=fl(n.default,n.share),n!=="none"&&(ha(e,l,n,null,!1)||Fn(e.child,!1))}e=e.sibling}}function ef(e,n){if(e.tag===30){var l=e.stateNode,i=e.memoizedProps,s=cl(i,l),d=fl(i.default,l.paired?i.share:i.enter);d!=="none"?ha(e,s,d,null,!1)?(go(e),l.paired||n||wa(e,i.onEnter)):Fn(e.child,!1):go(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ef(e,n),e=e.sibling;else go(e)}function tf(e){if(un!==null&&un.size!==0){var n=un;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,i=l.name;if(i!=null&&i!=="auto"){var s=n.get(i);if(s!==void 0){var d=fl(l.default,l.share);if(d!=="none"&&(ha(e,i,d,null,!1)?(d=e.stateNode,s.paired=d,d.paired=s,wa(e,l.onShare)):Fn(e.child,!1)),n.delete(i),n.size===0)break}}}tf(e)}e=e.sibling}}}function nf(e){if(e.tag===30){var n=e.memoizedProps,l=cl(n,e.stateNode),i=un!==null?un.get(l):void 0,s=fl(n.default,i!==void 0?n.share:n.exit);s!=="none"&&(ha(e,l,s,null,!1)?i!==void 0?(s=e.stateNode,i.paired=s,s.paired=i,un.delete(l),wa(e,n.onShare)):wa(e,n.onExit):Fn(e.child,!1)),un!==null&&tf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)nf(e),e=e.sibling;else un!==null&&tf(e)}function Hg(e){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=cl(n,e.stateNode);n=fl(n.default,n.update),e.flags&=-5,n!=="none"&&ha(e,l,n,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Hg(e);e=e.sibling}}function lf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.stateNode;n.paired!==null&&(n.paired=null,Fn(e.child,!1))}lf(e)}e=e.sibling}}function yo(e){if(e.tag===30)e.stateNode.paired=null,Fn(e.child,!1),lf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)yo(e),e=e.sibling;else lf(e)}function qg(e){for(e=e.child;e!==null;)e.tag===30?Fn(e.child,!1):(e.subtreeFlags&33554432)!==0&&qg(e),e=e.sibling}function rf(e,n,l,i,s,d,x){for(var k=!1;n!==null;){if(n.tag===5){var z=n.stateNode;if(d!==null&&Ft<d.length){var B=d[Ft],G=Uf(z);(B.view||G.view)&&(k=!0);var Z;if(Z=(e.flags&4)===0)if(G.clip)Z=!0;else{Z=B.rect;var R=G.rect;Z=Z.y!==R.y||Z.x!==R.x||Z.height!==R.height||Z.width!==R.width}Z&&(e.flags|=4),G.abs?G=!B.abs:(B=B.rect,G=G.rect,G=B.height!==G.height||B.width!==G.width),G&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Uy(z,Ft===0?l:l+"_"+Ft,s),k&&(e.flags&4)!==0||(Gn===null&&(Gn=[]),Gn.push(z,Ft===0?i:i+"_"+Ft,n.memoizedProps)),Ft++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&x?e.flags|=n.flags&32:rf(e,n.child,l,i,s,d,x)&&(k=!0));n=n.sibling}return k}function Ig(e,n){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,i=e.stateNode,s=cl(l,i),d=fl(l.default,l.update),x;x=e.memoizedState,e.memoizedState=null,i=e;var k=e.child;Ft=0,s=rf(i,k,s,s,d,x,!1),(e.flags&4)!==0&&s&&wa(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Ig(e);e=e.sibling}}var vt=!1,Fe=!1,Xn=!1,af=!1,Vg=typeof WeakSet=="function"?WeakSet:Set,St=null,Qn=!1,ji=!1,bo=!1,uf=!1;function cw(e,n,l){if(e=e.containerInfo,Of=Oa,e=Xh(e),Xs(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var d=s.anchorOffset,x=s.focusNode;s=s.focusOffset;try{i.nodeType,x.nodeType}catch{i=null;break e}var k=0,z=-1,B=-1,G=0,Z=0,R=e,Y=null;t:for(;;){for(var ce;R!==i||d!==0&&R.nodeType!==3||(z=k+d),R!==x||s!==0&&R.nodeType!==3||(B=k+s),R.nodeType===3&&(k+=R.nodeValue.length),(ce=R.firstChild)!==null;)Y=R,R=ce;for(;;){if(R===e)break t;if(Y===i&&++G===d&&(z=k),Y===x&&++Z===s&&(B=k),(ce=R.nextSibling)!==null)break;R=Y,Y=R.parentNode}R=ce}i=z===-1||B===-1?null:{start:z,end:B}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},Oa=!1,l=(l&335544064)===l,St=n,n=l?9270:1024;St!==null;){if(e=St,l&&(i=e.deletions,i!==null))for(d=0;d<i.length;d++)l&&nf(i[d]);if(e.alternate===null&&(e.flags&2)!==0)l&&Lg(e),xo(l);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&l&&nf(i),xo(l);continue}else if(i!==null&&i.memoizedState!==null){l&&Lg(e),xo(l);continue}}i=e.child,(e.subtreeFlags&n)!==0&&i!==null?(i.return=e,St=i):(l&&Hg(e),xo(l))}}un=null}function xo(e){for(;St!==null;){var n=St,l=e,i=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 15:break;case 1:if((s&1024)!==0&&i!==null){l=void 0,s=i.memoizedProps,i=i.memoizedState;var d=n.stateNode;try{var x=Cr(n.type,s);l=d.getSnapshotBeforeUpdate(x,i),d.__reactInternalSnapshotBeforeUpdate=l}catch(k){Ze(n,n.return,k)}}break;case 3:if((s&1024)!==0){if(i=n.stateNode.containerInfo,l=i.nodeType,l===9)qf(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":qf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&i!==null&&(l=cl(i.memoizedProps,i.stateNode),s=n.memoizedProps,s=fl(s.default,s.update),s!=="none"&&ha(i,l,s,i.memoizedState=[],!0));break;default:if((s&1024)!==0)throw Error(u(163))}if(i=n.sibling,i!==null){i.return=n.return,St=i;break}St=n.return}}function Yg(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Zn(e,l),i&4&&Ai(5,l);break;case 1:if(Zn(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(x){Ze(l,l.return,x)}else{var s=Cr(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(s,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ze(l,l.return,x)}}i&64&&jg(l),i&512&&Yn(l,l.return);break;case 3:if(Zn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{vp(e,n)}catch(x){Ze(l,l.return,x)}}break;case 27:n===null&&i&4&&Rg(l);case 26:case 5:Zn(e,l),n===null&&i&4&&Pc(l),i&512&&Yn(l,l.return);break;case 12:Zn(e,l);break;case 31:Zn(e,l),i&4&&Qg(e,l);break;case 13:Zn(e,l),i&4&&Zg(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ww.bind(null,l),lk(e,l))));break;case 22:if(i=l.memoizedState!==null||vt,!i){var d=n!==null&&n.memoizedState!==null||Fe;n=vt,s=Fe,vt=i,(Fe=d)&&!s?(i=2,(l.subtreeFlags&8772)!==0&&(i|=1),On(e,l,i)):Zn(e,l),vt=n,Fe=s}break;case 30:Zn(e,l),i&512&&Yn(l,l.return);break;case 7:i&512&&Yn(l,l.return);default:Zn(e,l)}}function of(e,n){for(e=e.child;e!==null;)Gg(e,n),e=e.sibling}function Gg(e,n){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(n){var i=l.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var s=e.stateNode,d=e.memoizedProps.style,x=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(z){Ze(e,e.return,z)}sf(e,n);break;case 6:try{e.stateNode.nodeValue=n?"":e.memoizedProps,Ve=!0}catch(z){Ze(e,e.return,z)}break;case 18:try{var k=e.stateNode;n?Ly(k,!0):Ly(e.stateNode,!1)}catch(z){Ze(e,e.return,z)}break;case 22:case 23:e.memoizedState===null&&of(e,n);break;default:of(e,n)}}function sf(e,n){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,i=n;switch(l.tag){case 4:Gg(l,i);break e;case 22:l.memoizedState===null&&sf(l,i);break e;default:sf(l,i)}}e=e.sibling}}function Fg(e){var n=e.alternate;n!==null&&(e.alternate=null,Fg(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ku(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,Xt=!1;function zn(e,n,l){for(l=l.child;l!==null;)Xg(e,n,l),l=l.sibling}function Xg(e,n,l){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(ei,l)}catch{}switch(l.tag){case 26:Fe||_t(l,n),zn(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Fe&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Fe||_t(l,n),zi(l);var i=rt,s=Xt;$l(l.type)&&(rt=l.stateNode,Xt=!1),zn(e,n,l),Py(l.stateNode,l.type,l.memoizedProps),rt=i,Xt=s;break;case 5:Fe||_t(l,n),zi(l);case 6:if(l.tag===6&&zi(l),i=rt,s=Xt,rt=null,zn(e,n,l),rt=i,Xt=s,rt!==null)if(Xt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(l.stateNode),Ve=!0}catch(d){Ze(l,n,d)}else try{rt.removeChild(l.stateNode),Ve=!0}catch(d){Ze(l,n,d)}break;case 18:rt!==null&&(Xt?(e=rt,Ry(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Da(e)):Ry(rt,l.stateNode));break;case 4:i=rt,s=Xt,rt=l.stateNode.containerInfo,Xt=!0,zn(e,n,l),rt=i,Xt=s;break;case 0:case 11:case 14:case 15:Gl(2,l,n),Fe||Gl(4,l,n),zn(e,n,l);break;case 1:Fe||(_t(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&Og(l,n,i)),zn(e,n,l);break;case 21:zn(e,n,l);break;case 22:Fe=(i=Fe)||l.memoizedState!==null,zn(e,n,l),Fe=i;break;case 30:_t(l,n),zn(e,n,l);break;case 7:Fe||_t(l,n),zn(e,n,l);break;default:zn(e,n,l)}}function Qg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Da(e)}catch(l){Ze(n,n.return,l)}}}function Zg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Da(e)}catch(l){Ze(n,n.return,l)}}function fw(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Vg),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Vg),n;default:throw Error(u(435,e.tag))}}function vo(e,n){var l=fw(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var s=kw.bind(null,e,i);i.then(s,s)}})}function Ht(e,n,l){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var d=i[s],x=e,k=n,z=k;e:for(;z!==null;){switch(z.tag){case 27:if($l(z.type)){rt=z.stateNode,Xt=!1;break e}break;case 5:rt=z.stateNode,Xt=!1;break e;case 3:case 4:rt=z.stateNode.containerInfo,Xt=!0;break e}z=z.return}if(rt===null)throw Error(u(160));Xg(x,k,d),rt=null,Xt=!1,x=d.alternate,x!==null&&(x.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Kg(n,e,l),n=n.sibling}var jn=null;function Kg(e,n,l){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(s&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var d=0;d<i.length;d++){var x=i[d];x.ref.impl=x.nextImpl}Ht(n,e,l),qt(e),s&4&&(Gl(3,e,e.return),Ai(3,e),Gl(5,e,e.return));break;case 1:Ht(n,e,l),qt(e),s&512&&(Fe||i===null||_t(i,i.return)),s&64&&vt&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:if(d=jn,Ht(n,e,l),qt(e),s&512&&(Fe||i===null||_t(i,i.return)),s&4)if(s=i!==null?i.memoizedState:null,l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null)if(vt)e.stateNode=Oy(e.type,e.memoizedProps,n.containerInfo,e);else{e:{n=e.type,l=e.memoizedProps,s=d.ownerDocument||d;t:switch(n){case"title":i=s.getElementsByTagName("title")[0],(!i||i[li]||i[Et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(n),s.head.insertBefore(i,s.querySelector("head > title"))),At(i,n,l),i[Et]=e,bt(i),n=i;break e;case"link":if(d=n0("link","href",s).get(n+(l.href||""))){for(x=0;x<d.length;x++)if(i=d[x],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(x,1);break t}}i=s.createElement(n),At(i,n,l),s.head.appendChild(i);break;case"meta":if(d=n0("meta","content",s).get(n+(l.content||""))){for(x=0;x<d.length;x++)if(i=d[x],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(x,1);break t}}i=s.createElement(n),At(i,n,l),s.head.appendChild(i);break;default:throw Error(u(468,n))}i[Et]=e,bt(i),n=i}e.stateNode=n}else vt||Qf(d,e.type,e.stateNode);else e.stateNode=t0(d,l,e.memoizedProps);else s!==l?(s===null?(n=i.stateNode,n===null||Fe||n.parentNode.removeChild(n)):s.count--,l===null?vt||Qf(d,e.type,e.stateNode):t0(d,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$c(e,e.memoizedProps,i.memoizedProps);break;case 27:Ht(n,e,l),qt(e),s&512&&(Fe||i===null||_t(i,i.return)),i!==null&&s&4&&$c(e,e.memoizedProps,i.memoizedProps);break;case 5:if(d=Xn,Xn=!1,Ht(n,e,l),Xn=d,qt(e),s&512&&(Fe||i===null||_t(i,i.return)),e.flags&32){n=e.stateNode;try{Pr(n,""),Ve=!0}catch(G){Ze(e,e.return,G)}}s&4&&e.stateNode!=null&&(n=e.memoizedProps,$c(e,n,i!==null?i.memoizedProps:n)),s&1024&&(af=!0);break;case 6:if(Ht(n,e,l),qt(e),s&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n,Ve=!0}catch(G){Ze(e,e.return,G)}}break;case 3:if(Ve=!1,Ro=null,d=jn,jn=qi(n.containerInfo),Ht(n,e,l),jn=d,qt(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Da(n.containerInfo)}catch(G){Ze(e,e.return,G)}af&&(af=!1,Pg(e)),Ve=!1;break;case 4:s=Xn,Xn=vt,i=gh(),d=jn,jn=qi(e.stateNode.containerInfo),Ht(n,e,l),qt(e),jn=d,Ve&&ji&&(bo=!0),Ve=i,Xn=s;break;case 12:Ht(n,e,l),qt(e);break;case 31:Ht(n,e,l),qt(e),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vo(e,n)));break;case 13:Ht(n,e,l),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ko=en()),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vo(e,n)));break;case 22:d=e.memoizedState!==null,x=i!==null&&i.memoizedState!==null;var k=vt,z=Fe,B=Xn;vt=k||d,Xn=B||d,Fe=z||x,Ht(n,e,l),Fe=z,Xn=B,vt=k,qt(e),s&8192&&(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,!d||i===null||x||vt||Fe||(n=x||Fe,l=vt,i=Fe,vt=d||vt,Fe=n,Fl(e,2),vt=l,Fe=i),!d&&Xn||of(e,d)),s&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,vo(e,l))));break;case 19:Ht(n,e,l),qt(e),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vo(e,n)));break;case 30:s&512&&(Fe||i===null||_t(i,i.return)),s=gh(),d=ji,x=(l&335544064)===l,k=e.memoizedProps,ji=x&&fl(k.default,k.update)!=="none",Ht(n,e,l),qt(e),x&&i!==null&&Ve&&(e.flags|=4),ji=d,Ve=s;break;case 21:break;case 7:s&512&&(Fe||i===null||_t(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Ht(n,e,l),qt(e)}}function qt(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(Mg(i)){l=i;break}i=i.return}i=null;for(var s=e.return;s!==null;){if(Kc(s)){var d=s.stateNode;i===null?i=[d]:i.push(d)}if(Zc(s))break;s=s.return}var x=i;if(l==null)throw Error(u(160));switch(l.tag){case 27:var k=l.stateNode,z=Jc(e);ho(e,z,k,x);break;case 5:var B=l.stateNode;l.flags&32&&(Pr(B,""),l.flags&=-33);var G=Jc(e);ho(e,G,B,x);break;case 3:case 4:var Z=l.stateNode.containerInfo,R=Jc(e);Wc(e,R,Z,x);break;default:throw Error(u(161))}}catch(Y){Ze(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Pg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Pg(n),n.tag===5&&n.flags&1024&&(n=n.stateNode,Oa=!0,n.reset(),Oa=!1),e=e.sibling}}function pa(e,n){if(n.subtreeFlags&9270)for(n=n.child;n!==null;)$g(n,e),n=n.sibling;else Ig(n)}function $g(e,n){var l=e.alternate;if(l===null)ef(e,!1);else switch(e.tag){case 3:if(uf=Qn=!1,Ug(),pa(n,e),!Qn&&!bo){if(e=Gn,e!==null)for(var i=0;i<e.length;i+=3){l=e[i];var s=e[i+1];By(l,e[i+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+s+")"})}e=n.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),uf=!0}Gn=null;break;case 5:pa(n,e);break;case 4:i=Qn,Qn=!1,pa(n,e),Qn&&(bo=!0),Qn=i;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?ef(e,!1):pa(n,e));break;case 30:i=Qn,s=Ug(),Qn=!1,pa(n,e),Qn&&(e.flags|=4);var d=e.memoizedProps,x=e.stateNode;n=cl(d,x),x=cl(l.memoizedProps,x);var k=fl(d.default,d.update);k==="none"?n=!1:(d=l.memoizedState,l.memoizedState=null,l=e.child,Ft=0,n=rf(e,l,n,x,k,d,!0),Ft!==(d===null?0:d.length)&&(e.flags|=32)),(e.flags&4)!==0&&n?(wa(e,e.memoizedProps.onUpdate),Gn=s):s!==null&&(s.push.apply(s,Gn),Gn=s),Qn=(e.flags&32)!==0?!0:i;break;default:pa(n,e)}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Yg(e,n.alternate,n),n=n.sibling}function Fl(e,n){for(e=e.child;e!==null;){var l=e,i=n;switch(l.tag){case 0:case 11:case 14:case 15:Gl(4,l,l.return),Fl(l,i);break;case 1:_t(l,l.return);var s=l.stateNode;typeof s.componentWillUnmount=="function"&&Og(l,l.return,s),Fl(l,i);break;case 27:(i&2)!==0&&Py(l.stateNode,l.type,l.memoizedProps);case 5:_t(l,l.return),l.tag!==5&&l.tag!==27||zi(l),Fl(l,i);break;case 6:zi(l);break;case 26:_t(l,l.return),s=l.stateNode,l.memoizedState!==null||s===null||Fe||s.parentNode.removeChild(s),Fl(l,i);break;case 22:l.memoizedState===null&&Fl(l,i);break;case 30:_t(l,l.return),Fl(l,i);break;case 7:_t(l,l.return);default:Fl(l,i)}e=e.sibling}}function On(e,n,l){for(l=(n.subtreeFlags&8772)!==0?l:l&-2,n=n.child;n!==null;){var i=n.alternate,s=e,d=n,x=d.flags,k=(l&1)!==0;switch(d.tag){case 0:case 11:case 15:On(s,d,l),Ai(4,d);break;case 1:if(On(s,d,l),i=d,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(G){Ze(i,i.return,G)}if(i=d,s=i.updateQueue,s!==null){var z=i.stateNode;try{var B=s.shared.hiddenCallbacks;if(B!==null)for(s.shared.hiddenCallbacks=null,s=0;s<B.length;s++)xp(B[s],z)}catch(G){Ze(i,i.return,G)}}k&&x&64&&jg(d),Yn(d,d.return);break;case 27:(l&2)!==0&&Rg(d);case 5:d.tag!==5&&d.tag!==27||Dg(d),On(s,d,l),k&&i===null&&x&4&&Pc(d),Yn(d,d.return);break;case 6:Dg(d);break;case 26:z=d.stateNode,d.memoizedState!==null||z===null||vt||Qf(qi(z.ownerDocument),d.type,z),On(s,d,l),k&&i===null&&x&4&&Pc(d),Yn(d,d.return);break;case 12:On(s,d,l);break;case 31:On(s,d,l),k&&x&4&&Qg(s,d);break;case 13:On(s,d,l),k&&x&4&&Zg(s,d);break;case 22:d.memoizedState===null&&On(s,d,l),Yn(d,d.return);break;case 30:On(s,d,l),Yn(d,d.return);break;case 7:Yn(d,d.return);default:On(s,d,l)}n=n.sibling}}function cf(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&gi(l))}function ff(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&gi(e))}function Sn(e,n,l,i){var s=(l&335544064)===l;if(n.subtreeFlags&(s?10262:10256))for(n=n.child;n!==null;)Jg(e,n,l,i),n=n.sibling;else s&&qg(n)}function Jg(e,n,l,i){var s=(l&335544064)===l;s&&n.alternate===null&&n.return!==null&&n.return.alternate!==null&&yo(n);var d=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n,l,i),d&2048&&Ai(9,n);break;case 1:Sn(e,n,l,i);break;case 3:Sn(e,n,l,i),s&&uf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),d&2048&&(d=null,n.alternate!==null&&(d=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==d&&(n.refCount++,d!=null&&gi(d)));break;case 12:if(d&2048){Sn(e,n,l,i),d=n.stateNode;try{var x=n.memoizedProps,k=x.id,z=x.onPostCommit;typeof z=="function"&&z(k,n.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(B){Ze(n,n.return,B)}}else Sn(e,n,l,i);break;case 31:Sn(e,n,l,i);break;case 13:Sn(e,n,l,i);break;case 23:break;case 22:x=n.stateNode,k=n.alternate,n.memoizedState!==null?(s&&k!==null&&k.memoizedState===null&&yo(k),x._visibility&2?Sn(e,n,l,i):Oi(e,n)):(s&&k!==null&&k.memoizedState!==null&&yo(n),x._visibility&2?Sn(e,n,l,i):(x._visibility|=2,ga(e,n,l,i,(n.subtreeFlags&10256)!==0||!1))),d&2048&&cf(k,n);break;case 24:Sn(e,n,l,i),d&2048&&ff(n.alternate,n);break;case 30:s&&(d=n.alternate,d!==null&&(Fn(d.child,!0),Fn(n.child,!0))),Sn(e,n,l,i);break;default:Sn(e,n,l,i)}}function ga(e,n,l,i,s){for(s=s&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,x=n,k=l,z=i,B=x.flags;switch(x.tag){case 0:case 11:case 15:ga(d,x,k,z,s),Ai(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?ga(d,x,k,z,s):Oi(d,x):(G._visibility|=2,ga(d,x,k,z,s)),s&&B&2048&&cf(x.alternate,x);break;case 24:ga(d,x,k,z,s),s&&B&2048&&ff(x.alternate,x);break;default:ga(d,x,k,z,s)}n=n.sibling}}function Oi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,i=n,s=i.flags;switch(i.tag){case 22:Oi(l,i),s&2048&&cf(i.alternate,i);break;case 24:Oi(l,i),s&2048&&ff(i.alternate,i);break;default:Oi(l,i)}n=n.sibling}}var Tr=8192;function Nr(e,n,l){if(e.subtreeFlags&Tr)for(e=e.child;e!==null;)Wg(e,n,l),e=e.sibling}function Wg(e,n,l){switch(e.tag){case 26:Nr(e,n,l),e.flags&Tr&&(e.memoizedState!==null?yk(l,jn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(n&335544128)===n&&i0(l,e)));break;case 5:Nr(e,n,l),e.flags&Tr&&(e=e.stateNode,(n&335544128)===n&&i0(l,e));break;case 3:case 4:var i=jn;jn=qi(e.stateNode.containerInfo),Nr(e,n,l),jn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Tr,Tr=16777216,Nr(e,n,l),Tr=i):Nr(e,n,l));break;case 30:if((e.flags&Tr)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var s=e.stateNode;s.paired=null,un===null&&(un=new Map),un.set(i,s)}Nr(e,n,l);break;default:Nr(e,n,l)}}function ey(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Di(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];St=i,ny(i,e)}ey(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ty(e),e=e.sibling}function ty(e){switch(e.tag){case 0:case 11:case 15:Di(e),e.flags&2048&&Gl(9,e,e.return);break;case 3:Di(e);break;case 12:Di(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,So(e)):Di(e);break;default:Di(e)}}function So(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];St=i,ny(i,e)}ey(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Gl(8,n,n.return),So(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,So(n));break;default:So(n)}e=e.sibling}}function ny(e,n){for(;St!==null;){var l=St;switch(l.tag){case 0:case 11:case 15:Gl(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:gi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,St=i;else e:for(l=e;St!==null;){i=St;var s=i.sibling,d=i.return;if(Fg(i),i===l){St=null;break e}if(s!==null){s.return=d,St=s;break e}St=d}}}var dw={getCacheForType:function(e){var n=Ct(ft),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return Ct(ft).controller.signal}},mw=typeof WeakMap=="function"?WeakMap:Map,Ge=0,We=null,Re=null,Be=0,Qe=0,on=null,Xl=!1,ya=!1,df=!1,vl=0,ot=0,Ql=0,_r=0,wo=0,sn=0,ba=0,Mi=null,Qt=null,mf=!1,ko=0,ly=0,Eo=1/0,Co=null,Zl=null,at=0,Dn=null,Ar=null,Kn=0,hf=0,pf=null,ry=null,xa=null,va=null,Sa=null,Ri=0,To=null;function cn(){return(Ge&2)!==0&&Be!==0?Be&-Be:me.T!==null?Cf():uh()}function ay(){if(sn===0)if((Be&536870912)===0||De){var e=xu;xu<<=1,(xu&3932160)===0&&(xu=262144),sn=e}else sn=536870912;return e=Tt.current,e!==null&&(e.flags|=32),sn}function wa(e,n){if(n!=null){var l=e.stateNode,i=l.ref;i===null&&(i=l.ref=Hy(cl(e.memoizedProps,l))),va===null&&(va=[]),va.push(n.bind(null,i))}}function Zt(e,n,l){(e===We&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(ka(e,0),Kl(e,Be,sn,!1)),ni(e,l),((Ge&2)===0||e!==We)&&(e===We&&((Ge&2)===0&&(_r|=l),ot===4&&Kl(e,Be,sn,!1)),Pn(e))}function iy(e,n,l){if((Ge&6)!==0)throw Error(u(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||ti(e,n),s=i?gw(e,n):yf(e,n,!0),d=i;do{if(s===0){ya&&!i&&Kl(e,n,0,!1);break}else{if(l=e.current.alternate,d&&!hw(l)){s=yf(e,n,!1),d=!1;continue}if(s===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var k=e;s=Mi;var z=k.current.memoizedState.isDehydrated;if(z&&(ka(k,x).flags|=256),x=yf(k,x,!1),x!==2&&x!==6){if(df&&!z){k.errorRecoveryDisabledLanes|=d,_r|=d,s=4;break e}d=Qt,Qt=s,d!==null&&(Qt===null?Qt=d:Qt.push.apply(Qt,d))}s=x}if(d=!1,s!==2)continue}}if(s===1){ka(e,0),Kl(e,n,0,!0);break}e:{switch(i=e,d=s,d){case 0:case 1:throw Error(u(345));case 4:if((n&4194048)!==n&&(n&62914560)!==n)break;case 6:Kl(i,n,sn,!Xl);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((n&62914560)===n&&(s=ko+300-en(),10<s)){if(Kl(i,n,sn,!Xl),Su(i,0,!0)!==0)break e;Kn=n,i.timeoutHandle=Lf(uy.bind(null,i,l,Qt,Co,mf,n,sn,_r,ba,Xl,d,"Throttled",-0,0),s);break e}uy(i,l,Qt,Co,mf,n,sn,_r,ba,Xl,d,null,-0,0)}}break}while(!0);Pn(e)}function uy(e,n,l,i,s,d,x,k,z,B,G,Z,R,Y){e.timeoutHandle=-1;var ce=n.subtreeFlags,ye=(d&335544064)===d;if(Z=null,(ye||ce&8192||(ce&16785408)===16785408)&&(Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},un=null,Wg(n,d,Z),ye&&(ce=Z,ye=e.containerInfo,ye=(ye.nodeType===9?ye:ye.ownerDocument).__reactViewTransition,ye!=null&&(ce.count++,ce.waitingForViewTransition=!0,ce=Yi.bind(ce),ye.finished.then(ce,ce))),ce=(d&62914560)===d?ko-en():(d&4194048)===d?ly-en():0,ce=bk(Z,ce),ce!==null)){Kn=d,e.cancelPendingCommit=ce(py.bind(null,e,n,d,l,i,s,x,k,z,B,G,Z,null,R,Y)),Kl(e,d,x,!B);return}py(e,n,d,l,i,s,x,k,z,B,G,Z)}function hw(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var s=l[i],d=s.getSnapshot;s=s.value;try{if(!rn(d(),s))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kl(e,n,l,i){n=nh(e,n),n&=~wo,n&=~_r,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var s=n;0<s;){var d=31-nn(s),x=1<<d;i[d]=-1,s&=~x}l!==0&&rh(e,l,n)}function No(){return(Ge&6)===0?(Li(0),!1):!0}function gf(){if(Re!==null){if(Qe===0)var e=Re.return;else e=Re,hl=gr=null,kc(e),sa=null,xi=0,e=Re;for(;e!==null;)zg(e.alternate,e),e=e.return;Re=null}}function ka(e,n){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Bw(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Kn=0,gf(),We=e,Re=l=dl(e.current,null),Be=n,Qe=0,on=null,Xl=!1,ya=ti(e,n),df=!1,ba=sn=wo=_r=Ql=ot=0,Qt=Mi=null,mf=!1,vl=nh(e,n),Mu(),l}function oy(e,n){je=null,me.H=ao,n===oa||n===Fu?(n=pp(),Qe=3):n===cc?(n=pp(),Qe=4):Qe=n===Bc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,on=n,Re===null&&(ot=1,io(e,yn(n,e.current)))}function sy(){var e=Tt.current;return e===null?!0:(Be&4194048)===Be?Ot===null:(Be&62914560)===Be||(Be&536870912)!==0?e===Ot:!1}function cy(){var e=me.H;return me.H=ao,e===null?ao:e}function fy(){var e=me.A;return me.A=dw,e}function _o(){ot=4,Xl||(Be&4194048)!==Be&&Tt.current!==null||(ya=!0),(Ql&134217727)===0&&(_r&134217727)===0||We===null||Kl(We,Be,sn,!1)}function yf(e,n,l){var i=Ge;Ge|=2;var s=cy(),d=fy();(We!==e||Be!==n)&&(Co=null,ka(e,n)),n=!1;var x=ot;e:do try{if(Qe!==0&&Re!==null){var k=Re,z=on;switch(Qe){case 8:gf(),x=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(n=!0);var B=Qe;if(Qe=0,on=null,Ea(e,k,z,B),l&&ya){x=0;break e}break;default:B=Qe,Qe=0,on=null,Ea(e,k,z,B)}}pw(),x=ot;break}catch(G){oy(e,G)}while(!0);return n&&e.shellSuspendCounter++,hl=gr=null,Ge=i,me.H=s,me.A=d,Re===null&&(We=null,Be=0,Mu()),x}function pw(){for(;Re!==null;)dy(Re)}function gw(e,n){var l=Ge;Ge|=2;var i=cy(),s=fy();We!==e||Be!==n?(Co=null,Eo=en()+500,ka(e,n)):ya=ti(e,n);e:do try{if(Qe!==0&&Re!==null){n=Re;var d=on;t:switch(Qe){case 1:Qe=0,on=null,Ea(e,n,d,1);break;case 2:case 9:if(mp(d)){Qe=0,on=null,my(n);break}n=function(){Qe!==2&&Qe!==9||We!==e||(Qe=7),Pn(e)},d.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:mp(d)?(Qe=0,on=null,my(n)):(Qe=0,on=null,Ea(e,n,d,7));break;case 5:var x=null;switch(Re.tag){case 26:x=Re.memoizedState;case 5:case 27:var k=Re;if(x?r0(x):k.stateNode.complete){Qe=0,on=null;var z=k.sibling;if(z!==null)Re=z;else{var B=k.return;B!==null?(Re=B,Ao(B)):Re=null}break t}}Qe=0,on=null,Ea(e,n,d,5);break;case 6:Qe=0,on=null,Ea(e,n,d,6);break;case 8:gf(),ot=6;break e;default:throw Error(u(462))}}yw();break}catch(G){oy(e,G)}while(!0);return hl=gr=null,me.H=i,me.A=s,Ge=l,Re!==null?0:(We=null,Be=0,Mu(),ot)}function yw(){for(;Re!==null&&!Al();)dy(Re)}function dy(e){var n=_g(e.alternate,e,vl);e.memoizedProps=e.pendingProps,n===null?Ao(e):Re=n}function my(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=Sg(l,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Sg(l,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:kc(n);var i=n;i===xt&&(De?(qu(i),i.tag===5&&i.stateNode!=null&&(nt=i.stateNode)):(qu(i),De=!0));default:zg(l,n),n=Re=np(n,vl),n=_g(l,n,vl)}e.memoizedProps=e.pendingProps,n===null?Ao(e):Re=n}function Ea(e,n,l,i){hl=gr=null,kc(n),sa=null,xi=0;var s=n.return;try{if(rw(e,s,n,l,Be)){ot=1,io(e,yn(l,e.current)),Re=null;return}}catch(d){if(s!==null)throw Re=s,d;ot=1,io(e,yn(l,e.current)),Re=null;return}n.flags&32768?(De||i===1?e=!0:ya||(Be&536870912)!==0?e=!1:(Xl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Tt.current,i!==null&&i.tag===13&&(i.flags|=16384))),hy(n,e)):Ao(n)}function Ao(e){var n=e;do{if((n.flags&32768)!==0){hy(n,Xl);return}e=n.return;var l=ow(n.alternate,n,vl);if(l!==null){Re=l;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=e}while(n!==null);ot===0&&(ot=5)}function hy(e,n){do{var l=sw(e.alternate,e);if(l!==null){l.flags&=32767,Re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){Re=e;return}Re=e=l}while(e!==null);ot=6,Re=null}function py(e,n,l,i,s,d,x,k,z,B,G,Z){e.cancelPendingCommit=null;do zo();while(at!==0);if((Ge&6)!==0)throw Error(u(327));if(n!==null){if(n===e.current)throw Error(u(177));e===We&&(Re=We=null,Be=0),Ar=n,Dn=e,Kn=l,pf=s,ry=i,bw(e,n,l,x,k,z,Z)}}function bw(e,n,l,i,s,d,x){var k=n.lanes|n.childLanes;if(hf=k,k|=$s,GS(e,l,k,i,s,d),va=null,(l&335544064)===l?(Sa=X2(e),i=10262):(Sa=null,i=10256),(n.subtreeFlags&i)!==0||(n.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Ew(yu,function(){return Sf(),null})):(e.callbackNode=null,e.callbackPriority=0),po=!1,i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=me.T,me.T=null,s=Se.p,Se.p=2,d=Ge,Ge|=4;try{cw(e,n,l)}finally{Ge=d,Se.p=s,me.T=i}}at=1,po?xa=Gw(x,e.containerInfo,Sa,bf,xf,vw,vf,Sf,xw):(bf(),xf(),vf())}function xw(e){if(at!==0){var n=Dn.onRecoverableError;n(e,{componentStack:null})}}function vw(){at===3&&(at=0,$g(Ar,Dn),at=4)}function bf(){if(at===1){at=0;var e=Dn,n=Ar,l=Kn,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=me.T,me.T=null;var s=Se.p;Se.p=2;var d=Ge;Ge|=4;try{ji=bo=!1,Kg(n,e,l),l=Df;var x=Xh(e.containerInfo),k=l.focusedElem,z=l.selectionRange;if(x!==k&&k&&k.ownerDocument&&Fh(k.ownerDocument.documentElement,k)){if(z!==null&&Xs(k)){var B=z.start,G=z.end;if(G===void 0&&(G=B),"selectionStart"in k)k.selectionStart=B,k.selectionEnd=Math.min(G,k.value.length);else{var Z=k.ownerDocument||document,R=Z&&Z.defaultView||window;if(R.getSelection){var Y=R.getSelection(),ce=k.textContent.length,ye=Math.min(z.start,ce),Oe=z.end===void 0?ye:Math.min(z.end,ce);!Y.extend&&ye>Oe&&(x=Oe,Oe=ye,ye=x);var U=Gh(k,ye),O=Gh(k,Oe);if(U&&O&&(Y.rangeCount!==1||Y.anchorNode!==U.node||Y.anchorOffset!==U.offset||Y.focusNode!==O.node||Y.focusOffset!==O.offset)){var V=Z.createRange();V.setStart(U.node,U.offset),Y.removeAllRanges(),ye>Oe?(Y.addRange(V),Y.extend(O.node,O.offset)):(V.setEnd(O.node,O.offset),Y.addRange(V))}}}}for(Z=[],Y=k;Y=Y.parentNode;)Y.nodeType===1&&Z.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Z.length;k++){var Q=Z[k];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Oa=!!Of,Df=Of=null}finally{Ge=d,Se.p=s,me.T=i}}e.current=n,at=2}}function xf(){if(at===2){at=0;var e=Dn,n=Ar,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=me.T,me.T=null;var i=Se.p;Se.p=2;var s=Ge;Ge|=4;try{Yg(e,n.alternate,n)}finally{Ge=s,Se.p=i,me.T=l}}at=3}}function vf(){if(at===4||at===3){at=0;var e=xa;xa=null,_n();var n=Dn,l=Ar,i=Kn,s=ry,d=(i&335544064)===i?10262:10256;if((l.subtreeFlags&d)!==0||(l.flags&d)!==0?at=5:(at=0,Ar=Dn=null,gy(n,n.pendingLanes)),d=n.pendingLanes,d===0&&(Zl=null),_s(i),l=l.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(ei,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=me.T,d=Se.p,Se.p=2,me.T=null;try{for(var x=n.onRecoverableError,k=0;k<s.length;k++){var z=s[k];x(z.value,{componentStack:z.stack})}}finally{me.T=l,Se.p=d}}if(s=va,x=Sa,Sa=null,s!==null&&(va=null,x===null&&(x=[]),e!==null))for(z=0;z<s.length;z++)l=(0,s[z])(x),l!==void 0&&e.finished.finally(l);(Kn&3)!==0&&zo(),Pn(n),d=n.pendingLanes,(i&261930)!==0&&(d&42)!==0?n===To?Ri++:(Ri=0,To=n):(Ri=0,To=null),Li(0)}}function gy(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,gi(n)))}function zo(){return xa!==null&&(xa.skipTransition(),xa=null),bf(),xf(),vf(),Sf()}function Sf(){if(at!==5)return!1;var e=Dn,n=hf;hf=0;var l=_s(Kn),i=me.T,s=Se.p;try{Se.p=32>l?32:l,me.T=null,l=pf,pf=null;var d=Dn,x=Kn;if(at=0,Ar=Dn=null,Kn=0,(Ge&6)!==0)throw Error(u(331));var k=Ge;if(Ge|=4,ty(d.current),Jg(d,d.current,x,l),Ge=k,Li(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(ei,d)}catch{}return!0}finally{Se.p=s,me.T=i,gy(e,n)}}function yy(e,n,l){n=yn(l,n),n=Uc(e.stateNode,n,2),e=ql(e,n,2),e!==null&&(ni(e,2),Pn(e))}function Ze(e,n,l){if(e.tag===3)yy(e,e,l);else for(;n!==null;){if(n.tag===3){yy(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Zl===null||!Zl.has(i))){e=yn(l,e),l=mg(2),i=ql(n,l,2),i!==null&&(hg(l,i,n,e),ni(i,2),Pn(i));break}}n=n.return}}function wf(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new mw;var s=new Set;i.set(n,s)}else s=i.get(n),s===void 0&&(s=new Set,i.set(n,s));s.has(l)||(df=!0,s.add(l),e=Sw.bind(null,e,n,l),n.then(e,e))}function Sw(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,We===e&&(Be&l)===l&&((ot===4||ot===3&&(Be&62914560)===Be&&300>en()-ko)&&(Ge&2)===0?ka(e,0):wo|=l,ba===Be&&(ba=0)),Pn(e)}function by(e,n){n===0&&(n=lh()),e=mr(e,n),e!==null&&(ni(e,n),Pn(e))}function ww(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),by(e,l)}function kw(e,n){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(n),by(e,l)}function Ew(e,n){return il(e,n)}var Ca=null,Ta=null,kf=!1,jo=!1,Ef=!1,Pl=0;function Pn(e){e!==Ta&&e.next===null&&(Ta===null?Ca=Ta=e:Ta=Ta.next=e),jo=!0,kf||(kf=!0,Tw())}function Li(e,n){if(!Ef&&jo){Ef=!0;do for(var l=!1,i=Ca;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var d=0;else{var x=i.suspendedLanes,k=i.pingedLanes;d=(1<<31-nn(42|e)+1)-1,d&=s&~(x&~k),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,wy(i,d))}else d=Be,d=Su(i,i===We?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||ti(i,d)||(l=!0,wy(i,d));i=i.next}while(l);Ef=!1}}function Cw(){xy()}function xy(){jo=kf=!1;var e=0;Pl!==0&&Uw()&&(e=Pl);for(var n=en(),l=null,i=Ca;i!==null;){var s=i.next,d=vy(i,n);d===0?(i.next=null,l===null?Ca=s:l.next=s,s===null&&(Ta=l)):(l=i,(e!==0||(d&3)!==0)&&(jo=!0)),i=s}at!==0&&at!==5||Li(e),Pl!==0&&(Pl=0)}function vy(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-nn(d),k=1<<x,z=s[x];z===-1?((k&l)===0||(k&i)!==0)&&(s[x]=YS(k,n)):z<=n&&(e.expiredLanes|=k),d&=~k}if(n=We,l=Be,l=Su(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&kt(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ti(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&kt(i),_s(l)){case 2:case 8:l=eh;break;case 32:l=yu;break;case 268435456:l=th;break;default:l=yu}return i=Sy.bind(null,e),l=il(l,i),e.callbackPriority=n,e.callbackNode=l,n}return i!==null&&i!==null&&kt(i),e.callbackPriority=2,e.callbackNode=null,2}function Sy(e,n){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(zo()&&e.callbackNode!==l)return null;var i=Be;return i=Su(e,e===We?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(iy(e,i,n),vy(e,en()),e.callbackNode!=null&&e.callbackNode===l?Sy.bind(null,e):null)}function wy(e,n){if(zo())return null;iy(e,n,!0)}function Tw(){Hw(function(){(Ge&6)!==0?il(Wm,Cw):xy()})}function Cf(){if(Pl===0){var e=xr;e===0&&(e=bu,bu<<=1,(bu&261888)===0&&(bu=256)),Pl=e}return Pl}function ky(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tu(e)}function Nw(e,n,l,i,s){if(n==="submit"&&l&&l.stateNode===s){var d=ky((s[Yt]||null).action),x=i.submitter;x&&(n=(n=x[Yt]||null)?ky(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var k=new zu("action","action",null,i,s);e.push({event:k,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Pl!==0){var z=new FormData(s,x);Oc(l,{pending:!0,data:z,method:s.method,action:d},null,z)}}else typeof d=="function"&&(k.preventDefault(),z=new FormData(s,x),Oc(l,{pending:!0,data:z,method:s.method,action:d},d,z))},currentTarget:s}]})}}for(var Tf=0;Tf<Ps.length;Tf++){var Nf=Ps[Tf],_w=Nf.toLowerCase(),Aw=Nf[0].toUpperCase()+Nf.slice(1);An(_w,"on"+Aw)}An(Kh,"onAnimationEnd"),An(Ph,"onAnimationIteration"),An($h,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(B2,"onTransitionRun"),An(H2,"onTransitionStart"),An(q2,"onTransitionCancel"),An(Jh,"onTransitionEnd"),Zr("onMouseEnter",["mouseout","mouseover"]),Zr("onMouseLeave",["mouseout","mouseover"]),Zr("onPointerEnter",["pointerout","pointerover"]),Zr("onPointerLeave",["pointerout","pointerover"]),cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="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(" "),zw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ui));function Ey(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var d=void 0;if(n)for(var x=i.length-1;0<=x;x--){var k=i[x],z=k.instance,B=k.currentTarget;if(k=k.listener,z!==d&&s.isPropagationStopped())break e;d=k,s.currentTarget=B;try{d(s)}catch(G){Du(G)}s.currentTarget=null,d=z}else for(x=0;x<i.length;x++){if(k=i[x],z=k.instance,B=k.currentTarget,k=k.listener,z!==d&&s.isPropagationStopped())break e;d=k,s.currentTarget=B;try{d(s)}catch(G){Du(G)}s.currentTarget=null,d=z}}}}function Le(e,n){var l=n[sh];l===void 0&&(l=n[sh]=new Set);var i=e+"__bubble";l.has(i)||(Cy(n,e,2,!1),l.add(i))}function _f(e,n,l){var i=0;n&&(i|=4),Cy(l,e,i,n)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function Af(e){if(!e[Oo]){e[Oo]=!0,dh.forEach(function(l){l!=="selectionchange"&&(zw.has(l)||_f(l,!1,e),_f(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Oo]||(n[Oo]=!0,_f("selectionchange",!1,n))}}function Cy(e,n,l,i){switch(h0(n)){case 2:var s=wk;break;case 8:s=kk;break;default:s=Kf}l=s.bind(null,n,l,e),s=void 0,!Ls||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(n,l,{capture:!0,passive:s}):e.addEventListener(n,l,!0):s!==void 0?e.addEventListener(n,l,{passive:s}):e.addEventListener(n,l,!1)}function zf(e,n,l,i,s){var d=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var k=i.stateNode.containerInfo;if(k===s)break;if(x===4)for(x=i.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===s)return;x=x.return}for(;k!==null;){if(x=sr(k),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){i=d=x;continue e}k=k.parentNode}}i=i.return}Ch(function(){var B=d,G=Ms(l),Z=[];e:{var R=Wh.get(e);if(R!==void 0){var Y=zu,ce=e;switch(e){case"keypress":if(_u(l)===0)break e;case"keydown":case"keyup":Y=h2;break;case"focusin":ce="focus",Y=qs;break;case"focusout":ce="blur",Y=qs;break;case"beforeblur":case"afterblur":Y=qs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=n2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=x2;break;case Kh:case Ph:case $h:Y=a2;break;case Jh:Y=S2;break;case"scroll":case"scrollend":Y=e2;break;case"wheel":Y=k2;break;case"copy":case"cut":case"paste":Y=u2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=zh;break;case"submit":Y=y2;break;case"toggle":case"beforetoggle":Y=C2}var ye=(n&4)!==0,Oe=!ye&&(e==="scroll"||e==="scrollend"),U=ye?R!==null?R+"Capture":null:R;ye=[];for(var O=B,V;O!==null;){var Q=O;if(V=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||V===null||U===null||(Q=ai(O,U),Q!=null&&ye.push(Bi(O,Q,V))),Oe)break;O=O.return}0<ye.length&&(R=new Y(R,ce,null,l,G),Z.push({event:R,listeners:ye}))}}if((n&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",Y&&l!==Ds&&(ce=l.relatedTarget||l.fromElement)&&(sr(ce)||ce[Fr]))break e;(R||Y)&&(ce=G.window===G?G:(Y=G.ownerDocument)?Y.defaultView||Y.parentWindow:window,R?(Y=l.relatedTarget||l.toElement,R=B,Y=Y?sr(Y):null,Y!==null&&(Oe=f(Y),ye=Y.tag,Y!==Oe||ye!==5&&ye!==27&&ye!==6)&&(Y=null)):(R=null,Y=B),R!==Y&&(ye=_h,Q="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ye=zh,Q="onPointerLeave",U="onPointerEnter",O="pointer"),Oe=R==null?ce:ri(R),V=Y==null?ce:ri(Y),ce=new ye(Q,O+"leave",R,l,G),ce.target=Oe,ce.relatedTarget=V,Q=null,sr(G)===B&&(ye=new ye(U,O+"enter",Y,l,G),ye.target=V,ye.relatedTarget=Oe,Q=ye),Oe=Q,ye=R&&Y?D(R,Y,jw):null,R!==null&&Ty(Z,ce,R,ye,!1),Y!==null&&Oe!==null&&Ty(Z,Oe,Y,ye,!0)))}e:{if(R=B?ri(B):window,Y=R.nodeName&&R.nodeName.toLowerCase(),Y==="select"||Y==="input"&&R.type==="file")var he=Bh;else if(Lh(R))if(Hh)he=R2;else{he=D2;var He=O2}else Y=R.nodeName,!Y||Y.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?B&&Os(B.elementType)&&(he=Bh):he=M2;if(he&&(he=he(e,B))){Uh(Z,he,l,G);break e}He&&He(e,R,B)}switch(He=B?ri(B):window,e){case"focusin":(Lh(He)||He.contentEditable==="true")&&(ea=He,Qs=B,mi=null);break;case"focusout":mi=Qs=ea=null;break;case"mousedown":Zs=!0;break;case"contextmenu":case"mouseup":case"dragend":Zs=!1,Qh(Z,l,G);break;case"selectionchange":if(U2)break;case"keydown":case"keyup":Qh(Z,l,G)}var xe;if(Vs)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Wr?Mh(e,l)&&(ke="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ke="onCompositionStart");ke&&(jh&&l.locale!=="ko"&&(Wr||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Wr&&(xe=Th()):(jl=G,Us="value"in jl?jl.value:jl.textContent,Wr=!0)),He=Do(B,ke),0<He.length&&(ke=new Ah(ke,e,null,l,G),Z.push({event:ke,listeners:He}),xe?ke.data=xe:(xe=Rh(l),xe!==null&&(ke.data=xe)))),(xe=N2?_2(e,l):A2(e,l))&&(ke=Do(B,"onBeforeInput"),0<ke.length&&(He=new Ah("onBeforeInput","beforeinput",null,l,G),Z.push({event:He,listeners:ke}),He.data=xe)),Nw(Z,e,B,l,G)}Ey(Z,n)})}function Bi(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Do(e,n){for(var l=n+"Capture",i=[];e!==null;){var s=e,d=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||d===null||(s=ai(e,l),s!=null&&i.unshift(Bi(e,s,d)),s=ai(e,n),s!=null&&i.push(Bi(e,s,d))),e.tag===3)return i;e=e.return}return[]}function jw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ty(e,n,l,i,s){for(var d=n._reactName,x=[];l!==null&&l!==i;){var k=l,z=k.alternate,B=k.stateNode;if(k=k.tag,z!==null&&z===i)break;k!==5&&k!==26&&k!==27||B===null||(z=B,s?(B=ai(l,d),B!=null&&x.unshift(Bi(l,B,z))):s||(B=ai(l,d),B!=null&&x.push(Bi(l,B,z)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var Ow=/\r\n?/g,Dw=/\u0000|\uFFFD/g;function Ny(e){return(typeof e=="string"?e:""+e).replace(Ow,`
49
+ `).replace(Dw,"")}function _y(e,n){return n=Ny(n),Ny(e)===n}function Ke(e,n,l,i,s,d){switch(l){case"children":if(typeof i=="string")n==="body"||n==="textarea"&&i===""||Pr(e,i);else if(typeof i=="number"||typeof i=="bigint")n!=="body"&&Pr(e,""+i);else return;break;case"className":Cu(e,"class",i);break;case"tabIndex":Cu(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(e,l,i);break;case"style":kh(e,i,d);return;case"data":if(n!=="object"){Cu(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Tu(i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(n!=="input"&&Ke(e,n,"name",s.name,s,null),Ke(e,n,"formEncType",s.formEncType,s,null),Ke(e,n,"formMethod",s.formMethod,s,null),Ke(e,n,"formTarget",s.formTarget,s,null)):(Ke(e,n,"encType",s.encType,s,null),Ke(e,n,"method",s.method,s,null),Ke(e,n,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Tu(i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=qn);return;case"onScroll":i!=null&&Le("scroll",e);return;case"onScrollEnd":i!=null&&Le("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));(d!=null?d.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Tu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Le("beforetoggle",e),Le("toggle",e),Eu(e,"popover",i);break;case"xlinkActuate":ol(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ol(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ol(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ol(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ol(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ol(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ol(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ol(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ol(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Eu(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=JS.get(l)||l,Eu(e,l,i);else return}Ve=!0}function jf(e,n,l,i,s,d){switch(l){case"style":kh(e,i,d);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));(d!=null?d.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof i=="string")Pr(e,i);else if(typeof i=="number"||typeof i=="bigint")Pr(e,""+i);else return;break;case"onScroll":i!=null&&Le("scroll",e);return;case"onScrollEnd":i!=null&&Le("scrollend",e);return;case"onClick":i!=null&&(e.onclick=qn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!mh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),d=l.slice(2,s?l.length-7:void 0),n=e[Yt]||null,n=n!=null?n[l]:null,typeof n=="function"&&e.removeEventListener(d,n,s),typeof i=="function")){typeof n!="function"&&n!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(d,i,s);break e}Ve=!0,l in e?e[l]=i:i===!0?e.setAttribute(l,""):Eu(e,l,i)}return}Ve=!0}function At(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var i=!1,s=!1,d;for(d in l)if(l.hasOwnProperty(d)){var x=l[d];if(x!=null)switch(d){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ke(e,n,d,x,l,null)}}s&&Ke(e,n,"srcSet",l.srcSet,l,null),i&&Ke(e,n,"src",l.src,l,null);return;case"input":Le("invalid",e);var k=d=x=s=null,z=null,B=null;for(i in l)if(l.hasOwnProperty(i)){var G=l[i];if(G!=null)switch(i){case"name":s=G;break;case"type":x=G;break;case"checked":z=G;break;case"defaultChecked":B=G;break;case"value":d=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,n));break;default:Ke(e,n,i,G,l,null)}}xh(e,d,k,z,B,x,s,!1);return;case"select":Le("invalid",e),i=x=d=null;for(s in l)if(l.hasOwnProperty(s)&&(k=l[s],k!=null))switch(s){case"value":d=k;break;case"defaultValue":x=k;break;case"multiple":i=k;default:Ke(e,n,s,k,l,null)}n=d,l=x,e.multiple=!!i,n!=null?Kr(e,!!i,n,!1):l!=null&&Kr(e,!!i,l,!0);return;case"textarea":Le("invalid",e),d=s=i=null;for(x in l)if(l.hasOwnProperty(x)&&(k=l[x],k!=null))switch(x){case"value":i=k;break;case"defaultValue":s=k;break;case"children":d=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(u(91));break;default:Ke(e,n,x,k,l,null)}Sh(e,i,s,d);return;case"option":for(z in l)if(l.hasOwnProperty(z)&&(i=l[z],i!=null))switch(z){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ke(e,n,z,i,l,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(i=0;i<Ui.length;i++)Le(Ui[i],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in l)if(l.hasOwnProperty(B)&&(i=l[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ke(e,n,B,i,l,null)}return;default:if(Os(n)){for(G in l)l.hasOwnProperty(G)&&(i=l[G],i!==void 0&&jf(e,n,G,i,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(i=l[k],i!=null&&Ke(e,n,k,i,l,null))}var Mw={};function Rw(e,n,l,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,d=null,x=null,k=null,z=null,B=null,G=null;for(Y in l){var Z=l[Y];if(l.hasOwnProperty(Y)&&Z!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":z=Z;default:i.hasOwnProperty(Y)||Ke(e,n,Y,null,i,Z)}}for(var R in i){var Y=i[R];if(Z=l[R],i.hasOwnProperty(R)&&(Y!=null||Z!=null))switch(R){case"type":Y!==Z&&(Ve=!0),d=Y;break;case"name":Y!==Z&&(Ve=!0),s=Y;break;case"checked":Y!==Z&&(Ve=!0),B=Y;break;case"defaultChecked":Y!==Z&&(Ve=!0),G=Y;break;case"value":Y!==Z&&(Ve=!0),x=Y;break;case"defaultValue":Y!==Z&&(Ve=!0),k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,n));break;default:Y!==Z&&Ke(e,n,R,Y,i,Z)}}zs(e,x,k,z,B,G,d,s);return;case"select":Y=x=k=R=null;for(d in l)if(z=l[d],l.hasOwnProperty(d)&&z!=null)switch(d){case"value":break;case"multiple":Y=z;default:i.hasOwnProperty(d)||Ke(e,n,d,null,i,z)}for(s in i)if(d=i[s],z=l[s],i.hasOwnProperty(s)&&(d!=null||z!=null))switch(s){case"value":d!==z&&(Ve=!0),R=d;break;case"defaultValue":d!==z&&(Ve=!0),k=d;break;case"multiple":d!==z&&(Ve=!0),x=d;default:d!==z&&Ke(e,n,s,d,i,z)}n=k,l=x,i=Y,R!=null?Kr(e,!!l,R,!1):!!i!=!!l&&(n!=null?Kr(e,!!l,n,!0):Kr(e,!!l,l?[]:"",!1));return;case"textarea":Y=R=null;for(k in l)if(s=l[k],l.hasOwnProperty(k)&&s!=null&&!i.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ke(e,n,k,null,i,s)}for(x in i)if(s=i[x],d=l[x],i.hasOwnProperty(x)&&(s!=null||d!=null))switch(x){case"value":s!==d&&(Ve=!0),R=s;break;case"defaultValue":s!==d&&(Ve=!0),Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==d&&Ke(e,n,x,s,i,d)}vh(e,R,Y);return;case"option":for(var ce in l)if(R=l[ce],l.hasOwnProperty(ce)&&R!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Ke(e,n,ce,null,i,R)}for(z in i)if(R=i[z],Y=l[z],i.hasOwnProperty(z)&&R!==Y&&(R!=null||Y!=null))switch(z){case"selected":R!==Y&&(Ve=!0),e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ke(e,n,z,R,i,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in l)R=l[ye],l.hasOwnProperty(ye)&&R!=null&&!i.hasOwnProperty(ye)&&Ke(e,n,ye,null,i,R);for(B in i)if(R=i[B],Y=l[B],i.hasOwnProperty(B)&&R!==Y&&(R!=null||Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,n));break;default:Ke(e,n,B,R,i,Y)}return;default:if(Os(n)){for(var Oe in l)R=l[Oe],l.hasOwnProperty(Oe)&&R!==void 0&&!i.hasOwnProperty(Oe)&&jf(e,n,Oe,void 0,i,R);for(G in i)R=i[G],Y=l[G],!i.hasOwnProperty(G)||R===Y||R===void 0&&Y===void 0||jf(e,n,G,R,i,Y);return}}for(var U in l)R=l[U],l.hasOwnProperty(U)&&R!=null&&!i.hasOwnProperty(U)&&Ke(e,n,U,null,i,R);for(Z in i)R=i[Z],Y=l[Z],!i.hasOwnProperty(Z)||R===Y||R==null&&Y==null||Ke(e,n,Z,R,i,Y)}function Ay(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],d=s.transferSize,x=s.initiatorType,k=s.duration;if(d&&k&&Ay(x)){for(x=0,k=s.responseEnd,i+=1;i<l.length;i++){var z=l[i],B=z.startTime;if(B>k)break;var G=z.transferSize,Z=z.initiatorType;G&&Ay(Z)&&(z=z.responseEnd,x+=G*(z<k?1:(k-B)/(z-B)))}if(--i,n+=8*(d+x)/(s.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Of=null,Df=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function zy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Oy(e,n,l,i){return l=Hi(l).createElement(e),l[Et]=i,l[Yt]=n,At(l,e,n),bt(l),l}function Mf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Rf=null;function Uw(){var e=window.event;return e&&e.type==="popstate"?e===Rf?!1:(Rf=e,!0):(Rf=null,!1)}var Lf=typeof setTimeout=="function"?setTimeout:void 0,Bw=typeof clearTimeout=="function"?clearTimeout:void 0,Dy=typeof Promise=="function"?Promise:void 0,My=typeof requestAnimationFrame=="function"?requestAnimationFrame:Lf,Hw=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(qw)}:Lf;function qw(e){setTimeout(function(){throw e})}function $l(e){return e==="head"}function Ry(e,n){var l=n,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),Da(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Gf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Gf(l);for(var d=l.firstChild;d;){var x=d.nextSibling,k=d.nodeName;d[li]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=x}}else l==="body"&&Gf(e.ownerDocument.body);l=s}while(l);Da(n)}function Ly(e,n){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function Uy(e,n,l){if(n=CSS.escape(n)!==n?"r-"+btoa(n).replace(/=/g,""):n,e.style.viewTransitionName=n,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(n=e.getClientRects(),n.length===1)var i=1;else for(var s=i=0;s<n.length;s++){var d=n[s];0<d.width&&0<d.height&&i++}i===1&&(e=e.style,e.display=n.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function By(e,n){e=e.style,n=n.style;var l=n!=null?n.hasOwnProperty("viewTransitionName")?n.viewTransitionName:n.hasOwnProperty("view-transition-name")?n["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=n!=null?n.hasOwnProperty("viewTransitionClass")?n.viewTransitionClass:n.hasOwnProperty("view-transition-class")?n["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(n==null?e.display=e.margin="":(l=n.display,e.display=l==null||typeof l=="boolean"?"":l,l=n.margin,l!=null?e.margin=l:(l=n.hasOwnProperty("marginTop")?n.marginTop:n["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,n=n.hasOwnProperty("marginBottom")?n.marginBottom:n["margin-bottom"],e.marginBottom=n==null||typeof n=="boolean"?"":n)))}function Iw(e,n,l){return l=l.ownerDocument.defaultView,{rect:e,abs:n.position==="absolute"||n.position==="fixed",clip:n.clipPath!=="none"||n.overflow!=="visible"||n.filter!=="none"||n.mask!=="none"||n.mask!=="none"||n.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function Uf(e){var n=e.getBoundingClientRect(),l=getComputedStyle(e);return Iw(n,l,e)}function Vw(e){return e.documentElement.clientHeight}function Yw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Gw(e,n,l,i,s,d,x,k,z){var B=n.nodeType===9?n:n.ownerDocument;try{var G=B.startViewTransition({update:function(){var R=B.defaultView,Y=R.navigation&&R.navigation.transition,ce=B.fonts.status;i();var ye=[];if(ce==="loaded"&&(Vw(B),B.fonts.status==="loading"&&ye.push(B.fonts.ready)),ce=ye.length,e!==null)for(var Oe=e.suspenseyImages,U=0,O=0;O<Oe.length;O++){var V=Oe[O];if(!V.complete){var Q=V.getBoundingClientRect();if(0<Q.bottom&&0<Q.right&&Q.top<R.innerHeight&&Q.left<R.innerWidth){if(U+=a0(V),U>Lo){ye.length=ce;break}V=new Promise(Yw.bind(V)),ye.push(V)}}}if(0<ye.length)return R=Promise.race([Promise.all(ye),new Promise(function(he){return setTimeout(he,500)})]).then(s,s),(Y?Promise.allSettled([Y.finished,R]):R).then(d,d);if(s(),Y)return Y.finished.then(d,d);d()},types:l});B.__reactViewTransition=G;var Z=[];return G.ready.then(function(){for(var R=B.documentElement.getAnimations({subtree:!0}),Y=0;Y<R.length;Y++){var ce=R[Y],ye=ce.effect,Oe=ye.pseudoElement;if(Oe!=null&&Oe.startsWith("::view-transition")){Z.push(ce),ce=ye.getKeyframes();for(var U=Oe=void 0,O=!0,V=0;V<ce.length;V++){var Q=ce[V],he=Q.width;if(Oe===void 0)Oe=he;else if(Oe!==he){O=!1;break}if(he=Q.height,U===void 0)U=he;else if(U!==he){O=!1;break}delete Q.width,delete Q.height,Q.transform==="none"&&delete Q.transform}O&&Oe!==void 0&&U!==void 0&&(ye.setKeyframes(ce),O=getComputedStyle(ye.target,ye.pseudoElement),O.width!==Oe||O.height!==U)&&(O=ce[0],O.width=Oe,O.height=U,O=ce[ce.length-1],O.width=Oe,O.height=U,ye.setKeyframes(ce))}}x()},function(R){B.__reactViewTransition===G&&(B.__reactViewTransition=null);try{if(typeof R=="object"&&R!==null)switch(R.name){case"InvalidStateError":(R.message==="View transition was skipped because document visibility state is hidden."||R.message==="Skipping view transition because document visibility state has become hidden."||R.message==="Skipping view transition because viewport size changed."||R.message==="Transition was aborted because of invalid state")&&(R=null)}R!==null&&z(R)}finally{i(),s(),x()}}),G.finished.finally(function(){for(var R=0;R<Z.length;R++)Z[R].cancel();B.__reactViewTransition===G&&(B.__reactViewTransition=null),k()}),G}catch{return i(),s(),x(),null}}function zr(e,n){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+n+")"}zr.prototype.animate=function(e,n){return n=typeof n=="number"?{duration:n}:F({},n),n.pseudoElement=this._selector,this._scope.animate(e,n)},zr.prototype.getAnimations=function(){for(var e=this._scope,n=this._selector,l=e.getAnimations({subtree:!0}),i=[],s=0;s<l.length;s++){var d=l[s].effect;d!==null&&d.target===e&&d.pseudoElement===n&&i.push(l[s])}return i},zr.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hy(e){return{name:e,group:new zr("group",e),imagePair:new zr("image-pair",e),old:new zr("old",e),new:new zr("new",e)}}function fn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}fn.prototype.addEventListener=function(e,n,l){var i=null,s=null;if(!(l!=null&&typeof l!="boolean"&&(i=l.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var d=this._eventListeners;if(Iy(d,e,n,l)===-1){var x=this,k=n;l!=null&&typeof l!="boolean"&&l.once===!0&&(k=function(z){x.removeEventListener(e,n,l),typeof n=="function"?n.call(this,z):n.handleEvent(z)}),i!==null&&(s=x.removeEventListener.bind(x,e,n,l),i.addEventListener("abort",s,{once:!0}),s=i.removeEventListener.bind(i,"abort",s)),i=Na(l),d.push({type:e,listener:n,optionsOrUseCapture:l,attachedListener:k,cleanup:s}),p(this._fragmentFiber.child,!1,Fw,e,k,i)}this._eventListeners=d}};function Fw(e,n,l,i){return N(e).addEventListener(n,l,i),!1}fn.prototype.removeEventListener=function(e,n,l){var i=this._eventListeners;if(i!==null&&(n=Iy(i,e,n,l),n!==-1)){var s=i[n];l=s.attachedListener;var d=s.cleanup;s=Na(s.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Xw,e,l,s),i.splice(n,1),d!==null&&d()}};function Xw(e,n,l,i){return N(e).removeEventListener(n,l,i),!1}function Na(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qy(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Iy(e,n,l,i){if(e.length===0)return-1;i=qy(i);for(var s=0;s<e.length;s++){var d=e[s];if(d.type===n&&d.listener===l&&qy(d.optionsOrUseCapture)===i)return s}return-1}fn.prototype.dispatchEvent=function(e){var n=v(this._fragmentFiber);if(n===null)return!0;n=N(n);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var i=n.nodeType===9?n.createComment(""):document.createTextNode("");if(l)for(var s=0;s<l.length;s++){var d=l[s];i.addEventListener(d.type,d.attachedListener,Na(d.optionsOrUseCapture))}if(n.appendChild(i),e=i.dispatchEvent(e),l)for(s=0;s<l.length;s++)d=l[s],i.removeEventListener(d.type,d.attachedListener,Na(d.optionsOrUseCapture));return n.removeChild(i),e}return n.dispatchEvent(e)},fn.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Vy,e,void 0,void 0)};function Vy(e,n){return e.tag===6?!1:(e=N(e),rk(e,n))}fn.prototype.focusLast=function(e){var n=[];p(this._fragmentFiber.child,!0,Bf,n,void 0,void 0);for(var l=n.length-1;0<=l&&!Vy(n[l],e);l--);};function Bf(e,n){return n.push(e),!1}fn.prototype.blur=function(){var e=v(this._fragmentFiber);e!==null&&(e=N(e),e=Hi(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Qw,e,void 0,void 0))};function Qw(e,n){return e.tag===6?!1:(e=N(e),e===n||e.contains(n)?(n.blur(),!0):!1)}fn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Zw,e,void 0,void 0)};function Zw(e,n){return e.tag===6||(e=N(e),n.observe(e)),!1}fn.prototype.unobserveUsing=function(e){var n=this._observers;if(n!==null&&n.has(e)){n.delete(e),p(this._fragmentFiber.child,!1,Kw,e,void 0,void 0);for(var l=n=0;l<Mn.length;l++){var i=Mn[l];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Mn[n++]=i}Mn.length=n}};function Kw(e,n){return e.tag===6||(e=N(e),n.unobserve(e)),!1}var Mn=[],Hf=!1;function Pw(e,n,l){Mn.push({fragmentInstance:e,observer:n,instance:l}),Hf||(Hf=!0,ak(function(){Hf=!1;var i=Mn;Mn=[];for(var s=0;s<i.length;s++){var d=i[s];d.observer.unobserve(d.instance)}}))}fn.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,$w,e,void 0,void 0),e};function $w(e,n){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),n.push.apply(n,l.getClientRects())}else e=N(e),n.push.apply(n,e.getClientRects());return!1}fn.prototype.getRootNode=function(e){var n=v(this._fragmentFiber);return n===null?this:N(n).getRootNode(e)},fn.prototype.compareDocumentPosition=function(e){var n=v(this._fragmentFiber);if(n===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];p(this._fragmentFiber.child,!1,Bf,l,void 0,void 0);var i=N(n);if(l.length===0){if(l=i,S(this._fragmentFiber)){e:{for(n=this._fragmentFiber.return;n!==null;){if(n.tag===4){n=n.stateNode.containerInfo;break e}if(n.tag===3||n.tag===5||n.tag===27)break;n=n.return}n=null}n!=null&&(l=n)}n=this._fragmentFiber;var s=i=l.compareDocumentPosition(e);return l===e?s=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=E(n)[1],l===null?s=Node.DOCUMENT_POSITION_PRECEDING:(e=N(l).compareDocumentPosition(e),s=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),s|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}n=N(l[0]),s=N(l[l.length-1]);var d=S(this._fragmentFiber)?n.parentElement:i;if(d==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=d.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY,d=d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY;var x=n.compareDocumentPosition(e),k=s.compareDocumentPosition(e),z=x&Node.DOCUMENT_POSITION_CONTAINED_BY||k&Node.DOCUMENT_POSITION_CONTAINED_BY;return k=i&&d&&x&Node.DOCUMENT_POSITION_FOLLOWING&&k&Node.DOCUMENT_POSITION_PRECEDING,n=i&&n===e||d&&s===e||z||k?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&n===e||!d&&s===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:x,n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Jw(n,this._fragmentFiber,l[0],l[l.length-1],e)?n:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Jw(e,n,l,i,s){var d=sr(s);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!d)e:{for(;d!==null;){if(d.tag===7&&(d===n||d.alternate===n)){l=!0;break e}d=d.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(d===null)return d=s.ownerDocument,s===d||s===d.documentElement||s===d.body;e:{for(d=n,n=v(n);d!==null;){if(!(d.tag!==5&&d.tag!==3&&d.tag!==27||d!==n&&d.alternate!==n)){d=!0;break e}d=d.return}d=!1}return d}return e&Node.DOCUMENT_POSITION_PRECEDING?((n=!!d)&&!(n=d===l)&&(n=D(l,d,W),n===null?n=!1:(p(n,!0,L,d,l),d=_,_=null,n=d!==null)),n):e&Node.DOCUMENT_POSITION_FOLLOWING?((n=!!d)&&!(n=d===i)&&(n=D(i,d,W),n===null?n=!1:(p(n,!0,P,d,i),d=_,M=_=null,n=d!==null)),n):!1}function Yy(e,n){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,n?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}fn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(u(566));var n=[];p(this._fragmentFiber.child,!1,Bf,n,void 0,void 0);var l=e!==!1;if(n.length===0){var i=E(this._fragmentFiber);if(i=l?i[1]||i[0]||v(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=N(i),Yy(e,l);return}if(i=N(i),i.nodeType!==9){if(i.nodeType===11){l="host"in i?i.host:null,l!==null&&l.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=l?n.length-1:0;i!==(l?-1:n.length);){var s=n[i];s.tag===6?(s=N(s),Yy(s,l)):N(s).scrollIntoView(e),i+=l?-1:1}};function Ww(e,n){return e=N(e),Gy(e,n),!1}function Gy(e,n){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(n)}function Fy(e,n){var l=n._eventListeners;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];e.addEventListener(s.type,s.attachedListener,Na(s.optionsOrUseCapture))}e.nodeType!==3&&(l=n._observers,l!==null&&l.forEach(function(d){for(var x=0,k=0;k<Mn.length;k++){var z=Mn[k];(z.fragmentInstance!==n||z.observer!==d||z.instance!==e)&&(Mn[x++]=z)}Mn.length=x,d.observe(e)}),Gy(e,n))}function ek(e,n){var l=n._eventListeners;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];e.removeEventListener(s.type,s.attachedListener,Na(s.optionsOrUseCapture))}e.nodeType!==3&&(l=n._observers,l!==null&&l.forEach(function(d){typeof d.rootMargin=="string"?Pw(n,d,e):d.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(n))}function qf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":qf(l),ku(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function tk(e,n,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[li])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function nk(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function Xy(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wn(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function Vf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lk(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var i=function(){n(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function wn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Yf=null;function Qy(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return wn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function Zy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function rk(e,n){function l(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,n)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return i}function ak(e){My(function(){My(function(n){return e(n)})})}function Ky(e,n,l){switch(n=Hi(l),e){case"html":if(e=n.documentElement,!e)throw Error(u(452));return e;case"head":if(e=n.head,!e)throw Error(u(453));return e;case"body":if(e=n.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Py(e,n,l){for(var i in l){var s=l[i];l.hasOwnProperty(i)&&s!=null&&Ke(e,n,i,null,Mw,s)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===qn&&(e.onclick=null),ku(e)}function Gf(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ku(e)}var kn=new Map,$y=new Set;function qi(e){if(typeof e.getRootNode=="function"){var n=e.getRootNode();if(n.nodeType===9||n.nodeType===11)return n}return e.nodeType===9?e:e.ownerDocument}var Sl=Se.d;Se.d={f:ik,r:uk,D:ok,C:sk,L:ck,m:fk,X:mk,S:dk,M:hk};function ik(){var e=Sl.f(),n=No();return e||n}function uk(e){var n=Xr(e);n!==null&&n.tag===5&&n.type==="form"?Wp(n):Sl.r(e)}var _a=typeof document>"u"?null:document;function Jy(e,n,l){var i=_a;if(i&&typeof n=="string"&&n){var s=pn(n);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),$y.has(s)||($y.add(s),e={rel:e,crossOrigin:l,href:n},i.querySelector(s)===null&&(n=i.createElement("link"),At(n,"link",e),bt(n),i.head.appendChild(n)))}}function ok(e){Sl.D(e),Jy("dns-prefetch",e,null)}function sk(e,n){Sl.C(e,n),Jy("preconnect",e,n)}function ck(e,n,l){Sl.L(e,n,l);var i=_a;if(i&&e&&n){var s='link[rel="preload"][as="'+pn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+pn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+pn(l.imageSizes)+'"]')):s+='[href="'+pn(e)+'"]';var d=s;switch(n){case"style":d=Aa(e);break;case"script":d=za(e)}if(!(kn.has(d)||(e=F({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),kn.set(d,e),i.querySelector(s)!==null||n==="style"&&i.querySelector(Ii(d))||n==="script"&&i.querySelector(Vi(d))))){var x=i.createElement("link");At(x,"link",e),n==="style"&&(x[wu]=!0,x.onload=x.onerror=function(){fh(x)}),bt(x),i.head.appendChild(x)}}}function fk(e,n){Sl.m(e,n);var l=_a;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",s='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',d=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=za(e)}if(!kn.has(d)&&(e=F({rel:"modulepreload",href:e},n),kn.set(d,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Vi(d)))return}i=l.createElement("link"),At(i,"link",e),bt(i),l.head.appendChild(i)}}}function dk(e,n,l){Sl.S(e,n,l);var i=_a;if(i&&e){var s=Qr(i).hoistableStyles,d=Aa(e);n=n||"default";var x=s.get(d);if(!x){var k={loading:0,preload:null};if(x=i.querySelector(Ii(d)))k.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":n},l),(l=kn.get(d))&&Ff(e,l);var z=x=i.createElement("link");bt(z),At(z,"link",e),z._p=new Promise(function(B,G){z.onload=B,z.onerror=G}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Mo(x,n,i)}x={type:"stylesheet",instance:x,count:1,state:k},s.set(d,x)}}}function mk(e,n){Sl.X(e,n);var l=_a;if(l&&e){var i=Qr(l).hoistableScripts,s=za(e),d=i.get(s);d||(d=l.querySelector(Vi(s)),d||(e=F({src:e,async:!0},n),(n=kn.get(s))&&Xf(e,n),d=l.createElement("script"),bt(d),At(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(s,d))}}function hk(e,n){Sl.M(e,n);var l=_a;if(l&&e){var i=Qr(l).hoistableScripts,s=za(e),d=i.get(s);d||(d=l.querySelector(Vi(s)),d||(e=F({src:e,async:!0,type:"module"},n),(n=kn.get(s))&&Xf(e,n),d=l.createElement("script"),bt(d),At(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(s,d))}}function Wy(e,n,l,i){var s=(s=Hn.current)?qi(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Aa(l.href),n=Qr(s).hoistableStyles,i=n.get(l),i||(i={type:"style",instance:null,count:0,state:null},n.set(l,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Aa(l.href);var d=Qr(s).hoistableStyles,x=d.get(e);if(x||(s=s.ownerDocument||s,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=s.querySelector(Ii(e)))?d._p||(x.instance=d,x.state.loading=5):(d=kn.get(e),d||(d={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kn.set(e,d)),pk(s,e,d,x.state))),n&&i===null)throw Error(u(528,""));return x}if(n&&i!==null)throw Error(u(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(l=za(l),n=Qr(s).hoistableScripts,i=n.get(l),i||(i={type:"script",instance:null,count:0,state:null},n.set(l,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Aa(e){return'href="'+pn(e)+'"'}function Ii(e){return'link[rel="stylesheet"]['+e+"]"}function e0(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function pk(e,n,l,i){if(n=e.querySelector('link[rel="preload"][as="style"]['+n+"]")){if(n[wu]!==!0){i.loading=1;return}}else n=e.createElement("link"),n[wu]=!0,n.onload=n.onerror=fh.bind(null,n),At(n,"link",l),bt(n),e.head.appendChild(n);i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2})}function za(e){return'[src="'+pn(e)+'"]'}function Vi(e){return"script[async]"+e}function t0(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+pn(l.href)+'"]');if(i)return n.instance=i,bt(i),i;var s=F({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),bt(i),At(i,"style",s),Mo(i,l.precedence,e),n.instance=i;case"stylesheet":s=Aa(l.href);var d=e.querySelector(Ii(s));if(d)return n.state.loading|=4,n.instance=d,bt(d),d;i=e0(l),(s=kn.get(s))&&Ff(i,s),d=(e.ownerDocument||e).createElement("link"),bt(d);var x=d;return x._p=new Promise(function(k,z){x.onload=k,x.onerror=z}),At(d,"link",i),n.state.loading|=4,Mo(d,l.precedence,e),n.instance=d;case"script":return d=za(l.src),(s=e.querySelector(Vi(d)))?(n.instance=s,bt(s),s):(i=l,(s=kn.get(d))&&(i=F({},l),Xf(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),bt(s),At(s,"link",i),e.head.appendChild(s),n.instance=s);case"void":return null;default:throw Error(u(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,Mo(i,l.precedence,e));return n.instance}function Mo(e,n,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,d=s,x=0;x<i.length;x++){var k=i[x];if(k.dataset.precedence===n)d=k;else if(d!==s)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function Ff(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Xf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ro=null;function n0(e,n,l){if(Ro===null){var i=new Map,s=Ro=new Map;s.set(l,i)}else s=Ro,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var d=l[s];if(!(d[li]||d[Et]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var k=i.get(x);k?k.push(d):i.set(x,[d])}}return i}function Qf(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function gk(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function l0(e,n){return e==="img"&&n.src!=null&&n.src!==""&&n.onLoad==null&&n.loading!=="lazy"}function r0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function a0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function i0(e,n){typeof n.decode=="function"&&(e.imgCount++,n.complete||(e.imgBytes+=a0(n),e.suspenseyImages.push(n)),e=xk.bind(e),n.decode().then(e,e))}function yk(e,n,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=Aa(i.href),d=n.querySelector(Ii(s));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Yi.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=d,bt(d);return}d=n.ownerDocument||n,i=e0(i),(s=kn.get(s))&&Ff(i,s),d=d.createElement("link"),bt(d);var x=d;x._p=new Promise(function(k,z){x.onload=k,x.onerror=z}),At(d,"link",i),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Yi.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var Lo=0;function bk(e,n){return e.stylesheets&&e.count===0&&Bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Bo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&Lo===0&&(Lo=62500*Lw());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Lo?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function u0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Bo(e,e.stylesheets);else if(e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}}}function Yi(){this.count--,u0(this)}function xk(){this.imgCount--,u0(this)}var Uo=null;function Bo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Uo=new Map,n.forEach(vk,e),Uo=null,Yi.call(e))}function vk(e,n){if(!(n.state.loading&4)){var l=Uo.get(e);if(l)var i=l.get(null);else{l=new Map,Uo.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<s.length;d++){var x=s[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),i=x)}i&&l.set(null,i)}s=n.instance,x=s.getAttribute("data-precedence"),d=l.get(x)||i,d===i&&l.set(null,s),l.set(x,s),this.count++,i=Yi.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),d?d.parentNode.insertBefore(s,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),n.state.loading|=4}}var ja={$$typeof:te,Provider:null,Consumer:null,_currentValue:Rt,_currentValue2:Rt,_threadCount:0};function Sk(e,n,l,i,s,d,x,k,z){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ts(0),this.hiddenUpdates=Ts(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.transitionTypes=null,this.incompleteTransitions=new Map}function o0(e,n,l,i,s,d,x,k,z,B,G,Z){return e=new Sk(e,n,l,x,z,B,G,Z,k),n=1,d===!0&&(n|=24),d=Gt(3,null,null,n),e.current=d,d.stateNode=e,n=uc(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:i,isDehydrated:l,cache:n},fc(d),e}function s0(e){return e?(e=la,e):la}function c0(e,n,l,i,s,d){s=s0(s),i.context===null?i.context=s:i.pendingContext=s,i=Hl(n),i.payload={element:l},d=d===void 0?null:d,d!==null&&(i.callback=d),l=ql(e,i,n),l!==null&&(Zt(l,e,n),vi(l,e,n))}function f0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Zf(e,n){f0(e,n),(e=e.alternate)&&f0(e,n)}function d0(e){if(e.tag===13||e.tag===31){var n=mr(e,67108864);n!==null&&Zt(n,e,67108864),Zf(e,67108864)}}function m0(e){if(e.tag===13||e.tag===31){var n=cn();n=Ns(n);var l=mr(e,n);l!==null&&Zt(l,e,n),Zf(e,n)}}var Oa=!0;function wk(e,n,l,i){var s=me.T;me.T=null;var d=Se.p;try{Se.p=2,Kf(e,n,l,i)}finally{Se.p=d,me.T=s}}function kk(e,n,l,i){var s=me.T;me.T=null;var d=Se.p;try{Se.p=8,Kf(e,n,l,i)}finally{Se.p=d,me.T=s}}function Kf(e,n,l,i){if(Oa){var s=Pf(i);if(s===null)zf(e,n,i,Ho,l),p0(e,i);else if(Ck(s,e,n,l,i))i.stopPropagation();else if(p0(e,i),n&4&&-1<Ek.indexOf(e)){for(;s!==null;){var d=Xr(s);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=or(d.pendingLanes);if(x!==0){var k=d;for(k.pendingLanes|=2,k.entangledLanes|=2;x;){var z=1<<31-nn(x);k.entanglements[1]|=z,x&=~z}Pn(d),(Ge&6)===0&&(Eo=en()+500,Li(0))}}break;case 31:case 13:k=mr(d,2),k!==null&&Zt(k,d,2),No(),Zf(d,2)}if(d=Pf(i),d===null&&zf(e,n,i,Ho,l),d===s)break;s=d}s!==null&&i.stopPropagation()}else zf(e,n,i,null,l)}}function Pf(e){return e=Ms(e),$f(e)}var Ho=null;function $f(e){if(Ho=null,e=sr(e),e!==null){var n=f(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=c(n),e!==null)return e;e=null}else if(l===31){if(e=m(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Ho=e,null}function h0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(LS()){case Wm:return 2;case eh:return 8;case yu:case US:return 32;case th:return 268435456;default:return 32}default:return 32}}var Jf=!1,Jl=null,Wl=null,er=null,Gi=new Map,Fi=new Map,tr=[],Ek="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 p0(e,n){switch(e){case"focusin":case"focusout":Jl=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Gi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fi.delete(n.pointerId)}}function Xi(e,n,l,i,s,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:i,nativeEvent:d,targetContainers:[s]},n!==null&&(n=Xr(n),n!==null&&d0(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,s!==null&&n.indexOf(s)===-1&&n.push(s),e)}function Ck(e,n,l,i,s){switch(n){case"focusin":return Jl=Xi(Jl,e,n,l,i,s),!0;case"dragenter":return Wl=Xi(Wl,e,n,l,i,s),!0;case"mouseover":return er=Xi(er,e,n,l,i,s),!0;case"pointerover":var d=s.pointerId;return Gi.set(d,Xi(Gi.get(d)||null,e,n,l,i,s)),!0;case"gotpointercapture":return d=s.pointerId,Fi.set(d,Xi(Fi.get(d)||null,e,n,l,i,s)),!0}return!1}function g0(e){var n=sr(e.target);if(n!==null){var l=f(n);if(l!==null){if(n=l.tag,n===13){if(n=c(l),n!==null){e.blockedOn=n,oh(e.priority,function(){m0(l)});return}}else if(n===31){if(n=m(l),n!==null){e.blockedOn=n,oh(e.priority,function(){m0(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Pf(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Ds=i,l.target.dispatchEvent(i),Ds=null}else return n=Xr(l),n!==null&&d0(n),e.blockedOn=l,!1;n.shift()}return!0}function y0(e,n,l){qo(e)&&l.delete(n)}function Tk(){Jf=!1,Jl!==null&&qo(Jl)&&(Jl=null),Wl!==null&&qo(Wl)&&(Wl=null),er!==null&&qo(er)&&(er=null),Gi.forEach(y0),Fi.forEach(y0)}function Io(e,n){e.blockedOn===n&&(e.blockedOn=null,Jf||(Jf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Tk)))}var Vo=null;function b0(e){Vo!==e&&(Vo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vo===e&&(Vo=null);for(var n=0;n<e.length;n+=3){var l=e[n],i=e[n+1],s=e[n+2];if(typeof i!="function"){if($f(i||l)===null)continue;break}var d=Xr(l);d!==null&&(e.splice(n,3),n-=3,Oc(d,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function Da(e){function n(z){return Io(z,e)}Jl!==null&&Io(Jl,e),Wl!==null&&Io(Wl,e),er!==null&&Io(er,e),Gi.forEach(n),Fi.forEach(n);for(var l=0;l<tr.length;l++){var i=tr[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<tr.length&&(l=tr[0],l.blockedOn===null);)g0(l),l.blockedOn===null&&tr.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],d=l[i+1],x=s[Yt]||null;if(typeof d=="function")x||b0(l);else if(x){var k=null;if(d&&d.hasAttribute("formAction")){if(s=d,x=d[Yt]||null)k=x.formAction;else if($f(s)!==null)continue}else k=x.action;typeof k=="function"?l[i+1]=k:(l.splice(i,3),i-=3),b0(l)}}}function x0(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(x){return s=x})},focusReset:"manual",scroll:"manual"})}function n(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),s!==null&&(s(),s=null)}}}function Wf(e){this._internalRoot=e}Yo.prototype.render=Wf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));var l=n.current,i=cn();c0(l,i,e,n,null,null)},Yo.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;c0(e.current,2,null,e,null,null),No(),n[Fr]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var n=uh();e={blockedOn:null,target:e,priority:n};for(var l=0;l<tr.length&&n!==0&&n<tr[l].priority;l++);tr.splice(l,0,e),l===0&&g0(e)}};var v0=r.version;if(v0!=="19.3.0")throw Error(u(527,v0,"19.3.0"));Se.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Nk={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Go.isDisabled&&Go.supportsFiber)try{ei=Go.inject(Nk),tn=Go}catch{}}return Zi.createRoot=function(e,n){if(!o(e))throw Error(u(299));var l=!1,i="",s=sg,d=cg,x=fg;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=o0(e,1,!1,null,null,l,i,null,s,d,x,x0),e[Fr]=n.current,Af(e),new Wf(n)},Zi.hydrateRoot=function(e,n,l){if(!o(e))throw Error(u(299));var i=!1,s="",d=sg,x=cg,k=fg,z=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(z=l.formState)),n=o0(e,1,!0,n,l??null,i,s,z,d,x,k,x0),n.context=s0(null),l=n.current,i=cn(),i=Ns(i),s=Hl(i),s.callback=null,ql(l,s,i),l=i,n.current.lanes=l,ni(n,l),Pn(n),e[Fr]=n.current,Af(e),new Yo(n)},Zi.version="19.3.0",Zi}var z0;function Bk(){if(z0)return nd.exports;z0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),nd.exports=Uk(),nd.exports}var Hk=Bk();/**
50
+ * @license lucide-react v1.52.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const qk=t=>t==null?void 0:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
55
+ * @license lucide-react v1.52.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */function Ik(t,r,a=[]){if(r==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:qk(t),size:24,node:r,...a.length>0?{aliases:a}:{}}}/**
60
+ * @license lucide-react v1.52.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Vk=t=>{let r="",a=!1;for(const u of t){if(u==="-"||u==="_"||u<=" "){a=r.length>0;continue}r.length===0?r+=u.toLowerCase():r+=a?u.toUpperCase():u,a=!1}return r};/**
65
+ * @license lucide-react v1.52.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Yk=t=>{const r=Vk(t);return r.charAt(0).toUpperCase()+r.slice(1)};/**
70
+ * @license lucide-react v1.52.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Hd=(...t)=>t.filter((r,a,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===a).join(" ").trim();/**
75
+ * @license lucide-react v1.52.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const jr={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"};/**
80
+ * @license lucide-react v1.52.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */function id(t){return t!=null}function Gk(t,r={}){var v,S;const a=r.attributeNames??{},u=E=>a[E]??E,o=t.size??t.width??jr.width,f=t.size??t.height??jr.height,c=((v=t.aliases)==null?void 0:v.filter(E=>typeof E=="string"&&E.trim()!=="").map(E=>`lucide-${E}`))??[],m=[...t.name?[`lucide-${t.name}`]:[],...c],h=((S=r.className)==null?void 0:S.split(" ").filter(Boolean))??[],g=r.includeDefaultClasses===!1?Hd(...h):Hd("lucide",...m,...h),y=r.absoluteStrokeWidth?Number(r.strokeWidth??jr["stroke-width"])*Number(t.size??t.width??jr.width)/Number(r.size??r.width??jr.width):r.strokeWidth??jr["stroke-width"];return["svg",{...Object.entries(jr).reduce((E,[T,N])=>(E[u(T)]=N,E),{}),..."color"in r&&r.color&&{[u("stroke")]:r.color},..."size"in r&&id(r.size)&&{[u("width")]:r.size,[u("height")]:r.size},..."width"in r&&id(r.width)&&{[u("width")]:r.width},..."height"in r&&id(r.height)&&{[u("height")]:r.height},[u("stroke-width")]:y,...g&&{[u("class")]:g},[u("viewBox")]:`0 0 ${o} ${f}`,...r.hasA11yProp===!1?{[u("aria-hidden")]:"true"}:{},..."attributes"in r&&r.attributes},t.node.map(E=>{const[T,N,_]=E,M=r.nonScalingStroke?{[u("vector-effect")]:"non-scaling-stroke",...N}:N;return _?[T,M,_]:[T,M]})]}/**
85
+ * @license lucide-react v1.52.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */function Fk(t,r={}){return Gk(t,{...r,attributeNames:{...r.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
90
+ * @license lucide-react v1.52.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Xk=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},Qk=w.createContext({}),Zk=()=>w.useContext(Qk),Kk=w.forwardRef(({color:t,size:r,width:a,height:u,strokeWidth:o,absoluteStrokeWidth:f,nonScalingStroke:c,className:m="",children:h,iconNode:g=[],icon:y={node:g,aliases:[],size:24},...p},v)=>{const{size:S=24,strokeWidth:E=2,absoluteStrokeWidth:T=!1,nonScalingStroke:N=!1,color:_="currentColor",className:M=""}=Zk()??{},L=!!h||Xk(p),[P,W,D=[]]=Fk(y,{color:t??_,width:a??r??S,height:u??r??S,strokeWidth:o??E,absoluteStrokeWidth:f??T,nonScalingStroke:c??N,className:Hd(M,m),hasA11yProp:L,attributes:p});return w.createElement(P,{ref:v,...W},[...D.map(([F,q])=>w.createElement(F,q)),...Array.isArray(h)?h:[h]])});/**
95
+ * @license lucide-react v1.52.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */function Ee(t,r=[],a=[]){const u=typeof t=="string"?Ik(t,r,a):t,o=w.forwardRef(({className:f,...c},m)=>w.createElement(Kk,{ref:m,icon:u,className:f,...c}));return u.name&&(o.displayName=Yk(u.name)),o}/**
100
+ * @license lucide-react v1.52.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Zb={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Zb.node;const Kb=Ee(Zb);/**
105
+ * @license lucide-react v1.52.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Pb={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Pb.node;const Pk=Ee(Pb);/**
110
+ * @license lucide-react v1.52.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const $b={name:"brain",size:24,node:[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]};$b.node;const bm=Ee($b);/**
115
+ * @license lucide-react v1.52.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const Jb={name:"briefcase-business",size:24,node:[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};Jb.node;const $k=Ee(Jb);/**
120
+ * @license lucide-react v1.52.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Wb={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};Wb.node;const ex=Ee(Wb);/**
125
+ * @license lucide-react v1.52.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const tx={name:"calendar-clock",size:24,node:[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]};tx.node;const Jk=Ee(tx);/**
130
+ * @license lucide-react v1.52.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const nx={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"}]]};nx.node;const Wk=Ee(nx);/**
135
+ * @license lucide-react v1.52.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const lx={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};lx.node;const xm=Ee(lx);/**
140
+ * @license lucide-react v1.52.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const rx={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};rx.node;const vm=Ee(rx);/**
145
+ * @license lucide-react v1.52.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const ax={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};ax.node;const ys=Ee(ax);/**
150
+ * @license lucide-react v1.52.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const ix={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};ix.node;const ux=Ee(ix);/**
155
+ * @license lucide-react v1.52.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const ox={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"]};ox.node;const eE=Ee(ox);/**
160
+ * @license lucide-react v1.52.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const sx={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};sx.node;const tE=Ee(sx);/**
165
+ * @license lucide-react v1.52.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const cx={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};cx.node;const nE=Ee(cx);/**
170
+ * @license lucide-react v1.52.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const fx={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"]};fx.node;const lE=Ee(fx);/**
175
+ * @license lucide-react v1.52.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const dx={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"}]]};dx.node;const mx=Ee(dx);/**
180
+ * @license lucide-react v1.52.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const hx={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};hx.node;const rE=Ee(hx);/**
185
+ * @license lucide-react v1.52.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const px={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};px.node;const Fo=Ee(px);/**
190
+ * @license lucide-react v1.52.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const gx={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"}]]};gx.node;const qd=Ee(gx);/**
195
+ * @license lucide-react v1.52.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const yx={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};yx.node;const us=Ee(yx);/**
200
+ * @license lucide-react v1.52.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const bx={name:"file-search",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]};bx.node;const Ha=Ee(bx);/**
205
+ * @license lucide-react v1.52.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const xx={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};xx.node;const aE=Ee(xx);/**
210
+ * @license lucide-react v1.52.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const vx={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};vx.node;const iE=Ee(vx);/**
215
+ * @license lucide-react v1.52.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const Sx={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Sx.node;const os=Ee(Sx);/**
220
+ * @license lucide-react v1.52.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const wx={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};wx.node;const Ga=Ee(wx);/**
225
+ * @license lucide-react v1.52.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const kx={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"}]]};kx.node;const Ex=Ee(kx);/**
230
+ * @license lucide-react v1.52.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const Cx={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};Cx.node;const uE=Ee(Cx);/**
235
+ * @license lucide-react v1.52.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const Tx={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};Tx.node;const oE=Ee(Tx);/**
240
+ * @license lucide-react v1.52.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const Nx={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};Nx.node;const sE=Ee(Nx);/**
245
+ * @license lucide-react v1.52.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const _x={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};_x.node;const cE=Ee(_x);/**
250
+ * @license lucide-react v1.52.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const Ax={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};Ax.node;const fE=Ee(Ax);/**
255
+ * @license lucide-react v1.52.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const zx={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};zx.node;const dE=Ee(zx);/**
260
+ * @license lucide-react v1.52.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const jx={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],aliases:["sidebar-close"]};jx.node;const mE=Ee(jx);/**
265
+ * @license lucide-react v1.52.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const Ox={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};Ox.node;const hE=Ee(Ox);/**
270
+ * @license lucide-react v1.52.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const Dx={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};Dx.node;const pE=Ee(Dx);/**
275
+ * @license lucide-react v1.52.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const Mx={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Mx.node;const gE=Ee(Mx);/**
280
+ * @license lucide-react v1.52.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const Rx={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};Rx.node;const yE=Ee(Rx);/**
285
+ * @license lucide-react v1.52.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const Lx={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Lx.node;const bE=Ee(Lx);/**
290
+ * @license lucide-react v1.52.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const Ux={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};Ux.node;const xE=Ee(Ux);/**
295
+ * @license lucide-react v1.52.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const Bx={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};Bx.node;const vE=Ee(Bx);/**
300
+ * @license lucide-react v1.52.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const Hx={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};Hx.node;const qx=Ee(Hx);/**
305
+ * @license lucide-react v1.52.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const Ix={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Ix.node;const SE=Ee(Ix);/**
310
+ * @license lucide-react v1.52.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const Vx={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};Vx.node;const Yx=Ee(Vx);/**
315
+ * @license lucide-react v1.52.0 - ISC
316
+ *
317
+ * This source code is licensed under the ISC license.
318
+ * See the LICENSE file in the root directory of this source tree.
319
+ */const Gx={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};Gx.node;const Id=Ee(Gx);/**
320
+ * @license lucide-react v1.52.0 - ISC
321
+ *
322
+ * This source code is licensed under the ISC license.
323
+ * See the LICENSE file in the root directory of this source tree.
324
+ */const Fx={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"]};Fx.node;const wE=Ee(Fx);/**
325
+ * @license lucide-react v1.52.0 - ISC
326
+ *
327
+ * This source code is licensed under the ISC license.
328
+ * See the LICENSE file in the root directory of this source tree.
329
+ */const Xx={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"}]]};Xx.node;const Qx=Ee(Xx);/**
330
+ * @license lucide-react v1.52.0 - ISC
331
+ *
332
+ * This source code is licensed under the ISC license.
333
+ * See the LICENSE file in the root directory of this source tree.
334
+ */const Zx={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Zx.node;const Sm=Ee(Zx);function Kx(t){var r,a,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(a=Kx(t[r]))&&(u&&(u+=" "),u+=a)}else for(a in t)t[a]&&(u&&(u+=" "),u+=a);return u}function kE(){for(var t,r,a=0,u="",o=arguments.length;a<o;a++)(t=arguments[a])&&(r=Kx(t))&&(u&&(u+=" "),u+=r);return u}const EE=(t,r)=>{const a=new Array(t.length+r.length);for(let u=0;u<t.length;u++)a[u]=t[u];for(let u=0;u<r.length;u++)a[t.length+u]=r[u];return a},CE=(t,r)=>({classGroupId:t,validator:r}),Px=(t=new Map,r=null,a)=>({nextPart:t,validators:r,classGroupId:a}),ds="-",j0=[],TE="arbitrary..",NE=t=>{const r=AE(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:u}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return _E(c);const m=c.split(ds),h=m[0]===""&&m.length>1?1:0;return $x(m,h,r)},getConflictingClassGroupIds:(c,m)=>{if(m){const h=u[c],g=a[c];return h?g?EE(g,h):h:g||j0}return a[c]||j0}}},$x=(t,r,a)=>{if(t.length-r===0)return a.classGroupId;const o=t[r],f=a.nextPart.get(o);if(f){const g=$x(t,r+1,f);if(g)return g}const c=a.validators;if(c===null)return;const m=r===0?t.join(ds):t.slice(r).join(ds),h=c.length;for(let g=0;g<h;g++){const y=c[g];if(y.validator(m))return y.classGroupId}},_E=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),a=r.indexOf(":"),u=r.slice(0,a);return u?TE+u:void 0})(),AE=t=>{const{theme:r,classGroups:a}=t;return zE(a,r)},zE=(t,r)=>{const a=Px();for(const u in t){const o=t[u];wm(o,a,u,r)}return a},wm=(t,r,a,u)=>{const o=t.length;for(let f=0;f<o;f++){const c=t[f];jE(c,r,a,u)}},jE=(t,r,a,u)=>{if(typeof t=="string"){OE(t,r,a);return}if(typeof t=="function"){DE(t,r,a,u);return}ME(t,r,a,u)},OE=(t,r,a)=>{const u=t===""?r:Jx(r,t);u.classGroupId=a},DE=(t,r,a,u)=>{if(RE(t)){wm(t(u),r,a,u);return}r.validators===null&&(r.validators=[]),r.validators.push(CE(a,t))},ME=(t,r,a,u)=>{const o=Object.entries(t),f=o.length;for(let c=0;c<f;c++){const[m,h]=o[c];wm(h,Jx(r,m),a,u)}},Jx=(t,r)=>{let a=t;const u=r.split(ds),o=u.length;for(let f=0;f<o;f++){const c=u[f];let m=a.nextPart.get(c);m||(m=Px(),a.nextPart.set(c,m)),a=m}return a},RE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,LE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,a=Object.create(null),u=Object.create(null);const o=(f,c)=>{a[f]=c,r++,r>t&&(r=0,u=a,a=Object.create(null))};return{get(f){let c=a[f];if(c!==void 0)return c;if((c=u[f])!==void 0)return o(f,c),c},set(f,c){f in a?a[f]=c:o(f,c)}}},Vd="!",O0=":",UE=[],D0=(t,r,a,u,o)=>({modifiers:t,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:u,isExternal:o}),BE=t=>{const{prefix:r,experimentalParseClassName:a}=t;let u=o=>{const f=[];let c=0,m=0,h=0,g;const y=o.length;for(let T=0;T<y;T++){const N=o[T];if(c===0&&m===0){if(N===O0){f.push(o.slice(h,T)),h=T+1;continue}if(N==="/"){g=T;continue}}N==="["?c++:N==="]"?c--:N==="("?m++:N===")"&&m--}const p=f.length===0?o:o.slice(h);let v=p,S=!1;p.endsWith(Vd)?(v=p.slice(0,-1),S=!0):p.startsWith(Vd)&&(v=p.slice(1),S=!0);const E=g&&g>h?g-h:void 0;return D0(f,S,v,E)};if(r){const o=r+O0,f=u;u=c=>c.startsWith(o)?f(c.slice(o.length)):D0(UE,!1,c,void 0,!0)}if(a){const o=u;u=f=>a({className:f,parseClassName:o})}return u},HE=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((a,u)=>{r.set(a,1e6+u)}),a=>{const u=[];let o=[];for(let f=0;f<a.length;f++){const c=a[f],m=c[0]==="[",h=r.has(c);m||h?(o.length>0&&(o.sort(),u.push(...o),o=[]),u.push(c)):o.push(c)}return o.length>0&&(o.sort(),u.push(...o)),u}},qE=t=>({cache:LE(t.cacheSize),parseClassName:BE(t),sortModifiers:HE(t),postfixLookupClassGroupIds:IE(t),...NE(t)}),IE=t=>{const r=Object.create(null),a=t.postfixLookupClassGroups;if(a)for(let u=0;u<a.length;u++)r[a[u]]=!0;return r},VE=/\s+/,YE=(t,r)=>{const{parseClassName:a,getClassGroupId:u,getConflictingClassGroupIds:o,sortModifiers:f,postfixLookupClassGroupIds:c}=r,m=[],h=t.trim().split(VE);let g="";for(let y=h.length-1;y>=0;y-=1){const p=h[y],{isExternal:v,modifiers:S,hasImportantModifier:E,baseClassName:T,maybePostfixModifierPosition:N}=a(p);if(v){g=p+(g.length>0?" "+g:g);continue}let _=!!N,M;if(_){const F=T.substring(0,N);M=u(F);const q=M&&c[M]?u(T):void 0;q&&q!==M&&(M=q,_=!1)}else M=u(T);if(!M){if(!_){g=p+(g.length>0?" "+g:g);continue}if(M=u(T),!M){g=p+(g.length>0?" "+g:g);continue}_=!1}const L=S.length===0?"":S.length===1?S[0]:f(S).join(":"),P=E?L+Vd:L,W=P+M;if(m.indexOf(W)>-1)continue;m.push(W);const D=o(M,_);for(let F=0;F<D.length;++F){const q=D[F];m.push(P+q)}g=p+(g.length>0?" "+g:g)}return g},GE=(...t)=>{let r=0,a,u,o="";for(;r<t.length;)(a=t[r++])&&(u=Wx(a))&&(o&&(o+=" "),o+=u);return o},Wx=t=>{if(typeof t=="string")return t;let r,a="";for(let u=0;u<t.length;u++)t[u]&&(r=Wx(t[u]))&&(a&&(a+=" "),a+=r);return a},FE=(t,...r)=>{let a,u,o,f;const c=h=>{const g=r.reduce((y,p)=>p(y),t());return a=qE(g),u=a.cache.get,o=a.cache.set,f=m,m(h)},m=h=>{const g=u(h);if(g)return g;const y=YE(h,a);return o(h,y),y};return f=c,(...h)=>f(GE(...h))},XE=[],yt=t=>{const r=a=>a[t]||XE;return r.isThemeGetter=!0,r.themeKey=t,r},ev=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ZE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,PE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,$E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lr=t=>QE.test(t),Me=t=>!!t&&!Number.isNaN(Number(t)),$n=t=>!!t&&Number.isInteger(Number(t)),ud=t=>t.endsWith("%")&&Me(t.slice(0,-1)),wl=t=>ZE.test(t),nv=()=>!0,WE=t=>KE.test(t)&&!PE.test(t),km=()=>!1,eC=t=>$E.test(t),tC=t=>JE.test(t),nC=t=>!pe(t)&&!ge(t),lC=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),rC=t=>ir(t,av,km),pe=t=>ev.test(t),Or=t=>ir(t,iv,WE),M0=t=>ir(t,dC,Me),aC=t=>ir(t,ov,nv),iC=t=>ir(t,uv,km),R0=t=>ir(t,lv,km),uC=t=>ir(t,rv,tC),Xo=t=>ir(t,sv,eC),ge=t=>tv.test(t),Ki=t=>qr(t,iv),oC=t=>qr(t,uv),L0=t=>qr(t,lv),sC=t=>qr(t,av),cC=t=>qr(t,rv),Qo=t=>qr(t,sv,!0),fC=t=>qr(t,ov,!0),ir=(t,r,a)=>{const u=ev.exec(t);return u?u[1]?r(u[1]):a(u[2]):!1},qr=(t,r,a=!1)=>{const u=tv.exec(t);return u?u[1]?r(u[1]):a:!1},lv=t=>t==="position"||t==="percentage",rv=t=>t==="image"||t==="url",av=t=>t==="length"||t==="size"||t==="bg-size",iv=t=>t==="length",dC=t=>t==="number",uv=t=>t==="family-name",ov=t=>t==="number"||t==="weight",sv=t=>t==="shadow",mC=()=>{const t=yt("color"),r=yt("font"),a=yt("text"),u=yt("font-weight"),o=yt("tracking"),f=yt("leading"),c=yt("breakpoint"),m=yt("container"),h=yt("spacing"),g=yt("radius"),y=yt("shadow"),p=yt("inset-shadow"),v=yt("text-shadow"),S=yt("drop-shadow"),E=yt("blur"),T=yt("perspective"),N=yt("aspect"),_=yt("ease"),M=yt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...P(),ge,pe],D=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],q=()=>[ge,pe,h],ie=()=>[lr,"full","auto",...q()],H=()=>[$n,"none","subgrid",ge,pe],ne=()=>["auto",{span:["full",$n,ge,pe]},$n,ge,pe],$=()=>[$n,"auto",ge,pe],ve=()=>["auto","min","max","fr",ge,pe],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...q()],le=()=>[lr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],de=()=>[m,lr,"screen","full","dvw","lvw","svw","min","max","fit",...q()],Ae=()=>[lr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],C=()=>[t,ge,pe],Xe=()=>[...P(),L0,R0,{position:[ge,pe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",sC,rC,{size:[ge,pe]}],j=()=>[ud,Ki,Or],I=()=>["","none","full",g,ge,pe],J=()=>["",Me,Ki,Or],ae=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Me,ud,L0,R0],Ce=()=>["","none",E,ge,pe],me=()=>["none",Me,ge,pe],Se=()=>["none",Me,ge,pe],Rt=()=>[Me,ge,pe],Bn=()=>[lr,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wl],breakpoint:[wl],color:[nv],container:[wl],"drop-shadow":[wl],ease:["in","out","in-out"],font:[nC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wl],shadow:[wl],spacing:["px",Me],text:[wl],"text-shadow":[wl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lr,pe,ge,N]}],container:["container"],"container-type":[{"@container":["","normal","size",ge,pe]}],"container-named":[lC],columns:[{columns:[Me,"auto",pe,ge,m]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[$n,"auto",ge,pe]}],basis:[{basis:[lr,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,lr,"auto","initial","none",pe]}],grow:[{grow:["",Me,ge,pe]}],shrink:[{shrink:["",Me,ge,pe]}],order:[{order:[$n,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mbs:[{mbs:X()}],mbe:[{mbe:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...Ae()]}],"min-block-size":[{"min-block":["auto",...Ae()]}],"max-block-size":[{"max-block":["none",...Ae()]}],w:[{w:[m,"screen",...le()]}],"min-w":[{"min-w":[m,"screen","none",...le()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[c]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh","none",...le()]}],"font-size":[{text:["base",a,Ki,Or]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,fC,aC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ud,pe]}],"font-family":[{font:[oC,iC,r]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ge,pe]}],"line-clamp":[{"line-clamp":[Me,"none",ge,M0]}],leading:[{leading:["none",f,...q()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",ge,Or]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Me,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"tab-size":[{tab:[$n,ge,pe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Xe()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$n,ge,pe],radial:["",ge,pe],conic:["",$n,ge,pe]},cC,uC]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,ge,pe]}],"outline-w":[{outline:["",Me,Ki,Or]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","inner","none",y,Qo,Xo]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",p,Qo,Xo]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Me,Or]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",v,Qo,Xo]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Me,ge,pe]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Xe()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Ce()}],brightness:[{brightness:[Me,ge,pe]}],contrast:[{contrast:[Me,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",S,Qo,Xo]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Me,ge,pe]}],"hue-rotate":[{"hue-rotate":[Me,ge,pe]}],invert:[{invert:["",Me,ge,pe]}],saturate:[{saturate:[Me,ge,pe]}],sepia:[{sepia:["",Me,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Me,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Me,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",ge,pe]}],ease:[{ease:["linear","initial",_,ge,pe]}],delay:[{delay:[Me,ge,pe]}],animate:[{animate:["none",M,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ge,pe]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Bn()}],"translate-x":[{"translate-x":Bn()}],"translate-y":[{"translate-y":Bn()}],"translate-z":[{"translate-z":Bn()}],"translate-none":["translate-none"],zoom:[{zoom:[$n,ge,pe]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,pe]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Me,Ki,Or,M0]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hC=FE(mC);function oe(...t){return hC(kE(t))}const pC={"needs-input":{label:"Needs Input",className:"bg-status-blocked/20 text-status-blocked border-status-blocked/30"},active:{label:"Running",className:"bg-status-running/20 text-status-running border-status-running/30",pulse:!0},completed:{label:"Done",className:"bg-muted text-muted-foreground border-border"}};function gC(t,r){return r.has(t.id)?"needs-input":t.mode==="live"||t.alive?"active":"completed"}function yC({status:t,className:r}){const a=pC[t];return b.jsxs("span",{className:oe("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",a.className,r),children:[a.pulse&&b.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-current"}),a.label]})}function bC(t){const r=Date.now(),a=new Date(t).getTime(),u=Math.floor((r-a)/1e3);if(u<60)return"just now";const o=Math.floor(u/60);if(o<60)return`${o}m ago`;const f=Math.floor(o/60);if(f<24)return`${f}h ago`;const c=Math.floor(f/24);return c<7?`${c}d ago`:new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function xC(t){const r=t.replace(/\/+$/,"").split("/");return r[r.length-1]??t}function vC({session:t,pendingSessionIds:r,selected:a,onSelect:u}){const o=gC(t,r),f=t.title??(t.mode==="live"?"New session":"Untitled session");return b.jsxs("button",{onClick:()=>u(t.id),className:oe("flex w-full flex-col gap-1.5 rounded-lg border p-3 text-left transition-colors","hover:bg-accent/50",a?"border-brand/50 bg-brand/5":"border-transparent"),children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:f}),b.jsx(yC,{status:o,className:"shrink-0"})]}),b.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&b.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:xC(t.cwd)}),b.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?bC(t.updatedAt):""})]})]})}const SC=[{id:"sessions",label:"Sessions",icon:b.jsx(fE,{className:"size-4"})},{id:"memory",label:"Memory",icon:b.jsx(bm,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:b.jsx(Wk,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:b.jsx(ex,{className:"size-4"})},{id:"settings",label:"Settings",icon:b.jsx(qx,{className:"size-4"})}];function wC({sessions:t,pendingSessionIds:r,selectedSessionId:a,onSelectSession:u,activeNav:o,onNavChange:f,collapsed:c,onToggleCollapse:m}){return b.jsxs("aside",{className:oe("flex h-full shrink-0 flex-col border-r bg-card transition-[width] duration-200",c?"w-14":"w-72"),children:[b.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!c&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),b.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),b.jsx("button",{onClick:m,className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",title:c?"Expand sidebar":"Collapse sidebar",children:c?b.jsx(hE,{className:"size-4"}):b.jsx(mE,{className:"size-4"})})]}),b.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:SC.map(h=>b.jsxs("button",{onClick:()=>f(h.id),className:oe("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors",o===h.id?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),title:c?h.label:void 0,children:[h.icon,!c&&b.jsx("span",{children:h.label})]},h.id))}),o==="sessions"&&!c&&b.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?b.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(h=>b.jsx(vC,{session:h,pendingSessionIds:r,selected:a===h.id,onSelect:u},h.id))})})]})}var U0=1,kC=.9,EC=.8,CC=.17,od=.1,sd=.999,TC=.9999,NC=.99,_C=/[\\\/_+.#"@\[\(\{&]/,AC=/[\\\/_+.#"@\[\(\{&]/g,zC=/[\s-]/,cv=/[\s-]/g;function Yd(t,r,a,u,o,f,c){if(f===r.length)return o===t.length?U0:NC;var m=`${o},${f}`;if(c[m]!==void 0)return c[m];for(var h=u.charAt(f),g=a.indexOf(h,o),y=0,p,v,S,E;g>=0;)p=Yd(t,r,a,u,g+1,f+1,c),p>y&&(g===o?p*=U0:_C.test(t.charAt(g-1))?(p*=EC,S=t.slice(o,g-1).match(AC),S&&o>0&&(p*=Math.pow(sd,S.length))):zC.test(t.charAt(g-1))?(p*=kC,E=t.slice(o,g-1).match(cv),E&&o>0&&(p*=Math.pow(sd,E.length))):(p*=CC,o>0&&(p*=Math.pow(sd,g-o))),t.charAt(g)!==r.charAt(f)&&(p*=TC)),(p<od&&a.charAt(g-1)===u.charAt(f+1)||u.charAt(f+1)===u.charAt(f)&&a.charAt(g-1)!==u.charAt(f))&&(v=Yd(t,r,a,u,g+1,f+2,c),v*od>p&&(p=v*od)),p>y&&(y=p),g=a.indexOf(h,g+1);return c[m]=y,y}function B0(t){return t.toLowerCase().replace(cv," ")}function jC(t,r,a){return t=a&&a.length>0?`${t+" "+a.join(" ")}`:t,Yd(t,r,B0(t),B0(r),0,0,{})}var OC=Object.defineProperty,Ka=(t,r)=>OC(t,"name",{value:r,configurable:!0}),fv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Rr(t,r,{checkForDefaultPrevented:a=!0}={}){return Ka(function(o){if(t==null||t(o),a===!1||!o||!o.defaultPrevented)return r==null?void 0:r(o)},"handleEvent")}Ka(Rr,"composeEventHandlers");function DC(t){var r;if(!fv)throw new Error("Cannot access window outside of the DOM");return((r=t==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)??window}Ka(DC,"getOwnerWindow");function Gd(t){if(!fv)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}Ka(Gd,"getOwnerDocument");function dv(t,r=!1){const{activeElement:a}=Gd(t);if(!(a!=null&&a.nodeName))return null;if(mv(a)&&a.contentDocument)return dv(a.contentDocument.body,r);if(r){const u=a.getAttribute("aria-activedescendant");if(u){const o=Gd(a).getElementById(u);if(o)return o}}return a}Ka(dv,"getActiveElement");function mv(t){return t.tagName==="IFRAME"}Ka(mv,"isFrame");var MC=Object.defineProperty,Em=(t,r)=>MC(t,"name",{value:r,configurable:!0});function Fd(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Em(Fd,"setRef");function Ur(...t){return r=>{let a=!1;const u=t.map(o=>{const f=Fd(o,r);return!a&&typeof f=="function"&&(a=!0),f});if(a)return()=>{for(let o=0;o<u.length;o++){const f=u[o];typeof f=="function"?f():Fd(t[o],null)}}}}Em(Ur,"composeRefs");function Pa(...t){return w.useCallback(Ur(...t),t)}Em(Pa,"useComposedRefs");var RC=Object.defineProperty,Tn=(t,r)=>RC(t,"name",{value:r,configurable:!0});function LC(t,r){const a=w.createContext(r);a.displayName=t+"Context";const u=Tn(f=>{const{children:c,...m}=f,h=w.useMemo(()=>m,Object.values(m));return b.jsx(a.Provider,{value:h,children:c})},"Provider");u.displayName=t+"Provider";function o(f,c={}){const{optional:m=!1}=c,h=w.useContext(a);if(h)return h;if(r!==void 0)return r;if(!m)throw new Error(`\`${f}\` must be used within \`${t}\``)}return Tn(o,"useContext"),[u,o]}Tn(LC,"createContext");function hv(t,r=[]){let a=[];function u(f,c){const m=w.createContext(c);m.displayName=f+"Context";const h=a.length;a=[...a,c];const g=Tn(p=>{var _;const{scope:v,children:S,...E}=p,T=((_=v==null?void 0:v[t])==null?void 0:_[h])||m,N=w.useMemo(()=>E,Object.values(E));return b.jsx(T.Provider,{value:N,children:S})},"Provider");g.displayName=f+"Provider";function y(p,v,S={}){var _;const{optional:E=!1}=S,T=((_=v==null?void 0:v[t])==null?void 0:_[h])||m,N=w.useContext(T);if(N)return N;if(c!==void 0)return c;if(!E)throw new Error(`\`${p}\` must be used within \`${f}\``)}return Tn(y,"useContext"),[g,y]}Tn(u,"createContext");const o=Tn(()=>{const f=a.map(c=>w.createContext(c));return Tn(function(m){const h=(m==null?void 0:m[t])||f;return w.useMemo(()=>({[`__scope${t}`]:{...m,[t]:h}}),[m,h])},"useScope")},"createScope");return o.scopeName=t,[u,pv(o,...r)]}Tn(hv,"createContextScope");function pv(...t){const r=t[0];if(t.length===1)return r;const a=Tn(()=>{const u=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return Tn(function(f){const c=u.reduce((m,{useScope:h,scopeName:g})=>{const p=h(f)[`__scope${g}`];return{...m,...p}},{});return w.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return a.scopeName=r.scopeName,a}Tn(pv,"composeContextScopes");var Xa=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},UC=Object.defineProperty,BC=(t,r)=>UC(t,"name",{value:r,configurable:!0}),HC=fu[" useId ".trim().toString()]||(()=>{}),qC=0;function tl(t){const[r,a]=w.useState(HC());return Xa(()=>{t||a(u=>u??String(qC++))},[t]),t||(r?`radix-${r}`:"")}BC(tl,"useId");var IC=Object.defineProperty,VC=(t,r)=>IC(t,"name",{value:r,configurable:!0}),H0=fu[" useEffectEvent ".trim().toString()],q0=fu[" useInsertionEffect ".trim().toString()];function gv(t){if(typeof H0=="function")return H0(t);const r=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof q0=="function"?q0(()=>{r.current=t}):Xa(()=>{r.current=t}),w.useMemo(()=>((...a)=>{var u;return(u=r.current)==null?void 0:u.call(r,...a)}),[])}VC(gv,"useEffectEvent");var YC=Object.defineProperty,du=(t,r)=>YC(t,"name",{value:r,configurable:!0}),GC=fu[" useInsertionEffect ".trim().toString()]||Xa;function yv({prop:t,defaultProp:r,onChange:a=du(()=>{},"onChange"),caller:u}){const[o,f,c]=bv({defaultProp:r,onChange:a}),m=t!==void 0,h=m?t:o,g=w.useCallback(y=>{var p;if(m){const v=xv(y)?y(t):y;v!==t&&((p=c.current)==null||p.call(c,v))}else f(y)},[m,t,f,c]);return[h,g]}du(yv,"useControllableState");function bv({defaultProp:t,onChange:r}){const[a,u]=w.useState(t),o=w.useRef(a),f=w.useRef(r);return GC(()=>{f.current=r},[r]),w.useEffect(()=>{var c;o.current!==a&&((c=f.current)==null||c.call(f,a),o.current=a)},[a,o]),[a,u,f]}du(bv,"useUncontrolledState");function xv(t){return typeof t=="function"}du(xv,"isFunction");var I0=Symbol("RADIX:SYNC_STATE");function FC(t,r,a,u){const{prop:o,defaultProp:f,onChange:c,caller:m}=r,h=o!==void 0,g=gv(c),y=[{...a,state:f}];u&&y.push(u);const[p,v]=w.useReducer((N,_)=>{if(_.type===I0)return{...N,state:_.state};const M=t(N,_);return h&&!Object.is(M.state,N.state)&&g(M.state),M},...y),S=p.state,E=w.useRef(S);w.useEffect(()=>{E.current!==S&&(E.current=S,h||g(S))},[S,E,h]);const T=w.useMemo(()=>o!==void 0?{...p,state:o}:p,[p,o]);return w.useEffect(()=>{h&&!Object.is(o,p.state)&&v({type:I0,state:o})},[o,p.state,h]),[T,v]}du(FC,"useControllableStateReducer");var vv=Qb(),XC=Object.defineProperty,Un=(t,r)=>XC(t,"name",{value:r,configurable:!0});function Cm(t){const r=w.forwardRef((a,u)=>{let{children:o,...f}=a,c=null,m=!1;const h=[];Xd(o)&&typeof Zo=="function"&&(o=Zo(o._payload)),w.Children.forEach(o,v=>{var S;if(Ev(v)){m=!0;const E=v;let T="child"in E.props?E.props.child:E.props.children;Xd(T)&&typeof Zo=="function"&&(T=Zo(T._payload)),c=ZC(E,T),h.push((S=c==null?void 0:c.props)==null?void 0:S.children)}else h.push(v)}),c?c=w.cloneElement(c,void 0,h):!m&&w.Children.count(o)===1&&w.isValidElement(o)&&(c=o);const g=c?kv(c):void 0,y=Pa(u,g);if(!c){if(o||o===0)throw new Error(m?$C(t):PC(t));return o}const p=wv(f,c.props??{});return c.type!==w.Fragment&&(p.ref=u?y:g),w.cloneElement(c,p)});return r.displayName=`${t}.Slot`,r}Un(Cm,"createSlot");var Sv=Symbol.for("radix.slottable");function QC(t){const r=Un(a=>"child"in a?a.children(a.child):a.children,"Slottable");return r.displayName=`${t}.Slottable`,r.__radixId=Sv,r}Un(QC,"createSlottable");var ZC=Un((t,r)=>{if("child"in t.props){const a=t.props.child;return w.isValidElement(a)?w.cloneElement(a,void 0,t.props.children(a.props.children)):null}return w.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function wv(t,r){const a={...r};for(const u in r){const o=t[u],f=r[u];/^on[A-Z]/.test(u)?o&&f?a[u]=(...m)=>{const h=f(...m);return o(...m),h}:o&&(a[u]=o):u==="style"?a[u]={...o,...f}:u==="className"&&(a[u]=[o,f].filter(Boolean).join(" "))}return{...t,...a}}Un(wv,"mergeProps");function kv(t){var u,o;let r=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}Un(kv,"getElementRef");function Ev(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Sv}Un(Ev,"isSlottable");var KC=Symbol.for("react.lazy");function Xd(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===KC&&"_payload"in t&&Cv(t._payload)}Un(Xd,"isLazyComponent");function Cv(t){return typeof t=="object"&&t!==null&&"then"in t}Un(Cv,"isPromiseLike");var PC=Un(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$C=Un(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Zo=fu[" use ".trim().toString()],JC=Object.defineProperty,WC=(t,r)=>JC(t,"name",{value:r,configurable:!0}),eT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nn=eT.reduce((t,r)=>{const a=Cm(`Primitive.${r}`),u=w.forwardRef((o,f)=>{const{asChild:c,...m}=o,h=c?a:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(h,{...m,ref:f})});return u.displayName=`Primitive.${r}`,{...t,[r]:u}},{});function Tv(t,r){t&&vv.flushSync(()=>t.dispatchEvent(r))}WC(Tv,"dispatchDiscreteCustomEvent");var tT=Object.defineProperty,nT=(t,r)=>tT(t,"name",{value:r,configurable:!0});function Qa(t){const r=w.useRef(t);return w.useEffect(()=>{r.current=t}),w.useMemo(()=>((...a)=>{var u;return(u=r.current)==null?void 0:u.call(r,...a)}),[])}nT(Qa,"useCallbackRef");var lT=Object.defineProperty,wt=(t,r)=>lT(t,"name",{value:r,configurable:!0}),Qd="dismissableLayer.update",rT="dismissableLayer.pointerDownOutside",aT="dismissableLayer.focusOutside",V0,Nv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),iT=w.forwardRef(wt(function(r,a){const{disableOutsidePointerEvents:u=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:m,onInteractOutside:h,onDismiss:g,...y}=r,p=w.useContext(Nv),[v,S]=w.useState(null),E=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=w.useState({}),N=Pa(a,S),_=Array.from(p.layers),[M]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),L=M?_.indexOf(M):-1,P=v?_.indexOf(v):-1,W=p.layersWithOutsidePointerEventsDisabled.size>0,D=P>=L,F=w.useRef(!1),q=Av($=>{c==null||c($),h==null||h($),$.defaultPrevented||g==null||g()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:w.useCallback($=>{if(!($ instanceof Node))return!1;const ve=[...p.branches].some(se=>se.contains($));return D&&!ve},[p.branches,D])}),ie=zv($=>{if(o&&F.current)return;const ve=$.target;[...p.branches].some(te=>te.contains(ve))||(m==null||m($),h==null||h($),$.defaultPrevented||g==null||g())},E),H=v?P===_.length-1:!1,ne=Qa($=>{$.key==="Escape"&&(f==null||f($),!$.defaultPrevented&&g&&($.preventDefault(),g()))});return w.useEffect(()=>{if(H)return E.addEventListener("keydown",ne,{capture:!0}),()=>E.removeEventListener("keydown",ne,{capture:!0})},[E,H,ne]),w.useEffect(()=>{if(v)return u&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(V0=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),Zd(),()=>{u&&(p.layersWithOutsidePointerEventsDisabled.delete(v),p.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=V0))}},[v,E,u,p]),w.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),Zd())},[v,p]),w.useEffect(()=>{const $=wt(()=>T({}),"handleUpdate");return document.addEventListener(Qd,$),()=>document.removeEventListener(Qd,$)},[]),b.jsx(Nn.div,{...y,ref:N,style:{pointerEvents:W?D?"auto":"none":void 0,...r.style},onFocusCapture:Rr(r.onFocusCapture,ie.onFocusCapture),onBlurCapture:Rr(r.onBlurCapture,ie.onBlurCapture),onPointerDownCapture:Rr(r.onPointerDownCapture,q.onPointerDownCapture)})},"DismissableLayer"));function _v(){const t=w.useContext(Nv),[r,a]=w.useState(null);return w.useEffect(()=>{if(r)return t.dismissableSurfaces.add(r),()=>{t.dismissableSurfaces.delete(r)}},[r,t.dismissableSurfaces]),a}wt(_v,"useDismissableLayerSurface");var uT=wt(()=>!0,"IS_TRUE");function Av(t,r){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:u=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:f,shouldHandlePointerDownOutside:c=uT}=r,m=Qa(t),h=w.useRef(!1),g=w.useRef(!1),y=w.useRef(new Map),p=w.useRef(()=>{});return w.useEffect(()=>{function v(){g.current=!1,o.current=!1,y.current.clear()}wt(v,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}wt(S,"isOutsideInteractionIntercepted");function E(L){if(!g.current)return;const P=L.target;P instanceof Node&&[...f].some(D=>D.contains(P))||y.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{g.current&&p.current()},0)}wt(E,"handleInteractionCapture");function T(L){g.current&&y.current.set(L.type,!1)}wt(T,"handleInteractionBubble");const N=wt(L=>{if(L.target&&!h.current){let P=function(){a.removeEventListener("click",p.current);const D=S();v(),D||Tm(rT,m,W,{discrete:!0})};if(wt(P,"handleAndDispatchPointerDownOutsideEvent"),!c(L.target)){a.removeEventListener("click",p.current),v(),h.current=!1;return}const W={originalEvent:L};g.current=!0,o.current=u&&L.button===0,y.current.clear(),!u||L.button!==0?P():(a.removeEventListener("click",p.current),p.current=P,a.addEventListener("click",p.current,{once:!0}))}else a.removeEventListener("click",p.current),v();h.current=!1},"handlePointerDown"),_=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const L of _)a.addEventListener(L,E,!0),a.addEventListener(L,T);const M=window.setTimeout(()=>{a.addEventListener("pointerdown",N)},0);return()=>{window.clearTimeout(M),a.removeEventListener("pointerdown",N),a.removeEventListener("click",p.current);for(const L of _)a.removeEventListener(L,E,!0),a.removeEventListener(L,T)}},[a,m,u,o,f,c]),{onPointerDownCapture:wt(()=>h.current=!0,"onPointerDownCapture")}}wt(Av,"usePointerDownOutside");function zv(t,r=globalThis==null?void 0:globalThis.document){const a=Qa(t),u=w.useRef(!1);return w.useEffect(()=>{const o=wt(f=>{f.target&&!u.current&&Tm(aT,a,{originalEvent:f},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",o),()=>r.removeEventListener("focusin",o)},[r,a]),{onFocusCapture:wt(()=>u.current=!0,"onFocusCapture"),onBlurCapture:wt(()=>u.current=!1,"onBlurCapture")}}wt(zv,"useFocusOutside");function Zd(){const t=new CustomEvent(Qd);document.dispatchEvent(t)}wt(Zd,"dispatchUpdate");function Tm(t,r,a,{discrete:u}){const o=a.originalEvent.target,f=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:a});r&&o.addEventListener(t,r,{once:!0}),u?Tv(o,f):o.dispatchEvent(f)}wt(Tm,"handleAndDispatchCustomEvent");var oT=Object.defineProperty,Vt=(t,r)=>oT(t,"name",{value:r,configurable:!0}),cd="focusScope.autoFocusOnMount",fd="focusScope.autoFocusOnUnmount",Y0={bubbles:!1,cancelable:!0},sT=w.forwardRef(Vt(function(r,a){const{loop:u=!1,trapped:o=!1,onMountAutoFocus:f,onUnmountAutoFocus:c,...m}=r,[h,g]=w.useState(null),y=Qa(f),p=Qa(c),v=w.useRef(null),S=Pa(a,g),E=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(o){let N=function(P){if(E.paused||!h)return;const W=P.target;h.contains(W)?v.current=W:kl(v.current,{select:!0})},_=function(P){if(E.paused||!h)return;const W=P.relatedTarget;W!==null&&(h.contains(W)||kl(v.current,{select:!0}))},M=function(P){if(document.activeElement===document.body)for(const D of P)D.removedNodes.length>0&&kl(h)};Vt(N,"handleFocusIn"),Vt(_,"handleFocusOut"),Vt(M,"handleMutations"),document.addEventListener("focusin",N),document.addEventListener("focusout",_);const L=new MutationObserver(M);return h&&L.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",_),L.disconnect()}}},[o,h,E.paused]),w.useEffect(()=>{if(h){G0.add(E);const N=document.activeElement;if(!h.contains(N)){const M=new CustomEvent(cd,Y0);h.addEventListener(cd,y),h.dispatchEvent(M),M.defaultPrevented||(jv(Lv(Nm(h)),{select:!0}),document.activeElement===N&&kl(h))}return()=>{h.removeEventListener(cd,y),setTimeout(()=>{const M=new CustomEvent(fd,Y0);h.addEventListener(fd,p),h.dispatchEvent(M),M.defaultPrevented||kl(N??document.body,{select:!0}),h.removeEventListener(fd,p),G0.remove(E)},0)}}},[h,y,p,E]);const T=w.useCallback(N=>{if(!u&&!o||E.paused)return;const _=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,M=document.activeElement;if(_&&M){const L=N.currentTarget,[P,W]=Ov(L);P&&W?!N.shiftKey&&M===W?(N.preventDefault(),u&&kl(P,{select:!0})):N.shiftKey&&M===P&&(N.preventDefault(),u&&kl(W,{select:!0})):M===L&&N.preventDefault()}},[u,o,E.paused]);return b.jsx(Nn.div,{tabIndex:-1,...m,ref:S,onKeyDown:T})},"FocusScope"));function jv(t,{select:r=!1}={}){const a=document.activeElement;for(const u of t)if(kl(u,{select:r}),document.activeElement!==a)return}Vt(jv,"focusFirst");function Ov(t){const r=Nm(t),a=Kd(r,t),u=Kd(r.reverse(),t);return[a,u]}Vt(Ov,"getTabbableEdges");function Nm(t){const r=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Vt(u=>{const o=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||o?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)r.push(a.currentNode);return r}Vt(Nm,"getTabbableCandidates");function Kd(t,r){const a=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const u of t)if(!(a?!u.checkVisibility({checkVisibilityCSS:!0}):Dv(u,{upTo:r})))return u}Vt(Kd,"findVisible");function Dv(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Vt(Dv,"isHidden");function Mv(t){return t instanceof HTMLInputElement&&"select"in t}Vt(Mv,"isSelectableInput");function kl(t,{select:r=!1}={}){if(t&&t.focus){const a=document.activeElement;t.focus({preventScroll:!0}),t!==a&&Mv(t)&&r&&t.select()}}Vt(kl,"focus");var G0=Rv();function Rv(){let t=[];return{add(r){const a=t[0];r!==a&&(a==null||a.pause()),t=Pd(t,r),t.unshift(r)},remove(r){var a;t=Pd(t,r),(a=t[0])==null||a.resume()}}}Vt(Rv,"createFocusScopesStack");function Pd(t,r){const a=[...t],u=a.indexOf(r);return u!==-1&&a.splice(u,1),a}Vt(Pd,"arrayRemove");function Lv(t){return t.filter(r=>r.tagName!=="A")}Vt(Lv,"removeLinks");var cT=Object.defineProperty,fT=(t,r)=>cT(t,"name",{value:r,configurable:!0}),dT=w.forwardRef(fT(function(r,a){var h;const{container:u,...o}=r,[f,c]=w.useState(!1);Xa(()=>c(!0),[]);const m=u||f&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?vv.createPortal(b.jsx(Nn.div,{...o,ref:a}),m):null},"Portal")),mT=Object.defineProperty,El=(t,r)=>mT(t,"name",{value:r,configurable:!0});function Uv(t,r){return w.useReducer((a,u)=>r[a][u]??a,t)}El(Uv,"useStateMachine");var _m=El(t=>{const{present:r,children:a}=t,u=Bv(r),o=typeof a=="function"?a({present:u.isPresent}):w.Children.only(a),f=Hv(u.ref,qv(o));return typeof a=="function"||u.isPresent?w.cloneElement(o,{ref:f}):null},"Presence");function Bv(t){const[r,a]=w.useState(),u=w.useRef(null),o=w.useRef(t),f=w.useRef("none"),c=w.useRef(void 0),m=t?"mounted":"unmounted",[h,g]=Uv(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{h==="mounted"?(f.current=c.current??qa(u.current),c.current=void 0):f.current="none"},[h]),Xa(()=>{const y=u.current,p=o.current;if(p!==t){const S=f.current,E=qa(y);t?(c.current=E,g("MOUNT")):E==="none"||(y==null?void 0:y.display)==="none"?g("UNMOUNT"):g(p&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),Xa(()=>{if(r){let y;const p=r.ownerDocument.defaultView??window,v=El(E=>{const N=qa(u.current).includes(CSS.escape(E.animationName));if(E.target===r&&N&&(g("ANIMATION_END"),!o.current)){const _=r.style.animationFillMode;r.style.animationFillMode="forwards",y=p.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=_)})}},"handleAnimationEnd"),S=El(E=>{E.target===r&&(f.current=qa(u.current))},"handleAnimationStart");return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{p.clearTimeout(y),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:w.useCallback(y=>{if(y){const p=getComputedStyle(y);u.current=p,c.current=qa(p)}else u.current=null;a(y)},[])}}El(Bv,"usePresence");function $d(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}El($d,"setRef");function Hv(...t){const r=w.useRef(t);return r.current=t,w.useCallback(a=>{const u=r.current;let o=!1;const f=u.map(c=>{const m=$d(c,a);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let c=0;c<f.length;c++){const m=f[c];typeof m=="function"?m():$d(u[c],null)}}},[])}El(Hv,"useStableComposedRefs");function qa(t){return(t==null?void 0:t.animationName)||"none"}El(qa,"getAnimationName");function qv(t){var u,o;let r=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}El(qv,"getElementRef");var hT=Object.defineProperty,Am=(t,r)=>hT(t,"name",{value:r,configurable:!0}),Ko=0,Jn=null;function pT(t){return zm(),t.children}Am(pT,"FocusGuards");function zm(){w.useEffect(()=>{Jn||(Jn={start:Jd(),end:Jd()});const{start:t,end:r}=Jn;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Ko++,()=>{Ko===1&&(Jn==null||Jn.start.remove(),Jn==null||Jn.end.remove(),Jn=null),Ko=Math.max(0,Ko-1)}},[])}Am(zm,"useFocusGuards");function Jd(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}Am(Jd,"createFocusGuard");var el=function(){return el=Object.assign||function(r){for(var a,u=1,o=arguments.length;u<o;u++){a=arguments[u];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(r[f]=a[f])}return r},el.apply(this,arguments)};function Iv(t,r){var a={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&r.indexOf(u)<0&&(a[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(t);o<u.length;o++)r.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(t,u[o])&&(a[u[o]]=t[u[o]]);return a}function gT(t,r,a){if(a||arguments.length===2)for(var u=0,o=r.length,f;u<o;u++)(f||!(u in r))&&(f||(f=Array.prototype.slice.call(r,0,u)),f[u]=r[u]);return t.concat(f||Array.prototype.slice.call(r))}var ss="right-scroll-bar-position",cs="width-before-scroll-bar",yT="with-scroll-bars-hidden",bT="--removed-body-scroll-bar-size";function dd(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function xT(t,r){var a=w.useState(function(){return{value:t,callback:r,facade:{get current(){return a.value},set current(u){var o=a.value;o!==u&&(a.value=u,a.callback(u,o))}}}})[0];return a.callback=r,a.facade}var vT=typeof window<"u"?w.useLayoutEffect:w.useEffect,F0=new WeakMap;function ST(t,r){var a=xT(null,function(u){return t.forEach(function(o){return dd(o,u)})});return vT(function(){var u=F0.get(a);if(u){var o=new Set(u),f=new Set(t),c=a.current;o.forEach(function(m){f.has(m)||dd(m,null)}),f.forEach(function(m){o.has(m)||dd(m,c)})}F0.set(a,t)},[t]),a}function wT(t){return t}function kT(t,r){r===void 0&&(r=wT);var a=[],u=!1,o={read:function(){if(u)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:t},useMedium:function(f){var c=r(f,u);return a.push(c),function(){a=a.filter(function(m){return m!==c})}},assignSyncMedium:function(f){for(u=!0;a.length;){var c=a;a=[],c.forEach(f)}a={push:function(m){return f(m)},filter:function(){return a}}},assignMedium:function(f){u=!0;var c=[];if(a.length){var m=a;a=[],m.forEach(f),c=a}var h=function(){var y=c;c=[],y.forEach(f)},g=function(){return Promise.resolve().then(h)};g(),a={push:function(y){c.push(y),g()},filter:function(y){return c=c.filter(y),a}}}};return o}function ET(t){t===void 0&&(t={});var r=kT(null);return r.options=el({async:!0,ssr:!1},t),r}var Vv=function(t){var r=t.sideCar,a=Iv(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var u=r.read();if(!u)throw new Error("Sidecar medium not found");return w.createElement(u,el({},a))};Vv.isSideCarExport=!0;function CT(t,r){return t.useMedium(r),Vv}var Yv=ET(),md=function(){},bs=w.forwardRef(function(t,r){var a=w.useRef(null),u=w.useState({onScrollCapture:md,onWheelCapture:md,onTouchMoveCapture:md}),o=u[0],f=u[1],c=t.forwardProps,m=t.children,h=t.className,g=t.removeScrollBar,y=t.enabled,p=t.shards,v=t.sideCar,S=t.noRelative,E=t.noIsolation,T=t.inert,N=t.allowPinchZoom,_=t.as,M=_===void 0?"div":_,L=t.gapMode,P=Iv(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),W=v,D=ST([a,r]),F=el(el({},P),o);return w.createElement(w.Fragment,null,y&&w.createElement(W,{sideCar:Yv,removeScrollBar:g,shards:p,noRelative:S,noIsolation:E,inert:T,setCallbacks:f,allowPinchZoom:!!N,lockRef:a,gapMode:L}),c?w.cloneElement(w.Children.only(m),el(el({},F),{ref:D})):w.createElement(M,el({},F,{className:h,ref:D}),m))});bs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bs.classNames={fullWidth:cs,zeroRight:ss};var TT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=TT();return r&&t.setAttribute("nonce",r),t}function _T(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function AT(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var zT=function(){var t=0,r=null;return{add:function(a){t==0&&(r=NT())&&(_T(r,a),AT(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},jT=function(){var t=zT();return function(r,a){w.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&a])}},Gv=function(){var t=jT(),r=function(a){var u=a.styles,o=a.dynamic;return t(u,o),null};return r},OT={left:0,top:0,right:0,gap:0},hd=function(t){return parseInt(t||"",10)||0},DT=function(t){var r=window.getComputedStyle(document.body),a=r[t==="padding"?"paddingLeft":"marginLeft"],u=r[t==="padding"?"paddingTop":"marginTop"],o=r[t==="padding"?"paddingRight":"marginRight"];return[hd(a),hd(u),hd(o)]},MT=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return OT;var r=DT(t),a=document.documentElement.clientWidth,u=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,u-a+r[2]-r[0])}},RT=Gv(),Fa="data-scroll-locked",LT=function(t,r,a,u){var o=t.left,f=t.top,c=t.right,m=t.gap;return a===void 0&&(a="margin"),`
335
+ .`.concat(yT,` {
336
+ overflow: hidden `).concat(u,`;
337
+ padding-right: `).concat(m,"px ").concat(u,`;
338
+ }
339
+ body[`).concat(Fa,`] {
340
+ overflow: hidden `).concat(u,`;
341
+ overscroll-behavior: contain;
342
+ `).concat([r&&"position: relative ".concat(u,";"),a==="margin"&&`
343
+ padding-left: `.concat(o,`px;
344
+ padding-top: `).concat(f,`px;
345
+ padding-right: `).concat(c,`px;
346
+ margin-left:0;
347
+ margin-top:0;
348
+ margin-right: `).concat(m,"px ").concat(u,`;
349
+ `),a==="padding"&&"padding-right: ".concat(m,"px ").concat(u,";")].filter(Boolean).join(""),`
350
+ }
351
+
352
+ .`).concat(ss,` {
353
+ right: `).concat(m,"px ").concat(u,`;
354
+ }
355
+
356
+ .`).concat(cs,` {
357
+ margin-right: `).concat(m,"px ").concat(u,`;
358
+ }
359
+
360
+ .`).concat(ss," .").concat(ss,` {
361
+ right: 0 `).concat(u,`;
362
+ }
363
+
364
+ .`).concat(cs," .").concat(cs,` {
365
+ margin-right: 0 `).concat(u,`;
366
+ }
367
+
368
+ body[`).concat(Fa,`] {
369
+ `).concat(bT,": ").concat(m,`px;
370
+ }
371
+ `)},X0=function(){var t=parseInt(document.body.getAttribute(Fa)||"0",10);return isFinite(t)?t:0},UT=function(){w.useEffect(function(){return document.body.setAttribute(Fa,(X0()+1).toString()),function(){var t=X0()-1;t<=0?document.body.removeAttribute(Fa):document.body.setAttribute(Fa,t.toString())}},[])},BT=function(t){var r=t.noRelative,a=t.noImportant,u=t.gapMode,o=u===void 0?"margin":u;UT();var f=w.useMemo(function(){return MT(o)},[o]);return w.createElement(RT,{styles:LT(f,!r,o,a?"":"!important")})},Wd=!1;if(typeof window<"u")try{var Po=Object.defineProperty({},"passive",{get:function(){return Wd=!0,!0}});window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{Wd=!1}var Ma=Wd?{passive:!1}:!1,HT=function(t){return t.tagName==="TEXTAREA"},Fv=function(t,r){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!HT(t)&&a[r]==="visible")},qT=function(t){return Fv(t,"overflowY")},IT=function(t){return Fv(t,"overflowX")},Q0=function(t,r){var a=r.ownerDocument,u=r;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var o=Xv(t,u);if(o){var f=Qv(t,u),c=f[1],m=f[2];if(c>m)return!0}u=u.parentNode}while(u&&u!==a.body);return!1},VT=function(t){var r=t.scrollTop,a=t.scrollHeight,u=t.clientHeight;return[r,a,u]},YT=function(t){var r=t.scrollLeft,a=t.scrollWidth,u=t.clientWidth;return[r,a,u]},Xv=function(t,r){return t==="v"?qT(r):IT(r)},Qv=function(t,r){return t==="v"?VT(r):YT(r)},GT=function(t,r){return t==="h"&&r==="rtl"?-1:1},FT=function(t,r,a,u,o){var f=GT(t,window.getComputedStyle(r).direction),c=f*u,m=a.target,h=r.contains(m),g=!1,y=c>0,p=0,v=0;do{if(!m)break;var S=Qv(t,m),E=S[0],T=S[1],N=S[2],_=T-N-f*E;(E||_)&&Xv(t,m)&&(p+=_,v+=E);var M=m.parentNode;m=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!h&&m!==document.body||h&&(r.contains(m)||r===m));return(y&&Math.abs(p)<1||!y&&Math.abs(v)<1)&&(g=!0),g},$o=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Z0=function(t){return[t.deltaX,t.deltaY]},K0=function(t){return t&&"current"in t?t.current:t},XT=function(t,r){return t[0]===r[0]&&t[1]===r[1]},QT=function(t){return`
372
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
373
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
374
+ `)},ZT=0,Ra=[];function KT(t){var r=w.useRef([]),a=w.useRef([0,0]),u=w.useRef(),o=w.useState(ZT++)[0],f=w.useState(Gv)[0],c=w.useRef(t);w.useEffect(function(){c.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var T=gT([t.lockRef.current],(t.shards||[]).map(K0),!0).filter(Boolean);return T.forEach(function(N){return N.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),T.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=w.useCallback(function(T,N){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!c.current.allowPinchZoom;var _=$o(T),M=a.current,L="deltaX"in T?T.deltaX:M[0]-_[0],P="deltaY"in T?T.deltaY:M[1]-_[1],W,D=T.target,F=Math.abs(L)>Math.abs(P)?"h":"v";if("touches"in T&&F==="h"&&D.type==="range")return!1;var q=window.getSelection(),ie=q&&q.anchorNode,H=ie?ie===D||ie.contains(D):!1;if(H)return!1;var ne=Q0(F,D);if(!ne)return!0;if(ne?W=F:(W=F==="v"?"h":"v",ne=Q0(F,D)),!ne)return!1;if(!u.current&&"changedTouches"in T&&(L||P)&&(u.current=W),!W)return!0;var $=u.current||W;return FT($,N,T,$==="h"?L:P)},[]),h=w.useCallback(function(T){var N=T;if(!(!Ra.length||Ra[Ra.length-1]!==f)){var _="deltaY"in N?Z0(N):$o(N),M=r.current.filter(function(W){return W.name===N.type&&(W.target===N.target||N.target===W.shadowParent)&&XT(W.delta,_)})[0];if(M&&M.should){N.cancelable&&N.preventDefault();return}if(!M){var L=(c.current.shards||[]).map(K0).filter(Boolean).filter(function(W){return W.contains(N.target)}),P=L.length>0?m(N,L[0]):!c.current.noIsolation;P&&N.cancelable&&N.preventDefault()}}},[]),g=w.useCallback(function(T,N,_,M){var L={name:T,delta:N,target:_,should:M,shadowParent:PT(_)};r.current.push(L),setTimeout(function(){r.current=r.current.filter(function(P){return P!==L})},1)},[]),y=w.useCallback(function(T){a.current=$o(T),u.current=void 0},[]),p=w.useCallback(function(T){g(T.type,Z0(T),T.target,m(T,t.lockRef.current))},[]),v=w.useCallback(function(T){g(T.type,$o(T),T.target,m(T,t.lockRef.current))},[]);w.useEffect(function(){return Ra.push(f),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",h,Ma),document.addEventListener("touchmove",h,Ma),document.addEventListener("touchstart",y,Ma),function(){Ra=Ra.filter(function(T){return T!==f}),document.removeEventListener("wheel",h,Ma),document.removeEventListener("touchmove",h,Ma),document.removeEventListener("touchstart",y,Ma)}},[]);var S=t.removeScrollBar,E=t.inert;return w.createElement(w.Fragment,null,E?w.createElement(f,{styles:QT(o)}):null,S?w.createElement(BT,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function PT(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const $T=CT(Yv,KT);var Zv=w.forwardRef(function(t,r){return w.createElement(bs,el({},t,{ref:r,sideCar:$T}))});Zv.classNames=bs.classNames;var JT=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},La=new WeakMap,Jo=new WeakMap,Wo={},pd=0,Kv=function(t){return t&&(t.host||Kv(t.parentNode))},WT=function(t,r){return r.map(function(a){if(t.contains(a))return a;var u=Kv(a);return u&&t.contains(u)?u:(console.error("aria-hidden",a,"in not contained inside",t,". Doing nothing"),null)}).filter(function(a){return!!a})},eN=function(t,r,a,u){var o=WT(r,Array.isArray(t)?t:[t]);Wo[a]||(Wo[a]=new WeakMap);var f=Wo[a],c=[],m=new Set,h=new Set(o),g=function(p){!p||m.has(p)||(m.add(p),g(p.parentNode))};o.forEach(g);var y=function(p){!p||h.has(p)||Array.prototype.forEach.call(p.children,function(v){if(m.has(v))y(v);else try{var S=v.getAttribute(u),E=S!==null&&S!=="false",T=(La.get(v)||0)+1,N=(f.get(v)||0)+1;La.set(v,T),f.set(v,N),c.push(v),T===1&&E&&Jo.set(v,!0),N===1&&v.setAttribute(a,"true"),E||v.setAttribute(u,"true")}catch(_){console.error("aria-hidden: cannot operate on ",v,_)}})};return y(r),m.clear(),pd++,function(){c.forEach(function(p){var v=La.get(p)-1,S=f.get(p)-1;La.set(p,v),f.set(p,S),v||(Jo.has(p)||p.removeAttribute(u),Jo.delete(p)),S||p.removeAttribute(a)}),pd--,pd||(La=new WeakMap,La=new WeakMap,Jo=new WeakMap,Wo={})}},tN=function(t,r,a){a===void 0&&(a="data-aria-hidden");var u=Array.from(Array.isArray(t)?t:[t]),o=JT(t);return o?(u.push.apply(u,Array.from(o.querySelectorAll("[aria-live], script"))),eN(u,o,a,"aria-hidden")):function(){return null}},nN=Object.defineProperty,Cl=(t,r)=>nN(t,"name",{value:r,configurable:!0}),jm="Dialog",[Pv,MD]=hv(jm),[lN,Ir]=Pv(jm),rN=Cl(t=>{const{__scopeDialog:r,children:a,open:u,defaultOpen:o,onOpenChange:f,modal:c=!0}=t,m=w.useRef(null),h=w.useRef(null),[g,y]=yv({prop:u,defaultProp:o??!1,onChange:f,caller:jm}),[p,v]=w.useState(0),[S,E]=w.useState(0);return b.jsx(lN,{scope:r,triggerRef:m,contentRef:h,contentId:tl(),titleId:tl(),descriptionId:tl(),titlePresent:p>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:E,open:g,onOpenChange:y,onOpenToggle:w.useCallback(()=>y(T=>!T),[y]),modal:c,children:a})},"Dialog"),$v="DialogPortal",[aN,Jv]=Pv($v,{forceMount:void 0}),iN=Cl(t=>{const{__scopeDialog:r,forceMount:a,children:u,container:o}=t,f=Ir($v,r);return b.jsx(aN,{scope:r,forceMount:a,children:w.Children.map(u,c=>b.jsx(_m,{present:a||f.open,children:b.jsx(dT,{asChild:!0,container:o,children:c})}))})},"DialogPortal"),em="DialogOverlay",uN=w.forwardRef(Cl(function(r,a){const u=Jv(em,r.__scopeDialog),{forceMount:o=u.forceMount,...f}=r,c=Ir(em,r.__scopeDialog);return c.modal?b.jsx(_m,{present:o||c.open,children:b.jsx(sN,{...f,ref:a})}):null},"DialogOverlay")),oN=Cm("DialogOverlay.RemoveScroll"),sN=w.forwardRef(Cl(function(r,a){const{__scopeDialog:u,...o}=r,f=Ir(em,u),c=_v(),m=Pa(a,c);return b.jsx(Zv,{as:oN,allowPinchZoom:!0,shards:[f.contentRef],children:b.jsx(Nn.div,{"data-state":Om(f.open),...o,ref:m,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),ou="DialogContent",cN=w.forwardRef(Cl(function(r,a){const u=Jv(ou,r.__scopeDialog),{forceMount:o=u.forceMount,...f}=r,c=Ir(ou,r.__scopeDialog);return b.jsx(_m,{present:o||c.open,children:c.modal?b.jsx(fN,{...f,ref:a}):b.jsx(dN,{...f,ref:a})})},"DialogContent")),fN=w.forwardRef(Cl(function(r,a){const u=Ir(ou,r.__scopeDialog),o=w.useRef(null),f=Pa(a,u.contentRef,o);return w.useEffect(()=>{const c=o.current;if(c)return tN(c)},[]),b.jsx(Wv,{...r,ref:f,trapFocus:u.open,disableOutsidePointerEvents:u.open,onCloseAutoFocus:Rr(r.onCloseAutoFocus,c=>{var m;c.preventDefault(),(m=u.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Rr(r.onPointerDownOutside,c=>{const m=c.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&c.preventDefault()}),onFocusOutside:Rr(r.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),dN=w.forwardRef(Cl(function(r,a){const u=Ir(ou,r.__scopeDialog),o=w.useRef(!1),f=w.useRef(!1);return b.jsx(Wv,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var m,h;(m=r.onCloseAutoFocus)==null||m.call(r,c),c.defaultPrevented||(o.current||(h=u.triggerRef.current)==null||h.focus(),c.preventDefault()),o.current=!1,f.current=!1},onInteractOutside:c=>{var g,y;(g=r.onInteractOutside)==null||g.call(r,c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const m=c.target;((y=u.triggerRef.current)==null?void 0:y.contains(m))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&f.current&&c.preventDefault()}})},"DialogContentNonModal")),Wv=w.forwardRef(Cl(function(r,a){const{__scopeDialog:u,trapFocus:o,onOpenAutoFocus:f,onCloseAutoFocus:c,...m}=r,h=Ir(ou,u);return zm(),b.jsx(b.Fragment,{children:b.jsx(sT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:f,onUnmountAutoFocus:c,children:b.jsx(iT,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":Om(h.open),...m,ref:a,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl"));function Om(t){return t?"open":"closed"}Cl(Om,"getState");var Pi='[cmdk-group=""]',gd='[cmdk-group-items=""]',mN='[cmdk-group-heading=""]',e1='[cmdk-item=""]',P0=`${e1}:not([aria-disabled="true"])`,tm="cmdk-item-select",Ia="data-value",hN=(t,r,a)=>jC(t,r,a),t1=w.createContext(void 0),mu=()=>w.useContext(t1),n1=w.createContext(void 0),Dm=()=>w.useContext(n1),l1=w.createContext(void 0),r1=w.forwardRef((t,r)=>{let a=Va(()=>{var ee,A;return{search:"",value:(A=(ee=t.value)!=null?ee:t.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=Va(()=>new Set),o=Va(()=>new Map),f=Va(()=>new Map),c=Va(()=>new Set),m=a1(t),{label:h,children:g,value:y,onValueChange:p,filter:v,shouldFilter:S,loop:E,disablePointerSelection:T=!1,vimBindings:N=!0,..._}=t,M=tl(),L=tl(),P=tl(),W=w.useRef(null),D=CN();Br(()=>{if(y!==void 0){let ee=y.trim();a.current.value=ee,F.emit()}},[y]),Br(()=>{D(6,ve)},[]);let F=w.useMemo(()=>({subscribe:ee=>(c.current.add(ee),()=>c.current.delete(ee)),snapshot:()=>a.current,setState:(ee,A,j)=>{var I,J,ae,be;if(!Object.is(a.current[ee],A)){if(a.current[ee]=A,ee==="search")$(),H(),D(1,ne);else if(ee==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let fe=document.getElementById(P);fe?fe.focus():(I=document.getElementById(M))==null||I.focus()}if(D(7,()=>{var fe;a.current.selectedItemId=(fe=se())==null?void 0:fe.id,F.emit()}),j||D(5,ve),((J=m.current)==null?void 0:J.value)!==void 0){let fe=A??"";(be=(ae=m.current).onValueChange)==null||be.call(ae,fe);return}}F.emit()}},emit:()=>{c.current.forEach(ee=>ee())}}),[]),q=w.useMemo(()=>({value:(ee,A,j)=>{var I;A!==((I=f.current.get(ee))==null?void 0:I.value)&&(f.current.set(ee,{value:A,keywords:j}),a.current.filtered.items.set(ee,ie(A,j)),D(2,()=>{H(),F.emit()}))},item:(ee,A)=>(u.current.add(ee),A&&(o.current.has(A)?o.current.get(A).add(ee):o.current.set(A,new Set([ee]))),D(3,()=>{$(),H(),a.current.value||ne(),F.emit()}),()=>{f.current.delete(ee),u.current.delete(ee),a.current.filtered.items.delete(ee);let j=se();D(4,()=>{$(),(j==null?void 0:j.getAttribute("id"))===ee&&ne(),F.emit()})}),group:ee=>(o.current.has(ee)||o.current.set(ee,new Set),()=>{f.current.delete(ee),o.current.delete(ee)}),filter:()=>m.current.shouldFilter,label:h||t["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:M,inputId:P,labelId:L,listInnerRef:W}),[]);function ie(ee,A){var j,I;let J=(I=(j=m.current)==null?void 0:j.filter)!=null?I:hN;return ee?J(ee,a.current.search,A):0}function H(){if(!a.current.search||m.current.shouldFilter===!1)return;let ee=a.current.filtered.items,A=[];a.current.filtered.groups.forEach(I=>{let J=o.current.get(I),ae=0;J.forEach(be=>{let fe=ee.get(be);ae=Math.max(fe,ae)}),A.push([I,ae])});let j=W.current;te().sort((I,J)=>{var ae,be;let fe=I.getAttribute("id"),Ce=J.getAttribute("id");return((ae=ee.get(Ce))!=null?ae:0)-((be=ee.get(fe))!=null?be:0)}).forEach(I=>{let J=I.closest(gd);J?J.appendChild(I.parentElement===J?I:I.closest(`${gd} > *`)):j.appendChild(I.parentElement===j?I:I.closest(`${gd} > *`))}),A.sort((I,J)=>J[1]-I[1]).forEach(I=>{var J;let ae=(J=W.current)==null?void 0:J.querySelector(`${Pi}[${Ia}="${encodeURIComponent(I[0])}"]`);ae==null||ae.parentElement.appendChild(ae)})}function ne(){let ee=te().find(j=>j.getAttribute("aria-disabled")!=="true"),A=ee==null?void 0:ee.getAttribute(Ia);F.setState("value",A||void 0)}function $(){var ee,A,j,I;if(!a.current.search||m.current.shouldFilter===!1){a.current.filtered.count=u.current.size;return}a.current.filtered.groups=new Set;let J=0;for(let ae of u.current){let be=(A=(ee=f.current.get(ae))==null?void 0:ee.value)!=null?A:"",fe=(I=(j=f.current.get(ae))==null?void 0:j.keywords)!=null?I:[],Ce=ie(be,fe);a.current.filtered.items.set(ae,Ce),Ce>0&&J++}for(let[ae,be]of o.current)for(let fe of be)if(a.current.filtered.items.get(fe)>0){a.current.filtered.groups.add(ae);break}a.current.filtered.count=J}function ve(){var ee,A,j;let I=se();I&&(((ee=I.parentElement)==null?void 0:ee.firstChild)===I&&((j=(A=I.closest(Pi))==null?void 0:A.querySelector(mN))==null||j.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function se(){var ee;return(ee=W.current)==null?void 0:ee.querySelector(`${e1}[aria-selected="true"]`)}function te(){var ee;return Array.from(((ee=W.current)==null?void 0:ee.querySelectorAll(P0))||[])}function X(ee){let A=te()[ee];A&&F.setState("value",A.getAttribute(Ia))}function le(ee){var A;let j=se(),I=te(),J=I.findIndex(be=>be===j),ae=I[J+ee];(A=m.current)!=null&&A.loop&&(ae=J+ee<0?I[I.length-1]:J+ee===I.length?I[0]:I[J+ee]),ae&&F.setState("value",ae.getAttribute(Ia))}function de(ee){let A=se(),j=A==null?void 0:A.closest(Pi),I;for(;j&&!I;)j=ee>0?kN(j,Pi):EN(j,Pi),I=j==null?void 0:j.querySelector(P0);I?F.setState("value",I.getAttribute(Ia)):le(ee)}let Ae=()=>X(te().length-1),C=ee=>{ee.preventDefault(),ee.metaKey?Ae():ee.altKey?de(1):le(1)},Xe=ee=>{ee.preventDefault(),ee.metaKey?X(0):ee.altKey?de(-1):le(-1)};return w.createElement(Nn.div,{ref:r,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:ee=>{var A;(A=_.onKeyDown)==null||A.call(_,ee);let j=ee.nativeEvent.isComposing||ee.keyCode===229;if(!(ee.defaultPrevented||j))switch(ee.key){case"n":case"j":{N&&ee.ctrlKey&&C(ee);break}case"ArrowDown":{C(ee);break}case"p":case"k":{N&&ee.ctrlKey&&Xe(ee);break}case"ArrowUp":{Xe(ee);break}case"Home":{ee.preventDefault(),X(0);break}case"End":{ee.preventDefault(),Ae();break}case"Enter":{ee.preventDefault();let I=se();if(I){let J=new Event(tm);I.dispatchEvent(J)}}}}},w.createElement("label",{"cmdk-label":"",htmlFor:q.inputId,id:q.labelId,style:NN},h),xs(t,ee=>w.createElement(n1.Provider,{value:F},w.createElement(t1.Provider,{value:q},ee))))}),pN=w.forwardRef((t,r)=>{var a,u;let o=tl(),f=w.useRef(null),c=w.useContext(l1),m=mu(),h=a1(t),g=(u=(a=h.current)==null?void 0:a.forceMount)!=null?u:c==null?void 0:c.forceMount;Br(()=>{if(!g)return m.item(o,c==null?void 0:c.id)},[g]);let y=i1(o,f,[t.value,t.children,f],t.keywords),p=Dm(),v=ar(D=>D.value&&D.value===y.current),S=ar(D=>g||m.filter()===!1?!0:D.search?D.filtered.items.get(o)>0:!0);w.useEffect(()=>{let D=f.current;if(!(!D||t.disabled))return D.addEventListener(tm,E),()=>D.removeEventListener(tm,E)},[S,t.onSelect,t.disabled]);function E(){var D,F;T(),(F=(D=h.current).onSelect)==null||F.call(D,y.current)}function T(){p.setState("value",y.current,!0)}if(!S)return null;let{disabled:N,value:_,onSelect:M,forceMount:L,keywords:P,...W}=t;return w.createElement(Nn.div,{ref:Ur(f,r),...W,id:o,"cmdk-item":"",role:"option","aria-disabled":!!N,"aria-selected":!!v,"data-disabled":!!N,"data-selected":!!v,onPointerMove:N||m.getDisablePointerSelection()?void 0:T,onClick:N?void 0:E},t.children)}),gN=w.forwardRef((t,r)=>{let{heading:a,children:u,forceMount:o,...f}=t,c=tl(),m=w.useRef(null),h=w.useRef(null),g=tl(),y=mu(),p=ar(S=>o||y.filter()===!1?!0:S.search?S.filtered.groups.has(c):!0);Br(()=>y.group(c),[]),i1(c,m,[t.value,t.heading,h]);let v=w.useMemo(()=>({id:c,forceMount:o}),[o]);return w.createElement(Nn.div,{ref:Ur(m,r),...f,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},a&&w.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:g},a),xs(t,S=>w.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?g:void 0},w.createElement(l1.Provider,{value:v},S))))}),yN=w.forwardRef((t,r)=>{let{alwaysRender:a,...u}=t,o=w.useRef(null),f=ar(c=>!c.search);return!a&&!f?null:w.createElement(Nn.div,{ref:Ur(o,r),...u,"cmdk-separator":"",role:"separator"})}),bN=w.forwardRef((t,r)=>{let{onValueChange:a,...u}=t,o=t.value!=null,f=Dm(),c=ar(g=>g.search),m=ar(g=>g.selectedItemId),h=mu();return w.useEffect(()=>{t.value!=null&&f.setState("search",t.value)},[t.value]),w.createElement(Nn.input,{ref:r,...u,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":m,id:h.inputId,type:"text",value:o?t.value:c,onChange:g=>{o||f.setState("search",g.target.value),a==null||a(g.target.value)}})}),xN=w.forwardRef((t,r)=>{let{children:a,label:u="Suggestions",...o}=t,f=w.useRef(null),c=w.useRef(null),m=ar(g=>g.selectedItemId),h=mu();return w.useEffect(()=>{if(c.current&&f.current){let g=c.current,y=f.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let S=g.offsetHeight;y.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return v.observe(g),()=>{cancelAnimationFrame(p),v.unobserve(g)}}},[]),w.createElement(Nn.div,{ref:Ur(f,r),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":u,id:h.listId},xs(t,g=>w.createElement("div",{ref:Ur(c,h.listInnerRef),"cmdk-list-sizer":""},g)))}),vN=w.forwardRef((t,r)=>{let{open:a,onOpenChange:u,overlayClassName:o,contentClassName:f,container:c,...m}=t;return w.createElement(rN,{open:a,onOpenChange:u},w.createElement(iN,{container:c},w.createElement(uN,{"cmdk-overlay":"",className:o}),w.createElement(cN,{"aria-label":t.label,"cmdk-dialog":"",className:f},w.createElement(r1,{ref:r,...m}))))}),SN=w.forwardRef((t,r)=>ar(a=>a.filtered.count===0)?w.createElement(Nn.div,{ref:r,...t,"cmdk-empty":"",role:"presentation"}):null),wN=w.forwardRef((t,r)=>{let{progress:a,children:u,label:o="Loading...",...f}=t;return w.createElement(Nn.div,{ref:r,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},xs(t,c=>w.createElement("div",{"aria-hidden":!0},c)))}),Ua=Object.assign(r1,{List:xN,Item:pN,Input:bN,Group:gN,Separator:yN,Dialog:vN,Empty:SN,Loading:wN});function kN(t,r){let a=t.nextElementSibling;for(;a;){if(a.matches(r))return a;a=a.nextElementSibling}}function EN(t,r){let a=t.previousElementSibling;for(;a;){if(a.matches(r))return a;a=a.previousElementSibling}}function a1(t){let r=w.useRef(t);return Br(()=>{r.current=t}),r}var Br=typeof window>"u"?w.useEffect:w.useLayoutEffect;function Va(t){let r=w.useRef();return r.current===void 0&&(r.current=t()),r}function ar(t){let r=Dm(),a=()=>t(r.snapshot());return w.useSyncExternalStore(r.subscribe,a,a)}function i1(t,r,a,u=[]){let o=w.useRef(),f=mu();return Br(()=>{var c;let m=(()=>{var g;for(let y of a){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(g=y.current.textContent)==null?void 0:g.trim():o.current}})(),h=u.map(g=>g.trim());f.value(t,m,h),(c=r.current)==null||c.setAttribute(Ia,m),o.current=m}),o}var CN=()=>{let[t,r]=w.useState(),a=Va(()=>new Map);return Br(()=>{a.current.forEach(u=>u()),a.current=new Map},[t]),(u,o)=>{a.current.set(u,o),r({})}};function TN(t){let r=t.type;return typeof r=="function"?r(t.props):"render"in r?r.render(t.props):t}function xs({asChild:t,children:r},a){return t&&w.isValidElement(r)?w.cloneElement(TN(r),{ref:r.ref},a(r.props.children)):a(r)}var NN={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const _N=[{label:"Sessions",icon:oE,value:"sessions"},{label:"Memory",icon:bm,value:"memory"},{label:"Schedules",icon:Jk,value:"schedules"},{label:"Jobs",icon:$k,value:"jobs"},{label:"Settings",icon:qx,value:"settings"}];function AN({onNavigate:t}){const[r,a]=w.useState(!1);w.useEffect(()=>{const o=f=>{(f.metaKey||f.ctrlKey)&&f.key==="k"&&(f.preventDefault(),a(c=>!c))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[]);const u=o=>{a(!1),t(o)};return r?b.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>a(!1),children:[b.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),b.jsx("div",{className:oe("relative z-10 w-full max-w-lg rounded-xl border border-border","bg-popover text-popover-foreground shadow-2xl","overflow-hidden"),onClick:o=>o.stopPropagation(),children:b.jsxs(Ua,{children:[b.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[b.jsxs("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"m21 21-4.35-4.35"})]}),b.jsx(Ua.Input,{autoFocus:!0,placeholder:"Search commands…",className:oe("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),b.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),b.jsxs(Ua.List,{className:"max-h-64 overflow-y-auto py-2",children:[b.jsx(Ua.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),b.jsx(Ua.Group,{heading:"Navigation",className:"px-2",children:_N.map(({label:o,icon:f,value:c})=>b.jsxs(Ua.Item,{value:c,onSelect:()=>u(c),className:oe("flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-sm","text-popover-foreground transition-colors","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[b.jsx(f,{className:"h-4 w-4 text-muted-foreground"}),o]},c))})]})]})})]}):null}const zN={1:"sessions",2:"memory",3:"schedules",4:"jobs"};function jN({onNavigate:t}){return w.useEffect(()=>{function r(a){if(!(a.metaKey||a.ctrlKey))return;const u=zN[a.key];u&&(a.preventDefault(),t(u))}return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t]),null}const $0=200;function u1({text:t,isStreaming:r=!1}){const[a,u]=w.useState(!1),o=t.length>$0,f=o&&!a?t.slice(0,$0)+"…":t;return b.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[b.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-3 py-2 text-xs text-muted-foreground select-none hover:text-foreground",children:[b.jsx(bm,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",r?"animate-pulse":""].filter(Boolean).join(" ")}),b.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&b.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),r&&b.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(c=>b.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${c}ms`}},c))})]}),b.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[b.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:f}),o&&b.jsx("button",{type:"button",onClick:c=>{c.preventDefault(),u(m=>!m)},className:"mt-1.5 text-[10px] text-brand/60 hover:text-brand/80 transition-colors",children:a?"Show less":"Show more"})]})]})}function ON({open:t,children:r}){return b.jsx("div",{className:oe("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:b.jsx("div",{className:"min-h-0 overflow-hidden",children:r})})}function DN({diff:t}){const r=t.split(`
375
+ `);return b.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:b.jsx("table",{className:"w-full border-collapse",children:b.jsx("tbody",{children:r.map((a,u)=>{const o=a.startsWith("+")&&!a.startsWith("+++"),f=a.startsWith("-")&&!a.startsWith("---"),c=a.startsWith("@@"),m=a.startsWith("+++")||a.startsWith("---");return b.jsxs("tr",{className:oe(o&&"bg-status-running/15 text-status-running",f&&"bg-status-failed/15 text-status-failed",c&&"bg-muted text-muted-foreground",m&&"text-muted-foreground",!o&&!f&&!c&&!m&&"text-foreground"),children:[b.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:u+1}),b.jsx("td",{className:"w-full whitespace-pre px-2 py-0",children:a||" "})]},u)})})})})}const nm="afk_web_token",MN="__AFK_WEB_TOKEN__";let lu=null;function RN(){lu=null;try{sessionStorage.removeItem(nm)}catch{}}function o1(){if(lu)return lu;const t=document.querySelector('meta[name="afk-token"]'),r=t==null?void 0:t.content;if(r&&r!==MN){lu=r;try{sessionStorage.setItem(nm,r)}catch{}return LN(),r}try{const a=sessionStorage.getItem(nm);if(a)return lu=a,a}catch{}return""}function LN(){const t=new URL(window.location.href);(t.searchParams.has("token")||t.searchParams.has("k"))&&(t.searchParams.delete("token"),t.searchParams.delete("k"),window.history.replaceState({},"",t.toString()))}async function it(t,r={}){const a=o1(),u=new Headers(r.headers);a&&u.set("Authorization",`Bearer ${a}`),r.body&&!u.has("Content-Type")&&u.set("Content-Type","application/json");const o=await fetch(t,{...r,headers:u});if(!o.ok){o.status===401&&RN();const f=await o.text().catch(()=>o.statusText);throw new s1(o.status,f)}return o.json()}class s1 extends Error{constructor(r,a){super(`API ${r}: ${a}`),this.status=r,this.name="ApiError"}}let lm=0;function UN(){lm=0}function jt(t){return lm+=1,`${t}_${lm}`}function Je(t){return typeof t=="string"?t:void 0}function En(t){return typeof t=="number"?t:void 0}const BN="… [truncated]";function HN(t){return t.endsWith(BN)}function qN(t,r){return`/api/sessions/${encodeURIComponent(t)}/tool-results/${encodeURIComponent(r)}`}function IN(t,r){const a=Je(t.toolUseId),u=Je(t.content)??Je(t.output)??"",o=a!==void 0?r==null?void 0:r.get(a):void 0;if(o===void 0)return{kind:"notice",id:jt("n"),text:`tool result: ${u.slice(0,80)}`};o.output=u,o.outputUnavailable=!1,o.outputClipped=HN(u),o.status="ok";const f=En(t.durationMs);f!==void 0&&(o.durationMs=f);const c=Je(t.diff);c!==void 0&&(o.diff=c)}function VN(t,r,a){if(typeof t.kind=="string")switch(t.kind){case"user":return{kind:"user",id:jt("u"),text:Je(t.text)??""};case"assistant":return{kind:"assistant",id:jt("a"),text:Je(t.text)??""};case"thinking":return{kind:"thinking",id:jt("th"),text:Je(t.text)??""};case"tool":{const u=Je(t.input)??"";if(u.trim()==="…")return;const o=Je(t.toolUseId),f={kind:"tool",id:jt("t"),name:Je(t.toolName)??"tool",toolUseId:o,inputPreview:u,status:"ok",outputUnavailable:!0};return r!==void 0&&o!==void 0&&r.set(o,f),f}case"tool_result":return IN(t,r);case"tool_error":{const u=Je(t.content)??"",o=u.split(`
376
+ `,1)[0]??"";return{kind:"tool",id:jt("t"),name:Je(t.toolName)??"error",inputPreview:o,status:"error",output:u}}case"error":return{kind:"error",id:jt("e"),message:Je(t.message)??"error"};case"done":{const u=t.costUsd,o=t.durationMs,f=[];typeof u=="number"&&f.push(`$${u.toFixed(4)}`),typeof o=="number"&&f.push(`${(o/1e3).toFixed(1)}s`);const c=En(t.inputTokens),m=En(t.outputTokens),h=En(t.cacheReadTokens);if(c!==void 0||m!==void 0){const g=[];c!==void 0&&g.push(`${c}in`),m!==void 0&&g.push(`${m}out`),h!==void 0&&g.push(`${h}cache`),f.push(g.join("/"))}return{kind:"notice",id:jt("n"),text:f.length?`turn complete · ${f.join(" · ")}`:"turn complete"}}case"paused":return{kind:"notice",id:jt("n"),text:"paused — usage limit"};case"resumed":return{kind:"notice",id:jt("n"),text:"resumed"};case"tool_activity":{const u=En(t.activeCount)??0;if(u===0)return{kind:"notice",id:jt("n"),text:"tool wave complete"};const o=u===1?"tool":"tools";return{kind:"notice",id:jt("n"),text:`Running ${u} ${o} in parallel`}}case"rate_limit":{const u=En(t.retryAfterMs),o=u!==void 0?` (retrying in ${Math.ceil(u/1e3)}s)`:"";return{kind:"notice",id:jt("n"),text:`Rate limited${o}`}}case"progress":return{kind:"notice",id:jt("n"),text:Je(t.message)??"progress"};case"subagent_lifecycle":{const u=Je(t.subagentId)??"subagent",o=Je(t.status)??"unknown",f=Je(t.agentType),c=f?`${f} (${u.slice(0,8)})`:u.slice(0,12);if(a!==void 0){const h=a.get(u);if(h!==void 0){h.status=o;const g=En(t.durationMs);g!==void 0&&(h.durationMs=g);const y=En(t.totalCostUsd);y!==void 0&&(h.totalCostUsd=y);const p=En(t.turnCount);p!==void 0&&(h.turnCount=p);const v=Je(t.stopReason);v!==void 0&&(h.stopReason=v);return}}const m={kind:"subagent",id:jt("sa"),subagentId:u,parentId:Je(t.parentId),status:o,label:c,model:Je(t.model),agentType:Je(t.agentType),durationMs:En(t.durationMs),totalCostUsd:En(t.totalCostUsd),promptHead:Je(t.promptHead),turnCount:En(t.turnCount),stopReason:Je(t.stopReason),parentToolUseId:Je(t.parentToolUseId)};return a==null||a.set(u,m),m}case"background_job":{const u=Je(t.jobId)??"job",o=Je(t.status)??"unknown",f=Je(t.label)??u.slice(0,12);return{kind:"bg_job",id:jt("bj"),jobId:u,status:o,label:f}}case"plan_mode":{const u=Je(t.mode)??"default";return{kind:"notice",id:jt("n"),text:`Switched to ${u} mode`}}default:return}}function YN(t,r){if(r.kind!=="done")return t;const a=r.costUsd,u=r.durationMs,o=r.inputTokens,f=r.outputTokens,c=r.cacheReadTokens;return{costUsd:t.costUsd+(typeof a=="number"?a:0),durationMs:t.durationMs+(typeof u=="number"?u:0),turns:t.turns+1,inputTokens:(t.inputTokens??0)+(typeof o=="number"?o:0),outputTokens:(t.outputTokens??0)+(typeof f=="number"?f:0),cacheReadTokens:(t.cacheReadTokens??0)+(typeof c=="number"?c:0)}}const c1=w.createContext(null);function GN(t){return t instanceof s1&&t.status===404?t.message.includes("journal_not_found")?"Full output unavailable: this session has no message journal.":"Full output not found in the session journal.":t instanceof Error?t.message:String(t)}function FN(t){const r=w.useContext(c1),[a,u]=w.useState({status:"idle"}),o=r!==null&&t!==void 0&&t.length>0,f=w.useRef(null);w.useEffect(()=>(u({status:"idle"}),()=>{var m;(m=f.current)==null||m.abort(),f.current=null}),[r,t]);const c=w.useCallback(()=>{var h;if(!o||r===null||t===void 0)return;(h=f.current)==null||h.abort();const m=new AbortController;f.current=m,u({status:"loading"}),it(qN(r,t),{signal:m.signal}).then(g=>{m.signal.aborted||u({status:"loaded",result:g})},g=>{m.signal.aborted||u({status:"error",message:GN(g)})})},[o,r,t]);return{state:a,canLoad:o,load:c}}const J0="overflow-x-auto whitespace-pre-wrap font-mono text-[11px] text-foreground";function f1({toolUseId:t,preview:r,clipped:a,unavailable:u}){const{state:o,canLoad:f,load:c}=FN(t);if(o.status==="loaded"){const{result:h}=o;return b.jsxs("div",{children:[b.jsx("pre",{className:J0,children:h.text}),h.truncated&&b.jsxs("p",{className:"mt-1 text-[11px] italic text-muted-foreground",children:["Showing the first ",h.text.length.toLocaleString()," of"," ",h.totalChars.toLocaleString()," characters."]})]})}const m=f&&(a===!0||u===!0);return b.jsxs("div",{children:[u&&!r&&b.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not in the live record (replayed session)"}),r&&b.jsx("pre",{className:J0,children:r}),m&&b.jsx("button",{type:"button",onClick:c,disabled:o.status==="loading",className:"mt-1 text-[11px] text-muted-foreground underline underline-offset-2 hover:text-foreground disabled:opacity-50",children:o.status==="loading"?"Loading full output…":"Load full output"}),o.status==="error"&&b.jsx("p",{className:"mt-1 text-[11px] italic text-status-failed",children:o.message})]})}const XN={read_file:{Icon:Ha,colorClass:"text-cat-read"},glob:{Icon:Ha,colorClass:"text-cat-read"},grep:{Icon:Ha,colorClass:"text-cat-read"},list_directory:{Icon:Ha,colorClass:"text-cat-read"},json_query:{Icon:Ha,colorClass:"text-cat-read"},write_file:{Icon:us,colorClass:"text-cat-write"},edit_file:{Icon:us,colorClass:"text-cat-write"},patch_apply:{Icon:us,colorClass:"text-cat-write"},bash:{Icon:Id,colorClass:"text-cat-shell"},test_run:{Icon:Id,colorClass:"text-cat-shell"},agent:{Icon:os,colorClass:"text-cat-agent"},compose:{Icon:os,colorClass:"text-cat-agent"},skill:{Icon:os,colorClass:"text-cat-agent"},browser_open:{Icon:Ga,colorClass:"text-cat-browser"},browser_act:{Icon:Ga,colorClass:"text-cat-browser"},browser_observe:{Icon:Ga,colorClass:"text-cat-browser"},browser_screenshot:{Icon:Ga,colorClass:"text-cat-browser"},web_scrape:{Icon:qd,colorClass:"text-cat-web"},web_request:{Icon:qd,colorClass:"text-cat-web"},memory_search:{Icon:Fo,colorClass:"text-cat-mcp"},memory_update:{Icon:Fo,colorClass:"text-cat-mcp"},state_get:{Icon:Fo,colorClass:"text-cat-mcp"},state_put:{Icon:Fo,colorClass:"text-cat-mcp"}};function QN(t){return XN[t]??{Icon:Qx,colorClass:"text-cat-other"}}function ZN({status:t}){return t==="running"?b.jsx(cE,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?b.jsx(tE,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):b.jsx(ux,{className:"h-3.5 w-3.5 shrink-0 text-status-failed","aria-label":"error"})}function KN({ms:t,live:r}){const a=t!==void 0?`${(t/1e3).toFixed(1)}s`:r!==void 0?`...${r}s`:null;return a===null?null:b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:a})}function PN({toolUseId:t,name:r,inputPreview:a,status:u,output:o,outputUnavailable:f,outputClipped:c,diff:m,durationMs:h}){const[g,y]=w.useState(!1),[p,v]=w.useState(!1),[S,E]=w.useState(0),T=w.useRef(null);w.useEffect(()=>(u==="running"&&h===void 0?T.current=setInterval(()=>{E(P=>P+1)},1e3):T.current!==null&&(clearInterval(T.current),T.current=null),()=>{T.current!==null&&clearInterval(T.current)}),[u,h]);const{Icon:N,colorClass:_}=QN(r),M=m||f||o&&o.trim().length>0,L=a.trim();return b.jsxs("div",{className:oe("rounded-md border bg-card text-sm",u==="error"?"border-status-failed/40":"border-border"),children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[b.jsx(N,{className:oe("h-3.5 w-3.5 shrink-0",_)}),b.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:r}),b.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[b.jsx(KN,{ms:h,live:u==="running"?S:void 0}),b.jsx(ZN,{status:u})]})]}),L.length>0&&b.jsx("button",{type:"button",onClick:()=>v(P=>!P),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":p,children:b.jsx("p",{className:oe("font-mono text-[11px] text-muted-foreground",!p&&"line-clamp-2"),children:L})}),M&&b.jsxs("div",{className:"border-t border-border/50",children:[b.jsxs("button",{type:"button",onClick:()=>y(P=>!P),className:"flex w-full cursor-pointer items-center gap-1 px-3 py-1.5 text-[11px] text-muted-foreground select-none hover:text-foreground","aria-expanded":g,children:[b.jsx(ys,{className:oe("h-3 w-3 shrink-0 transition-transform duration-150",g&&"rotate-90")}),"Output"]}),b.jsx(ON,{open:g,children:b.jsxs("div",{className:"px-3 pb-2 pt-1",children:[m&&b.jsx(DN,{diff:m}),!m&&b.jsx(f1,{toolUseId:t,preview:o,clipped:c,unavailable:f})]})})]})]})}function $N(t){if(t<1e3)return`${t}ms`;const r=t/1e3;return r<60?`${r.toFixed(1)}s`:`${Math.floor(r/60)}m ${Math.floor(r%60)}s`}function JN(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function WN({status:t}){const r="h-3.5 w-3.5 shrink-0";switch(t){case"started":return b.jsx(gE,{className:oe(r,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return b.jsx(eE,{className:oe(r,"text-status-running"),"aria-label":"succeeded"});case"failed":return b.jsx(lE,{className:oe(r,"text-status-failed"),"aria-label":"failed"});case"cancelled":return b.jsx(Yx,{className:oe(r,"text-muted-foreground"),"aria-label":"cancelled"});default:return b.jsx(nE,{className:oe(r,"text-muted-foreground"),"aria-label":"unknown"})}}function e3(t){switch(t){case"succeeded":case"completed":return"text-status-running";case"failed":return"text-status-failed";case"started":return"text-status-blocked";default:return"text-muted-foreground"}}function t3({node:t,isExpanded:r,onToggle:a,isChild:u}){const{item:o}=t,f=t.children.length>0;return b.jsxs("div",{className:oe("flex items-start gap-2 px-3 py-2",f&&"cursor-pointer select-none",u&&"py-1.5"),onClick:f?a:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),a())}:void 0,"aria-expanded":f?r:void 0,children:[f?b.jsx(ys,{className:oe("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",r&&"rotate-90")}):b.jsx("span",{className:"h-3 w-3 shrink-0"}),b.jsx("span",{className:"mt-0.5",children:b.jsx(WN,{status:o.status})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[b.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:o.model}),o.durationMs!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:$N(o.durationMs)}),o.totalCostUsd!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:JN(o.totalCostUsd)}),b.jsx("span",{className:oe("ml-auto font-mono text-[10px] capitalize",e3(o.status)),children:o.status})]}),o.promptHead&&b.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function d1({node:t,isChild:r=!1}){const[a,u]=w.useState(!0),o=t.children.length>0;return b.jsxs("div",{children:[b.jsx(t3,{node:t,isExpanded:a,onToggle:()=>u(f=>!f),isChild:r}),o&&a&&b.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((f,c)=>b.jsx("div",{className:oe(c<t.children.length-1&&"border-b border-border/30"),children:b.jsx(d1,{node:f,isChild:!0})},f.item.subagentId))})]})}function n3({roots:t,className:r}){return t.length===0?null:b.jsx("div",{className:oe("rounded-md border border-border bg-card",r),children:t.map((a,u)=>b.jsx("div",{className:oe(u<t.length-1&&"border-b border-border/50"),children:b.jsx(d1,{node:a})},a.item.subagentId))})}function yd(){return b.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function es({label:t,value:r}){return b.jsxs("span",{className:"flex items-baseline gap-1",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),b.jsx("span",{className:"font-mono text-xs text-foreground",children:r})]})}function l3(t){if(t<1e3)return`${t}ms`;const r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;const a=Math.floor(r/60),u=Math.round(r%60);return`${a}m ${u}s`}function r3(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function m1({totals:t,className:r}){if(!t)return b.jsx("div",{className:oe("flex items-center gap-2 text-xs text-muted-foreground",r),children:b.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const a=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return b.jsxs("div",{className:oe("flex flex-wrap items-center gap-2",r),children:[b.jsx(es,{label:"turns",value:String(t.turns)}),b.jsx(yd,{}),b.jsx(es,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),a>0&&b.jsxs(b.Fragment,{children:[b.jsx(yd,{}),b.jsx(es,{label:"tokens",value:r3(a)})]}),b.jsx(yd,{}),b.jsx(es,{label:"duration",value:l3(t.durationMs)})]})}function a3(t){const r=new Map,a=[];for(const o of t){if(o.kind!=="subagent"||r.get(o.subagentId))continue;const c={item:o,children:[]};if(r.set(o.subagentId,c),o.parentId){const m=r.get(o.parentId);m?m.children.push(c):a.push(c)}else a.push(c)}const u=[];for(const o of a){const f=o.item.parentId?r.get(o.item.parentId):void 0;f?f.children.push(o):u.push(o)}return u}const i3=new Set(["read_file","glob","grep","list_directory","json_query","read_witness","search_witness","get_facet","clipboard_read"]),u3=new Set(["write_file","edit_file","patch_apply","clipboard_write","procedure_write"]),o3=new Set(["bash","test_run","wait_for"]),s3=new Set(["agent","send_message_to_agent","cancel_background_job"]),c3=new Set(["skill"]),f3=new Set(["compose"]),d3=new Set(["web_scrape","web_request"]),m3=new Set(["browser_open","browser_act","browser_observe","browser_screenshot","browser_close"]),h3=new Set(["memory_search","memory_update","state_get","state_put","state_cas","state_delete","state_query","workspace_publish","workspace_query"]);function p3(t){return i3.has(t)?"read":u3.has(t)?"write":o3.has(t)?"shell":s3.has(t)?"agent":c3.has(t)?"skill":f3.has(t)?"dag":d3.has(t)?"web":m3.has(t)?"browser":h3.has(t)?"other":t.startsWith("mcp__")?"mcp":"other"}function h1(t){if(t<1e3)return"<1s";const r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;const a=Math.floor(r/60),u=Math.floor(r%60);return`${a}m ${u}s`}function p1(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function g3(t){return t==="error"?"error":t==="ok"?"ok":"running"}function y3(t){return t==="succeeded"?"ok":t==="failed"?"error":t==="cancelled"?"cancelled":"running"}function b3(t,r){const a=g3(t.status);return{id:t.id,kind:"tool",label:t.name,category:p3(t.name),status:a,preview:t.inputPreview,durationMs:t.durationMs,output:t.output,outputClipped:t.outputClipped,outputUnavailable:t.outputUnavailable,children:[],isActive:a==="running",sourceId:t.toolUseId,seq:r}}function x3(t,r){const a=y3(t.status);return{id:t.id,kind:"agent",label:t.label,category:"agent",status:a,preview:t.promptHead,durationMs:t.durationMs,costUsd:t.totalCostUsd,model:t.model,agentType:t.agentType,turnCount:t.turnCount,children:[],isActive:a==="running",sourceId:t.subagentId,seq:r}}function v3(t){const r=[],a=[],u=new Map;for(let y=0;y<t.length;y++){const p=t[y];p!==void 0&&(p.kind==="tool"&&(r.push(p),u.set(p.id,y)),p.kind==="subagent"&&(a.push(p),u.set(p.id,y)))}const o=new Map;for(const y of r)y.toolUseId&&o.set(y.toolUseId,y);const f=new Map,c=new Map;for(const y of r)f.set(y.id,b3(y,u.get(y.id)??0));for(const y of a)c.set(y.subagentId,x3(y,u.get(y.id)??0));const m=[],h=[];for(const y of a){const p=c.get(y.subagentId);if(p){if(y.parentToolUseId){const v=o.get(y.parentToolUseId);if(v){const S=f.get(v.id);if(S){S.kind="agent",S.children.push(p);continue}}h.push(p);continue}if(y.parentId){const v=c.get(y.parentId);if(v){v.children.push(p);continue}h.push(p);continue}m.push(p)}}const g=[];for(const y of h){const p=a.find(S=>S.subagentId===y.sourceId);if(!p){m.push(y);continue}let v=!1;if(p.parentToolUseId){const S=o.get(p.parentToolUseId);if(S){const E=f.get(S.id);E&&(E.kind="agent",E.children.push(y),v=!0)}}if(!v&&p.parentId){const S=c.get(p.parentId);S&&(S.children.push(y),v=!0)}v||g.push(y)}for(const y of g)m.push(y);for(const y of r){const p=f.get(y.id);p&&m.push(p)}return m.sort((y,p)=>y.seq-p.seq),m}const S3={read:Ha,write:us,shell:Id,agent:os,skill:SE,dag:dE,mcp:yE,web:qd,browser:Ga,plan:sE,other:Qx},w3={read:"text-cat-read",write:"text-cat-write",shell:"text-cat-shell",agent:"text-cat-agent",skill:"text-cat-skill",dag:"text-cat-dag",mcp:"text-cat-mcp",web:"text-cat-web",browser:"text-cat-browser",plan:"text-cat-plan",other:"text-cat-other"};function g1(t){let r=0;for(const a of t.children)a.kind==="tool"&&r++,r+=g1(a);return r}function y1(t){let r=t.durationMs??0;for(const a of t.children)r+=y1(a);return r}function k3({category:t,status:r}){const a=S3[t],u=w3[t];return b.jsx(a,{className:oe("h-3.5 w-3.5 shrink-0",u,r==="running"&&"animate-shimmer-pulse",r==="error"&&"text-status-failed",r==="cancelled"&&"opacity-50"),"aria-hidden":!0})}function bd({node:t}){if(t.status==="running"||t.children.length===0)return null;if(t.status==="error")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:"Cancelled"});const r=g1(t),a=t.durationMs??y1(t),u=t.costUsd,o=[];return r>0&&o.push(`${r} tool${r!==1?"s":""}`),a>0&&o.push(h1(a)),u!=null&&u>0&&o.push(p1(u)),b.jsxs("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:["Done",o.length>0?` (${o.join(" · ")})`:""]})}function b1({node:t,depth:r=0,isLast:a=!1}){const u=t.kind==="agent"&&t.children.length>0,[o,f]=w.useState(t.isActive),c=t.kind==="tool"&&(t.output!==void 0&&t.output.trim().length>0||t.sourceId!==void 0&&t.outputUnavailable===!0),[m,h]=w.useState(!1),g=t.children.length>0,y=t.kind==="agent",p=o?vm:ys;return b.jsxs("div",{className:oe("relative",r>0&&"pl-3"),children:[b.jsxs("div",{className:oe("flex items-center gap-1.5 py-0.5 group",u&&"cursor-pointer select-none"),onClick:u?()=>f(v=>!v):void 0,role:u?"button":void 0,"aria-expanded":u?o:void 0,children:[u?b.jsx(p,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):b.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),b.jsx(k3,{category:t.category,status:t.status}),b.jsx("span",{className:oe("text-[12px] font-mono leading-none",t.status==="cancelled"&&"opacity-50",t.status==="error"&&"text-status-failed",t.status==="running"&&"text-foreground",t.status==="ok"&&"text-foreground/80"),children:t.label}),y&&t.model&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),y&&t.agentType&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.agentType}),y&&t.turnCount!=null&&t.turnCount>0&&b.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:h1(t.durationMs)}),y&&t.costUsd!=null&&t.costUsd>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:p1(t.costUsd)})]}),c&&b.jsxs("div",{className:"pl-5",children:[b.jsx("button",{type:"button",onClick:()=>h(v=>!v),"aria-expanded":m,className:"text-[10px] text-muted-foreground/70 hover:text-foreground",children:m?"Hide output":"Output"}),m&&b.jsx("div",{className:"mt-0.5 mb-1 max-h-96 overflow-y-auto rounded border border-border/50 bg-card px-2 py-1",children:b.jsx(f1,{toolUseId:t.sourceId,preview:t.output,clipped:t.outputClipped,unavailable:t.outputUnavailable})})]}),y&&t.preview&&b.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),y&&!o&&g&&b.jsx(bd,{node:t}),g&&o&&b.jsxs("div",{className:oe("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((v,S)=>{const E=S===t.children.length-1;return b.jsxs("div",{className:"relative",children:[b.jsx("div",{className:oe("absolute left-0 top-[10px] h-0 w-3","border-t-2 border-spine",E&&"last-child-clip"),"aria-hidden":!0}),E&&b.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),b.jsx("div",{className:"pl-3",children:b.jsx(b1,{node:v,depth:r+1,isLast:E})})]},v.id)}),y&&t.status!=="running"&&b.jsx(bd,{node:t})]}),y&&(!g||!o)&&t.status!=="running"&&(g?null:b.jsx(bd,{node:t}))]})}function E3({nodes:t,className:r}){return b.jsxs("div",{className:oe("relative pl-3 border-l-2 border-spine/40",r),children:[b.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?b.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((a,u)=>b.jsx(b1,{node:a,depth:0,isLast:u===t.length-1},a.id))})]})}const C3=new Set(["tool","subagent","notice"]),T3=new Set(["user","assistant","thinking","error","bg_job"]);function N3(t){const r=[];let a=0;for(;a<t.length;){const u=t[a];if(u===void 0){a++;continue}if(T3.has(u.kind)){r.push({kind:"text",item:u}),a++;continue}const o=[];for(;a<t.length;){const f=t[a];if(f===void 0||!C3.has(f.kind))break;o.push(f),a++}if(o.length>0){const f=v3(o);r.push({kind:"execution",items:o,id:o[0].id,spineNodes:f})}}return r}function _3({slots:t,renderTextItem:r}){return b.jsx(b.Fragment,{children:t.map((a,u)=>a.kind==="text"?r(a.item,u):b.jsx("div",{className:"py-2 px-1",children:b.jsx(E3,{nodes:a.spineNodes})},a.id))})}function A3(t){return w.useMemo(()=>N3(t),[t])}function z3(t,r){const a=r||{};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const j3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,O3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,D3={};function W0(t,r){return(D3.jsx?O3:j3).test(t)}const M3=/[ \t\n\f\r]/g;function R3(t){return typeof t=="object"?t.type==="text"?eb(t.value):!1:eb(t)}function eb(t){return t.replace(M3,"")===""}class hu{constructor(r,a,u){this.normal=a,this.property=r,u&&(this.space=u)}}hu.prototype.normal={};hu.prototype.property={};hu.prototype.space=void 0;function x1(t,r){const a={},u={};for(const o of t)Object.assign(a,o.property),Object.assign(u,o.normal);return new hu(a,u,r)}function rm(t){return t.toLowerCase()}class $t{constructor(r,a){this.attribute=a,this.property=r}}$t.prototype.attribute="";$t.prototype.booleanish=!1;$t.prototype.boolean=!1;$t.prototype.commaOrSpaceSeparated=!1;$t.prototype.commaSeparated=!1;$t.prototype.defined=!1;$t.prototype.mustUseProperty=!1;$t.prototype.number=!1;$t.prototype.overloadedBoolean=!1;$t.prototype.property="";$t.prototype.spaceSeparated=!1;$t.prototype.space=void 0;let L3=0;const _e=Vr(),pt=Vr(),am=Vr(),re=Vr(),et=Vr(),Lr=Vr(),dn=Vr();function Vr(){return 2**++L3}const im=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:pt,commaOrSpaceSeparated:dn,commaSeparated:Lr,number:re,overloadedBoolean:am,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),xd=Object.keys(im);class Mm extends $t{constructor(r,a,u,o){let f=-1;if(super(r,a),tb(this,"space",o),typeof u=="number")for(;++f<xd.length;){const c=xd[f];tb(this,xd[f],(u&im[c])===im[c])}}}Mm.prototype.defined=!0;function tb(t,r,a){a&&(t[r]=a)}function $a(t){const r={},a={};for(const[u,o]of Object.entries(t.properties)){const f=new Mm(u,t.transform(t.attributes||{},u),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),r[u]=f,a[rm(u)]=u,a[rm(f.attribute)]=u}return new hu(r,a,t.space)}const v1=$a({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:et,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:re,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:et,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:pt,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function S1(t,r){return r in t?t[r]:r}function w1(t,r){return S1(t,r.toLowerCase())}const U3=$a({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lr,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alpha:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:et,autoFocus:_e,autoPlay:_e,blocking:et,capture:null,charSet:null,checked:_e,cite:null,className:et,closedBy:null,colorSpace:null,cols:re,colSpan:re,command:null,commandFor:null,content:null,contentEditable:pt,controls:_e,controlsList:et,coords:re|Lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:am,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:et,height:re,hidden:am,high:re,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:et,itemRef:et,itemScope:_e,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_e,optimum:re,pattern:null,ping:et,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:et,required:_e,reversed:_e,rows:re,rowSpan:re,sandbox:et,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootCustomElementRegistry:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shadowRootSerializable:_e,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:pt,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:_e,disablePictureInPicture:_e,disableRemotePlayback:_e,exportParts:Lr,part:et,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:w1}),B3=$a({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dn,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Lr,g2:Lr,glyphName:Lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dn,rev:dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dn,requiredFeatures:dn,requiredFonts:dn,requiredFormats:dn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dn,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:S1}),k1=$a({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),E1=$a({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:w1}),C1=$a({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),H3={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},q3=/[A-Z]/g,nb=/-[a-z]/g,I3=/^data[-\w.:]+$/i;function V3(t,r){const a=rm(r);let u=r,o=$t;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&I3.test(r)){if(r.charAt(4)==="-"){const f=r.slice(5).replace(nb,G3);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=r.slice(4);if(!nb.test(f)){let c=f.replace(q3,Y3);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=Mm}return new o(u,r)}function Y3(t){return"-"+t.toLowerCase()}function G3(t){return t.charAt(1).toUpperCase()}const F3=x1([v1,U3,k1,E1,C1],"html"),Rm=x1([v1,B3,k1,E1,C1],"svg");function X3(t){return t.join(" ").trim()}var Ba={},vd,lb;function Q3(){if(lb)return vd;lb=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,m=/^\s+|\s+$/g,h=`
377
+ `,g="/",y="*",p="",v="comment",S="declaration";function E(N,_){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];_=_||{};var M=1,L=1;function P(se){var te=se.match(r);te&&(M+=te.length);var X=se.lastIndexOf(h);L=~X?se.length-X:L+se.length}function W(){var se={line:M,column:L};return function(te){return te.position=new D(se),ie(),te}}function D(se){this.start=se,this.end={line:M,column:L},this.source=_.source}D.prototype.content=N;function F(se){var te=new Error(_.source+":"+M+":"+L+": "+se);if(te.reason=se,te.filename=_.source,te.line=M,te.column=L,te.source=N,!_.silent)throw te}function q(se){var te=se.exec(N);if(te){var X=te[0];return P(X),N=N.slice(X.length),te}}function ie(){q(a)}function H(se){var te;for(se=se||[];te=ne();)te!==!1&&se.push(te);return se}function ne(){var se=W();if(!(g!=N.charAt(0)||y!=N.charAt(1))){for(var te=2;p!=N.charAt(te)&&(y!=N.charAt(te)||g!=N.charAt(te+1));)++te;if(te+=2,p===N.charAt(te-1))return F("End of comment missing");var X=N.slice(2,te-2);return L+=2,P(X),N=N.slice(te),L+=2,se({type:v,comment:X})}}function $(){var se=W(),te=q(u);if(te){if(ne(),!q(o))return F("property missing ':'");var X=q(f),le=se({type:S,property:T(te[0].replace(t,p)),value:X?T(X[0].replace(t,p)):p});return q(c),le}}function ve(){var se=[];H(se);for(var te;te=$();)te!==!1&&(se.push(te),H(se));return se}return ie(),ve()}function T(N){return N?N.replace(m,p):p}return vd=E,vd}var rb;function Z3(){if(rb)return Ba;rb=1;var t=Ba&&Ba.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.default=a;const r=t(Q3());function a(u,o){let f=null;if(!u||typeof u!="string")return f;const c=(0,r.default)(u),m=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:g,value:y}=h;m?o(g,y,h):y&&(f=f||{},f[g]=y)}),f}return Ba}var $i={},ab;function K3(){if(ab)return $i;ab=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,f=function(g){return!g||a.test(g)||t.test(g)},c=function(g,y){return y.toUpperCase()},m=function(g,y){return"".concat(y,"-")},h=function(g,y){return y===void 0&&(y={}),f(g)?g:(g=g.toLowerCase(),y.reactCompat?g=g.replace(o,m):g=g.replace(u,m),g.replace(r,c))};return $i.camelCase=h,$i}var Ji,ib;function P3(){if(ib)return Ji;ib=1;var t=Ji&&Ji.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=t(Z3()),a=K3();function u(o,f){var c={};return!o||typeof o!="string"||(0,r.default)(o,function(m,h){m&&h&&(c[(0,a.camelCase)(m,f)]=h)}),c}return u.default=u,Ji=u,Ji}var $3=P3();const J3=gm($3),T1=N1("end"),Lm=N1("start");function N1(t){return r;function r(a){const u=a&&a.position&&a.position[t]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function W3(t){const r=Lm(t),a=T1(t);if(r&&a)return{start:r,end:a}}function au(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ub(t.position):"start"in t||"end"in t?ub(t):"line"in t||"column"in t?um(t):""}function um(t){return ob(t&&t.line)+":"+ob(t&&t.column)}function ub(t){return um(t&&t.start)+"-"+um(t&&t.end)}function ob(t){return t&&typeof t=="number"?t:1}class Mt extends Error{constructor(r,a,u){super(),typeof a=="string"&&(u=a,a=void 0);let o="",f={},c=!1;if(a&&("line"in a&&"column"in a?f={place:a}:"start"in a&&"end"in a?f={place:a}:"type"in a?f={ancestors:[a],place:a.position}:f={...a}),typeof r=="string"?o=r:!f.cause&&r&&(c=!0,o=r.message,f.cause=r),!f.ruleId&&!f.source&&typeof u=="string"){const h=u.indexOf(":");h===-1?f.ruleId=u:(f.source=u.slice(0,h),f.ruleId=u.slice(h+1))}if(!f.place&&f.ancestors&&f.ancestors){const h=f.ancestors[f.ancestors.length-1];h&&(f.place=h.position)}const m=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=au(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=c&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;const Um={}.hasOwnProperty,e4=new Map,t4=/[A-Z]/g,n4=new Set(["table","tbody","thead","tfoot","tr"]),l4=new Set(["td","th"]),_1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function r4(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let u;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=d4(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=f4(a,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:u,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Rm:F3,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},f=A1(o,t,void 0);return f&&typeof f!="string"?f:o.create(t,o.Fragment,{children:f||void 0},void 0)}function A1(t,r,a){if(r.type==="element")return a4(t,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return i4(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return o4(t,r,a);if(r.type==="mdxjsEsm")return u4(t,r);if(r.type==="root")return s4(t,r,a);if(r.type==="text")return c4(t,r)}function a4(t,r,a){const u=t.schema;let o=u;r.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=Rm,t.schema=o),t.ancestors.push(r);const f=j1(t,r.tagName,!1),c=m4(t,r);let m=Hm(t,r);return n4.has(r.tagName)&&(m=m.filter(function(h){return typeof h=="string"?!R3(h):!0})),z1(t,c,f,r),Bm(c,m),t.ancestors.pop(),t.schema=u,t.create(r,f,c,a)}function i4(t,r){if(r.data&&r.data.estree&&t.evaluater){const u=r.data.estree.body[0];return u.type,t.evaluater.evaluateExpression(u.expression)}su(t,r.position)}function u4(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);su(t,r.position)}function o4(t,r,a){const u=t.schema;let o=u;r.name==="svg"&&u.space==="html"&&(o=Rm,t.schema=o),t.ancestors.push(r);const f=r.name===null?t.Fragment:j1(t,r.name,!0),c=h4(t,r),m=Hm(t,r);return z1(t,c,f,r),Bm(c,m),t.ancestors.pop(),t.schema=u,t.create(r,f,c,a)}function s4(t,r,a){const u={};return Bm(u,Hm(t,r)),t.create(r,t.Fragment,u,a)}function c4(t,r){return r.value}function z1(t,r,a,u){typeof a!="string"&&a!==t.Fragment&&t.passNode&&(r.node=u)}function Bm(t,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(t.children=a)}}function f4(t,r,a){return u;function u(o,f,c,m){const g=Array.isArray(c.children)?a:r;return m?g(f,c,m):g(f,c)}}function d4(t,r){return a;function a(u,o,f,c){const m=Array.isArray(f.children),h=Lm(u);return r(o,f,c,m,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function m4(t,r){const a={};let u,o;for(o in r.properties)if(o!=="children"&&Um.call(r.properties,o)){const f=p4(t,o,r.properties[o]);if(f){const[c,m]=f;t.tableCellAlignToStyle&&c==="align"&&typeof m=="string"&&l4.has(r.tagName)?u=m:a[c]=m}}if(u){const f=a.style||(a.style={});f[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return a}function h4(t,r){const a={};for(const u of r.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&t.evaluater){const f=u.data.estree.body[0];f.type;const c=f.expression;c.type;const m=c.properties[0];m.type,Object.assign(a,t.evaluater.evaluateExpression(m.argument))}else su(t,r.position);else{const o=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&t.evaluater){const m=u.value.data.estree.body[0];m.type,f=t.evaluater.evaluateExpression(m.expression)}else su(t,r.position);else f=u.value===null?!0:u.value;a[o]=f}return a}function Hm(t,r){const a=[];let u=-1;const o=t.passKeys?new Map:e4;for(;++u<r.children.length;){const f=r.children[u];let c;if(t.passKeys){const h=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(h){const g=o.get(h)||0;c=h+"-"+g,o.set(h,g+1)}}const m=A1(t,f,c);m!==void 0&&a.push(m)}return a}function p4(t,r,a){const u=V3(t.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=u.commaSeparated?z3(a):X3(a)),u.property==="style"){let o=typeof a=="object"?a:g4(t,String(a));return t.stylePropertyNameCase==="css"&&(o=y4(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&u.space?H3[u.property]||u.property:u.attribute,a]}}function g4(t,r){try{return J3(r,{reactCompat:!0})}catch(a){if(t.ignoreInvalidStyle)return{};const u=a,o=new Mt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=_1+"#cannot-parse-style-attribute",o}}function j1(t,r,a){let u;if(!a)u={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let f=-1,c;for(;++f<o.length;){const m=W0(o[f])?{type:"Identifier",name:o[f]}:{type:"Literal",value:o[f]};c=c?{type:"MemberExpression",object:c,property:m,computed:!!(f&&m.type==="Literal"),optional:!1}:m}u=c}else u=W0(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(u.type==="Literal"){const o=u.value;return Um.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(u);su(t)}function su(t,r){const a=new Mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=_1+"#cannot-handle-mdx-estrees-without-createevaluater",a}function y4(t){const r={};let a;for(a in t)Um.call(t,a)&&(r[b4(a)]=t[a]);return r}function b4(t){let r=t.replace(t4,x4);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function x4(t){return"-"+t.toLowerCase()}const Sd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},v4={};function qm(t,r){const a=v4,u=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return O1(t,u,o)}function O1(t,r,a){if(S4(t)){if("value"in t)return t.type==="html"&&!a?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return sb(t.children,r,a)}return Array.isArray(t)?sb(t,r,a):""}function sb(t,r,a){const u=[];let o=-1;for(;++o<t.length;)u[o]=O1(t[o],r,a);return u.join("")}function S4(t){return!!(t&&typeof t=="object")}const cb=document.createElement("i");function Im(t){const r="&"+t+";";cb.innerHTML=r;const a=cb.textContent;return a.charCodeAt(a.length-1)===59&&t!=="semi"||a===r?!1:a}function mn(t,r,a,u){const o=t.length;let f=0,c;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,a=a>0?a:0,u.length<1e4)c=Array.from(u),c.unshift(r,a),t.splice(...c);else for(a&&t.splice(r,a);f<u.length;)c=u.slice(f,f+1e4),c.unshift(r,0),t.splice(...c),f+=1e4,r+=1e4}function Cn(t,r){return t.length>0?(mn(t,t.length,0,r),t):r}const fb={}.hasOwnProperty;function D1(t){const r={};let a=-1;for(;++a<t.length;)w4(r,t[a]);return r}function w4(t,r){let a;for(a in r){const o=(fb.call(t,a)?t[a]:void 0)||(t[a]={}),f=r[a];let c;if(f)for(c in f){fb.call(o,c)||(o[c]=[]);const m=f[c];k4(o[c],Array.isArray(m)?m:m?[m]:[])}}}function k4(t,r){let a=-1;const u=[];for(;++a<r.length;)(r[a].add==="after"?t:u).push(r[a]);mn(t,0,0,u)}function M1(t,r){const a=Number.parseInt(t,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Ln(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const It=ur(/[A-Za-z]/),Dt=ur(/[\dA-Za-z]/),E4=ur(/[#-'*+\--9=?A-Z^-~]/);function ms(t){return t!==null&&(t<32||t===127)}const om=ur(/\d/),C4=ur(/[\dA-Fa-f]/),T4=ur(/[!-/:-@[-`{-~]/);function we(t){return t!==null&&t<-2}function tt(t){return t!==null&&(t<0||t===32)}function Ue(t){return t===-2||t===-1||t===32}const vs=ur(new RegExp("\\p{P}|\\p{S}","u")),Hr=ur(/\s/);function ur(t){return r;function r(a){return a!==null&&a>-1&&t.test(String.fromCharCode(a))}}function Ja(t){const r=[];let a=-1,u=0,o=0;for(;++a<t.length;){const f=t.charCodeAt(a);let c="";if(f===37&&Dt(t.charCodeAt(a+1))&&Dt(t.charCodeAt(a+2)))o=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(c=String.fromCharCode(f));else if(f>55295&&f<57344){const m=t.charCodeAt(a+1);f<56320&&m>56319&&m<57344?(c=String.fromCharCode(f,m),o=1):c="�"}else c=String.fromCharCode(f);c&&(r.push(t.slice(u,a),encodeURIComponent(c)),u=a+o+1,c=""),o&&(a+=o,o=0)}return r.join("")+t.slice(u)}function Ie(t,r,a,u){const o=u?u-1:Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return Ue(h)?(t.enter(a),m(h)):r(h)}function m(h){return Ue(h)&&f++<o?(t.consume(h),m):(t.exit(a),r(h))}}const N4={tokenize:_4};function _4(t){const r=t.attempt(this.parser.constructs.contentInitial,u,o);let a;return r;function u(m){if(m===null){t.consume(m);return}return t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Ie(t,r,"linePrefix")}function o(m){return t.enter("paragraph"),f(m)}function f(m){const h=t.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=h),a=h,c(m)}function c(m){if(m===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(m);return}return we(m)?(t.consume(m),t.exit("chunkText"),f):(t.consume(m),c)}}const A4={tokenize:z4},db={tokenize:j4};function z4(t){const r=this,a=[];let u=0,o,f,c;return m;function m(L){if(u<a.length){const P=a[u];return r.containerState=P[1],t.attempt(P[0].continuation,h,g)(L)}return g(L)}function h(L){if(u++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&M();const P=r.events.length;let W=P,D;for(;W--;)if(r.events[W][0]==="exit"&&r.events[W][1].type==="chunkFlow"){D=r.events[W][1].end;break}_(u);let F=P;for(;F<r.events.length;)r.events[F][1].end={...D},F++;return mn(r.events,W+1,0,r.events.slice(P)),r.events.length=F,g(L)}return m(L)}function g(L){if(u===a.length){if(!o)return v(L);if(o.currentConstruct&&o.currentConstruct.concrete)return E(L);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(db,y,p)(L)}function y(L){return o&&M(),_(u),v(L)}function p(L){return r.parser.lazy[r.now().line]=u!==a.length,c=r.now().offset,E(L)}function v(L){return r.containerState={},t.attempt(db,S,E)(L)}function S(L){return u++,a.push([r.currentConstruct,r.containerState]),v(L)}function E(L){if(L===null){o&&M(),_(0),t.consume(L);return}return o=o||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:f}),T(L)}function T(L){if(L===null){N(t.exit("chunkFlow"),!0),_(0),t.consume(L);return}return we(L)?(t.consume(L),N(t.exit("chunkFlow")),u=0,r.interrupt=void 0,m):(t.consume(L),T)}function N(L,P){const W=r.sliceStream(L);if(P&&W.push(null),L.previous=f,f&&(f.next=L),f=L,o.defineSkip(L.start),o.write(W),r.parser.lazy[L.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<c&&(!o.events[D][1].end||o.events[D][1].end.offset>c))return;const F=r.events.length;let q=F,ie,H;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){if(ie){H=r.events[q][1].end;break}ie=!0}for(_(u),D=F;D<r.events.length;)r.events[D][1].end={...H},D++;mn(r.events,q+1,0,r.events.slice(F)),r.events.length=D}}function _(L){let P=a.length;for(;P-- >L;){const W=a[P];r.containerState=W[1],W[0].exit.call(r,t)}a.length=L}function M(){o.write([null]),f=void 0,o=void 0,r.containerState._closeFlow=void 0}}function j4(t,r,a){return Ie(t,t.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Za(t){if(t===null||tt(t)||Hr(t))return 1;if(vs(t))return 2}function Ss(t,r,a){const u=[];let o=-1;for(;++o<t.length;){const f=t[o].resolveAll;f&&!u.includes(f)&&(r=f(r,a),u.push(f))}return r}const sm={name:"attention",resolveAll:O4,tokenize:D4};function O4(t,r){let a=-1,u,o,f,c,m,h,g,y;for(;++a<t.length;)if(t[a][0]==="enter"&&t[a][1].type==="attentionSequence"&&t[a][1]._close){for(u=a;u--;)if(t[u][0]==="exit"&&t[u][1].type==="attentionSequence"&&t[u][1]._open&&r.sliceSerialize(t[u][1]).charCodeAt(0)===r.sliceSerialize(t[a][1]).charCodeAt(0)){if((t[u][1]._close||t[a][1]._open)&&(t[a][1].end.offset-t[a][1].start.offset)%3&&!((t[u][1].end.offset-t[u][1].start.offset+t[a][1].end.offset-t[a][1].start.offset)%3))continue;h=t[u][1].end.offset-t[u][1].start.offset>1&&t[a][1].end.offset-t[a][1].start.offset>1?2:1;const p={...t[u][1].end},v={...t[a][1].start};mb(p,-h),mb(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...t[u][1].end}},m={type:h>1?"strongSequence":"emphasisSequence",start:{...t[a][1].start},end:v},f={type:h>1?"strongText":"emphasisText",start:{...t[u][1].end},end:{...t[a][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...m.end}},t[u][1].end={...c.start},t[a][1].start={...m.end},g=[],t[u][1].end.offset-t[u][1].start.offset&&(g=Cn(g,[["enter",t[u][1],r],["exit",t[u][1],r]])),g=Cn(g,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",f,r]]),g=Cn(g,Ss(r.parser.constructs.insideSpan.null,t.slice(u+1,a),r)),g=Cn(g,[["exit",f,r],["enter",m,r],["exit",m,r],["exit",o,r]]),t[a][1].end.offset-t[a][1].start.offset?(y=2,g=Cn(g,[["enter",t[a][1],r],["exit",t[a][1],r]])):y=0,mn(t,u-1,a-u+3,g),a=u+g.length-y-2;break}}for(a=-1;++a<t.length;)t[a][1].type==="attentionSequence"&&(t[a][1].type="data");return t}function D4(t,r){const a=this.parser.constructs.attentionMarkers.null,u=this.previous,o=Za(u);let f;return c;function c(h){return f=h,t.enter("attentionSequence"),m(h)}function m(h){if(h===f)return t.consume(h),m;const g=t.exit("attentionSequence"),y=Za(h),p=!y||y===2&&o||a.includes(h),v=!o||o===2&&y||a.includes(u);return g._open=!!(f===42?p:p&&(o||!v)),g._close=!!(f===42?v:v&&(y||!p)),r(h)}}function mb(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const M4={name:"autolink",tokenize:R4};function R4(t,r,a){let u=0;return o;function o(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),f}function f(S){return It(S)?(t.consume(S),c):S===64?a(S):g(S)}function c(S){return S===43||S===45||S===46||Dt(S)?(u=1,m(S)):g(S)}function m(S){return S===58?(t.consume(S),u=0,h):(S===43||S===45||S===46||Dt(S))&&u++<32?(t.consume(S),m):(u=0,g(S))}function h(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):S===null||S===32||S===60||ms(S)?a(S):(t.consume(S),h)}function g(S){return S===64?(t.consume(S),y):E4(S)?(t.consume(S),g):a(S)}function y(S){return Dt(S)?p(S):a(S)}function p(S){return S===46?(t.consume(S),u=0,y):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):v(S)}function v(S){if((S===45||Dt(S))&&u++<63){const E=S===45?v:p;return t.consume(S),E}return a(S)}}const pu={partial:!0,tokenize:L4};function L4(t,r,a){return u;function u(f){return Ue(f)?Ie(t,o,"linePrefix")(f):o(f)}function o(f){return f===null||we(f)?r(f):a(f)}}const R1={continuation:{tokenize:B4},exit:H4,name:"blockQuote",tokenize:U4};function U4(t,r,a){const u=this;return o;function o(c){if(c===62){const m=u.containerState;return m.open||(t.enter("blockQuote",{_container:!0}),m.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),f}return a(c)}function f(c){return Ue(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function B4(t,r,a){const u=this;return o;function o(c){return Ue(c)?Ie(t,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):f(c)}function f(c){return t.attempt(R1,r,a)(c)}}function H4(t){t.exit("blockQuote")}const L1={name:"characterEscape",tokenize:q4};function q4(t,r,a){return u;function u(f){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(f),t.exit("escapeMarker"),o}function o(f){return T4(f)?(t.enter("characterEscapeValue"),t.consume(f),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):a(f)}}const U1={name:"characterReference",tokenize:I4};function I4(t,r,a){const u=this;let o=0,f,c;return m;function m(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),h}function h(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),f=31,c=Dt,y(p))}function g(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),f=6,c=C4,y):(t.enter("characterReferenceValue"),f=7,c=om,y(p))}function y(p){if(p===59&&o){const v=t.exit("characterReferenceValue");return c===Dt&&!Im(u.sliceSerialize(v))?a(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(p)&&o++<f?(t.consume(p),y):a(p)}}const hb={partial:!0,tokenize:Y4},pb={concrete:!0,name:"codeFenced",tokenize:V4};function V4(t,r,a){const u=this,o={partial:!0,tokenize:W};let f=0,c=0,m;return h;function h(D){return g(D)}function g(D){const F=u.events[u.events.length-1];return f=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,m=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===m?(c++,t.consume(D),y):c<3?a(D):(t.exit("codeFencedFenceSequence"),Ue(D)?Ie(t,p,"whitespace")(D):p(D))}function p(D){return D===null||we(D)?(t.exit("codeFencedFence"),u.interrupt?r(D):t.check(hb,T,P)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||we(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(D)):Ue(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ie(t,S,"whitespace")(D)):D===96&&D===m?a(D):(t.consume(D),v)}function S(D){return D===null||we(D)?p(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||we(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(D)):D===96&&D===m?a(D):(t.consume(D),E)}function T(D){return t.attempt(o,P,N)(D)}function N(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),_}function _(D){return f>0&&Ue(D)?Ie(t,M,"linePrefix",f+1)(D):M(D)}function M(D){return D===null||we(D)?t.check(hb,T,P)(D):(t.enter("codeFlowValue"),L(D))}function L(D){return D===null||we(D)?(t.exit("codeFlowValue"),M(D)):(t.consume(D),L)}function P(D){return t.exit("codeFenced"),r(D)}function W(D,F,q){let ie=0;return H;function H(te){return D.enter("lineEnding"),D.consume(te),D.exit("lineEnding"),ne}function ne(te){return D.enter("codeFencedFence"),Ue(te)?Ie(D,$,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):$(te)}function $(te){return te===m?(D.enter("codeFencedFenceSequence"),ve(te)):q(te)}function ve(te){return te===m?(ie++,D.consume(te),ve):ie>=c?(D.exit("codeFencedFenceSequence"),Ue(te)?Ie(D,se,"whitespace")(te):se(te)):q(te)}function se(te){return te===null||we(te)?(D.exit("codeFencedFence"),F(te)):q(te)}}}function Y4(t,r,a){const u=this;return o;function o(c){return c===null?a(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),f)}function f(c){return u.parser.lazy[u.now().line]?a(c):r(c)}}const wd={name:"codeIndented",tokenize:F4},G4={partial:!0,tokenize:X4};function F4(t,r,a){const u=this;return o;function o(g){return t.enter("codeIndented"),Ie(t,f,"linePrefix",5)(g)}function f(g){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(g):a(g)}function c(g){return g===null?h(g):we(g)?t.attempt(G4,c,h)(g):(t.enter("codeFlowValue"),m(g))}function m(g){return g===null||we(g)?(t.exit("codeFlowValue"),c(g)):(t.consume(g),m)}function h(g){return t.exit("codeIndented"),r(g)}}function X4(t,r,a){const u=this;return o;function o(c){return u.parser.lazy[u.now().line]?a(c):we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ie(t,f,"linePrefix",5)(c)}function f(c){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(c):we(c)?o(c):a(c)}}const Q4={name:"codeText",previous:K4,resolve:Z4,tokenize:P4};function Z4(t){let r=t.length-4,a=3,u,o;if((t[a][1].type==="lineEnding"||t[a][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(u=a;++u<r;)if(t[u][1].type==="codeTextData"){t[a][1].type="codeTextPadding",t[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(u=a-1,r++;++u<=r;)o===void 0?u!==r&&t[u][1].type!=="lineEnding"&&(o=u):(u===r||t[u][1].type==="lineEnding")&&(t[o][1].type="codeTextData",u!==o+2&&(t[o][1].end=t[u-1][1].end,t.splice(o+2,u-o-2),r-=u-o-2,u=o+2),o=void 0);return t}function K4(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function P4(t,r,a){let u=0,o,f;return c;function c(p){return t.enter("codeText"),t.enter("codeTextSequence"),m(p)}function m(p){return p===96?(t.consume(p),u++,m):(t.exit("codeTextSequence"),h(p))}function h(p){return p===null?a(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),h):p===96?(f=t.enter("codeTextSequence"),o=0,y(p)):we(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),h):(t.enter("codeTextData"),g(p))}function g(p){return p===null||p===32||p===96||we(p)?(t.exit("codeTextData"),h(p)):(t.consume(p),g)}function y(p){return p===96?(t.consume(p),o++,y):o===u?(t.exit("codeTextSequence"),t.exit("codeText"),r(p)):(f.type="codeTextData",g(p))}}class $4{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const u=a??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(r,u):r>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(r,a,u){const o=a||0;this.setCursor(Math.trunc(r));const f=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&Wi(this.left,u),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Wi(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Wi(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);Wi(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Wi(this.left,a.reverse())}}}function Wi(t,r){let a=0;if(r.length<1e4)t.push(...r);else for(;a<r.length;)t.push(...r.slice(a,a+1e4)),a+=1e4}function B1(t){const r={};let a=-1,u,o,f,c,m,h,g;const y=new $4(t);for(;++a<y.length;){for(;a in r;)a=r[a];if(u=y.get(a),a&&u[1].type==="chunkFlow"&&y.get(a-1)[1].type==="listItemPrefix"&&(h=u[1]._tokenizer.events,f=0,f<h.length&&h[f][1].type==="lineEndingBlank"&&(f+=2),f<h.length&&h[f][1].type==="content"))for(;++f<h.length&&h[f][1].type!=="content";)h[f][1].type==="chunkText"&&(h[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(r,J4(y,a)),a=r[a],g=!0);else if(u[1]._container){for(f=a,o=void 0;f--;)if(c=y.get(f),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=f);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(u[1].end={...y.get(o)[1].start},m=y.slice(o,a),m.unshift(u),y.splice(o,a-o+1,m))}}return mn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!g}function J4(t,r){const a=t.get(r)[1],u=t.get(r)[2];let o=r-1;const f=[];let c=a._tokenizer;c||(c=u.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const m=c.events,h=[],g={};let y,p,v=-1,S=a,E=0,T=0;const N=[T];for(;S;){for(;t.get(++o)[1]!==S;);f.push(o),S._tokenizer||(y=u.sliceStream(S),S.next||y.push(null),p&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=S,S=S.next}for(S=a;++v<m.length;)m[v][0]==="exit"&&m[v-1][0]==="enter"&&m[v][1].type===m[v-1][1].type&&m[v][1].start.line!==m[v][1].end.line&&(T=v+1,N.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):N.pop(),v=N.length;v--;){const _=m.slice(N[v],N[v+1]),M=f.pop();h.push([M,M+_.length-1]),t.splice(M,2,_)}for(h.reverse(),v=-1;++v<h.length;)g[E+h[v][0]]=E+h[v][1],E+=h[v][1]-h[v][0]-1;return g}const W4={resolve:t_,tokenize:n_},e_={partial:!0,tokenize:l_};function t_(t){return B1(t),t}function n_(t,r){let a;return u;function u(m){return t.enter("content"),a=t.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?f(m):we(m)?t.check(e_,c,f)(m):(t.consume(m),o)}function f(m){return t.exit("chunkContent"),t.exit("content"),r(m)}function c(m){return t.consume(m),t.exit("chunkContent"),a.next=t.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,o}}function l_(t,r,a){const u=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ie(t,f,"linePrefix")}function f(c){if(c===null||we(c))return a(c);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(c):t.interrupt(u.parser.constructs.flow,a,r)(c)}}function H1(t,r,a,u,o,f,c,m,h){const g=h||Number.POSITIVE_INFINITY;let y=0;return p;function p(_){return _===60?(t.enter(u),t.enter(o),t.enter(f),t.consume(_),t.exit(f),v):_===null||_===32||_===41||ms(_)?a(_):(t.enter(u),t.enter(c),t.enter(m),t.enter("chunkString",{contentType:"string"}),T(_))}function v(_){return _===62?(t.enter(f),t.consume(_),t.exit(f),t.exit(o),t.exit(u),r):(t.enter(m),t.enter("chunkString",{contentType:"string"}),S(_))}function S(_){return _===62?(t.exit("chunkString"),t.exit(m),v(_)):_===null||_===60||we(_)?a(_):(t.consume(_),_===92?E:S)}function E(_){return _===60||_===62||_===92?(t.consume(_),S):S(_)}function T(_){return!y&&(_===null||_===41||tt(_))?(t.exit("chunkString"),t.exit(m),t.exit(c),t.exit(u),r(_)):y<g&&_===40?(t.consume(_),y++,T):_===41?(t.consume(_),y--,T):_===null||_===32||_===40||ms(_)?a(_):(t.consume(_),_===92?N:T)}function N(_){return _===40||_===41||_===92?(t.consume(_),T):T(_)}}function q1(t,r,a,u,o,f){const c=this;let m=0,h;return g;function g(S){return t.enter(u),t.enter(o),t.consume(S),t.exit(o),t.enter(f),y}function y(S){return m>999||S===null||S===91||S===93&&!h||S===94&&!m&&"_hiddenFootnoteSupport"in c.parser.constructs?a(S):S===93?(t.exit(f),t.enter(o),t.consume(S),t.exit(o),t.exit(u),r):we(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||S===91||S===93||we(S)||m++>999?(t.exit("chunkString"),y(S)):(t.consume(S),h||(h=!Ue(S)),S===92?v:p)}function v(S){return S===91||S===92||S===93?(t.consume(S),m++,p):p(S)}}function I1(t,r,a,u,o,f){let c;return m;function m(v){return v===34||v===39||v===40?(t.enter(u),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,h):a(v)}function h(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(u),r):(t.enter(f),g(v))}function g(v){return v===c?(t.exit(f),h(c)):v===null?a(v):we(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ie(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||we(v)?(t.exit("chunkString"),g(v)):(t.consume(v),v===92?p:y)}function p(v){return v===c||v===92?(t.consume(v),y):y(v)}}function iu(t,r){let a;return u;function u(o){return we(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a=!0,u):Ue(o)?Ie(t,u,a?"linePrefix":"lineSuffix")(o):r(o)}}const r_={name:"definition",tokenize:i_},a_={partial:!0,tokenize:u_};function i_(t,r,a){const u=this;let o;return f;function f(S){return t.enter("definition"),c(S)}function c(S){return q1.call(u,t,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=Ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),h):a(S)}function h(S){return tt(S)?iu(t,g)(S):g(S)}function g(S){return H1(t,y,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return t.attempt(a_,p,p)(S)}function p(S){return Ue(S)?Ie(t,v,"whitespace")(S):v(S)}function v(S){return S===null||we(S)?(t.exit("definition"),u.parser.defined.push(o),r(S)):a(S)}}function u_(t,r,a){return u;function u(m){return tt(m)?iu(t,o)(m):a(m)}function o(m){return I1(t,f,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function f(m){return Ue(m)?Ie(t,c,"whitespace")(m):c(m)}function c(m){return m===null||we(m)?r(m):a(m)}}const o_={name:"hardBreakEscape",tokenize:s_};function s_(t,r,a){return u;function u(f){return t.enter("hardBreakEscape"),t.consume(f),o}function o(f){return we(f)?(t.exit("hardBreakEscape"),r(f)):a(f)}}const c_={name:"headingAtx",resolve:f_,tokenize:d_};function f_(t,r){let a=t.length-2,u=3,o,f;return t[u][1].type==="whitespace"&&(u+=2),a-2>u&&t[a][1].type==="whitespace"&&(a-=2),t[a][1].type==="atxHeadingSequence"&&(u===a-1||a-4>u&&t[a-2][1].type==="whitespace")&&(a-=u+1===a?2:4),a>u&&(o={type:"atxHeadingText",start:t[u][1].start,end:t[a][1].end},f={type:"chunkText",start:t[u][1].start,end:t[a][1].end,contentType:"text"},mn(t,u,a-u+1,[["enter",o,r],["enter",f,r],["exit",f,r],["exit",o,r]])),t}function d_(t,r,a){let u=0;return o;function o(y){return t.enter("atxHeading"),f(y)}function f(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&u++<6?(t.consume(y),c):y===null||tt(y)?(t.exit("atxHeadingSequence"),m(y)):a(y)}function m(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||we(y)?(t.exit("atxHeading"),r(y)):Ue(y)?Ie(t,m,"whitespace")(y):(t.enter("atxHeadingText"),g(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),m(y))}function g(y){return y===null||y===35||tt(y)?(t.exit("atxHeadingText"),m(y)):(t.consume(y),g)}}const m_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gb=["pre","script","style","textarea"],h_={concrete:!0,name:"htmlFlow",resolveTo:y_,tokenize:b_},p_={partial:!0,tokenize:v_},g_={partial:!0,tokenize:x_};function y_(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function b_(t,r,a){const u=this;let o,f,c,m,h;return g;function g(A){return y(A)}function y(A){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(A),p}function p(A){return A===33?(t.consume(A),v):A===47?(t.consume(A),f=!0,T):A===63?(t.consume(A),o=3,u.interrupt?r:C):It(A)?(t.consume(A),c=String.fromCharCode(A),N):a(A)}function v(A){return A===45?(t.consume(A),o=2,S):A===91?(t.consume(A),o=5,m=0,E):It(A)?(t.consume(A),o=4,u.interrupt?r:C):a(A)}function S(A){return A===45?(t.consume(A),u.interrupt?r:C):a(A)}function E(A){const j="CDATA[";return A===j.charCodeAt(m++)?(t.consume(A),m===j.length?u.interrupt?r:$:E):a(A)}function T(A){return It(A)?(t.consume(A),c=String.fromCharCode(A),N):a(A)}function N(A){if(A===null||A===47||A===62||tt(A)){const j=A===47,I=c.toLowerCase();return!j&&!f&&gb.includes(I)?(o=1,u.interrupt?r(A):$(A)):m_.includes(c.toLowerCase())?(o=6,j?(t.consume(A),_):u.interrupt?r(A):$(A)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?a(A):f?M(A):L(A))}return A===45||Dt(A)?(t.consume(A),c+=String.fromCharCode(A),N):a(A)}function _(A){return A===62?(t.consume(A),u.interrupt?r:$):a(A)}function M(A){return Ue(A)?(t.consume(A),M):H(A)}function L(A){return A===47?(t.consume(A),H):A===58||A===95||It(A)?(t.consume(A),P):Ue(A)?(t.consume(A),L):H(A)}function P(A){return A===45||A===46||A===58||A===95||Dt(A)?(t.consume(A),P):W(A)}function W(A){return A===61?(t.consume(A),D):Ue(A)?(t.consume(A),W):L(A)}function D(A){return A===null||A===60||A===61||A===62||A===96?a(A):A===34||A===39?(t.consume(A),h=A,F):Ue(A)?(t.consume(A),D):q(A)}function F(A){return A===h?(t.consume(A),h=null,ie):A===null||we(A)?a(A):(t.consume(A),F)}function q(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||tt(A)?W(A):(t.consume(A),q)}function ie(A){return A===47||A===62||Ue(A)?L(A):a(A)}function H(A){return A===62?(t.consume(A),ne):a(A)}function ne(A){return A===null||we(A)?$(A):Ue(A)?(t.consume(A),ne):a(A)}function $(A){return A===45&&o===2?(t.consume(A),X):A===60&&o===1?(t.consume(A),le):A===62&&o===4?(t.consume(A),Xe):A===63&&o===3?(t.consume(A),C):A===93&&o===5?(t.consume(A),Ae):we(A)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(p_,ee,ve)(A)):A===null||we(A)?(t.exit("htmlFlowData"),ve(A)):(t.consume(A),$)}function ve(A){return t.check(g_,se,ee)(A)}function se(A){return t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),te}function te(A){return A===null||we(A)?ve(A):(t.enter("htmlFlowData"),$(A))}function X(A){return A===45?(t.consume(A),C):$(A)}function le(A){return A===47?(t.consume(A),c="",de):$(A)}function de(A){if(A===62){const j=c.toLowerCase();return gb.includes(j)?(t.consume(A),Xe):$(A)}return It(A)&&c.length<8?(t.consume(A),c+=String.fromCharCode(A),de):$(A)}function Ae(A){return A===93?(t.consume(A),C):$(A)}function C(A){return A===62?(t.consume(A),Xe):A===45&&o===2?(t.consume(A),C):$(A)}function Xe(A){return A===null||we(A)?(t.exit("htmlFlowData"),ee(A)):(t.consume(A),Xe)}function ee(A){return t.exit("htmlFlow"),r(A)}}function x_(t,r,a){const u=this;return o;function o(c){return we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),f):a(c)}function f(c){return u.parser.lazy[u.now().line]?a(c):r(c)}}function v_(t,r,a){return u;function u(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(pu,r,a)}}const S_={name:"htmlText",tokenize:w_};function w_(t,r,a){const u=this;let o,f,c;return m;function m(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),h}function h(C){return C===33?(t.consume(C),g):C===47?(t.consume(C),W):C===63?(t.consume(C),L):It(C)?(t.consume(C),q):a(C)}function g(C){return C===45?(t.consume(C),y):C===91?(t.consume(C),f=0,E):It(C)?(t.consume(C),M):a(C)}function y(C){return C===45?(t.consume(C),S):a(C)}function p(C){return C===null?a(C):C===45?(t.consume(C),v):we(C)?(c=p,le(C)):(t.consume(C),p)}function v(C){return C===45?(t.consume(C),S):p(C)}function S(C){return C===62?X(C):C===45?v(C):p(C)}function E(C){const Xe="CDATA[";return C===Xe.charCodeAt(f++)?(t.consume(C),f===Xe.length?T:E):a(C)}function T(C){return C===null?a(C):C===93?(t.consume(C),N):we(C)?(c=T,le(C)):(t.consume(C),T)}function N(C){return C===93?(t.consume(C),_):T(C)}function _(C){return C===62?X(C):C===93?(t.consume(C),_):T(C)}function M(C){return C===null||C===62?X(C):we(C)?(c=M,le(C)):(t.consume(C),M)}function L(C){return C===null?a(C):C===63?(t.consume(C),P):we(C)?(c=L,le(C)):(t.consume(C),L)}function P(C){return C===62?X(C):L(C)}function W(C){return It(C)?(t.consume(C),D):a(C)}function D(C){return C===45||Dt(C)?(t.consume(C),D):F(C)}function F(C){return we(C)?(c=F,le(C)):Ue(C)?(t.consume(C),F):X(C)}function q(C){return C===45||Dt(C)?(t.consume(C),q):C===47||C===62||tt(C)?ie(C):a(C)}function ie(C){return C===47?(t.consume(C),X):C===58||C===95||It(C)?(t.consume(C),H):we(C)?(c=ie,le(C)):Ue(C)?(t.consume(C),ie):X(C)}function H(C){return C===45||C===46||C===58||C===95||Dt(C)?(t.consume(C),H):ne(C)}function ne(C){return C===61?(t.consume(C),$):we(C)?(c=ne,le(C)):Ue(C)?(t.consume(C),ne):ie(C)}function $(C){return C===null||C===60||C===61||C===62||C===96?a(C):C===34||C===39?(t.consume(C),o=C,ve):we(C)?(c=$,le(C)):Ue(C)?(t.consume(C),$):(t.consume(C),se)}function ve(C){return C===o?(t.consume(C),o=void 0,te):C===null?a(C):we(C)?(c=ve,le(C)):(t.consume(C),ve)}function se(C){return C===null||C===34||C===39||C===60||C===61||C===96?a(C):C===47||C===62||tt(C)?ie(C):(t.consume(C),se)}function te(C){return C===47||C===62||tt(C)?ie(C):a(C)}function X(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),r):a(C)}function le(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),de}function de(C){return Ue(C)?Ie(t,Ae,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Ae(C)}function Ae(C){return t.enter("htmlTextData"),c(C)}}const Vm={name:"labelEnd",resolveAll:T_,resolveTo:N_,tokenize:__},k_={tokenize:A_},E_={tokenize:z_},C_={tokenize:j_};function T_(t){let r=-1;const a=[];for(;++r<t.length;){const u=t[r][1];if(a.push(t[r]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",r+=o}}return t.length!==a.length&&mn(t,0,t.length,a),t}function N_(t,r){let a=t.length,u=0,o,f,c,m;for(;a--;)if(o=t[a][1],f){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[a][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[a][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(f=a,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(c=a);const h={type:t[f][1].type==="labelLink"?"link":"image",start:{...t[f][1].start},end:{...t[t.length-1][1].end}},g={type:"label",start:{...t[f][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[f+u+2][1].end},end:{...t[c-2][1].start}};return m=[["enter",h,r],["enter",g,r]],m=Cn(m,t.slice(f+1,f+u+3)),m=Cn(m,[["enter",y,r]]),m=Cn(m,Ss(r.parser.constructs.insideSpan.null,t.slice(f+u+4,c-3),r)),m=Cn(m,[["exit",y,r],t[c-2],t[c-1],["exit",g,r]]),m=Cn(m,t.slice(c+1)),m=Cn(m,[["exit",h,r]]),mn(t,f,t.length,m),t}function __(t,r,a){const u=this;let o=u.events.length,f,c;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){f=u.events[o][1];break}return m;function m(v){return f?f._inactive?p(v):(c=u.parser.defined.includes(Ln(u.sliceSerialize({start:f.end,end:u.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):a(v)}function h(v){return v===40?t.attempt(k_,y,c?y:p)(v):v===91?t.attempt(E_,y,c?g:p)(v):c?y(v):p(v)}function g(v){return t.attempt(C_,y,p)(v)}function y(v){return r(v)}function p(v){return f._balanced=!0,a(v)}}function A_(t,r,a){return u;function u(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),o}function o(p){return tt(p)?iu(t,f)(p):f(p)}function f(p){return p===41?y(p):H1(t,c,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function c(p){return tt(p)?iu(t,h)(p):y(p)}function m(p){return a(p)}function h(p){return p===34||p===39||p===40?I1(t,g,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function g(p){return tt(p)?iu(t,y)(p):y(p)}function y(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),r):a(p)}}function z_(t,r,a){const u=this;return o;function o(m){return q1.call(u,t,f,c,"reference","referenceMarker","referenceString")(m)}function f(m){return u.parser.defined.includes(Ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?r(m):a(m)}function c(m){return a(m)}}function j_(t,r,a){return u;function u(f){return t.enter("reference"),t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),o}function o(f){return f===93?(t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),t.exit("reference"),r):a(f)}}const O_={name:"labelStartImage",resolveAll:Vm.resolveAll,tokenize:D_};function D_(t,r,a){const u=this;return o;function o(m){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(m),t.exit("labelImageMarker"),f}function f(m){return m===91?(t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelImage"),c):a(m)}function c(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(m):r(m)}}const M_={name:"labelStartLink",resolveAll:Vm.resolveAll,tokenize:R_};function R_(t,r,a){const u=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),f}function f(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(c):r(c)}}const kd={name:"lineEnding",tokenize:L_};function L_(t,r){return a;function a(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),Ie(t,r,"linePrefix")}}const fs={name:"thematicBreak",tokenize:U_};function U_(t,r,a){let u=0,o;return f;function f(g){return t.enter("thematicBreak"),c(g)}function c(g){return o=g,m(g)}function m(g){return g===o?(t.enter("thematicBreakSequence"),h(g)):u>=3&&(g===null||we(g))?(t.exit("thematicBreak"),r(g)):a(g)}function h(g){return g===o?(t.consume(g),u++,h):(t.exit("thematicBreakSequence"),Ue(g)?Ie(t,m,"whitespace")(g):m(g))}}const Pt={continuation:{tokenize:I_},exit:Y_,name:"list",tokenize:q_},B_={partial:!0,tokenize:G_},H_={partial:!0,tokenize:V_};function q_(t,r,a){const u=this,o=u.events[u.events.length-1];let f=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return m;function m(S){const E=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:om(S)){if(u.containerState.type||(u.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(fs,a,g)(S):g(S);if(!u.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(S)}return a(S)}function h(S){return om(S)&&++c<10?(t.consume(S),h):(!u.interrupt||c<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),g(S)):a(S)}function g(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,t.check(pu,u.interrupt?a:y,t.attempt(B_,v,p))}function y(S){return u.containerState.initialBlankLine=!0,f++,v(S)}function p(S){return Ue(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):a(S)}function v(S){return u.containerState.size=f+u.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(S)}}function I_(t,r,a){const u=this;return u.containerState._closeFlow=void 0,t.check(pu,o,f);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ie(t,r,"listItemIndent",u.containerState.size+1)(m)}function f(m){return u.containerState.furtherBlankLines||!Ue(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,c(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,t.attempt(H_,r,c)(m))}function c(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ie(t,t.attempt(Pt,r,a),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function V_(t,r,a){const u=this;return Ie(t,o,"listItemIndent",u.containerState.size+1);function o(f){const c=u.events[u.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===u.containerState.size?r(f):a(f)}}function Y_(t){t.exit(this.containerState.type)}function G_(t,r,a){const u=this;return Ie(t,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(f){const c=u.events[u.events.length-1];return!Ue(f)&&c&&c[1].type==="listItemPrefixWhitespace"?r(f):a(f)}}const yb={name:"setextUnderline",resolveTo:F_,tokenize:X_};function F_(t,r){let a=t.length,u,o,f;for(;a--;)if(t[a][0]==="enter"){if(t[a][1].type==="content"){u=a;break}t[a][1].type==="paragraph"&&(o=a)}else t[a][1].type==="content"&&t.splice(a,1),!f&&t[a][1].type==="definition"&&(f=a);const c={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",f?(t.splice(o,0,["enter",c,r]),t.splice(f+1,0,["exit",t[u][1],r]),t[u][1].end={...t[f][1].end}):t[u][1]=c,t.push(["exit",c,r]),t}function X_(t,r,a){const u=this;let o;return f;function f(g){let y=u.events.length,p;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){p=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||p)?(t.enter("setextHeadingLine"),o=g,c(g)):a(g)}function c(g){return t.enter("setextHeadingLineSequence"),m(g)}function m(g){return g===o?(t.consume(g),m):(t.exit("setextHeadingLineSequence"),Ue(g)?Ie(t,h,"lineSuffix")(g):h(g))}function h(g){return g===null||we(g)?(t.exit("setextHeadingLine"),r(g)):a(g)}}const Q_={tokenize:Z_};function Z_(t){const r=this,a=t.attempt(pu,u,t.attempt(this.parser.constructs.flowInitial,o,Ie(t,t.attempt(this.parser.constructs.flow,o,t.attempt(W4,o)),"linePrefix")));return a;function u(f){if(f===null){t.consume(f);return}return t.enter("lineEndingBlank"),t.consume(f),t.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function o(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),r.currentConstruct=void 0,a}}const K_={resolveAll:Y1()},P_=V1("string"),$_=V1("text");function V1(t){return{resolveAll:Y1(t==="text"?J_:void 0),tokenize:r};function r(a){const u=this,o=this.parser.constructs[t],f=a.attempt(o,c,m);return c;function c(y){return g(y)?f(y):m(y)}function m(y){if(y===null){a.consume(y);return}return a.enter("data"),a.consume(y),h}function h(y){return g(y)?(a.exit("data"),f(y)):(a.consume(y),h)}function g(y){if(y===null)return!0;const p=o[y];let v=-1;if(p)for(;++v<p.length;){const S=p[v];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function Y1(t){return r;function r(a,u){let o=-1,f;for(;++o<=a.length;)f===void 0?a[o]&&a[o][1].type==="data"&&(f=o,o++):(!a[o]||a[o][1].type!=="data")&&(o!==f+2&&(a[f][1].end=a[o-1][1].end,a.splice(f+2,o-f-2),o=f+2),f=void 0);return t?t(a,u):a}}function J_(t,r){let a=0;for(;++a<=t.length;)if((a===t.length||t[a][1].type==="lineEnding")&&t[a-1][1].type==="data"){const u=t[a-1][1],o=r.sliceStream(u);let f=o.length,c=-1,m=0,h;for(;f--;){const g=o[f];if(typeof g=="string"){for(c=g.length;g.charCodeAt(c-1)===32;)m++,c--;if(c)break;c=-1}else if(g===-2)h=!0,m++;else if(g!==-1){f++;break}}if(r._contentTypeTextTrailing&&a===t.length&&(m=0),m){const g={type:a===t.length||h||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?c:u.start._bufferIndex+c,_index:u.start._index+f,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...g.start},u.start.offset===u.end.offset?Object.assign(u,g):(t.splice(a,0,["enter",g,r],["exit",g,r]),a+=2)}a++}return t}const W_={42:Pt,43:Pt,45:Pt,48:Pt,49:Pt,50:Pt,51:Pt,52:Pt,53:Pt,54:Pt,55:Pt,56:Pt,57:Pt,62:R1},eA={91:r_},tA={[-2]:wd,[-1]:wd,32:wd},nA={35:c_,42:fs,45:[yb,fs],60:h_,61:yb,95:fs,96:pb,126:pb},lA={38:U1,92:L1},rA={[-5]:kd,[-4]:kd,[-3]:kd,33:O_,38:U1,42:sm,60:[M4,S_],91:M_,92:[o_,L1],93:Vm,95:sm,96:Q4},aA={null:[sm,K_]},iA={null:[42,95]},uA={null:[]},oA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:iA,contentInitial:eA,disable:uA,document:W_,flow:nA,flowInitial:tA,insideSpan:aA,string:lA,text:rA},Symbol.toStringTag,{value:"Module"}));function sA(t,r,a){let u={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},f=[];let c=[],m=[];const h={attempt:F(W),check:F(D),consume:M,enter:L,exit:P,interrupt:F(D,{interrupt:!0})},g={code:null,containerState:{},defineSkip:T,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:p};let y=r.tokenize.call(g,h);return r.resolveAll&&f.push(r),g;function p(ne){return c=Cn(c,ne),N(),c[c.length-1]!==null?[]:(q(r,0),g.events=Ss(f,g.events,g),g.events)}function v(ne,$){return fA(S(ne),$)}function S(ne){return cA(c,ne)}function E(){const{_bufferIndex:ne,_index:$,line:ve,column:se,offset:te}=u;return{_bufferIndex:ne,_index:$,line:ve,column:se,offset:te}}function T(ne){o[ne.line]=ne.column,H()}function N(){let ne;for(;u._index<c.length;){const $=c[u._index];if(typeof $=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<$.length;)_($.charCodeAt(u._bufferIndex));else _($)}}function _(ne){y=y(ne)}function M(ne){we(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,H()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===c[u._index].length&&(u._bufferIndex=-1,u._index++)),g.previous=ne}function L(ne,$){const ve=$||{};return ve.type=ne,ve.start=E(),g.events.push(["enter",ve,g]),m.push(ve),ve}function P(ne){const $=m.pop();return $.end=E(),g.events.push(["exit",$,g]),$}function W(ne,$){q(ne,$.from)}function D(ne,$){$.restore()}function F(ne,$){return ve;function ve(se,te,X){let le,de,Ae,C;return Array.isArray(se)?ee(se):"tokenize"in se?ee([se]):Xe(se);function Xe(J){return ae;function ae(be){const fe=be!==null&&J[be],Ce=be!==null&&J.null,me=[...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return ee(me)(be)}}function ee(J){return le=J,de=0,J.length===0?X:A(J[de])}function A(J){return ae;function ae(be){return C=ie(),Ae=J,J.partial||(g.currentConstruct=J),J.name&&g.parser.constructs.disable.null.includes(J.name)?I():J.tokenize.call($?Object.assign(Object.create(g),$):g,h,j,I)(be)}}function j(J){return ne(Ae,C),te}function I(J){return C.restore(),++de<le.length?A(le[de]):X}}}function q(ne,$){ne.resolveAll&&!f.includes(ne)&&f.push(ne),ne.resolve&&mn(g.events,$,g.events.length-$,ne.resolve(g.events.slice($),g)),ne.resolveTo&&(g.events=ne.resolveTo(g.events,g))}function ie(){const ne=E(),$=g.previous,ve=g.currentConstruct,se=g.events.length,te=Array.from(m);return{from:se,restore:X};function X(){u=ne,g.previous=$,g.currentConstruct=ve,g.events.length=se,m=te,H()}}function H(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function cA(t,r){const a=r.start._index,u=r.start._bufferIndex,o=r.end._index,f=r.end._bufferIndex;let c;if(a===o)c=[t[a].slice(u,f)];else{if(c=t.slice(a,o),u>-1){const m=c[0];typeof m=="string"?c[0]=m.slice(u):c.shift()}f>0&&c.push(t[o].slice(0,f))}return c}function fA(t,r){let a=-1;const u=[];let o;for(;++a<t.length;){const f=t[a];let c;if(typeof f=="string")c=f;else switch(f){case-5:{c="\r";break}case-4:{c=`
378
+ `;break}case-3:{c=`\r
379
+ `;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&o)continue;c=" ";break}default:c=String.fromCharCode(f)}o=f===-2,u.push(c)}return u.join("")}function dA(t){const u={constructs:D1([oA,...(t||{}).extensions||[]]),content:o(N4),defined:[],document:o(A4),flow:o(Q_),lazy:{},string:o(P_),text:o($_)};return u;function o(f){return c;function c(m){return sA(u,f,m)}}}function mA(t){for(;!B1(t););return t}const bb=/[\0\t\n\r]/g;function hA(){let t=1,r="",a=!0,u;return o;function o(f,c,m){const h=[];let g,y,p,v,S;for(f=r+(typeof f=="string"?f.toString():new TextDecoder(c||void 0).decode(f)),p=0,r="",a&&(f.charCodeAt(0)===65279&&p++,a=void 0);p<f.length;){if(bb.lastIndex=p,g=bb.exec(f),v=g&&g.index!==void 0?g.index:f.length,S=f.charCodeAt(v),!g){r=f.slice(p);break}if(S===10&&p===v&&u)h.push(-3),u=void 0;else switch(u&&(h.push(-5),u=void 0),p<v&&(h.push(f.slice(p,v)),t+=v-p),S){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:u=!0,t=1}p=v+1}return m&&(u&&h.push(-5),r&&h.push(r),h.push(null)),h}}const pA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gA(t){return t.replace(pA,yA)}function yA(t,r,a){if(r)return r;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),f=o===120||o===88;return M1(a.slice(f?2:1),f?16:10)}return Im(a)||t}const G1={}.hasOwnProperty;function bA(t,r,a){return r&&typeof r=="object"&&(a=r,r=void 0),xA(a)(mA(dA(a).document().write(hA()(t,r,!0))))}function xA(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Wt),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:f(ll),blockQuote:f(Ce),characterEscape:ie,characterReference:ie,codeFenced:f(me),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:f(me,c),codeText:f(Se,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:f(Rt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:f(Bn),hardBreakEscape:f(Jt),hardBreakTrailing:f(Jt),htmlFlow:f(ct,c),htmlFlowData:ie,htmlText:f(ct,c),htmlTextData:ie,image:f(Pe),label:c,link:f(Wt),listItem:f(Hn),listItemValue:v,listOrdered:f(Nl,p),listUnordered:f(Nl),paragraph:f(Yr),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:f(ll),strong:f(Gr),thematicBreak:f(Wa)},exit:{atxHeading:h(),atxHeadingSequence:W,autolink:h(),autolinkEmail:fe,autolinkProtocol:be,blockQuote:h(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:I,characterReferenceMarkerNumeric:I,characterReferenceValue:J,characterReference:ae,codeFenced:h(N),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:h(_),codeText:h(te),codeTextData:H,data:H,definition:h(),definitionDestinationString:P,definitionLabelString:M,definitionTitleString:L,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(ve),htmlFlowData:H,htmlText:h(se),htmlTextData:H,image:h(le),label:Ae,labelText:de,lineEnding:ne,link:h(X),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:j,resourceDestinationString:C,resourceTitleString:Xe,resource:ee,setextHeading:h(q),setextHeadingLineSequence:F,setextHeadingText:D,strong:h(),thematicBreak:h()}};F1(r,(t||{}).mdastExtensions||[]);const a={};return u;function u(K){let ue={type:"root",children:[]};const Te={stack:[ue],tokenStack:[],config:r,enter:m,exit:g,buffer:c,resume:y,data:a},ze=[];let Ye=-1;for(;++Ye<K.length;)if(K[Ye][1].type==="listOrdered"||K[Ye][1].type==="listUnordered")if(K[Ye][0]==="enter")ze.push(Ye);else{const Lt=ze.pop();Ye=o(K,Lt,Ye)}for(Ye=-1;++Ye<K.length;){const Lt=r[K[Ye][0]];G1.call(Lt,K[Ye][1].type)&&Lt[K[Ye][1].type].call(Object.assign({sliceSerialize:K[Ye][2].sliceSerialize},Te),K[Ye][1])}if(Te.tokenStack.length>0){const Lt=Te.tokenStack[Te.tokenStack.length-1];(Lt[1]||xb).call(Te,void 0,Lt[0])}for(ue.position={start:rr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:rr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<r.transforms.length;)ue=r.transforms[Ye](ue)||ue;return ue}function o(K,ue,Te){let ze=ue-1,Ye=-1,Lt=!1,rl,hn,al,il;for(;++ze<=Te;){const kt=K[ze];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?Ye++:Ye--,il=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(rl&&!il&&!Ye&&!al&&(al=ze),il=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:il=void 0}if(!Ye&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||Ye===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(rl){let Al=ze;for(hn=void 0;Al--;){const _n=K[Al];if(_n[1].type==="lineEnding"||_n[1].type==="lineEndingBlank"){if(_n[0]==="exit")continue;hn&&(K[hn][1].type="lineEndingBlank",Lt=!0),_n[1].type="lineEnding",hn=Al}else if(!(_n[1].type==="linePrefix"||_n[1].type==="blockQuotePrefix"||_n[1].type==="blockQuotePrefixWhitespace"||_n[1].type==="blockQuoteMarker"||_n[1].type==="listItemIndent"))break}al&&(!hn||al<hn)&&(rl._spread=!0),rl.end=Object.assign({},hn?K[hn][1].start:kt[1].end),K.splice(hn||ze,0,["exit",rl,kt[2]]),ze++,Te++}if(kt[1].type==="listItemPrefix"){const Al={type:"listItem",_spread:!1,start:Object.assign({},kt[1].start),end:void 0};rl=Al,K.splice(ze,0,["enter",Al,kt[2]]),ze++,Te++,al=void 0,il=!0}}}return K[ue][1]._spread=Lt,Te}function f(K,ue){return Te;function Te(ze){m.call(this,K(ze),ze),ue&&ue.call(this,ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(K,ue,Te){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ue,Te||void 0]),K.position={start:rr(ue.start),end:void 0}}function h(K){return ue;function ue(Te){K&&K.call(this,Te),g.call(this,Te)}}function g(K,ue){const Te=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==K.type&&(ue?ue.call(this,K,ze[0]):(ze[1]||xb).call(this,K,ze[0]));else throw new Error("Cannot close `"+K.type+"` ("+au({start:K.start,end:K.end})+"): it’s not open");Te.position.end=rr(K.end)}function y(){return qm(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(K){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=K}function E(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=K}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/(\r?\n|\r)$/g,"")}function M(K){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=Ln(this.sliceSerialize(K)).toLowerCase()}function L(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function P(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function W(K){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Te=this.sliceSerialize(K).length;ue.depth=Te}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function F(K){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(K){const Te=this.stack[this.stack.length-1].children;let ze=Te[Te.length-1];(!ze||ze.type!=="text")&&(ze=_l(),ze.position={start:rr(K.start),end:void 0},Te.push(ze)),this.stack.push(ze)}function H(K){const ue=this.stack.pop();ue.value+=this.sliceSerialize(K),ue.position.end=rr(K.end)}function ne(K){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=ue.children[ue.children.length-1];Te.position.end=rr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ue.type)&&(ie.call(this,K),H.call(this,K))}function $(){this.data.atHardBreak=!0}function ve(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function se(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function te(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function X(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function le(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function de(K){const ue=this.sliceSerialize(K),Te=this.stack[this.stack.length-2];Te.label=gA(ue),Te.identifier=Ln(ue).toLowerCase()}function Ae(){const K=this.stack[this.stack.length-1],ue=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const ze=K.children;Te.children=ze}else Te.alt=ue}function C(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function Xe(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function ee(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function j(K){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=Ln(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function I(K){this.data.characterReferenceType=K.type}function J(K){const ue=this.sliceSerialize(K),Te=this.data.characterReferenceType;let ze;Te?(ze=M1(ue,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Im(ue);const Ye=this.stack[this.stack.length-1];Ye.value+=ze}function ae(K){const ue=this.stack.pop();ue.position.end=rr(K.end)}function be(K){H.call(this,K);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(K)}function fe(K){H.call(this,K);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(K)}function Ce(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function Se(){return{type:"inlineCode",value:""}}function Rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Bn(){return{type:"emphasis",children:[]}}function ll(){return{type:"heading",depth:0,children:[]}}function Jt(){return{type:"break"}}function ct(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function Wt(){return{type:"link",title:null,url:"",children:[]}}function Nl(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Hn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Yr(){return{type:"paragraph",children:[]}}function Gr(){return{type:"strong",children:[]}}function _l(){return{type:"text",value:""}}function Wa(){return{type:"thematicBreak"}}}function rr(t){return{line:t.line,column:t.column,offset:t.offset}}function F1(t,r){let a=-1;for(;++a<r.length;){const u=r[a];Array.isArray(u)?F1(t,u):vA(t,u)}}function vA(t,r){let a;for(a in r)if(G1.call(r,a))switch(a){case"canContainEols":{const u=r[a];u&&t[a].push(...u);break}case"transforms":{const u=r[a];u&&t[a].push(...u);break}case"enter":case"exit":{const u=r[a];u&&Object.assign(t[a],u);break}}}function xb(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+au({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+au({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+au({start:r.start,end:r.end})+") is still open")}function SA(t){const r=this;r.parser=a;function a(u){return bA(u,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function wA(t,r){const a={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,a),t.applyData(r,a)}function kA(t,r){const a={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,a),[t.applyData(r,a),{type:"text",value:`
380
+ `}]}function EA(t,r){const a=r.value?r.value+`
381
+ `:"",u={},o=r.lang?r.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:a}]};return r.meta&&(f.data={meta:r.meta}),t.patch(r,f),f=t.applyData(r,f),f={type:"element",tagName:"pre",properties:{},children:[f]},t.patch(r,f),f}function CA(t,r){const a={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function TA(t,r){const a={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function NA(t,r){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",u=String(r.identifier).toUpperCase(),o=Ja(u.toLowerCase()),f=t.footnoteOrder.indexOf(u);let c,m=t.footnoteCounts.get(u);m===void 0?(m=0,t.footnoteOrder.push(u),c=t.footnoteOrder.length):c=f+1,m+=1,t.footnoteCounts.set(u,m);const h={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,h);const g={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(r,g),t.applyData(r,g)}function _A(t,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function AA(t,r){if(t.options.allowDangerousHtml){const a={type:"raw",value:r.value};return t.patch(r,a),t.applyData(r,a)}}function X1(t,r){const a=r.referenceType;let u="]";if(a==="collapsed"?u+="[]":a==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+u}];const o=t.all(r),f=o[0];f&&f.type==="text"?f.value="["+f.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=u:o.push({type:"text",value:u}),o}function zA(t,r){const a=String(r.identifier).toUpperCase(),u=t.definitionById.get(a);if(!u)return X1(t,r);const o={src:Ja(u.url||""),alt:r.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const f={type:"element",tagName:"img",properties:o,children:[]};return t.patch(r,f),t.applyData(r,f)}function jA(t,r){const a={src:Ja(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"img",properties:a,children:[]};return t.patch(r,u),t.applyData(r,u)}function OA(t,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,a);const u={type:"element",tagName:"code",properties:{},children:[a]};return t.patch(r,u),t.applyData(r,u)}function DA(t,r){const a=String(r.identifier).toUpperCase(),u=t.definitionById.get(a);if(!u)return X1(t,r);const o={href:Ja(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const f={type:"element",tagName:"a",properties:o,children:t.all(r)};return t.patch(r,f),t.applyData(r,f)}function MA(t,r){const a={href:Ja(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"a",properties:a,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function RA(t,r,a){const u=t.all(r),o=a?LA(a):Q1(r),f={},c=[];if(typeof r.checked=="boolean"){const y=u[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(p={type:"element",tagName:"p",properties:{},children:[]},u.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const y=u[m];(o||m!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
382
+ `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=u[u.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
383
+ `});const g={type:"element",tagName:"li",properties:f,children:c};return t.patch(r,g),t.applyData(r,g)}function LA(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const a=t.children;let u=-1;for(;!r&&++u<a.length;)r=Q1(a[u])}return r}function Q1(t){const r=t.spread;return r??t.children.length>1}function UA(t,r){const a={},u=t.all(r);let o=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++o<u.length;){const c=u[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const f={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:t.wrap(u,!0)};return t.patch(r,f),t.applyData(r,f)}function BA(t,r){const a={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function HA(t,r){const a={type:"root",children:t.wrap(t.all(r))};return t.patch(r,a),t.applyData(r,a)}function qA(t,r){const a={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function IA(t,r){const a=t.all(r),u=a.shift(),o=[];if(u){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([u],!0)};t.patch(r.children[0],c),o.push(c)}if(a.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(a,!0)},m=Lm(r.children[1]),h=T1(r.children[r.children.length-1]);m&&h&&(c.position={start:m,end:h}),o.push(c)}const f={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(r,f),t.applyData(r,f)}function VA(t,r,a){const u=a?a.children:void 0,f=(u?u.indexOf(r):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,m=c?c.length:r.children.length;let h=-1;const g=[];for(;++h<m;){const p=r.children[h],v={},S=c?c[h]:void 0;S&&(v.align=S);let E={type:"element",tagName:f,properties:v,children:[]};p&&(E.children=t.all(p),t.patch(p,E),E=t.applyData(p,E)),g.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(g,!0)};return t.patch(r,y),t.applyData(r,y)}function YA(t,r){const a={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}const vb=9,Sb=32;function GA(t){const r=String(t),a=/\r?\n|\r/g;let u=a.exec(r),o=0;const f=[];for(;u;)f.push(wb(r.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=a.exec(r);return f.push(wb(r.slice(o),o>0,!1)),f.join("")}function wb(t,r,a){let u=0,o=t.length;if(r){let f=t.codePointAt(u);for(;f===vb||f===Sb;)u++,f=t.codePointAt(u)}if(a){let f=t.codePointAt(o-1);for(;f===vb||f===Sb;)o--,f=t.codePointAt(o-1)}return o>u?t.slice(u,o):""}function FA(t,r){const a={type:"text",value:GA(String(r.value))};return t.patch(r,a),t.applyData(r,a)}function XA(t,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,a),t.applyData(r,a)}const QA={blockquote:wA,break:kA,code:EA,delete:CA,emphasis:TA,footnoteReference:NA,heading:_A,html:AA,imageReference:zA,image:jA,inlineCode:OA,linkReference:DA,link:MA,listItem:RA,list:UA,paragraph:BA,root:HA,strong:qA,table:IA,tableCell:YA,tableRow:VA,text:FA,thematicBreak:XA,toml:ts,yaml:ts,definition:ts,footnoteDefinition:ts};function ts(){}const Z1=-1,ws=0,uu=1,hs=2,Ym=3,Gm=4,Fm=5,Xm=6,K1=7,P1=8,{defineProperty:ZA}=Object,$1=typeof self=="object"?self:globalThis,kb=(t,r)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new $1[t](r)},KA=(t,r)=>{const a=(o,f)=>(t.set(f,o),o),u=o=>{if(t.has(o))return t.get(o);const[f,c]=r[o];switch(f){case ws:case Z1:return a(c,o);case uu:{const m=a([],o);for(const h of c)m.push(u(h));return m}case hs:{const m=a({},o);for(const[h,g]of c){const y=u(h),p=u(g);y==="__proto__"?ZA(m,y,{value:p,configurable:!0,enumerable:!0,writable:!0}):m[y]=p}return m}case Ym:return a(new Date(c),o);case Gm:{const{source:m,flags:h}=c;return a(new RegExp(m,h),o)}case Fm:{const m=a(new Map,o);for(const[h,g]of c)m.set(u(h),u(g));return m}case Xm:{const m=a(new Set,o);for(const h of c)m.add(u(h));return m}case K1:{const{name:m,message:h}=c;return a(typeof $1[m]=="function"?kb(m,h):new Error(h),o)}case P1:return a(BigInt(c),o);case"BigInt":return a(Object(BigInt(c)),o);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:m}=new Uint8Array(c);return a(new DataView(m),c)}case"-0":return-0}return a(kb(f,c),o)};return u},Eb=t=>KA(new Map,t)(0),Mr="",{toString:PA}={},{keys:$A,is:JA}=Object,eu=t=>{const r=typeof t;if(r!=="object"||!t)return[ws,r];const a=PA.call(t).slice(8,-1);switch(a){case"Array":return[uu,Mr];case"Object":return[hs,Mr];case"Date":return[Ym,Mr];case"RegExp":return[Gm,Mr];case"Map":return[Fm,Mr];case"Set":return[Xm,Mr];case"DataView":return[uu,a]}return a.includes("Array")?[uu,a]:t instanceof Error?[K1,t.name||"Error"]:[hs,a]},ns=([t,r])=>t===ws&&(r==="function"||r==="symbol"),WA=(t,r,a,u)=>{const o=(c,m)=>{const h=u.push(c)-1;return a.set(m,h),h},f=c=>{if(a.has(c))return a.get(c);let[m,h]=eu(c);switch(m){case ws:{let y=c;switch(h){case"bigint":m=P1,y=c.toString();break;case"number":if(!c&&JA(c,-0))return u.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([Z1],c)}return o([m,y],c)}case uu:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),o([h,[...v]],c)}const y=[],p=o([m,y],c);for(const v of c)y.push(f(v));return p}case hs:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(r&&"toJSON"in c)return f(c.toJSON());const y=[],p=o([m,y],c);for(const v of $A(c))(t||!ns(eu(c[v])))&&y.push([f(v),f(c[v])]);return p}case Ym:return o([m,isNaN(c.getTime())?Mr:c.toISOString()],c);case Gm:{const{source:y,flags:p}=c;return o([m,{source:y,flags:p}],c)}case Fm:{const y=[],p=o([m,y],c);for(const[v,S]of c)(t||!(ns(eu(v))||ns(eu(S))))&&y.push([f(v),f(S)]);return p}case Xm:{const y=[],p=o([m,y],c);for(const v of c)(t||!ns(eu(v)))&&y.push(f(v));return p}}const{message:g}=c;return o([m,{name:h,message:g}],c)};return f},Cb=(t,{json:r,lossy:a}={})=>{const u=[];return WA(!(r||a),!!r,new Map,u)(t),u},ps=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?Eb(Cb(t,r)):structuredClone(t):(t,r)=>Eb(Cb(t,r));function ez(t,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function tz(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function nz(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=t.options.footnoteBackContent||ez,u=t.options.footnoteBackLabel||tz,o=t.options.footnoteLabel||"Footnotes",f=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let h=-1;for(;++h<t.footnoteOrder.length;){const g=t.footnoteById.get(t.footnoteOrder[h]);if(!g)continue;const y=t.all(g),p=String(g.identifier).toUpperCase(),v=Ja(p.toLowerCase());let S=0;const E=[],T=t.footnoteCounts.get(p);for(;T!==void 0&&++S<=T;){E.length>0&&E.push({type:"text",value:" "});let M=typeof a=="string"?a:a(h,S);typeof M=="string"&&(M={type:"text",value:M}),E.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(h,S),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const N=y[y.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const M=N.children[N.children.length-1];M&&M.type==="text"?M.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...E)}else y.push(...E);const _={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:t.wrap(y,!0)};t.patch(g,_),m.push(_)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...ps(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
384
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(m,!0)},{type:"text",value:`
385
+ `}]}}const ks=(function(t){if(t==null)return iz;if(typeof t=="function")return Es(t);if(typeof t=="object")return Array.isArray(t)?lz(t):rz(t);if(typeof t=="string")return az(t);throw new Error("Expected function, string, or object as test")});function lz(t){const r=[];let a=-1;for(;++a<t.length;)r[a]=ks(t[a]);return Es(u);function u(...o){let f=-1;for(;++f<r.length;)if(r[f].apply(this,o))return!0;return!1}}function rz(t){const r=t;return Es(a);function a(u){const o=u;let f;for(f in t)if(o[f]!==r[f])return!1;return!0}}function az(t){return Es(r);function r(a){return a&&a.type===t}}function Es(t){return r;function r(a,u,o){return!!(uz(a)&&t.call(this,a,typeof u=="number"?u:void 0,o||void 0))}}function iz(){return!0}function uz(t){return t!==null&&typeof t=="object"&&"type"in t}const J1=[],oz=!0,cm=!1,sz="skip";function W1(t,r,a,u){let o;typeof r=="function"&&typeof a!="function"?(u=a,a=r):o=r;const f=ks(o),c=u?-1:1;m(t,void 0,[])();function m(h,g,y){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const S=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=J1,E,T,N;if((!r||f(h,g,y[y.length-1]||void 0))&&(S=cz(a(h,y)),S[0]===cm))return S;if("children"in h&&h.children){const _=h;if(_.children&&S[0]!==sz)for(T=(u?_.children.length:-1)+c,N=y.concat(_);T>-1&&T<_.children.length;){const M=_.children[T];if(E=m(M,T,N)(),E[0]===cm)return E;T=typeof E[1]=="number"?E[1]:T+c}}return S}}}function cz(t){return Array.isArray(t)?t:typeof t=="number"?[oz,t]:t==null?J1:[t]}function Qm(t,r,a,u){let o,f,c;typeof r=="function"&&typeof a!="function"?(f=void 0,c=r,o=a):(f=r,c=a,o=u),W1(t,f,m,o);function m(h,g){const y=g[g.length-1],p=y?y.children.indexOf(h):void 0;return c(h,p,y)}}const fm={}.hasOwnProperty,fz={};function dz(t,r){const a=r||fz,u=new Map,o=new Map,f=new Map,c={...QA,...a.handlers},m={all:g,applyData:hz,definitionById:u,footnoteById:o,footnoteCounts:f,footnoteOrder:[],handlers:c,one:h,options:a,patch:mz,wrap:gz};return Qm(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?u:o,v=String(y.identifier).toUpperCase();p.has(v)||p.set(v,y)}}),m;function h(y,p){const v=y.type,S=m.handlers[v];if(fm.call(m.handlers,v)&&S)return S(m,y,p);if(m.options.passThrough&&m.options.passThrough.includes(v)){if("children"in y){const{children:T,...N}=y,_=ps(N);return _.children=m.all(y),_}return ps(y)}return(m.options.unknownHandler||pz)(m,y,p)}function g(y){const p=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=m.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Tb(E.value)),!Array.isArray(E)&&E.type==="element")){const T=E.children[0];T&&T.type==="text"&&(T.value=Tb(T.value))}Array.isArray(E)?p.push(...E):p.push(E)}}}return p}}function mz(t,r){t.position&&(r.position=W3(t))}function hz(t,r){let a=r;if(t&&t.data){const u=t.data.hName,o=t.data.hChildren,f=t.data.hProperties;if(typeof u=="string")if(a.type==="element")a.tagName=u;else{const c="children"in a?a.children:[a];a={type:"element",tagName:u,properties:{},children:c}}a.type==="element"&&f&&Object.assign(a.properties,ps(f)),"children"in a&&a.children&&o!==null&&o!==void 0&&(a.children=o)}return a}function pz(t,r){const a=r.data||{},u="value"in r&&!(fm.call(a,"hProperties")||fm.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function gz(t,r){const a=[];let u=-1;for(r&&a.push({type:"text",value:`
386
+ `});++u<t.length;)u&&a.push({type:"text",value:`
387
+ `}),a.push(t[u]);return r&&t.length>0&&a.push({type:"text",value:`
388
+ `}),a}function Tb(t){let r=0,a=t.charCodeAt(r);for(;a===9||a===32;)r++,a=t.charCodeAt(r);return t.slice(r)}function Nb(t,r){const a=dz(t,r),u=a.one(t,void 0),o=nz(a),f=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&f.children.push({type:"text",value:`
389
+ `},o),f}function yz(t,r){return t&&"run"in t?async function(a,u){const o=Nb(a,{file:u,...r});await t.run(o,u)}:function(a,u){return Nb(a,{file:u,...t||r})}}function _b(t){if(t)throw t}var Ed,Ab;function bz(){if(Ab)return Ed;Ab=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):r.call(g)==="[object Array]"},f=function(g){if(!g||r.call(g)!=="[object Object]")return!1;var y=t.call(g,"constructor"),p=g.constructor&&g.constructor.prototype&&t.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!y&&!p)return!1;var v;for(v in g);return typeof v>"u"||t.call(g,v)},c=function(g,y){a&&y.name==="__proto__"?a(g,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):g[y.name]=y.newValue},m=function(g,y){if(y==="__proto__")if(t.call(g,y)){if(u)return u(g,y).value}else return;return g[y]};return Ed=function h(){var g,y,p,v,S,E,T=arguments[0],N=1,_=arguments.length,M=!1;for(typeof T=="boolean"&&(M=T,T=arguments[1]||{},N=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});N<_;++N)if(g=arguments[N],g!=null)for(y in g)p=m(T,y),v=m(g,y),T!==v&&(M&&v&&(f(v)||(S=o(v)))?(S?(S=!1,E=p&&o(p)?p:[]):E=p&&f(p)?p:{},c(T,{name:y,newValue:h(M,E,v)})):typeof v<"u"&&c(T,{name:y,newValue:v}));return T},Ed}var xz=bz();const Cd=gm(xz);function dm(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function vz(){const t=[],r={run:a,use:u};return r;function a(...o){let f=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);m(null,...o);function m(h,...g){const y=t[++f];let p=-1;if(h){c(h);return}for(;++p<o.length;)(g[p]===null||g[p]===void 0)&&(g[p]=o[p]);o=g,y?Sz(y,m)(...g):c(null,...g)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),r}}function Sz(t,r){let a;return u;function u(...c){const m=t.length>c.length;let h;m&&c.push(o);try{h=t.apply(this,c)}catch(g){const y=g;if(m&&a)throw y;return o(y)}m||(h&&h.then&&typeof h.then=="function"?h.then(f,o):h instanceof Error?o(h):f(h))}function o(c,...m){a||(a=!0,r(c,...m))}function f(c){o(null,c)}}const Wn={basename:wz,dirname:kz,extname:Ez,join:Cz,sep:"/"};function wz(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');gu(t);let a=0,u=-1,o=t.length,f;if(r===void 0||r.length===0||r.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(f){a=o+1;break}}else u<0&&(f=!0,u=o+1);return u<0?"":t.slice(a,u)}if(r===t)return"";let c=-1,m=r.length-1;for(;o--;)if(t.codePointAt(o)===47){if(f){a=o+1;break}}else c<0&&(f=!0,c=o+1),m>-1&&(t.codePointAt(o)===r.codePointAt(m--)?m<0&&(u=o):(m=-1,u=c));return a===u?u=c:u<0&&(u=t.length),t.slice(a,u)}function kz(t){if(gu(t),t.length===0)return".";let r=-1,a=t.length,u;for(;--a;)if(t.codePointAt(a)===47){if(u){r=a;break}}else u||(u=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function Ez(t){gu(t);let r=t.length,a=-1,u=0,o=-1,f=0,c;for(;r--;){const m=t.codePointAt(r);if(m===47){if(c){u=r+1;break}continue}a<0&&(c=!0,a=r+1),m===46?o<0?o=r:f!==1&&(f=1):o>-1&&(f=-1)}return o<0||a<0||f===0||f===1&&o===a-1&&o===u+1?"":t.slice(o,a)}function Cz(...t){let r=-1,a;for(;++r<t.length;)gu(t[r]),t[r]&&(a=a===void 0?t[r]:a+"/"+t[r]);return a===void 0?".":Tz(a)}function Tz(t){gu(t);const r=t.codePointAt(0)===47;let a=Nz(t,!r);return a.length===0&&!r&&(a="."),a.length>0&&t.codePointAt(t.length-1)===47&&(a+="/"),r?"/"+a:a}function Nz(t,r){let a="",u=0,o=-1,f=0,c=-1,m,h;for(;++c<=t.length;){if(c<t.length)m=t.codePointAt(c);else{if(m===47)break;m=47}if(m===47){if(!(o===c-1||f===1))if(o!==c-1&&f===2){if(a.length<2||u!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(h=a.lastIndexOf("/"),h!==a.length-1){h<0?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),o=c,f=0;continue}}else if(a.length>0){a="",u=0,o=c,f=0;continue}}r&&(a=a.length>0?a+"/..":"..",u=2)}else a.length>0?a+="/"+t.slice(o+1,c):a=t.slice(o+1,c),u=c-o-1;o=c,f=0}else m===46&&f>-1?f++:f=-1}return a}function gu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const _z={cwd:Az};function Az(){return"/"}function mm(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function zz(t){if(typeof t=="string")t=new URL(t);else if(!mm(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return jz(t)}function jz(t){if(t.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=t.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const u=r.codePointAt(a+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(r)}const Td=["history","path","basename","stem","extname","dirname"];class eS{constructor(r){let a;r?mm(r)?a={path:r}:typeof r=="string"||Oz(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":_z.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Td.length;){const f=Td[u];f in a&&a[f]!==void 0&&a[f]!==null&&(this[f]=f==="history"?[...a[f]]:a[f])}let o;for(o in a)Td.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(r){_d(r,"basename"),Nd(r,"basename"),this.path=Wn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(r){zb(this.basename,"dirname"),this.path=Wn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(r){if(Nd(r,"extname"),zb(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){mm(r)&&(r=zz(r)),_d(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(r){_d(r,"stem"),Nd(r,"stem"),this.path=Wn.join(this.dirname||"",r+(this.extname||""))}fail(r,a,u){const o=this.message(r,a,u);throw o.fatal=!0,o}info(r,a,u){const o=this.message(r,a,u);return o.fatal=void 0,o}message(r,a,u){const o=new Mt(r,a,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Nd(t,r){if(t&&t.includes(Wn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Wn.sep+"`")}function _d(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function zb(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Oz(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Dz=(function(t){const u=this.constructor.prototype,o=u[t],f=function(){return o.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),Mz={}.hasOwnProperty;class Zm extends Dz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vz()}copy(){const r=new Zm;let a=-1;for(;++a<this.attachers.length;){const u=this.attachers[a];r.use(...u)}return r.data(Cd(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(jd("data",this.frozen),this.namespace[r]=a,this):Mz.call(this.namespace,r)&&this.namespace[r]||void 0:r?(jd("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=a.call(r,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=ls(r),u=this.parser||this.Parser;return Ad("parse",u),u(String(a),a)}process(r,a){const u=this;return this.freeze(),Ad("process",this.parser||this.Parser),zd("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(f,c){const m=ls(r),h=u.parse(m);u.run(h,m,function(y,p,v){if(y||!p||!v)return g(y);const S=p,E=u.stringify(S,v);Uz(E)?v.value=E:v.result=E,g(y,v)});function g(y,p){y||!p?c(y):f?f(p):a(void 0,p)}}}processSync(r){let a=!1,u;return this.freeze(),Ad("processSync",this.parser||this.Parser),zd("processSync",this.compiler||this.Compiler),this.process(r,o),Ob("processSync","process",a),u;function o(f,c){a=!0,_b(f),u=c}}run(r,a,u){jb(r),this.freeze();const o=this.transformers;return!u&&typeof a=="function"&&(u=a,a=void 0),u?f(void 0,u):new Promise(f);function f(c,m){const h=ls(a);o.run(r,h,g);function g(y,p,v){const S=p||r;y?m(y):c?c(S):u(void 0,S,v)}}}runSync(r,a){let u=!1,o;return this.run(r,a,f),Ob("runSync","run",u),o;function f(c,m){_b(c),o=m,u=!0}}stringify(r,a){this.freeze();const u=ls(a),o=this.compiler||this.Compiler;return zd("stringify",o),jb(r),o(r,u)}use(r,...a){const u=this.attachers,o=this.namespace;if(jd("use",this.frozen),r!=null)if(typeof r=="function")h(r,a);else if(typeof r=="object")Array.isArray(r)?m(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function f(g){if(typeof g=="function")h(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[y,...p]=g;h(y,p)}else c(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function c(g){if(!("plugins"in g)&&!("settings"in g))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(g.plugins),g.settings&&(o.settings=Cd(!0,o.settings,g.settings))}function m(g){let y=-1;if(g!=null)if(Array.isArray(g))for(;++y<g.length;){const p=g[y];f(p)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function h(g,y){let p=-1,v=-1;for(;++p<u.length;)if(u[p][0]===g){v=p;break}if(v===-1)u.push([g,...y]);else if(y.length>0){let[S,...E]=y;const T=u[v][1];dm(T)&&dm(S)&&(S=Cd(!0,T,S)),u[v]=[g,S,...E]}}}}const Rz=new Zm().freeze();function Ad(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function zd(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function jd(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jb(t){if(!dm(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ob(t,r,a){if(!a)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function ls(t){return Lz(t)?t:new eS(t)}function Lz(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Uz(t){return typeof t=="string"||Bz(t)}function Bz(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Hz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Db=[],Mb={allowDangerousHtml:!0},qz=/^(https?|ircs?|mailto|xmpp)$/i,Iz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Vz(t){const r=Yz(t),a=Gz(t);return Fz(r.runSync(r.parse(a),a),t)}function Yz(t){const r=t.rehypePlugins||Db,a=t.remarkPlugins||Db,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Mb}:Mb;return Rz().use(SA).use(a).use(yz,u).use(r)}function Gz(t){const r=t.children||"",a=new eS;return typeof r=="string"&&(a.value=r),a}function Fz(t,r){const a=r.allowedElements,u=r.allowElement,o=r.components,f=r.disallowedElements,c=r.skipHtml,m=r.unwrapDisallowed,h=r.urlTransform||Xz;for(const y of Iz)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Hz+y.id,void 0);return Qm(t,g),r4(t,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function g(y,p,v){if(y.type==="raw"&&v&&typeof p=="number")return c?v.children.splice(p,1):v.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let S;for(S in Sd)if(Object.hasOwn(Sd,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],T=Sd[S];(T===null||T.includes(y.tagName))&&(y.properties[S]=h(String(E||""),S,y))}}if(y.type==="element"){let S=a?!a.includes(y.tagName):f?f.includes(y.tagName):!1;if(!S&&u&&typeof p=="number"&&(S=!u(y,p,v)),S&&v&&typeof p=="number")return m&&y.children?v.children.splice(p,1,...y.children):v.children.splice(p,1),p}}}function Xz(t){const r=t.indexOf(":"),a=t.indexOf("?"),u=t.indexOf("#"),o=t.indexOf("/");return r===-1||o!==-1&&r>o||a!==-1&&r>a||u!==-1&&r>u||qz.test(t.slice(0,r))?t:""}function Rb(t,r){const a=String(t);if(typeof r!="string")throw new TypeError("Expected character");let u=0,o=a.indexOf(r);for(;o!==-1;)u++,o=a.indexOf(r,o+r.length);return u}function Qz(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zz(t,r,a){const o=ks((a||{}).ignore||[]),f=Kz(r);let c=-1;for(;++c<f.length;)W1(t,"text",m);function m(g,y){let p=-1,v;for(;++p<y.length;){const S=y[p],E=v?v.children:void 0;if(o(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return h(g,y)}function h(g,y){const p=y[y.length-1],v=f[c][0],S=f[c][1];let E=0;const N=p.children.indexOf(g);let _=!1,M=[];v.lastIndex=0;let L=v.exec(g.value);for(;L;){const P=L.index,W={index:L.index,input:L.input,stack:[...y,g]};let D=S(...L,W);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=P+1:(E!==P&&M.push({type:"text",value:g.value.slice(E,P)}),Array.isArray(D)?M.push(...D):D&&M.push(D),E=P+L[0].length,_=!0),!v.global)break;L=v.exec(g.value)}return _?(E<g.value.length&&M.push({type:"text",value:g.value.slice(E)}),p.children.splice(N,1,...M)):M=[g],N+M.length}}function Kz(t){const r=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!t[0]||Array.isArray(t[0])?t:[t];let u=-1;for(;++u<a.length;){const o=a[u];r.push([Pz(o[0]),$z(o[1])])}return r}function Pz(t){return typeof t=="string"?new RegExp(Qz(t),"g"):t}function $z(t){return typeof t=="function"?t:function(){return t}}const Od="phrasing",Dd=["autolink","link","image","label"];function Jz(){return{transforms:[aj],enter:{literalAutolink:ej,literalAutolinkEmail:Md,literalAutolinkHttp:Md,literalAutolinkWww:Md},exit:{literalAutolink:rj,literalAutolinkEmail:lj,literalAutolinkHttp:tj,literalAutolinkWww:nj}}}function Wz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Od,notInConstruct:Dd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Od,notInConstruct:Dd},{character:":",before:"[ps]",after:"\\/",inConstruct:Od,notInConstruct:Dd}]}}function ej(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Md(t){this.config.enter.autolinkProtocol.call(this,t)}function tj(t){this.config.exit.autolinkProtocol.call(this,t)}function nj(t){this.config.exit.data.call(this,t);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(t)}function lj(t){this.config.exit.autolinkEmail.call(this,t)}function rj(t){this.exit(t)}function aj(t){Zz(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ij],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uj]],{ignore:["link","linkReference"]})}function ij(t,r,a,u,o){let f="";if(!tS(o)||(/^w/i.test(r)&&(a=r+a,r="",f="http://"),!oj(a)))return!1;const c=sj(a+u);if(!c[0])return!1;const m={type:"link",title:null,url:f+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[m,{type:"text",value:c[1]}]:m}function uj(t,r,a,u){return!tS(u,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+a,children:[{type:"text",value:r+"@"+a}]}}function oj(t){const r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function sj(t){const r=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!r)return[t,void 0];t=t.slice(0,r.index);let a=r[0],u=a.indexOf(")");const o=Rb(t,"(");let f=Rb(t,")");for(;u!==-1&&o>f;)t+=a.slice(0,u+1),a=a.slice(u+1),u=a.indexOf(")"),f++;return[t,a]}function tS(t,r){const a=t.input.charCodeAt(t.index-1);return(t.index===0||Hr(a)||vs(a))&&(!r||a!==47)}nS.peek=bj;function cj(){this.buffer()}function fj(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function dj(){this.buffer()}function mj(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function hj(t){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Ln(this.sliceSerialize(t)).toLowerCase(),a.label=r}function pj(t){this.exit(t)}function gj(t){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Ln(this.sliceSerialize(t)).toLowerCase(),a.label=r}function yj(t){this.exit(t)}function bj(){return"["}function nS(t,r,a,u){const o=a.createTracker(u);let f=o.move("[^");const c=a.enter("footnoteReference"),m=a.enter("reference");return f+=o.move(a.safe(a.associationId(t),{after:"]",before:f})),m(),c(),f+=o.move("]"),f}function xj(){return{enter:{gfmFootnoteCallString:cj,gfmFootnoteCall:fj,gfmFootnoteDefinitionLabelString:dj,gfmFootnoteDefinition:mj},exit:{gfmFootnoteCallString:hj,gfmFootnoteCall:pj,gfmFootnoteDefinitionLabelString:gj,gfmFootnoteDefinition:yj}}}function vj(t){let r=!1;return t&&t.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:a,footnoteReference:nS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(u,o,f,c){const m=f.createTracker(c);let h=m.move("[^");const g=f.enter("footnoteDefinition"),y=f.enter("label");return h+=m.move(f.safe(f.associationId(u),{before:h,after:"]"})),y(),h+=m.move("]:"),u.children&&u.children.length>0&&(m.shift(4),h+=m.move((r?`
390
+ `:" ")+f.indentLines(f.containerFlow(u,m.current()),r?lS:Sj))),g(),h}}function Sj(t,r,a){return r===0?t:lS(t,r,a)}function lS(t,r,a){return(a?"":" ")+t}const wj=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rS.peek=Nj;function kj(){return{canContainEols:["delete"],enter:{strikethrough:Cj},exit:{strikethrough:Tj}}}function Ej(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:wj}],handlers:{delete:rS}}}function Cj(t){this.enter({type:"delete",children:[]},t)}function Tj(t){this.exit(t)}function rS(t,r,a,u){const o=a.createTracker(u),f=a.enter("strikethrough");let c=o.move("~~");return c+=a.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),f(),c}function Nj(){return"~"}function _j(t){return t.length}function Aj(t,r){const a=r||{},u=(a.align||[]).concat(),o=a.stringLength||_j,f=[],c=[],m=[],h=[];let g=0,y=-1;for(;++y<t.length;){const T=[],N=[];let _=-1;for(t[y].length>g&&(g=t[y].length);++_<t[y].length;){const M=zj(t[y][_]);if(a.alignDelimiters!==!1){const L=o(M);N[_]=L,(h[_]===void 0||L>h[_])&&(h[_]=L)}T.push(M)}c[y]=T,m[y]=N}let p=-1;if(typeof u=="object"&&"length"in u)for(;++p<g;)f[p]=Lb(u[p]);else{const T=Lb(u);for(;++p<g;)f[p]=T}p=-1;const v=[],S=[];for(;++p<g;){const T=f[p];let N="",_="";T===99?(N=":",_=":"):T===108?N=":":T===114&&(_=":");let M=a.alignDelimiters===!1?1:Math.max(1,h[p]-N.length-_.length);const L=N+"-".repeat(M)+_;a.alignDelimiters!==!1&&(M=N.length+M+_.length,M>h[p]&&(h[p]=M),S[p]=M),v[p]=L}c.splice(1,0,v),m.splice(1,0,S),y=-1;const E=[];for(;++y<c.length;){const T=c[y],N=m[y];p=-1;const _=[];for(;++p<g;){const M=T[p]||"";let L="",P="";if(a.alignDelimiters!==!1){const W=h[p]-(N[p]||0),D=f[p];D===114?L=" ".repeat(W):D===99?W%2?(L=" ".repeat(W/2+.5),P=" ".repeat(W/2-.5)):(L=" ".repeat(W/2),P=L):P=" ".repeat(W)}a.delimiterStart!==!1&&!p&&_.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&M==="")&&(a.delimiterStart!==!1||p)&&_.push(" "),a.alignDelimiters!==!1&&_.push(L),_.push(M),a.alignDelimiters!==!1&&_.push(P),a.padding!==!1&&_.push(" "),(a.delimiterEnd!==!1||p!==g-1)&&_.push("|")}E.push(a.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return E.join(`
391
+ `)}function zj(t){return t==null?"":String(t)}function Lb(t){const r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function jj(t,r,a,u){const o=a.enter("blockquote"),f=a.createTracker(u);f.move("> "),f.shift(2);const c=a.indentLines(a.containerFlow(t,f.current()),Oj);return o(),c}function Oj(t,r,a){return">"+(a?"":" ")+t}function Dj(t,r){return Ub(t,r.inConstruct,!0)&&!Ub(t,r.notInConstruct,!1)}function Ub(t,r,a){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return a;let u=-1;for(;++u<r.length;)if(t.includes(r[u]))return!0;return!1}function Bb(t,r,a,u){let o=-1;for(;++o<a.unsafe.length;)if(a.unsafe[o].character===`
392
+ `&&Dj(a.stack,a.unsafe[o]))return/[ \t]/.test(u.before)?"":" ";return`\\
393
+ `}function Mj(t,r){const a=String(t);let u=a.indexOf(r),o=u,f=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===o?++f>c&&(c=f):f=1,o=u+r.length,u=a.indexOf(r,o);return c}function Rj(t,r){return!!(r.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Lj(t){const r=t.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Uj(t,r,a,u){const o=Lj(a),f=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Rj(t,a)){const p=a.enter("codeIndented"),v=a.indentLines(f,Bj);return p(),v}const m=a.createTracker(u),h=o.repeat(Math.max(Mj(f,o)+1,3)),g=a.enter("codeFenced");let y=m.move(h);if(t.lang){const p=a.enter(`codeFencedLang${c}`);y+=m.move(a.safe(t.lang,{before:y,after:" ",encode:["`"],...m.current()})),p()}if(t.lang&&t.meta){const p=a.enter(`codeFencedMeta${c}`);y+=m.move(" "),y+=m.move(a.safe(t.meta,{before:y,after:`
394
+ `,encode:["`"],...m.current()})),p()}return y+=m.move(`
395
+ `),f&&(y+=m.move(f+`
396
+ `)),y+=m.move(h),g(),y}function Bj(t,r,a){return(a?"":" ")+t}function Km(t){const r=t.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Hj(t,r,a,u){const o=Km(a),f=o==='"'?"Quote":"Apostrophe",c=a.enter("definition");let m=a.enter("label");const h=a.createTracker(u);let g=h.move("[");return g+=h.move(a.safe(a.associationId(t),{before:g,after:"]",...h.current()})),g+=h.move("]: "),m(),!t.url||/[\0- \u007F]/.test(t.url)?(m=a.enter("destinationLiteral"),g+=h.move("<"),g+=h.move(a.safe(t.url,{before:g,after:">",...h.current()})),g+=h.move(">")):(m=a.enter("destinationRaw"),g+=h.move(a.safe(t.url,{before:g,after:t.title?" ":`
397
+ `,...h.current()}))),m(),t.title&&(m=a.enter(`title${f}`),g+=h.move(" "+o),g+=h.move(a.safe(t.title,{before:g,after:o,...h.current()})),g+=h.move(o),m()),c(),g}function qj(t){const r=t.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function cu(t){return"&#x"+t.toString(16).toUpperCase()+";"}function gs(t,r,a){const u=Za(t),o=Za(r);return u===void 0?o===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}aS.peek=Ij;function aS(t,r,a,u){const o=qj(a),f=a.enter("emphasis"),c=a.createTracker(u),m=c.move(o);let h=c.move(a.containerPhrasing(t,{after:o,before:m,...c.current()}));const g=h.charCodeAt(0),y=gs(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(h=cu(g)+h.slice(1));const p=h.charCodeAt(h.length-1),v=gs(u.after.charCodeAt(0),p,o);v.inside&&(h=h.slice(0,-1)+cu(p));const S=c.move(o);return f(),a.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function Ij(t,r,a){return a.options.emphasis||"*"}function Vj(t,r){let a=!1;return Qm(t,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return a=!0,cm}),!!((!t.depth||t.depth<3)&&qm(t)&&(r.options.setext||a))}function Yj(t,r,a,u){const o=Math.max(Math.min(6,t.depth||1),1),f=a.createTracker(u);if(Vj(t,a)){const y=a.enter("headingSetext"),p=a.enter("phrasing"),v=a.containerPhrasing(t,{...f.current(),before:`
398
+ `,after:`
399
+ `});return p(),y(),v+`
400
+ `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
401
+ `))+1))}const c="#".repeat(o),m=a.enter("headingAtx"),h=a.enter("phrasing");f.move(c+" ");let g=a.containerPhrasing(t,{before:"# ",after:`
402
+ `,...f.current()});return/^[\t ]/.test(g)&&(g=cu(g.charCodeAt(0))+g.slice(1)),g=g?c+" "+g:c,a.options.closeAtx&&(g+=" "+c),h(),m(),g}iS.peek=Gj;function iS(t){return t.value||""}function Gj(){return"<"}uS.peek=Fj;function uS(t,r,a,u){const o=Km(a),f=o==='"'?"Quote":"Apostrophe",c=a.enter("image");let m=a.enter("label");const h=a.createTracker(u);let g=h.move("![");return g+=h.move(a.safe(t.alt,{before:g,after:"]",...h.current()})),g+=h.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=a.enter("destinationLiteral"),g+=h.move("<"),g+=h.move(a.safe(t.url,{before:g,after:">",...h.current()})),g+=h.move(">")):(m=a.enter("destinationRaw"),g+=h.move(a.safe(t.url,{before:g,after:t.title?" ":")",...h.current()}))),m(),t.title&&(m=a.enter(`title${f}`),g+=h.move(" "+o),g+=h.move(a.safe(t.title,{before:g,after:o,...h.current()})),g+=h.move(o),m()),g+=h.move(")"),c(),g}function Fj(){return"!"}oS.peek=Xj;function oS(t,r,a,u){const o=t.referenceType,f=a.enter("imageReference");let c=a.enter("label");const m=a.createTracker(u);let h=m.move("![");const g=a.safe(t.alt,{before:h,after:"]",...m.current()});h+=m.move(g+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const p=a.safe(a.associationId(t),{before:h,after:"]",...m.current()});return c(),a.stack=y,f(),o==="full"||!g||g!==p?h+=m.move(p+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function Xj(){return"!"}sS.peek=Qj;function sS(t,r,a){let u=t.value||"",o="`",f=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(u);)o+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++f<a.unsafe.length;){const c=a.unsafe[f],m=a.compilePattern(c);let h;if(c.atBreak)for(;h=m.exec(u);){let g=h.index;u.charCodeAt(g)===10&&u.charCodeAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(h.index+1)}}return o+u+o}function Qj(){return"`"}function cS(t,r){const a=qm(t);return!!(!r.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(a===t.url||"mailto:"+a===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}fS.peek=Zj;function fS(t,r,a,u){const o=Km(a),f=o==='"'?"Quote":"Apostrophe",c=a.createTracker(u);let m,h;if(cS(t,a)){const y=a.stack;a.stack=[],m=a.enter("autolink");let p=c.move("<");return p+=c.move(a.containerPhrasing(t,{before:p,after:">",...c.current()})),p+=c.move(">"),m(),a.stack=y,p}m=a.enter("link"),h=a.enter("label");let g=c.move("[");return g+=c.move(a.containerPhrasing(t,{before:g,after:"](",...c.current()})),g+=c.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=a.enter("destinationLiteral"),g+=c.move("<"),g+=c.move(a.safe(t.url,{before:g,after:">",...c.current()})),g+=c.move(">")):(h=a.enter("destinationRaw"),g+=c.move(a.safe(t.url,{before:g,after:t.title?" ":")",...c.current()}))),h(),t.title&&(h=a.enter(`title${f}`),g+=c.move(" "+o),g+=c.move(a.safe(t.title,{before:g,after:o,...c.current()})),g+=c.move(o),h()),g+=c.move(")"),m(),g}function Zj(t,r,a){return cS(t,a)?"<":"["}dS.peek=Kj;function dS(t,r,a,u){const o=t.referenceType,f=a.enter("linkReference");let c=a.enter("label");const m=a.createTracker(u);let h=m.move("[");const g=a.containerPhrasing(t,{before:h,after:"]",...m.current()});h+=m.move(g+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const p=a.safe(a.associationId(t),{before:h,after:"]",...m.current()});return c(),a.stack=y,f(),o==="full"||!g||g!==p?h+=m.move(p+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function Kj(){return"["}function Pm(t){const r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Pj(t){const r=Pm(t),a=t.options.bulletOther;if(!a)return r==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+a+"`) to be different");return a}function $j(t){const r=t.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function mS(t){const r=t.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function Jj(t,r,a,u){const o=a.enter("list"),f=a.bulletCurrent;let c=t.ordered?$j(a):Pm(a);const m=t.ordered?c==="."?")":".":Pj(a);let h=r&&a.bulletLastUsed?c===a.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(h=!0),mS(a)===c&&y){let p=-1;for(;++p<t.children.length;){const v=t.children[p];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=m),a.bulletCurrent=c;const g=a.containerFlow(t,u);return a.bulletLastUsed=c,a.bulletCurrent=f,o(),g}function Wj(t){const r=t.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function e5(t,r,a,u){const o=Wj(a);let f=a.bulletCurrent||Pm(a);r&&r.type==="list"&&r.ordered&&(f=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(t))+f);let c=f.length+1;(o==="tab"||o==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(c=Math.ceil(c/4)*4);const m=a.createTracker(u);m.move(f+" ".repeat(c-f.length)),m.shift(c);const h=a.enter("listItem"),g=a.indentLines(a.containerFlow(t,m.current()),y);return h(),g;function y(p,v,S){return v?(S?"":" ".repeat(c))+p:(S?f:f+" ".repeat(c-f.length))+p}}function t5(t,r,a,u){const o=a.enter("paragraph"),f=a.enter("phrasing"),c=a.containerPhrasing(t,u);return f(),o(),c}const n5=ks(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l5(t,r,a,u){return(t.children.some(function(c){return n5(c)})?a.containerPhrasing:a.containerFlow).call(a,t,u)}function r5(t){const r=t.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}hS.peek=a5;function hS(t,r,a,u){const o=r5(a),f=a.enter("strong"),c=a.createTracker(u),m=c.move(o+o);let h=c.move(a.containerPhrasing(t,{after:o,before:m,...c.current()}));const g=h.charCodeAt(0),y=gs(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(h=cu(g)+h.slice(1));const p=h.charCodeAt(h.length-1),v=gs(u.after.charCodeAt(0),p,o);v.inside&&(h=h.slice(0,-1)+cu(p));const S=c.move(o+o);return f(),a.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function a5(t,r,a){return a.options.strong||"*"}function i5(t,r,a,u){return a.safe(t.value,u)}function u5(t){const r=t.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function o5(t,r,a){const u=(mS(a)+(a.options.ruleSpaces?" ":"")).repeat(u5(a));return a.options.ruleSpaces?u.slice(0,-1):u}const pS={blockquote:jj,break:Bb,code:Uj,definition:Hj,emphasis:aS,hardBreak:Bb,heading:Yj,html:iS,image:uS,imageReference:oS,inlineCode:sS,link:fS,linkReference:dS,list:Jj,listItem:e5,paragraph:t5,root:l5,strong:hS,text:i5,thematicBreak:o5};function s5(){return{enter:{table:c5,tableData:Hb,tableHeader:Hb,tableRow:d5},exit:{codeText:m5,table:f5,tableData:Rd,tableHeader:Rd,tableRow:Rd}}}function c5(t){const r=t._align;this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},t),this.data.inTable=!0}function f5(t){this.exit(t),this.data.inTable=void 0}function d5(t){this.enter({type:"tableRow",children:[]},t)}function Rd(t){this.exit(t)}function Hb(t){this.enter({type:"tableCell",children:[]},t)}function m5(t){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,h5));const a=this.stack[this.stack.length-1];a.type,a.value=r,this.exit(t)}function h5(t,r){return r==="|"?r:t}function p5(t){const r=t||{},a=r.tableCellPadding,u=r.tablePipeAlign,o=r.stringLength,f=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
403
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:m}};function c(S,E,T,N){return g(y(S,T,N),S.align)}function m(S,E,T,N){const _=p(S,T,N),M=g([_]);return M.slice(0,M.indexOf(`
404
+ `))}function h(S,E,T,N){const _=T.enter("tableCell"),M=T.enter("phrasing"),L=T.containerPhrasing(S,{...N,before:f,after:f});return M(),_(),L}function g(S,E){return Aj(S,{align:E,alignDelimiters:u,padding:a,stringLength:o})}function y(S,E,T){const N=S.children;let _=-1;const M=[],L=E.enter("table");for(;++_<N.length;)M[_]=p(N[_],E,T);return L(),M}function p(S,E,T){const N=S.children;let _=-1;const M=[],L=E.enter("tableRow");for(;++_<N.length;)M[_]=h(N[_],S,E,T);return L(),M}function v(S,E,T){let N=pS.inlineCode(S,E,T);return T.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function g5(){return{exit:{taskListCheckValueChecked:qb,taskListCheckValueUnchecked:qb,paragraph:b5}}}function y5(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:x5}}}function qb(t){const r=this.stack[this.stack.length-2];r.type,r.checked=t.type==="taskListCheckValueChecked"}function b5(t){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const u=a.children[0];if(u&&u.type==="text"){const o=r.children;let f=-1,c;for(;++f<o.length;){const m=o[f];if(m.type==="paragraph"){c=m;break}}c===a&&(u.value=u.value.slice(1),u.value.length===0?a.children.shift():a.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,a.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function x5(t,r,a,u){const o=t.children[0],f=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",m=a.createTracker(u);f&&m.move(c);let h=pS.listItem(t,r,a,{...u,...m.current()});return f&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),h;function g(y){return y+c}}function v5(){return[Jz(),xj(),kj(),s5(),g5()]}function S5(t){return{extensions:[Wz(),vj(t),Ej(),p5(t),y5()]}}const w5={tokenize:_5,partial:!0},gS={tokenize:A5,partial:!0},yS={tokenize:z5,partial:!0},bS={tokenize:j5,partial:!0},k5={tokenize:O5,partial:!0},xS={name:"wwwAutolink",tokenize:T5,previous:SS},vS={name:"protocolAutolink",tokenize:N5,previous:wS},Tl={name:"emailAutolink",tokenize:C5,previous:kS},nl={};function E5(){return{text:nl}}let Dr=48;for(;Dr<123;)nl[Dr]=Tl,Dr++,Dr===58?Dr=65:Dr===91&&(Dr=97);nl[43]=Tl;nl[45]=Tl;nl[46]=Tl;nl[95]=Tl;nl[72]=[Tl,vS];nl[104]=[Tl,vS];nl[87]=[Tl,xS];nl[119]=[Tl,xS];function C5(t,r,a){const u=this;let o,f;return c;function c(p){return!hm(p)||!kS.call(u,u.previous)||$m(u.events)?a(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),m(p))}function m(p){return hm(p)?(t.consume(p),m):p===64?(t.consume(p),h):a(p)}function h(p){return p===46?t.check(k5,y,g)(p):p===45||p===95||Dt(p)?(f=!0,t.consume(p),h):y(p)}function g(p){return t.consume(p),o=!0,h}function y(p){return f&&o&&It(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(p)):a(p)}}function T5(t,r,a){const u=this;return o;function o(c){return c!==87&&c!==119||!SS.call(u,u.previous)||$m(u.events)?a(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(w5,t.attempt(gS,t.attempt(yS,f),a),a)(c))}function f(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(c)}}function N5(t,r,a){const u=this;let o="",f=!1;return c;function c(p){return(p===72||p===104)&&wS.call(u,u.previous)&&!$m(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),t.consume(p),m):a(p)}function m(p){if(It(p)&&o.length<5)return o+=String.fromCodePoint(p),t.consume(p),m;if(p===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(p),h}return a(p)}function h(p){return p===47?(t.consume(p),f?g:(f=!0,h)):a(p)}function g(p){return p===null||ms(p)||tt(p)||Hr(p)||vs(p)?a(p):t.attempt(gS,t.attempt(yS,y),a)(p)}function y(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(p)}}function _5(t,r,a){let u=0;return o;function o(c){return(c===87||c===119)&&u<3?(u++,t.consume(c),o):c===46&&u===3?(t.consume(c),f):a(c)}function f(c){return c===null?a(c):r(c)}}function A5(t,r,a){let u,o,f;return c;function c(g){return g===46||g===95?t.check(bS,h,m)(g):g===null||tt(g)||Hr(g)||g!==45&&vs(g)?h(g):(f=!0,t.consume(g),c)}function m(g){return g===95?u=!0:(o=u,u=void 0),t.consume(g),c}function h(g){return o||u||!f?a(g):r(g)}}function z5(t,r){let a=0,u=0;return o;function o(c){return c===40?(a++,t.consume(c),o):c===41&&u<a?f(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(bS,r,f)(c):c===null||tt(c)||Hr(c)?r(c):(t.consume(c),o)}function f(c){return c===41&&u++,t.consume(c),o}}function j5(t,r,a){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(t.consume(m),u):m===38?(t.consume(m),f):m===93?(t.consume(m),o):m===60||m===null||tt(m)||Hr(m)?r(m):a(m)}function o(m){return m===null||m===40||m===91||tt(m)||Hr(m)?r(m):u(m)}function f(m){return It(m)?c(m):a(m)}function c(m){return m===59?(t.consume(m),u):It(m)?(t.consume(m),c):a(m)}}function O5(t,r,a){return u;function u(f){return t.consume(f),o}function o(f){return Dt(f)?a(f):r(f)}}function SS(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||tt(t)}function wS(t){return!It(t)}function kS(t){return!(t===47||hm(t))}function hm(t){return t===43||t===45||t===46||t===95||Dt(t)}function $m(t){let r=t.length,a=!1;for(;r--;){const u=t[r][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){a=!0;break}if(u._gfmAutolinkLiteralWalkedInto){a=!1;break}}return t.length>0&&!a&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const D5={tokenize:I5,partial:!0};function M5(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:B5,continuation:{tokenize:H5},exit:q5}},text:{91:{name:"gfmFootnoteCall",tokenize:U5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:R5,resolveTo:L5}}}}function R5(t,r,a){const u=this;let o=u.events.length;const f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c;for(;o--;){const h=u.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return m;function m(h){if(!c||!c._balanced)return a(h);const g=Ln(u.sliceSerialize({start:c.end,end:u.now()}));return g.codePointAt(0)!==94||!f.includes(g.slice(1))?a(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),r(h))}}function L5(t,r){let a=t.length;for(;a--;)if(t[a][1].type==="labelImage"&&t[a][0]==="enter"){t[a][1];break}t[a+1][1].type="data",t[a+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[a+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[a+3][1].end),end:Object.assign({},t[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},m=[t[a+1],t[a+2],["enter",u,r],t[a+3],t[a+4],["enter",o,r],["exit",o,r],["enter",f,r],["enter",c,r],["exit",c,r],["exit",f,r],t[t.length-2],t[t.length-1],["exit",u,r]];return t.splice(a,t.length-a+1,...m),t}function U5(t,r,a){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f=0,c;return m;function m(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?a(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(p){if(f>999||p===93&&!c||p===null||p===91||tt(p))return a(p);if(p===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(Ln(u.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r):a(p)}return tt(p)||(c=!0),f++,t.consume(p),p===92?y:g}function y(p){return p===91||p===92||p===93?(t.consume(p),f++,g):g(p)}}function B5(t,r,a){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f,c=0,m;return h;function h(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):a(E)}function y(E){if(c>999||E===93&&!m||E===null||E===91||tt(E))return a(E);if(E===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return f=Ln(u.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return tt(E)||(m=!0),c++,t.consume(E),E===92?p:y}function p(E){return E===91||E===92||E===93?(t.consume(E),c++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(f)||o.push(f),Ie(t,S,"gfmFootnoteDefinitionWhitespace")):a(E)}function S(E){return r(E)}}function H5(t,r,a){return t.check(pu,r,t.attempt(D5,r,a))}function q5(t){t.exit("gfmFootnoteDefinition")}function I5(t,r,a){const u=this;return Ie(t,o,"gfmFootnoteDefinitionIndent",5);function o(f){const c=u.events[u.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(f):a(f)}}function V5(t){let a=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:f,resolveAll:o};return a==null&&(a=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function o(c,m){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let g=h;for(;g--;)if(c[g][0]==="exit"&&c[g][1].type==="strikethroughSequenceTemporary"&&c[g][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[g][1].end.offset-c[g][1].start.offset){c[h][1].type="strikethroughSequence",c[g][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[g][1].start),end:Object.assign({},c[h][1].end)},p={type:"strikethroughText",start:Object.assign({},c[g][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",y,m],["enter",c[g][1],m],["exit",c[g][1],m],["enter",p,m]],S=m.parser.constructs.insideSpan.null;S&&mn(v,v.length,0,Ss(S,c.slice(g+1,h),m)),mn(v,v.length,0,[["exit",p,m],["enter",c[h][1],m],["exit",c[h][1],m],["exit",y,m]]),mn(c,g-1,h-g+3,v),h=g+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function f(c,m,h){const g=this.previous,y=this.events;let p=0;return v;function v(E){return g===126&&y[y.length-1][1].type!=="characterEscape"?h(E):(c.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const T=Za(g);if(E===126)return p>1?h(E):(c.consume(E),p++,S);if(p<2&&!a)return h(E);const N=c.exit("strikethroughSequenceTemporary"),_=Za(E);return N._open=!_||_===2&&!!T,N._close=!T||T===2&&!!_,m(E)}}}class Y5{constructor(){this.map=[]}add(r,a,u){G5(this,r,a,u)}consume(r){if(this.map.sort(function(f,c){return f[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const u=[];for(;a>0;)a-=1,u.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];u.push(r.slice()),r.length=0;let o=u.pop();for(;o;){for(const f of o)r.push(f);o=u.pop()}this.map.length=0}}function G5(t,r,a,u){let o=0;if(!(a===0&&u.length===0)){for(;o<t.map.length;){if(t.map[o][0]===r){t.map[o][1]+=a,t.map[o][2].push(...u);return}o+=1}t.map.push([r,a,u])}}function F5(t,r){let a=!1;const u=[];for(;r<t.length;){const o=t[r];if(a){if(o[0]==="enter")o[1].type==="tableContent"&&u.push(t[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[r-1][1].type==="tableDelimiterMarker"){const f=u.length-1;u[f]=u[f]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return u}function X5(){return{flow:{null:{name:"table",tokenize:Q5,resolveAll:Z5}}}}function Q5(t,r,a){const u=this;let o=0,f=0,c;return m;function m(H){let ne=u.events.length-1;for(;ne>-1;){const se=u.events[ne][1].type;if(se==="lineEnding"||se==="linePrefix")ne--;else break}const $=ne>-1?u.events[ne][1].type:null,ve=$==="tableHead"||$==="tableRow"?D:h;return ve===D&&u.parser.lazy[u.now().line]?a(H):ve(H)}function h(H){return t.enter("tableHead"),t.enter("tableRow"),g(H)}function g(H){return H===124||(c=!0,f+=1),y(H)}function y(H){return H===null?a(H):we(H)?f>1?(f=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),S):a(H):Ue(H)?Ie(t,y,"whitespace")(H):(f+=1,c&&(c=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),p(H)))}function p(H){return H===null||H===124||tt(H)?(t.exit("data"),y(H)):(t.consume(H),H===92?v:p)}function v(H){return H===92||H===124?(t.consume(H),p):p(H)}function S(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?a(H):(t.enter("tableDelimiterRow"),c=!1,Ue(H)?Ie(t,E,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):E(H))}function E(H){return H===45||H===58?N(H):H===124?(c=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):W(H)}function T(H){return Ue(H)?Ie(t,N,"whitespace")(H):N(H)}function N(H){return H===58?(f+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),_):H===45?(f+=1,_(H)):H===null||we(H)?P(H):W(H)}function _(H){return H===45?(t.enter("tableDelimiterFiller"),M(H)):W(H)}function M(H){return H===45?(t.consume(H),M):H===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),L):(t.exit("tableDelimiterFiller"),L(H))}function L(H){return Ue(H)?Ie(t,P,"whitespace")(H):P(H)}function P(H){return H===124?E(H):H===null||we(H)?!c||o!==f?W(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),r(H)):W(H)}function W(H){return a(H)}function D(H){return t.enter("tableRow"),F(H)}function F(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),F):H===null||we(H)?(t.exit("tableRow"),r(H)):Ue(H)?Ie(t,F,"whitespace")(H):(t.enter("data"),q(H))}function q(H){return H===null||H===124||tt(H)?(t.exit("data"),F(H)):(t.consume(H),H===92?ie:q)}function ie(H){return H===92||H===124?(t.consume(H),q):q(H)}}function Z5(t,r){let a=-1,u=!0,o=0,f=[0,0,0,0],c=[0,0,0,0],m=!1,h=0,g,y,p;const v=new Y5;for(;++a<t.length;){const S=t[a],E=S[1];S[0]==="enter"?E.type==="tableHead"?(m=!1,h!==0&&(Ib(v,r,h,g,y),y=void 0,h=0),g={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(a,0,[["enter",g,r]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(u=!0,p=void 0,f=[0,0,0,0],c=[0,a+1,0,0],m&&(m=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(a,0,[["enter",y,r]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(u=!1,c[2]===0&&(f[1]!==0&&(c[0]=c[1],p=rs(v,r,f,o,void 0,p),f=[0,0,0,0]),c[2]=a)):E.type==="tableCellDivider"&&(u?u=!1:(f[1]!==0&&(c[0]=c[1],p=rs(v,r,f,o,void 0,p)),f=c,c=[f[1],a,0,0])):E.type==="tableHead"?(m=!0,h=a):E.type==="tableRow"||E.type==="tableDelimiterRow"?(h=a,f[1]!==0?(c[0]=c[1],p=rs(v,r,f,o,a,p)):c[1]!==0&&(p=rs(v,r,c,o,a,p)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=a)}for(h!==0&&Ib(v,r,h,g,y),v.consume(r.events),a=-1;++a<r.events.length;){const S=r.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=F5(r.events,a))}return t}function rs(t,r,a,u,o,f){const c=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(f.end=Object.assign({},Ya(r.events,a[0])),t.add(a[0],0,[["exit",f,r]]));const h=Ya(r.events,a[1]);if(f={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(a[1],0,[["enter",f,r]]),a[2]!==0){const g=Ya(r.events,a[2]),y=Ya(r.events,a[3]),p={type:m,start:Object.assign({},g),end:Object.assign({},y)};if(t.add(a[2],0,[["enter",p,r]]),u!==2){const v=r.events[a[2]],S=r.events[a[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",a[3]>a[2]+1){const E=a[2]+1,T=a[3]-a[2]-1;t.add(E,T,[])}}t.add(a[3]+1,0,[["exit",p,r]])}return o!==void 0&&(f.end=Object.assign({},Ya(r.events,o)),t.add(o,0,[["exit",f,r]]),f=void 0),f}function Ib(t,r,a,u,o){const f=[],c=Ya(r.events,a);o&&(o.end=Object.assign({},c),f.push(["exit",o,r])),u.end=Object.assign({},c),f.push(["exit",u,r]),t.add(a+1,0,f)}function Ya(t,r){const a=t[r],u=a[0]==="enter"?"start":"end";return a[1][u]}const K5={name:"tasklistCheck",tokenize:$5};function P5(){return{text:{91:K5}}}function $5(t,r,a){const u=this;return o;function o(h){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?a(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),f)}function f(h){return tt(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),c):a(h)}function c(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),m):a(h)}function m(h){return we(h)?r(h):Ue(h)?t.check({tokenize:J5},r,a)(h):a(h)}}function J5(t,r,a){return Ie(t,u,"whitespace");function u(o){return o===null?a(o):r(o)}}function W5(t){return D1([E5(),M5(),V5(t),X5(),P5()])}const eO={};function tO(t){const r=this,a=t||eO,u=r.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),f=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),c=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(W5(a)),f.push(v5()),c.push(S5(a))}const nO="modulepreload",lO=function(t){return"/"+t},Vb={},Jm=function(r,a,u){let o=Promise.resolve();if(a&&a.length>0){let c=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),h=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=c(a.map(g=>{if(g=lO(g),g in Vb)return;Vb[g]=!0;const y=g.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":nO,y||(v.as="script"),v.crossOrigin="",v.href=g,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((S,E)=>{v.addEventListener("load",S),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(c){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=c,window.dispatchEvent(m),!m.defaultPrevented)throw c}return o.then(c=>{for(const m of c||[])m.status==="rejected"&&f(m.reason);return r().catch(f)})};let Ld=null;const Ud=new Map;function ES(){return Ld||(Ld=Jm(async()=>{const{createHighlighter:t}=await import("./index-DD4XT3t6.js");return{createHighlighter:t}},[]).then(({createHighlighter:t})=>t({themes:["github-dark"],langs:["plaintext"]}))),Ld}function rO(t){const r=Ud.get(t);if(r)return r;const a=Jm(()=>import("./index-DD4XT3t6.js"),[]).then(async({bundledLanguages:u,isSpecialLang:o})=>{if(o(t))return;const f=u[t];if(!f)throw new Error(`unknown lang: ${t}`);const c=await ES();c.getLoadedLanguages().includes(t)||await c.loadLanguage(f)}).catch(u=>{throw Ud.delete(t),u});return Ud.set(t,a),a}function aO({code:t,language:r}){const[a,u]=w.useState(null),[o,f]=w.useState(0),[c,m]=w.useState(!1),h=w.useRef(null);w.useEffect(()=>{let y=!1;async function p(){const v=await ES();if(y)return;let S="plaintext";if(r){const{isSpecialLang:E}=await Jm(async()=>{const{isSpecialLang:N}=await import("./index-DD4XT3t6.js");return{isSpecialLang:N}},[]),T=v.getLoadedLanguages();E(r)||T.includes(r)?S=r:(rO(r).then(()=>{y||f(N=>N+1)}).catch(()=>{}),S="plaintext")}try{const E=v.codeToHtml(t,{lang:S,theme:"github-dark"});y||u(E)}catch{}}return u(null),p().catch(()=>{}),()=>{y=!0}},[t,r,o]),w.useEffect(()=>()=>{h.current!==null&&clearTimeout(h.current)},[]);const g=w.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{m(!0),h.current!==null&&clearTimeout(h.current),h.current=setTimeout(()=>m(!1),2e3)}).catch(()=>{})},[t]);return b.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[r&&b.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:r}),b.jsx("button",{onClick:g,"aria-label":"Copy code",className:"absolute top-1.5 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded p-1 text-muted-foreground hover:text-foreground hover:bg-white/10",children:c?b.jsx(xm,{size:13,strokeWidth:2.5}):b.jsx(mx,{size:13,strokeWidth:2})}),a!==null?b.jsx("div",{className:"overflow-x-auto text-xs leading-5 [&>pre]:p-3 [&>pre]:m-0 [&>pre]:bg-transparent! [&>pre]:font-mono",dangerouslySetInnerHTML:{__html:a}}):b.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:b.jsx("code",{children:t})})]})}const iO={h1:({children:t})=>b.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>b.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>b.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>b.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>b.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>b.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>b.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>b.jsx("blockquote",{className:"mb-2 border-l-2 border-brand/50 pl-3 italic text-muted-foreground",children:t}),a:({href:t,children:r})=>t&&/^(https?:\/\/|\/(?!\/)|#)/i.test(t)?b.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:r}):b.jsx("span",{className:"text-muted-foreground",children:r}),strong:({children:t})=>b.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>b.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>b.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>b.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:b.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>b.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>b.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>b.jsx("td",{className:"border-t border-border px-3 py-1.5",children:t}),code:({children:t,className:r})=>{var u;return((u=/language-(\w+)/.exec(r??""))==null?void 0:u[1])?b.jsx("code",{className:oe("text-xs",r),children:t}):b.jsx("code",{className:"rounded bg-secondary px-1 py-0.5 font-mono text-[11px] text-foreground",children:t})},pre:({children:t})=>{var o,f,c;const r=t,a=(f=/language-(\w+)/.exec(((o=r==null?void 0:r.props)==null?void 0:o.className)??""))==null?void 0:f[1],u=String(((c=r==null?void 0:r.props)==null?void 0:c.children)??"").replace(/\n$/,"");return b.jsx(aO,{code:u,language:a})}};function CS({text:t,className:r}){return b.jsx("div",{className:oe("text-sm text-foreground",r),children:b.jsx(Vz,{remarkPlugins:[tO],components:iO,children:t})})}function uO(){return b.jsx("span",{className:"streaming-cursor","aria-hidden":"true"})}const oO=/^[ \t]*(`{3,}|~{4,})/;function sO(t,r){if(r>=t.length)return r;const a=t.lastIndexOf(`
405
+ `,r-1)+1,u=t.slice(a,r);if(oO.test(u)){const o=t.indexOf(`
406
+ `,r);return o===-1?t.length:o+1}return r}function cO({text:t,isStreaming:r,speed:a=80,onComplete:u}){const o=w.useRef(0),[f,c]=w.useState(0),m=w.useRef(null),h=w.useRef(null),g=w.useRef(!1),y=w.useRef(u);w.useEffect(()=>{y.current=u},[u]);const p=w.useRef(a);w.useEffect(()=>{p.current=a});const v=!r&&o.current===0&&t.length>0,S=w.useCallback(()=>{if(m.current!==null)return;function _(M){var H;const L=h.current??M,P=M-L;h.current=M;const W=p.current/1e3,D=Math.max(1,Math.floor(W*P)),F=o.current,q=t.length;if(F<q){const ne=Math.min(F+D,q),$=sO(t,ne);o.current=$,c($)}if(o.current>=t.length&&!r){m.current=null,h.current=null,g.current||(g.current=!0,(H=y.current)==null||H.call(y));return}m.current=requestAnimationFrame(_)}m.current=requestAnimationFrame(_)},[t,r]);w.useEffect(()=>{var _;if(v){o.current=t.length,c(t.length),g.current||(g.current=!0,(_=y.current)==null||_.call(y));return}return(o.current<t.length||r)&&S(),()=>{m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[t,r,v]);const E=v?t.length:f,T=t.slice(0,E),N=E<t.length||r;return b.jsxs("span",{className:"streaming-text-root",children:[b.jsx(CS,{text:T}),N&&b.jsx(uO,{})]})}function TS({kind:t,text:r,className:a}){const[u,o]=w.useState(!1),f=w.useRef(null);w.useEffect(()=>()=>{f.current!==null&&clearTimeout(f.current)},[]);function c(){navigator.clipboard.writeText(r).then(()=>{o(!0),f.current!==null&&clearTimeout(f.current),f.current=setTimeout(()=>o(!1),2e3)}).catch(()=>{})}return b.jsx("div",{className:oe("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",a),children:b.jsx("div",{className:"flex items-center gap-0.5 rounded-md border border-border bg-card px-1 py-0.5 shadow-sm",children:t==="assistant"&&b.jsx(fO,{onClick:c,title:u?"Copied!":"Copy",children:u?b.jsx(xm,{className:"h-3.5 w-3.5 text-status-running"}):b.jsx(mx,{className:"h-3.5 w-3.5"})})})})}function fO({onClick:t,title:r,children:a}){return b.jsx("button",{type:"button",onClick:t,title:r,className:"h-6 w-6 rounded flex items-center justify-center hover:bg-secondary text-muted-foreground hover:text-foreground transition-colors",children:a})}function NS({text:t}){return b.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),b.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),b.jsx(TS,{kind:"user",text:t})]})}function _S({text:t,isStreaming:r=!1}){return b.jsxs("div",{className:"group relative flex flex-col gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),b.jsx("div",{className:"max-w-3xl",children:r?b.jsx(cO,{text:t,isStreaming:!0}):b.jsx(CS,{text:t})}),b.jsx(TS,{kind:"assistant",text:t})]})}function AS({message:t}){return b.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[b.jsx(ux,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),b.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function zS({text:t}){return b.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[b.jsx(Ex,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function jS({item:t}){return b.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),b.jsx("span",{className:"text-xs text-foreground",children:t.label}),b.jsx("span",{className:oe("ml-auto font-mono text-[10px] capitalize",t.status==="completed"?"text-status-running":"",t.status==="failed"?"text-status-failed":"",t.status==="running"?"text-status-blocked":""),children:t.status})]})}function dO(t){const r=[];let a=0;for(;a<t.length;){const u=t[a];if(u===void 0){a++;continue}if(u.kind!=="subagent"){r.push({kind:"item",item:u}),a++;continue}const o=[];for(;a<t.length;){const f=t[a];if(f===void 0||f.kind!=="subagent")break;o.push(f),a++}r.push({kind:"subagent-group",items:o,id:o[0].id})}return r}function mO(t,r=!1){switch(t.kind){case"user":return b.jsx(NS,{text:t.text});case"assistant":return b.jsx(_S,{text:t.text,isStreaming:r});case"thinking":return b.jsx(u1,{text:t.text});case"tool":return b.jsx(PN,{...t});case"error":return b.jsx(AS,{message:t.message});case"notice":return b.jsx(zS,{text:t.text});case"bg_job":return b.jsx(jS,{item:t});case"subagent":return null}}function hO(t,r=!1){switch(t.kind){case"user":return b.jsx(NS,{text:t.text});case"assistant":return b.jsx(_S,{text:t.text,isStreaming:r});case"thinking":return b.jsx(u1,{text:t.text});case"error":return b.jsx(AS,{message:t.message});case"notice":return b.jsx(zS,{text:t.text});case"bg_job":return b.jsx(jS,{item:t});default:return null}}function pO({sessionId:t,...r}){return b.jsx(c1.Provider,{value:t??null,children:b.jsx(gO,{...r})})}function gO({items:t,totals:r,spineMode:a=!0,turnActive:u=!1}){const o=w.useMemo(()=>dO(t),[t]),f=A3(t),c=w.useMemo(()=>{var h;for(let g=t.length-1;g>=0;g--)if(((h=t[g])==null?void 0:h.kind)==="assistant")return t[g].id;return null},[t]),m=w.useCallback((h,g)=>{const y=h.kind==="user"&&g>0,p=u&&h.id===c;return b.jsxs("div",{children:[y&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:hO(h,p)})]},h.id)},[u,c]);return b.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[r&&b.jsx(m1,{totals:r,className:"sticky top-0 z-10 mb-4 rounded-md border border-border bg-card px-3 py-1.5"}),t.length===0?b.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):a?b.jsx(_3,{slots:f,renderTextItem:m}):o.map((h,g)=>{if(h.kind==="item"){const{item:p}=h,v=p.kind==="user"&&g>0,S=u&&p.id===c;return b.jsxs("div",{children:[v&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:mO(p,S)})]},p.id)}const y=a3(h.items);return b.jsx("div",{className:"py-2 px-1",children:b.jsx(n3,{roots:y})},h.id)})]})}const yO={preference:"Preference",convention:"Convention",decision:"Decision",learning:"Learning"};function bO({type:t}){return b.jsx("span",{className:oe("inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium",t==="fact"?"bg-blue-500/15 text-blue-400":"bg-violet-500/15 text-violet-400"),children:t})}function xO({category:t}){return t?b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-zinc-700 text-zinc-300",children:yO[t]??t}):null}function vO({result:t}){const r=t.content.length>200?t.content.slice(0,200)+"…":t.content,a=t.created_at?new Date(t.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null;return b.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx(bO,{type:t.type}),b.jsx(xO,{category:t.category}),a&&b.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:a})]}),b.jsx("p",{className:"text-sm text-zinc-300 leading-relaxed whitespace-pre-wrap break-words",children:r})]})}function SO({pct:t,truncated:r}){const a=Math.min(t,100),u=t>=100?"bg-red-500":t>=80?"bg-amber-400":"bg-accent";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:b.jsx("div",{className:oe("h-full rounded-full transition-all",u),style:{width:`${a}%`}})}),r&&b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-amber-400/15 text-amber-400",children:"Truncated"})]})}function wO({hot:t}){if(!t)return null;const{content:r,usage:a}=t;return b.jsxs("section",{className:"space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),b.jsxs("span",{className:"text-xs text-zinc-500",children:[a.tokens.toLocaleString()," / ",a.maxTokens.toLocaleString()," tokens"]})]}),b.jsx(SO,{pct:a.pct,truncated:a.truncated}),r?b.jsx("pre",{className:"rounded-md border border-zinc-800 bg-zinc-950 p-3 text-xs text-zinc-300 font-mono overflow-x-auto whitespace-pre-wrap max-h-48",children:r}):b.jsx("p",{className:"text-xs text-zinc-500 italic",children:"No hot memory loaded."})]})}const kO=[{value:"",label:"All Categories"},{value:"preference",label:"Preference"},{value:"convention",label:"Convention"},{value:"decision",label:"Decision"},{value:"learning",label:"Learning"}];function EO(){const[t,r]=w.useState(null),[a,u]=w.useState(""),[o,f]=w.useState(""),[c,m]=w.useState(null),[h,g]=w.useState(!1),[y,p]=w.useState(null);w.useEffect(()=>{it("/api/memory/hot").then(r).catch(()=>{})},[]);const v=w.useCallback(async S=>{S.preventDefault(),g(!0),p(null);try{const E=new URLSearchParams({q:a,limit:"20"});o&&E.set("category",o);const T=await it(`/api/memory/search?${E.toString()}`);m(T.results)}catch(E){p(E instanceof Error?E.message:"Search failed")}finally{g(!1)}},[a,o]);return b.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[b.jsx(wO,{hot:t}),b.jsxs("section",{className:"space-y-3",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),b.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[b.jsx("input",{type:"text",value:a,onChange:S=>u(S.target.value),placeholder:"FTS5 query…",className:"flex-1 min-w-0 rounded-md border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-accent"}),b.jsx("select",{value:o,onChange:S=>f(S.target.value),className:"rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-accent",children:kO.map(S=>b.jsx("option",{value:S.value,children:S.label},S.value))}),b.jsx("button",{type:"submit",disabled:h,className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50 hover:opacity-90 transition-opacity",children:h?"Searching…":"Search"})]}),y&&b.jsx("p",{className:"text-xs text-red-400",children:y}),c!==null&&b.jsx("div",{className:"space-y-2",children:c.length===0?b.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):c.map(S=>b.jsx(vO,{result:S},`${S.type}-${S.created_at}-${S.content.slice(0,32)}`))})]})]})}const CO={success:{label:"Success",className:"bg-status-done/20 text-status-done border-status-done/30"},error:{label:"Error",className:"bg-status-failed/20 text-status-failed border-status-failed/30"},skipped:{label:"Skipped",className:"bg-muted text-muted-foreground border-border"}};function TO(t){if(t<1e3)return`${t}ms`;const r=Math.floor(t/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function NO(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function _O({schedule:t,onClose:r}){const[a,u]=w.useState([]),[o,f]=w.useState(!0),[c,m]=w.useState(null);return w.useEffect(()=>{let h=!1;return f(!0),m(null),it(`/api/schedules/${t.id}/history`).then(g=>{h||u(g.history)}).catch(g=>{h||m(g instanceof Error?g.message:"Failed to load history")}).finally(()=>{h||f(!1)}),()=>{h=!0}},[t.id]),w.useEffect(()=>{const h=g=>{g.key==="Escape"&&r()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[r]),b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:h=>{h.target===h.currentTarget&&r()},children:b.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[b.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsx("button",{onClick:r,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:"✕"})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),c&&b.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:c}),!o&&!c&&a.length===0&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!c&&a.length>0&&b.jsx("ul",{className:"space-y-2",children:a.map((h,g)=>{const y=CO[h.status];return b.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[b.jsx("span",{className:oe("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",y.className),children:y.label}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:NO(h.triggeredAt)}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:TO(h.durationMs)})]}),h.errorMessage&&b.jsx("p",{className:"mt-1 truncate font-mono text-xs text-status-failed",children:h.errorMessage})]})]},`${h.taskId}-${h.triggeredAt}-${g}`)})})]})]})})}function AO({status:t}){return t?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:oe("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:"text-sm text-muted-foreground",children:t.running?`Running${t.tasks!=null?` (${t.tasks} task${t.tasks!==1?"s":""})`:""}`:"Stopped"})]}):null}function OS({checked:t,onChange:r,disabled:a}){return b.jsx("button",{role:"switch","aria-checked":t,onClick:u=>{u.stopPropagation(),r()},disabled:a,className:oe("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",t?"bg-brand":"bg-muted"),children:b.jsx("span",{className:oe("block size-4 rounded-full bg-white shadow transition-transform",t?"translate-x-4":"translate-x-0")})})}function zO({schedule:t,onToggle:r,onDelete:a,onShowHistory:u}){const[o,f]=w.useState(!1),[c,m]=w.useState(!1),h=async()=>{f(!0),await r(t.id).finally(()=>f(!1))},g=async p=>{p.stopPropagation(),window.confirm(`Delete schedule "${t.name}"? This cannot be undone.`)&&(m(!0),await a(t.id).finally(()=>m(!1)))},y=t.trigger==="both"?"cron + session start":t.trigger??"cron";return b.jsxs("div",{className:oe("group flex cursor-pointer flex-col gap-3 rounded-xl border border-border bg-card p-4","transition-colors hover:border-brand/40 hover:bg-accent/30",!t.enabled&&"opacity-60"),onClick:()=>u(t),children:[b.jsxs("div",{className:"flex items-start justify-between gap-3",children:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[b.jsx(OS,{checked:t.enabled,onChange:()=>{h()},disabled:o}),b.jsx("button",{onClick:g,disabled:c,"aria-label":`Delete schedule ${t.name}`,className:oe("flex size-7 items-center justify-center rounded-md text-muted-foreground","opacity-0 transition-opacity group-hover:opacity-100","hover:bg-destructive/20 hover:text-status-failed","disabled:cursor-not-allowed disabled:opacity-40"),children:"🗑"})]})]}),b.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[b.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:y}),t.notifyOn&&t.notifyOn!=="never"&&b.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),b.jsx("span",{className:"ml-auto",children:"Click for history"})]})]})}const jO={name:"",command:"",cron:"",trigger:"cron",notifyOn:"failure",enabled:!0};function OO({onCreated:t,onCancel:r}){const[a,u]=w.useState(jO),[o,f]=w.useState(!1),[c,m]=w.useState(null),h=async p=>{if(p.preventDefault(),m(null),!a.name.trim()){m("Name is required.");return}if(!a.command.trim()){m("Command is required.");return}if(!a.cron.trim()){m("Cron expression is required.");return}f(!0);try{const v=await it("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});t(v.schedule,v.syncNote)}catch(v){m(v instanceof Error?v.message:"Failed to create schedule.")}finally{f(!1)}},g=(p,v)=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:p}),v]}),y=oe("h-8 rounded-md border border-border bg-card px-3 text-sm","placeholder:text-muted-foreground/50","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50");return b.jsxs("form",{onSubmit:p=>{h(p)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[b.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[g("Name *",b.jsx("input",{type:"text",className:y,placeholder:"e.g. Nightly cleanup",value:a.name,onChange:p=>u(v=>({...v,name:p.target.value})),required:!0,disabled:o})),g("Cron expression *",b.jsx("input",{type:"text",className:oe(y,"font-mono"),placeholder:"0 2 * * *",value:a.cron,onChange:p=>u(v=>({...v,cron:p.target.value})),required:!0,disabled:o}))]}),g("Command *",b.jsx("input",{type:"text",className:oe(y,"font-mono"),placeholder:"/my-skill --auto",value:a.command,onChange:p=>u(v=>({...v,command:p.target.value})),required:!0,disabled:o})),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[g("Trigger",b.jsxs("select",{className:y,value:a.trigger,onChange:p=>u(v=>({...v,trigger:p.target.value})),disabled:o,children:[b.jsx("option",{value:"cron",children:"cron"}),b.jsx("option",{value:"sessionstart",children:"session start"}),b.jsx("option",{value:"both",children:"both"})]})),g("Notify on",b.jsxs("select",{className:y,value:a.notifyOn,onChange:p=>u(v=>({...v,notifyOn:p.target.value})),disabled:o,children:[b.jsx("option",{value:"failure",children:"failure"}),b.jsx("option",{value:"always",children:"always"}),b.jsx("option",{value:"never",children:"never"})]})),b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),b.jsx("div",{className:"flex h-8 items-center",children:b.jsx(OS,{checked:a.enabled,onChange:()=>u(p=>({...p,enabled:!p.enabled})),disabled:o})})]})]}),c&&b.jsx("p",{className:"rounded-md border border-status-failed/30 bg-status-failed/10 px-3 py-2 text-xs text-status-failed",children:c}),b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{type:"button",onClick:r,disabled:o,className:oe("h-8 rounded-md px-3 text-sm text-muted-foreground","hover:bg-accent hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50"),children:"Cancel"}),b.jsx("button",{type:"submit",disabled:o,className:oe("h-8 rounded-md bg-brand px-4 text-sm font-medium text-white","hover:bg-brand/90","disabled:cursor-not-allowed disabled:opacity-50"),children:o?"Creating…":"Create"})]})]})}function DO(){const[t,r]=w.useState([]),[a,u]=w.useState(null),[o,f]=w.useState(!0),[c,m]=w.useState(null),[h,g]=w.useState(null),[y,p]=w.useState(!1),[v,S]=w.useState(null);w.useEffect(()=>{let _=!1;return f(!0),m(null),Promise.all([it("/api/schedules"),it("/api/daemon/status")]).then(([M,L])=>{_||(r(M.schedules),u(L))}).catch(M=>{_||m(M instanceof Error?M.message:"Failed to load schedules")}).finally(()=>{_||f(!1)}),()=>{_=!0}},[]);const E=w.useCallback(async _=>{const M=await it(`/api/schedules/${_}/toggle`,{method:"POST"});r(L=>L.map(P=>P.id===_?{...P,enabled:M.enabled}:P)),M.syncNote&&(S(M.syncNote),setTimeout(()=>S(null),8e3))},[]),T=w.useCallback(async _=>{await it(`/api/schedules/${_}`,{method:"DELETE"}),r(M=>M.filter(L=>L.id!==_))},[]),N=w.useCallback((_,M)=>{r(L=>[...L,_]),p(!1),M&&(S(M),setTimeout(()=>S(null),8e3))},[]);return o?b.jsx("div",{className:"flex flex-1 items-center justify-center",children:b.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):b.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(AO,{status:a}),b.jsx("button",{onClick:()=>p(_=>!_),className:oe("h-7 rounded-md px-3 text-xs font-medium",y?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:y?"Cancel":"+ New Schedule"})]})]}),y&&b.jsx(OO,{onCreated:N,onCancel:()=>p(!1)}),v&&b.jsx("p",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-400",children:v}),c&&b.jsx("p",{className:"rounded-lg border border-status-failed/30 bg-status-failed/10 px-4 py-3 text-sm text-status-failed",children:c}),!c&&t.length===0&&!y&&b.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),b.jsx("div",{className:"grid gap-3",children:t.map(_=>b.jsx(zO,{schedule:_,onToggle:E,onDelete:T,onShowHistory:g},_.id))}),h&&b.jsx(_O,{schedule:h,onClose:()=>g(null)})]})}function MO(t,r){const a=(r??Date.now())-t;if(a<1e3)return`${a}ms`;const u=Math.floor(a/1e3);if(u<60)return`${u}s`;const o=Math.floor(u/60);return o<60?`${o}m ${u%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function RO(t){const r=Math.floor((Date.now()-t)/1e3);if(r<60)return`${r}s ago`;const a=Math.floor(r/60);if(a<60)return`${a}m ago`;const u=Math.floor(a/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function LO(t){const r=t.lastIndexOf("/");return r!==-1?t.slice(r+1):t}const UO={running:"bg-green-500/20 text-green-400 border border-green-500/30",completed:"bg-blue-500/20 text-blue-400 border border-blue-500/30",failed:"bg-red-500/20 text-red-400 border border-red-500/30",cancelled:"bg-neutral-500/20 text-neutral-400 border border-neutral-500/30"};function as(t){return t.status!=="running"}function BO({status:t}){return b.jsxs("span",{className:oe("inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-xs font-medium",UO[t]),children:[t==="running"&&b.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function Yb({job:t,now:r,onCancel:a}){const[u,o]=w.useState(!1),[f,c]=w.useState(!1),[m,h]=w.useState(null),g=MO(t.startedAt,t.status==="running"?r:t.endedAt),y=RO(t.startedAt),p=u?vm:ys,v=async S=>{S.stopPropagation(),h(null),c(!0);try{await a(t.jobId)}catch(E){h(E instanceof Error?E.message:String(E))}finally{c(!1)}};return b.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[b.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(E=>!E))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[b.jsx(p,{className:"size-3.5 shrink-0 text-neutral-500"}),b.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsx(BO,{status:t.status}),t.status==="running"&&b.jsxs("button",{type:"button",onClick:v,disabled:f,"aria-label":`Cancel job ${t.jobId}`,className:oe("flex items-center gap-1 rounded px-1.5 py-0.5 text-xs","text-neutral-500 hover:text-red-400 hover:bg-red-500/10","disabled:opacity-40 transition-colors"),children:[b.jsx(Sm,{className:"size-3"}),f?"Cancelling…":"Cancel"]})]})]}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[b.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:LO(t.model)}),b.jsx("span",{children:g}),b.jsx("span",{children:y})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&b.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[b.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",b.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),m&&b.jsx("p",{className:"pl-5 text-xs text-red-400",title:m,children:m.length>200?m.slice(0,200)+"…":m})]}),u&&b.jsxs("div",{className:"border-t border-neutral-800 px-4 py-3 bg-neutral-950 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-xs",children:[b.jsx(Rn,{label:"Job ID",value:t.jobId,mono:!0}),b.jsx(Rn,{label:"Subagent ID",value:t.subagentId,mono:!0}),b.jsx(Rn,{label:"Model",value:t.model,mono:!0}),b.jsx(Rn,{label:"Status",value:t.status}),b.jsx(Rn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&b.jsx(Rn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),b.jsx(Rn,{label:"Duration",value:g}),t.parentSessionId&&b.jsx(Rn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&b.jsx(Rn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),b.jsx(Rn,{label:"Prompt hash",value:t.promptHash,mono:!0}),b.jsx(Rn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function Rn({label:t,value:r,mono:a=!1}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),b.jsx("span",{className:oe("text-neutral-300 break-all",a&&"font-mono"),children:r})]})}function Gb({label:t,count:r}){return b.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[b.jsx("span",{children:t}),b.jsx("span",{className:"rounded-full bg-neutral-800 px-1.5 py-0.5 text-neutral-400 normal-case",children:r})]})}function HO(){const[t,r]=w.useState([]),[a,u]=w.useState(!0),[o,f]=w.useState(null),[c,m]=w.useState(()=>Date.now()),h=w.useRef(null),g=w.useCallback((E=!1)=>{E||u(!0),f(null),it("/api/bg-jobs").then(({jobs:T})=>r([...T].sort((N,_)=>_.startedAt-N.startedAt))).catch(T=>f(T instanceof Error?T.message:String(T))).finally(()=>{E||u(!1)})},[]);w.useEffect(()=>{g()},[g]),w.useEffect(()=>{const E=t.some(T=>!as(T));return E&&!h.current&&(h.current=setInterval(()=>g(!0),5e3)),!E&&h.current&&(clearInterval(h.current),h.current=null),()=>{h.current&&(clearInterval(h.current),h.current=null)}},[t,g]),w.useEffect(()=>{if(!t.some(N=>!as(N)))return;const T=setInterval(()=>m(Date.now()),1e3);return()=>clearInterval(T)},[t]);const y=w.useCallback(async E=>{await it(`/api/bg-jobs/${encodeURIComponent(E)}/cancel`,{method:"POST"}),r(T=>T.map(N=>N.jobId===E?{...N,status:"cancelled"}:N))},[]),p=t.filter(E=>E.status==="running"),v=t.filter(E=>as(E)),S=t.some(E=>!as(E));return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[b.jsx(ex,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&b.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),b.jsxs("button",{onClick:()=>g(),disabled:a,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs text-neutral-400 hover:text-neutral-200 hover:bg-neutral-800 disabled:opacity-50 transition-colors",children:[b.jsx(xE,{className:oe("size-3",a&&"animate-spin")}),"Refresh"]})]}),o&&b.jsx("p",{className:"rounded border border-red-900/40 bg-red-950/30 px-3 py-2 text-xs text-red-400",children:o}),!a&&t.length===0&&!o&&b.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),p.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Gb,{label:"Running",count:p.length}),p.map(E=>b.jsx(Yb,{job:E,now:c,onCancel:y},E.jobId))]}),v.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Gb,{label:"Settled",count:v.length}),v.map(E=>b.jsx(Yb,{job:E,now:c,onCancel:y},E.jobId))]})]})}function tu({icon:t,title:r,children:a}){return b.jsxs("section",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(t,{className:"size-4 text-muted-foreground"}),b.jsx("h2",{className:"text-sm font-semibold",children:r})]}),b.jsx("div",{className:"rounded-xl border border-border bg-card",children:a})]})}function Kt({label:t,value:r,mono:a=!1,last:u=!1}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!u&&"border-b border-border"),children:[b.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),b.jsx("span",{className:oe("min-w-0 truncate text-right text-xs",a?"font-mono text-zinc-300":"text-zinc-200"),children:r})]})}function qO({model:t,last:r}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!r&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const Fb=[{keys:"⌘K",description:"Open command palette"},{keys:"⌘1",description:"Go to Sessions"},{keys:"⌘2",description:"Go to Memory"},{keys:"⌘3",description:"Go to Schedules"},{keys:"⌘4",description:"Go to Background Jobs"}];function IO({keys:t,description:r,last:a}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:r}),b.jsx("kbd",{className:"rounded border border-border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:t})]})}function VO({status:t}){return t?b.jsxs("span",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:oe("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:oe("text-xs",t.running?"text-zinc-200":"text-muted-foreground"),children:t.running?`Running${t.tasks!=null?` · ${t.tasks} task${t.tasks!==1?"s":""}`:""}`:"Stopped"})]}):b.jsx("span",{className:"text-xs text-muted-foreground",children:"–"})}function YO(){var o;const[t,r]=w.useState({config:null,models:null,daemon:null,configError:null,modelsError:null,daemonError:null});w.useEffect(()=>{let f=!1;const c=m=>m instanceof Error?m.message:"Failed to load";return Promise.all([it("/api/config").then(m=>({ok:!0,config:m}),m=>({ok:!1,error:c(m)})),it("/api/models").then(m=>({ok:!0,models:m.models}),m=>({ok:!1,error:c(m)})),it("/api/daemon/status").then(m=>({ok:!0,daemon:m}),m=>({ok:!1,error:c(m)}))]).then(([m,h,g])=>{f||r({config:m.ok?m.config:null,configError:m.ok?null:m.error,models:h.ok?h.models:null,modelsError:h.ok?null:h.error,daemon:g.ok?g.daemon:null,daemonError:g.ok?null:g.error})}).catch(()=>{}),()=>{f=!0}},[]);const a=t.config,u=b.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return b.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[b.jsxs(tu,{icon:Ex,title:"About",children:[b.jsx(Kt,{label:"AFK version",value:a?a.version:u,mono:!0}),b.jsx(Kt,{label:"Node.js",value:a?a.nodeVersion:u,mono:!0}),b.jsx(Kt,{label:"App",value:"AFK Dashboard",last:!0})]}),b.jsxs(tu,{icon:rE,title:"Model",children:[b.jsx(Kt,{label:"Default model",value:a?a.model:u,mono:!0}),t.modelsError?b.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?b.jsx(Kt,{label:"Available tiers",value:u,last:!0}):t.models.length===0?b.jsx(Kt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((f,c)=>{var m;return b.jsx(qO,{model:f,last:c===(((m=t.models)==null?void 0:m.length)??0)-1},f.id)})]}),b.jsxs(tu,{icon:iE,title:"Paths",children:[b.jsx(Kt,{label:"AFK home",value:a?a.afkHome:u,mono:!0}),b.jsx(Kt,{label:"State dir",value:a?a.stateDir:u,mono:!0}),b.jsx(Kt,{label:"Config dir",value:a?a.configDir:u,mono:!0,last:!0})]}),b.jsxs(tu,{icon:Ga,title:"Web Server",children:[b.jsx(Kt,{label:"Host",value:a?a.webHost:u,mono:!0}),b.jsx(Kt,{label:"Port",value:a?String(a.webPort):u,mono:!0}),b.jsx(Kt,{label:"Daemon",value:b.jsx(VO,{status:t.daemon})}),!t.daemonError&&b.jsx(Kt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&b.jsx(Kt,{label:"Daemon error",value:t.daemonError,last:!0})]}),b.jsx(tu,{icon:uE,title:"Keyboard Shortcuts",children:Fb.map((f,c)=>b.jsx(IO,{keys:f.keys,description:f.description,last:c===Fb.length-1},f.keys))})]})}function pm(t){return t.startsWith("/")?t.slice(1):t}function DS(t){return`/${pm(t)}`}function MS(t,r){return pm(t).startsWith(pm(r))}function GO({query:t,commands:r,onSelect:a,visible:u}){const[o,f]=w.useState(0),c=w.useRef(null),m=r.filter(h=>MS(h.name,t)).slice(0,8);return w.useEffect(()=>{f(0)},[t]),w.useEffect(()=>{var g;const h=(g=c.current)==null?void 0:g.children[o];h==null||h.scrollIntoView({block:"nearest"})},[o]),!u||m.length===0?null:b.jsx("ul",{ref:c,role:"listbox","aria-label":"Slash commands",className:oe("absolute bottom-full left-0 mb-1 w-full max-h-56 overflow-y-auto","rounded-lg border border-border bg-popover shadow-lg z-50","text-sm"),children:m.map((h,g)=>b.jsxs("li",{role:"option","aria-selected":g===o,className:oe("flex items-baseline gap-2 px-3 py-2 cursor-pointer select-none",g===o?"bg-accent text-accent-foreground":"hover:bg-accent/50"),onMouseEnter:()=>f(g),onMouseDown:y=>{y.preventDefault(),a(h.name)},children:[b.jsx("span",{className:"font-mono font-semibold shrink-0",children:DS(h.name)}),b.jsx("span",{className:"text-muted-foreground truncate",children:h.summary})]},h.name))})}function FO(t,r,a,u,o,f,c){return!r||a===0?!1:t.key==="ArrowDown"?(o((u+1)%a),!0):t.key==="ArrowUp"?(o((u-1+a)%a),!0):t.key==="Enter"?(f(u),!0):t.key==="Escape"?(c(),!0):!1}function XO(t){const r=t.trim();return r?r.startsWith("/")||r.startsWith("./")||r.startsWith("~/")||/^[\w.]/.test(r):!1}function QO({onInsert:t}){const[r,a]=w.useState(!1),[u,o]=w.useState(""),[f,c]=w.useState(!1),m=w.useRef(null),h=w.useRef(null),g=w.useRef(null),y=w.useCallback(()=>{a(!1),c(!1),o("")},[]),p=w.useCallback(()=>{var S;const v=u.trim();if(!XO(v)){c(!0),(S=m.current)==null||S.focus();return}t(`@${v}`),y()},[u,t,y]);return w.useEffect(()=>{r&&requestAnimationFrame(()=>{var v;return(v=m.current)==null?void 0:v.focus()})},[r]),w.useEffect(()=>{if(!r)return;function v(S){const E=S.target;h.current&&!h.current.contains(E)&&g.current&&!g.current.contains(E)&&y()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[r,y]),b.jsxs("div",{className:"relative",children:[b.jsx("button",{ref:g,type:"button",onClick:()=>r?y():a(!0),"aria-label":"Insert file reference","aria-expanded":r,className:oe("flex h-8 w-8 items-center justify-center rounded-md text-sm","transition-colors hover:bg-accent hover:text-accent-foreground",r&&"bg-accent text-accent-foreground"),title:"Insert @file reference",children:b.jsx(aE,{className:"h-4 w-4"})}),r&&b.jsxs("div",{ref:h,role:"dialog","aria-label":"Insert file path",className:oe("absolute bottom-full left-0 mb-2 w-72 rounded-lg border","bg-popover p-3 shadow-lg animate-fade-in"),children:[b.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",b.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",b.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{ref:m,type:"text",value:u,onChange:v=>{o(v.target.value),c(!1)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),p()),v.key==="Escape"&&y()},placeholder:"src/foo.ts or ~/file.ts",autoComplete:"off",spellCheck:!1,className:oe("flex-1 rounded-md border bg-secondary px-2 py-1 text-sm","placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",f&&"border-destructive")}),b.jsx("button",{type:"button",onClick:p,className:oe("rounded-md bg-primary px-3 py-1 text-sm font-medium","text-primary-foreground hover:bg-primary/90"),children:"Add"})]}),f&&b.jsx("p",{className:"mt-1 text-xs text-destructive",children:"Enter a valid file path."})]})]})}const ZO=[{id:"sonnet",label:"Sonnet"},{id:"haiku",label:"Haiku"},{id:"opus",label:"Opus"}],KO="sonnet";function PO({onSelect:t,current:r,className:a}){const[u,o]=w.useState(ZO),f=w.useRef(!1);w.useEffect(()=>{let h=!1;return it("/api/models").then(g=>{!h&&g.models.length>0&&o(g.models)}).catch(()=>{}),()=>{h=!0}},[]);const c=r??KO;w.useEffect(()=>{f.current||(f.current=!0,t(c))},[t,c]);const m=w.useCallback(h=>{t(h.target.value)},[t]);return b.jsxs("div",{className:oe("relative inline-flex items-center",a),children:[b.jsx("select",{value:c,onChange:m,"aria-label":"Model",className:oe("appearance-none rounded-md border bg-secondary pl-2 pr-7 py-1","text-xs font-medium text-secondary-foreground","cursor-pointer focus:outline-none focus:ring-1 focus:ring-ring"),children:u.map(h=>b.jsx("option",{value:h.id,children:h.label},h.id))}),b.jsx(vm,{className:"pointer-events-none absolute right-1.5 h-3 w-3 text-muted-foreground"})]})}function $O({queue:t}){const{entries:r,moveItemUp:a,moveItemDown:u,removeItem:o,editItem:f}=t;return r.length===0?null:b.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[b.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",r.length,")"]}),r.map((c,m)=>b.jsx(JO,{text:c.text,isFirst:m===0,isLast:m===r.length-1,onMoveUp:()=>a(m),onMoveDown:()=>u(m),onRemove:()=>o(m),onEdit:h=>f(m,h)},c.id))]})}function JO({text:t,isFirst:r,isLast:a,onMoveUp:u,onMoveDown:o,onRemove:f,onEdit:c}){const[m,h]=w.useState(!1),[g,y]=w.useState(t),p=w.useRef(null);w.useEffect(()=>{var T;m&&((T=p.current)==null||T.focus())},[m]);const v=w.useCallback(()=>{y(t),h(!0)},[t]),S=w.useCallback(()=>{const T=g.trim();T&&T!==t&&c(T),h(!1)},[g,t,c]),E=w.useCallback(()=>{h(!1),y(t)},[t]);return b.jsxs("div",{className:oe("group flex items-center gap-1.5 rounded-md border border-border/50","bg-secondary/50 px-2 py-1 text-sm animate-fade-in"),children:[m?b.jsx("input",{ref:p,type:"text",value:g,onChange:T=>y(T.target.value),onKeyDown:T=>{T.key==="Enter"&&S(),T.key==="Escape"&&E()},onBlur:S,className:oe("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):b.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),b.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[m?b.jsx(nu,{label:"Confirm edit",onClick:S,children:b.jsx(xm,{className:"h-3 w-3"})}):b.jsx(nu,{label:"Edit",onClick:v,children:b.jsx(pE,{className:"h-3 w-3"})}),b.jsx(nu,{label:"Move up",onClick:u,disabled:r,children:b.jsx(Pk,{className:"h-3 w-3"})}),b.jsx(nu,{label:"Move down",onClick:o,disabled:a,children:b.jsx(Kb,{className:"h-3 w-3"})}),b.jsx(nu,{label:"Remove",onClick:f,destructive:!0,children:b.jsx(Sm,{className:"h-3 w-3"})})]})]})}function nu({label:t,onClick:r,disabled:a,destructive:u,children:o}){return b.jsx("button",{type:"button",onClick:r,disabled:a,"aria-label":t,title:t,className:oe("flex h-5 w-5 items-center justify-center rounded","transition-colors",a?"cursor-not-allowed opacity-30":u?"hover:bg-destructive/20 hover:text-destructive":"hover:bg-accent hover:text-accent-foreground"),children:o})}let ru=null;function WO(){ru=null}async function eD(){return ru||(ru=(await it("/api/commands")).commands,ru)}function tD(t){return t.startsWith("/")&&t.indexOf(" ")===-1?t.slice(1):null}function nD({sessionId:t,sessionMode:r,isBusy:a,queue:u,onModelSelect:o,currentModel:f}){const[c,m]=w.useState(""),[h,g]=w.useState(!1),[y,p]=w.useState([]),[v,S]=w.useState(0),E=w.useRef(null),T=r==="readonly",N=tD(c),_=N!==null&&y.length>0,M=_?y.filter(q=>MS(q.name,N)).slice(0,8):[];w.useEffect(()=>{const q=()=>{document.visibilityState==="visible"&&WO()};return document.addEventListener("visibilitychange",q),()=>document.removeEventListener("visibilitychange",q)},[]),w.useEffect(()=>{const q=E.current;if(!q)return;q.style.height="auto";const H=(parseInt(getComputedStyle(q).lineHeight)||20)*5;q.style.height=`${Math.min(q.scrollHeight,H)}px`},[c]),w.useEffect(()=>{N!==null&&eD().then(p).catch(()=>{})},[N]);const L=w.useCallback(async()=>{const q=c.trim();if(!(!q||h||T)){g(!0);try{await it(`/api/sessions/${t}/prompt`,{method:"POST",body:JSON.stringify({text:q})}),m("")}catch{}finally{g(!1)}}},[c,h,T,t]),P=w.useCallback(async()=>{try{await it(`/api/sessions/${t}/interrupt`,{method:"POST"})}catch{}},[t]),W=w.useCallback(q=>{var ie;m(`${DS(q)} `),S(0),(ie=E.current)==null||ie.focus()},[]),D=w.useCallback(q=>{if(FO(q,_,M.length,v,S,H=>{const ne=M[H];ne&&W(ne.name)},()=>m(H=>H))){q.preventDefault();return}if(q.key==="Enter"&&!q.shiftKey)if(q.preventDefault(),a&&u){const H=c.trim();H&&(u.enqueue(H),m(""))}else L()},[_,M,v,W,L,a,c,u]),F=w.useCallback(q=>{const ie=E.current;if(!ie){m(X=>X+" "+q+" ");return}const H=ie.selectionStart??ie.value.length,ne=ie.selectionEnd??H,$=ie.value.slice(0,H),ve=ie.value.slice(ne),se=$.length>0&&!/\s$/.test($)?" ":"",te=$+se+q+" "+ve;m(te),requestAnimationFrame(()=>{const X=H+se.length+q.length+1;ie.setSelectionRange(X,X),ie.focus()})},[]);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),b.jsxs("div",{className:oe("relative flex flex-col gap-2","border-t border-border/50 px-4 py-3","backdrop-blur-xl bg-background/80","shadow-[0_-4px_16px_-4px_rgba(0,0,0,0.1)]",T&&"opacity-50"),children:[u&&b.jsx($O,{queue:u}),b.jsx(GO,{query:N??"",commands:y,onSelect:W,visible:_}),b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[b.jsx(QO,{onInsert:F}),o&&b.jsx(PO,{onSelect:o,current:f})]}),b.jsx("textarea",{ref:E,rows:1,value:c,disabled:T||h,onChange:q=>m(q.target.value),onKeyDown:D,placeholder:T?"Read-only session":"Send a message… (/ for commands)",className:oe("flex-1 resize-none rounded-xl border border-input bg-background","px-3 py-2 text-sm leading-5 shadow-sm","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed")}),a?b.jsx("button",{onClick:()=>void P(),title:"Stop",className:"shrink-0 flex items-center justify-center h-9 w-9 rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",children:b.jsx(Yx,{className:"h-4 w-4 fill-current"})}):b.jsx("button",{onClick:()=>void L(),disabled:!c.trim()||h||T,title:"Send",className:oe("shrink-0 flex items-center justify-center h-9 w-9 rounded-lg","bg-primary text-primary-foreground hover:bg-primary/90 transition-colors","disabled:opacity-40 disabled:cursor-not-allowed"),children:b.jsx(vE,{className:"h-4 w-4"})})]})]})]})}async function lD(t){await it("/api/approve",{method:"POST",body:JSON.stringify(t)})}function rD({approval:t,onAnswered:r}){const{id:a,request:u}=t,[o,f]=w.useState(typeof u.questionDefault=="string"?u.questionDefault:""),[c,m]=w.useState(!1),[h,g]=w.useState(null),y=async(v,S)=>{m(!0),g(null);try{await lD({requestId:a,response:{action:v,content:S}}),r()}catch{g("Failed to submit — try again")}finally{m(!1)}},p=u.type??"confirm";return b.jsxs("div",{className:oe("rounded-lg border-2 border-yellow-500/60 bg-yellow-500/5 p-3 text-sm","flex flex-col gap-2"),children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsx(wE,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),b.jsxs("div",{className:"flex-1 min-w-0",children:[u.title&&b.jsx("p",{className:"font-semibold text-foreground",children:u.title}),u.message&&b.jsx("p",{className:"text-muted-foreground",children:u.message}),u.description&&b.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:u.description})]}),b.jsx("button",{onClick:()=>void y("decline"),disabled:c,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:b.jsx(Sm,{className:"h-4 w-4"})})]}),p==="text"&&b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:o,onChange:v=>f(v.target.value),disabled:c,className:oe("flex-1 rounded border border-input bg-background px-2 py-1 text-sm","focus:outline-none focus:ring-1 focus:ring-ring")}),b.jsx(is,{onClick:()=>void y("accept",{text:o}),disabled:c,label:"Submit",variant:"primary"})]}),p==="confirm"&&b.jsxs("div",{className:"flex gap-2 justify-end",children:[b.jsx(is,{onClick:()=>void y("decline"),disabled:c,label:"No",variant:"ghost"}),b.jsx(is,{onClick:()=>void y("accept"),disabled:c,label:"Yes",variant:"primary"})]}),(p==="choice"||p==="multi_choice")&&b.jsx("div",{className:"flex flex-wrap gap-1.5",children:(u.choices??[]).map(v=>b.jsx(is,{onClick:()=>void y("accept",{choice:v}),disabled:c,label:v,variant:"outline"},v))}),h&&b.jsx("p",{className:"text-xs text-red-400",children:h})]})}function is({onClick:t,disabled:r,label:a,variant:u}){return b.jsx("button",{onClick:t,disabled:r,className:oe("rounded px-3 py-1 text-xs font-medium transition-colors disabled:opacity-50",u==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",u==="ghost"&&"text-muted-foreground hover:text-foreground hover:bg-accent",u==="outline"&&"border border-border hover:bg-accent"),children:a})}function aD({approvals:t,onDismiss:r}){const[a,u]=w.useState(new Set),o=t.filter(c=>!a.has(c.id));if(o.length===0)return null;const f=c=>{u(m=>new Set([...m,c])),r==null||r()};return b.jsx("div",{className:"flex flex-col gap-2",children:o.map(c=>b.jsx(rD,{approval:c,onAnswered:()=>f(c.id)},c.id))})}function iD({open:t,onClose:r,children:a}){return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:oe("fixed inset-0 z-40 bg-black/50 transition-opacity duration-200 md:hidden",t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:r,"aria-hidden":"true"}),b.jsx("div",{className:oe("fixed inset-y-0 left-0 z-50 w-64 bg-sidebar transition-transform duration-200 ease-in-out md:hidden",t?"translate-x-0":"-translate-x-full"),role:"dialog","aria-modal":"true",children:a})]})}function uD({onClick:t,className:r}){return b.jsx("button",{onClick:t,className:oe("inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-muted hover:text-foreground md:hidden",r),"aria-label":"Open sidebar",children:b.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}const oD=w.createContext(null),sD={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-muted text-muted-foreground border border-border"};function cD({children:t}){const[r,a]=w.useState([]),u=w.useRef(0),o=w.useCallback((f,c="info")=>{const m=++u.current;a(h=>[...h.slice(-2),{id:m,message:f,type:c}]),setTimeout(()=>{a(h=>h.filter(g=>g.id!==m))},3e3)},[]);return b.jsxs(oD.Provider,{value:{toast:o},children:[t,b.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none","aria-live":"polite","aria-label":"Notifications",children:r.map(f=>b.jsx("div",{className:oe("pointer-events-auto max-w-sm rounded-lg px-4 py-3 text-sm shadow-lg animate-slide-in-right",sD[f.type]),children:f.message},f.id))})]})}const fD=1e4;function dD(){const[t,r]=w.useState([]),[a,u]=w.useState(!0),[o,f]=w.useState(null),c=w.useRef(void 0),m=w.useCallback(async()=>{try{const h=await it("/api/sessions");r(mD(h.sessions)),f(null)}catch(h){f(h instanceof Error?h.message:"Failed to fetch sessions")}finally{u(!1)}},[]);return w.useEffect(()=>(m(),c.current=setInterval(()=>void m(),fD),()=>clearInterval(c.current)),[m]),{sessions:t,loading:a,error:o,refresh:m}}function mD(t){return[...t].sort((r,a)=>{const u=Xb(r)?1:0,o=Xb(a)?1:0;if(u!==o)return o-u;const f=r.updatedAt?new Date(r.updatedAt).getTime():0;return(a.updatedAt?new Date(a.updatedAt).getTime():0)-f})}function Xb(t){return t.mode==="live"||t.alive===!0}const hD=1e3;function pD(){const[t,r]=w.useState([]),a=w.useRef(void 0),u=w.useCallback(async()=>{try{const f=await it("/api/pending");r(f.pending)}catch{}},[]);w.useEffect(()=>(u(),a.current=setInterval(()=>void u(),hD),()=>clearInterval(a.current)),[u]);const o=new Set(t.map(f=>f.sessionId).filter(f=>!!f));return{approvals:t,pendingSessionIds:o}}const gD=15e3,yD=500;function bD(t){const a=t.replace(/\r\n/g,`
407
+ `).split(`
408
+
409
+ `),u=a.pop()??"",o=[];for(const f of a){if(f.trim()==="")continue;let c,m;for(const h of f.split(`
410
+ `))h.startsWith("id: ")?c=h.slice(4):h.startsWith("id:")?c=h.slice(3).trimStart():h.startsWith("data: ")?m=h.slice(6):h.startsWith("data:")&&(m=h.slice(5).trimStart());m!==void 0&&o.push({id:c,data:m})}return{events:o,remainder:u}}function xD(t){return typeof t=="object"&&t!==null&&t.end===!0}function vD(t){const[r,a]=w.useState([]),[u,o]=w.useState("connecting"),[f,c]=w.useState(null),m=w.useRef(void 0),h=w.useRef(void 0),g=w.useRef(0),y=w.useRef(!1);return w.useEffect(()=>{if(t===null){a([]),o("connecting"),c(null);return}const p=t;a([]),c(null),y.current=!1,h.current=void 0,g.current=0;async function v(){if(y.current)return;o(g.current===0?"connecting":"reconnecting");let S=!1;const E=new AbortController;m.current=E;const T=o1(),N={};T&&(N.authorization=`Bearer ${T}`),h.current!==void 0&&(N["last-event-id"]=h.current);try{const L=await fetch(`/api/sessions/${encodeURIComponent(p)}/stream`,{headers:N,signal:E.signal});if(!L.ok){if(L.status===401||L.status===403||L.status===404){y.current=!0;const F=L.status===401?"unauthorized":L.status===403?"forbidden":"not-found";c(F),o("closed");return}throw new Error(`stream ${L.status}`)}if(L.body===null)throw new Error("stream: no body");g.current=0,o("open");const P=L.body.getReader(),W=new TextDecoder;let D="";e:for(;;){const{done:F,value:q}=await P.read();if(y.current||F)break;D+=W.decode(q,{stream:!0});const{events:ie,remainder:H}=bD(D);D=H;for(const ne of ie){ne.id!==void 0&&(h.current=ne.id);let $;try{$=JSON.parse(ne.data)}catch{continue}if(xD($)){S=!0,y.current=!0;break e}a(ve=>[...ve,$])}}}catch(L){if(L instanceof DOMException&&L.name==="AbortError")return}if(y.current){S&&o("ended");return}g.current+=1;const _=.75+Math.random()*.5,M=Math.min(yD*2**(g.current-1),gD)*_;setTimeout(()=>void v(),M)}return v(),()=>{var S;y.current=!0,(S=m.current)==null||S.abort(),o("closed")}},[t]),{events:r,status:u,error:f}}const Bd={costUsd:0,durationMs:0,turns:0};function SD(t){const{events:r,status:a,error:u}=vD(t),[o,f]=w.useState([]),[c,m]=w.useState(Bd),[h,g]=w.useState(!1),[y,p]=w.useState(0),v=w.useRef(new Map),S=w.useRef(new Map);w.useEffect(()=>{UN(),v.current=new Map,S.current=new Map,f([]),m(Bd),g(!1),p(0)},[t]);const E=w.useRef(0);return w.useEffect(()=>{const T=r.slice(E.current);if(T.length===0)return;E.current=r.length;const N=v.current,_=[];let M=Bd,L=!1,P=null,W=0;for(const D of T){const F=D,q=F.record??D,ie=F.replay===!0;q.kind==="user"?P=!0:(q.kind==="done"||q.kind==="error")&&(P=!1),q.kind==="done"&&!ie&&(W+=1),M=YN(M,q);const H=VN(q,N,S.current);H!==void 0?_.push(H):(q.kind==="tool_result"||q.kind==="subagent_lifecycle")&&(L=!0)}_.length>0?f(D=>[...D,..._]):L&&f(D=>[...D]),(M.costUsd!==0||M.durationMs!==0||M.turns!==0)&&m(D=>({costUsd:D.costUsd+M.costUsd,durationMs:D.durationMs+M.durationMs,turns:D.turns+M.turns,inputTokens:(D.inputTokens??0)+(M.inputTokens??0),outputTokens:(D.outputTokens??0)+(M.outputTokens??0),cacheReadTokens:(D.cacheReadTokens??0)+(M.cacheReadTokens??0)})),P!==null&&g(P),W>0&&p(D=>D+W)},[r]),w.useEffect(()=>{E.current=0},[t]),{items:o,totals:c,status:a,error:u,turnActive:h,liveTurns:y}}const wD=50,kD=200;function ED(){const t=w.useRef(null),[r,a]=w.useState(!0),[u,o]=w.useState(!1);w.useEffect(()=>{const c=t.current;if(c===null)return;function m(){if(c===null)return;const h=c.scrollHeight-c.scrollTop-c.clientHeight;a(h<=wD),o(h>kD)}return c.addEventListener("scroll",m,{passive:!0}),()=>c.removeEventListener("scroll",m)},[]);const f=w.useCallback(()=>{const c=t.current;c!==null&&(c.scrollTop=c.scrollHeight)},[]);return{containerRef:t,scrollToBottom:f,isPinned:r,showScrollButton:u}}function Cs(t,r){return Number.isInteger(r)&&r>=0&&r<t.length}function CD(t,r){if(!Cs(t,r)||r===0)return t.slice();const a=t.slice(),u=a[r-1],o=a[r];return u===void 0||o===void 0?t.slice():(a[r-1]=o,a[r]=u,a)}function TD(t,r){if(!Cs(t,r)||r===t.length-1)return t.slice();const a=t.slice(),u=a[r+1],o=a[r];return u===void 0||o===void 0?t.slice():(a[r+1]=o,a[r]=u,a)}function ND(t,r){if(!Cs(t,r))return t.slice();const a=t.slice();return a.splice(r,1),a}function _D(t,r,a){if(!Cs(t,r))return t.slice();const u=t.slice();return u[r]={...u[r],text:a},u}function AD({submit:t,isLive:r}){const[a,u]=w.useState([]),o=w.useRef(!1),f=w.useRef(0),c=w.useRef([]),m=w.useCallback(E=>{const T=f.current++,N=[...c.current,{id:T,text:E}];c.current=N,u(N)},[]),h=w.useCallback(E=>{const T=CD(c.current,E);c.current=T,u(T)},[]),g=w.useCallback(E=>{const T=TD(c.current,E);c.current=T,u(T)},[]),y=w.useCallback(E=>{const T=ND(c.current,E);c.current=T,u(T)},[]),p=w.useCallback((E,T)=>{const N=_D(c.current,E,T);c.current=N,u(N)},[]),v=w.useCallback(()=>{c.current=[],u([])},[]),S=w.useCallback(async()=>{if(o.current||!r)return;const E=c.current[0];if(E===void 0)return;const T=E.id,N=E.text;o.current=!0,t(N).then(()=>{const _=c.current.filter(M=>M.id!==T);c.current=_,u(_)}).catch(()=>{}).finally(()=>{o.current=!1})},[t,r]);return{entries:a,enqueue:m,moveItemUp:h,moveItemDown:g,removeItem:y,editItem:p,clear:v,flush:S}}function zD(){return b.jsx(cD,{children:b.jsx(jD,{})})}function jD(){const{sessions:t,loading:r}=dD(),{approvals:a,pendingSessionIds:u}=pD(),[o,f]=w.useState("sessions"),[c,m]=w.useState(null),[h,g]=w.useState(!1),[y,p]=w.useState(!1),v=t.find(le=>le.id===c),{items:S,totals:E,status:T,turnActive:N,liveTurns:_}=SD(c),{containerRef:M,scrollToBottom:L,isPinned:P,showScrollButton:W}=ED();w.useEffect(()=>{P&&L()},[S.length,P,L]);const D=le=>{f(le),p(!1)},F=le=>{m(le),p(!1)},q=N,[ie,H]=w.useState("sonnet"),ne=w.useCallback(async()=>{try{const le=await it("/api/sessions",{method:"POST"});m(le.session.id)}catch{}},[]),$=w.useRef(null),ve=w.useCallback(async le=>{if(!c)throw new Error("no session");const de=new AbortController;$.current=de,await it(`/api/sessions/${c}/prompt`,{method:"POST",body:JSON.stringify({text:le}),signal:de.signal})},[c]),se=AD({submit:ve,isLive:(v==null?void 0:v.mode)==="live"}),te=w.useRef(0);w.useEffect(()=>{var le;(le=$.current)==null||le.abort(),$.current=null,se.clear(),te.current=0},[c]),w.useEffect(()=>{_>te.current&&se.flush(),te.current=_},[_,se.flush]);const X=b.jsx(wC,{sessions:t,pendingSessionIds:u,selectedSessionId:c,onSelectSession:F,activeNav:o,onNavChange:D,collapsed:h,onToggleCollapse:()=>g(le=>!le)});return b.jsxs("div",{className:"flex h-screen overflow-hidden",children:[b.jsx(AN,{onNavigate:D}),b.jsx(jN,{onNavigate:D}),b.jsx("div",{className:"hidden md:block",children:X}),b.jsx(iD,{open:y,onClose:()=>p(!1),children:X}),b.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[b.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(uD,{className:"md:hidden",onClick:()=>p(!0)}),b.jsxs("h1",{className:"text-sm font-medium text-muted-foreground",children:[o==="sessions"&&"Sessions",o==="memory"&&"Memory",o==="schedules"&&"Schedules",o==="jobs"&&"Background Jobs",o==="settings"&&"Settings"]}),o==="sessions"&&v&&b.jsx(DD,{status:T})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&b.jsx("button",{onClick:()=>void ne(),title:"New Session",className:"flex items-center justify-center h-7 w-7 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",children:b.jsx(bE,{className:"h-4 w-4"})}),o==="sessions"&&v&&b.jsx(m1,{totals:E}),b.jsx("kbd",{className:"hidden rounded border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]}),b.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[W&&o==="sessions"&&b.jsxs("button",{onClick:L,className:"animate-fade-in fixed bottom-24 left-1/2 z-20 -translate-x-1/2 flex items-center gap-1.5 rounded-full bg-brand px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-lg hover:bg-brand/90 transition-colors",children:[b.jsx(Kb,{className:"size-3"}),"New messages"]}),b.jsxs("div",{ref:M,className:"relative flex flex-1 flex-col overflow-y-auto",children:[b.jsxs("div",{className:"flex-1",children:[o==="sessions"&&b.jsx(OD,{loading:r,sessions:t,selectedSession:v,items:S,totals:E,status:T,turnActive:N}),o==="memory"&&b.jsx(EO,{}),o==="schedules"&&b.jsx(DO,{}),o==="jobs"&&b.jsx(HO,{}),o==="settings"&&b.jsx(YO,{})]}),o==="sessions"&&v&&v.mode==="live"&&b.jsxs("div",{className:"shrink-0",children:[a.length>0&&b.jsx(aD,{approvals:a}),b.jsx(nD,{sessionId:v.id,sessionMode:v.mode,isBusy:q,queue:se,onModelSelect:H,currentModel:ie})]})]})]})]})]})}function OD({loading:t,sessions:r,selectedSession:a,items:u,totals:o,status:f,turnActive:c}){return t&&!r.length?b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&r.length===0?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",b.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):a&&u.length>0?b.jsx(pO,{sessionId:a.id,items:u,totals:o,turnActive:c}):a?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("div",{className:"flex flex-col items-center gap-2",children:f==="connecting"||f==="reconnecting"?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):a.mode==="live"?b.jsx("span",{className:"text-sm",children:"New session. Send a message to start."}):b.jsx("span",{className:"text-sm",children:"No transcript data"})})}):b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function DD({status:t}){return t==="open"?b.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?b.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?b.jsx("span",{className:"size-2 rounded-full bg-muted-foreground",title:"Session ended"}):null}const RS=document.getElementById("root");if(!RS)throw new Error("Root element #root not found");Hk.createRoot(RS).render(b.jsx(w.StrictMode,{children:b.jsx(zD,{})}));export{Jm as _,z3 as a,X3 as b,Rb as c,V3 as f,F3 as h,Rm as s,R3 as w};