claude-traces 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +31 -0
- package/dist/public/assets/index-B8ojhYRW.js +122 -0
- package/dist/public/assets/index-BgsxXSaC.css +1 -0
- package/dist/public/index.html +13 -0
- package/dist/server.js +4 -0
- package/package.json +46 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
function B1(n,a){for(var r=0;r<a.length;r++){const u=a[r];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(u,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function Mu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tc={exports:{}},_r={};/**
|
|
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 xp;function H1(){if(xp)return _r;xp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return _r.Fragment=a,_r.jsx=r,_r.jsxs=r,_r}var vp;function q1(){return vp||(vp=1,tc.exports=H1()),tc.exports}var E=q1(),nc={exports:{}},Se={};/**
|
|
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 Sp;function G1(){if(Sp)return Se;Sp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=S&&z[S]||z["@@iterator"],typeof z=="function"?z:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,R={};function M(z,Y,k){this.props=z,this.context=Y,this.refs=R,this.updater=k||A}M.prototype.isReactComponent={},M.prototype.setState=function(z,Y){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,Y,"setState")},M.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function H(){}H.prototype=M.prototype;function L(z,Y,k){this.props=z,this.context=Y,this.refs=R,this.updater=k||A}var ee=L.prototype=new H;ee.constructor=L,N(ee,M.prototype),ee.isPureReactComponent=!0;var Z=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ue(z,Y,k){var le=k.ref;return{$$typeof:n,type:z,key:Y,ref:le!==void 0?le:null,props:k}}function U(z,Y){return ue(z.type,Y,z.props)}function ie(z){return typeof z=="object"&&z!==null&&z.$$typeof===n}function re(z){var Y={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(k){return Y[k]})}var ye=/\/+/g;function K(z,Y){return typeof z=="object"&&z!==null&&z.key!=null?re(""+z.key):Y.toString(36)}function $(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(D,D):(z.status="pending",z.then(function(Y){z.status==="pending"&&(z.status="fulfilled",z.value=Y)},function(Y){z.status==="pending"&&(z.status="rejected",z.reason=Y)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function T(z,Y,k,le,he){var de=typeof z;(de==="undefined"||de==="boolean")&&(z=null);var me=!1;if(z===null)me=!0;else switch(de){case"bigint":case"string":case"number":me=!0;break;case"object":switch(z.$$typeof){case n:case a:me=!0;break;case b:return me=z._init,T(me(z._payload),Y,k,le,he)}}if(me)return he=he(z),me=le===""?"."+K(z,0):le,Z(he)?(k="",me!=null&&(k=me.replace(ye,"$&/")+"/"),T(he,Y,k,"",function(ht){return ht})):he!=null&&(ie(he)&&(he=U(he,k+(he.key==null||z&&z.key===he.key?"":(""+he.key).replace(ye,"$&/")+"/")+me)),Y.push(he)),1;me=0;var Xe=le===""?".":le+":";if(Z(z))for(var Re=0;Re<z.length;Re++)le=z[Re],de=Xe+K(le,Re),me+=T(le,Y,k,de,he);else if(Re=x(z),typeof Re=="function")for(z=Re.call(z),Re=0;!(le=z.next()).done;)le=le.value,de=Xe+K(le,Re++),me+=T(le,Y,k,de,he);else if(de==="object"){if(typeof z.then=="function")return T($(z),Y,k,le,he);throw Y=String(z),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return me}function X(z,Y,k){if(z==null)return z;var le=[],he=0;return T(z,le,"","",function(de){return Y.call(k,de,he++)}),le}function Q(z){if(z._status===-1){var Y=z._result;Y=Y(),Y.then(function(k){(z._status===0||z._status===-1)&&(z._status=1,z._result=k)},function(k){(z._status===0||z._status===-1)&&(z._status=2,z._result=k)}),z._status===-1&&(z._status=0,z._result=Y)}if(z._status===1)return z._result.default;throw z._result}var ve=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},C={map:X,forEach:function(z,Y,k){X(z,function(){Y.apply(this,arguments)},k)},count:function(z){var Y=0;return X(z,function(){Y++}),Y},toArray:function(z){return X(z,function(Y){return Y})||[]},only:function(z){if(!ie(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Se.Activity=g,Se.Children=C,Se.Component=M,Se.Fragment=r,Se.Profiler=s,Se.PureComponent=L,Se.StrictMode=u,Se.Suspense=p,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Se.__COMPILER_RUNTIME={__proto__:null,c:function(z){return P.H.useMemoCache(z)}},Se.cache=function(z){return function(){return z.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(z,Y,k){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var le=N({},z.props),he=z.key;if(Y!=null)for(de in Y.key!==void 0&&(he=""+Y.key),Y)!W.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(le[de]=Y[de]);var de=arguments.length-2;if(de===1)le.children=k;else if(1<de){for(var me=Array(de),Xe=0;Xe<de;Xe++)me[Xe]=arguments[Xe+2];le.children=me}return ue(z.type,he,le)},Se.createContext=function(z){return z={$$typeof:f,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:c,_context:z},z},Se.createElement=function(z,Y,k){var le,he={},de=null;if(Y!=null)for(le in Y.key!==void 0&&(de=""+Y.key),Y)W.call(Y,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(he[le]=Y[le]);var me=arguments.length-2;if(me===1)he.children=k;else if(1<me){for(var Xe=Array(me),Re=0;Re<me;Re++)Xe[Re]=arguments[Re+2];he.children=Xe}if(z&&z.defaultProps)for(le in me=z.defaultProps,me)he[le]===void 0&&(he[le]=me[le]);return ue(z,de,he)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(z){return{$$typeof:h,render:z}},Se.isValidElement=ie,Se.lazy=function(z){return{$$typeof:b,_payload:{_status:-1,_result:z},_init:Q}},Se.memo=function(z,Y){return{$$typeof:m,type:z,compare:Y===void 0?null:Y}},Se.startTransition=function(z){var Y=P.T,k={};P.T=k;try{var le=z(),he=P.S;he!==null&&he(k,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(D,ve)}catch(de){ve(de)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),P.T=Y}},Se.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Se.use=function(z){return P.H.use(z)},Se.useActionState=function(z,Y,k){return P.H.useActionState(z,Y,k)},Se.useCallback=function(z,Y){return P.H.useCallback(z,Y)},Se.useContext=function(z){return P.H.useContext(z)},Se.useDebugValue=function(){},Se.useDeferredValue=function(z,Y){return P.H.useDeferredValue(z,Y)},Se.useEffect=function(z,Y){return P.H.useEffect(z,Y)},Se.useEffectEvent=function(z){return P.H.useEffectEvent(z)},Se.useId=function(){return P.H.useId()},Se.useImperativeHandle=function(z,Y,k){return P.H.useImperativeHandle(z,Y,k)},Se.useInsertionEffect=function(z,Y){return P.H.useInsertionEffect(z,Y)},Se.useLayoutEffect=function(z,Y){return P.H.useLayoutEffect(z,Y)},Se.useMemo=function(z,Y){return P.H.useMemo(z,Y)},Se.useOptimistic=function(z,Y){return P.H.useOptimistic(z,Y)},Se.useReducer=function(z,Y,k){return P.H.useReducer(z,Y,k)},Se.useRef=function(z){return P.H.useRef(z)},Se.useState=function(z){return P.H.useState(z)},Se.useSyncExternalStore=function(z,Y,k){return P.H.useSyncExternalStore(z,Y,k)},Se.useTransition=function(){return P.H.useTransition()},Se.version="19.2.4",Se}var kp;function Ic(){return kp||(kp=1,nc.exports=G1()),nc.exports}var ne=Ic();const et=Mu(ne),Lg=B1({__proto__:null,default:et},[ne]);var lc={exports:{}},Mr={},ic={exports:{}},rc={};/**
|
|
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 Cp;function Y1(){return Cp||(Cp=1,(function(n){function a(T,X){var Q=T.length;T.push(X);e:for(;0<Q;){var ve=Q-1>>>1,C=T[ve];if(0<s(C,X))T[ve]=X,T[Q]=C,Q=ve;else break e}}function r(T){return T.length===0?null:T[0]}function u(T){if(T.length===0)return null;var X=T[0],Q=T.pop();if(Q!==X){T[0]=Q;e:for(var ve=0,C=T.length,z=C>>>1;ve<z;){var Y=2*(ve+1)-1,k=T[Y],le=Y+1,he=T[le];if(0>s(k,Q))le<C&&0>s(he,k)?(T[ve]=he,T[le]=Q,ve=le):(T[ve]=k,T[Y]=Q,ve=Y);else if(le<C&&0>s(he,Q))T[ve]=he,T[le]=Q,ve=le;else break e}}return X}function s(T,X){var Q=T.sortIndex-X.sortIndex;return Q!==0?Q:T.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],b=1,g=null,S=3,x=!1,A=!1,N=!1,R=!1,M=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ee(T){for(var X=r(m);X!==null;){if(X.callback===null)u(m);else if(X.startTime<=T)u(m),X.sortIndex=X.expirationTime,a(p,X);else break;X=r(m)}}function Z(T){if(N=!1,ee(T),!A)if(r(p)!==null)A=!0,D||(D=!0,re());else{var X=r(m);X!==null&&$(Z,X.startTime-T)}}var D=!1,P=-1,W=5,ue=-1;function U(){return R?!0:!(n.unstable_now()-ue<W)}function ie(){if(R=!1,D){var T=n.unstable_now();ue=T;var X=!0;try{e:{A=!1,N&&(N=!1,H(P),P=-1),x=!0;var Q=S;try{t:{for(ee(T),g=r(p);g!==null&&!(g.expirationTime>T&&U());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,S=g.priorityLevel;var C=ve(g.expirationTime<=T);if(T=n.unstable_now(),typeof C=="function"){g.callback=C,ee(T),X=!0;break t}g===r(p)&&u(p),ee(T)}else u(p);g=r(p)}if(g!==null)X=!0;else{var z=r(m);z!==null&&$(Z,z.startTime-T),X=!1}}break e}finally{g=null,S=Q,x=!1}X=void 0}}finally{X?re():D=!1}}}var re;if(typeof L=="function")re=function(){L(ie)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,K=ye.port2;ye.port1.onmessage=ie,re=function(){K.postMessage(null)}}else re=function(){M(ie,0)};function $(T,X){P=M(function(){T(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(T){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Q=S;S=X;try{return T()}finally{S=Q}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(T,X){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Q=S;S=T;try{return X()}finally{S=Q}},n.unstable_scheduleCallback=function(T,X,Q){var ve=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ve+Q:ve):Q=ve,T){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=Q+C,T={id:b++,callback:X,priorityLevel:T,startTime:Q,expirationTime:C,sortIndex:-1},Q>ve?(T.sortIndex=Q,a(m,T),r(p)===null&&T===r(m)&&(N?(H(P),P=-1):N=!0,$(Z,Q-ve))):(T.sortIndex=C,a(p,T),A||x||(A=!0,D||(D=!0,re()))),T},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(T){var X=S;return function(){var Q=S;S=X;try{return T.apply(this,arguments)}finally{S=Q}}}})(rc)),rc}var Ep;function V1(){return Ep||(Ep=1,ic.exports=Y1()),ic.exports}var ac={exports:{}},xt={};/**
|
|
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 Tp;function X1(){if(Tp)return xt;Tp=1;var n=Ic();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:b}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,xt.createPortal=function(p,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,b)},xt.flushSync=function(p){var m=f.T,b=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=b,u.d.f()}},xt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},xt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},xt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,g=h(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:x}):b==="script"&&u.d.X(p,{crossOrigin:g,integrity:S,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=h(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},xt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,g=h(b,m.crossOrigin);u.d.L(p,b,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xt.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=h(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},xt.requestFormReset=function(p){u.d.r(p)},xt.unstable_batchedUpdates=function(p,m){return p(m)},xt.useFormState=function(p,m,b){return f.H.useFormState(p,m,b)},xt.useFormStatus=function(){return f.H.useHostTransitionStatus()},xt.version="19.2.4",xt}var wp;function Ug(){if(wp)return ac.exports;wp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ac.exports=X1(),ac.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 Ap;function Q1(){if(Ap)return Mr;Ap=1;var n=V1(),a=Ic(),r=Ug();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var d=o.alternate;if(d===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===d.child){for(d=o.child;d;){if(d===l)return p(o),e;if(d===i)return p(o),t;d=d.sibling}throw Error(u(188))}if(l.return!==i.return)l=o,i=d;else{for(var y=!1,v=o.child;v;){if(v===l){y=!0,l=o,i=d;break}if(v===i){y=!0,i=o,l=d;break}v=v.sibling}if(!y){for(v=d.child;v;){if(v===l){y=!0,l=d,i=o;break}if(v===i){y=!0,i=d,l=o;break}v=v.sibling}if(!y)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:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case M:return"Profiler";case R:return"StrictMode";case Z:return"Suspense";case D:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case L:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return K(e(t))}catch{}}return null}var $=Array.isArray,T=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ve=[],C=-1;function z(e){return{current:e}}function Y(e){0>C||(e.current=ve[C],ve[C]=null,C--)}function k(e,t){C++,ve[C]=e.current,e.current=t}var le=z(null),he=z(null),de=z(null),me=z(null);function Xe(e,t){switch(k(de,t),k(he,e),k(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ym(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ym(t),e=Vm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(le),k(le,e)}function Re(){Y(le),Y(he),Y(de)}function ht(e){e.memoizedState!==null&&k(me,e);var t=le.current,l=Vm(t,e.type);t!==l&&(k(he,e),k(le,l))}function Lt(e){he.current===e&&(Y(le),Y(he)),me.current===e&&(Y(me),Tr._currentValue=Q)}var fn,Kr;function xn(e){if(fn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);fn=t&&t[1]||"",Kr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+fn+e+Kr}var Hl=!1;function ql(e,t){if(!e||Hl)return"";Hl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var q=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){q=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){q=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&q&&typeof G.stack=="string")return[G.stack,q.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),y=d[0],v=d[1];if(y&&v){var w=y.split(`
|
|
44
|
+
`),B=v.split(`
|
|
45
|
+
`);for(o=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(i===w.length||o===B.length)for(i=w.length-1,o=B.length-1;1<=i&&0<=o&&w[i]!==B[o];)o--;for(;1<=i&&0<=o;i--,o--)if(w[i]!==B[o]){if(i!==1||o!==1)do if(i--,o--,0>o||w[i]!==B[o]){var V=`
|
|
46
|
+
`+w[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=o);break}}}finally{Hl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?xn(l):""}function Jr(e,t){switch(e.tag){case 26:case 27:case 5:return xn(e.type);case 16:return xn("Lazy");case 13:return e.child!==t&&t!==null?xn("Suspense Fallback"):xn("Suspense");case 19:return xn("SuspenseList");case 0:case 15:return ql(e.type,!1);case 11:return ql(e.type.render,!1);case 1:return ql(e.type,!0);case 31:return xn("Activity");default:return""}}function $r(e){try{var t="",l=null;do t+=Jr(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var Gl=Object.prototype.hasOwnProperty,Yl=n.unstable_scheduleCallback,Ui=n.unstable_cancelCallback,Hu=n.unstable_shouldYield,qu=n.unstable_requestPaint,kt=n.unstable_now,Gu=n.unstable_getCurrentPriorityLevel,I=n.unstable_ImmediatePriority,ae=n.unstable_UserBlockingPriority,xe=n.unstable_NormalPriority,we=n.unstable_LowPriority,Be=n.unstable_IdlePriority,Ut=n.log,vn=n.unstable_setDisableYieldValue,Ct=null,ot=null;function wt(e){if(typeof Ut=="function"&&vn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Ct,e)}catch{}}var Qe=Math.clz32?Math.clz32:Eb,Yn=Math.log,rn=Math.LN2;function Eb(e){return e>>>=0,e===0?32:31-(Yn(e)/rn|0)|0}var Wr=256,Pr=262144,ea=4194304;function gl(e){var t=e&42;if(t!==0)return t;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&261888;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 ta(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~d,i!==0?o=gl(i):(y&=v,y!==0?o=gl(y):l||(l=v&~e,l!==0&&(o=gl(l))))):(v=i&~d,v!==0?o=gl(v):y!==0?o=gl(y):l||(l=i&~e,l!==0&&(o=gl(l)))),o===0?0:t!==0&&t!==o&&(t&d)===0&&(d=o&-o,l=t&-t,d>=l||d===32&&(l&4194048)!==0)?t:o}function Bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Tb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Cf(){var e=ea;return ea<<=1,(ea&62914560)===0&&(ea=4194304),e}function Yu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Hi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wb(e,t,l,i,o,d){var y=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 v=e.entanglements,w=e.expirationTimes,B=e.hiddenUpdates;for(l=y&~l;0<l;){var V=31-Qe(l),J=1<<V;v[V]=0,w[V]=-1;var q=B[V];if(q!==null)for(B[V]=null,V=0;V<q.length;V++){var G=q[V];G!==null&&(G.lane&=-536870913)}l&=~J}i!==0&&Ef(e,i,0),d!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Ef(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Qe(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Tf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Qe(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function wf(e,t){var l=t&-t;return l=(l&42)!==0?1:Vu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Vu(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 Xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Af(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function zf(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var Vn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Vn,At="__reactProps$"+Vn,Vl="__reactContainer$"+Vn,Qu="__reactEvents$"+Vn,Ab="__reactListeners$"+Vn,zb="__reactHandles$"+Vn,_f="__reactResources$"+Vn,qi="__reactMarker$"+Vn;function Zu(e){delete e[mt],delete e[At],delete e[Qu],delete e[Ab],delete e[zb]}function Xl(e){var t=e[mt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Vl]||l[mt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Jm(e);e!==null;){if(l=e[mt])return l;e=Jm(e)}return t}e=l,l=e.parentNode}return null}function Ql(e){if(e=e[mt]||e[Vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Gi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Zl(e){var t=e[_f];return t||(t=e[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[qi]=!0}var Mf=new Set,Of={};function yl(e,t){Il(e,t),Il(e+"Capture",t)}function Il(e,t){for(Of[e]=t,e=0;e<t.length;e++)Mf.add(t[e])}var _b=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]*$"),Nf={},Df={};function Mb(e){return Gl.call(Df,e)?!0:Gl.call(Nf,e)?!1:_b.test(e)?Df[e]=!0:(Nf[e]=!0,!1)}function na(e,t,l){if(Mb(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function la(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Sn(e,t,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(t,l,""+i)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ob(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Iu(e){if(!e._valueTracker){var t=Rf(e)?"checked":"value";e._valueTracker=Ob(e,t,""+e[t])}}function jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Rf(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function ia(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}}var Nb=/[\n"\\]/g;function Ft(e){return e.replace(Nb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,l,i,o,d,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+It(t)):e.value!==""+It(t)&&(e.value=""+It(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Ku(e,y,It(t)):l!=null?Ku(e,y,It(l)):i!=null&&e.removeAttribute("value"),o==null&&d!=null&&(e.defaultChecked=!!d),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+It(v):e.removeAttribute("name")}function Lf(e,t,l,i,o,d,y,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Iu(e);return}l=l!=null?""+It(l):"",t=t!=null?""+It(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Iu(e)}function Ku(e,t,l){t==="number"&&ia(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Fl(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+It(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Uf(e,t,l){if(t!=null&&(t=""+It(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+It(l):""}function Bf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if($(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=It(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Iu(e)}function Kl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Db=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 Hf(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Db.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qf(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&Hf(e,o,i)}else for(var d in t)t.hasOwnProperty(d)&&Hf(e,d,t[d])}function Ju(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 Rb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jb=/^[\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 ra(e){return jb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kn(){}var $u=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,$l=null;function Gf(e){var t=Ql(e);if(t&&(e=t.stateNode)){var l=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ft(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[At]||null;if(!o)throw Error(u(90));Fu(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&jf(i)}break e;case"textarea":Uf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Fl(e,!!l.multiple,t,!1)}}}var Pu=!1;function Yf(e,t,l){if(Pu)return e(t,l);Pu=!0;try{var i=e(t);return i}finally{if(Pu=!1,(Jl!==null||$l!==null)&&(Za(),Jl&&(t=Jl,e=$l,$l=Jl=null,Gf(t),e)))for(t=0;t<e.length;t++)Gf(e[t])}}function Yi(e,t){var l=e.stateNode;if(l===null)return null;var i=l[At]||null;if(i===null)return null;l=i[t];e:switch(t){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,t,typeof l));return l}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=!1;if(Cn)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){eo=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{eo=!1}var Xn=null,to=null,aa=null;function Vf(){if(aa)return aa;var e,t=to,l=t.length,i,o="value"in Xn?Xn.value:Xn.textContent,d=o.length;for(e=0;e<l&&t[e]===o[e];e++);var y=l-e;for(i=1;i<=y&&t[l-i]===o[d-i];i++);return aa=o.slice(e,1<i?1-i:void 0)}function ua(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oa(){return!0}function Xf(){return!1}function zt(e){function t(l,i,o,d,y){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?oa:Xf,this.isPropagationStopped=Xf,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=oa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=oa)},persist:function(){},isPersistent:oa}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sa=zt(bl),Xi=g({},bl,{view:0,detail:0}),Lb=zt(Xi),no,lo,Qi,ca=g({},Xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,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!==Qi&&(Qi&&e.type==="mousemove"?(no=e.screenX-Qi.screenX,lo=e.screenY-Qi.screenY):lo=no=0,Qi=e),no)},movementY:function(e){return"movementY"in e?e.movementY:lo}}),Qf=zt(ca),Ub=g({},ca,{dataTransfer:0}),Bb=zt(Ub),Hb=g({},Xi,{relatedTarget:0}),io=zt(Hb),qb=g({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Gb=zt(qb),Yb=g({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vb=zt(Yb),Xb=g({},bl,{data:0}),Zf=zt(Xb),Qb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zb={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"},Ib={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ib[e])?!!t[e]:!1}function ro(){return Fb}var Kb=g({},Xi,{key:function(e){if(e.key){var t=Qb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(e){return e.type==="keypress"?ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jb=zt(Kb),$b=g({},ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=zt($b),Wb=g({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),Pb=zt(Wb),e0=g({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),t0=zt(e0),n0=g({},ca,{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}),l0=zt(n0),i0=g({},bl,{newState:0,oldState:0}),r0=zt(i0),a0=[9,13,27,32],ao=Cn&&"CompositionEvent"in window,Zi=null;Cn&&"documentMode"in document&&(Zi=document.documentMode);var u0=Cn&&"TextEvent"in window&&!Zi,Ff=Cn&&(!ao||Zi&&8<Zi&&11>=Zi),Kf=" ",Jf=!1;function $f(e,t){switch(e){case"keyup":return a0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function o0(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:(Jf=!0,Kf);case"textInput":return e=t.data,e===Kf&&Jf?null:e;default:return null}}function s0(e,t){if(Wl)return e==="compositionend"||!ao&&$f(e,t)?(e=Vf(),aa=to=Xn=null,Wl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ff&&t.locale!=="ko"?null:t.data;default:return null}}var c0={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 Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c0[e.type]:t==="textarea"}function ed(e,t,l,i){Jl?$l?$l.push(i):$l=[i]:Jl=i,t=Pa(t,"onChange"),0<t.length&&(l=new sa("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Ii=null,Fi=null;function f0(e){Lm(e,0)}function fa(e){var t=Gi(e);if(jf(t))return e}function td(e,t){if(e==="change")return t}var nd=!1;if(Cn){var uo;if(Cn){var oo="oninput"in document;if(!oo){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),oo=typeof ld.oninput=="function"}uo=oo}else uo=!1;nd=uo&&(!document.documentMode||9<document.documentMode)}function id(){Ii&&(Ii.detachEvent("onpropertychange",rd),Fi=Ii=null)}function rd(e){if(e.propertyName==="value"&&fa(Fi)){var t=[];ed(t,Fi,e,Wu(e)),Yf(f0,t)}}function d0(e,t,l){e==="focusin"?(id(),Ii=t,Fi=l,Ii.attachEvent("onpropertychange",rd)):e==="focusout"&&id()}function h0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fa(Fi)}function m0(e,t){if(e==="click")return fa(t)}function p0(e,t){if(e==="input"||e==="change")return fa(t)}function g0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:g0;function Ki(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!Gl.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function ad(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ud(e,t){var l=ad(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ad(l)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ia(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ia(e.document)}return t}function so(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var y0=Cn&&"documentMode"in document&&11>=document.documentMode,Pl=null,co=null,Ji=null,fo=!1;function cd(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;fo||Pl==null||Pl!==ia(i)||(i=Pl,"selectionStart"in i&&so(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}),Ji&&Ki(Ji,i)||(Ji=i,i=Pa(co,"onSelect"),0<i.length&&(t=new sa("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=Pl)))}function xl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ei={animationend:xl("Animation","AnimationEnd"),animationiteration:xl("Animation","AnimationIteration"),animationstart:xl("Animation","AnimationStart"),transitionrun:xl("Transition","TransitionRun"),transitionstart:xl("Transition","TransitionStart"),transitioncancel:xl("Transition","TransitionCancel"),transitionend:xl("Transition","TransitionEnd")},ho={},fd={};Cn&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),"TransitionEvent"in window||delete ei.transitionend.transition);function vl(e){if(ho[e])return ho[e];if(!ei[e])return e;var t=ei[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in fd)return ho[e]=t[l];return e}var dd=vl("animationend"),hd=vl("animationiteration"),md=vl("animationstart"),b0=vl("transitionrun"),x0=vl("transitionstart"),v0=vl("transitioncancel"),pd=vl("transitionend"),gd=new Map,mo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");mo.push("scrollEnd");function an(e,t){gd.set(e,t),yl(t,[e])}var da=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kt=[],ti=0,po=0;function ha(){for(var e=ti,t=po=ti=0;t<e;){var l=Kt[t];Kt[t++]=null;var i=Kt[t];Kt[t++]=null;var o=Kt[t];Kt[t++]=null;var d=Kt[t];if(Kt[t++]=null,i!==null&&o!==null){var y=i.pending;y===null?o.next=o:(o.next=y.next,y.next=o),i.pending=o}d!==0&&yd(l,o,d)}}function ma(e,t,l,i){Kt[ti++]=e,Kt[ti++]=t,Kt[ti++]=l,Kt[ti++]=i,po|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function go(e,t,l,i){return ma(e,t,l,i),pa(e)}function Sl(e,t){return ma(e,null,null,t),pa(e)}function yd(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!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||(o=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,o&&t!==null&&(o=31-Qe(l),e=d.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),d):null}function pa(e){if(50<br)throw br=0,Ts=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function S0(e,t,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=t,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 Ht(e,t,l,i){return new S0(e,t,l,i)}function yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var l=e.alternate;return l===null?(l=Ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function bd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,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,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ga(e,t,l,i,o,d){var y=0;if(i=e,typeof e=="function")yo(e)&&(y=1);else if(typeof e=="string")y=w1(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=Ht(31,l,t,o),e.elementType=ue,e.lanes=d,e;case N:return kl(l.children,o,d,t);case R:y=8,o|=24;break;case M:return e=Ht(12,l,t,o|2),e.elementType=M,e.lanes=d,e;case Z:return e=Ht(13,l,t,o),e.elementType=Z,e.lanes=d,e;case D:return e=Ht(19,l,t,o),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:y=10;break e;case H:y=9;break e;case ee:y=11;break e;case P:y=14;break e;case W:y=16,i=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Ht(y,l,t,o),t.elementType=e,t.type=i,t.lanes=d,t}function kl(e,t,l,i){return e=Ht(7,e,i,t),e.lanes=l,e}function bo(e,t,l){return e=Ht(6,e,null,t),e.lanes=l,e}function xd(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function xo(e,t,l){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vd=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var l=vd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:$r(t)},vd.set(e,t),t)}return{value:e,source:t,stack:$r(t)}}var li=[],ii=0,ya=null,$i=0,$t=[],Wt=0,Qn=null,dn=1,hn="";function Tn(e,t){li[ii++]=$i,li[ii++]=ya,ya=e,$i=t}function Sd(e,t,l){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,Qn=e;var i=dn;e=hn;var o=32-Qe(i)-1;i&=~(1<<o),l+=1;var d=32-Qe(t)+o;if(30<d){var y=o-o%5;d=(i&(1<<y)-1).toString(32),i>>=y,o-=y,dn=1<<32-Qe(t)+o|l<<o|i,hn=d+e}else dn=1<<d|l<<o|i,hn=e}function vo(e){e.return!==null&&(Tn(e,1),Sd(e,1,0))}function So(e){for(;e===ya;)ya=li[--ii],li[ii]=null,$i=li[--ii],li[ii]=null;for(;e===Qn;)Qn=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,dn=$t[--Wt],$t[Wt]=null}function kd(e,t){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,dn=t.id,hn=t.overflow,Qn=e}var pt=null,Ke=null,Ne=!1,Zn=null,Pt=!1,ko=Error(u(519));function In(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wi(Jt(t,e)),ko}function Cd(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[mt]=e,t[At]=i,l){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(l=0;l<vr.length;l++)ze(vr[l],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),Lf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),Bf(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||qm(t.textContent,l)?(i.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),i.onScroll!=null&&ze("scroll",t),i.onScrollEnd!=null&&ze("scrollend",t),i.onClick!=null&&(t.onclick=kn),t=!0):t=!1,t||In(e,!0)}function Ed(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:pt=pt.return}}function ri(e){if(e!==pt)return!1;if(!Ne)return Ed(e),Ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||qs(e.type,e.memoizedProps)),l=!l),l&&Ke&&In(e),Ed(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=Km(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=Km(e)}else t===27?(t=Ke,ul(e.type)?(e=Qs,Qs=null,Ke=e):Ke=t):Ke=pt?tn(e.stateNode.nextSibling):null;return!0}function Cl(){Ke=pt=null,Ne=!1}function Co(){var e=Zn;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Zn=null),e}function Wi(e){Zn===null?Zn=[e]:Zn.push(e)}var Eo=z(null),El=null,wn=null;function Fn(e,t,l){k(Eo,t._currentValue),t._currentValue=l}function An(e){e._currentValue=Eo.current,Y(Eo)}function To(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function wo(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var d=o.dependencies;if(d!==null){var y=o.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){d.lanes|=l,v=d.alternate,v!==null&&(v.lanes|=l),To(d.return,l,e),i||(y=null);break e}d=v.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=l,d=y.alternate,d!==null&&(d.lanes|=l),To(y,l,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function ai(e,t,l,i){e=null;for(var o=t,d=!1;o!==null;){if(!d){if((o.flags&524288)!==0)d=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var v=o.type;Bt(o.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(o===me.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Tr):e=[Tr])}o=o.return}e!==null&&wo(t,e,l,i),t.flags|=262144}function ba(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){El=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return Td(El,e)}function xa(e,t){return El===null&&Tl(e),Td(e,t)}function Td(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},wn===null){if(e===null)throw Error(u(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return l}var k0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},C0=n.unstable_scheduleCallback,E0=n.unstable_NormalPriority,lt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ao(){return{controller:new k0,data:new Map,refCount:0}}function Pi(e){e.refCount--,e.refCount===0&&C0(E0,function(){e.controller.abort()})}var er=null,zo=0,ui=0,oi=null;function T0(e,t){if(er===null){var l=er=[];zo=0,ui=Os(),oi={status:"pending",value:void 0,then:function(i){l.push(i)}}}return zo++,t.then(wd,wd),t}function wd(){if(--zo===0&&er!==null){oi!==null&&(oi.status="fulfilled");var e=er;er=null,ui=0,oi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function w0(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Ad=T.S;T.S=function(e,t){cm=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&T0(e,t),Ad!==null&&Ad(e,t)};var wl=z(null);function _o(){var e=wl.current;return e!==null?e:Ze.pooledCache}function va(e,t){t===null?k(wl,wl.current):k(wl,t.pool)}function zd(){var e=_o();return e===null?null:{parent:lt._currentValue,pool:e}}var si=Error(u(460)),Mo=Error(u(474)),Sa=Error(u(542)),ka={then:function(){}};function _d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Md(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kn,kn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e;default:if(typeof t.status=="string")t.then(kn,kn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e}throw zl=t,si}}function Al(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(zl=l,si):l}}var zl=null;function Od(){if(zl===null)throw Error(u(459));var e=zl;return zl=null,e}function Nd(e){if(e===si||e===Sa)throw Error(u(483))}var ci=null,tr=0;function Ca(e){var t=tr;return tr+=1,ci===null&&(ci=[]),Md(ci,e,t)}function nr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ea(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Dd(e){function t(O,_){if(e){var j=O.deletions;j===null?(O.deletions=[_],O.flags|=16):j.push(_)}}function l(O,_){if(!e)return null;for(;_!==null;)t(O,_),_=_.sibling;return null}function i(O){for(var _=new Map;O!==null;)O.key!==null?_.set(O.key,O):_.set(O.index,O),O=O.sibling;return _}function o(O,_){return O=En(O,_),O.index=0,O.sibling=null,O}function d(O,_,j){return O.index=j,e?(j=O.alternate,j!==null?(j=j.index,j<_?(O.flags|=67108866,_):j):(O.flags|=67108866,_)):(O.flags|=1048576,_)}function y(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,_,j,F){return _===null||_.tag!==6?(_=bo(j,O.mode,F),_.return=O,_):(_=o(_,j),_.return=O,_)}function w(O,_,j,F){var pe=j.type;return pe===N?V(O,_,j.props.children,F,j.key):_!==null&&(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===W&&Al(pe)===_.type)?(_=o(_,j.props),nr(_,j),_.return=O,_):(_=ga(j.type,j.key,j.props,null,O.mode,F),nr(_,j),_.return=O,_)}function B(O,_,j,F){return _===null||_.tag!==4||_.stateNode.containerInfo!==j.containerInfo||_.stateNode.implementation!==j.implementation?(_=xo(j,O.mode,F),_.return=O,_):(_=o(_,j.children||[]),_.return=O,_)}function V(O,_,j,F,pe){return _===null||_.tag!==7?(_=kl(j,O.mode,F,pe),_.return=O,_):(_=o(_,j),_.return=O,_)}function J(O,_,j){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=bo(""+_,O.mode,j),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case x:return j=ga(_.type,_.key,_.props,null,O.mode,j),nr(j,_),j.return=O,j;case A:return _=xo(_,O.mode,j),_.return=O,_;case W:return _=Al(_),J(O,_,j)}if($(_)||re(_))return _=kl(_,O.mode,j,null),_.return=O,_;if(typeof _.then=="function")return J(O,Ca(_),j);if(_.$$typeof===L)return J(O,xa(O,_),j);Ea(O,_)}return null}function q(O,_,j,F){var pe=_!==null?_.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return pe!==null?null:v(O,_,""+j,F);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case x:return j.key===pe?w(O,_,j,F):null;case A:return j.key===pe?B(O,_,j,F):null;case W:return j=Al(j),q(O,_,j,F)}if($(j)||re(j))return pe!==null?null:V(O,_,j,F,null);if(typeof j.then=="function")return q(O,_,Ca(j),F);if(j.$$typeof===L)return q(O,_,xa(O,j),F);Ea(O,j)}return null}function G(O,_,j,F,pe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(j)||null,v(_,O,""+F,pe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case x:return O=O.get(F.key===null?j:F.key)||null,w(_,O,F,pe);case A:return O=O.get(F.key===null?j:F.key)||null,B(_,O,F,pe);case W:return F=Al(F),G(O,_,j,F,pe)}if($(F)||re(F))return O=O.get(j)||null,V(_,O,F,pe,null);if(typeof F.then=="function")return G(O,_,j,Ca(F),pe);if(F.$$typeof===L)return G(O,_,j,xa(_,F),pe);Ea(_,F)}return null}function oe(O,_,j,F){for(var pe=null,je=null,fe=_,Ce=_=0,Oe=null;fe!==null&&Ce<j.length;Ce++){fe.index>Ce?(Oe=fe,fe=null):Oe=fe.sibling;var Le=q(O,fe,j[Ce],F);if(Le===null){fe===null&&(fe=Oe);break}e&&fe&&Le.alternate===null&&t(O,fe),_=d(Le,_,Ce),je===null?pe=Le:je.sibling=Le,je=Le,fe=Oe}if(Ce===j.length)return l(O,fe),Ne&&Tn(O,Ce),pe;if(fe===null){for(;Ce<j.length;Ce++)fe=J(O,j[Ce],F),fe!==null&&(_=d(fe,_,Ce),je===null?pe=fe:je.sibling=fe,je=fe);return Ne&&Tn(O,Ce),pe}for(fe=i(fe);Ce<j.length;Ce++)Oe=G(fe,O,Ce,j[Ce],F),Oe!==null&&(e&&Oe.alternate!==null&&fe.delete(Oe.key===null?Ce:Oe.key),_=d(Oe,_,Ce),je===null?pe=Oe:je.sibling=Oe,je=Oe);return e&&fe.forEach(function(dl){return t(O,dl)}),Ne&&Tn(O,Ce),pe}function be(O,_,j,F){if(j==null)throw Error(u(151));for(var pe=null,je=null,fe=_,Ce=_=0,Oe=null,Le=j.next();fe!==null&&!Le.done;Ce++,Le=j.next()){fe.index>Ce?(Oe=fe,fe=null):Oe=fe.sibling;var dl=q(O,fe,Le.value,F);if(dl===null){fe===null&&(fe=Oe);break}e&&fe&&dl.alternate===null&&t(O,fe),_=d(dl,_,Ce),je===null?pe=dl:je.sibling=dl,je=dl,fe=Oe}if(Le.done)return l(O,fe),Ne&&Tn(O,Ce),pe;if(fe===null){for(;!Le.done;Ce++,Le=j.next())Le=J(O,Le.value,F),Le!==null&&(_=d(Le,_,Ce),je===null?pe=Le:je.sibling=Le,je=Le);return Ne&&Tn(O,Ce),pe}for(fe=i(fe);!Le.done;Ce++,Le=j.next())Le=G(fe,O,Ce,Le.value,F),Le!==null&&(e&&Le.alternate!==null&&fe.delete(Le.key===null?Ce:Le.key),_=d(Le,_,Ce),je===null?pe=Le:je.sibling=Le,je=Le);return e&&fe.forEach(function(U1){return t(O,U1)}),Ne&&Tn(O,Ce),pe}function Ve(O,_,j,F){if(typeof j=="object"&&j!==null&&j.type===N&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case x:e:{for(var pe=j.key;_!==null;){if(_.key===pe){if(pe=j.type,pe===N){if(_.tag===7){l(O,_.sibling),F=o(_,j.props.children),F.return=O,O=F;break e}}else if(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===W&&Al(pe)===_.type){l(O,_.sibling),F=o(_,j.props),nr(F,j),F.return=O,O=F;break e}l(O,_);break}else t(O,_);_=_.sibling}j.type===N?(F=kl(j.props.children,O.mode,F,j.key),F.return=O,O=F):(F=ga(j.type,j.key,j.props,null,O.mode,F),nr(F,j),F.return=O,O=F)}return y(O);case A:e:{for(pe=j.key;_!==null;){if(_.key===pe)if(_.tag===4&&_.stateNode.containerInfo===j.containerInfo&&_.stateNode.implementation===j.implementation){l(O,_.sibling),F=o(_,j.children||[]),F.return=O,O=F;break e}else{l(O,_);break}else t(O,_);_=_.sibling}F=xo(j,O.mode,F),F.return=O,O=F}return y(O);case W:return j=Al(j),Ve(O,_,j,F)}if($(j))return oe(O,_,j,F);if(re(j)){if(pe=re(j),typeof pe!="function")throw Error(u(150));return j=pe.call(j),be(O,_,j,F)}if(typeof j.then=="function")return Ve(O,_,Ca(j),F);if(j.$$typeof===L)return Ve(O,_,xa(O,j),F);Ea(O,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,_!==null&&_.tag===6?(l(O,_.sibling),F=o(_,j),F.return=O,O=F):(l(O,_),F=bo(j,O.mode,F),F.return=O,O=F),y(O)):l(O,_)}return function(O,_,j,F){try{tr=0;var pe=Ve(O,_,j,F);return ci=null,pe}catch(fe){if(fe===si||fe===Sa)throw fe;var je=Ht(29,fe,null,O.mode);return je.lanes=F,je.return=O,je}finally{}}}var _l=Dd(!0),Rd=Dd(!1),Kn=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function No(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ue&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=pa(e),yd(e,null,l),t}return ma(e,i,t,l),pa(e)}function lr(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Tf(e,l)}}function Do(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?o=d=y:d=d.next=y,l=l.next}while(l!==null);d===null?o=d=t:d=d.next=t}else o=d=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ro=!1;function ir(){if(Ro){var e=oi;if(e!==null)throw e}}function rr(e,t,l,i){Ro=!1;var o=e.updateQueue;Kn=!1;var d=o.firstBaseUpdate,y=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,B=w.next;w.next=null,y===null?d=B:y.next=B,y=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==y&&(v===null?V.firstBaseUpdate=B:v.next=B,V.lastBaseUpdate=w))}if(d!==null){var J=o.baseState;y=0,V=B=w=null,v=d;do{var q=v.lane&-536870913,G=q!==v.lane;if(G?(Me&q)===q:(i&q)===q){q!==0&&q===ui&&(Ro=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var oe=e,be=v;q=t;var Ve=l;switch(be.tag){case 1:if(oe=be.payload,typeof oe=="function"){J=oe.call(Ve,J,q);break e}J=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=be.payload,q=typeof oe=="function"?oe.call(Ve,J,q):oe,q==null)break e;J=g({},J,q);break e;case 2:Kn=!0}}q=v.callback,q!==null&&(e.flags|=64,G&&(e.flags|=8192),G=o.callbacks,G===null?o.callbacks=[q]:G.push(q))}else G={lane:q,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(B=V=G,w=J):V=V.next=G,y|=q;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;G=v,v=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);V===null&&(w=J),o.baseState=w,o.firstBaseUpdate=B,o.lastBaseUpdate=V,d===null&&(o.shared.lanes=0),nl|=y,e.lanes=y,e.memoizedState=J}}function jd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ld(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)jd(l[e],t)}var fi=z(null),Ta=z(0);function Ud(e,t){e=Ln,k(Ta,e),k(fi,t),Ln=e|t.baseLanes}function jo(){k(Ta,Ln),k(fi,fi.current)}function Lo(){Ln=Ta.current,Y(fi),Y(Ta)}var qt=z(null),en=null;function Wn(e){var t=e.alternate;k(tt,tt.current&1),k(qt,e),en===null&&(t===null||fi.current!==null||t.memoizedState!==null)&&(en=e)}function Uo(e){k(tt,tt.current),k(qt,e),en===null&&(en=e)}function Bd(e){e.tag===22?(k(tt,tt.current),k(qt,e),en===null&&(en=e)):Pn()}function Pn(){k(tt,tt.current),k(qt,qt.current)}function Gt(e){Y(qt),en===e&&(en=null),Y(tt)}var tt=z(0);function wa(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Vs(l)||Xs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zn=0,ke=null,Ge=null,it=null,Aa=!1,di=!1,Ml=!1,za=0,ar=0,hi=null,A0=0;function We(){throw Error(u(321))}function Bo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function Ho(e,t,l,i,o,d){return zn=d,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Sh:es,Ml=!1,d=l(i,o),Ml=!1,di&&(d=qd(t,l,i,o)),Hd(e),d}function Hd(e){T.H=sr;var t=Ge!==null&&Ge.next!==null;if(zn=0,it=Ge=ke=null,Aa=!1,ar=0,hi=null,t)throw Error(u(300));e===null||rt||(e=e.dependencies,e!==null&&ba(e)&&(rt=!0))}function qd(e,t,l,i){ke=e;var o=0;do{if(di&&(hi=null),ar=0,di=!1,25<=o)throw Error(u(301));if(o+=1,it=Ge=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}T.H=kh,d=t(l,i)}while(di);return d}function z0(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?ur(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(ke.flags|=1024),t}function qo(){var e=za!==0;return za=0,e}function Go(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Yo(e){if(Aa){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Aa=!1}zn=0,it=Ge=ke=null,di=!1,ar=za=0,hi=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?ke.memoizedState=it=e:it=it.next=e,it}function nt(){if(Ge===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=it===null?ke.memoizedState:it.next;if(t!==null)it=t,Ge=e;else{if(e===null)throw ke.alternate===null?Error(u(467)):Error(u(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},it===null?ke.memoizedState=it=e:it=it.next=e}return it}function _a(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ur(e){var t=ar;return ar+=1,hi===null&&(hi=[]),e=Md(hi,e,t),t=ke,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Sh:es),e}function Ma(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ur(e);if(e.$$typeof===L)return gt(e)}throw Error(u(438,String(e)))}function Vo(e){var t=null,l=ke.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=ke.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=_a(),ke.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=U;return t.index++,l}function _n(e,t){return typeof t=="function"?t(e):t}function Oa(e){var t=nt();return Xo(t,Ge,e)}function Xo(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var o=e.baseQueue,d=i.pending;if(d!==null){if(o!==null){var y=o.next;o.next=d.next,d.next=y}t.baseQueue=o=d,i.pending=null}if(d=e.baseState,o===null)e.memoizedState=d;else{t=o.next;var v=y=null,w=null,B=t,V=!1;do{var J=B.lane&-536870913;if(J!==B.lane?(Me&J)===J:(zn&J)===J){var q=B.revertLane;if(q===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),J===ui&&(V=!0);else if((zn&q)===q){B=B.next,q===ui&&(V=!0);continue}else J={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(v=w=J,y=d):w=w.next=J,ke.lanes|=q,nl|=q;J=B.action,Ml&&l(d,J),d=B.hasEagerState?B.eagerState:l(d,J)}else q={lane:J,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},w===null?(v=w=q,y=d):w=w.next=q,ke.lanes|=J,nl|=J;B=B.next}while(B!==null&&B!==t);if(w===null?y=d:w.next=v,!Bt(d,e.memoizedState)&&(rt=!0,V&&(l=oi,l!==null)))throw l;e.memoizedState=d,e.baseState=y,e.baseQueue=w,i.lastRenderedState=d}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Qo(e){var t=nt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,d=t.memoizedState;if(o!==null){l.pending=null;var y=o=o.next;do d=e(d,y.action),y=y.next;while(y!==o);Bt(d,t.memoizedState)||(rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),l.lastRenderedState=d}return[d,i]}function Gd(e,t,l){var i=ke,o=nt(),d=Ne;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!Bt((Ge||o).memoizedState,l);if(y&&(o.memoizedState=l,rt=!0),o=o.queue,Fo(Xd.bind(null,i,o,e),[e]),o.getSnapshot!==t||y||it!==null&&it.memoizedState.tag&1){if(i.flags|=2048,mi(9,{destroy:void 0},Vd.bind(null,i,o,l,t),null),Ze===null)throw Error(u(349));d||(zn&127)!==0||Yd(i,t,l)}return l}function Yd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ke.updateQueue,t===null?(t=_a(),ke.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Vd(e,t,l,i){t.value=l,t.getSnapshot=i,Qd(t)&&Zd(e)}function Xd(e,t,l){return l(function(){Qd(t)&&Zd(e)})}function Qd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function Zd(e){var t=Sl(e,2);t!==null&&Dt(t,e,2)}function Zo(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),Ml){wt(!0);try{l()}finally{wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:e},t}function Id(e,t,l,i){return e.baseState=l,Xo(e,Ge,typeof i=="function"?i:_n)}function _0(e,t,l,i,o){if(Ra(e))throw Error(u(485));if(e=t.action,e!==null){var d={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};T.T!==null?l(!0):d.isTransition=!1,i(d),l=t.pending,l===null?(d.next=t.pending=d,Fd(t,d)):(d.next=l.next,t.pending=l.next=d)}}function Fd(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var d=T.T,y={};T.T=y;try{var v=l(o,i),w=T.S;w!==null&&w(y,v),Kd(e,t,v)}catch(B){Io(e,t,B)}finally{d!==null&&y.types!==null&&(d.types=y.types),T.T=d}}else try{d=l(o,i),Kd(e,t,d)}catch(B){Io(e,t,B)}}function Kd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Jd(e,t,i)},function(i){return Io(e,t,i)}):Jd(e,t,l)}function Jd(e,t,l){t.status="fulfilled",t.value=l,$d(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Fd(e,l)))}function Io(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,$d(t),t=t.next;while(t!==i)}e.action=null}function $d(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wd(e,t){return t}function Pd(e,t){if(Ne){var l=Ze.formState;if(l!==null){e:{var i=ke;if(Ne){if(Ke){t:{for(var o=Ke,d=Pt;o.nodeType!==8;){if(!d){o=null;break t}if(o=tn(o.nextSibling),o===null){o=null;break t}}d=o.data,o=d==="F!"||d==="F"?o:null}if(o){Ke=tn(o.nextSibling),i=o.data==="F!";break e}}In(i)}i=!1}i&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wd,lastRenderedState:t},l.queue=i,l=bh.bind(null,ke,i),i.dispatch=l,i=Zo(!1),d=Po.bind(null,ke,!1,i.queue),i=Et(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=_0.bind(null,ke,o,d,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function eh(e){var t=nt();return th(t,Ge,e)}function th(e,t,l){if(t=Xo(e,t,Wd)[0],e=Oa(_n)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ur(t)}catch(y){throw y===si?Sa:y}else i=t;t=nt();var o=t.queue,d=o.dispatch;return l!==t.memoizedState&&(ke.flags|=2048,mi(9,{destroy:void 0},M0.bind(null,o,l),null)),[i,d,e]}function M0(e,t){e.action=t}function nh(e){var t=nt(),l=Ge;if(l!==null)return th(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function mi(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=ke.updateQueue,t===null&&(t=_a(),ke.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function lh(){return nt().memoizedState}function Na(e,t,l,i){var o=Et();ke.flags|=e,o.memoizedState=mi(1|t,{destroy:void 0},l,i===void 0?null:i)}function Da(e,t,l,i){var o=nt();i=i===void 0?null:i;var d=o.memoizedState.inst;Ge!==null&&i!==null&&Bo(i,Ge.memoizedState.deps)?o.memoizedState=mi(t,d,l,i):(ke.flags|=e,o.memoizedState=mi(1|t,d,l,i))}function ih(e,t){Na(8390656,8,e,t)}function Fo(e,t){Da(2048,8,e,t)}function O0(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=_a(),ke.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function rh(e){var t=nt().memoizedState;return O0({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function ah(e,t){return Da(4,2,e,t)}function uh(e,t){return Da(4,4,e,t)}function oh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sh(e,t,l){l=l!=null?l.concat([e]):null,Da(4,4,oh.bind(null,t,e),l)}function Ko(){}function ch(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&Bo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function fh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&Bo(t,i[1]))return i[0];if(i=e(),Ml){wt(!0);try{e()}finally{wt(!1)}}return l.memoizedState=[i,t],i}function Jo(e,t,l){return l===void 0||(zn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=dm(),ke.lanes|=e,nl|=e,l)}function dh(e,t,l,i){return Bt(l,t)?l:fi.current!==null?(e=Jo(e,l,i),Bt(e,t)||(rt=!0),e):(zn&42)===0||(zn&1073741824)!==0&&(Me&261930)===0?(rt=!0,e.memoizedState=l):(e=dm(),ke.lanes|=e,nl|=e,t)}function hh(e,t,l,i,o){var d=X.p;X.p=d!==0&&8>d?d:8;var y=T.T,v={};T.T=v,Po(e,!1,t,l);try{var w=o(),B=T.S;if(B!==null&&B(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=w0(w,i);or(e,t,V,Xt(e))}else or(e,t,i,Xt(e))}catch(J){or(e,t,{then:function(){},status:"rejected",reason:J},Xt())}finally{X.p=d,y!==null&&v.types!==null&&(y.types=v.types),T.T=y}}function N0(){}function $o(e,t,l,i){if(e.tag!==5)throw Error(u(476));var o=mh(e).queue;hh(e,o,t,Q,l===null?N0:function(){return ph(e),l(i)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:Q},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ph(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),or(e,t.next.queue,{},Xt())}function Wo(){return gt(Tr)}function gh(){return nt().memoizedState}function yh(){return nt().memoizedState}function D0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xt();e=Jn(l);var i=$n(t,e,l);i!==null&&(Dt(i,t,l),lr(i,t,l)),t={cache:Ao()},e.payload=t;return}t=t.return}}function R0(e,t,l){var i=Xt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ra(e)?xh(t,l):(l=go(e,t,l,i),l!==null&&(Dt(l,e,i),vh(l,t,i)))}function bh(e,t,l){var i=Xt();or(e,t,l,i)}function or(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ra(e))xh(t,o);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,v=d(y,l);if(o.hasEagerState=!0,o.eagerState=v,Bt(v,y))return ma(e,t,o,0),Ze===null&&ha(),!1}catch{}finally{}if(l=go(e,t,o,i),l!==null)return Dt(l,e,i),vh(l,t,i),!0}return!1}function Po(e,t,l,i){if(i={lane:2,revertLane:Os(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ra(e)){if(t)throw Error(u(479))}else t=go(e,l,i,2),t!==null&&Dt(t,e,2)}function Ra(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function xh(e,t){di=Aa=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function vh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Tf(e,l)}}var sr={readContext:gt,use:Ma,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};sr.useEffectEvent=We;var Sh={readContext:gt,use:Ma,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:ih,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Na(4194308,4,oh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){Na(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var i=e();if(Ml){wt(!0);try{e()}finally{wt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=Et();if(l!==void 0){var o=l(t);if(Ml){wt(!0);try{l(t)}finally{wt(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=R0.bind(null,ke,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Zo(e);var t=e.queue,l=bh.bind(null,ke,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ko,useDeferredValue:function(e,t){var l=Et();return Jo(l,e,t)},useTransition:function(){var e=Zo(!1);return e=hh.bind(null,ke,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=ke,o=Et();if(Ne){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ze===null)throw Error(u(349));(Me&127)!==0||Yd(i,t,l)}o.memoizedState=l;var d={value:l,getSnapshot:t};return o.queue=d,ih(Xd.bind(null,i,d,e),[e]),i.flags|=2048,mi(9,{destroy:void 0},Vd.bind(null,i,d,l,t),null),l},useId:function(){var e=Et(),t=Ze.identifierPrefix;if(Ne){var l=hn,i=dn;l=(i&~(1<<32-Qe(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=za++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=A0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wo,useFormState:Pd,useActionState:Pd,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Po.bind(null,ke,!0,l),l.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Et().memoizedState=D0.bind(null,ke)},useEffectEvent:function(e){var t=Et(),l={impl:e};return t.memoizedState=l,function(){if((Ue&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},es={readContext:gt,use:Ma,useCallback:ch,useContext:gt,useEffect:Fo,useImperativeHandle:sh,useInsertionEffect:ah,useLayoutEffect:uh,useMemo:fh,useReducer:Oa,useRef:lh,useState:function(){return Oa(_n)},useDebugValue:Ko,useDeferredValue:function(e,t){var l=nt();return dh(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Oa(_n)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ur(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Wo,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var l=nt();return Id(l,Ge,e,t)},useMemoCache:Vo,useCacheRefresh:yh};es.useEffectEvent=rh;var kh={readContext:gt,use:Ma,useCallback:ch,useContext:gt,useEffect:Fo,useImperativeHandle:sh,useInsertionEffect:ah,useLayoutEffect:uh,useMemo:fh,useReducer:Qo,useRef:lh,useState:function(){return Qo(_n)},useDebugValue:Ko,useDeferredValue:function(e,t){var l=nt();return Ge===null?Jo(l,e,t):dh(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Qo(_n)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ur(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Wo,useFormState:nh,useActionState:nh,useOptimistic:function(e,t){var l=nt();return Ge!==null?Id(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:yh};kh.useEffectEvent=rh;function ts(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ns={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Xt(),o=Jn(i);o.payload=t,l!=null&&(o.callback=l),t=$n(e,o,i),t!==null&&(Dt(t,e,i),lr(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Xt(),o=Jn(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=$n(e,o,i),t!==null&&(Dt(t,e,i),lr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xt(),i=Jn(l);i.tag=2,t!=null&&(i.callback=t),t=$n(e,i,l),t!==null&&(Dt(t,e,l),lr(t,e,l))}};function Ch(e,t,l,i,o,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,y):t.prototype&&t.prototype.isPureReactComponent?!Ki(l,i)||!Ki(o,d):!0}function Eh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&ns.enqueueReplaceState(t,t.state,null)}function Ol(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Th(e){da(e)}function wh(e){console.error(e)}function Ah(e){da(e)}function ja(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function zh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ls(e,t,l){return l=Jn(l),l.tag=3,l.payload={element:null},l.callback=function(){ja(e,t)},l}function _h(e){return e=Jn(e),e.tag=3,e}function Mh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var d=i.value;e.payload=function(){return o(d)},e.callback=function(){zh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){zh(t,l,i),typeof o!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function j0(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&ai(t,l,o,!0),l=qt.current,l!==null){switch(l.tag){case 31:case 13:return en===null?Ia():l.alternate===null&&Pe===0&&(Pe=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===ka?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),zs(e,i,o)),!1;case 22:return l.flags|=65536,i===ka?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),zs(e,i,o)),!1}throw Error(u(435,l.tag))}return zs(e,i,o),Ia(),!1}if(Ne)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==ko&&(e=Error(u(422),{cause:i}),Wi(Jt(e,l)))):(i!==ko&&(t=Error(u(423),{cause:i}),Wi(Jt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Jt(i,l),o=ls(e.stateNode,i,o),Do(e,o),Pe!==4&&(Pe=2)),!1;var d=Error(u(520),{cause:i});if(d=Jt(d,l),yr===null?yr=[d]:yr.push(d),Pe!==4&&(Pe=2),t===null)return!0;i=Jt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=ls(l.stateNode,i,e),Do(l,e),!1;case 1:if(t=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ll===null||!ll.has(d))))return l.flags|=65536,o&=-o,l.lanes|=o,o=_h(o),Mh(o,e,l,i),Do(l,o),!1}l=l.return}while(l!==null);return!1}var is=Error(u(461)),rt=!1;function yt(e,t,l,i){t.child=e===null?Rd(t,null,l,i):_l(t,e.child,l,i)}function Oh(e,t,l,i,o){l=l.render;var d=t.ref;if("ref"in i){var y={};for(var v in i)v!=="ref"&&(y[v]=i[v])}else y=i;return Tl(t),i=Ho(e,t,l,y,d,o),v=qo(),e!==null&&!rt?(Go(e,t,o),Mn(e,t,o)):(Ne&&v&&vo(t),t.flags|=1,yt(e,t,i,o),t.child)}function Nh(e,t,l,i,o){if(e===null){var d=l.type;return typeof d=="function"&&!yo(d)&&d.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=d,Dh(e,t,d,i,o)):(e=ga(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!ds(e,o)){var y=d.memoizedProps;if(l=l.compare,l=l!==null?l:Ki,l(y,i)&&e.ref===t.ref)return Mn(e,t,o)}return t.flags|=1,e=En(d,i),e.ref=t.ref,e.return=t,t.child=e}function Dh(e,t,l,i,o){if(e!==null){var d=e.memoizedProps;if(Ki(d,i)&&e.ref===t.ref)if(rt=!1,t.pendingProps=i=d,ds(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Mn(e,t,o)}return rs(e,t,l,i,o)}function Rh(e,t,l,i){var o=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~d}else i=0,t.child=null;return jh(e,t,d,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,d!==null?d.cachePool:null),d!==null?Ud(t,d):jo(),Bd(t);else return i=t.lanes=536870912,jh(e,t,d!==null?d.baseLanes|l:l,l,i)}else d!==null?(va(t,d.cachePool),Ud(t,d),Pn(),t.memoizedState=null):(e!==null&&va(t,null),jo(),Pn());return yt(e,t,o,l),t.child}function cr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function jh(e,t,l,i,o){var d=_o();return d=d===null?null:{parent:lt._currentValue,pool:d},t.memoizedState={baseLanes:l,cachePool:d},e!==null&&va(t,null),jo(),Bd(t),e!==null&&ai(e,t,i,!0),t.childLanes=o,null}function La(e,t){return t=Ba({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lh(e,t,l){return _l(t,e.child,null,l),e=La(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function L0(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(i.mode==="hidden")return e=La(t,i),t.lanes=536870912,cr(null,e);if(Uo(t),(e=Ke)?(e=Fm(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=xd(e),l.return=t,t.child=l,pt=t,Ke=null)):e=null,e===null)throw In(t);return t.lanes=536870912,null}return La(t,i)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Uo(t),o)if(t.flags&256)t.flags&=-257,t=Lh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(rt||ai(e,t,l,!1),o=(l&e.childLanes)!==0,rt||o){if(i=Ze,i!==null&&(y=wf(i,l),y!==0&&y!==d.retryLane))throw d.retryLane=y,Sl(e,y),Dt(i,e,y),is;Ia(),t=Lh(e,t,l)}else e=d.treeContext,Ke=tn(y.nextSibling),pt=t,Ne=!0,Zn=null,Pt=!1,e!==null&&kd(t,e),t=La(t,i),t.flags|=4096;return t}return e=En(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ua(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function rs(e,t,l,i,o){return Tl(t),l=Ho(e,t,l,i,void 0,o),i=qo(),e!==null&&!rt?(Go(e,t,o),Mn(e,t,o)):(Ne&&i&&vo(t),t.flags|=1,yt(e,t,l,o),t.child)}function Uh(e,t,l,i,o,d){return Tl(t),t.updateQueue=null,l=qd(t,i,l,o),Hd(e),i=qo(),e!==null&&!rt?(Go(e,t,d),Mn(e,t,d)):(Ne&&i&&vo(t),t.flags|=1,yt(e,t,l,d),t.child)}function Bh(e,t,l,i,o){if(Tl(t),t.stateNode===null){var d=ni,y=l.contextType;typeof y=="object"&&y!==null&&(d=gt(y)),d=new l(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ns,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Oo(t),y=l.contextType,d.context=typeof y=="object"&&y!==null?gt(y):ni,d.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(ts(t,l,y,i),d.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&ns.enqueueReplaceState(d,d.state,null),rr(t,i,d,o),ir(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var v=t.memoizedProps,w=Ol(l,v);d.props=w;var B=d.context,V=l.contextType;y=ni,typeof V=="object"&&V!==null&&(y=gt(V));var J=l.getDerivedStateFromProps;V=typeof J=="function"||typeof d.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v||B!==y)&&Eh(t,d,i,y),Kn=!1;var q=t.memoizedState;d.state=q,rr(t,i,d,o),ir(),B=t.memoizedState,v||q!==B||Kn?(typeof J=="function"&&(ts(t,l,J,i),B=t.memoizedState),(w=Kn||Ch(t,l,w,i,q,B,y))?(V||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"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=B),d.props=i,d.state=B,d.context=y,i=w):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,No(e,t),y=t.memoizedProps,V=Ol(l,y),d.props=V,J=t.pendingProps,q=d.context,B=l.contextType,w=ni,typeof B=="object"&&B!==null&&(w=gt(B)),v=l.getDerivedStateFromProps,(B=typeof v=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==J||q!==w)&&Eh(t,d,i,w),Kn=!1,q=t.memoizedState,d.state=q,rr(t,i,d,o),ir();var G=t.memoizedState;y!==J||q!==G||Kn||e!==null&&e.dependencies!==null&&ba(e.dependencies)?(typeof v=="function"&&(ts(t,l,v,i),G=t.memoizedState),(V=Kn||Ch(t,l,V,i,q,G,w)||e!==null&&e.dependencies!==null&&ba(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,G,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,G,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=G),d.props=i,d.state=G,d.context=w,i=V):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,Ua(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=_l(t,e.child,null,o),t.child=_l(t,null,l,o)):yt(e,t,l,o),t.memoizedState=d.state,e=t.child):e=Mn(e,t,o),e}function Hh(e,t,l,i){return Cl(),t.flags|=256,yt(e,t,l,i),t.child}var as={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function us(e){return{baseLanes:e,cachePool:zd()}}function os(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function qh(e,t,l){var i=t.pendingProps,o=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?Wn(t):Pn(),(e=Ke)?(e=Fm(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=xd(e),l.return=t,t.child=l,pt=t,Ke=null)):e=null,e===null)throw In(t);return Xs(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(Pn(),o=t.mode,v=Ba({mode:"hidden",children:v},o),i=kl(i,o,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=us(l),i.childLanes=os(e,y,l),t.memoizedState=as,cr(null,i)):(Wn(t),ss(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(d)t.flags&256?(Wn(t),t.flags&=-257,t=cs(e,t,l)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),v=i.fallback,o=t.mode,i=Ba({mode:"visible",children:i.children},o),v=kl(v,o,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,_l(t,e.child,null,l),i=t.child,i.memoizedState=us(l),i.childLanes=os(e,y,l),t.memoizedState=as,t=cr(null,i));else if(Wn(t),Xs(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var B=y.dgst;y=B,i=Error(u(419)),i.stack="",i.digest=y,Wi({value:i,source:null,stack:null}),t=cs(e,t,l)}else if(rt||ai(e,t,l,!1),y=(l&e.childLanes)!==0,rt||y){if(y=Ze,y!==null&&(i=wf(y,l),i!==0&&i!==w.retryLane))throw w.retryLane=i,Sl(e,i),Dt(y,e,i),is;Vs(v)||Ia(),t=cs(e,t,l)}else Vs(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ke=tn(v.nextSibling),pt=t,Ne=!0,Zn=null,Pt=!1,e!==null&&kd(t,e),t=ss(t,i.children),t.flags|=4096);return t}return o?(Pn(),v=i.fallback,o=t.mode,w=e.child,B=w.sibling,i=En(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,B!==null?v=En(B,v):(v=kl(v,o,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,cr(null,i),i=t.child,v=e.child.memoizedState,v===null?v=us(l):(o=v.cachePool,o!==null?(w=lt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=zd(),v={baseLanes:v.baseLanes|l,cachePool:o}),i.memoizedState=v,i.childLanes=os(e,y,l),t.memoizedState=as,cr(e.child,i)):(Wn(t),l=e.child,e=l.sibling,l=En(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function ss(e,t){return t=Ba({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ba(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function cs(e,t,l){return _l(t,e.child,null,l),e=ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),To(e.return,t,l)}function fs(e,t,l,i,o,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=l,y.tailMode=o,y.treeForkCount=d)}function Yh(e,t,l){var i=t.pendingProps,o=i.revealOrder,d=i.tail;i=i.children;var y=tt.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,k(tt,y),yt(e,t,i,l),i=Ne?$i:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,l,t);else if(e.tag===19)Gh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&wa(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),fs(t,!1,o,l,d,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&wa(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}fs(t,!0,l,null,d,i);break;case"together":fs(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Mn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ai(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=En(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=En(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ds(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ba(e)))}function U0(e,t,l){switch(t.tag){case 3:Xe(t,t.stateNode.containerInfo),Fn(t,lt,e.memoizedState.cache),Cl();break;case 27:case 5:ht(t);break;case 4:Xe(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Wn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?qh(e,t,l):(Wn(t),e=Mn(e,t,l),e!==null?e.sibling:null);Wn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(ai(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return Yh(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(tt,tt.current),i)break;return null;case 22:return t.lanes=0,Rh(e,t,l,t.pendingProps);case 24:Fn(t,lt,e.memoizedState.cache)}return Mn(e,t,l)}function Vh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!ds(e,l)&&(t.flags&128)===0)return rt=!1,U0(e,t,l);rt=(e.flags&131072)!==0}else rt=!1,Ne&&(t.flags&1048576)!==0&&Sd(t,$i,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")yo(e)?(i=Ol(e,i),t.tag=1,t=Bh(null,t,e,i,l)):(t.tag=0,t=rs(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===ee){t.tag=11,t=Oh(null,t,e,i,l);break e}else if(o===P){t.tag=14,t=Nh(null,t,e,i,l);break e}}throw t=K(e)||e,Error(u(306,t,""))}}return t;case 0:return rs(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=Ol(i,t.pendingProps),Bh(e,t,i,o,l);case 3:e:{if(Xe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var d=t.memoizedState;o=d.element,No(e,t),rr(t,i,null,l);var y=t.memoizedState;if(i=y.cache,Fn(t,lt,i),i!==d.cache&&wo(t,[lt],l,!0),ir(),i=y.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Hh(e,t,i,l);break e}else if(i!==o){o=Jt(Error(u(424)),t),Wi(o),t=Hh(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=tn(e.firstChild),pt=t,Ne=!0,Zn=null,Pt=!0,l=Rd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Cl(),i===o){t=Mn(e,t,l);break e}yt(e,t,i,l)}t=t.child}return t;case 26:return Ua(e,t),e===null?(l=ep(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,i=eu(de.current).createElement(l),i[mt]=t,i[At]=e,bt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ht(t),e===null&&Ne&&(i=t.stateNode=$m(t.type,t.pendingProps,de.current),pt=t,Pt=!0,o=Ke,ul(t.type)?(Qs=o,Ke=tn(i.firstChild)):Ke=o),yt(e,t,t.pendingProps.children,l),Ua(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=i=Ke)&&(i=h1(i,t.type,t.pendingProps,Pt),i!==null?(t.stateNode=i,pt=t,Ke=tn(i.firstChild),Pt=!1,o=!0):o=!1),o||In(t)),ht(t),o=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,i=d.children,qs(o,d)?i=null:y!==null&&qs(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=Ho(e,t,z0,null,null,l),Tr._currentValue=o),Ua(e,t),yt(e,t,i,l),t.child;case 6:return e===null&&Ne&&((e=l=Ke)&&(l=m1(l,t.pendingProps,Pt),l!==null?(t.stateNode=l,pt=t,Ke=null,e=!0):e=!1),e||In(t)),null;case 13:return qh(e,t,l);case 4:return Xe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_l(t,null,i,l):yt(e,t,i,l),t.child;case 11:return Oh(e,t,t.type,t.pendingProps,l);case 7:return yt(e,t,t.pendingProps,l),t.child;case 8:return yt(e,t,t.pendingProps.children,l),t.child;case 12:return yt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Fn(t,t.type,i.value),yt(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Tl(t),o=gt(o),i=i(o),t.flags|=1,yt(e,t,i,l),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,l);case 15:return Dh(e,t,t.type,t.pendingProps,l);case 19:return Yh(e,t,l);case 31:return L0(e,t,l);case 22:return Rh(e,t,l,t.pendingProps);case 24:return Tl(t),i=gt(lt),e===null?(o=_o(),o===null&&(o=Ze,d=Ao(),o.pooledCache=d,d.refCount++,d!==null&&(o.pooledCacheLanes|=l),o=d),t.memoizedState={parent:i,cache:o},Oo(t),Fn(t,lt,o)):((e.lanes&l)!==0&&(No(e,t),rr(t,null,null,l),ir()),o=e.memoizedState,d=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Fn(t,lt,i)):(i=d.cache,Fn(t,lt,i),i!==o.cache&&wo(t,[lt],l,!0))),yt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function On(e){e.flags|=4}function hs(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(gm())e.flags|=8192;else throw zl=ka,Mo}else e.flags&=-16777217}function Xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t))if(gm())e.flags|=8192;else throw zl=ka,Mo}function Ha(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Cf():536870912,e.lanes|=t,bi|=t)}function fr(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function B0(e,t,l){var i=t.pendingProps;switch(So(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),An(lt),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ri(t)?On(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),Je(t),null;case 26:var o=t.type,d=t.memoizedState;return e===null?(On(t),d!==null?(Je(t),Xh(t,d)):(Je(t),hs(t,o,null,i,l))):d?d!==e.memoizedState?(On(t),Je(t),Xh(t,d)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&On(t),Je(t),hs(t,o,e,i,l)),null;case 27:if(Lt(t),l=de.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&On(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Je(t),null}e=le.current,ri(t)?Cd(t):(e=$m(o,i,l),t.stateNode=e,On(t))}return Je(t),null;case 5:if(Lt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&On(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Je(t),null}if(d=le.current,ri(t))Cd(t);else{var y=eu(de.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?y.createElement(o,{is:i.is}):y.createElement(o)}}d[mt]=t,d[At]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(bt(d,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&On(t)}}return Je(t),hs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&On(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=de.current,ri(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=pt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||qm(e.nodeValue,l)),e||In(t,!0)}else e=eu(e).createTextNode(i),e[mt]=t,t.stateNode=e}return Je(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ri(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[mt]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else l=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Je(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ri(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[mt]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),o=!1}else o=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ha(t,t.updateQueue),Je(t),null);case 4:return Re(),e===null&&js(t.stateNode.containerInfo),Je(t),null;case 10:return An(t.type),Je(t),null;case 19:if(Y(tt),i=t.memoizedState,i===null)return Je(t),null;if(o=(t.flags&128)!==0,d=i.rendering,d===null)if(o)fr(i,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=wa(e),d!==null){for(t.flags|=128,fr(i,!1),e=d.updateQueue,t.updateQueue=e,Ha(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)bd(l,e),l=l.sibling;return k(tt,tt.current&1|2),Ne&&Tn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&kt()>Xa&&(t.flags|=128,o=!0,fr(i,!1),t.lanes=4194304)}else{if(!o)if(e=wa(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ha(t,e),fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ne)return Je(t),null}else 2*kt()-i.renderingStartTime>Xa&&l!==536870912&&(t.flags|=128,o=!0,fr(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=kt(),e.sibling=null,l=tt.current,k(tt,o?l&1|2:l&1),Ne&&Tn(t,i.treeForkCount),e):(Je(t),null);case 22:case 23:return Gt(t),Lo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),l=t.updateQueue,l!==null&&Ha(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(wl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),An(lt),Je(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function H0(e,t){switch(So(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(lt),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lt(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(u(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(tt),null;case 4:return Re(),null;case 10:return An(t.type),null;case 22:case 23:return Gt(t),Lo(),e!==null&&Y(wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return An(lt),null;case 25:return null;default:return null}}function Qh(e,t){switch(So(t),t.tag){case 3:An(lt),Re();break;case 26:case 27:case 5:Lt(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:Y(tt);break;case 10:An(t.type);break;case 22:case 23:Gt(t),Lo(),e!==null&&Y(wl);break;case 24:An(lt)}}function dr(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var d=l.create,y=l.inst;i=d(),y.destroy=i}l=l.next}while(l!==o)}}catch(v){qe(t,t.return,v)}}function el(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&e)===e){var y=i.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,o=t;var w=l,B=v;try{B()}catch(V){qe(o,w,V)}}}i=i.next}while(i!==d)}}catch(V){qe(t,t.return,V)}}function Zh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ld(t,l)}catch(i){qe(e,e.return,i)}}}function Ih(e,t,l){l.props=Ol(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){qe(e,t,i)}}function hr(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){qe(e,t,o)}}function mn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){qe(e,t,o)}else l.current=null}function Fh(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){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(o){qe(e,e.return,o)}}function ms(e,t,l){try{var i=e.stateNode;u1(i,e.type,l,t),i[At]=t}catch(o){qe(e,e.return,o)}}function Kh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function ps(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kh(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&&ul(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 gs(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=kn));else if(i!==4&&(i===27&&ul(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(gs(e,t,l),e=e.sibling;e!==null;)gs(e,t,l),e=e.sibling}function qa(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&ul(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qa(e,t,l),e=e.sibling;e!==null;)qa(e,t,l),e=e.sibling}function Jh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);bt(t,i,l),t[mt]=e,t[At]=l}catch(d){qe(e,e.return,d)}}var Nn=!1,at=!1,ys=!1,$h=typeof WeakSet=="function"?WeakSet:Set,dt=null;function q0(e,t){if(e=e.containerInfo,Bs=uu,e=sd(e),so(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var y=0,v=-1,w=-1,B=0,V=0,J=e,q=null;t:for(;;){for(var G;J!==l||o!==0&&J.nodeType!==3||(v=y+o),J!==d||i!==0&&J.nodeType!==3||(w=y+i),J.nodeType===3&&(y+=J.nodeValue.length),(G=J.firstChild)!==null;)q=J,J=G;for(;;){if(J===e)break t;if(q===l&&++B===o&&(v=y),q===d&&++V===i&&(w=y),(G=J.nextSibling)!==null)break;J=q,q=J.parentNode}J=G}l=v===-1||w===-1?null:{start:v,end:w}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hs={focusedElem:e,selectionRange:l},uu=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=t,o=d.memoizedProps,d=d.memoizedState,i=l.stateNode;try{var oe=Ol(l.type,o);e=i.getSnapshotBeforeUpdate(oe,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(be){qe(l,l.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ys(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ys(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function Wh(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Rn(e,l),i&4&&dr(5,l);break;case 1:if(Rn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){qe(l,l.return,y)}else{var o=Ol(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){qe(l,l.return,y)}}i&64&&Zh(l),i&512&&hr(l,l.return);break;case 3:if(Rn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ld(e,t)}catch(y){qe(l,l.return,y)}}break;case 27:t===null&&i&4&&Jh(l);case 26:case 5:Rn(e,l),t===null&&i&4&&Fh(l),i&512&&hr(l,l.return);break;case 12:Rn(e,l);break;case 31:Rn(e,l),i&4&&tm(e,l);break;case 13:Rn(e,l),i&4&&nm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=K0.bind(null,l),p1(e,l))));break;case 22:if(i=l.memoizedState!==null||Nn,!i){t=t!==null&&t.memoizedState!==null||at,o=Nn;var d=at;Nn=i,(at=t)&&!d?jn(e,l,(l.subtreeFlags&8772)!==0):Rn(e,l),Nn=o,at=d}break;case 30:break;default:Rn(e,l)}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zu(t)),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 $e=null,_t=!1;function Dn(e,t,l){for(l=l.child;l!==null;)em(e,t,l),l=l.sibling}function em(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Ct,l)}catch{}switch(l.tag){case 26:at||mn(l,t),Dn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:at||mn(l,t);var i=$e,o=_t;ul(l.type)&&($e=l.stateNode,_t=!1),Dn(e,t,l),kr(l.stateNode),$e=i,_t=o;break;case 5:at||mn(l,t);case 6:if(i=$e,o=_t,$e=null,Dn(e,t,l),$e=i,_t=o,$e!==null)if(_t)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode)}catch(d){qe(l,t,d)}else try{$e.removeChild(l.stateNode)}catch(d){qe(l,t,d)}break;case 18:$e!==null&&(_t?(e=$e,Zm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wi(e)):Zm($e,l.stateNode));break;case 4:i=$e,o=_t,$e=l.stateNode.containerInfo,_t=!0,Dn(e,t,l),$e=i,_t=o;break;case 0:case 11:case 14:case 15:el(2,l,t),at||el(4,l,t),Dn(e,t,l);break;case 1:at||(mn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&Ih(l,t,i)),Dn(e,t,l);break;case 21:Dn(e,t,l);break;case 22:at=(i=at)||l.memoizedState!==null,Dn(e,t,l),at=i;break;default:Dn(e,t,l)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(l){qe(t,t.return,l)}}}function nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wi(e)}catch(l){qe(t,t.return,l)}}function G0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $h),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $h),t;default:throw Error(u(435,e.tag))}}function Ga(e,t){var l=G0(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=J0.bind(null,e,i);i.then(o,o)}})}function Mt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],d=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(ul(v.type)){$e=v.stateNode,_t=!1;break e}break;case 5:$e=v.stateNode,_t=!1;break e;case 3:case 4:$e=v.stateNode.containerInfo,_t=!0;break e}v=v.return}if($e===null)throw Error(u(160));em(d,y,o),$e=null,_t=!1,d=o.alternate,d!==null&&(d.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var un=null;function lm(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Ot(e),i&4&&(el(3,e,e.return),dr(3,e),el(5,e,e.return));break;case 1:Mt(t,e),Ot(e),i&512&&(at||l===null||mn(l,l.return)),i&64&&Nn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=un;if(Mt(t,e),Ot(e),i&512&&(at||l===null||mn(l,l.return)),i&4){var d=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":d=o.getElementsByTagName("title")[0],(!d||d[qi]||d[mt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=o.createElement(i),o.head.insertBefore(d,o.querySelector("head > title"))),bt(d,i,l),d[mt]=e,ft(d),i=d;break e;case"link":var y=lp("link","href",o).get(i+(l.href||""));if(y){for(var v=0;v<y.length;v++)if(d=y[v],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){y.splice(v,1);break t}}d=o.createElement(i),bt(d,i,l),o.head.appendChild(d);break;case"meta":if(y=lp("meta","content",o).get(i+(l.content||""))){for(v=0;v<y.length;v++)if(d=y[v],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){y.splice(v,1);break t}}d=o.createElement(i),bt(d,i,l),o.head.appendChild(d);break;default:throw Error(u(468,i))}d[mt]=e,ft(d),i=d}e.stateNode=i}else ip(o,e.type,e.stateNode);else e.stateNode=np(o,i,e.memoizedProps);else d!==i?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,i===null?ip(o,e.type,e.stateNode):np(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ms(e,e.memoizedProps,l.memoizedProps)}break;case 27:Mt(t,e),Ot(e),i&512&&(at||l===null||mn(l,l.return)),l!==null&&i&4&&ms(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Mt(t,e),Ot(e),i&512&&(at||l===null||mn(l,l.return)),e.flags&32){o=e.stateNode;try{Kl(o,"")}catch(oe){qe(e,e.return,oe)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,ms(e,o,l!==null?l.memoizedProps:o)),i&1024&&(ys=!0);break;case 6:if(Mt(t,e),Ot(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(oe){qe(e,e.return,oe)}}break;case 3:if(lu=null,o=un,un=tu(t.containerInfo),Mt(t,e),un=o,Ot(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(oe){qe(e,e.return,oe)}ys&&(ys=!1,im(e));break;case 4:i=un,un=tu(e.stateNode.containerInfo),Mt(t,e),Ot(e),un=i;break;case 12:Mt(t,e),Ot(e);break;case 31:Mt(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ga(e,i)));break;case 13:Mt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Va=kt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ga(e,i)));break;case 22:o=e.memoizedState!==null;var w=l!==null&&l.memoizedState!==null,B=Nn,V=at;if(Nn=B||o,at=V||w,Mt(t,e),at=V,Nn=B,Ot(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||w||Nn||at||Nl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){w=l=t;try{if(d=w.stateNode,o)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=w.stateNode;var J=w.memoizedProps.style,q=J!=null&&J.hasOwnProperty("display")?J.display:null;v.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(oe){qe(w,w.return,oe)}}}else if(t.tag===6){if(l===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(oe){qe(w,w.return,oe)}}}else if(t.tag===18){if(l===null){w=t;try{var G=w.stateNode;o?Im(G,!0):Im(w.stateNode,!1)}catch(oe){qe(w,w.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Ga(e,l))));break;case 19:Mt(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ga(e,i)));break;case 30:break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(Kh(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,d=ps(e);qa(e,d,o);break;case 5:var y=l.stateNode;l.flags&32&&(Kl(y,""),l.flags&=-33);var v=ps(e);qa(e,v,y);break;case 3:case 4:var w=l.stateNode.containerInfo,B=ps(e);gs(e,B,w);break;default:throw Error(u(161))}}catch(V){qe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function im(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;im(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wh(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Nl(t);break;case 1:mn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ih(t,t.return,l),Nl(t);break;case 27:kr(t.stateNode);case 26:case 5:mn(t,t.return),Nl(t);break;case 22:t.memoizedState===null&&Nl(t);break;case 30:Nl(t);break;default:Nl(t)}e=e.sibling}}function jn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:jn(o,d,l),dr(4,d);break;case 1:if(jn(o,d,l),i=d,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){qe(i,i.return,B)}if(i=d,o=i.updateQueue,o!==null){var v=i.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)jd(w[o],v)}catch(B){qe(i,i.return,B)}}l&&y&64&&Zh(d),hr(d,d.return);break;case 27:Jh(d);case 26:case 5:jn(o,d,l),l&&i===null&&y&4&&Fh(d),hr(d,d.return);break;case 12:jn(o,d,l);break;case 31:jn(o,d,l),l&&y&4&&tm(o,d);break;case 13:jn(o,d,l),l&&y&4&&nm(o,d);break;case 22:d.memoizedState===null&&jn(o,d,l),hr(d,d.return);break;case 30:break;default:jn(o,d,l)}t=t.sibling}}function bs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pi(l))}function xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e))}function on(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rm(e,t,l,i),t=t.sibling}function rm(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,l,i),o&2048&&dr(9,t);break;case 1:on(e,t,l,i);break;case 3:on(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e)));break;case 12:if(o&2048){on(e,t,l,i),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,v=d.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){qe(t,t.return,w)}}else on(e,t,l,i);break;case 31:on(e,t,l,i);break;case 13:on(e,t,l,i);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?on(e,t,l,i):mr(e,t):d._visibility&2?on(e,t,l,i):(d._visibility|=2,pi(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&bs(y,t);break;case 24:on(e,t,l,i),o&2048&&xs(t.alternate,t);break;default:on(e,t,l,i)}}function pi(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,v=l,w=i,B=y.flags;switch(y.tag){case 0:case 11:case 15:pi(d,y,v,w,o),dr(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?pi(d,y,v,w,o):mr(d,y):(V._visibility|=2,pi(d,y,v,w,o)),o&&B&2048&&bs(y.alternate,y);break;case 24:pi(d,y,v,w,o),o&&B&2048&&xs(y.alternate,y);break;default:pi(d,y,v,w,o)}t=t.sibling}}function mr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:mr(l,i),o&2048&&bs(i.alternate,i);break;case 24:mr(l,i),o&2048&&xs(i.alternate,i);break;default:mr(l,i)}t=t.sibling}}var pr=8192;function gi(e,t,l){if(e.subtreeFlags&pr)for(e=e.child;e!==null;)am(e,t,l),e=e.sibling}function am(e,t,l){switch(e.tag){case 26:gi(e,t,l),e.flags&pr&&e.memoizedState!==null&&A1(l,un,e.memoizedState,e.memoizedProps);break;case 5:gi(e,t,l);break;case 3:case 4:var i=un;un=tu(e.stateNode.containerInfo),gi(e,t,l),un=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=pr,pr=16777216,gi(e,t,l),pr=i):gi(e,t,l));break;default:gi(e,t,l)}}function um(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,sm(i,e)}um(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(e),e=e.sibling}function om(e){switch(e.tag){case 0:case 11:case 15:gr(e),e.flags&2048&&el(9,e,e.return);break;case 3:gr(e);break;case 12:gr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ya(e)):gr(e);break;default:gr(e)}}function Ya(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,sm(i,e)}um(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Ya(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ya(t));break;default:Ya(t)}e=e.sibling}}function sm(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:el(8,l,t);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:Pi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,dt=i;else e:for(l=e;dt!==null;){i=dt;var o=i.sibling,d=i.return;if(Ph(i),i===l){dt=null;break e}if(o!==null){o.return=d,dt=o;break e}dt=d}}}var Y0={getCacheForType:function(e){var t=gt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return gt(lt).controller.signal}},V0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ze=null,Ae=null,Me=0,He=0,Yt=null,tl=!1,yi=!1,vs=!1,Ln=0,Pe=0,nl=0,Dl=0,Ss=0,Vt=0,bi=0,yr=null,Nt=null,ks=!1,Va=0,cm=0,Xa=1/0,Qa=null,ll=null,st=0,il=null,xi=null,Un=0,Cs=0,Es=null,fm=null,br=0,Ts=null;function Xt(){return(Ue&2)!==0&&Me!==0?Me&-Me:T.T!==null?Os():Af()}function dm(){if(Vt===0)if((Me&536870912)===0||Ne){var e=Pr;Pr<<=1,(Pr&3932160)===0&&(Pr=262144),Vt=e}else Vt=536870912;return e=qt.current,e!==null&&(e.flags|=32),Vt}function Dt(e,t,l){(e===Ze&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(vi(e,0),rl(e,Me,Vt,!1)),Hi(e,l),((Ue&2)===0||e!==Ze)&&(e===Ze&&((Ue&2)===0&&(Dl|=l),Pe===4&&rl(e,Me,Vt,!1)),pn(e))}function hm(e,t,l){if((Ue&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Bi(e,t),o=i?Z0(e,t):As(e,t,!0),d=i;do{if(o===0){yi&&!i&&rl(e,t,0,!1);break}else{if(l=e.current.alternate,d&&!X0(l)){o=As(e,t,!1),d=!1;continue}if(o===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;o=yr;var w=v.current.memoizedState.isDehydrated;if(w&&(vi(v,y).flags|=256),y=As(v,y,!1),y!==2){if(vs&&!w){v.errorRecoveryDisabledLanes|=d,Dl|=d,o=4;break e}d=Nt,Nt=o,d!==null&&(Nt===null?Nt=d:Nt.push.apply(Nt,d))}o=y}if(d=!1,o!==2)continue}}if(o===1){vi(e,0),rl(e,t,0,!0);break}e:{switch(i=e,d=o,d){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:rl(i,t,Vt,!tl);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Va+300-kt(),10<o)){if(rl(i,t,Vt,!tl),ta(i,0,!0)!==0)break e;Un=t,i.timeoutHandle=Xm(mm.bind(null,i,l,Nt,Qa,ks,t,Vt,Dl,bi,tl,d,"Throttled",-0,0),o);break e}mm(i,l,Nt,Qa,ks,t,Vt,Dl,bi,tl,d,null,-0,0)}}break}while(!0);pn(e)}function mm(e,t,l,i,o,d,y,v,w,B,V,J,q,G){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},am(t,d,J);var oe=(d&62914560)===d?Va-kt():(d&4194048)===d?cm-kt():0;if(oe=z1(J,oe),oe!==null){Un=d,e.cancelPendingCommit=oe(km.bind(null,e,t,d,l,i,o,y,v,w,V,J,null,q,G)),rl(e,d,y,!B);return}}km(e,t,d,l,i,o,y,v,w)}function X0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],d=o.getSnapshot;o=o.value;try{if(!Bt(d(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rl(e,t,l,i){t&=~Ss,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var d=31-Qe(o),y=1<<d;i[d]=-1,o&=~y}l!==0&&Ef(e,l,t)}function Za(){return(Ue&6)===0?(xr(0),!1):!0}function ws(){if(Ae!==null){if(He===0)var e=Ae.return;else e=Ae,wn=El=null,Yo(e),ci=null,tr=0,e=Ae;for(;e!==null;)Qh(e.alternate,e),e=e.return;Ae=null}}function vi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,c1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Un=0,ws(),Ze=e,Ae=l=En(e.current,null),Me=t,He=0,Yt=null,tl=!1,yi=Bi(e,t),vs=!1,bi=Vt=Ss=Dl=nl=Pe=0,Nt=yr=null,ks=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Qe(i),d=1<<o;t|=e[o],i&=~d}return Ln=t,ha(),l}function pm(e,t){ke=null,T.H=sr,t===si||t===Sa?(t=Od(),He=3):t===Mo?(t=Od(),He=4):He=t===is?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,Ae===null&&(Pe=1,ja(e,Jt(t,e.current)))}function gm(){var e=qt.current;return e===null?!0:(Me&4194048)===Me?en===null:(Me&62914560)===Me||(Me&536870912)!==0?e===en:!1}function ym(){var e=T.H;return T.H=sr,e===null?sr:e}function bm(){var e=T.A;return T.A=Y0,e}function Ia(){Pe=4,tl||(Me&4194048)!==Me&&qt.current!==null||(yi=!0),(nl&134217727)===0&&(Dl&134217727)===0||Ze===null||rl(Ze,Me,Vt,!1)}function As(e,t,l){var i=Ue;Ue|=2;var o=ym(),d=bm();(Ze!==e||Me!==t)&&(Qa=null,vi(e,t)),t=!1;var y=Pe;e:do try{if(He!==0&&Ae!==null){var v=Ae,w=Yt;switch(He){case 8:ws(),y=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var B=He;if(He=0,Yt=null,Si(e,v,w,B),l&&yi){y=0;break e}break;default:B=He,He=0,Yt=null,Si(e,v,w,B)}}Q0(),y=Pe;break}catch(V){pm(e,V)}while(!0);return t&&e.shellSuspendCounter++,wn=El=null,Ue=i,T.H=o,T.A=d,Ae===null&&(Ze=null,Me=0,ha()),y}function Q0(){for(;Ae!==null;)xm(Ae)}function Z0(e,t){var l=Ue;Ue|=2;var i=ym(),o=bm();Ze!==e||Me!==t?(Qa=null,Xa=kt()+500,vi(e,t)):yi=Bi(e,t);e:do try{if(He!==0&&Ae!==null){t=Ae;var d=Yt;t:switch(He){case 1:He=0,Yt=null,Si(e,t,d,1);break;case 2:case 9:if(_d(d)){He=0,Yt=null,vm(t);break}t=function(){He!==2&&He!==9||Ze!==e||(He=7),pn(e)},d.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:_d(d)?(He=0,Yt=null,vm(t)):(He=0,Yt=null,Si(e,t,d,7));break;case 5:var y=null;switch(Ae.tag){case 26:y=Ae.memoizedState;case 5:case 27:var v=Ae;if(y?rp(y):v.stateNode.complete){He=0,Yt=null;var w=v.sibling;if(w!==null)Ae=w;else{var B=v.return;B!==null?(Ae=B,Fa(B)):Ae=null}break t}}He=0,Yt=null,Si(e,t,d,5);break;case 6:He=0,Yt=null,Si(e,t,d,6);break;case 8:ws(),Pe=6;break e;default:throw Error(u(462))}}I0();break}catch(V){pm(e,V)}while(!0);return wn=El=null,T.H=i,T.A=o,Ue=l,Ae!==null?0:(Ze=null,Me=0,ha(),Pe)}function I0(){for(;Ae!==null&&!Hu();)xm(Ae)}function xm(e){var t=Vh(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?Fa(e):Ae=t}function vm(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Uh(l,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=Uh(l,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Yo(t);default:Qh(l,t),t=Ae=bd(t,Ln),t=Vh(l,t,Ln)}e.memoizedProps=e.pendingProps,t===null?Fa(e):Ae=t}function Si(e,t,l,i){wn=El=null,Yo(t),ci=null,tr=0;var o=t.return;try{if(j0(e,o,t,l,Me)){Pe=1,ja(e,Jt(l,e.current)),Ae=null;return}}catch(d){if(o!==null)throw Ae=o,d;Pe=1,ja(e,Jt(l,e.current)),Ae=null;return}t.flags&32768?(Ne||i===1?e=!0:yi||(Me&536870912)!==0?e=!1:(tl=e=!0,(i===2||i===9||i===3||i===6)&&(i=qt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Sm(t,e)):Fa(t)}function Fa(e){var t=e;do{if((t.flags&32768)!==0){Sm(t,tl);return}e=t.return;var l=B0(t.alternate,t,Ln);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Pe===0&&(Pe=5)}function Sm(e,t){do{var l=H0(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);Pe=6,Ae=null}function km(e,t,l,i,o,d,y,v,w){e.cancelPendingCommit=null;do Ka();while(st!==0);if((Ue&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(d=t.lanes|t.childLanes,d|=po,wb(e,l,d,y,v,w),e===Ze&&(Ae=Ze=null,Me=0),xi=t,il=e,Un=l,Cs=d,Es=o,fm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$0(xe,function(){return Am(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=T.T,T.T=null,o=X.p,X.p=2,y=Ue,Ue|=4;try{q0(e,t,l)}finally{Ue=y,X.p=o,T.T=i}}st=1,Cm(),Em(),Tm()}}function Cm(){if(st===1){st=0;var e=il,t=xi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var i=X.p;X.p=2;var o=Ue;Ue|=4;try{lm(t,e);var d=Hs,y=sd(e.containerInfo),v=d.focusedElem,w=d.selectionRange;if(y!==v&&v&&v.ownerDocument&&od(v.ownerDocument.documentElement,v)){if(w!==null&&so(v)){var B=w.start,V=w.end;if(V===void 0&&(V=B),"selectionStart"in v)v.selectionStart=B,v.selectionEnd=Math.min(V,v.value.length);else{var J=v.ownerDocument||document,q=J&&J.defaultView||window;if(q.getSelection){var G=q.getSelection(),oe=v.textContent.length,be=Math.min(w.start,oe),Ve=w.end===void 0?be:Math.min(w.end,oe);!G.extend&&be>Ve&&(y=Ve,Ve=be,be=y);var O=ud(v,be),_=ud(v,Ve);if(O&&_&&(G.rangeCount!==1||G.anchorNode!==O.node||G.anchorOffset!==O.offset||G.focusNode!==_.node||G.focusOffset!==_.offset)){var j=J.createRange();j.setStart(O.node,O.offset),G.removeAllRanges(),be>Ve?(G.addRange(j),G.extend(_.node,_.offset)):(j.setEnd(_.node,_.offset),G.addRange(j))}}}}for(J=[],G=v;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<J.length;v++){var F=J[v];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}uu=!!Bs,Hs=Bs=null}finally{Ue=o,X.p=i,T.T=l}}e.current=t,st=2}}function Em(){if(st===2){st=0;var e=il,t=xi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var i=X.p;X.p=2;var o=Ue;Ue|=4;try{Wh(e,t.alternate,t)}finally{Ue=o,X.p=i,T.T=l}}st=3}}function Tm(){if(st===4||st===3){st=0,qu();var e=il,t=xi,l=Un,i=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,xi=il=null,wm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ll=null),Xu(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Ct,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=T.T,o=X.p,X.p=2,T.T=null;try{for(var d=e.onRecoverableError,y=0;y<i.length;y++){var v=i[y];d(v.value,{componentStack:v.stack})}}finally{T.T=t,X.p=o}}(Un&3)!==0&&Ka(),pn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Ts?br++:(br=0,Ts=e):br=0,xr(0)}}function wm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function Ka(){return Cm(),Em(),Tm(),Am()}function Am(){if(st!==5)return!1;var e=il,t=Cs;Cs=0;var l=Xu(Un),i=T.T,o=X.p;try{X.p=32>l?32:l,T.T=null,l=Es,Es=null;var d=il,y=Un;if(st=0,xi=il=null,Un=0,(Ue&6)!==0)throw Error(u(331));var v=Ue;if(Ue|=4,om(d.current),rm(d,d.current,y,l),Ue=v,xr(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Ct,d)}catch{}return!0}finally{X.p=o,T.T=i,wm(e,t)}}function zm(e,t,l){t=Jt(l,t),t=ls(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(Hi(e,2),pn(e))}function qe(e,t,l){if(e.tag===3)zm(e,e,l);else for(;t!==null;){if(t.tag===3){zm(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ll===null||!ll.has(i))){e=Jt(l,e),l=_h(2),i=$n(t,l,2),i!==null&&(Mh(l,i,t,e),Hi(i,2),pn(i));break}}t=t.return}}function zs(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new V0;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(vs=!0,o.add(l),e=F0.bind(null,e,t,l),t.then(e,e))}function F0(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(Me&l)===l&&(Pe===4||Pe===3&&(Me&62914560)===Me&&300>kt()-Va?(Ue&2)===0&&vi(e,0):Ss|=l,bi===Me&&(bi=0)),pn(e)}function _m(e,t){t===0&&(t=Cf()),e=Sl(e,t),e!==null&&(Hi(e,t),pn(e))}function K0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_m(e,l)}function J0(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),_m(e,l)}function $0(e,t){return Yl(e,t)}var Ja=null,ki=null,_s=!1,$a=!1,Ms=!1,al=0;function pn(e){e!==ki&&e.next===null&&(ki===null?Ja=ki=e:ki=ki.next=e),$a=!0,_s||(_s=!0,P0())}function xr(e,t){if(!Ms&&$a){Ms=!0;do for(var l=!1,i=Ja;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var d=0;else{var y=i.suspendedLanes,v=i.pingedLanes;d=(1<<31-Qe(42|e)+1)-1,d&=o&~(y&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Dm(i,d))}else d=Me,d=ta(i,i===Ze?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Bi(i,d)||(l=!0,Dm(i,d));i=i.next}while(l);Ms=!1}}function W0(){Mm()}function Mm(){$a=_s=!1;var e=0;al!==0&&s1()&&(e=al);for(var t=kt(),l=null,i=Ja;i!==null;){var o=i.next,d=Om(i,t);d===0?(i.next=null,l===null?Ja=o:l.next=o,o===null&&(ki=l)):(l=i,(e!==0||(d&3)!==0)&&($a=!0)),i=o}st!==0&&st!==5||xr(e),al!==0&&(al=0)}function Om(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Qe(d),v=1<<y,w=o[y];w===-1?((v&l)===0||(v&i)!==0)&&(o[y]=Tb(v,t)):w<=t&&(e.expiredLanes|=v),d&=~v}if(t=Ze,l=Me,l=ta(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ui(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Bi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ui(i),Xu(l)){case 2:case 8:l=ae;break;case 32:l=xe;break;case 268435456:l=Be;break;default:l=xe}return i=Nm.bind(null,e),l=Yl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ui(i),e.callbackPriority=2,e.callbackNode=null,2}function Nm(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ka()&&e.callbackNode!==l)return null;var i=Me;return i=ta(e,e===Ze?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(hm(e,i,t),Om(e,kt()),e.callbackNode!=null&&e.callbackNode===l?Nm.bind(null,e):null)}function Dm(e,t){if(Ka())return null;hm(e,t,!0)}function P0(){f1(function(){(Ue&6)!==0?Yl(I,W0):Mm()})}function Os(){if(al===0){var e=ui;e===0&&(e=Wr,Wr<<=1,(Wr&261888)===0&&(Wr=256)),al=e}return al}function Rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ra(""+e)}function jm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function e1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var d=Rm((o[At]||null).action),y=i.submitter;y&&(t=(t=y[At]||null)?Rm(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var v=new sa("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(al!==0){var w=y?jm(o,y):new FormData(o);$o(l,{pending:!0,data:w,method:o.method,action:d},null,w)}}else typeof d=="function"&&(v.preventDefault(),w=y?jm(o,y):new FormData(o),$o(l,{pending:!0,data:w,method:o.method,action:d},d,w))},currentTarget:o}]})}}for(var Ns=0;Ns<mo.length;Ns++){var Ds=mo[Ns],t1=Ds.toLowerCase(),n1=Ds[0].toUpperCase()+Ds.slice(1);an(t1,"on"+n1)}an(dd,"onAnimationEnd"),an(hd,"onAnimationIteration"),an(md,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(b0,"onTransitionRun"),an(x0,"onTransitionStart"),an(v0,"onTransitionCancel"),an(pd,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),l1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vr));function Lm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var y=i.length-1;0<=y;y--){var v=i[y],w=v.instance,B=v.currentTarget;if(v=v.listener,w!==d&&o.isPropagationStopped())break e;d=v,o.currentTarget=B;try{d(o)}catch(V){da(V)}o.currentTarget=null,d=w}else for(y=0;y<i.length;y++){if(v=i[y],w=v.instance,B=v.currentTarget,v=v.listener,w!==d&&o.isPropagationStopped())break e;d=v,o.currentTarget=B;try{d(o)}catch(V){da(V)}o.currentTarget=null,d=w}}}}function ze(e,t){var l=t[Qu];l===void 0&&(l=t[Qu]=new Set);var i=e+"__bubble";l.has(i)||(Um(t,e,2,!1),l.add(i))}function Rs(e,t,l){var i=0;t&&(i|=4),Um(l,e,i,t)}var Wa="_reactListening"+Math.random().toString(36).slice(2);function js(e){if(!e[Wa]){e[Wa]=!0,Mf.forEach(function(l){l!=="selectionchange"&&(l1.has(l)||Rs(l,!1,e),Rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wa]||(t[Wa]=!0,Rs("selectionchange",!1,t))}}function Um(e,t,l,i){switch(dp(t)){case 2:var o=O1;break;case 8:o=N1;break;default:o=Js}l=o.bind(null,t,l,e),o=void 0,!eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function Ls(e,t,l,i,o){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var v=i.stateNode.containerInfo;if(v===o)break;if(y===4)for(y=i.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;v!==null;){if(y=Xl(v),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){i=d=y;continue e}v=v.parentNode}}i=i.return}Yf(function(){var B=d,V=Wu(l),J=[];e:{var q=gd.get(e);if(q!==void 0){var G=sa,oe=e;switch(e){case"keypress":if(ua(l)===0)break e;case"keydown":case"keyup":G=Jb;break;case"focusin":oe="focus",G=io;break;case"focusout":oe="blur",G=io;break;case"beforeblur":case"afterblur":G=io;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":G=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Pb;break;case dd:case hd:case md:G=Gb;break;case pd:G=t0;break;case"scroll":case"scrollend":G=Lb;break;case"wheel":G=l0;break;case"copy":case"cut":case"paste":G=Vb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=If;break;case"toggle":case"beforetoggle":G=r0}var be=(t&4)!==0,Ve=!be&&(e==="scroll"||e==="scrollend"),O=be?q!==null?q+"Capture":null:q;be=[];for(var _=B,j;_!==null;){var F=_;if(j=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||j===null||O===null||(F=Yi(_,O),F!=null&&be.push(Sr(_,F,j))),Ve)break;_=_.return}0<be.length&&(q=new G(q,oe,null,l,V),J.push({event:q,listeners:be}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",q&&l!==$u&&(oe=l.relatedTarget||l.fromElement)&&(Xl(oe)||oe[Vl]))break e;if((G||q)&&(q=V.window===V?V:(q=V.ownerDocument)?q.defaultView||q.parentWindow:window,G?(oe=l.relatedTarget||l.toElement,G=B,oe=oe?Xl(oe):null,oe!==null&&(Ve=c(oe),be=oe.tag,oe!==Ve||be!==5&&be!==27&&be!==6)&&(oe=null)):(G=null,oe=B),G!==oe)){if(be=Qf,F="onMouseLeave",O="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(be=If,F="onPointerLeave",O="onPointerEnter",_="pointer"),Ve=G==null?q:Gi(G),j=oe==null?q:Gi(oe),q=new be(F,_+"leave",G,l,V),q.target=Ve,q.relatedTarget=j,F=null,Xl(V)===B&&(be=new be(O,_+"enter",oe,l,V),be.target=j,be.relatedTarget=Ve,F=be),Ve=F,G&&oe)t:{for(be=i1,O=G,_=oe,j=0,F=O;F;F=be(F))j++;F=0;for(var pe=_;pe;pe=be(pe))F++;for(;0<j-F;)O=be(O),j--;for(;0<F-j;)_=be(_),F--;for(;j--;){if(O===_||_!==null&&O===_.alternate){be=O;break t}O=be(O),_=be(_)}be=null}else be=null;G!==null&&Bm(J,q,G,be,!1),oe!==null&&Ve!==null&&Bm(J,Ve,oe,be,!0)}}e:{if(q=B?Gi(B):window,G=q.nodeName&&q.nodeName.toLowerCase(),G==="select"||G==="input"&&q.type==="file")var je=td;else if(Pf(q))if(nd)je=p0;else{je=h0;var fe=d0}else G=q.nodeName,!G||G.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?B&&Ju(B.elementType)&&(je=td):je=m0;if(je&&(je=je(e,B))){ed(J,je,l,V);break e}fe&&fe(e,q,B),e==="focusout"&&B&&q.type==="number"&&B.memoizedProps.value!=null&&Ku(q,"number",q.value)}switch(fe=B?Gi(B):window,e){case"focusin":(Pf(fe)||fe.contentEditable==="true")&&(Pl=fe,co=B,Ji=null);break;case"focusout":Ji=co=Pl=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,cd(J,l,V);break;case"selectionchange":if(y0)break;case"keydown":case"keyup":cd(J,l,V)}var Ce;if(ao)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Wl?$f(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(Ff&&l.locale!=="ko"&&(Wl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Wl&&(Ce=Vf()):(Xn=V,to="value"in Xn?Xn.value:Xn.textContent,Wl=!0)),fe=Pa(B,Oe),0<fe.length&&(Oe=new Zf(Oe,e,null,l,V),J.push({event:Oe,listeners:fe}),Ce?Oe.data=Ce:(Ce=Wf(l),Ce!==null&&(Oe.data=Ce)))),(Ce=u0?o0(e,l):s0(e,l))&&(Oe=Pa(B,"onBeforeInput"),0<Oe.length&&(fe=new Zf("onBeforeInput","beforeinput",null,l,V),J.push({event:fe,listeners:Oe}),fe.data=Ce)),e1(J,e,B,l,V)}Lm(J,t)})}function Sr(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Pa(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,d=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||d===null||(o=Yi(e,l),o!=null&&i.unshift(Sr(e,o,d)),o=Yi(e,t),o!=null&&i.push(Sr(e,o,d))),e.tag===3)return i;e=e.return}return[]}function i1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bm(e,t,l,i,o){for(var d=t._reactName,y=[];l!==null&&l!==i;){var v=l,w=v.alternate,B=v.stateNode;if(v=v.tag,w!==null&&w===i)break;v!==5&&v!==26&&v!==27||B===null||(w=B,o?(B=Yi(l,d),B!=null&&y.unshift(Sr(l,B,w))):o||(B=Yi(l,d),B!=null&&y.push(Sr(l,B,w)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var r1=/\r\n?/g,a1=/\u0000|\uFFFD/g;function Hm(e){return(typeof e=="string"?e:""+e).replace(r1,`
|
|
49
|
+
`).replace(a1,"")}function qm(e,t){return t=Hm(t),Hm(e)===t}function Ye(e,t,l,i,o,d){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Kl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Kl(e,""+i);break;case"className":la(e,"class",i);break;case"tabIndex":la(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":la(e,l,i);break;case"style":qf(e,i,d);break;case"data":if(t!=="object"){la(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ra(""+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"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ra(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=kn);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));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=ra(""+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"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":ze("beforetoggle",e),ze("toggle",e),na(e,"popover",i);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":na(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Rb.get(l)||l,na(e,l,i))}}function Us(e,t,l,i,o,d){switch(l){case"style":qf(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Kl(e,i):(typeof i=="number"||typeof i=="bigint")&&Kl(e,""+i);break;case"onScroll":i!=null&&ze("scroll",e);break;case"onScrollEnd":i!=null&&ze("scrollend",e);break;case"onClick":i!=null&&(e.onclick=kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),d=e[At]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(t,d,o),typeof i=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):na(e,l,i)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var i=!1,o=!1,d;for(d in l)if(l.hasOwnProperty(d)){var y=l[d];if(y!=null)switch(d){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ye(e,t,d,y,l,null)}}o&&Ye(e,t,"srcSet",l.srcSet,l,null),i&&Ye(e,t,"src",l.src,l,null);return;case"input":ze("invalid",e);var v=d=y=o=null,w=null,B=null;for(i in l)if(l.hasOwnProperty(i)){var V=l[i];if(V!=null)switch(i){case"name":o=V;break;case"type":y=V;break;case"checked":w=V;break;case"defaultChecked":B=V;break;case"value":d=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:Ye(e,t,i,V,l,null)}}Lf(e,d,v,w,B,y,o,!1);return;case"select":ze("invalid",e),i=y=d=null;for(o in l)if(l.hasOwnProperty(o)&&(v=l[o],v!=null))switch(o){case"value":d=v;break;case"defaultValue":y=v;break;case"multiple":i=v;default:Ye(e,t,o,v,l,null)}t=d,l=y,e.multiple=!!i,t!=null?Fl(e,!!i,t,!1):l!=null&&Fl(e,!!i,l,!0);return;case"textarea":ze("invalid",e),d=o=i=null;for(y in l)if(l.hasOwnProperty(y)&&(v=l[y],v!=null))switch(y){case"value":i=v;break;case"defaultValue":o=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ye(e,t,y,v,l,null)}Bf(e,i,o,d);return;case"option":for(w in l)if(l.hasOwnProperty(w)&&(i=l[w],i!=null))switch(w){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ye(e,t,w,i,l,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(i=0;i<vr.length;i++)ze(vr[i],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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,t));default:Ye(e,t,B,i,l,null)}return;default:if(Ju(t)){for(V in l)l.hasOwnProperty(V)&&(i=l[V],i!==void 0&&Us(e,t,V,i,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(i=l[v],i!=null&&Ye(e,t,v,i,l,null))}function u1(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,d=null,y=null,v=null,w=null,B=null,V=null;for(G in l){var J=l[G];if(l.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=J;default:i.hasOwnProperty(G)||Ye(e,t,G,null,i,J)}}for(var q in i){var G=i[q];if(J=l[q],i.hasOwnProperty(q)&&(G!=null||J!=null))switch(q){case"type":d=G;break;case"name":o=G;break;case"checked":B=G;break;case"defaultChecked":V=G;break;case"value":y=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:G!==J&&Ye(e,t,q,G,i,J)}}Fu(e,y,v,w,B,V,d,o);return;case"select":G=y=v=q=null;for(d in l)if(w=l[d],l.hasOwnProperty(d)&&w!=null)switch(d){case"value":break;case"multiple":G=w;default:i.hasOwnProperty(d)||Ye(e,t,d,null,i,w)}for(o in i)if(d=i[o],w=l[o],i.hasOwnProperty(o)&&(d!=null||w!=null))switch(o){case"value":q=d;break;case"defaultValue":v=d;break;case"multiple":y=d;default:d!==w&&Ye(e,t,o,d,i,w)}t=v,l=y,i=G,q!=null?Fl(e,!!l,q,!1):!!i!=!!l&&(t!=null?Fl(e,!!l,t,!0):Fl(e,!!l,l?[]:"",!1));return;case"textarea":G=q=null;for(v in l)if(o=l[v],l.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ye(e,t,v,null,i,o)}for(y in i)if(o=i[y],d=l[y],i.hasOwnProperty(y)&&(o!=null||d!=null))switch(y){case"value":q=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==d&&Ye(e,t,y,o,i,d)}Uf(e,q,G);return;case"option":for(var oe in l)if(q=l[oe],l.hasOwnProperty(oe)&&q!=null&&!i.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ye(e,t,oe,null,i,q)}for(w in i)if(q=i[w],G=l[w],i.hasOwnProperty(w)&&q!==G&&(q!=null||G!=null))switch(w){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Ye(e,t,w,q,i,G)}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 be in l)q=l[be],l.hasOwnProperty(be)&&q!=null&&!i.hasOwnProperty(be)&&Ye(e,t,be,null,i,q);for(B in i)if(q=i[B],G=l[B],i.hasOwnProperty(B)&&q!==G&&(q!=null||G!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:Ye(e,t,B,q,i,G)}return;default:if(Ju(t)){for(var Ve in l)q=l[Ve],l.hasOwnProperty(Ve)&&q!==void 0&&!i.hasOwnProperty(Ve)&&Us(e,t,Ve,void 0,i,q);for(V in i)q=i[V],G=l[V],!i.hasOwnProperty(V)||q===G||q===void 0&&G===void 0||Us(e,t,V,q,i,G);return}}for(var O in l)q=l[O],l.hasOwnProperty(O)&&q!=null&&!i.hasOwnProperty(O)&&Ye(e,t,O,null,i,q);for(J in i)q=i[J],G=l[J],!i.hasOwnProperty(J)||q===G||q==null&&G==null||Ye(e,t,J,q,i,G)}function Gm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function o1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],d=o.transferSize,y=o.initiatorType,v=o.duration;if(d&&v&&Gm(y)){for(y=0,v=o.responseEnd,i+=1;i<l.length;i++){var w=l[i],B=w.startTime;if(B>v)break;var V=w.transferSize,J=w.initiatorType;V&&Gm(J)&&(w=w.responseEnd,y+=V*(w<v?1:(v-B)/(w-B)))}if(--i,t+=8*(d+y)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bs=null,Hs=null;function eu(e){return e.nodeType===9?e:e.ownerDocument}function Ym(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 Vm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function qs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gs=null;function s1(){var e=window.event;return e&&e.type==="popstate"?e===Gs?!1:(Gs=e,!0):(Gs=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,c1=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,f1=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(e){return Qm.resolve(null).then(e).catch(d1)}:Xm;function d1(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function Zm(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),wi(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")kr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,kr(l);for(var d=l.firstChild;d;){var y=d.nextSibling,v=d.nodeName;d[qi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=y}}else l==="body"&&kr(e.ownerDocument.body);l=o}while(l);wi(t)}function Im(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(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 Ys(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ys(l),Zu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function h1(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[qi])switch(t){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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function m1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=tn(e.nextSibling),e===null))return null;return e}function Fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function Vs(e){return e.data==="$?"||e.data==="$~"}function Xs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function p1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qs=null;function Km(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return tn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Jm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function $m(e,t,l){switch(t=eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function kr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zu(e)}var nn=new Map,Wm=new Set;function tu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=X.d;X.d={f:g1,r:y1,D:b1,C:x1,L:v1,m:S1,X:C1,S:k1,M:E1};function g1(){var e=Bn.f(),t=Za();return e||t}function y1(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):Bn.r(e)}var Ci=typeof document>"u"?null:document;function Pm(e,t,l){var i=Ci;if(i&&typeof t=="string"&&t){var o=Ft(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),Wm.has(o)||(Wm.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),bt(t,"link",e),ft(t),i.head.appendChild(t)))}}function b1(e){Bn.D(e),Pm("dns-prefetch",e,null)}function x1(e,t){Bn.C(e,t),Pm("preconnect",e,t)}function v1(e,t,l){Bn.L(e,t,l);var i=Ci;if(i&&e&&t){var o='link[rel="preload"][as="'+Ft(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Ft(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Ft(l.imageSizes)+'"]')):o+='[href="'+Ft(e)+'"]';var d=o;switch(t){case"style":d=Ei(e);break;case"script":d=Ti(e)}nn.has(d)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),nn.set(d,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Cr(d))||t==="script"&&i.querySelector(Er(d))||(t=i.createElement("link"),bt(t,"link",e),ft(t),i.head.appendChild(t)))}}function S1(e,t){Bn.m(e,t);var l=Ci;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ft(i)+'"][href="'+Ft(e)+'"]',d=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ti(e)}if(!nn.has(d)&&(e=g({rel:"modulepreload",href:e},t),nn.set(d,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Er(d)))return}i=l.createElement("link"),bt(i,"link",e),ft(i),l.head.appendChild(i)}}}function k1(e,t,l){Bn.S(e,t,l);var i=Ci;if(i&&e){var o=Zl(i).hoistableStyles,d=Ei(e);t=t||"default";var y=o.get(d);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Cr(d)))v.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=nn.get(d))&&Zs(e,l);var w=y=i.createElement("link");ft(w),bt(w,"link",e),w._p=new Promise(function(B,V){w.onload=B,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,nu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},o.set(d,y)}}}function C1(e,t){Bn.X(e,t);var l=Ci;if(l&&e){var i=Zl(l).hoistableScripts,o=Ti(e),d=i.get(o);d||(d=l.querySelector(Er(o)),d||(e=g({src:e,async:!0},t),(t=nn.get(o))&&Is(e,t),d=l.createElement("script"),ft(d),bt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(o,d))}}function E1(e,t){Bn.M(e,t);var l=Ci;if(l&&e){var i=Zl(l).hoistableScripts,o=Ti(e),d=i.get(o);d||(d=l.querySelector(Er(o)),d||(e=g({src:e,async:!0,type:"module"},t),(t=nn.get(o))&&Is(e,t),d=l.createElement("script"),ft(d),bt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(o,d))}}function ep(e,t,l,i){var o=(o=de.current)?tu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ei(l.href),l=Zl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,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=Ei(l.href);var d=Zl(o).hoistableStyles,y=d.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=o.querySelector(Cr(e)))&&!d._p&&(y.instance=d,y.state.loading=5),nn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},nn.set(e,l),d||T1(o,e,l,y.state))),t&&i===null)throw Error(u(528,""));return y}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ti(l),l=Zl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ei(e){return'href="'+Ft(e)+'"'}function Cr(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function T1(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),bt(t,"link",l),ft(t),e.head.appendChild(t))}function Ti(e){return'[src="'+Ft(e)+'"]'}function Er(e){return"script[async]"+e}function np(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ft(l.href)+'"]');if(i)return t.instance=i,ft(i),i;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ft(i),bt(i,"style",o),nu(i,l.precedence,e),t.instance=i;case"stylesheet":o=Ei(l.href);var d=e.querySelector(Cr(o));if(d)return t.state.loading|=4,t.instance=d,ft(d),d;i=tp(l),(o=nn.get(o))&&Zs(i,o),d=(e.ownerDocument||e).createElement("link"),ft(d);var y=d;return y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),bt(d,"link",i),t.state.loading|=4,nu(d,l.precedence,e),t.instance=d;case"script":return d=Ti(l.src),(o=e.querySelector(Er(d)))?(t.instance=o,ft(o),o):(i=l,(o=nn.get(d))&&(i=g({},l),Is(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),bt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,nu(i,l.precedence,e));return t.instance}function nu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,d=o,y=0;y<i.length;y++){var v=i[y];if(v.dataset.precedence===t)d=v;else if(d!==o)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lu=null;function lp(e,t,l){if(lu===null){var i=new Map,o=lu=new Map;o.set(l,i)}else o=lu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var d=l[o];if(!(d[qi]||d[mt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var v=i.get(y);v?v.push(d):i.set(y,[d])}}return i}function ip(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function w1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function A1(e,t,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 o=Ei(i.href),d=t.querySelector(Cr(o));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=iu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=d,ft(d);return}d=t.ownerDocument||t,i=tp(i),(o=nn.get(o))&&Zs(i,o),d=d.createElement("link"),ft(d);var y=d;y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),bt(d,"link",i),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=iu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Fs=0;function z1(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Fs===0&&(Fs=62500*o1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Fs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ru=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ru=new Map,t.forEach(_1,e),ru=null,iu.call(e))}function _1(e,t){if(!(t.state.loading&4)){var l=ru.get(e);if(l)var i=l.get(null);else{l=new Map,ru.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<o.length;d++){var y=o[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),i=y)}i&&l.set(null,i)}o=t.instance,y=o.getAttribute("data-precedence"),d=l.get(y)||i,d===i&&l.set(null,o),l.set(y,o),this.count++,i=iu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),d?d.parentNode.insertBefore(o,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Tr={$$typeof:L,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function M1(e,t,l,i,o,d,y,v,w){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=Yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.hiddenUpdates=Yu(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function ap(e,t,l,i,o,d,y,v,w,B,V,J){return e=new M1(e,t,l,y,w,B,V,J,v),t=1,d===!0&&(t|=24),d=Ht(3,null,null,t),e.current=d,d.stateNode=e,t=Ao(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:l,cache:t},Oo(d),e}function up(e){return e?(e=ni,e):ni}function op(e,t,l,i,o,d){o=up(o),i.context===null?i.context=o:i.pendingContext=o,i=Jn(t),i.payload={element:l},d=d===void 0?null:d,d!==null&&(i.callback=d),l=$n(e,i,t),l!==null&&(Dt(l,e,t),lr(l,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ks(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Sl(e,67108864);t!==null&&Dt(t,e,67108864),Ks(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=Xt();t=Vu(t);var l=Sl(e,t);l!==null&&Dt(l,e,t),Ks(e,t)}}var uu=!0;function O1(e,t,l,i){var o=T.T;T.T=null;var d=X.p;try{X.p=2,Js(e,t,l,i)}finally{X.p=d,T.T=o}}function N1(e,t,l,i){var o=T.T;T.T=null;var d=X.p;try{X.p=8,Js(e,t,l,i)}finally{X.p=d,T.T=o}}function Js(e,t,l,i){if(uu){var o=$s(i);if(o===null)Ls(e,t,i,ou,l),hp(e,i);else if(R1(o,e,t,l,i))i.stopPropagation();else if(hp(e,i),t&4&&-1<D1.indexOf(e)){for(;o!==null;){var d=Ql(o);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=gl(d.pendingLanes);if(y!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var w=1<<31-Qe(y);v.entanglements[1]|=w,y&=~w}pn(d),(Ue&6)===0&&(Xa=kt()+500,xr(0))}}break;case 31:case 13:v=Sl(d,2),v!==null&&Dt(v,d,2),Za(),Ks(d,2)}if(d=$s(i),d===null&&Ls(e,t,i,ou,l),d===o)break;o=d}o!==null&&i.stopPropagation()}else Ls(e,t,i,null,l)}}function $s(e){return e=Wu(e),Ws(e)}var ou=null;function Ws(e){if(ou=null,e=Xl(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ou=e,null}function dp(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"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Gu()){case I:return 2;case ae:return 8;case xe:case we:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Ps=!1,ol=null,sl=null,cl=null,wr=new Map,Ar=new Map,fl=[],D1="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 hp(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":wr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function zr(e,t,l,i,o,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:d,targetContainers:[o]},t!==null&&(t=Ql(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function R1(e,t,l,i,o){switch(t){case"focusin":return ol=zr(ol,e,t,l,i,o),!0;case"dragenter":return sl=zr(sl,e,t,l,i,o),!0;case"mouseover":return cl=zr(cl,e,t,l,i,o),!0;case"pointerover":var d=o.pointerId;return wr.set(d,zr(wr.get(d)||null,e,t,l,i,o)),!0;case"gotpointercapture":return d=o.pointerId,Ar.set(d,zr(Ar.get(d)||null,e,t,l,i,o)),!0}return!1}function mp(e){var t=Xl(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,zf(e.priority,function(){fp(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,zf(e.priority,function(){fp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=$s(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);$u=i,l.target.dispatchEvent(i),$u=null}else return t=Ql(l),t!==null&&cp(t),e.blockedOn=l,!1;t.shift()}return!0}function pp(e,t,l){su(e)&&l.delete(t)}function j1(){Ps=!1,ol!==null&&su(ol)&&(ol=null),sl!==null&&su(sl)&&(sl=null),cl!==null&&su(cl)&&(cl=null),wr.forEach(pp),Ar.forEach(pp)}function cu(e,t){e.blockedOn===t&&(e.blockedOn=null,Ps||(Ps=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,j1)))}var fu=null;function gp(e){fu!==e&&(fu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){fu===e&&(fu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Ws(i||l)===null)continue;break}var d=Ql(l);d!==null&&(e.splice(t,3),t-=3,$o(d,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function wi(e){function t(w){return cu(w,e)}ol!==null&&cu(ol,e),sl!==null&&cu(sl,e),cl!==null&&cu(cl,e),wr.forEach(t),Ar.forEach(t);for(var l=0;l<fl.length;l++){var i=fl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<fl.length&&(l=fl[0],l.blockedOn===null);)mp(l),l.blockedOn===null&&fl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],d=l[i+1],y=o[At]||null;if(typeof d=="function")y||gp(l);else if(y){var v=null;if(d&&d.hasAttribute("formAction")){if(o=d,y=d[At]||null)v=y.formAction;else if(Ws(o)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),gp(l)}}}function yp(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=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,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function ec(e){this._internalRoot=e}du.prototype.render=ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Xt();op(l,i,e,t,null,null)},du.prototype.unmount=ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Za(),t[Vl]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=Af();e={blockedOn:null,target:e,priority:t};for(var l=0;l<fl.length&&t!==0&&t<fl[l].priority;l++);fl.splice(l,0,e),l===0&&mp(e)}};var bp=a.version;if(bp!=="19.2.4")throw Error(u(527,bp,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var L1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hu.isDisabled&&hu.supportsFiber)try{Ct=hu.inject(L1),ot=hu}catch{}}return Mr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,i="",o=Th,d=wh,y=Ah;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ap(e,1,!1,null,null,l,i,null,o,d,y,yp),e[Vl]=t.current,js(e),new ec(t)},Mr.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var i=!1,o="",d=Th,y=wh,v=Ah,w=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(w=l.formState)),t=ap(e,1,!0,t,l??null,i,o,w,d,y,v,yp),t.context=up(null),l=t.current,i=Xt(),i=Vu(i),o=Jn(i),o.callback=null,$n(l,o,i),l=i,t.current.lanes=l,Hi(t,l),pn(t),e[Vl]=t.current,js(e),new du(t)},Mr.version="19.2.4",Mr}var zp;function Z1(){if(zp)return lc.exports;zp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),lc.exports=Q1(),lc.exports}var I1=Z1();const F1=Mu(I1);function K1(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const J1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,W1={};function _p(n,a){return(W1.jsx?$1:J1).test(n)}const P1=/[ \t\n\f\r]/g;function ex(n){return typeof n=="object"?n.type==="text"?Mp(n.value):!1:Mp(n)}function Mp(n){return n.replace(P1,"")===""}class Qr{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}Qr.prototype.normal={};Qr.prototype.property={};Qr.prototype.space=void 0;function Bg(n,a){const r={},u={};for(const s of n)Object.assign(r,s.property),Object.assign(u,s.normal);return new Qr(r,u,a)}function _c(n){return n.toLowerCase()}class jt{constructor(a,r){this.attribute=r,this.property=a}}jt.prototype.attribute="";jt.prototype.booleanish=!1;jt.prototype.boolean=!1;jt.prototype.commaOrSpaceSeparated=!1;jt.prototype.commaSeparated=!1;jt.prototype.defined=!1;jt.prototype.mustUseProperty=!1;jt.prototype.number=!1;jt.prototype.overloadedBoolean=!1;jt.prototype.property="";jt.prototype.spaceSeparated=!1;jt.prototype.space=void 0;let tx=0;const Ee=Bl(),ut=Bl(),Mc=Bl(),te=Bl(),Fe=Bl(),Oi=Bl(),Qt=Bl();function Bl(){return 2**++tx}const Oc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ut,commaOrSpaceSeparated:Qt,commaSeparated:Oi,number:te,overloadedBoolean:Mc,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),uc=Object.keys(Oc);class Fc extends jt{constructor(a,r,u,s){let c=-1;if(super(a,r),Op(this,"space",s),typeof u=="number")for(;++c<uc.length;){const f=uc[c];Op(this,uc[c],(u&Oc[f])===Oc[f])}}}Fc.prototype.defined=!0;function Op(n,a,r){r&&(n[a]=r)}function Di(n){const a={},r={};for(const[u,s]of Object.entries(n.properties)){const c=new Fc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[_c(u)]=u,r[_c(c.attribute)]=u}return new Qr(a,r,n.space)}const Hg=Di({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Fe,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:te,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Fe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:ut,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function qg(n,a){return a in n?n[a]:a}function Gg(n,a){return qg(n,a.toLowerCase())}const nx=Di({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oi,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Fe,autoFocus:Ee,autoPlay:Ee,blocking:Fe,capture:null,charSet:null,checked:Ee,cite:null,className:Fe,cols:te,colSpan:null,content:null,contentEditable:ut,controls:Ee,controlsList:Fe,coords:te|Oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:Mc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Fe,height:te,hidden:Mc,high:te,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:Ee,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:te,pattern:null,ping:Fe,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Fe,required:Ee,reversed:Ee,rows:te,rowSpan:te,sandbox:Fe,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ut,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Gg}),lx=Di({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",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:Qt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Fe,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Oi,g2:Oi,glyphName:Oi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qg}),Yg=Di({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Vg=Di({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gg}),Xg=Di({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),ix={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"},rx=/[A-Z]/g,Np=/-[a-z]/g,ax=/^data[-\w.:]+$/i;function ux(n,a){const r=_c(a);let u=a,s=jt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ax.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Np,sx);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Np.test(c)){let f=c.replace(rx,ox);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=Fc}return new s(u,a)}function ox(n){return"-"+n.toLowerCase()}function sx(n){return n.charAt(1).toUpperCase()}const cx=Bg([Hg,nx,Yg,Vg,Xg],"html"),Kc=Bg([Hg,lx,Yg,Vg,Xg],"svg");function fx(n){return n.join(" ").trim()}var Ai={},oc,Dp;function dx(){if(Dp)return oc;Dp=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,h=/^\s+|\s+$/g,p=`
|
|
50
|
+
`,m="/",b="*",g="",S="comment",x="declaration";function A(R,M){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];M=M||{};var H=1,L=1;function ee(K){var $=K.match(a);$&&(H+=$.length);var T=K.lastIndexOf(p);L=~T?K.length-T:L+K.length}function Z(){var K={line:H,column:L};return function($){return $.position=new D(K),ue(),$}}function D(K){this.start=K,this.end={line:H,column:L},this.source=M.source}D.prototype.content=R;function P(K){var $=new Error(M.source+":"+H+":"+L+": "+K);if($.reason=K,$.filename=M.source,$.line=H,$.column=L,$.source=R,!M.silent)throw $}function W(K){var $=K.exec(R);if($){var T=$[0];return ee(T),R=R.slice(T.length),$}}function ue(){W(r)}function U(K){var $;for(K=K||[];$=ie();)$!==!1&&K.push($);return K}function ie(){var K=Z();if(!(m!=R.charAt(0)||b!=R.charAt(1))){for(var $=2;g!=R.charAt($)&&(b!=R.charAt($)||m!=R.charAt($+1));)++$;if($+=2,g===R.charAt($-1))return P("End of comment missing");var T=R.slice(2,$-2);return L+=2,ee(T),R=R.slice($),L+=2,K({type:S,comment:T})}}function re(){var K=Z(),$=W(u);if($){if(ie(),!W(s))return P("property missing ':'");var T=W(c),X=K({type:x,property:N($[0].replace(n,g)),value:T?N(T[0].replace(n,g)):g});return W(f),X}}function ye(){var K=[];U(K);for(var $;$=re();)$!==!1&&(K.push($),U(K));return K}return ue(),ye()}function N(R){return R?R.replace(h,g):g}return oc=A,oc}var Rp;function hx(){if(Rp)return Ai;Rp=1;var n=Ai&&Ai.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=r;const a=n(dx());function r(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,a.default)(u),h=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:b}=p;h?s(m,b,p):b&&(c=c||{},c[m]=b)}),c}return Ai}var Or={},jp;function mx(){if(jp)return Or;jp=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||r.test(m)||n.test(m)},f=function(m,b){return b.toUpperCase()},h=function(m,b){return"".concat(b,"-")},p=function(m,b){return b===void 0&&(b={}),c(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(s,h):m=m.replace(u,h),m.replace(a,f))};return Or.camelCase=p,Or}var Nr,Lp;function px(){if(Lp)return Nr;Lp=1;var n=Nr&&Nr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(hx()),r=mx();function u(s,c){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(h,p){h&&p&&(f[(0,r.camelCase)(h,c)]=p)}),f}return u.default=u,Nr=u,Nr}var gx=px();const yx=Mu(gx),Qg=Zg("end"),Jc=Zg("start");function Zg(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};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 bx(n){const a=Jc(n),r=Qg(n);if(a&&r)return{start:a,end:r}}function Br(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Up(n.position):"start"in n||"end"in n?Up(n):"line"in n||"column"in n?Nc(n):""}function Nc(n){return Bp(n&&n.line)+":"+Bp(n&&n.column)}function Up(n){return Nc(n&&n.start)+"-"+Nc(n&&n.end)}function Bp(n){return n&&typeof n=="number"?n:1}class St extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let s="",c={},f=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof a=="string"?s=a:!c.cause&&a&&(f=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const h=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=h?h.line:void 0,this.name=Br(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const $c={}.hasOwnProperty,xx=new Map,vx=/[A-Z]/g,Sx=new Set(["table","tbody","thead","tfoot","tr"]),kx=new Set(["td","th"]),Ig="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cx(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=Ox(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=Mx(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Kc:cx,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Fg(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function Fg(n,a,r){if(a.type==="element")return Ex(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Tx(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Ax(n,a,r);if(a.type==="mdxjsEsm")return wx(n,a);if(a.type==="root")return zx(n,a,r);if(a.type==="text")return _x(n,a)}function Ex(n,a,r){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Kc,n.schema=s),n.ancestors.push(a);const c=Jg(n,a.tagName,!1),f=Nx(n,a);let h=Pc(n,a);return Sx.has(a.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!ex(p):!0})),Kg(n,f,c,a),Wc(f,h),n.ancestors.pop(),n.schema=u,n.create(a,c,f,r)}function Tx(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Gr(n,a.position)}function wx(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Gr(n,a.position)}function Ax(n,a,r){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=Kc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:Jg(n,a.name,!0),f=Dx(n,a),h=Pc(n,a);return Kg(n,f,c,a),Wc(f,h),n.ancestors.pop(),n.schema=u,n.create(a,c,f,r)}function zx(n,a,r){const u={};return Wc(u,Pc(n,a)),n.create(a,n.Fragment,u,r)}function _x(n,a){return a.value}function Kg(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Wc(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function Mx(n,a,r){return u;function u(s,c,f,h){const m=Array.isArray(f.children)?r:a;return h?m(c,f,h):m(c,f)}}function Ox(n,a){return r;function r(u,s,c,f){const h=Array.isArray(c.children),p=Jc(u);return a(s,c,f,h,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function Nx(n,a){const r={};let u,s;for(s in a.properties)if(s!=="children"&&$c.call(a.properties,s)){const c=Rx(n,s,a.properties[s]);if(c){const[f,h]=c;n.tableCellAlignToStyle&&f==="align"&&typeof h=="string"&&kx.has(a.tagName)?u=h:r[f]=h}}if(u){const c=r.style||(r.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function Dx(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const h=f.properties[0];h.type,Object.assign(r,n.evaluater.evaluateExpression(h.argument))}else Gr(n,a.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const h=u.value.data.estree.body[0];h.type,c=n.evaluater.evaluateExpression(h.expression)}else Gr(n,a.position);else c=u.value===null?!0:u.value;r[s]=c}return r}function Pc(n,a){const r=[];let u=-1;const s=n.passKeys?new Map:xx;for(;++u<a.children.length;){const c=a.children[u];let f;if(n.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=s.get(p)||0;f=p+"-"+m,s.set(p,m+1)}}const h=Fg(n,c,f);h!==void 0&&r.push(h)}return r}function Rx(n,a,r){const u=ux(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?K1(r):fx(r)),u.property==="style"){let s=typeof r=="object"?r:jx(n,String(r));return n.stylePropertyNameCase==="css"&&(s=Lx(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?ix[u.property]||u.property:u.attribute,r]}}function jx(n,a){try{return yx(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,s=new St("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Ig+"#cannot-parse-style-attribute",s}}function Jg(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,f;for(;++c<s.length;){const h=_p(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:h,computed:!!(c&&h.type==="Literal"),optional:!1}:h}u=f}else u=_p(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return $c.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Gr(n)}function Gr(n,a){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Ig+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Lx(n){const a={};let r;for(r in n)$c.call(n,r)&&(a[Ux(r)]=n[r]);return a}function Ux(n){let a=n.replace(vx,Bx);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Bx(n){return"-"+n.toLowerCase()}const sc={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"]},Hx={};function ef(n,a){const r=Hx,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return $g(n,u,s)}function $g(n,a,r){if(qx(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Hp(n.children,a,r)}return Array.isArray(n)?Hp(n,a,r):""}function Hp(n,a,r){const u=[];let s=-1;for(;++s<n.length;)u[s]=$g(n[s],a,r);return u.join("")}function qx(n){return!!(n&&typeof n=="object")}const qp=document.createElement("i");function tf(n){const a="&"+n+";";qp.innerHTML=a;const r=qp.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function Zt(n,a,r,u){const s=n.length;let c=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(a,r),n.splice(...f);else for(r&&n.splice(a,r);c<u.length;)f=u.slice(c,c+1e4),f.unshift(a,0),n.splice(...f),c+=1e4,a+=1e4}function ln(n,a){return n.length>0?(Zt(n,n.length,0,a),n):a}const Gp={}.hasOwnProperty;function Wg(n){const a={};let r=-1;for(;++r<n.length;)Gx(a,n[r]);return a}function Gx(n,a){let r;for(r in a){const s=(Gp.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let f;if(c)for(f in c){Gp.call(s,f)||(s[f]=[]);const h=c[f];Yx(s[f],Array.isArray(h)?h:h?[h]:[])}}}function Yx(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);Zt(n,0,0,u)}function Pg(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function sn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=pl(/[A-Za-z]/),vt=pl(/[\dA-Za-z]/),Vx=pl(/[#-'*+\--9=?A-Z^-~]/);function Eu(n){return n!==null&&(n<32||n===127)}const Dc=pl(/\d/),Xx=pl(/[\dA-Fa-f]/),Qx=pl(/[!-/:-@[-`{-~]/);function ge(n){return n!==null&&n<-2}function Ie(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const Ou=pl(new RegExp("\\p{P}|\\p{S}","u")),Ul=pl(/\s/);function pl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Ri(n){const a=[];let r=-1,u=0,s=0;for(;++r<n.length;){const c=n.charCodeAt(r);let f="";if(c===37&&vt(n.charCodeAt(r+1))&&vt(n.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const h=n.charCodeAt(r+1);c<56320&&h>56319&&h<57344?(f=String.fromCharCode(c,h),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,r),encodeURIComponent(f)),u=r+s+1,f=""),s&&(r+=s,s=0)}return a.join("")+n.slice(u)}function De(n,a,r,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return _e(p)?(n.enter(r),h(p)):a(p)}function h(p){return _e(p)&&c++<s?(n.consume(p),h):(n.exit(r),a(p))}}const Zx={tokenize:Ix};function Ix(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let r;return a;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),De(n,a,"linePrefix")}function s(h){return n.enter("paragraph"),c(h)}function c(h){const p=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,f(h)}function f(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return ge(h)?(n.consume(h),n.exit("chunkText"),c):(n.consume(h),f)}}const Fx={tokenize:Kx},Yp={tokenize:Jx};function Kx(n){const a=this,r=[];let u=0,s,c,f;return h;function h(L){if(u<r.length){const ee=r[u];return a.containerState=ee[1],n.attempt(ee[0].continuation,p,m)(L)}return m(L)}function p(L){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&H();const ee=a.events.length;let Z=ee,D;for(;Z--;)if(a.events[Z][0]==="exit"&&a.events[Z][1].type==="chunkFlow"){D=a.events[Z][1].end;break}M(u);let P=ee;for(;P<a.events.length;)a.events[P][1].end={...D},P++;return Zt(a.events,Z+1,0,a.events.slice(ee)),a.events.length=P,m(L)}return h(L)}function m(L){if(u===r.length){if(!s)return S(L);if(s.currentConstruct&&s.currentConstruct.concrete)return A(L);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Yp,b,g)(L)}function b(L){return s&&H(),M(u),S(L)}function g(L){return a.parser.lazy[a.now().line]=u!==r.length,f=a.now().offset,A(L)}function S(L){return a.containerState={},n.attempt(Yp,x,A)(L)}function x(L){return u++,r.push([a.currentConstruct,a.containerState]),S(L)}function A(L){if(L===null){s&&H(),M(0),n.consume(L);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),N(L)}function N(L){if(L===null){R(n.exit("chunkFlow"),!0),M(0),n.consume(L);return}return ge(L)?(n.consume(L),R(n.exit("chunkFlow")),u=0,a.interrupt=void 0,h):(n.consume(L),N)}function R(L,ee){const Z=a.sliceStream(L);if(ee&&Z.push(null),L.previous=c,c&&(c.next=L),c=L,s.defineSkip(L.start),s.write(Z),a.parser.lazy[L.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<f&&(!s.events[D][1].end||s.events[D][1].end.offset>f))return;const P=a.events.length;let W=P,ue,U;for(;W--;)if(a.events[W][0]==="exit"&&a.events[W][1].type==="chunkFlow"){if(ue){U=a.events[W][1].end;break}ue=!0}for(M(u),D=P;D<a.events.length;)a.events[D][1].end={...U},D++;Zt(a.events,W+1,0,a.events.slice(P)),a.events.length=D}}function M(L){let ee=r.length;for(;ee-- >L;){const Z=r[ee];a.containerState=Z[1],Z[0].exit.call(a,n)}r.length=L}function H(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Jx(n,a,r){return De(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ni(n){if(n===null||Ie(n)||Ul(n))return 1;if(Ou(n))return 2}function Nu(n,a,r){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(a=c(a,r),u.push(c))}return a}const Rc={name:"attention",resolveAll:$x,tokenize:Wx};function $x(n,a){let r=-1,u,s,c,f,h,p,m,b;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const g={...n[u][1].end},S={...n[r][1].start};Vp(g,-p),Vp(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...n[u][1].end}},h={type:p>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:S},c={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...h.end}},n[u][1].end={...f.start},n[r][1].start={...h.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=ln(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=ln(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=ln(m,Nu(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),m=ln(m,[["exit",c,a],["enter",h,a],["exit",h,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(b=2,m=ln(m,[["enter",n[r][1],a],["exit",n[r][1],a]])):b=0,Zt(n,u-1,r-u+3,m),r=u+m.length-b-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function Wx(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Ni(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),h(p)}function h(p){if(p===c)return n.consume(p),h;const m=n.exit("attentionSequence"),b=Ni(p),g=!b||b===2&&s||r.includes(p),S=!s||s===2&&b||r.includes(u);return m._open=!!(c===42?g:g&&(s||!S)),m._close=!!(c===42?S:S&&(b||!g)),a(p)}}function Vp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Px={name:"autolink",tokenize:ev};function ev(n,a,r){let u=0;return s;function s(x){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(x){return Tt(x)?(n.consume(x),f):x===64?r(x):m(x)}function f(x){return x===43||x===45||x===46||vt(x)?(u=1,h(x)):m(x)}function h(x){return x===58?(n.consume(x),u=0,p):(x===43||x===45||x===46||vt(x))&&u++<32?(n.consume(x),h):(u=0,m(x))}function p(x){return x===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):x===null||x===32||x===60||Eu(x)?r(x):(n.consume(x),p)}function m(x){return x===64?(n.consume(x),b):Vx(x)?(n.consume(x),m):r(x)}function b(x){return vt(x)?g(x):r(x)}function g(x){return x===46?(n.consume(x),u=0,b):x===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):S(x)}function S(x){if((x===45||vt(x))&&u++<63){const A=x===45?S:g;return n.consume(x),A}return r(x)}}const Zr={partial:!0,tokenize:tv};function tv(n,a,r){return u;function u(c){return _e(c)?De(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||ge(c)?a(c):r(c)}}const ey={continuation:{tokenize:lv},exit:iv,name:"blockQuote",tokenize:nv};function nv(n,a,r){const u=this;return s;function s(f){if(f===62){const h=u.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return r(f)}function c(f){return _e(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function lv(n,a,r){const u=this;return s;function s(f){return _e(f)?De(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(ey,a,r)(f)}}function iv(n){n.exit("blockQuote")}const ty={name:"characterEscape",tokenize:rv};function rv(n,a,r){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return Qx(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const ny={name:"characterReference",tokenize:av};function av(n,a,r){const u=this;let s=0,c,f;return h;function h(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),p}function p(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=vt,b(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=Xx,b):(n.enter("characterReferenceValue"),c=7,f=Dc,b(g))}function b(g){if(g===59&&s){const S=n.exit("characterReferenceValue");return f===vt&&!tf(u.sliceSerialize(S))?r(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(g)&&s++<c?(n.consume(g),b):r(g)}}const Xp={partial:!0,tokenize:ov},Qp={concrete:!0,name:"codeFenced",tokenize:uv};function uv(n,a,r){const u=this,s={partial:!0,tokenize:Z};let c=0,f=0,h;return p;function p(D){return m(D)}function m(D){const P=u.events[u.events.length-1];return c=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,h=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(D)}function b(D){return D===h?(f++,n.consume(D),b):f<3?r(D):(n.exit("codeFencedFenceSequence"),_e(D)?De(n,g,"whitespace")(D):g(D))}function g(D){return D===null||ge(D)?(n.exit("codeFencedFence"),u.interrupt?a(D):n.check(Xp,N,ee)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||ge(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):_e(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),De(n,x,"whitespace")(D)):D===96&&D===h?r(D):(n.consume(D),S)}function x(D){return D===null||ge(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(D))}function A(D){return D===null||ge(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===h?r(D):(n.consume(D),A)}function N(D){return n.attempt(s,ee,R)(D)}function R(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),M}function M(D){return c>0&&_e(D)?De(n,H,"linePrefix",c+1)(D):H(D)}function H(D){return D===null||ge(D)?n.check(Xp,N,ee)(D):(n.enter("codeFlowValue"),L(D))}function L(D){return D===null||ge(D)?(n.exit("codeFlowValue"),H(D)):(n.consume(D),L)}function ee(D){return n.exit("codeFenced"),a(D)}function Z(D,P,W){let ue=0;return U;function U($){return D.enter("lineEnding"),D.consume($),D.exit("lineEnding"),ie}function ie($){return D.enter("codeFencedFence"),_e($)?De(D,re,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):re($)}function re($){return $===h?(D.enter("codeFencedFenceSequence"),ye($)):W($)}function ye($){return $===h?(ue++,D.consume($),ye):ue>=f?(D.exit("codeFencedFenceSequence"),_e($)?De(D,K,"whitespace")($):K($)):W($)}function K($){return $===null||ge($)?(D.exit("codeFencedFence"),P($)):W($)}}}function ov(n,a,r){const u=this;return s;function s(f){return f===null?r(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}const cc={name:"codeIndented",tokenize:cv},sv={partial:!0,tokenize:fv};function cv(n,a,r){const u=this;return s;function s(m){return n.enter("codeIndented"),De(n,c,"linePrefix",5)(m)}function c(m){const b=u.events[u.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?f(m):r(m)}function f(m){return m===null?p(m):ge(m)?n.attempt(sv,f,p)(m):(n.enter("codeFlowValue"),h(m))}function h(m){return m===null||ge(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),h)}function p(m){return n.exit("codeIndented"),a(m)}}function fv(n,a,r){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?r(f):ge(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):De(n,c,"linePrefix",5)(f)}function c(f){const h=u.events[u.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(f):ge(f)?s(f):r(f)}}const dv={name:"codeText",previous:mv,resolve:hv,tokenize:pv};function hv(n){let a=n.length-4,r=3,u,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function mv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pv(n,a,r){let u=0,s,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),h(g)}function h(g){return g===96?(n.consume(g),u++,h):(n.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),p):g===96?(c=n.enter("codeTextSequence"),s=0,b(g)):ge(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ge(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function b(g){return g===96?(n.consume(g),s++,b):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(c.type="codeTextData",m(g))}}class gv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const s=r||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Dr(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Dr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Dr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Dr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Dr(this.left,r.reverse())}}}function Dr(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function ly(n){const a={};let r=-1,u,s,c,f,h,p,m;const b=new gv(n);for(;++r<b.length;){for(;r in a;)r=a[r];if(u=b.get(r),r&&u[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,yv(b,r)),r=a[r],m=!0);else if(u[1]._container){for(c=r,s=void 0;c--;)if(f=b.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...b.get(s)[1].start},h=b.slice(s,r),h.unshift(u),b.splice(s,r-s+1,h))}}return Zt(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function yv(n,a){const r=n.get(a)[1],u=n.get(a)[2];let s=a-1;const c=[];let f=r._tokenizer;f||(f=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const h=f.events,p=[],m={};let b,g,S=-1,x=r,A=0,N=0;const R=[N];for(;x;){for(;n.get(++s)[1]!==x;);c.push(s),x._tokenizer||(b=u.sliceStream(x),x.next||b.push(null),g&&f.defineSkip(x.start),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(b),x._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++S<h.length;)h[S][0]==="exit"&&h[S-1][0]==="enter"&&h[S][1].type===h[S-1][1].type&&h[S][1].start.line!==h[S][1].end.line&&(N=S+1,R.push(N),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(f.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),S=R.length;S--;){const M=h.slice(R[S],R[S+1]),H=c.pop();p.push([H,H+M.length-1]),n.splice(H,2,M)}for(p.reverse(),S=-1;++S<p.length;)m[A+p[S][0]]=A+p[S][1],A+=p[S][1]-p[S][0]-1;return m}const bv={resolve:vv,tokenize:Sv},xv={partial:!0,tokenize:kv};function vv(n){return ly(n),n}function Sv(n,a){let r;return u;function u(h){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?c(h):ge(h)?n.check(xv,f,c)(h):(n.consume(h),s)}function c(h){return n.exit("chunkContent"),n.exit("content"),a(h)}function f(h){return n.consume(h),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function kv(n,a,r){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),De(n,c,"linePrefix")}function c(f){if(f===null||ge(f))return r(f);const h=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,r,a)(f)}}function iy(n,a,r,u,s,c,f,h,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return g;function g(M){return M===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(M),n.exit(c),S):M===null||M===32||M===41||Eu(M)?r(M):(n.enter(u),n.enter(f),n.enter(h),n.enter("chunkString",{contentType:"string"}),N(M))}function S(M){return M===62?(n.enter(c),n.consume(M),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(h),n.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===62?(n.exit("chunkString"),n.exit(h),S(M)):M===null||M===60||ge(M)?r(M):(n.consume(M),M===92?A:x)}function A(M){return M===60||M===62||M===92?(n.consume(M),x):x(M)}function N(M){return!b&&(M===null||M===41||Ie(M))?(n.exit("chunkString"),n.exit(h),n.exit(f),n.exit(u),a(M)):b<m&&M===40?(n.consume(M),b++,N):M===41?(n.consume(M),b--,N):M===null||M===32||M===40||Eu(M)?r(M):(n.consume(M),M===92?R:N)}function R(M){return M===40||M===41||M===92?(n.consume(M),N):N(M)}}function ry(n,a,r,u,s,c){const f=this;let h=0,p;return m;function m(x){return n.enter(u),n.enter(s),n.consume(x),n.exit(s),n.enter(c),b}function b(x){return h>999||x===null||x===91||x===93&&!p||x===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?r(x):x===93?(n.exit(c),n.enter(s),n.consume(x),n.exit(s),n.exit(u),a):ge(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||ge(x)||h++>999?(n.exit("chunkString"),b(x)):(n.consume(x),p||(p=!_e(x)),x===92?S:g)}function S(x){return x===91||x===92||x===93?(n.consume(x),h++,g):g(x)}}function ay(n,a,r,u,s,c){let f;return h;function h(S){return S===34||S===39||S===40?(n.enter(u),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,p):r(S)}function p(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):(n.enter(c),m(S))}function m(S){return S===f?(n.exit(c),p(f)):S===null?r(S):ge(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),De(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===f||S===null||ge(S)?(n.exit("chunkString"),m(S)):(n.consume(S),S===92?g:b)}function g(S){return S===f||S===92?(n.consume(S),b):b(S)}}function Hr(n,a){let r;return u;function u(s){return ge(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,u):_e(s)?De(n,u,r?"linePrefix":"lineSuffix")(s):a(s)}}const Cv={name:"definition",tokenize:Tv},Ev={partial:!0,tokenize:wv};function Tv(n,a,r){const u=this;let s;return c;function c(x){return n.enter("definition"),f(x)}function f(x){return ry.call(u,n,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function h(x){return s=sn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),p):r(x)}function p(x){return Ie(x)?Hr(n,m)(x):m(x)}function m(x){return iy(n,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return n.attempt(Ev,g,g)(x)}function g(x){return _e(x)?De(n,S,"whitespace")(x):S(x)}function S(x){return x===null||ge(x)?(n.exit("definition"),u.parser.defined.push(s),a(x)):r(x)}}function wv(n,a,r){return u;function u(h){return Ie(h)?Hr(n,s)(h):r(h)}function s(h){return ay(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return _e(h)?De(n,f,"whitespace")(h):f(h)}function f(h){return h===null||ge(h)?a(h):r(h)}}const Av={name:"hardBreakEscape",tokenize:zv};function zv(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return ge(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const _v={name:"headingAtx",resolve:Mv,tokenize:Ov};function Mv(n,a){let r=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},c={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},Zt(n,u,r-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Ov(n,a,r){let u=0;return s;function s(b){return n.enter("atxHeading"),c(b)}function c(b){return n.enter("atxHeadingSequence"),f(b)}function f(b){return b===35&&u++<6?(n.consume(b),f):b===null||Ie(b)?(n.exit("atxHeadingSequence"),h(b)):r(b)}function h(b){return b===35?(n.enter("atxHeadingSequence"),p(b)):b===null||ge(b)?(n.exit("atxHeading"),a(b)):_e(b)?De(n,h,"whitespace")(b):(n.enter("atxHeadingText"),m(b))}function p(b){return b===35?(n.consume(b),p):(n.exit("atxHeadingSequence"),h(b))}function m(b){return b===null||b===35||Ie(b)?(n.exit("atxHeadingText"),h(b)):(n.consume(b),m)}}const Nv=["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"],Zp=["pre","script","style","textarea"],Dv={concrete:!0,name:"htmlFlow",resolveTo:Lv,tokenize:Uv},Rv={partial:!0,tokenize:Hv},jv={partial:!0,tokenize:Bv};function Lv(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function Uv(n,a,r){const u=this;let s,c,f,h,p;return m;function m(k){return b(k)}function b(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),c=!0,N):k===63?(n.consume(k),s=3,u.interrupt?a:C):Tt(k)?(n.consume(k),f=String.fromCharCode(k),R):r(k)}function S(k){return k===45?(n.consume(k),s=2,x):k===91?(n.consume(k),s=5,h=0,A):Tt(k)?(n.consume(k),s=4,u.interrupt?a:C):r(k)}function x(k){return k===45?(n.consume(k),u.interrupt?a:C):r(k)}function A(k){const le="CDATA[";return k===le.charCodeAt(h++)?(n.consume(k),h===le.length?u.interrupt?a:re:A):r(k)}function N(k){return Tt(k)?(n.consume(k),f=String.fromCharCode(k),R):r(k)}function R(k){if(k===null||k===47||k===62||Ie(k)){const le=k===47,he=f.toLowerCase();return!le&&!c&&Zp.includes(he)?(s=1,u.interrupt?a(k):re(k)):Nv.includes(f.toLowerCase())?(s=6,le?(n.consume(k),M):u.interrupt?a(k):re(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(k):c?H(k):L(k))}return k===45||vt(k)?(n.consume(k),f+=String.fromCharCode(k),R):r(k)}function M(k){return k===62?(n.consume(k),u.interrupt?a:re):r(k)}function H(k){return _e(k)?(n.consume(k),H):U(k)}function L(k){return k===47?(n.consume(k),U):k===58||k===95||Tt(k)?(n.consume(k),ee):_e(k)?(n.consume(k),L):U(k)}function ee(k){return k===45||k===46||k===58||k===95||vt(k)?(n.consume(k),ee):Z(k)}function Z(k){return k===61?(n.consume(k),D):_e(k)?(n.consume(k),Z):L(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(n.consume(k),p=k,P):_e(k)?(n.consume(k),D):W(k)}function P(k){return k===p?(n.consume(k),p=null,ue):k===null||ge(k)?r(k):(n.consume(k),P)}function W(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ie(k)?Z(k):(n.consume(k),W)}function ue(k){return k===47||k===62||_e(k)?L(k):r(k)}function U(k){return k===62?(n.consume(k),ie):r(k)}function ie(k){return k===null||ge(k)?re(k):_e(k)?(n.consume(k),ie):r(k)}function re(k){return k===45&&s===2?(n.consume(k),T):k===60&&s===1?(n.consume(k),X):k===62&&s===4?(n.consume(k),z):k===63&&s===3?(n.consume(k),C):k===93&&s===5?(n.consume(k),ve):ge(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Rv,Y,ye)(k)):k===null||ge(k)?(n.exit("htmlFlowData"),ye(k)):(n.consume(k),re)}function ye(k){return n.check(jv,K,Y)(k)}function K(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),$}function $(k){return k===null||ge(k)?ye(k):(n.enter("htmlFlowData"),re(k))}function T(k){return k===45?(n.consume(k),C):re(k)}function X(k){return k===47?(n.consume(k),f="",Q):re(k)}function Q(k){if(k===62){const le=f.toLowerCase();return Zp.includes(le)?(n.consume(k),z):re(k)}return Tt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),Q):re(k)}function ve(k){return k===93?(n.consume(k),C):re(k)}function C(k){return k===62?(n.consume(k),z):k===45&&s===2?(n.consume(k),C):re(k)}function z(k){return k===null||ge(k)?(n.exit("htmlFlowData"),Y(k)):(n.consume(k),z)}function Y(k){return n.exit("htmlFlow"),a(k)}}function Bv(n,a,r){const u=this;return s;function s(f){return ge(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):r(f)}function c(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}function Hv(n,a,r){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Zr,a,r)}}const qv={name:"htmlText",tokenize:Gv};function Gv(n,a,r){const u=this;let s,c,f;return h;function h(C){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(C),p}function p(C){return C===33?(n.consume(C),m):C===47?(n.consume(C),Z):C===63?(n.consume(C),L):Tt(C)?(n.consume(C),W):r(C)}function m(C){return C===45?(n.consume(C),b):C===91?(n.consume(C),c=0,A):Tt(C)?(n.consume(C),H):r(C)}function b(C){return C===45?(n.consume(C),x):r(C)}function g(C){return C===null?r(C):C===45?(n.consume(C),S):ge(C)?(f=g,X(C)):(n.consume(C),g)}function S(C){return C===45?(n.consume(C),x):g(C)}function x(C){return C===62?T(C):C===45?S(C):g(C)}function A(C){const z="CDATA[";return C===z.charCodeAt(c++)?(n.consume(C),c===z.length?N:A):r(C)}function N(C){return C===null?r(C):C===93?(n.consume(C),R):ge(C)?(f=N,X(C)):(n.consume(C),N)}function R(C){return C===93?(n.consume(C),M):N(C)}function M(C){return C===62?T(C):C===93?(n.consume(C),M):N(C)}function H(C){return C===null||C===62?T(C):ge(C)?(f=H,X(C)):(n.consume(C),H)}function L(C){return C===null?r(C):C===63?(n.consume(C),ee):ge(C)?(f=L,X(C)):(n.consume(C),L)}function ee(C){return C===62?T(C):L(C)}function Z(C){return Tt(C)?(n.consume(C),D):r(C)}function D(C){return C===45||vt(C)?(n.consume(C),D):P(C)}function P(C){return ge(C)?(f=P,X(C)):_e(C)?(n.consume(C),P):T(C)}function W(C){return C===45||vt(C)?(n.consume(C),W):C===47||C===62||Ie(C)?ue(C):r(C)}function ue(C){return C===47?(n.consume(C),T):C===58||C===95||Tt(C)?(n.consume(C),U):ge(C)?(f=ue,X(C)):_e(C)?(n.consume(C),ue):T(C)}function U(C){return C===45||C===46||C===58||C===95||vt(C)?(n.consume(C),U):ie(C)}function ie(C){return C===61?(n.consume(C),re):ge(C)?(f=ie,X(C)):_e(C)?(n.consume(C),ie):ue(C)}function re(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(n.consume(C),s=C,ye):ge(C)?(f=re,X(C)):_e(C)?(n.consume(C),re):(n.consume(C),K)}function ye(C){return C===s?(n.consume(C),s=void 0,$):C===null?r(C):ge(C)?(f=ye,X(C)):(n.consume(C),ye)}function K(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ie(C)?ue(C):(n.consume(C),K)}function $(C){return C===47||C===62||Ie(C)?ue(C):r(C)}function T(C){return C===62?(n.consume(C),n.exit("htmlTextData"),n.exit("htmlText"),a):r(C)}function X(C){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(C),n.exit("lineEnding"),Q}function Q(C){return _e(C)?De(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):ve(C)}function ve(C){return n.enter("htmlTextData"),f(C)}}const nf={name:"labelEnd",resolveAll:Qv,resolveTo:Zv,tokenize:Iv},Yv={tokenize:Fv},Vv={tokenize:Kv},Xv={tokenize:Jv};function Qv(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==r.length&&Zt(n,0,n.length,r),n}function Zv(n,a){let r=n.length,u=0,s,c,f,h;for(;r--;)if(s=n[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=r);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},b={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return h=[["enter",p,a],["enter",m,a]],h=ln(h,n.slice(c+1,c+u+3)),h=ln(h,[["enter",b,a]]),h=ln(h,Nu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),h=ln(h,[["exit",b,a],n[f-2],n[f-1],["exit",m,a]]),h=ln(h,n.slice(f+1)),h=ln(h,[["exit",p,a]]),Zt(n,c,n.length,h),n}function Iv(n,a,r){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return h;function h(S){return c?c._inactive?g(S):(f=u.parser.defined.includes(sn(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),p):r(S)}function p(S){return S===40?n.attempt(Yv,b,f?b:g)(S):S===91?n.attempt(Vv,b,f?m:g)(S):f?b(S):g(S)}function m(S){return n.attempt(Xv,b,g)(S)}function b(S){return a(S)}function g(S){return c._balanced=!0,r(S)}}function Fv(n,a,r){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Ie(g)?Hr(n,c)(g):c(g)}function c(g){return g===41?b(g):iy(n,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ie(g)?Hr(n,p)(g):b(g)}function h(g){return r(g)}function p(g){return g===34||g===39||g===40?ay(n,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function m(g){return Ie(g)?Hr(n,b)(g):b(g)}function b(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):r(g)}}function Kv(n,a,r){const u=this;return s;function s(h){return ry.call(u,n,c,f,"reference","referenceMarker","referenceString")(h)}function c(h){return u.parser.defined.includes(sn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(h):r(h)}function f(h){return r(h)}}function Jv(n,a,r){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):r(c)}}const $v={name:"labelStartImage",resolveAll:nf.resolveAll,tokenize:Wv};function Wv(n,a,r){const u=this;return s;function s(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),c}function c(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),f):r(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(h):a(h)}}const Pv={name:"labelStartLink",resolveAll:nf.resolveAll,tokenize:eS};function eS(n,a,r){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(f):a(f)}}const fc={name:"lineEnding",tokenize:tS};function tS(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),De(n,a,"linePrefix")}}const Cu={name:"thematicBreak",tokenize:nS};function nS(n,a,r){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,h(m)}function h(m){return m===s?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||ge(m))?(n.exit("thematicBreak"),a(m)):r(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),_e(m)?De(n,h,"whitespace")(m):h(m))}}const Rt={continuation:{tokenize:aS},exit:oS,name:"list",tokenize:rS},lS={partial:!0,tokenize:sS},iS={partial:!0,tokenize:uS};function rS(n,a,r){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return h;function h(x){const A=u.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!u.containerState.marker||x===u.containerState.marker:Dc(x)){if(u.containerState.type||(u.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),x===42||x===45?n.check(Cu,r,m)(x):m(x);if(!u.interrupt||x===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(x)}return r(x)}function p(x){return Dc(x)&&++f<10?(n.consume(x),p):(!u.interrupt||f<2)&&(u.containerState.marker?x===u.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),m(x)):r(x)}function m(x){return n.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||x,n.check(Zr,u.interrupt?r:b,n.attempt(lS,S,g))}function b(x){return u.containerState.initialBlankLine=!0,c++,S(x)}function g(x){return _e(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),S):r(x)}function S(x){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(x)}}function aS(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Zr,s,c);function s(h){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,De(n,a,"listItemIndent",u.containerState.size+1)(h)}function c(h){return u.containerState.furtherBlankLines||!_e(h)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(h)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(iS,a,f)(h))}function f(h){return u.containerState._closeFlow=!0,u.interrupt=void 0,De(n,n.attempt(Rt,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function uS(n,a,r){const u=this;return De(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(c):r(c)}}function oS(n){n.exit(this.containerState.type)}function sS(n,a,r){const u=this;return De(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!_e(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):r(c)}}const Ip={name:"setextUnderline",resolveTo:cS,tokenize:fS};function cS(n,a){let r=n.length,u,s,c;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!c&&n[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function fS(n,a,r){const u=this;let s;return c;function c(m){let b=u.events.length,g;for(;b--;)if(u.events[b][1].type!=="lineEnding"&&u.events[b][1].type!=="linePrefix"&&u.events[b][1].type!=="content"){g=u.events[b][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(n.enter("setextHeadingLine"),s=m,f(m)):r(m)}function f(m){return n.enter("setextHeadingLineSequence"),h(m)}function h(m){return m===s?(n.consume(m),h):(n.exit("setextHeadingLineSequence"),_e(m)?De(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||ge(m)?(n.exit("setextHeadingLine"),a(m)):r(m)}}const dS={tokenize:hS};function hS(n){const a=this,r=n.attempt(Zr,u,n.attempt(this.parser.constructs.flowInitial,s,De(n,n.attempt(this.parser.constructs.flow,s,n.attempt(bv,s)),"linePrefix")));return r;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const mS={resolveAll:oy()},pS=uy("string"),gS=uy("text");function uy(n){return{resolveAll:oy(n==="text"?yS:void 0),tokenize:a};function a(r){const u=this,s=this.parser.constructs[n],c=r.attempt(s,f,h);return f;function f(b){return m(b)?c(b):h(b)}function h(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),p}function p(b){return m(b)?(r.exit("data"),c(b)):(r.consume(b),p)}function m(b){if(b===null)return!0;const g=s[b];let S=-1;if(g)for(;++S<g.length;){const x=g[S];if(!x.previous||x.previous.call(u,u.previous))return!0}return!1}}}function oy(n){return a;function a(r,u){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(r,u):r}}function yS(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],s=a.sliceStream(u);let c=s.length,f=-1,h=0,p;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(m===-2)p=!0,h++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(h=0),h){const m={type:r===n.length||p||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-h,offset:u.end.offset-h},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(r,0,["enter",m,a],["exit",m,a]),r+=2)}r++}return n}const bS={42:Rt,43:Rt,45:Rt,48:Rt,49:Rt,50:Rt,51:Rt,52:Rt,53:Rt,54:Rt,55:Rt,56:Rt,57:Rt,62:ey},xS={91:Cv},vS={[-2]:cc,[-1]:cc,32:cc},SS={35:_v,42:Cu,45:[Ip,Cu],60:Dv,61:Ip,95:Cu,96:Qp,126:Qp},kS={38:ny,92:ty},CS={[-5]:fc,[-4]:fc,[-3]:fc,33:$v,38:ny,42:Rc,60:[Px,qv],91:Pv,92:[Av,ty],93:nf,95:Rc,96:dv},ES={null:[Rc,mS]},TS={null:[42,95]},wS={null:[]},AS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:TS,contentInitial:xS,disable:wS,document:bS,flow:SS,flowInitial:vS,insideSpan:ES,string:kS,text:CS},Symbol.toStringTag,{value:"Module"}));function zS(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},c=[];let f=[],h=[];const p={attempt:P(Z),check:P(D),consume:H,enter:L,exit:ee,interrupt:P(D,{interrupt:!0})},m={code:null,containerState:{},defineSkip:N,events:[],now:A,parser:n,previous:null,sliceSerialize:S,sliceStream:x,write:g};let b=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(ie){return f=ln(f,ie),R(),f[f.length-1]!==null?[]:(W(a,0),m.events=Nu(c,m.events,m),m.events)}function S(ie,re){return MS(x(ie),re)}function x(ie){return _S(f,ie)}function A(){const{_bufferIndex:ie,_index:re,line:ye,column:K,offset:$}=u;return{_bufferIndex:ie,_index:re,line:ye,column:K,offset:$}}function N(ie){s[ie.line]=ie.column,U()}function R(){let ie;for(;u._index<f.length;){const re=f[u._index];if(typeof re=="string")for(ie=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ie&&u._bufferIndex<re.length;)M(re.charCodeAt(u._bufferIndex));else M(re)}}function M(ie){b=b(ie)}function H(ie){ge(ie)?(u.line++,u.column=1,u.offset+=ie===-3?2:1,U()):ie!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ie}function L(ie,re){const ye=re||{};return ye.type=ie,ye.start=A(),m.events.push(["enter",ye,m]),h.push(ye),ye}function ee(ie){const re=h.pop();return re.end=A(),m.events.push(["exit",re,m]),re}function Z(ie,re){W(ie,re.from)}function D(ie,re){re.restore()}function P(ie,re){return ye;function ye(K,$,T){let X,Q,ve,C;return Array.isArray(K)?Y(K):"tokenize"in K?Y([K]):z(K);function z(de){return me;function me(Xe){const Re=Xe!==null&&de[Xe],ht=Xe!==null&&de.null,Lt=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(ht)?ht:ht?[ht]:[]];return Y(Lt)(Xe)}}function Y(de){return X=de,Q=0,de.length===0?T:k(de[Q])}function k(de){return me;function me(Xe){return C=ue(),ve=de,de.partial||(m.currentConstruct=de),de.name&&m.parser.constructs.disable.null.includes(de.name)?he():de.tokenize.call(re?Object.assign(Object.create(m),re):m,p,le,he)(Xe)}}function le(de){return ie(ve,C),$}function he(de){return C.restore(),++Q<X.length?k(X[Q]):T}}}function W(ie,re){ie.resolveAll&&!c.includes(ie)&&c.push(ie),ie.resolve&&Zt(m.events,re,m.events.length-re,ie.resolve(m.events.slice(re),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function ue(){const ie=A(),re=m.previous,ye=m.currentConstruct,K=m.events.length,$=Array.from(h);return{from:K,restore:T};function T(){u=ie,m.previous=re,m.currentConstruct=ye,m.events.length=K,h=$,U()}}function U(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function _S(n,a){const r=a.start._index,u=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let f;if(r===s)f=[n[r].slice(u,c)];else{if(f=n.slice(r,s),u>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function MS(n,a){let r=-1;const u=[];let s;for(;++r<n.length;){const c=n[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
51
|
+
`;break}case-3:{f=`\r
|
|
52
|
+
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function OS(n){const u={constructs:Wg([AS,...(n||{}).extensions||[]]),content:s(Zx),defined:[],document:s(Fx),flow:s(dS),lazy:{},string:s(pS),text:s(gS)};return u;function s(c){return f;function f(h){return zS(u,c,h)}}}function NS(n){for(;!ly(n););return n}const Fp=/[\0\t\n\r]/g;function DS(){let n=1,a="",r=!0,u;return s;function s(c,f,h){const p=[];let m,b,g,S,x;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,a="",r&&(c.charCodeAt(0)===65279&&g++,r=void 0);g<c.length;){if(Fp.lastIndex=g,m=Fp.exec(c),S=m&&m.index!==void 0?m.index:c.length,x=c.charCodeAt(S),!m){a=c.slice(g);break}if(x===10&&g===S&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<S&&(p.push(c.slice(g,S)),n+=S-g),x){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=S+1}return h&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const RS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jS(n){return n.replace(RS,LS)}function LS(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return Pg(r.slice(c?2:1),c?16:10)}return tf(r)||n}const sy={}.hasOwnProperty;function US(n,a,r){return typeof a!="string"&&(r=a,a=void 0),BS(r)(NS(OS(r).document().write(DS()(n,a,!0))))}function BS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Gl),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:c(Hl),blockQuote:c(ht),characterEscape:ue,characterReference:ue,codeFenced:c(Lt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(Lt,f),codeText:c(fn,f),codeTextData:ue,data:ue,codeFlowValue:ue,definition:c(Kr),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(xn),hardBreakEscape:c(ql),hardBreakTrailing:c(ql),htmlFlow:c(Jr,f),htmlFlowData:ue,htmlText:c(Jr,f),htmlTextData:ue,image:c($r),label:f,link:c(Gl),listItem:c(Ui),listItemValue:S,listOrdered:c(Yl,g),listUnordered:c(Yl),paragraph:c(Hu),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Hl),strong:c(qu),thematicBreak:c(Gu)},exit:{atxHeading:p(),atxHeadingSequence:Z,autolink:p(),autolinkEmail:Re,autolinkProtocol:Xe,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:de,characterReference:me,codeFenced:p(R),codeFencedFence:N,codeFencedFenceInfo:x,codeFencedFenceMeta:A,codeFlowValue:U,codeIndented:p(M),codeText:p($),codeTextData:U,data:U,definition:p(),definitionDestinationString:ee,definitionLabelString:H,definitionTitleString:L,emphasis:p(),hardBreakEscape:p(re),hardBreakTrailing:p(re),htmlFlow:p(ye),htmlFlowData:U,htmlText:p(K),htmlTextData:U,image:p(X),label:ve,labelText:Q,lineEnding:ie,link:p(T),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:C,resourceTitleString:z,resource:Y,setextHeading:p(W),setextHeadingLineSequence:P,setextHeadingText:D,strong:p(),thematicBreak:p()}};cy(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(I){let ae={type:"root",children:[]};const xe={stack:[ae],tokenStack:[],config:a,enter:h,exit:m,buffer:f,resume:b,data:r},we=[];let Be=-1;for(;++Be<I.length;)if(I[Be][1].type==="listOrdered"||I[Be][1].type==="listUnordered")if(I[Be][0]==="enter")we.push(Be);else{const Ut=we.pop();Be=s(I,Ut,Be)}for(Be=-1;++Be<I.length;){const Ut=a[I[Be][0]];sy.call(Ut,I[Be][1].type)&&Ut[I[Be][1].type].call(Object.assign({sliceSerialize:I[Be][2].sliceSerialize},xe),I[Be][1])}if(xe.tokenStack.length>0){const Ut=xe.tokenStack[xe.tokenStack.length-1];(Ut[1]||Kp).call(xe,void 0,Ut[0])}for(ae.position={start:hl(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:hl(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<a.transforms.length;)ae=a.transforms[Be](ae)||ae;return ae}function s(I,ae,xe){let we=ae-1,Be=-1,Ut=!1,vn,Ct,ot,wt;for(;++we<=xe;){const Qe=I[we];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Be++:Be--,wt=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(vn&&!wt&&!Be&&!ot&&(ot=we),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!Be&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Be===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(vn){let Yn=we;for(Ct=void 0;Yn--;){const rn=I[Yn];if(rn[1].type==="lineEnding"||rn[1].type==="lineEndingBlank"){if(rn[0]==="exit")continue;Ct&&(I[Ct][1].type="lineEndingBlank",Ut=!0),rn[1].type="lineEnding",Ct=Yn}else if(!(rn[1].type==="linePrefix"||rn[1].type==="blockQuotePrefix"||rn[1].type==="blockQuotePrefixWhitespace"||rn[1].type==="blockQuoteMarker"||rn[1].type==="listItemIndent"))break}ot&&(!Ct||ot<Ct)&&(vn._spread=!0),vn.end=Object.assign({},Ct?I[Ct][1].start:Qe[1].end),I.splice(Ct||we,0,["exit",vn,Qe[2]]),we++,xe++}if(Qe[1].type==="listItemPrefix"){const Yn={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};vn=Yn,I.splice(we,0,["enter",Yn,Qe[2]]),we++,xe++,ot=void 0,wt=!0}}}return I[ae][1]._spread=Ut,xe}function c(I,ae){return xe;function xe(we){h.call(this,I(we),we),ae&&ae.call(this,we)}}function f(){this.stack.push({type:"fragment",children:[]})}function h(I,ae,xe){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([ae,xe||void 0]),I.position={start:hl(ae.start),end:void 0}}function p(I){return ae;function ae(xe){I&&I.call(this,xe),m.call(this,xe)}}function m(I,ae){const xe=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==I.type&&(ae?ae.call(this,I,we[0]):(we[1]||Kp).call(this,I,we[0]));else throw new Error("Cannot close `"+I.type+"` ("+Br({start:I.start,end:I.end})+"): it’s not open");xe.position.end=hl(I.end)}function b(){return ef(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(I){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function x(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=I}function A(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=I}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function M(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.value=I.replace(/(\r?\n|\r)$/g,"")}function H(I){const ae=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ae,xe.identifier=sn(this.sliceSerialize(I)).toLowerCase()}function L(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.title=I}function ee(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.url=I}function Z(I){const ae=this.stack[this.stack.length-1];if(!ae.depth){const xe=this.sliceSerialize(I).length;ae.depth=xe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(I){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(I){const xe=this.stack[this.stack.length-1].children;let we=xe[xe.length-1];(!we||we.type!=="text")&&(we=kt(),we.position={start:hl(I.start),end:void 0},xe.push(we)),this.stack.push(we)}function U(I){const ae=this.stack.pop();ae.value+=this.sliceSerialize(I),ae.position.end=hl(I.end)}function ie(I){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ae.children[ae.children.length-1];xe.position.end=hl(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ae.type)&&(ue.call(this,I),U.call(this,I))}function re(){this.data.atHardBreak=!0}function ye(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.value=I}function K(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.value=I}function $(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.value=I}function T(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=ae,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function X(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=ae,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Q(I){const ae=this.sliceSerialize(I),xe=this.stack[this.stack.length-2];xe.label=jS(ae),xe.identifier=sn(ae).toLowerCase()}function ve(){const I=this.stack[this.stack.length-1],ae=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const we=I.children;xe.children=we}else xe.alt=ae}function C(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.url=I}function z(){const I=this.resume(),ae=this.stack[this.stack.length-1];ae.title=I}function Y(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function le(I){const ae=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ae,xe.identifier=sn(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function he(I){this.data.characterReferenceType=I.type}function de(I){const ae=this.sliceSerialize(I),xe=this.data.characterReferenceType;let we;xe?(we=Pg(ae,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=tf(ae);const Be=this.stack[this.stack.length-1];Be.value+=we}function me(I){const ae=this.stack.pop();ae.position.end=hl(I.end)}function Xe(I){U.call(this,I);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(I)}function Re(I){U.call(this,I);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(I)}function ht(){return{type:"blockquote",children:[]}}function Lt(){return{type:"code",lang:null,meta:null,value:""}}function fn(){return{type:"inlineCode",value:""}}function Kr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xn(){return{type:"emphasis",children:[]}}function Hl(){return{type:"heading",depth:0,children:[]}}function ql(){return{type:"break"}}function Jr(){return{type:"html",value:""}}function $r(){return{type:"image",title:null,url:"",alt:null}}function Gl(){return{type:"link",title:null,url:"",children:[]}}function Yl(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Ui(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Hu(){return{type:"paragraph",children:[]}}function qu(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function Gu(){return{type:"thematicBreak"}}}function hl(n){return{line:n.line,column:n.column,offset:n.offset}}function cy(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?cy(n,u):HS(n,u)}}function HS(n,a){let r;for(r in a)if(sy.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function Kp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Br({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Br({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Br({start:a.start,end:a.end})+") is still open")}function qS(n){const a=this;a.parser=r;function r(u){return US(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function GS(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function YS(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
|
|
53
|
+
`}]}function VS(n,a){const r=a.value?a.value+`
|
|
54
|
+
`:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function XS(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function QS(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function ZS(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Ri(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,h=n.footnoteCounts.get(u);h===void 0?(h=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,h+=1,n.footnoteCounts.set(u,h);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,m),n.applyData(a,m)}function IS(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function FS(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function fy(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function KS(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return fy(n,a);const s={src:Ri(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,c),n.applyData(a,c)}function JS(n,a){const r={src:Ri(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function $S(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function WS(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return fy(n,a);const s={href:Ri(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function PS(n,a){const r={href:Ri(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function ek(n,a,r){const u=n.all(a),s=r?tk(r):dy(a),c={},f=[];if(typeof a.checked=="boolean"){const b=u[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<u.length;){const b=u[h];(s||h!==0||b.type!=="element"||b.tagName!=="p")&&f.push({type:"text",value:`
|
|
55
|
+
`}),b.type==="element"&&b.tagName==="p"&&!s?f.push(...b.children):f.push(b)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
|
|
56
|
+
`});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function tk(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=dy(r[u])}return a}function dy(n){const a=n.spread;return a??n.children.length>1}function nk(n,a){const r={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function lk(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function ik(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function rk(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function ak(n,a){const r=n.all(a),u=r.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},h=Jc(a.children[1]),p=Qg(a.children[a.children.length-1]);h&&p&&(f.position={start:h,end:p}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,c),n.applyData(a,c)}function uk(n,a,r){const u=r?r.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,h=f?f.length:a.children.length;let p=-1;const m=[];for(;++p<h;){const g=a.children[p],S={},x=f?f[p]:void 0;x&&(S.align=x);let A={type:"element",tagName:c,properties:S,children:[]};g&&(A.children=n.all(g),n.patch(g,A),A=n.applyData(g,A)),m.push(A)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,b),n.applyData(a,b)}function ok(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const Jp=9,$p=32;function sk(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),s=0;const c=[];for(;u;)c.push(Wp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=r.exec(a);return c.push(Wp(a.slice(s),s>0,!1)),c.join("")}function Wp(n,a,r){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===Jp||c===$p;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(s-1);for(;c===Jp||c===$p;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function ck(n,a){const r={type:"text",value:sk(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function fk(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const dk={blockquote:GS,break:YS,code:VS,delete:XS,emphasis:QS,footnoteReference:ZS,heading:IS,html:FS,imageReference:KS,image:JS,inlineCode:$S,linkReference:WS,link:PS,listItem:ek,list:nk,paragraph:lk,root:ik,strong:rk,table:ak,tableCell:ok,tableRow:uk,text:ck,thematicBreak:fk,toml:mu,yaml:mu,definition:mu,footnoteDefinition:mu};function mu(){}const hy=-1,Du=0,qr=1,Tu=2,lf=3,rf=4,af=5,uf=6,my=7,py=8,Pp=typeof self=="object"?self:globalThis,hk=(n,a)=>{const r=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=a[s];switch(c){case Du:case hy:return r(f,s);case qr:{const h=r([],s);for(const p of f)h.push(u(p));return h}case Tu:{const h=r({},s);for(const[p,m]of f)h[u(p)]=u(m);return h}case lf:return r(new Date(f),s);case rf:{const{source:h,flags:p}=f;return r(new RegExp(h,p),s)}case af:{const h=r(new Map,s);for(const[p,m]of f)h.set(u(p),u(m));return h}case uf:{const h=r(new Set,s);for(const p of f)h.add(u(p));return h}case my:{const{name:h,message:p}=f;return r(new Pp[h](p),s)}case py:return r(BigInt(f),s);case"BigInt":return r(Object(BigInt(f)),s);case"ArrayBuffer":return r(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:h}=new Uint8Array(f);return r(new DataView(h),f)}}return r(new Pp[c](f),s)};return u},eg=n=>hk(new Map,n)(0),zi="",{toString:mk}={},{keys:pk}=Object,Rr=n=>{const a=typeof n;if(a!=="object"||!n)return[Du,a];const r=mk.call(n).slice(8,-1);switch(r){case"Array":return[qr,zi];case"Object":return[Tu,zi];case"Date":return[lf,zi];case"RegExp":return[rf,zi];case"Map":return[af,zi];case"Set":return[uf,zi];case"DataView":return[qr,r]}return r.includes("Array")?[qr,r]:r.includes("Error")?[my,r]:[Tu,r]},pu=([n,a])=>n===Du&&(a==="function"||a==="symbol"),gk=(n,a,r,u)=>{const s=(f,h)=>{const p=u.push(f)-1;return r.set(h,p),p},c=f=>{if(r.has(f))return r.get(f);let[h,p]=Rr(f);switch(h){case Du:{let b=f;switch(p){case"bigint":h=py,b=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return s([hy],f)}return s([h,b],f)}case qr:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const b=[],g=s([h,b],f);for(const S of f)b.push(c(S));return g}case Tu:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(a&&"toJSON"in f)return c(f.toJSON());const b=[],g=s([h,b],f);for(const S of pk(f))(n||!pu(Rr(f[S])))&&b.push([c(S),c(f[S])]);return g}case lf:return s([h,f.toISOString()],f);case rf:{const{source:b,flags:g}=f;return s([h,{source:b,flags:g}],f)}case af:{const b=[],g=s([h,b],f);for(const[S,x]of f)(n||!(pu(Rr(S))||pu(Rr(x))))&&b.push([c(S),c(x)]);return g}case uf:{const b=[],g=s([h,b],f);for(const S of f)(n||!pu(Rr(S)))&&b.push(c(S));return g}}const{message:m}=f;return s([h,{name:p,message:m}],f)};return c},tg=(n,{json:a,lossy:r}={})=>{const u=[];return gk(!(a||r),!!a,new Map,u)(n),u},wu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?eg(tg(n,a)):structuredClone(n):(n,a)=>eg(tg(n,a));function yk(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function bk(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function xk(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||yk,u=n.options.footnoteBackLabel||bk,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const b=n.all(m),g=String(m.identifier).toUpperCase(),S=Ri(g.toLowerCase());let x=0;const A=[],N=n.footnoteCounts.get(g);for(;N!==void 0&&++x<=N;){A.length>0&&A.push({type:"text",value:" "});let H=typeof r=="string"?r:r(p,x);typeof H=="string"&&(H={type:"text",value:H}),A.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,x),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const R=b[b.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const H=R.children[R.children.length-1];H&&H.type==="text"?H.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...A)}else b.push(...A);const M={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(b,!0)};n.patch(m,M),h.push(M)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...wu(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
57
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
|
|
58
|
+
`}]}}const Ru=(function(n){if(n==null)return Ck;if(typeof n=="function")return ju(n);if(typeof n=="object")return Array.isArray(n)?vk(n):Sk(n);if(typeof n=="string")return kk(n);throw new Error("Expected function, string, or object as test")});function vk(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Ru(n[r]);return ju(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function Sk(n){const a=n;return ju(r);function r(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function kk(n){return ju(a);function a(r){return r&&r.type===n}}function ju(n){return a;function a(r,u,s){return!!(Ek(r)&&n.call(this,r,typeof u=="number"?u:void 0,s||void 0))}}function Ck(){return!0}function Ek(n){return n!==null&&typeof n=="object"&&"type"in n}const gy=[],Tk=!0,jc=!1,wk="skip";function yy(n,a,r,u){let s;typeof a=="function"&&typeof r!="function"?(u=r,r=a):s=a;const c=Ru(s),f=u?-1:1;h(n,void 0,[])();function h(p,m,b){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return S;function S(){let x=gy,A,N,R;if((!a||c(p,m,b[b.length-1]||void 0))&&(x=Ak(r(p,b)),x[0]===jc))return x;if("children"in p&&p.children){const M=p;if(M.children&&x[0]!==wk)for(N=(u?M.children.length:-1)+f,R=b.concat(M);N>-1&&N<M.children.length;){const H=M.children[N];if(A=h(H,N,R)(),A[0]===jc)return A;N=typeof A[1]=="number"?A[1]:N+f}}return x}}}function Ak(n){return Array.isArray(n)?n:typeof n=="number"?[Tk,n]:n==null?gy:[n]}function of(n,a,r,u){let s,c,f;typeof a=="function"&&typeof r!="function"?(c=void 0,f=a,s=r):(c=a,f=r,s=u),yy(n,c,h,s);function h(p,m){const b=m[m.length-1],g=b?b.children.indexOf(p):void 0;return f(p,g,b)}}const Lc={}.hasOwnProperty,zk={};function _k(n,a){const r=a||zk,u=new Map,s=new Map,c=new Map,f={...dk,...r.handlers},h={all:m,applyData:Ok,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:r,patch:Mk,wrap:Dk};return of(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?u:s,S=String(b.identifier).toUpperCase();g.has(S)||g.set(S,b)}}),h;function p(b,g){const S=b.type,x=h.handlers[S];if(Lc.call(h.handlers,S)&&x)return x(h,b,g);if(h.options.passThrough&&h.options.passThrough.includes(S)){if("children"in b){const{children:N,...R}=b,M=wu(R);return M.children=h.all(b),M}return wu(b)}return(h.options.unknownHandler||Nk)(h,b,g)}function m(b){const g=[];if("children"in b){const S=b.children;let x=-1;for(;++x<S.length;){const A=h.one(S[x],b);if(A){if(x&&S[x-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=ng(A.value)),!Array.isArray(A)&&A.type==="element")){const N=A.children[0];N&&N.type==="text"&&(N.value=ng(N.value))}Array.isArray(A)?g.push(...A):g.push(A)}}}return g}}function Mk(n,a){n.position&&(a.position=bx(n))}function Ok(n,a){let r=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const f="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:f}}r.type==="element"&&c&&Object.assign(r.properties,wu(c)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function Nk(n,a){const r=a.data||{},u="value"in a&&!(Lc.call(r,"hProperties")||Lc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function Dk(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
|
|
59
|
+
`});++u<n.length;)u&&r.push({type:"text",value:`
|
|
60
|
+
`}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
|
|
61
|
+
`}),r}function ng(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function lg(n,a){const r=_k(n,a),u=r.one(n,void 0),s=xk(r),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
62
|
+
`},s),c}function Rk(n,a){return n&&"run"in n?async function(r,u){const s=lg(r,{file:u,...a});await n.run(s,u)}:function(r,u){return lg(r,{file:u,...n||a})}}function ig(n){if(n)throw n}var dc,rg;function jk(){if(rg)return dc;rg=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var b=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!g)return!1;var S;for(S in m);return typeof S>"u"||n.call(m,S)},f=function(m,b){r&&b.name==="__proto__"?r(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},h=function(m,b){if(b==="__proto__")if(n.call(m,b)){if(u)return u(m,b).value}else return;return m[b]};return dc=function p(){var m,b,g,S,x,A,N=arguments[0],R=1,M=arguments.length,H=!1;for(typeof N=="boolean"&&(H=N,N=arguments[1]||{},R=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});R<M;++R)if(m=arguments[R],m!=null)for(b in m)g=h(N,b),S=h(m,b),N!==S&&(H&&S&&(c(S)||(x=s(S)))?(x?(x=!1,A=g&&s(g)?g:[]):A=g&&c(g)?g:{},f(N,{name:b,newValue:p(H,A,S)})):typeof S<"u"&&f(N,{name:b,newValue:S}));return N},dc}var Lk=jk();const hc=Mu(Lk);function Uc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Uk(){const n=[],a={run:r,use:u};return a;function r(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...s);function h(p,...m){const b=n[++c];let g=-1;if(p){f(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,b?Bk(b,h)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function Bk(n,a){let r;return u;function u(...f){const h=n.length>f.length;let p;h&&f.push(s);try{p=n.apply(this,f)}catch(m){const b=m;if(h&&r)throw b;return s(b)}h||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...h){r||(r=!0,a(f,...h))}function c(f){s(null,f)}}const yn={basename:Hk,dirname:qk,extname:Gk,join:Yk,sep:"/"};function Hk(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ir(n);let r=0,u=-1,s=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){r=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let f=-1,h=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){r=s+1;break}}else f<0&&(c=!0,f=s+1),h>-1&&(n.codePointAt(s)===a.codePointAt(h--)?h<0&&(u=s):(h=-1,u=f));return r===u?u=f:u<0&&(u=n.length),n.slice(r,u)}function qk(n){if(Ir(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function Gk(n){Ir(n);let a=n.length,r=-1,u=0,s=-1,c=0,f;for(;a--;){const h=n.codePointAt(a);if(h===47){if(f){u=a+1;break}continue}r<0&&(f=!0,r=a+1),h===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===u+1?"":n.slice(s,r)}function Yk(...n){let a=-1,r;for(;++a<n.length;)Ir(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":Vk(r)}function Vk(n){Ir(n);const a=n.codePointAt(0)===47;let r=Xk(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function Xk(n,a){let r="",u=0,s=-1,c=0,f=-1,h,p;for(;++f<=n.length;){if(f<n.length)h=n.codePointAt(f);else{if(h===47)break;h=47}if(h===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),s=f,c=0;continue}}else if(r.length>0){r="",u=0,s=f,c=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(s+1,f):r=n.slice(s+1,f),u=f-s-1;s=f,c=0}else h===46&&c>-1?c++:c=-1}return r}function Ir(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Qk={cwd:Zk};function Zk(){return"/"}function Bc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Ik(n){if(typeof n=="string")n=new URL(n);else if(!Bc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return Fk(n)}function Fk(n){if(n.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 a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const mc=["history","path","basename","stem","extname","dirname"];class by{constructor(a){let r;a?Bc(a)?r={path:a}:typeof a=="string"||Kk(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":Qk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<mc.length;){const c=mc[u];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)mc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?yn.basename(this.path):void 0}set basename(a){gc(a,"basename"),pc(a,"basename"),this.path=yn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?yn.dirname(this.path):void 0}set dirname(a){ag(this.basename,"dirname"),this.path=yn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?yn.extname(this.path):void 0}set extname(a){if(pc(a,"extname"),ag(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Bc(a)&&(a=Ik(a)),gc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?yn.basename(this.path,this.extname):void 0}set stem(a){gc(a,"stem"),pc(a,"stem"),this.path=yn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const s=this.message(a,r,u);throw s.fatal=!0,s}info(a,r,u){const s=this.message(a,r,u);return s.fatal=void 0,s}message(a,r,u){const s=new St(a,r,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function pc(n,a){if(n&&n.includes(yn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+yn.sep+"`")}function gc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function ag(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function Kk(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Jk=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),$k={}.hasOwnProperty;class sf extends Jk{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=Uk()}copy(){const a=new sf;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(hc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(xc("data",this.frozen),this.namespace[a]=r,this):$k.call(this.namespace,a)&&this.namespace[a]||void 0:a?(xc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=r.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=gu(a),u=this.parser||this.Parser;return yc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),yc("process",this.parser||this.Parser),bc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(c,f){const h=gu(a),p=u.parse(h);u.run(p,h,function(b,g,S){if(b||!g||!S)return m(b);const x=g,A=u.stringify(x,S);e2(A)?S.value=A:S.result=A,m(b,S)});function m(b,g){b||!g?f(b):c?c(g):r(void 0,g)}}}processSync(a){let r=!1,u;return this.freeze(),yc("processSync",this.parser||this.Parser),bc("processSync",this.compiler||this.Compiler),this.process(a,s),og("processSync","process",r),u;function s(c,f){r=!0,ig(c),u=f}}run(a,r,u){ug(a),this.freeze();const s=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?c(void 0,u):new Promise(c);function c(f,h){const p=gu(r);s.run(a,p,m);function m(b,g,S){const x=g||a;b?h(b):f?f(x):u(void 0,x,S)}}}runSync(a,r){let u=!1,s;return this.run(a,r,c),og("runSync","run",u),s;function c(f,h){ig(f),s=h,u=!0}}stringify(a,r){this.freeze();const u=gu(r),s=this.compiler||this.Compiler;return bc("stringify",s),ug(a),s(a,u)}use(a,...r){const u=this.attachers,s=this.namespace;if(xc("use",this.frozen),a!=null)if(typeof a=="function")p(a,r);else if(typeof a=="object")Array.isArray(a)?h(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...g]=m;p(b,g)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))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");h(m.plugins),m.settings&&(s.settings=hc(!0,s.settings,m.settings))}function h(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const g=m[b];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,b){let g=-1,S=-1;for(;++g<u.length;)if(u[g][0]===m){S=g;break}if(S===-1)u.push([m,...b]);else if(b.length>0){let[x,...A]=b;const N=u[S][1];Uc(N)&&Uc(x)&&(x=hc(!0,N,x)),u[S]=[m,x,...A]}}}}const Wk=new sf().freeze();function yc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function bc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function xc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ug(n){if(!Uc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function og(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function gu(n){return Pk(n)?n:new by(n)}function Pk(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function e2(n){return typeof n=="string"||t2(n)}function t2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const n2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sg=[],cg={allowDangerousHtml:!0},l2=/^(https?|ircs?|mailto|xmpp)$/i,i2=[{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 xy(n){const a=r2(n),r=a2(n);return u2(a.runSync(a.parse(r),r),n)}function r2(n){const a=n.rehypePlugins||sg,r=n.remarkPlugins||sg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...cg}:cg;return Wk().use(qS).use(r).use(Rk,u).use(a)}function a2(n){const a=n.children||"",r=new by;return typeof a=="string"&&(r.value=a),r}function u2(n,a){const r=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,h=a.unwrapDisallowed,p=a.urlTransform||o2;for(const b of i2)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+n2+b.id,void 0);return of(n,m),Cx(n,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(b,g,S){if(b.type==="raw"&&S&&typeof g=="number")return f?S.children.splice(g,1):S.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let x;for(x in sc)if(Object.hasOwn(sc,x)&&Object.hasOwn(b.properties,x)){const A=b.properties[x],N=sc[x];(N===null||N.includes(b.tagName))&&(b.properties[x]=p(String(A||""),x,b))}}if(b.type==="element"){let x=r?!r.includes(b.tagName):c?c.includes(b.tagName):!1;if(!x&&u&&typeof g=="number"&&(x=!u(b,g,S)),x&&S&&typeof g=="number")return h&&b.children?S.children.splice(g,1,...b.children):S.children.splice(g,1),g}}}function o2(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||u!==-1&&a>u||l2.test(n.slice(0,a))?n:""}function fg(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=r.indexOf(a);for(;s!==-1;)u++,s=r.indexOf(a,s+a.length);return u}function s2(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function c2(n,a,r){const s=Ru((r||{}).ignore||[]),c=f2(a);let f=-1;for(;++f<c.length;)yy(n,"text",h);function h(m,b){let g=-1,S;for(;++g<b.length;){const x=b[g],A=S?S.children:void 0;if(s(x,A?A.indexOf(x):void 0,S))return;S=x}if(S)return p(m,b)}function p(m,b){const g=b[b.length-1],S=c[f][0],x=c[f][1];let A=0;const R=g.children.indexOf(m);let M=!1,H=[];S.lastIndex=0;let L=S.exec(m.value);for(;L;){const ee=L.index,Z={index:L.index,input:L.input,stack:[...b,m]};let D=x(...L,Z);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=ee+1:(A!==ee&&H.push({type:"text",value:m.value.slice(A,ee)}),Array.isArray(D)?H.push(...D):D&&H.push(D),A=ee+L[0].length,M=!0),!S.global)break;L=S.exec(m.value)}return M?(A<m.value.length&&H.push({type:"text",value:m.value.slice(A)}),g.children.splice(R,1,...H)):H=[m],R+H.length}}function f2(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const s=r[u];a.push([d2(s[0]),h2(s[1])])}return a}function d2(n){return typeof n=="string"?new RegExp(s2(n),"g"):n}function h2(n){return typeof n=="function"?n:function(){return n}}const vc="phrasing",Sc=["autolink","link","image","label"];function m2(){return{transforms:[S2],enter:{literalAutolink:g2,literalAutolinkEmail:kc,literalAutolinkHttp:kc,literalAutolinkWww:kc},exit:{literalAutolink:v2,literalAutolinkEmail:x2,literalAutolinkHttp:y2,literalAutolinkWww:b2}}}function p2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vc,notInConstruct:Sc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vc,notInConstruct:Sc},{character:":",before:"[ps]",after:"\\/",inConstruct:vc,notInConstruct:Sc}]}}function g2(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function kc(n){this.config.enter.autolinkProtocol.call(this,n)}function y2(n){this.config.exit.autolinkProtocol.call(this,n)}function b2(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function x2(n){this.config.exit.autolinkEmail.call(this,n)}function v2(n){this.exit(n)}function S2(n){c2(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,k2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),C2]],{ignore:["link","linkReference"]})}function k2(n,a,r,u,s){let c="";if(!vy(s)||(/^w/i.test(a)&&(r=a+r,a="",c="http://"),!E2(r)))return!1;const f=T2(r+u);if(!f[0])return!1;const h={type:"link",title:null,url:c+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[h,{type:"text",value:f[1]}]:h}function C2(n,a,r,u){return!vy(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function E2(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function T2(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],u=r.indexOf(")");const s=fg(n,"(");let c=fg(n,")");for(;u!==-1&&s>c;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),c++;return[n,r]}function vy(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||Ul(r)||Ou(r))&&(!a||r!==47)}Sy.peek=R2;function w2(){this.buffer()}function A2(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function z2(){this.buffer()}function _2(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function M2(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=sn(this.sliceSerialize(n)).toLowerCase(),r.label=a}function O2(n){this.exit(n)}function N2(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=sn(this.sliceSerialize(n)).toLowerCase(),r.label=a}function D2(n){this.exit(n)}function R2(){return"["}function Sy(n,a,r,u){const s=r.createTracker(u);let c=s.move("[^");const f=r.enter("footnoteReference"),h=r.enter("reference");return c+=s.move(r.safe(r.associationId(n),{after:"]",before:c})),h(),f(),c+=s.move("]"),c}function j2(){return{enter:{gfmFootnoteCallString:w2,gfmFootnoteCall:A2,gfmFootnoteDefinitionLabelString:z2,gfmFootnoteDefinition:_2},exit:{gfmFootnoteCallString:M2,gfmFootnoteCall:O2,gfmFootnoteDefinitionLabelString:N2,gfmFootnoteDefinition:D2}}}function L2(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Sy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,s,c,f){const h=c.createTracker(f);let p=h.move("[^");const m=c.enter("footnoteDefinition"),b=c.enter("label");return p+=h.move(c.safe(c.associationId(u),{before:p,after:"]"})),b(),p+=h.move("]:"),u.children&&u.children.length>0&&(h.shift(4),p+=h.move((a?`
|
|
63
|
+
`:" ")+c.indentLines(c.containerFlow(u,h.current()),a?ky:U2))),m(),p}}function U2(n,a,r){return a===0?n:ky(n,a,r)}function ky(n,a,r){return(r?"":" ")+n}const B2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cy.peek=V2;function H2(){return{canContainEols:["delete"],enter:{strikethrough:G2},exit:{strikethrough:Y2}}}function q2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:B2}],handlers:{delete:Cy}}}function G2(n){this.enter({type:"delete",children:[]},n)}function Y2(n){this.exit(n)}function Cy(n,a,r,u){const s=r.createTracker(u),c=r.enter("strikethrough");let f=s.move("~~");return f+=r.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),c(),f}function V2(){return"~"}function X2(n){return n.length}function Q2(n,a){const r=a||{},u=(r.align||[]).concat(),s=r.stringLength||X2,c=[],f=[],h=[],p=[];let m=0,b=-1;for(;++b<n.length;){const N=[],R=[];let M=-1;for(n[b].length>m&&(m=n[b].length);++M<n[b].length;){const H=Z2(n[b][M]);if(r.alignDelimiters!==!1){const L=s(H);R[M]=L,(p[M]===void 0||L>p[M])&&(p[M]=L)}N.push(H)}f[b]=N,h[b]=R}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=dg(u[g]);else{const N=dg(u);for(;++g<m;)c[g]=N}g=-1;const S=[],x=[];for(;++g<m;){const N=c[g];let R="",M="";N===99?(R=":",M=":"):N===108?R=":":N===114&&(M=":");let H=r.alignDelimiters===!1?1:Math.max(1,p[g]-R.length-M.length);const L=R+"-".repeat(H)+M;r.alignDelimiters!==!1&&(H=R.length+H+M.length,H>p[g]&&(p[g]=H),x[g]=H),S[g]=L}f.splice(1,0,S),h.splice(1,0,x),b=-1;const A=[];for(;++b<f.length;){const N=f[b],R=h[b];g=-1;const M=[];for(;++g<m;){const H=N[g]||"";let L="",ee="";if(r.alignDelimiters!==!1){const Z=p[g]-(R[g]||0),D=c[g];D===114?L=" ".repeat(Z):D===99?Z%2?(L=" ".repeat(Z/2+.5),ee=" ".repeat(Z/2-.5)):(L=" ".repeat(Z/2),ee=L):ee=" ".repeat(Z)}r.delimiterStart!==!1&&!g&&M.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&H==="")&&(r.delimiterStart!==!1||g)&&M.push(" "),r.alignDelimiters!==!1&&M.push(L),M.push(H),r.alignDelimiters!==!1&&M.push(ee),r.padding!==!1&&M.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&M.push("|")}A.push(r.delimiterEnd===!1?M.join("").replace(/ +$/,""):M.join(""))}return A.join(`
|
|
64
|
+
`)}function Z2(n){return n==null?"":String(n)}function dg(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function I2(n,a,r,u){const s=r.enter("blockquote"),c=r.createTracker(u);c.move("> "),c.shift(2);const f=r.indentLines(r.containerFlow(n,c.current()),F2);return s(),f}function F2(n,a,r){return">"+(r?"":" ")+n}function K2(n,a){return hg(n,a.inConstruct,!0)&&!hg(n,a.notInConstruct,!1)}function hg(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function mg(n,a,r,u){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
65
|
+
`&&K2(r.stack,r.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
66
|
+
`}function J2(n,a){const r=String(n);let u=r.indexOf(a),s=u,c=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+a.length,u=r.indexOf(a,s);return f}function $2(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function W2(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function P2(n,a,r,u){const s=W2(r),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if($2(n,r)){const g=r.enter("codeIndented"),S=r.indentLines(c,eC);return g(),S}const h=r.createTracker(u),p=s.repeat(Math.max(J2(c,s)+1,3)),m=r.enter("codeFenced");let b=h.move(p);if(n.lang){const g=r.enter(`codeFencedLang${f}`);b+=h.move(r.safe(n.lang,{before:b,after:" ",encode:["`"],...h.current()})),g()}if(n.lang&&n.meta){const g=r.enter(`codeFencedMeta${f}`);b+=h.move(" "),b+=h.move(r.safe(n.meta,{before:b,after:`
|
|
67
|
+
`,encode:["`"],...h.current()})),g()}return b+=h.move(`
|
|
68
|
+
`),c&&(b+=h.move(c+`
|
|
69
|
+
`)),b+=h.move(p),m(),b}function eC(n,a,r){return(r?"":" ")+n}function cf(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function tC(n,a,r,u){const s=cf(r),c=s==='"'?"Quote":"Apostrophe",f=r.enter("definition");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("[");return m+=p.move(r.safe(r.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":`
|
|
70
|
+
`,...p.current()}))),h(),n.title&&(h=r.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(r.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),h()),f(),m}function nC(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Yr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Au(n,a,r){const u=Ni(n),s=Ni(a);return u===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ey.peek=lC;function Ey(n,a,r,u){const s=nC(r),c=r.enter("emphasis"),f=r.createTracker(u),h=f.move(s);let p=f.move(r.containerPhrasing(n,{after:s,before:h,...f.current()}));const m=p.charCodeAt(0),b=Au(u.before.charCodeAt(u.before.length-1),m,s);b.inside&&(p=Yr(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=Au(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Yr(g));const x=f.move(s);return c(),r.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},h+p+x}function lC(n,a,r){return r.options.emphasis||"*"}function iC(n,a){let r=!1;return of(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,jc}),!!((!n.depth||n.depth<3)&&ef(n)&&(a.options.setext||r))}function rC(n,a,r,u){const s=Math.max(Math.min(6,n.depth||1),1),c=r.createTracker(u);if(iC(n,r)){const b=r.enter("headingSetext"),g=r.enter("phrasing"),S=r.containerPhrasing(n,{...c.current(),before:`
|
|
71
|
+
`,after:`
|
|
72
|
+
`});return g(),b(),S+`
|
|
73
|
+
`+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
74
|
+
`))+1))}const f="#".repeat(s),h=r.enter("headingAtx"),p=r.enter("phrasing");c.move(f+" ");let m=r.containerPhrasing(n,{before:"# ",after:`
|
|
75
|
+
`,...c.current()});return/^[\t ]/.test(m)&&(m=Yr(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,r.options.closeAtx&&(m+=" "+f),p(),h(),m}Ty.peek=aC;function Ty(n){return n.value||""}function aC(){return"<"}wy.peek=uC;function wy(n,a,r,u){const s=cf(r),c=s==='"'?"Quote":"Apostrophe",f=r.enter("image");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("![");return m+=p.move(r.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),h(),n.title&&(h=r.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(r.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),h()),m+=p.move(")"),f(),m}function uC(){return"!"}Ay.peek=oC;function Ay(n,a,r,u){const s=n.referenceType,c=r.enter("imageReference");let f=r.enter("label");const h=r.createTracker(u);let p=h.move("![");const m=r.safe(n.alt,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),f();const b=r.stack;r.stack=[],f=r.enter("reference");const g=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return f(),r.stack=b,c(),s==="full"||!m||m!==g?p+=h.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function oC(){return"!"}zy.peek=sC;function zy(n,a,r){let u=n.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++c<r.unsafe.length;){const f=r.unsafe[c],h=r.compilePattern(f);let p;if(f.atBreak)for(;p=h.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return s+u+s}function sC(){return"`"}function _y(n,a){const r=ef(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}My.peek=cC;function My(n,a,r,u){const s=cf(r),c=s==='"'?"Quote":"Apostrophe",f=r.createTracker(u);let h,p;if(_y(n,r)){const b=r.stack;r.stack=[],h=r.enter("autolink");let g=f.move("<");return g+=f.move(r.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),h(),r.stack=b,g}h=r.enter("link"),p=r.enter("label");let m=f.move("[");return m+=f.move(r.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(r.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(p=r.enter("destinationRaw"),m+=f.move(r.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=r.enter(`title${c}`),m+=f.move(" "+s),m+=f.move(r.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),p()),m+=f.move(")"),h(),m}function cC(n,a,r){return _y(n,r)?"<":"["}Oy.peek=fC;function Oy(n,a,r,u){const s=n.referenceType,c=r.enter("linkReference");let f=r.enter("label");const h=r.createTracker(u);let p=h.move("[");const m=r.containerPhrasing(n,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),f();const b=r.stack;r.stack=[],f=r.enter("reference");const g=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return f(),r.stack=b,c(),s==="full"||!m||m!==g?p+=h.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function fC(){return"["}function ff(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function dC(n){const a=ff(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function hC(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Ny(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function mC(n,a,r,u){const s=r.enter("list"),c=r.bulletCurrent;let f=n.ordered?hC(r):ff(r);const h=n.ordered?f==="."?")":".":dC(r);let p=a&&r.bulletLastUsed?f===r.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&b&&(!b.children||!b.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),Ny(r)===f&&b){let g=-1;for(;++g<n.children.length;){const S=n.children[g];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=h),r.bulletCurrent=f;const m=r.containerFlow(n,u);return r.bulletLastUsed=f,r.bulletCurrent=c,s(),m}function pC(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function gC(n,a,r,u){const s=pC(r);let c=r.bulletCurrent||ff(r);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const h=r.createTracker(u);h.move(c+" ".repeat(f-c.length)),h.shift(f);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(n,h.current()),b);return p(),m;function b(g,S,x){return S?(x?"":" ".repeat(f))+g:(x?c:c+" ".repeat(f-c.length))+g}}function yC(n,a,r,u){const s=r.enter("paragraph"),c=r.enter("phrasing"),f=r.containerPhrasing(n,u);return c(),s(),f}const bC=Ru(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xC(n,a,r,u){return(n.children.some(function(f){return bC(f)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function vC(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Dy.peek=SC;function Dy(n,a,r,u){const s=vC(r),c=r.enter("strong"),f=r.createTracker(u),h=f.move(s+s);let p=f.move(r.containerPhrasing(n,{after:s,before:h,...f.current()}));const m=p.charCodeAt(0),b=Au(u.before.charCodeAt(u.before.length-1),m,s);b.inside&&(p=Yr(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=Au(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Yr(g));const x=f.move(s+s);return c(),r.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},h+p+x}function SC(n,a,r){return r.options.strong||"*"}function kC(n,a,r,u){return r.safe(n.value,u)}function CC(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function EC(n,a,r){const u=(Ny(r)+(r.options.ruleSpaces?" ":"")).repeat(CC(r));return r.options.ruleSpaces?u.slice(0,-1):u}const Ry={blockquote:I2,break:mg,code:P2,definition:tC,emphasis:Ey,hardBreak:mg,heading:rC,html:Ty,image:wy,imageReference:Ay,inlineCode:zy,link:My,linkReference:Oy,list:mC,listItem:gC,paragraph:yC,root:xC,strong:Dy,text:kC,thematicBreak:EC};function TC(){return{enter:{table:wC,tableData:pg,tableHeader:pg,tableRow:zC},exit:{codeText:_C,table:AC,tableData:Cc,tableHeader:Cc,tableRow:Cc}}}function wC(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function AC(n){this.exit(n),this.data.inTable=void 0}function zC(n){this.enter({type:"tableRow",children:[]},n)}function Cc(n){this.exit(n)}function pg(n){this.enter({type:"tableCell",children:[]},n)}function _C(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,MC));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function MC(n,a){return a==="|"?a:n}function OC(n){const a=n||{},r=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:p,tableRow:h}};function f(x,A,N,R){return m(b(x,N,R),x.align)}function h(x,A,N,R){const M=g(x,N,R),H=m([M]);return H.slice(0,H.indexOf(`
|
|
77
|
+
`))}function p(x,A,N,R){const M=N.enter("tableCell"),H=N.enter("phrasing"),L=N.containerPhrasing(x,{...R,before:c,after:c});return H(),M(),L}function m(x,A){return Q2(x,{align:A,alignDelimiters:u,padding:r,stringLength:s})}function b(x,A,N){const R=x.children;let M=-1;const H=[],L=A.enter("table");for(;++M<R.length;)H[M]=g(R[M],A,N);return L(),H}function g(x,A,N){const R=x.children;let M=-1;const H=[],L=A.enter("tableRow");for(;++M<R.length;)H[M]=p(R[M],x,A,N);return L(),H}function S(x,A,N){let R=Ry.inlineCode(x,A,N);return N.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function NC(){return{exit:{taskListCheckValueChecked:gg,taskListCheckValueUnchecked:gg,paragraph:RC}}}function DC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jC}}}function gg(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function RC(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const s=a.children;let c=-1,f;for(;++c<s.length;){const h=s[c];if(h.type==="paragraph"){f=h;break}}f===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function jC(n,a,r,u){const s=n.children[0],c=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",h=r.createTracker(u);c&&h.move(f);let p=Ry.listItem(n,a,r,{...u,...h.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(b){return b+f}}function LC(){return[m2(),j2(),H2(),TC(),NC()]}function UC(n){return{extensions:[p2(),L2(n),q2(),OC(n),DC()]}}const BC={tokenize:XC,partial:!0},jy={tokenize:QC,partial:!0},Ly={tokenize:ZC,partial:!0},Uy={tokenize:IC,partial:!0},HC={tokenize:FC,partial:!0},By={name:"wwwAutolink",tokenize:YC,previous:qy},Hy={name:"protocolAutolink",tokenize:VC,previous:Gy},Gn={name:"emailAutolink",tokenize:GC,previous:Yy},bn={};function qC(){return{text:bn}}let Rl=48;for(;Rl<123;)bn[Rl]=Gn,Rl++,Rl===58?Rl=65:Rl===91&&(Rl=97);bn[43]=Gn;bn[45]=Gn;bn[46]=Gn;bn[95]=Gn;bn[72]=[Gn,Hy];bn[104]=[Gn,Hy];bn[87]=[Gn,By];bn[119]=[Gn,By];function GC(n,a,r){const u=this;let s,c;return f;function f(g){return!Hc(g)||!Yy.call(u,u.previous)||df(u.events)?r(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(g))}function h(g){return Hc(g)?(n.consume(g),h):g===64?(n.consume(g),p):r(g)}function p(g){return g===46?n.check(HC,b,m)(g):g===45||g===95||vt(g)?(c=!0,n.consume(g),p):b(g)}function m(g){return n.consume(g),s=!0,p}function b(g){return c&&s&&Tt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):r(g)}}function YC(n,a,r){const u=this;return s;function s(f){return f!==87&&f!==119||!qy.call(u,u.previous)||df(u.events)?r(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(BC,n.attempt(jy,n.attempt(Ly,c),r),r)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function VC(n,a,r){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&Gy.call(u,u.previous)&&!df(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),h):r(g)}function h(g){if(Tt(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),h;if(g===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(g),p}return r(g)}function p(g){return g===47?(n.consume(g),c?m:(c=!0,p)):r(g)}function m(g){return g===null||Eu(g)||Ie(g)||Ul(g)||Ou(g)?r(g):n.attempt(jy,n.attempt(Ly,b),r)(g)}function b(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function XC(n,a,r){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),c):r(f)}function c(f){return f===null?r(f):a(f)}}function QC(n,a,r){let u,s,c;return f;function f(m){return m===46||m===95?n.check(Uy,p,h)(m):m===null||Ie(m)||Ul(m)||m!==45&&Ou(m)?p(m):(c=!0,n.consume(m),f)}function h(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?r(m):a(m)}}function ZC(n,a){let r=0,u=0;return s;function s(f){return f===40?(r++,n.consume(f),s):f===41&&u<r?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Uy,a,c)(f):f===null||Ie(f)||Ul(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function IC(n,a,r){return u;function u(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),u):h===38?(n.consume(h),c):h===93?(n.consume(h),s):h===60||h===null||Ie(h)||Ul(h)?a(h):r(h)}function s(h){return h===null||h===40||h===91||Ie(h)||Ul(h)?a(h):u(h)}function c(h){return Tt(h)?f(h):r(h)}function f(h){return h===59?(n.consume(h),u):Tt(h)?(n.consume(h),f):r(h)}}function FC(n,a,r){return u;function u(c){return n.consume(c),s}function s(c){return vt(c)?r(c):a(c)}}function qy(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ie(n)}function Gy(n){return!Tt(n)}function Yy(n){return!(n===47||Hc(n))}function Hc(n){return n===43||n===45||n===46||n===95||vt(n)}function df(n){let a=n.length,r=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const KC={tokenize:lE,partial:!0};function JC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eE,continuation:{tokenize:tE},exit:nE}},text:{91:{name:"gfmFootnoteCall",tokenize:PC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$C,resolveTo:WC}}}}function $C(n,a,r){const u=this;let s=u.events.length;const c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!f||!f._balanced)return r(p);const m=sn(u.sliceSerialize({start:f.end,end:u.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?r(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function WC(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},h=[n[r+1],n[r+2],["enter",u,a],n[r+3],n[r+4],["enter",s,a],["exit",s,a],["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(r,n.length-r+1,...h),n}function PC(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return h;function h(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!f||g===null||g===91||Ie(g))return r(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(sn(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(g)}return Ie(g)||(f=!0),c++,n.consume(g),g===92?b:m}function b(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function eE(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,h;return p;function p(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):r(A)}function b(A){if(f>999||A===93&&!h||A===null||A===91||Ie(A))return r(A);if(A===93){n.exit("chunkString");const N=n.exit("gfmFootnoteDefinitionLabelString");return c=sn(u.sliceSerialize(N)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ie(A)||(h=!0),f++,n.consume(A),A===92?g:b}function g(A){return A===91||A===92||A===93?(n.consume(A),f++,b):b(A)}function S(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),s.includes(c)||s.push(c),De(n,x,"gfmFootnoteDefinitionWhitespace")):r(A)}function x(A){return a(A)}}function tE(n,a,r){return n.check(Zr,a,n.attempt(KC,a,r))}function nE(n){n.exit("gfmFootnoteDefinition")}function lE(n,a,r){const u=this;return De(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(c):r(c)}}function iE(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,h){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},g={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",b,h],["enter",f[m][1],h],["exit",f[m][1],h],["enter",g,h]],x=h.parser.constructs.insideSpan.null;x&&Zt(S,S.length,0,Nu(x,f.slice(m+1,p),h)),Zt(S,S.length,0,[["exit",g,h],["enter",f[p][1],h],["exit",f[p][1],h],["exit",b,h]]),Zt(f,m-1,p-m+3,S),p=m+S.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,h,p){const m=this.previous,b=this.events;let g=0;return S;function S(A){return m===126&&b[b.length-1][1].type!=="characterEscape"?p(A):(f.enter("strikethroughSequenceTemporary"),x(A))}function x(A){const N=Ni(m);if(A===126)return g>1?p(A):(f.consume(A),g++,x);if(g<2&&!r)return p(A);const R=f.exit("strikethroughSequenceTemporary"),M=Ni(A);return R._open=!M||M===2&&!!N,R._close=!N||N===2&&!!M,h(A)}}}class rE{constructor(){this.map=[]}add(a,r,u){aE(this,a,r,u)}consume(a){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const c of s)a.push(c);s=u.pop()}this.map.length=0}}function aE(n,a,r,u){let s=0;if(!(r===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...u);return}s+=1}n.map.push([a,r,u])}}function uE(n,a){let r=!1;const u=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return u}function oE(){return{flow:{null:{name:"table",tokenize:sE,resolveAll:cE}}}}function sE(n,a,r){const u=this;let s=0,c=0,f;return h;function h(U){let ie=u.events.length-1;for(;ie>-1;){const K=u.events[ie][1].type;if(K==="lineEnding"||K==="linePrefix")ie--;else break}const re=ie>-1?u.events[ie][1].type:null,ye=re==="tableHead"||re==="tableRow"?D:p;return ye===D&&u.parser.lazy[u.now().line]?r(U):ye(U)}function p(U){return n.enter("tableHead"),n.enter("tableRow"),m(U)}function m(U){return U===124||(f=!0,c+=1),b(U)}function b(U){return U===null?r(U):ge(U)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),x):r(U):_e(U)?De(n,b,"whitespace")(U):(c+=1,f&&(f=!1,s+=1),U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),f=!0,b):(n.enter("data"),g(U)))}function g(U){return U===null||U===124||Ie(U)?(n.exit("data"),b(U)):(n.consume(U),U===92?S:g)}function S(U){return U===92||U===124?(n.consume(U),g):g(U)}function x(U){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(U):(n.enter("tableDelimiterRow"),f=!1,_e(U)?De(n,A,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):A(U))}function A(U){return U===45||U===58?R(U):U===124?(f=!0,n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),N):Z(U)}function N(U){return _e(U)?De(n,R,"whitespace")(U):R(U)}function R(U){return U===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),M):U===45?(c+=1,M(U)):U===null||ge(U)?ee(U):Z(U)}function M(U){return U===45?(n.enter("tableDelimiterFiller"),H(U)):Z(U)}function H(U){return U===45?(n.consume(U),H):U===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),L):(n.exit("tableDelimiterFiller"),L(U))}function L(U){return _e(U)?De(n,ee,"whitespace")(U):ee(U)}function ee(U){return U===124?A(U):U===null||ge(U)?!f||s!==c?Z(U):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(U)):Z(U)}function Z(U){return r(U)}function D(U){return n.enter("tableRow"),P(U)}function P(U){return U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),P):U===null||ge(U)?(n.exit("tableRow"),a(U)):_e(U)?De(n,P,"whitespace")(U):(n.enter("data"),W(U))}function W(U){return U===null||U===124||Ie(U)?(n.exit("data"),P(U)):(n.consume(U),U===92?ue:W)}function ue(U){return U===92||U===124?(n.consume(U),W):W(U)}}function cE(n,a){let r=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],h=!1,p=0,m,b,g;const S=new rE;for(;++r<n.length;){const x=n[r],A=x[1];x[0]==="enter"?A.type==="tableHead"?(h=!1,p!==0&&(yg(S,a,p,m,b),b=void 0,p=0),m={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(r,0,[["enter",m,a]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=!0,g=void 0,c=[0,0,0,0],f=[0,r+1,0,0],h&&(h=!1,b={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(r,0,[["enter",b,a]])),s=A.type==="tableDelimiterRow"?2:b?3:1):s&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=yu(S,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=r)):A.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=yu(S,a,c,s,void 0,g)),c=f,f=[c[1],r,0,0])):A.type==="tableHead"?(h=!0,p=r):A.type==="tableRow"||A.type==="tableDelimiterRow"?(p=r,c[1]!==0?(f[0]=f[1],g=yu(S,a,c,s,r,g)):f[1]!==0&&(g=yu(S,a,f,s,r,g)),s=0):s&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(f[3]=r)}for(p!==0&&yg(S,a,p,m,b),S.consume(a.events),r=-1;++r<a.events.length;){const x=a.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=uE(a.events,r))}return n}function yu(n,a,r,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",h="tableContent";r[0]!==0&&(c.end=Object.assign({},Mi(a.events,r[0])),n.add(r[0],0,[["exit",c,a]]));const p=Mi(a.events,r[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(r[1],0,[["enter",c,a]]),r[2]!==0){const m=Mi(a.events,r[2]),b=Mi(a.events,r[3]),g={type:h,start:Object.assign({},m),end:Object.assign({},b)};if(n.add(r[2],0,[["enter",g,a]]),u!==2){const S=a.events[r[2]],x=a.events[r[3]];if(S[1].end=Object.assign({},x[1].end),S[1].type="chunkText",S[1].contentType="text",r[3]>r[2]+1){const A=r[2]+1,N=r[3]-r[2]-1;n.add(A,N,[])}}n.add(r[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},Mi(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function yg(n,a,r,u,s){const c=[],f=Mi(a.events,r);s&&(s.end=Object.assign({},f),c.push(["exit",s,a])),u.end=Object.assign({},f),c.push(["exit",u,a]),n.add(r+1,0,c)}function Mi(n,a){const r=n[a],u=r[0]==="enter"?"start":"end";return r[1][u]}const fE={name:"tasklistCheck",tokenize:hE};function dE(){return{text:{91:fE}}}function hE(n,a,r){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),c)}function c(p){return Ie(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):r(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):r(p)}function h(p){return ge(p)?a(p):_e(p)?n.check({tokenize:mE},a,r)(p):r(p)}}function mE(n,a,r){return De(n,u,"whitespace");function u(s){return s===null?r(s):a(s)}}function pE(n){return Wg([qC(),JC(),iE(n),oE(),dE()])}const gE={};function Vy(n){const a=this,r=n||gE,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(pE(r)),c.push(LC()),f.push(UC(r))}function hf(n,a=[]){let r=[];function u(c,f){const h=ne.createContext(f),p=r.length;r=[...r,f];const m=g=>{var M;const{scope:S,children:x,...A}=g,N=((M=S==null?void 0:S[n])==null?void 0:M[p])||h,R=ne.useMemo(()=>A,Object.values(A));return E.jsx(N.Provider,{value:R,children:x})};m.displayName=c+"Provider";function b(g,S){var N;const x=((N=S==null?void 0:S[n])==null?void 0:N[p])||h,A=ne.useContext(x);if(A)return A;if(f!==void 0)return f;throw new Error(`\`${g}\` must be used within \`${c}\``)}return[m,b]}const s=()=>{const c=r.map(f=>ne.createContext(f));return function(h){const p=(h==null?void 0:h[n])||c;return ne.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return s.scopeName=n,[u,yE(s,...a)]}function yE(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const u=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=u.reduce((h,{useScope:p,scopeName:m})=>{const g=p(c)[`__scope${m}`];return{...h,...g}},{});return ne.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return r.scopeName=a.scopeName,r}function bg(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Xy(...n){return a=>{let r=!1;const u=n.map(s=>{const c=bg(s,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<u.length;s++){const c=u[s];typeof c=="function"?c():bg(n[s],null)}}}}function Vr(...n){return ne.useCallback(Xy(...n),n)}function qc(n){const a=bE(n),r=ne.forwardRef((u,s)=>{const{children:c,...f}=u,h=ne.Children.toArray(c),p=h.find(vE);if(p){const m=p.props.children,b=h.map(g=>g===p?ne.Children.count(m)>1?ne.Children.only(null):ne.isValidElement(m)?m.props.children:null:g);return E.jsx(a,{...f,ref:s,children:ne.isValidElement(m)?ne.cloneElement(m,void 0,b):null})}return E.jsx(a,{...f,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function bE(n){const a=ne.forwardRef((r,u)=>{const{children:s,...c}=r;if(ne.isValidElement(s)){const f=kE(s),h=SE(c,s.props);return s.type!==ne.Fragment&&(h.ref=u?Xy(u,f):f),ne.cloneElement(s,h)}return ne.Children.count(s)>1?ne.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var xE=Symbol("radix.slottable");function vE(n){return ne.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===xE}function SE(n,a){const r={...a};for(const u in a){const s=n[u],c=a[u];/^on[A-Z]/.test(u)?s&&c?r[u]=(...h)=>{const p=c(...h);return s(...h),p}:s&&(r[u]=s):u==="style"?r[u]={...s,...c}:u==="className"&&(r[u]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function kE(n){var u,s;let a=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}function CE(n){const a=n+"CollectionProvider",[r,u]=hf(a),[s,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),f=N=>{const{scope:R,children:M}=N,H=et.useRef(null),L=et.useRef(new Map).current;return E.jsx(s,{scope:R,itemMap:L,collectionRef:H,children:M})};f.displayName=a;const h=n+"CollectionSlot",p=qc(h),m=et.forwardRef((N,R)=>{const{scope:M,children:H}=N,L=c(h,M),ee=Vr(R,L.collectionRef);return E.jsx(p,{ref:ee,children:H})});m.displayName=h;const b=n+"CollectionItemSlot",g="data-radix-collection-item",S=qc(b),x=et.forwardRef((N,R)=>{const{scope:M,children:H,...L}=N,ee=et.useRef(null),Z=Vr(R,ee),D=c(b,M);return et.useEffect(()=>(D.itemMap.set(ee,{ref:ee,...L}),()=>void D.itemMap.delete(ee))),E.jsx(S,{[g]:"",ref:Z,children:H})});x.displayName=b;function A(N){const R=c(n+"CollectionConsumer",N);return et.useCallback(()=>{const H=R.collectionRef.current;if(!H)return[];const L=Array.from(H.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((D,P)=>L.indexOf(D.ref.current)-L.indexOf(P.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:f,Slot:m,ItemSlot:x},A,u]}function Qy(n,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(n==null||n(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var Xr=globalThis!=null&&globalThis.document?ne.useLayoutEffect:()=>{},EE=Lg[" useInsertionEffect ".trim().toString()]||Xr;function mf({prop:n,defaultProp:a,onChange:r=()=>{},caller:u}){const[s,c,f]=TE({defaultProp:a,onChange:r}),h=n!==void 0,p=h?n:s;{const b=ne.useRef(n!==void 0);ne.useEffect(()=>{const g=b.current;g!==h&&console.warn(`${u} is changing from ${g?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=h},[h,u])}const m=ne.useCallback(b=>{var g;if(h){const S=wE(b)?b(n):b;S!==n&&((g=f.current)==null||g.call(f,S))}else c(b)},[h,n,c,f]);return[p,m]}function TE({defaultProp:n,onChange:a}){const[r,u]=ne.useState(n),s=ne.useRef(r),c=ne.useRef(a);return EE(()=>{c.current=a},[a]),ne.useEffect(()=>{var f;s.current!==r&&((f=c.current)==null||f.call(c,r),s.current=r)},[r,s]),[r,u,c]}function wE(n){return typeof n=="function"}Ug();var AE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fr=AE.reduce((n,a)=>{const r=qc(`Primitive.${a}`),u=ne.forwardRef((s,c)=>{const{asChild:f,...h}=s,p=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(p,{...h,ref:c})});return u.displayName=`Primitive.${a}`,{...n,[a]:u}},{});function zE(n,a){return ne.useReducer((r,u)=>a[r][u]??r,n)}var Zy=n=>{const{present:a,children:r}=n,u=_E(a),s=typeof r=="function"?r({present:u.isPresent}):ne.Children.only(r),c=Vr(u.ref,ME(s));return typeof r=="function"||u.isPresent?ne.cloneElement(s,{ref:c}):null};Zy.displayName="Presence";function _E(n){const[a,r]=ne.useState(),u=ne.useRef(null),s=ne.useRef(n),c=ne.useRef("none"),f=n?"mounted":"unmounted",[h,p]=zE(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ne.useEffect(()=>{const m=bu(u.current);c.current=h==="mounted"?m:"none"},[h]),Xr(()=>{const m=u.current,b=s.current;if(b!==n){const S=c.current,x=bu(m);n?p("MOUNT"):x==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(b&&S!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),Xr(()=>{if(a){let m;const b=a.ownerDocument.defaultView??window,g=x=>{const N=bu(u.current).includes(CSS.escape(x.animationName));if(x.target===a&&N&&(p("ANIMATION_END"),!s.current)){const R=a.style.animationFillMode;a.style.animationFillMode="forwards",m=b.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=R)})}},S=x=>{x.target===a&&(c.current=bu(u.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",g),a.addEventListener("animationend",g),()=>{b.clearTimeout(m),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",g),a.removeEventListener("animationend",g)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ne.useCallback(m=>{u.current=m?getComputedStyle(m):null,r(m)},[])}}function bu(n){return(n==null?void 0:n.animationName)||"none"}function ME(n){var u,s;let a=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var OE=Lg[" useId ".trim().toString()]||(()=>{}),NE=0;function Iy(n){const[a,r]=ne.useState(OE());return Xr(()=>{r(u=>u??String(NE++))},[n]),a?`radix-${a}`:""}var Lu="Collapsible",[DE,Fy]=hf(Lu),[RE,pf]=DE(Lu),Ky=ne.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:u,defaultOpen:s,disabled:c,onOpenChange:f,...h}=n,[p,m]=mf({prop:u,defaultProp:s??!1,onChange:f,caller:Lu});return E.jsx(RE,{scope:r,disabled:c,contentId:Iy(),open:p,onOpenToggle:ne.useCallback(()=>m(b=>!b),[m]),children:E.jsx(Fr.div,{"data-state":yf(p),"data-disabled":c?"":void 0,...h,ref:a})})});Ky.displayName=Lu;var Jy="CollapsibleTrigger",$y=ne.forwardRef((n,a)=>{const{__scopeCollapsible:r,...u}=n,s=pf(Jy,r);return E.jsx(Fr.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":yf(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...u,ref:a,onClick:Qy(n.onClick,s.onOpenToggle)})});$y.displayName=Jy;var gf="CollapsibleContent",Wy=ne.forwardRef((n,a)=>{const{forceMount:r,...u}=n,s=pf(gf,n.__scopeCollapsible);return E.jsx(Zy,{present:r||s.open,children:({present:c})=>E.jsx(jE,{...u,ref:a,present:c})})});Wy.displayName=gf;var jE=ne.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:u,children:s,...c}=n,f=pf(gf,r),[h,p]=ne.useState(u),m=ne.useRef(null),b=Vr(a,m),g=ne.useRef(0),S=g.current,x=ne.useRef(0),A=x.current,N=f.open||h,R=ne.useRef(N),M=ne.useRef(void 0);return ne.useEffect(()=>{const H=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(H)},[]),Xr(()=>{const H=m.current;if(H){M.current=M.current||{transitionDuration:H.style.transitionDuration,animationName:H.style.animationName},H.style.transitionDuration="0s",H.style.animationName="none";const L=H.getBoundingClientRect();g.current=L.height,x.current=L.width,R.current||(H.style.transitionDuration=M.current.transitionDuration,H.style.animationName=M.current.animationName),p(u)}},[f.open,u]),E.jsx(Fr.div,{"data-state":yf(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!N,...c,ref:b,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...n.style},children:N&&s})});function yf(n){return n?"open":"closed"}var LE=Ky,UE=$y,BE=Wy,HE=ne.createContext(void 0);function qE(n){const a=ne.useContext(HE);return n||a||"ltr"}var cn="Accordion",GE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bf,YE,VE]=CE(cn),[Uu]=hf(cn,[VE,Fy]),xf=Fy(),Py=et.forwardRef((n,a)=>{const{type:r,...u}=n,s=u,c=u;return E.jsx(bf.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?E.jsx(IE,{...c,ref:a}):E.jsx(ZE,{...s,ref:a})})});Py.displayName=cn;var[eb,XE]=Uu(cn),[tb,QE]=Uu(cn,{collapsible:!1}),ZE=et.forwardRef((n,a)=>{const{value:r,defaultValue:u,onValueChange:s=()=>{},collapsible:c=!1,...f}=n,[h,p]=mf({prop:r,defaultProp:u??"",onChange:s,caller:cn});return E.jsx(eb,{scope:n.__scopeAccordion,value:et.useMemo(()=>h?[h]:[],[h]),onItemOpen:p,onItemClose:et.useCallback(()=>c&&p(""),[c,p]),children:E.jsx(tb,{scope:n.__scopeAccordion,collapsible:c,children:E.jsx(nb,{...f,ref:a})})})}),IE=et.forwardRef((n,a)=>{const{value:r,defaultValue:u,onValueChange:s=()=>{},...c}=n,[f,h]=mf({prop:r,defaultProp:u??[],onChange:s,caller:cn}),p=et.useCallback(b=>h((g=[])=>[...g,b]),[h]),m=et.useCallback(b=>h((g=[])=>g.filter(S=>S!==b)),[h]);return E.jsx(eb,{scope:n.__scopeAccordion,value:f,onItemOpen:p,onItemClose:m,children:E.jsx(tb,{scope:n.__scopeAccordion,collapsible:!0,children:E.jsx(nb,{...c,ref:a})})})}),[FE,Bu]=Uu(cn),nb=et.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:u,dir:s,orientation:c="vertical",...f}=n,h=et.useRef(null),p=Vr(h,a),m=YE(r),g=qE(s)==="ltr",S=Qy(n.onKeyDown,x=>{var W;if(!GE.includes(x.key))return;const A=x.target,N=m().filter(ue=>{var U;return!((U=ue.ref.current)!=null&&U.disabled)}),R=N.findIndex(ue=>ue.ref.current===A),M=N.length;if(R===-1)return;x.preventDefault();let H=R;const L=0,ee=M-1,Z=()=>{H=R+1,H>ee&&(H=L)},D=()=>{H=R-1,H<L&&(H=ee)};switch(x.key){case"Home":H=L;break;case"End":H=ee;break;case"ArrowRight":c==="horizontal"&&(g?Z():D());break;case"ArrowDown":c==="vertical"&&Z();break;case"ArrowLeft":c==="horizontal"&&(g?D():Z());break;case"ArrowUp":c==="vertical"&&D();break}const P=H%M;(W=N[P].ref.current)==null||W.focus()});return E.jsx(FE,{scope:r,disabled:u,direction:s,orientation:c,children:E.jsx(bf.Slot,{scope:r,children:E.jsx(Fr.div,{...f,"data-orientation":c,ref:p,onKeyDown:u?void 0:S})})})}),zu="AccordionItem",[KE,vf]=Uu(zu),lb=et.forwardRef((n,a)=>{const{__scopeAccordion:r,value:u,...s}=n,c=Bu(zu,r),f=XE(zu,r),h=xf(r),p=Iy(),m=u&&f.value.includes(u)||!1,b=c.disabled||n.disabled;return E.jsx(KE,{scope:r,open:m,disabled:b,triggerId:p,children:E.jsx(LE,{"data-orientation":c.orientation,"data-state":sb(m),...h,...s,ref:a,disabled:b,open:m,onOpenChange:g=>{g?f.onItemOpen(u):f.onItemClose(u)}})})});lb.displayName=zu;var ib="AccordionHeader",rb=et.forwardRef((n,a)=>{const{__scopeAccordion:r,...u}=n,s=Bu(cn,r),c=vf(ib,r);return E.jsx(Fr.h3,{"data-orientation":s.orientation,"data-state":sb(c.open),"data-disabled":c.disabled?"":void 0,...u,ref:a})});rb.displayName=ib;var Gc="AccordionTrigger",ab=et.forwardRef((n,a)=>{const{__scopeAccordion:r,...u}=n,s=Bu(cn,r),c=vf(Gc,r),f=QE(Gc,r),h=xf(r);return E.jsx(bf.ItemSlot,{scope:r,children:E.jsx(UE,{"aria-disabled":c.open&&!f.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...h,...u,ref:a})})});ab.displayName=Gc;var ub="AccordionContent",ob=et.forwardRef((n,a)=>{const{__scopeAccordion:r,...u}=n,s=Bu(cn,r),c=vf(ub,r),f=xf(r);return E.jsx(BE,{role:"region","aria-labelledby":c.triggerId,"data-orientation":s.orientation,...f,...u,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});ob.displayName=ub;function sb(n){return n?"open":"closed"}var JE=Py,$E=lb,WE=rb,PE=ab,eT=ob;/**
|
|
78
|
+
* @license lucide-react v0.563.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const cb=(...n)=>n.filter((a,r,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===r).join(" ").trim();/**
|
|
83
|
+
* @license lucide-react v0.563.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const tT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
88
|
+
* @license lucide-react v0.563.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const nT=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,u)=>u?u.toUpperCase():r.toLowerCase());/**
|
|
93
|
+
* @license lucide-react v0.563.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const xg=n=>{const a=nT(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
|
98
|
+
* @license lucide-react v0.563.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/var lT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
103
|
+
* @license lucide-react v0.563.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const iT=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
|
|
108
|
+
* @license lucide-react v0.563.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const rT=ne.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...h},p)=>ne.createElement("svg",{ref:p,...lT,width:a,height:a,stroke:n,strokeWidth:u?Number(r)*24/Number(a):r,className:cb("lucide",s),...!c&&!iT(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,b])=>ne.createElement(m,b)),...Array.isArray(c)?c:[c]]));/**
|
|
113
|
+
* @license lucide-react v0.563.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const aT=(n,a)=>{const r=ne.forwardRef(({className:u,...s},c)=>ne.createElement(rT,{ref:c,iconNode:a,className:cb(`lucide-${tT(xg(n))}`,`lucide-${n}`,u),...s}));return r.displayName=xg(n),r};/**
|
|
118
|
+
* @license lucide-react v0.563.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const uT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oT=aT("chevron-down",uT);function fb(n){var a,r,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=fb(n[a]))&&(u&&(u+=" "),u+=r)}else for(r in n)n[r]&&(u&&(u+=" "),u+=r);return u}function sT(){for(var n,a,r=0,u="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=fb(n))&&(u&&(u+=" "),u+=a);return u}const cT=(n,a)=>{const r=new Array(n.length+a.length);for(let u=0;u<n.length;u++)r[u]=n[u];for(let u=0;u<a.length;u++)r[n.length+u]=a[u];return r},fT=(n,a)=>({classGroupId:n,validator:a}),db=(n=new Map,a=null,r)=>({nextPart:n,validators:a,classGroupId:r}),_u="-",vg=[],dT="arbitrary..",hT=n=>{const a=pT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return mT(f);const h=f.split(_u),p=h[0]===""&&h.length>1?1:0;return hb(h,p,a)},getConflictingClassGroupIds:(f,h)=>{if(h){const p=u[f],m=r[f];return p?m?cT(m,p):p:m||vg}return r[f]||vg}}},hb=(n,a,r)=>{if(n.length-a===0)return r.classGroupId;const s=n[a],c=r.nextPart.get(s);if(c){const m=hb(n,a+1,c);if(m)return m}const f=r.validators;if(f===null)return;const h=a===0?n.join(_u):n.slice(a).join(_u),p=f.length;for(let m=0;m<p;m++){const b=f[m];if(b.validator(h))return b.classGroupId}},mT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=n.slice(1,-1),r=a.indexOf(":"),u=a.slice(0,r);return u?dT+u:void 0})(),pT=n=>{const{theme:a,classGroups:r}=n;return gT(r,a)},gT=(n,a)=>{const r=db();for(const u in n){const s=n[u];Sf(s,r,u,a)}return r},Sf=(n,a,r,u)=>{const s=n.length;for(let c=0;c<s;c++){const f=n[c];yT(f,a,r,u)}},yT=(n,a,r,u)=>{if(typeof n=="string"){bT(n,a,r);return}if(typeof n=="function"){xT(n,a,r,u);return}vT(n,a,r,u)},bT=(n,a,r)=>{const u=n===""?a:mb(a,n);u.classGroupId=r},xT=(n,a,r,u)=>{if(ST(n)){Sf(n(u),a,r,u);return}a.validators===null&&(a.validators=[]),a.validators.push(fT(r,n))},vT=(n,a,r,u)=>{const s=Object.entries(n),c=s.length;for(let f=0;f<c;f++){const[h,p]=s[f];Sf(p,mb(a,h),r,u)}},mb=(n,a)=>{let r=n;const u=a.split(_u),s=u.length;for(let c=0;c<s;c++){const f=u[c];let h=r.nextPart.get(f);h||(h=db(),r.nextPart.set(f,h)),r=h}return r},ST=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,kT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),u=Object.create(null);const s=(c,f)=>{r[c]=f,a++,a>n&&(a=0,u=r,r=Object.create(null))};return{get(c){let f=r[c];if(f!==void 0)return f;if((f=u[c])!==void 0)return s(c,f),f},set(c,f){c in r?r[c]=f:s(c,f)}}},Yc="!",Sg=":",CT=[],kg=(n,a,r,u,s)=>({modifiers:n,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:u,isExternal:s}),ET=n=>{const{prefix:a,experimentalParseClassName:r}=n;let u=s=>{const c=[];let f=0,h=0,p=0,m;const b=s.length;for(let N=0;N<b;N++){const R=s[N];if(f===0&&h===0){if(R===Sg){c.push(s.slice(p,N)),p=N+1;continue}if(R==="/"){m=N;continue}}R==="["?f++:R==="]"?f--:R==="("?h++:R===")"&&h--}const g=c.length===0?s:s.slice(p);let S=g,x=!1;g.endsWith(Yc)?(S=g.slice(0,-1),x=!0):g.startsWith(Yc)&&(S=g.slice(1),x=!0);const A=m&&m>p?m-p:void 0;return kg(c,x,S,A)};if(a){const s=a+Sg,c=u;u=f=>f.startsWith(s)?c(f.slice(s.length)):kg(CT,!1,f,void 0,!0)}if(r){const s=u;u=c=>r({className:c,parseClassName:s})}return u},TT=n=>{const a=new Map;return n.orderSensitiveModifiers.forEach((r,u)=>{a.set(r,1e6+u)}),r=>{const u=[];let s=[];for(let c=0;c<r.length;c++){const f=r[c],h=f[0]==="[",p=a.has(f);h||p?(s.length>0&&(s.sort(),u.push(...s),s=[]),u.push(f)):s.push(f)}return s.length>0&&(s.sort(),u.push(...s)),u}},wT=n=>({cache:kT(n.cacheSize),parseClassName:ET(n),sortModifiers:TT(n),...hT(n)}),AT=/\s+/,zT=(n,a)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:s,sortModifiers:c}=a,f=[],h=n.trim().split(AT);let p="";for(let m=h.length-1;m>=0;m-=1){const b=h[m],{isExternal:g,modifiers:S,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:N}=r(b);if(g){p=b+(p.length>0?" "+p:p);continue}let R=!!N,M=u(R?A.substring(0,N):A);if(!M){if(!R){p=b+(p.length>0?" "+p:p);continue}if(M=u(A),!M){p=b+(p.length>0?" "+p:p);continue}R=!1}const H=S.length===0?"":S.length===1?S[0]:c(S).join(":"),L=x?H+Yc:H,ee=L+M;if(f.indexOf(ee)>-1)continue;f.push(ee);const Z=s(M,R);for(let D=0;D<Z.length;++D){const P=Z[D];f.push(L+P)}p=b+(p.length>0?" "+p:p)}return p},_T=(...n)=>{let a=0,r,u,s="";for(;a<n.length;)(r=n[a++])&&(u=pb(r))&&(s&&(s+=" "),s+=u);return s},pb=n=>{if(typeof n=="string")return n;let a,r="";for(let u=0;u<n.length;u++)n[u]&&(a=pb(n[u]))&&(r&&(r+=" "),r+=a);return r},MT=(n,...a)=>{let r,u,s,c;const f=p=>{const m=a.reduce((b,g)=>g(b),n());return r=wT(m),u=r.cache.get,s=r.cache.set,c=h,h(p)},h=p=>{const m=u(p);if(m)return m;const b=zT(p,r);return s(p,b),b};return c=f,(...p)=>c(_T(...p))},OT=[],ct=n=>{const a=r=>r[n]||OT;return a.isThemeGetter=!0,a},gb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,NT=/^\d+\/\d+$/,DT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RT=/\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$/,jT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,LT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_i=n=>NT.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),ml=n=>!!n&&Number.isInteger(Number(n)),Ec=n=>n.endsWith("%")&&Te(n.slice(0,-1)),Hn=n=>DT.test(n),BT=()=>!0,HT=n=>RT.test(n)&&!jT.test(n),bb=()=>!1,qT=n=>LT.test(n),GT=n=>UT.test(n),YT=n=>!se(n)&&!ce(n),VT=n=>ji(n,Sb,bb),se=n=>gb.test(n),jl=n=>ji(n,kb,HT),Tc=n=>ji(n,FT,Te),Cg=n=>ji(n,xb,bb),XT=n=>ji(n,vb,GT),xu=n=>ji(n,Cb,qT),ce=n=>yb.test(n),jr=n=>Li(n,kb),QT=n=>Li(n,KT),Eg=n=>Li(n,xb),ZT=n=>Li(n,Sb),IT=n=>Li(n,vb),vu=n=>Li(n,Cb,!0),ji=(n,a,r)=>{const u=gb.exec(n);return u?u[1]?a(u[1]):r(u[2]):!1},Li=(n,a,r=!1)=>{const u=yb.exec(n);return u?u[1]?a(u[1]):r:!1},xb=n=>n==="position"||n==="percentage",vb=n=>n==="image"||n==="url",Sb=n=>n==="length"||n==="size"||n==="bg-size",kb=n=>n==="length",FT=n=>n==="number",KT=n=>n==="family-name",Cb=n=>n==="shadow",JT=()=>{const n=ct("color"),a=ct("font"),r=ct("text"),u=ct("font-weight"),s=ct("tracking"),c=ct("leading"),f=ct("breakpoint"),h=ct("container"),p=ct("spacing"),m=ct("radius"),b=ct("shadow"),g=ct("inset-shadow"),S=ct("text-shadow"),x=ct("drop-shadow"),A=ct("blur"),N=ct("perspective"),R=ct("aspect"),M=ct("ease"),H=ct("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...ee(),ce,se],D=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],W=()=>[ce,se,p],ue=()=>[_i,"full","auto",...W()],U=()=>[ml,"none","subgrid",ce,se],ie=()=>["auto",{span:["full",ml,ce,se]},ml,ce,se],re=()=>[ml,"auto",ce,se],ye=()=>["auto","min","max","fr",ce,se],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...W()],X=()=>[_i,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],Q=()=>[n,ce,se],ve=()=>[...ee(),Eg,Cg,{position:[ce,se]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",ZT,VT,{size:[ce,se]}],Y=()=>[Ec,jr,jl],k=()=>["","none","full",m,ce,se],le=()=>["",Te,jr,jl],he=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Te,Ec,Eg,Cg],Xe=()=>["","none",A,ce,se],Re=()=>["none",Te,ce,se],ht=()=>["none",Te,ce,se],Lt=()=>[Te,ce,se],fn=()=>[_i,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Hn],breakpoint:[Hn],color:[BT],container:[Hn],"drop-shadow":[Hn],ease:["in","out","in-out"],font:[YT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Hn],shadow:[Hn],spacing:["px",Te],text:[Hn],"text-shadow":[Hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_i,se,ce,R]}],container:["container"],columns:[{columns:[Te,se,ce,h]}],"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:Z()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{start:ue()}],end:[{end:ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[ml,"auto",ce,se]}],basis:[{basis:[_i,"full","auto",h,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,_i,"auto","initial","none",se]}],grow:[{grow:["",Te,ce,se]}],shrink:[{shrink:["",Te,ce,se]}],order:[{order:[ml,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[h,"screen",...X()]}],"min-w":[{"min-w":[h,"screen","none",...X()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,jr,jl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,ce,Tc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ec,se]}],"font-family":[{font:[QT,se,a]}],"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:[s,ce,se]}],"line-clamp":[{"line-clamp":[Te,"none",ce,Tc]}],leading:[{leading:[c,...W()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,jl]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,se]}],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",ce,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ml,ce,se],radial:["",ce,se],conic:[ml,ce,se]},IT,XT]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,se]}],"outline-w":[{outline:["",Te,jr,jl]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",b,vu,xu]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",g,vu,xu]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Te,jl]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,vu,xu]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Te,ce,se]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ce,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":ee()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:Xe()}],brightness:[{brightness:[Te,ce,se]}],contrast:[{contrast:[Te,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",x,vu,xu]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Te,ce,se]}],"hue-rotate":[{"hue-rotate":[Te,ce,se]}],invert:[{invert:["",Te,ce,se]}],saturate:[{saturate:[Te,ce,se]}],sepia:[{sepia:["",Te,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,se]}],ease:[{ease:["linear","initial",M,ce,se]}],delay:[{delay:[Te,ce,se]}],animate:[{animate:["none",H,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,ce,se]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:Lt()}],"skew-x":[{"skew-x":Lt()}],"skew-y":[{"skew-y":Lt()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fn()}],"translate-x":[{"translate-x":fn()}],"translate-y":[{"translate-y":fn()}],"translate-z":[{"translate-z":fn()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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",ce,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",ce,se]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Te,jr,jl,Tc]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["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-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$T=MT(JT);function kf(...n){return $T(sT(n))}function WT({...n}){return E.jsx(JE,{"data-slot":"accordion",...n})}function Vc({className:n,...a}){return E.jsx($E,{"data-slot":"accordion-item",className:kf("border-b last:border-b-0",n),...a})}function Xc({className:n,children:a,...r}){return E.jsx(WE,{className:"flex",children:E.jsxs(PE,{"data-slot":"accordion-trigger",className:kf("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",n),...r,children:[a,E.jsx(oT,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Qc({className:n,children:a,...r}){return E.jsx(eT,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:E.jsx("div",{className:kf("pt-0 pb-4",n),children:a})})}function Tg(n){return n===null?"--":n<1e3?`${n}ms`:`${(n/1e3).toFixed(1)}s`}function wg(n,a){return n.length<=a?n:n.slice(0,a)+"..."}function PT(n){return n.name.toLowerCase()==="bash"&&typeof n.input.command=="string"?`Bash(${n.input.command.trim().split(/\s+/)[0]})`:n.name}function Ag(n){const a=n.toolCalls.map(u=>PT(u));return[...new Set(a)].join(", ")}function ew({turn:n}){const a=n.textContent?wg(n.textContent.replace(/\n/g," "),50):n.toolCalls.length>0?Ag(n):"No content",r=n.toolCalls.length,u=Ag(n),s=(n.llmGenDurationMs||0)+(n.durationMs||0),c=s>0?s:n.durationMs,f=n.llmGenDurationMs!==null&&n.llmGenDurationMs>0;return E.jsxs("div",{className:"flex items-center gap-x-3 w-full min-w-0",children:[E.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[Tg(c),f&&` (${Tg(n.llmGenDurationMs)} LLM)`]}),r>0&&E.jsxs("span",{className:"text-xs bg-secondary px-2 py-0.5 rounded shrink-0",children:[r," tool",r>1?"s":""," (",wg(u,60),")"]}),E.jsx("span",{className:"text-sm text-muted-foreground truncate min-w-0",children:a})]})}function tw(n){return n===null?"--":n<1e3?`${n}ms`:`${(n/1e3).toFixed(1)}s`}function nw(n){return n.name.toLowerCase()==="bash"&&typeof n.input.command=="string"?`Bash(${n.input.command.trim().split(/\s+/)[0]})`:n.name}function lw(n){return n.name==="Task"&&!!n.agentId}function iw(n){var a;return typeof n.input.description=="string"?n.input.description:`subagent_${((a=n.agentId)==null?void 0:a.slice(0,8))||"unknown"}`}function rw(n){if(typeof n.command=="string")return Ll(n.command.replace(/\n/g," "),50);if(typeof n.pattern=="string")return Ll(n.pattern,50);if(typeof n.file_path=="string")return Ll(n.file_path,50);if(typeof n.query=="string")return Ll(n.query,50);if(typeof n.url=="string")return Ll(n.url,50);const a=JSON.stringify(n);return Ll(a,50)}function aw(n){return n?Ll(n.replace(/\n/g," "),60):"--"}function Ll(n,a){return n.length<=a?n:n.slice(0,a)+"..."}function zg(n){if(n===null)return"--";if(typeof n=="object")return JSON.stringify(n,null,2);try{const a=JSON.parse(n);return JSON.stringify(a,null,2)}catch{return n}}function uw({tool:n,onSubagentOpen:a}){const[r,u]=ne.useState(!1),s=f=>{f.target.closest("button")||u(!r)},c=f=>{f.stopPropagation(),n.agentId&&a(n.agentId,iw(n))};return E.jsxs("tr",{onClick:s,className:`cursor-pointer border-b border-gray-300 last:border-b-0 ${n.success?"hover:bg-gray-100":"bg-red-50 hover:bg-red-100"}`,children:[E.jsx("td",{className:"pl-4 pr-3 py-2 text-muted-foreground whitespace-nowrap border-r border-gray-300 align-top",children:tw(n.durationMs)}),E.jsxs("td",{className:"px-3 py-2 border-r border-gray-300 align-top break-all",children:[E.jsx("span",{className:"font-mono",children:nw(n)}),lw(n)&&E.jsx("button",{onClick:c,className:"ml-2 text-xs bg-purple-100 text-purple-700 hover:bg-purple-200 px-2 py-0.5 rounded-full cursor-pointer transition-colors font-medium",children:"subagent →"})]}),E.jsx("td",{className:"px-3 py-2 border-r border-gray-300 overflow-hidden align-top",children:r?E.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap max-h-[400px] overflow-auto",children:zg(n.input)}):E.jsx("span",{className:"text-muted-foreground truncate block",children:rw(n.input)})}),E.jsx("td",{className:"pl-3 pr-4 py-2 overflow-hidden align-top",children:r?E.jsx("pre",{className:`text-xs font-mono whitespace-pre-wrap max-h-[400px] overflow-auto ${n.success?"":"text-red-700"}`,children:zg(n.result)}):E.jsx("span",{className:"text-muted-foreground truncate block",children:aw(n.result)})})]})}function ow({turn:n,value:a,isFirst:r,isLast:u,onSubagentOpen:s}){return E.jsxs(Vc,{value:a,id:n.id,className:`border-0 ${r?"":"border-t border-gray-300"}`,children:[E.jsx(Xc,{className:"hover:no-underline py-3 px-4 cursor-pointer",children:E.jsx(ew,{turn:n})}),E.jsx(Qc,{className:"pb-0",children:E.jsxs("div",{children:[n.textContent&&E.jsx("div",{className:"prose prose-sm max-w-none prose-code:before:content-none prose-code:after:content-none mb-2 px-4",children:E.jsx(xy,{remarkPlugins:[Vy],components:{code:({className:c,children:f,...h})=>c?E.jsx("code",{className:"text-gray-800",...h,children:f}):E.jsx("code",{className:"bg-gray-200 text-gray-800 px-1.5 py-0.5 text-sm font-mono",...h,children:f}),pre:({children:c})=>E.jsx("pre",{className:"bg-gray-200 text-gray-800 p-4 overflow-x-auto",children:c}),table:({children:c})=>E.jsx("table",{className:"border-collapse border border-gray-300 my-4",children:c}),th:({children:c})=>E.jsx("th",{className:"border border-gray-300 px-3 py-2 bg-gray-100 text-left font-medium",children:c}),td:({children:c})=>E.jsx("td",{className:"border border-gray-300 px-3 py-2",children:c})},children:n.textContent})}),n.toolCalls.length>0&&E.jsx("div",{className:"overflow-x-auto",children:E.jsxs("table",{className:"w-full text-sm border-collapse border-t border-gray-300 bg-white table-fixed min-w-0",children:[E.jsxs("colgroup",{children:[E.jsx("col",{style:{width:"80px"}}),E.jsx("col",{style:{width:"180px"}}),E.jsx("col",{}),E.jsx("col",{})]}),E.jsx("tbody",{children:n.toolCalls.map(c=>E.jsx(uw,{tool:c,onSubagentOpen:s},c.id))})]})})]})})]})}function sw({sessionId:n,navStack:a,totalPrompts:r,onNavigateBack:u,onPromptChange:s}){const c=n.slice(0,8);return E.jsxs("div",{className:"flex items-center text-sm font-mono",children:[E.jsx("span",{className:"text-gray-400",children:c}),a.map((f,h)=>{var m;const p=h===a.length-1;if(f.type==="root")return E.jsxs("span",{className:"flex items-center",children:[E.jsx("span",{className:"mx-2 text-gray-400",children:"/"}),p?E.jsx("select",{value:f.promptIndex,onChange:b=>s(Number(b.target.value)),className:"bg-transparent text-gray-600 cursor-pointer hover:text-gray-900 focus:outline-none",children:Array.from({length:r},(b,g)=>E.jsxs("option",{value:g,children:["Prompt ",g+1,"/",r]},g))}):E.jsxs("button",{onClick:()=>u(h),className:"text-gray-600 hover:text-gray-900 cursor-pointer",children:["Prompt ",f.promptIndex+1,"/",r]})]},h);{const b=`subagent_${((m=f.agentId)==null?void 0:m.slice(0,8))||"unknown"}`;return E.jsxs("span",{className:"flex items-center",children:[E.jsx("span",{className:"mx-2 text-gray-400",children:"/"}),p?E.jsx("span",{className:"text-gray-400",children:b}):E.jsx("button",{onClick:()=>u(h),className:"text-gray-600 hover:text-gray-900 cursor-pointer",children:b})]},h)}})]})}function cw({exchanges:n,sessionId:a,navStack:r,currentPromptIndex:u,rootTotalPrompts:s,expandedTurns:c,onExpandedTurnsChange:f,onPromptChange:h,onSubagentOpen:p,onNavigateBack:m}){const b=f,g=n[u],{toolTurns:S,finalResponse:x}=ne.useMemo(()=>{if(!g)return{toolTurns:[],finalResponse:null};const H=g.assistantTurns,L=H[H.length-1];return L&&L.textContent&&L.toolCalls.length===0?{toolTurns:H.slice(0,-1),finalResponse:L}:{toolTurns:H,finalResponse:null}},[g]),A=ne.useMemo(()=>{const H=["user-message",...S.map(L=>L.id)];return x&&H.push(x.id),H},[S,x]),N=ne.useMemo(()=>g?g.assistantTurns.reduce((H,L)=>{const ee=L.llmGenDurationMs||0,Z=L.durationMs||0;return H+ee+Z},0):0,[g]),R=c.length===A.length&&A.length>0,M=()=>{b(R?[]:A)};return g?E.jsxs("div",{children:[E.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-y border-gray-200 bg-gray-50",children:[E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsx(sw,{sessionId:a,navStack:r,totalPrompts:s,onNavigateBack:m,onPromptChange:h}),N>0&&E.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",_g(N),")"]})]}),E.jsx("button",{onClick:M,className:"text-sm text-muted-foreground hover:text-gray-900 cursor-pointer",children:R?"Collapse All":"Expand All"})]}),E.jsxs(WT,{type:"multiple",value:c,onValueChange:b,className:"overflow-hidden",children:[E.jsxs("div",{className:"flex",children:[E.jsx("div",{className:"w-12 shrink-0 flex items-start justify-center pt-3 border-r border-gray-300 bg-gray-50",children:E.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 bg-blue-500 text-white text-xs font-medium",children:"U"})}),E.jsx("div",{className:"flex-1 min-w-0 border-b border-gray-300",children:E.jsxs(Vc,{value:"user-message",className:"border-0",children:[E.jsx(Xc,{className:"hover:no-underline py-3 px-4 cursor-pointer",children:E.jsx("span",{className:"text-sm text-muted-foreground",children:"User prompt"})}),E.jsx(Qc,{className:"px-4 pb-3",children:E.jsx("p",{className:"text-sm whitespace-pre-wrap",children:g.userMessage.content})})]})})]}),S.length>0&&E.jsxs("div",{className:"flex",children:[E.jsx("div",{className:"w-12 shrink-0 flex items-start justify-center pt-3 border-r border-gray-300 bg-gray-50",children:E.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 text-white text-xs font-medium",style:{backgroundColor:"#e6714e"},children:"C"})}),E.jsx("div",{className:"flex-1 min-w-0 border-b border-gray-300",children:S.map((H,L)=>E.jsx(ow,{turn:H,value:H.id,isFirst:L===0,isLast:L===S.length-1,onSubagentOpen:p},H.id))})]}),x&&E.jsxs("div",{className:"flex",children:[E.jsx("div",{className:"w-12 shrink-0 flex items-start justify-center pt-3 border-r border-gray-300 bg-gray-50",children:S.length===0&&E.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 text-white text-xs font-medium",style:{backgroundColor:"#e6714e"},children:"C"})}),E.jsx("div",{className:"flex-1 min-w-0 border-b border-gray-300",children:E.jsxs(Vc,{value:x.id,className:"border-0",children:[E.jsx(Xc,{className:"hover:no-underline py-3 px-4 cursor-pointer",children:E.jsxs("span",{className:"text-sm text-muted-foreground",children:["Final response (",_g(x.llmGenDurationMs),")"]})}),E.jsx(Qc,{className:"px-4 pb-3",children:E.jsx("div",{className:"prose prose-sm max-w-none prose-code:before:content-none prose-code:after:content-none",children:E.jsx(xy,{remarkPlugins:[Vy],components:{code:({className:H,children:L,...ee})=>H?E.jsx("code",{className:"text-gray-800",...ee,children:L}):E.jsx("code",{className:"bg-gray-100 text-gray-800 px-1.5 py-0.5 text-sm font-mono",...ee,children:L}),pre:({children:H})=>E.jsx("pre",{className:"bg-gray-100 text-gray-800 p-4 overflow-x-auto",children:H}),table:({children:H})=>E.jsx("table",{className:"border-collapse border border-gray-300 my-4",children:H}),th:({children:H})=>E.jsx("th",{className:"border border-gray-300 px-3 py-2 bg-gray-100 text-left font-medium",children:H}),td:({children:H})=>E.jsx("td",{className:"border border-gray-300 px-3 py-2",children:H})},children:x.textContent||""})})})]})})]})]})]}):E.jsx("div",{className:"text-muted-foreground",children:"No exchanges found"})}function _g(n){return n===null?"--":n<1e3?`${n}ms`:`${(n/1e3).toFixed(1)}s`}function Zc(n){if(n<1e3)return`${Math.round(n)}ms`;const a=Math.round(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),u=a%60;return u===0?`${r}m`:`${r}m${u}s`}function fw(n){return typeof n.command=="string"?Lr(n.command.replace(/\n/g," "),40):typeof n.pattern=="string"?Lr(n.pattern,40):typeof n.file_path=="string"?Lr(n.file_path,40):typeof n.query=="string"?Lr(n.query,40):typeof n.url=="string"?Lr(n.url,40):""}function Lr(n,a){return n.length<=a?n:n.slice(0,a)+"..."}function dw(n){return n.name.toLowerCase()==="bash"&&typeof n.input.command=="string"?`Bash(${n.input.command.trim().split(/\s+/)[0]})`:n.name}function hw(n){const a=[],r=[];for(const u of n){const s=u.startMs+u.durationMs;let c=0;for(;a.filter(p=>p.row===c).some(p=>!(u.startMs>=p.endMs||s<=p.startMs));)c++;a.push({row:c,startMs:u.startMs,endMs:s}),r.push(c)}return r}function mw(n){const a=new Date(n.userMessage.timestamp),r=[];let u=0;for(let p=0;p<n.assistantTurns.length;p++){const m=n.assistantTurns[p],b=m.llmGenDurationMs||0,g=m.durationMs||0,S=u;b>0&&r.push({startMs:S,durationMs:b,data:{id:`llm-${m.id}`,type:"llm",label:"LLM",turnIndex:p,turnId:m.id,success:!0,metadata:{}}});const x=S+b;for(const N of m.toolCalls){const R=N.durationMs||0;r.push({startMs:x,durationMs:R,data:{id:`tool-${N.id}`,type:"tool",label:dw(N),turnIndex:p,turnId:m.id,toolId:N.id,success:N.success,metadata:{toolName:N.name,inputSnippet:fw(N.input),agentId:N.agentId}}})}const A=b+g;u=S+A}const s=hw(r),c=s.length>0?Math.max(...s):0,f=r.map((p,m)=>({...p.data,startMs:p.startMs,durationMs:p.durationMs,row:s[m]}));return{totalDurationMs:Math.max(u,100),traceStartTime:a,segments:f,turnGroups:[{turnIndex:0,rowCount:Math.max(c+1,1)}]}}function pw(n){return n.type==="llm"?{fill:"#e6714e"}:n.success?n.metadata.agentId?{fill:"#9333ea"}:{fill:"#22c55e"}:{fill:"#22c55e",stroke:"#dc2626"}}function gw({segment:n,x:a,y:r,width:u,height:s,onMouseEnter:c,onMouseLeave:f,onClick:h}){const{fill:p,stroke:m}=pw(n),b=Math.max(u,2),g=`clip-${n.id}`;return E.jsxs("g",{onMouseEnter:S=>c(S,n),onMouseLeave:f,onClick:h,style:{cursor:"pointer"},children:[E.jsx("defs",{children:E.jsx("clipPath",{id:g,children:E.jsx("rect",{x:a,y:r,width:b,height:s})})}),E.jsx("rect",{x:a,y:r,width:b,height:s,fill:p,stroke:m,strokeWidth:m?2:0,rx:3,ry:3}),E.jsx("text",{x:a+4,y:r+s/2+4,fill:"white",fontSize:11,fontFamily:"system-ui, sans-serif",style:{pointerEvents:"none"},clipPath:`url(#${g})`,children:n.label})]})}function yw({segment:n,x:a,y:r}){const u=Zc(n.startMs),s=Zc(n.durationMs);return E.jsxs("div",{className:"fixed z-50 bg-gray-900 text-white text-xs rounded-md shadow-lg px-3 py-2 pointer-events-none",style:{left:a+10,top:r-10,maxWidth:300},children:[E.jsx("div",{className:"font-semibold mb-1",children:n.label}),E.jsxs("div",{className:"text-gray-300 space-y-0.5",children:[E.jsxs("div",{children:["Duration: ",s]}),E.jsxs("div",{children:["Start: ",u]}),n.metadata.inputSnippet&&E.jsx("div",{className:"text-gray-400 truncate",children:n.metadata.inputSnippet}),n.metadata.agentId&&E.jsx("div",{className:"text-indigo-300",children:"Subagent"}),n.success===!1&&E.jsx("div",{className:"text-red-400",children:"Failed"})]})]})}const Ur=20,Mg=20,gn=10,bw=25,qn=28,Og=2e5,Ng=4,xw="#3b82f6",vw="#e6714e",Sw="#e5e7eb",kw=6;function Cw(n){return n>=1e3?`${(n/1e3).toFixed(0)}k`:n.toString()}function Ew({exchange:n,onBarClick:a,zoom:r}){const u=ne.useRef(null),[s,c]=ne.useState(600),[f,h]=ne.useState(null);ne.useEffect(()=>{const Z=()=>{u.current&&c(u.current.clientWidth)};return Z(),window.addEventListener("resize",Z),()=>window.removeEventListener("resize",Z)},[]);const p=ne.useMemo(()=>{var ue,U,ie,re;const Z=[];if(n.assistantTurns.length===0)return Z;const D=n.assistantTurns[0];if(!D.tokenUsage)return Z;const P=D.tokenUsage.cache_read_input_tokens||0;let W=0;P>0&&(Z.push({turnId:`user-${n.id}`,turnIndex:-1,label:"User",shortLabel:"U",startTokens:0,endTokens:P,tokens:P,inputTokens:D.tokenUsage.input_tokens||0,outputTokens:D.tokenUsage.output_tokens||0,cacheCreationTokens:D.tokenUsage.cache_creation_input_tokens||0,cacheReadTokens:D.tokenUsage.cache_read_input_tokens||0,isUser:!0}),W=P);for(let ye=0;ye<n.assistantTurns.length;ye++){const K=n.assistantTurns[ye],$=ye===n.assistantTurns.length-1,T=((ue=K.tokenUsage)==null?void 0:ue.input_tokens)||0,X=((U=K.tokenUsage)==null?void 0:U.output_tokens)||0,Q=((ie=K.tokenUsage)==null?void 0:ie.cache_creation_input_tokens)||0,ve=((re=K.tokenUsage)==null?void 0:re.cache_read_input_tokens)||0,C=T+X+Q,z=$&&K.toolCalls.length===0,Y=ye+1,k=z?"Final":`Turn ${Y}`,le=z?"F":`T${Y}`;Z.push({turnId:K.id,turnIndex:K.index,label:k,shortLabel:le,startTokens:W,endTokens:W+C,tokens:C,inputTokens:T,outputTokens:X,cacheCreationTokens:Q,cacheReadTokens:ve}),W+=C}return Z},[n]),b=(s-Ur-Mg)*r,g=gn+qn+bw,S=Ur+b+Mg,x=Z=>Ur+Z/Og*b,A=Z=>Z/Og*b,N=[0,5e4,1e5,15e4,2e5],R=(Z,D)=>{h({segment:D,x:Z.clientX,y:Z.clientY})},M=(Z,D)=>{h({segment:D,x:Z.clientX,y:Z.clientY})},H=()=>{h(null)},L=Z=>{Z.isUser||a(Z.turnId)};if(p.length===0)return E.jsx("div",{ref:u,className:"w-full px-4 py-8 text-center text-gray-500 text-sm",children:"No token usage data available for this exchange"});const ee=`context-bar-clip-${n.id}`;return E.jsxs("div",{ref:u,className:"w-full",children:[E.jsx("div",{className:"overflow-x-auto bg-white",children:E.jsxs("svg",{width:S,height:g,children:[E.jsx("defs",{children:E.jsx("clipPath",{id:ee,children:E.jsx("rect",{x:Ur,y:gn,width:b,height:qn,rx:Ng})})}),E.jsx("rect",{x:Ur,y:gn,width:b,height:qn,fill:Sw,rx:Ng}),E.jsx("g",{clipPath:`url(#${ee})`,children:p.map((Z,D)=>{const P=x(Z.startTokens),W=A(Z.tokens),ue=Math.max(W,2),U=Z.isUser?xw:vw;return E.jsxs("g",{onMouseEnter:ie=>R(ie,Z),onMouseMove:ie=>M(ie,Z),onMouseLeave:H,onClick:()=>L(Z),style:{cursor:Z.isUser?"default":"pointer"},children:[E.jsx("rect",{x:P,y:gn,width:ue,height:qn,fill:U}),D>0&&E.jsx("line",{x1:P,y1:gn,x2:P,y2:gn+qn,stroke:"rgba(255,255,255,0.3)",strokeWidth:1})]},Z.turnId)})}),p.map(Z=>{const D=x(Z.startTokens),P=A(Z.tokens);let W=Z.label;P<50&&(W=Z.shortLabel),P<20&&(W=Z.shortLabel.charAt(0));const ue=P>=15,U=`label-clip-${Z.turnId}`;return E.jsxs("g",{children:[ue&&E.jsx("clipPath",{id:U,children:E.jsx("rect",{x:D,y:gn,width:P,height:qn})}),E.jsx("text",{x:D+kw,y:gn+qn/2,fontSize:11,fill:"white",textAnchor:"start",dominantBaseline:"middle",fontFamily:"system-ui, sans-serif",fontWeight:500,pointerEvents:"none",clipPath:ue?`url(#${U})`:void 0,children:W})]},`label-${Z.turnId}`)}),N.map(Z=>{const D=x(Z);return E.jsxs("g",{children:[E.jsx("line",{x1:D,y1:gn+qn,x2:D,y2:gn+qn+4,stroke:"#9ca3af",strokeWidth:1}),E.jsx("text",{x:D,y:g-6,fontSize:10,fill:"#9ca3af",textAnchor:"middle",fontFamily:"system-ui, sans-serif",children:Cw(Z)})]},Z)})]})}),f&&E.jsxs("div",{className:"fixed z-50 px-3 py-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none",style:{left:f.x+10,top:f.y-10,transform:"translateY(-100%)"},children:[E.jsx("div",{className:"font-semibold mb-1",children:f.segment.label}),E.jsxs("div",{className:"text-gray-300",children:[f.segment.tokens.toLocaleString()," tokens"]})]})]})}const Su=20,Dg=20,ku=10,Tw=25,wc=22,Rg=4,ww=60,Ac=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5,9e5,18e5,36e5];function Aw(n,a){for(const r of Ac){const u=n/r;if(a/u>=ww)return r}return Ac[Ac.length-1]}function zw({exchange:n,onBarClick:a}){var $;const r=ne.useRef(null),[u,s]=ne.useState(600),[c,f]=ne.useState(1),[h,p]=ne.useState("timeline"),[m,b]=ne.useState(null);ne.useEffect(()=>{const T=()=>{r.current&&s(r.current.clientWidth)};return T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[]),ne.useEffect(()=>{f(1),p("timeline")},[n]);const g=ne.useMemo(()=>mw(n),[n]),{totalDurationMs:S,segments:x,turnGroups:A}=g,R=((($=A[0])==null?void 0:$.rowCount)||1)*(wc+Rg),M=ku+R+Tw,L=(u-Su-Dg)*c,ee=Su+L+Dg,Z=ne.useMemo(()=>Aw(S,L),[S,L]),D=T=>ku+T*(wc+Rg),P=T=>S===0?Su:Su+T/S*L,W=T=>S===0?0:T/S*L,ue=ne.useMemo(()=>{const T=[];for(let X=0;X<=S;X+=Z)T.push({ms:X,label:Zc(X)});return T},[S,Z]),U=(T,X)=>{b({segment:X,x:T.clientX,y:T.clientY})},ie=()=>{b(null)},re=T=>{a(T.turnId)},ye=()=>{f(T=>Math.min(T*1.5,10))},K=()=>{f(T=>Math.max(T/1.5,1))};return x.length===0?null:E.jsxs("div",{ref:r,className:"border-t border-b border-gray-200 w-full",children:[E.jsxs("div",{className:"flex justify-between items-center px-2 py-1 border-b border-gray-200 bg-gray-50",children:[E.jsxs("select",{value:h,onChange:T=>p(T.target.value),className:"text-xs bg-transparent border-none text-gray-600 hover:text-gray-900 cursor-pointer focus:outline-none appearance-none pr-4",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right center"},children:[E.jsx("option",{value:"timeline",children:"Timeline"}),E.jsx("option",{value:"context",children:"Context Usage"})]}),E.jsxs("div",{className:"flex gap-1",children:[E.jsx("button",{onClick:K,disabled:c<=1,className:"p-1 text-gray-500 hover:text-gray-700 disabled:opacity-30 disabled:cursor-not-allowed",title:"Zoom out",children:E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),E.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}),E.jsx("button",{onClick:ye,disabled:c>=10,className:"p-1 text-gray-500 hover:text-gray-700 disabled:opacity-30 disabled:cursor-not-allowed",title:"Zoom in",children:E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),E.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),E.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})})]})]}),h==="timeline"?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"overflow-x-auto bg-white",children:E.jsxs("svg",{width:ee,height:M,children:[ue.map((T,X)=>{const Q=P(T.ms);return E.jsxs("g",{children:[E.jsx("line",{x1:Q,y1:ku,x2:Q,y2:ku+R,stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"4 4"}),E.jsx("text",{x:Q,y:M-6,fontSize:10,fill:"#9ca3af",textAnchor:"middle",fontFamily:"system-ui, sans-serif",children:T.label})]},`tick-${X}`)}),x.map(T=>{const X=P(T.startMs),Q=D(T.row),ve=W(T.durationMs);return E.jsx(gw,{segment:T,x:X,y:Q,width:ve,height:wc,onMouseEnter:U,onMouseLeave:ie,onClick:()=>re(T)},T.id)})]})}),m&&E.jsx(yw,{segment:m.segment,x:m.x,y:m.y})]}):E.jsx(Ew,{exchange:n,onBarClick:a,zoom:c})]})}async function _w(){return(await fetch("/api/projects")).json()}async function jg(n){return(await fetch(`/api/traces?projectId=${encodeURIComponent(n)}`)).json()}async function Mw(n){return(await fetch("/api/trace",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:n})})).json()}async function Ow(n,a){const r=await fetch("/api/subagent-trace",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mainTracePath:n,agentId:a})});if(!r.ok){const u=await r.json();throw new Error(u.error||"Failed to load subagent trace")}return r.json()}function zc(n){if(!n)return["user-message"];const a=n.assistantTurns,r=a[a.length-1];return r&&r.textContent&&r.toolCalls.length===0?[r.id,"user-message"]:["user-message"]}function Nw(){var ye;const[n,a]=ne.useState([]),[r,u]=ne.useState(null),[s,c]=ne.useState([]),[f,h]=ne.useState(!1),[p,m]=ne.useState(null),[b,g]=ne.useState(null),[S,x]=ne.useState(!1),[A,N]=ne.useState(null),[R,M]=ne.useState([]);ne.useEffect(()=>{_w().then(async K=>{if(a(K),K.length>0){const $=K[0];u($.id),h(!0);try{const T=await jg($.id);c(T)}catch(T){console.error("Failed to load traces:",T)}finally{h(!1)}}})},[]);const H=async K=>{u(K),h(!0),m(null),g(null),N(null),M([]);try{const $=await jg(K);c($)}catch($){console.error("Failed to load traces for project:",$),c([])}finally{h(!1)}},L=async(K,$)=>{m(K),g($),N(s.find(T=>T.sessionId===K)||null),x(!0);try{const T=await Mw($),X=T[0],Q=zc(X);M([{type:"root",label:"",promptIndex:0,exchanges:T,expandedTurns:Q}])}catch(T){console.error("Failed to load trace:",T),M([])}finally{x(!1)}};ne.useEffect(()=>{s.length>0&&!p&&L(s[0].sessionId,s[0].fullPath)},[s]);const ee=R[R.length-1],Z=(ee==null?void 0:ee.exchanges)??null,D=(ee==null?void 0:ee.promptIndex)??0,P=(ee==null?void 0:ee.expandedTurns)??[],W=((ye=R[0])==null?void 0:ye.exchanges.length)??0,ue=K=>{M($=>{const T=[...$];if(T.length>0){const X=T[T.length-1],Q=X.exchanges[K],ve=zc(Q);T[T.length-1]={...X,promptIndex:K,expandedTurns:ve}}return T})},U=K=>{M($=>{const T=[...$];return T.length>0&&(T[T.length-1]={...T[T.length-1],expandedTurns:K}),T})},ie=async(K,$)=>{if(b)try{const T=await Ow(b,K),X=zc(T[0]);M(Q=>[...Q,{type:"subagent",label:$,promptIndex:0,agentId:K,exchanges:T,expandedTurns:X}])}catch(T){console.error("Failed to load subagent trace:",T)}},re=K=>{M($=>$.slice(0,K+1))};return E.jsxs("div",{className:"flex h-screen",children:[E.jsxs("div",{className:"w-80 h-full overflow-y-auto border-r bg-white flex flex-col",children:[E.jsxs("div",{className:"p-4 border-b sticky top-0 bg-white z-10",children:[E.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5",children:"Project"}),E.jsx("select",{value:r||"",onChange:K=>H(K.target.value),className:"w-full px-3 py-1.5 text-sm border border-gray-200 focus:outline-none focus:border-gray-400 bg-white cursor-pointer",children:n.map(K=>E.jsx("option",{value:K.id,children:K.name},K.id))}),E.jsx("div",{className:"text-xs text-muted-foreground mt-2",children:f?"Loading...":`${s.length} trace${s.length!==1?"s":""}`})]}),E.jsx("div",{className:"flex-1 overflow-y-auto divide-y",children:s.map(K=>E.jsxs("button",{onClick:()=>L(K.sessionId,K.fullPath),className:`w-full text-left p-3 hover:bg-gray-50 transition-colors cursor-pointer ${p===K.sessionId?"bg-blue-50 border-l-2 border-l-blue-500":""}`,children:[E.jsx("div",{className:"text-sm font-medium truncate",children:K.summary||K.firstPrompt.slice(0,50)}),E.jsx("div",{className:"text-xs text-muted-foreground mt-1 truncate",children:K.firstPrompt.slice(0,60)}),E.jsxs("div",{className:"flex items-center gap-2 mt-2 text-xs text-muted-foreground",children:[E.jsx("span",{children:new Date(K.modified).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),E.jsx("span",{className:"text-gray-300",children:"|"}),E.jsxs("span",{children:[K.messageCount," msgs"]}),K.gitBranch&&E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-gray-300",children:"|"}),E.jsx("span",{className:"truncate max-w-[100px]",children:K.gitBranch})]})]})]},K.sessionId))})]}),E.jsx("div",{className:"flex-1 overflow-y-auto bg-white",children:E.jsxs("div",{children:[A&&E.jsxs("div",{className:"mb-4 px-4 pt-4",children:[E.jsx("h1",{className:"text-xl font-semibold mb-1",children:A.summary||"Trace"}),E.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E.jsx("span",{children:new Date(A.created).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}),A.gitBranch&&E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-gray-300",children:"|"}),E.jsx("span",{className:"font-mono",children:A.gitBranch})]}),E.jsx("span",{className:"text-gray-300",children:"|"}),E.jsx("span",{className:"font-mono",children:A.sessionId}),E.jsx("button",{onClick:()=>{navigator.clipboard.writeText(A.sessionId)},className:"text-gray-400 hover:text-gray-600 cursor-pointer",title:"Copy session ID",children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),E.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),Z&&Z[D]&&E.jsx(zw,{exchange:Z[D],onBarClick:K=>{U([...P,K])}}),S?E.jsx("div",{className:"flex items-center justify-center py-20",children:E.jsx("div",{className:"text-muted-foreground",children:"Loading trace..."})}):Z?E.jsx(cw,{exchanges:Z,sessionPath:b??void 0,sessionId:p??"",navStack:R,currentPromptIndex:D,rootTotalPrompts:W,expandedTurns:P,onExpandedTurnsChange:U,onPromptChange:ue,onSubagentOpen:ie,onNavigateBack:re}):E.jsx("div",{className:"flex items-center justify-center py-20",children:E.jsx("div",{className:"text-muted-foreground",children:f?"Loading traces...":"Select a trace from the sidebar"})})]})})]})}F1.createRoot(document.getElementById("root")).render(E.jsx(et.StrictMode,{children:E.jsx(Nw,{})}));
|