kanna-code 0.35.2 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,400 +0,0 @@
1
- function Ww(e,n){for(var i=0;i<n.length;i++){const r=n[i];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function gu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},$a={};/**
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 jy;function ek(){if(jy)return $a;jy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:u}}return $a.Fragment=n,$a.jsx=i,$a.jsxs=i,$a}var Ry;function tk(){return Ry||(Ry=1,Yf.exports=ek()),Yf.exports}var x=tk(),Qf={exports:{}},Ne={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ly;function nk(){if(Ly)return Ne;Ly=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function _(z,U,N){this.props=z,this.context=U,this.refs=T,this.updater=N||w}_.prototype.isReactComponent={},_.prototype.setState=function(z,U){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,U,"setState")},_.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=_.prototype;function M(z,U,N){this.props=z,this.context=U,this.refs=T,this.updater=N||w}var P=M.prototype=new j;P.constructor=M,k(P,_.prototype),P.isPureReactComponent=!0;var F=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function te(z,U,N){var W=N.ref;return{$$typeof:e,type:z,key:U,ref:W!==void 0?W:null,props:N}}function I(z,U){return te(z.type,U,z.props)}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ae(z){var U={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(N){return U[N]})}var me=/\/+/g;function oe(z,U){return typeof z=="object"&&z!==null&&z.key!=null?ae(""+z.key):U.toString(36)}function ie(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(U){z.status==="pending"&&(z.status="fulfilled",z.value=U)},function(U){z.status==="pending"&&(z.status="rejected",z.reason=U)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function D(z,U,N,W,se){var re=typeof z;(re==="undefined"||re==="boolean")&&(z=null);var ce=!1;if(z===null)ce=!0;else switch(re){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(z.$$typeof){case e:case n:ce=!0;break;case y:return ce=z._init,D(ce(z._payload),U,N,W,se)}}if(ce)return se=se(z),ce=W===""?"."+oe(z,0):W,F(se)?(N="",ce!=null&&(N=ce.replace(me,"$&/")+"/"),D(se,U,N,"",function(Ge){return Ge})):se!=null&&(J(se)&&(se=I(se,N+(se.key==null||z&&z.key===se.key?"":(""+se.key).replace(me,"$&/")+"/")+ce)),U.push(se)),1;ce=0;var be=W===""?".":W+":";if(F(z))for(var he=0;he<z.length;he++)W=z[he],re=be+oe(W,he),ce+=D(W,U,N,re,se);else if(he=b(z),typeof he=="function")for(z=he.call(z),he=0;!(W=z.next()).done;)W=W.value,re=be+oe(W,he++),ce+=D(W,U,N,re,se);else if(re==="object"){if(typeof z.then=="function")return D(ie(z),U,N,W,se);throw U=String(z),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ce}function X(z,U,N){if(z==null)return z;var W=[],se=0;return D(z,W,"","",function(re){return U.call(N,re,se++)}),W}function ne(z){if(z._status===-1){var U=z._result;U=U(),U.then(function(N){(z._status===0||z._status===-1)&&(z._status=1,z._result=N)},function(N){(z._status===0||z._status===-1)&&(z._status=2,z._result=N)}),z._status===-1&&(z._status=0,z._result=U)}if(z._status===1)return z._result.default;throw z._result}var $=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=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(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},C={map:X,forEach:function(z,U,N){X(z,function(){U.apply(this,arguments)},N)},count:function(z){var U=0;return X(z,function(){U++}),U},toArray:function(z){return X(z,function(U){return U})||[]},only:function(z){if(!J(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ne.Activity=g,Ne.Children=C,Ne.Component=_,Ne.Fragment=i,Ne.Profiler=o,Ne.PureComponent=M,Ne.StrictMode=r,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(z){return H.H.useMemoCache(z)}},Ne.cache=function(z){return function(){return z.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(z,U,N){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var W=k({},z.props),se=z.key;if(U!=null)for(re in U.key!==void 0&&(se=""+U.key),U)!V.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(W[re]=U[re]);var re=arguments.length-2;if(re===1)W.children=N;else if(1<re){for(var ce=Array(re),be=0;be<re;be++)ce[be]=arguments[be+2];W.children=ce}return te(z.type,se,W)},Ne.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:u,_context:z},z},Ne.createElement=function(z,U,N){var W,se={},re=null;if(U!=null)for(W in U.key!==void 0&&(re=""+U.key),U)V.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=U[W]);var ce=arguments.length-2;if(ce===1)se.children=N;else if(1<ce){for(var be=Array(ce),he=0;he<ce;he++)be[he]=arguments[he+2];se.children=be}if(z&&z.defaultProps)for(W in ce=z.defaultProps,ce)se[W]===void 0&&(se[W]=ce[W]);return te(z,re,se)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(z){return{$$typeof:f,render:z}},Ne.isValidElement=J,Ne.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:ne}},Ne.memo=function(z,U){return{$$typeof:m,type:z,compare:U===void 0?null:U}},Ne.startTransition=function(z){var U=H.T,N={};H.T=N;try{var W=z(),se=H.S;se!==null&&se(N,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(R,$)}catch(re){$(re)}finally{U!==null&&N.types!==null&&(U.types=N.types),H.T=U}},Ne.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ne.use=function(z){return H.H.use(z)},Ne.useActionState=function(z,U,N){return H.H.useActionState(z,U,N)},Ne.useCallback=function(z,U){return H.H.useCallback(z,U)},Ne.useContext=function(z){return H.H.useContext(z)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(z,U){return H.H.useDeferredValue(z,U)},Ne.useEffect=function(z,U){return H.H.useEffect(z,U)},Ne.useEffectEvent=function(z){return H.H.useEffectEvent(z)},Ne.useId=function(){return H.H.useId()},Ne.useImperativeHandle=function(z,U,N){return H.H.useImperativeHandle(z,U,N)},Ne.useInsertionEffect=function(z,U){return H.H.useInsertionEffect(z,U)},Ne.useLayoutEffect=function(z,U){return H.H.useLayoutEffect(z,U)},Ne.useMemo=function(z,U){return H.H.useMemo(z,U)},Ne.useOptimistic=function(z,U){return H.H.useOptimistic(z,U)},Ne.useReducer=function(z,U,N){return H.H.useReducer(z,U,N)},Ne.useRef=function(z){return H.H.useRef(z)},Ne.useState=function(z){return H.H.useState(z)},Ne.useSyncExternalStore=function(z,U,N){return H.H.useSyncExternalStore(z,U,N)},Ne.useTransition=function(){return H.H.useTransition()},Ne.version="19.2.1",Ne}var Dy;function yu(){return Dy||(Dy=1,Qf.exports=nk()),Qf.exports}var E=yu();const Pv=gu(E),qv=Ww({__proto__:null,default:Pv},[E]);var Xf={exports:{}},Ja={},Kf={exports:{}},Zf={};/**
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 Iy;function lk(){return Iy||(Iy=1,(function(e){function n(D,X){var ne=D.length;D.push(X);e:for(;0<ne;){var $=ne-1>>>1,C=D[$];if(0<o(C,X))D[$]=X,D[ne]=C,ne=$;else break e}}function i(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var X=D[0],ne=D.pop();if(ne!==X){D[0]=ne;e:for(var $=0,C=D.length,z=C>>>1;$<z;){var U=2*($+1)-1,N=D[U],W=U+1,se=D[W];if(0>o(N,ne))W<C&&0>o(se,N)?(D[$]=se,D[W]=ne,$=W):(D[$]=N,D[U]=ne,$=U);else if(W<C&&0>o(se,ne))D[$]=se,D[W]=ne,$=W;else break e}}return X}function o(D,X){var ne=D.sortIndex-X.sortIndex;return ne!==0?ne:D.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],m=[],y=1,g=null,v=3,b=!1,w=!1,k=!1,T=!1,_=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function P(D){for(var X=i(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=D)r(m),X.sortIndex=X.expirationTime,n(h,X);else break;X=i(m)}}function F(D){if(k=!1,P(D),!w)if(i(h)!==null)w=!0,R||(R=!0,ae());else{var X=i(m);X!==null&&ie(F,X.startTime-D)}}var R=!1,H=-1,V=5,te=-1;function I(){return T?!0:!(e.unstable_now()-te<V)}function J(){if(T=!1,R){var D=e.unstable_now();te=D;var X=!0;try{e:{w=!1,k&&(k=!1,j(H),H=-1),b=!0;var ne=v;try{t:{for(P(D),g=i(h);g!==null&&!(g.expirationTime>D&&I());){var $=g.callback;if(typeof $=="function"){g.callback=null,v=g.priorityLevel;var C=$(g.expirationTime<=D);if(D=e.unstable_now(),typeof C=="function"){g.callback=C,P(D),X=!0;break t}g===i(h)&&r(h),P(D)}else r(h);g=i(h)}if(g!==null)X=!0;else{var z=i(m);z!==null&&ie(F,z.startTime-D),X=!1}}break e}finally{g=null,v=ne,b=!1}X=void 0}}finally{X?ae():R=!1}}}var ae;if(typeof M=="function")ae=function(){M(J)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,oe=me.port2;me.port1.onmessage=J,ae=function(){oe.postMessage(null)}}else ae=function(){_(J,0)};function ie(D,X){H=_(function(){D(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(D){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var ne=v;v=X;try{return D()}finally{v=ne}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ne=v;v=D;try{return X()}finally{v=ne}},e.unstable_scheduleCallback=function(D,X,ne){var $=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?$+ne:$):ne=$,D){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=ne+C,D={id:y++,callback:X,priorityLevel:D,startTime:ne,expirationTime:C,sortIndex:-1},ne>$?(D.sortIndex=ne,n(m,D),i(h)===null&&D===i(m)&&(k?(j(H),H=-1):k=!0,ie(F,ne-$))):(D.sortIndex=C,n(h,D),w||b||(w=!0,R||(R=!0,ae()))),D},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(D){var X=v;return function(){var ne=v;v=X;try{return D.apply(this,arguments)}finally{v=ne}}}})(Zf)),Zf}var By;function ik(){return By||(By=1,Kf.exports=lk()),Kf.exports}var $f={exports:{}},Jt={};/**
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 Uy;function rk(){if(Uy)return Jt;Uy=1;var e=yu();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:m,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Jt.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return u(h,m,null,y)},Jt.flushSync=function(h){var m=c.T,y=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=m,r.p=y,r.d.f()}},Jt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},Jt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Jt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):y==="script"&&r.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},Jt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin);r.d.L(h,y,{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})}},Jt.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=f(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},Jt.requestFormReset=function(h){r.d.r(h)},Jt.unstable_batchedUpdates=function(h,m){return h(m)},Jt.useFormState=function(h,m,y){return c.H.useFormState(h,m,y)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.2.1",Jt}var Vy;function Gv(){if(Vy)return $f.exports;Vy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),$f.exports=rk(),$f.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 Fy;function ak(){if(Fy)return Ja;Fy=1;var e=ik(),n=yu(),i=Gv();function r(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)l+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var l=t,a=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(a=l.return),t=l.return;while(t)}return l.tag===3?a:null}function c(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function f(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function h(t){if(u(t)!==t)throw Error(r(188))}function m(t){var l=t.alternate;if(!l){if(l=u(t),l===null)throw Error(r(188));return l!==t?null:t}for(var a=t,s=l;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(s=d.return,s!==null){a=s;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),t;if(p===s)return h(d),l;p=p.sibling}throw Error(r(188))}if(a.return!==s.return)a=d,s=p;else{for(var S=!1,A=d.child;A;){if(A===a){S=!0,a=d,s=p;break}if(A===s){S=!0,s=d,a=p;break}A=A.sibling}if(!S){for(A=p.child;A;){if(A===a){S=!0,a=p,s=d;break}if(A===s){S=!0,s=p,a=d;break}A=A.sibling}if(!S)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:l}function y(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=y(t),l!==null)return l;t=t.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ae(t){return t===null||typeof t!="object"?null:(t=J&&t[J]||t["@@iterator"],typeof t=="function"?t:null)}var me=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case F:return"Suspense";case R:return"SuspenseList";case te:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case M:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case P:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return l=t.displayName||null,l!==null?l:oe(t.type)||"Memo";case V:l=t._payload,t=t._init;try{return oe(t(l))}catch{}}return null}var ie=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},$=[],C=-1;function z(t){return{current:t}}function U(t){0>C||(t.current=$[C],$[C]=null,C--)}function N(t,l){C++,$[C]=t.current,t.current=l}var W=z(null),se=z(null),re=z(null),ce=z(null);function be(t,l){switch(N(re,l),N(se,t),N(W,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?ny(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=ny(l),t=ly(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(W),N(W,t)}function he(){U(W),U(se),U(re)}function Ge(t){t.memoizedState!==null&&N(ce,t);var l=W.current,a=ly(l,t.type);l!==a&&(N(se,t),N(W,a))}function We(t){se.current===t&&(U(W),U(se)),ce.current===t&&(U(ce),Qa._currentValue=ne)}var ot,tn;function St(t){if(ot===void 0)try{throw Error()}catch(a){var l=a.stack.trim().match(/\n( *(at )?)/);ot=l&&l[1]||"",tn=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ot+t+tn}var nn=!1;function Xn(t,l){if(!t||nn)return"";nn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(l){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(Q){var Y=Q}Reflect.construct(t,[],le)}else{try{le.call()}catch(Q){Y=Q}t.call(le.prototype)}}else{try{throw Error()}catch(Q){Y=Q}(le=t())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(Q){if(Q&&Y&&typeof Q.stack=="string")return[Q.stack,Y.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),S=p[0],A=p[1];if(S&&A){var O=S.split(`
44
- `),G=A.split(`
45
- `);for(d=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;d<G.length&&!G[d].includes("DetermineComponentFrameRoot");)d++;if(s===O.length||d===G.length)for(s=O.length-1,d=G.length-1;1<=s&&0<=d&&O[s]!==G[d];)d--;for(;1<=s&&0<=d;s--,d--)if(O[s]!==G[d]){if(s!==1||d!==1)do if(s--,d--,0>d||O[s]!==G[d]){var Z=`
46
- `+O[s].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),Z}while(1<=s&&0<=d);break}}}finally{nn=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?St(a):""}function pl(t,l){switch(t.tag){case 26:case 27:case 5:return St(t.type);case 16:return St("Lazy");case 13:return t.child!==l&&l!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Xn(t.type,!1);case 11:return Xn(t.type.render,!1);case 1:return Xn(t.type,!0);case 31:return St("Activity");default:return""}}function gl(t){try{var l="",a=null;do l+=pl(t,a),a=t,t=t.return;while(t);return l}catch(s){return`
47
- Error generating stack: `+s.message+`
48
- `+s.stack}}var Kn=Object.prototype.hasOwnProperty,al=e.unstable_scheduleCallback,zt=e.unstable_cancelCallback,Zn=e.unstable_shouldYield,$n=e.unstable_requestPaint,pt=e.unstable_now,bn=e.unstable_getCurrentPriorityLevel,K=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,_e=e.unstable_LowPriority,He=e.unstable_IdlePriority,Vt=e.log,Mt=e.unstable_setDisableYieldValue,ft=null,gt=null;function xt(t){if(typeof Vt=="function"&&Mt(t),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(ft,t)}catch{}}var Be=Math.clz32?Math.clz32:Pl,Pt=Math.log,Zt=Math.LN2;function Pl(t){return t>>>=0,t===0?32:31-(Pt(t)/Zt|0)|0}var zn=256,un=262144,Mn=4194304;function qt(t){var l=t&42;if(l!==0)return l;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jn(t,l,a){var s=t.pendingLanes;if(s===0)return 0;var d=0,p=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var A=s&134217727;return A!==0?(s=A&~p,s!==0?d=qt(s):(S&=A,S!==0?d=qt(S):a||(a=A&~t,a!==0&&(d=qt(a))))):(A=s&~p,A!==0?d=qt(A):S!==0?d=qt(S):a||(a=s&~t,a!==0&&(d=qt(a)))),d===0?0:l!==0&&l!==d&&(l&p)===0&&(p=d&-d,a=l&-l,p>=a||p===32&&(a&4194048)!==0)?l:d}function Gt(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Ot(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 yl(){var t=Mn;return Mn<<=1,(Mn&62914560)===0&&(Mn=4194304),t}function ol(t){for(var l=[],a=0;31>a;a++)l.push(t);return l}function de(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ze(t,l,a,s,d,p){var S=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var A=t.entanglements,O=t.expirationTimes,G=t.hiddenUpdates;for(a=S&~a;0<a;){var Z=31-Be(a),le=1<<Z;A[Z]=0,O[Z]=-1;var Y=G[Z];if(Y!==null)for(G[Z]=null,Z=0;Z<Y.length;Z++){var Q=Y[Z];Q!==null&&(Q.lane&=-536870913)}a&=~le}s!==0&&ze(t,s,0),p!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=p&~(S&~l))}function ze(t,l,a){t.pendingLanes|=l,t.suspendedLanes&=~l;var s=31-Be(l);t.entangledLanes|=l,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function De(t,l){var a=t.entangledLanes|=l;for(t=t.entanglements;a;){var s=31-Be(a),d=1<<s;d&l|t[s]&l&&(t[s]|=l),a&=~d}}function Et(t,l){var a=l&-l;return a=(a&42)!==0?1:Ft(a),(a&(t.suspendedLanes|l))!==0?0:a}function Ft(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function wt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ae(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Ay(t.type))}function On(t,l){var a=X.p;try{return X.p=t,l()}finally{X.p=a}}var $t=Math.random().toString(36).slice(2),dt="__reactFiber$"+$t,nt="__reactProps$"+$t,vl="__reactContainer$"+$t,ir="__reactEvents$"+$t,Wn="__reactListeners$"+$t,Ei="__reactHandles$"+$t,oa="__reactResources$"+$t,$e="__reactMarker$"+$t;function Ai(t){delete t[dt],delete t[nt],delete t[ir],delete t[Wn],delete t[Ei]}function ql(t){var l=t[dt];if(l)return l;for(var a=t.parentNode;a;){if(l=a[vl]||a[dt]){if(a=l.alternate,l.child!==null||a!==null&&a.child!==null)for(t=cy(t);t!==null;){if(a=t[dt])return a;t=cy(t)}return l}t=a,a=t.parentNode}return null}function Ti(t){if(t=t[dt]||t[vl]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function el(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(r(33))}function Gl(t){var l=t[oa];return l||(l=t[oa]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function At(t){t[$e]=!0}var sa=new Set,ua={};function bl(t,l){Yl(t,l),Yl(t+"Capture",l)}function Yl(t,l){for(ua[t]=l,t=0;t<l.length;t++)sa.add(l[t])}var Du=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]*$"),_i={},Co={};function rr(t){return Kn.call(Co,t)?!0:Kn.call(_i,t)?!1:Du.test(t)?Co[t]=!0:(_i[t]=!0,!1)}function je(t,l,a){if(rr(l))if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var s=l.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+a)}}function lt(t,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+a)}}function Tt(t,l,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(l,a,""+s)}}function yt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Iu(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Yx(t,l,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,p=s.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return d.call(this)},set:function(S){a=""+S,p.call(this,S)}}),Object.defineProperty(t,l,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(S){a=""+S},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function Bu(t){if(!t._valueTracker){var l=Iu(t)?"checked":"value";t._valueTracker=Yx(t,l,""+t[l])}}function Km(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var a=l.getValue(),s="";return t&&(s=Iu(t)?t.checked?"true":"false":t.value),t=s,t!==a?(l.setValue(t),!0):!1}function Eo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Qx=/[\n"\\]/g;function jn(t){return t.replace(Qx,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Uu(t,l,a,s,d,p,S,A){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),l!=null?S==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+yt(l)):t.value!==""+yt(l)&&(t.value=""+yt(l)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),l!=null?Vu(t,S,yt(l)):a!=null?Vu(t,S,yt(a)):s!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+yt(A):t.removeAttribute("name")}function Zm(t,l,a,s,d,p,S,A){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),l!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||l!=null)){Bu(t);return}a=a!=null?""+yt(a):"",l=l!=null?""+yt(l):a,A||l===t.value||(t.value=l),t.defaultValue=l}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=A?t.checked:!!s,t.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),Bu(t)}function Vu(t,l,a){l==="number"&&Eo(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function ar(t,l,a,s){if(t=t.options,l){l={};for(var d=0;d<a.length;d++)l["$"+a[d]]=!0;for(a=0;a<t.length;a++)d=l.hasOwnProperty("$"+t[a].value),t[a].selected!==d&&(t[a].selected=d),d&&s&&(t[a].defaultSelected=!0)}else{for(a=""+yt(a),l=null,d=0;d<t.length;d++){if(t[d].value===a){t[d].selected=!0,s&&(t[d].defaultSelected=!0);return}l!==null||t[d].disabled||(l=t[d])}l!==null&&(l.selected=!0)}}function $m(t,l,a){if(l!=null&&(l=""+yt(l),l!==t.value&&(t.value=l),a==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=a!=null?""+yt(a):""}function Jm(t,l,a,s){if(l==null){if(s!=null){if(a!=null)throw Error(r(92));if(ie(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),l=a}a=yt(l),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Bu(t)}function or(t,l){if(l){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=l;return}}t.textContent=l}var Xx=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 Wm(t,l,a){var s=l.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":s?t.setProperty(l,a):typeof a!="number"||a===0||Xx.has(l)?l==="float"?t.cssFloat=a:t[l]=(""+a).trim():t[l]=a+"px"}function eh(t,l,a){if(l!=null&&typeof l!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||l!=null&&l.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var d in l)s=l[d],l.hasOwnProperty(d)&&a[d]!==s&&Wm(t,d,s)}else for(var p in l)l.hasOwnProperty(p)&&Wm(t,p,l[p])}function Fu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Kx=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"]]),Zx=/^[\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 Ao(t){return Zx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function xl(){}var Hu=null;function Pu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var sr=null,ur=null;function th(t){var l=Ti(t);if(l&&(t=l.stateNode)){var a=t[nt]||null;e:switch(t=l.stateNode,l.type){case"input":if(Uu(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),l=a.name,a.type==="radio"&&l!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+jn(""+l)+'"][type="radio"]'),l=0;l<a.length;l++){var s=a[l];if(s!==t&&s.form===t.form){var d=s[nt]||null;if(!d)throw Error(r(90));Uu(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(l=0;l<a.length;l++)s=a[l],s.form===t.form&&Km(s)}break e;case"textarea":$m(t,a.value,a.defaultValue);break e;case"select":l=a.value,l!=null&&ar(t,!!a.multiple,l,!1)}}}var qu=!1;function nh(t,l,a){if(qu)return t(l,a);qu=!0;try{var s=t(l);return s}finally{if(qu=!1,(sr!==null||ur!==null)&&(ms(),sr&&(l=sr,t=ur,ur=sr=null,th(l),t)))for(l=0;l<t.length;l++)th(t[l])}}function ca(t,l){var a=t.stateNode;if(a===null)return null;var s=a[nt]||null;if(s===null)return null;a=s[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,l,typeof a));return a}var Sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if(Sl)try{var fa={};Object.defineProperty(fa,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",fa,fa),window.removeEventListener("test",fa,fa)}catch{Gu=!1}var Ql=null,Yu=null,To=null;function lh(){if(To)return To;var t,l=Yu,a=l.length,s,d="value"in Ql?Ql.value:Ql.textContent,p=d.length;for(t=0;t<a&&l[t]===d[t];t++);var S=a-t;for(s=1;s<=S&&l[a-s]===d[p-s];s++);return To=d.slice(t,1<s?1-s:void 0)}function _o(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function No(){return!0}function ih(){return!1}function cn(t){function l(a,s,d,p,S){this._reactName=a,this._targetInst=d,this.type=s,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(a=t[A],this[A]=a?a(p):p[A]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?No:ih,this.isPropagationStopped=ih,this}return g(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),l}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zo=cn(Ni),da=g({},Ni,{view:0,detail:0}),$x=cn(da),Qu,Xu,ma,Mo=g({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ma&&(ma&&t.type==="mousemove"?(Qu=t.screenX-ma.screenX,Xu=t.screenY-ma.screenY):Xu=Qu=0,ma=t),Qu)},movementY:function(t){return"movementY"in t?t.movementY:Xu}}),rh=cn(Mo),Jx=g({},Mo,{dataTransfer:0}),Wx=cn(Jx),eS=g({},da,{relatedTarget:0}),Ku=cn(eS),tS=g({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),nS=cn(tS),lS=g({},Ni,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iS=cn(lS),rS=g({},Ni,{data:0}),ah=cn(rS),aS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oS={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"},sS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uS(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=sS[t])?!!l[t]:!1}function Zu(){return uS}var cS=g({},da,{key:function(t){if(t.key){var l=aS[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=_o(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(t){return t.type==="keypress"?_o(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_o(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fS=cn(cS),dS=g({},Mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oh=cn(dS),mS=g({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),hS=cn(mS),pS=g({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),gS=cn(pS),yS=g({},Mo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),vS=cn(yS),bS=g({},Ni,{newState:0,oldState:0}),xS=cn(bS),SS=[9,13,27,32],$u=Sl&&"CompositionEvent"in window,ha=null;Sl&&"documentMode"in document&&(ha=document.documentMode);var wS=Sl&&"TextEvent"in window&&!ha,sh=Sl&&(!$u||ha&&8<ha&&11>=ha),uh=" ",ch=!1;function fh(t,l){switch(t){case"keyup":return SS.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var cr=!1;function kS(t,l){switch(t){case"compositionend":return dh(l);case"keypress":return l.which!==32?null:(ch=!0,uh);case"textInput":return t=l.data,t===uh&&ch?null:t;default:return null}}function CS(t,l){if(cr)return t==="compositionend"||!$u&&fh(t,l)?(t=lh(),To=Yu=Ql=null,cr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return sh&&l.locale!=="ko"?null:l.data;default:return null}}var ES={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 mh(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!ES[t.type]:l==="textarea"}function hh(t,l,a,s){sr?ur?ur.push(s):ur=[s]:sr=s,l=xs(l,"onChange"),0<l.length&&(a=new zo("onChange","change",null,a,s),t.push({event:a,listeners:l}))}var pa=null,ga=null;function AS(t){Zg(t,0)}function Oo(t){var l=el(t);if(Km(l))return t}function ph(t,l){if(t==="change")return l}var gh=!1;if(Sl){var Ju;if(Sl){var Wu="oninput"in document;if(!Wu){var yh=document.createElement("div");yh.setAttribute("oninput","return;"),Wu=typeof yh.oninput=="function"}Ju=Wu}else Ju=!1;gh=Ju&&(!document.documentMode||9<document.documentMode)}function vh(){pa&&(pa.detachEvent("onpropertychange",bh),ga=pa=null)}function bh(t){if(t.propertyName==="value"&&Oo(ga)){var l=[];hh(l,ga,t,Pu(t)),nh(AS,l)}}function TS(t,l,a){t==="focusin"?(vh(),pa=l,ga=a,pa.attachEvent("onpropertychange",bh)):t==="focusout"&&vh()}function _S(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Oo(ga)}function NS(t,l){if(t==="click")return Oo(l)}function zS(t,l){if(t==="input"||t==="change")return Oo(l)}function MS(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var xn=typeof Object.is=="function"?Object.is:MS;function ya(t,l){if(xn(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var a=Object.keys(t),s=Object.keys(l);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var d=a[s];if(!Kn.call(l,d)||!xn(t[d],l[d]))return!1}return!0}function xh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sh(t,l){var a=xh(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=l&&s>=l)return{node:a,offset:l-t};t=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xh(a)}}function wh(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?wh(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function kh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Eo(t.document);l instanceof t.HTMLIFrameElement;){try{var a=typeof l.contentWindow.location.href=="string"}catch{a=!1}if(a)t=l.contentWindow;else break;l=Eo(t.document)}return l}function ec(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var OS=Sl&&"documentMode"in document&&11>=document.documentMode,fr=null,tc=null,va=null,nc=!1;function Ch(t,l,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nc||fr==null||fr!==Eo(s)||(s=fr,"selectionStart"in s&&ec(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),va&&ya(va,s)||(va=s,s=xs(tc,"onSelect"),0<s.length&&(l=new zo("onSelect","select",null,l,a),t.push({event:l,listeners:s}),l.target=fr)))}function zi(t,l){var a={};return a[t.toLowerCase()]=l.toLowerCase(),a["Webkit"+t]="webkit"+l,a["Moz"+t]="moz"+l,a}var dr={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},lc={},Eh={};Sl&&(Eh=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function Mi(t){if(lc[t])return lc[t];if(!dr[t])return t;var l=dr[t],a;for(a in l)if(l.hasOwnProperty(a)&&a in Eh)return lc[t]=l[a];return t}var Ah=Mi("animationend"),Th=Mi("animationiteration"),_h=Mi("animationstart"),jS=Mi("transitionrun"),RS=Mi("transitionstart"),LS=Mi("transitioncancel"),Nh=Mi("transitionend"),zh=new Map,ic="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(" ");ic.push("scrollEnd");function tl(t,l){zh.set(t,l),bl(l,[t])}var jo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Rn=[],mr=0,rc=0;function Ro(){for(var t=mr,l=rc=mr=0;l<t;){var a=Rn[l];Rn[l++]=null;var s=Rn[l];Rn[l++]=null;var d=Rn[l];Rn[l++]=null;var p=Rn[l];if(Rn[l++]=null,s!==null&&d!==null){var S=s.pending;S===null?d.next=d:(d.next=S.next,S.next=d),s.pending=d}p!==0&&Mh(a,d,p)}}function Lo(t,l,a,s){Rn[mr++]=t,Rn[mr++]=l,Rn[mr++]=a,Rn[mr++]=s,rc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function ac(t,l,a,s){return Lo(t,l,a,s),Do(t)}function Oi(t,l){return Lo(t,null,null,l),Do(t)}function Mh(t,l,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var d=!1,p=t.return;p!==null;)p.childLanes|=a,s=p.alternate,s!==null&&(s.childLanes|=a),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(d=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,d&&l!==null&&(d=31-Be(a),t=p.hiddenUpdates,s=t[d],s===null?t[d]=[l]:s.push(l),l.lane=a|536870912),p):null}function Do(t){if(50<Va)throw Va=0,gf=null,Error(r(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var hr={};function DS(t,l,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(t,l,a,s){return new DS(t,l,a,s)}function oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wl(t,l){var a=t.alternate;return a===null?(a=Sn(t.tag,l,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=l,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,l=t.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Oh(t,l){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,l=a.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Io(t,l,a,s,d,p){var S=0;if(s=t,typeof t=="function")oc(t)&&(S=1);else if(typeof t=="string")S=Fw(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case te:return t=Sn(31,a,l,d),t.elementType=te,t.lanes=p,t;case k:return ji(a.children,d,p,l);case T:S=8,d|=24;break;case _:return t=Sn(12,a,l,d|2),t.elementType=_,t.lanes=p,t;case F:return t=Sn(13,a,l,d),t.elementType=F,t.lanes=p,t;case R:return t=Sn(19,a,l,d),t.elementType=R,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case M:S=10;break e;case j:S=9;break e;case P:S=11;break e;case H:S=14;break e;case V:S=16,s=null;break e}S=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return l=Sn(S,a,l,d),l.elementType=t,l.type=s,l.lanes=p,l}function ji(t,l,a,s){return t=Sn(7,t,s,l),t.lanes=a,t}function sc(t,l,a){return t=Sn(6,t,null,l),t.lanes=a,t}function jh(t){var l=Sn(18,null,null,0);return l.stateNode=t,l}function uc(t,l,a){return l=Sn(4,t.children!==null?t.children:[],t.key,l),l.lanes=a,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var Rh=new WeakMap;function Ln(t,l){if(typeof t=="object"&&t!==null){var a=Rh.get(t);return a!==void 0?a:(l={value:t,source:l,stack:gl(l)},Rh.set(t,l),l)}return{value:t,source:l,stack:gl(l)}}var pr=[],gr=0,Bo=null,ba=0,Dn=[],In=0,Xl=null,sl=1,ul="";function kl(t,l){pr[gr++]=ba,pr[gr++]=Bo,Bo=t,ba=l}function Lh(t,l,a){Dn[In++]=sl,Dn[In++]=ul,Dn[In++]=Xl,Xl=t;var s=sl;t=ul;var d=32-Be(s)-1;s&=~(1<<d),a+=1;var p=32-Be(l)+d;if(30<p){var S=d-d%5;p=(s&(1<<S)-1).toString(32),s>>=S,d-=S,sl=1<<32-Be(l)+d|a<<d|s,ul=p+t}else sl=1<<p|a<<d|s,ul=t}function cc(t){t.return!==null&&(kl(t,1),Lh(t,1,0))}function fc(t){for(;t===Bo;)Bo=pr[--gr],pr[gr]=null,ba=pr[--gr],pr[gr]=null;for(;t===Xl;)Xl=Dn[--In],Dn[In]=null,ul=Dn[--In],Dn[In]=null,sl=Dn[--In],Dn[In]=null}function Dh(t,l){Dn[In++]=sl,Dn[In++]=ul,Dn[In++]=Xl,sl=l.id,ul=l.overflow,Xl=t}var Yt=null,mt=null,Ye=!1,Kl=null,Bn=!1,dc=Error(r(519));function Zl(t){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xa(Ln(l,t)),dc}function Ih(t){var l=t.stateNode,a=t.type,s=t.memoizedProps;switch(l[dt]=t,l[nt]=s,a){case"dialog":Ve("cancel",l),Ve("close",l);break;case"iframe":case"object":case"embed":Ve("load",l);break;case"video":case"audio":for(a=0;a<Ha.length;a++)Ve(Ha[a],l);break;case"source":Ve("error",l);break;case"img":case"image":case"link":Ve("error",l),Ve("load",l);break;case"details":Ve("toggle",l);break;case"input":Ve("invalid",l),Zm(l,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ve("invalid",l);break;case"textarea":Ve("invalid",l),Jm(l,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||l.textContent===""+a||s.suppressHydrationWarning===!0||ey(l.textContent,a)?(s.popover!=null&&(Ve("beforetoggle",l),Ve("toggle",l)),s.onScroll!=null&&Ve("scroll",l),s.onScrollEnd!=null&&Ve("scrollend",l),s.onClick!=null&&(l.onclick=xl),l=!0):l=!1,l||Zl(t,!0)}function Bh(t){for(Yt=t.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:Yt=Yt.return}}function yr(t){if(t!==Yt)return!1;if(!Ye)return Bh(t),Ye=!0,!1;var l=t.tag,a;if((a=l!==3&&l!==27)&&((a=l===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Mf(t.type,t.memoizedProps)),a=!a),a&&mt&&Zl(t),Bh(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));mt=uy(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));mt=uy(t)}else l===27?(l=mt,ci(t.type)?(t=Df,Df=null,mt=t):mt=l):mt=Yt?Vn(t.stateNode.nextSibling):null;return!0}function Ri(){mt=Yt=null,Ye=!1}function mc(){var t=Kl;return t!==null&&(hn===null?hn=t:hn.push.apply(hn,t),Kl=null),t}function xa(t){Kl===null?Kl=[t]:Kl.push(t)}var hc=z(null),Li=null,Cl=null;function $l(t,l,a){N(hc,l._currentValue),l._currentValue=a}function El(t){t._currentValue=hc.current,U(hc)}function pc(t,l,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,s!==null&&(s.childLanes|=l)):s!==null&&(s.childLanes&l)!==l&&(s.childLanes|=l),t===a)break;t=t.return}}function gc(t,l,a,s){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var p=d.dependencies;if(p!==null){var S=d.child;p=p.firstContext;e:for(;p!==null;){var A=p;p=d;for(var O=0;O<l.length;O++)if(A.context===l[O]){p.lanes|=a,A=p.alternate,A!==null&&(A.lanes|=a),pc(p.return,a,t),s||(S=null);break e}p=A.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(r(341));S.lanes|=a,p=S.alternate,p!==null&&(p.lanes|=a),pc(S,a,t),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===t){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function vr(t,l,a,s){t=null;for(var d=l,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var A=d.type;xn(d.pendingProps.value,S.value)||(t!==null?t.push(A):t=[A])}}else if(d===ce.current){if(S=d.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Qa):t=[Qa])}d=d.return}t!==null&&gc(l,t,a,s),l.flags|=262144}function Uo(t){for(t=t.firstContext;t!==null;){if(!xn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Di(t){Li=t,Cl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Qt(t){return Uh(Li,t)}function Vo(t,l){return Li===null&&Di(t),Uh(t,l)}function Uh(t,l){var a=l._currentValue;if(l={context:l,memoizedValue:a,next:null},Cl===null){if(t===null)throw Error(r(308));Cl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Cl=Cl.next=l;return a}var IS=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){l.aborted=!0,t.forEach(function(a){return a()})}},BS=e.unstable_scheduleCallback,US=e.unstable_NormalPriority,jt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yc(){return{controller:new IS,data:new Map,refCount:0}}function Sa(t){t.refCount--,t.refCount===0&&BS(US,function(){t.controller.abort()})}var wa=null,vc=0,br=0,xr=null;function VS(t,l){if(wa===null){var a=wa=[];vc=0,br=wf(),xr={status:"pending",value:void 0,then:function(s){a.push(s)}}}return vc++,l.then(Vh,Vh),l}function Vh(){if(--vc===0&&wa!==null){xr!==null&&(xr.status="fulfilled");var t=wa;wa=null,br=0,xr=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function FS(t,l){var a=[],s={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return t.then(function(){s.status="fulfilled",s.value=l;for(var d=0;d<a.length;d++)(0,a[d])(l)},function(d){for(s.status="rejected",s.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),s}var Fh=D.S;D.S=function(t,l){Cg=pt(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&VS(t,l),Fh!==null&&Fh(t,l)};var Ii=z(null);function bc(){var t=Ii.current;return t!==null?t:st.pooledCache}function Fo(t,l){l===null?N(Ii,Ii.current):N(Ii,l.pool)}function Hh(){var t=bc();return t===null?null:{parent:jt._currentValue,pool:t}}var Sr=Error(r(460)),xc=Error(r(474)),Ho=Error(r(542)),Po={then:function(){}};function Ph(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qh(t,l,a){switch(a=t[a],a===void 0?t.push(l):a!==l&&(l.then(xl,xl),l=a),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Yh(t),t;default:if(typeof l.status=="string")l.then(xl,xl);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=l,t.status="pending",t.then(function(s){if(l.status==="pending"){var d=l;d.status="fulfilled",d.value=s}},function(s){if(l.status==="pending"){var d=l;d.status="rejected",d.reason=s}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Yh(t),t}throw Ui=l,Sr}}function Bi(t){try{var l=t._init;return l(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ui=a,Sr):a}}var Ui=null;function Gh(){if(Ui===null)throw Error(r(459));var t=Ui;return Ui=null,t}function Yh(t){if(t===Sr||t===Ho)throw Error(r(483))}var wr=null,ka=0;function qo(t){var l=ka;return ka+=1,wr===null&&(wr=[]),qh(wr,t,l)}function Ca(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function Go(t,l){throw l.$$typeof===v?Error(r(525)):(t=Object.prototype.toString.call(l),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Qh(t){function l(B,L){if(t){var q=B.deletions;q===null?(B.deletions=[L],B.flags|=16):q.push(L)}}function a(B,L){if(!t)return null;for(;L!==null;)l(B,L),L=L.sibling;return null}function s(B){for(var L=new Map;B!==null;)B.key!==null?L.set(B.key,B):L.set(B.index,B),B=B.sibling;return L}function d(B,L){return B=wl(B,L),B.index=0,B.sibling=null,B}function p(B,L,q){return B.index=q,t?(q=B.alternate,q!==null?(q=q.index,q<L?(B.flags|=67108866,L):q):(B.flags|=67108866,L)):(B.flags|=1048576,L)}function S(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function A(B,L,q,ee){return L===null||L.tag!==6?(L=sc(q,B.mode,ee),L.return=B,L):(L=d(L,q),L.return=B,L)}function O(B,L,q,ee){var Se=q.type;return Se===k?Z(B,L,q.props.children,ee,q.key):L!==null&&(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Bi(Se)===L.type)?(L=d(L,q.props),Ca(L,q),L.return=B,L):(L=Io(q.type,q.key,q.props,null,B.mode,ee),Ca(L,q),L.return=B,L)}function G(B,L,q,ee){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=uc(q,B.mode,ee),L.return=B,L):(L=d(L,q.children||[]),L.return=B,L)}function Z(B,L,q,ee,Se){return L===null||L.tag!==7?(L=ji(q,B.mode,ee,Se),L.return=B,L):(L=d(L,q),L.return=B,L)}function le(B,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=sc(""+L,B.mode,q),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return q=Io(L.type,L.key,L.props,null,B.mode,q),Ca(q,L),q.return=B,q;case w:return L=uc(L,B.mode,q),L.return=B,L;case V:return L=Bi(L),le(B,L,q)}if(ie(L)||ae(L))return L=ji(L,B.mode,q,null),L.return=B,L;if(typeof L.then=="function")return le(B,qo(L),q);if(L.$$typeof===M)return le(B,Vo(B,L),q);Go(B,L)}return null}function Y(B,L,q,ee){var Se=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Se!==null?null:A(B,L,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===Se?O(B,L,q,ee):null;case w:return q.key===Se?G(B,L,q,ee):null;case V:return q=Bi(q),Y(B,L,q,ee)}if(ie(q)||ae(q))return Se!==null?null:Z(B,L,q,ee,null);if(typeof q.then=="function")return Y(B,L,qo(q),ee);if(q.$$typeof===M)return Y(B,L,Vo(B,q),ee);Go(B,q)}return null}function Q(B,L,q,ee,Se){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return B=B.get(q)||null,A(L,B,""+ee,Se);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return B=B.get(ee.key===null?q:ee.key)||null,O(L,B,ee,Se);case w:return B=B.get(ee.key===null?q:ee.key)||null,G(L,B,ee,Se);case V:return ee=Bi(ee),Q(B,L,q,ee,Se)}if(ie(ee)||ae(ee))return B=B.get(q)||null,Z(L,B,ee,Se,null);if(typeof ee.then=="function")return Q(B,L,q,qo(ee),Se);if(ee.$$typeof===M)return Q(B,L,q,Vo(L,ee),Se);Go(L,ee)}return null}function pe(B,L,q,ee){for(var Se=null,Xe=null,ve=L,Re=L=0,qe=null;ve!==null&&Re<q.length;Re++){ve.index>Re?(qe=ve,ve=null):qe=ve.sibling;var Ke=Y(B,ve,q[Re],ee);if(Ke===null){ve===null&&(ve=qe);break}t&&ve&&Ke.alternate===null&&l(B,ve),L=p(Ke,L,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke,ve=qe}if(Re===q.length)return a(B,ve),Ye&&kl(B,Re),Se;if(ve===null){for(;Re<q.length;Re++)ve=le(B,q[Re],ee),ve!==null&&(L=p(ve,L,Re),Xe===null?Se=ve:Xe.sibling=ve,Xe=ve);return Ye&&kl(B,Re),Se}for(ve=s(ve);Re<q.length;Re++)qe=Q(ve,B,Re,q[Re],ee),qe!==null&&(t&&qe.alternate!==null&&ve.delete(qe.key===null?Re:qe.key),L=p(qe,L,Re),Xe===null?Se=qe:Xe.sibling=qe,Xe=qe);return t&&ve.forEach(function(pi){return l(B,pi)}),Ye&&kl(B,Re),Se}function Ce(B,L,q,ee){if(q==null)throw Error(r(151));for(var Se=null,Xe=null,ve=L,Re=L=0,qe=null,Ke=q.next();ve!==null&&!Ke.done;Re++,Ke=q.next()){ve.index>Re?(qe=ve,ve=null):qe=ve.sibling;var pi=Y(B,ve,Ke.value,ee);if(pi===null){ve===null&&(ve=qe);break}t&&ve&&pi.alternate===null&&l(B,ve),L=p(pi,L,Re),Xe===null?Se=pi:Xe.sibling=pi,Xe=pi,ve=qe}if(Ke.done)return a(B,ve),Ye&&kl(B,Re),Se;if(ve===null){for(;!Ke.done;Re++,Ke=q.next())Ke=le(B,Ke.value,ee),Ke!==null&&(L=p(Ke,L,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke);return Ye&&kl(B,Re),Se}for(ve=s(ve);!Ke.done;Re++,Ke=q.next())Ke=Q(ve,B,Re,Ke.value,ee),Ke!==null&&(t&&Ke.alternate!==null&&ve.delete(Ke.key===null?Re:Ke.key),L=p(Ke,L,Re),Xe===null?Se=Ke:Xe.sibling=Ke,Xe=Ke);return t&&ve.forEach(function(Jw){return l(B,Jw)}),Ye&&kl(B,Re),Se}function at(B,L,q,ee){if(typeof q=="object"&&q!==null&&q.type===k&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var Se=q.key;L!==null;){if(L.key===Se){if(Se=q.type,Se===k){if(L.tag===7){a(B,L.sibling),ee=d(L,q.props.children),ee.return=B,B=ee;break e}}else if(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&Bi(Se)===L.type){a(B,L.sibling),ee=d(L,q.props),Ca(ee,q),ee.return=B,B=ee;break e}a(B,L);break}else l(B,L);L=L.sibling}q.type===k?(ee=ji(q.props.children,B.mode,ee,q.key),ee.return=B,B=ee):(ee=Io(q.type,q.key,q.props,null,B.mode,ee),Ca(ee,q),ee.return=B,B=ee)}return S(B);case w:e:{for(Se=q.key;L!==null;){if(L.key===Se)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){a(B,L.sibling),ee=d(L,q.children||[]),ee.return=B,B=ee;break e}else{a(B,L);break}else l(B,L);L=L.sibling}ee=uc(q,B.mode,ee),ee.return=B,B=ee}return S(B);case V:return q=Bi(q),at(B,L,q,ee)}if(ie(q))return pe(B,L,q,ee);if(ae(q)){if(Se=ae(q),typeof Se!="function")throw Error(r(150));return q=Se.call(q),Ce(B,L,q,ee)}if(typeof q.then=="function")return at(B,L,qo(q),ee);if(q.$$typeof===M)return at(B,L,Vo(B,q),ee);Go(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(a(B,L.sibling),ee=d(L,q),ee.return=B,B=ee):(a(B,L),ee=sc(q,B.mode,ee),ee.return=B,B=ee),S(B)):a(B,L)}return function(B,L,q,ee){try{ka=0;var Se=at(B,L,q,ee);return wr=null,Se}catch(ve){if(ve===Sr||ve===Ho)throw ve;var Xe=Sn(29,ve,null,B.mode);return Xe.lanes=ee,Xe.return=B,Xe}finally{}}}var Vi=Qh(!0),Xh=Qh(!1),Jl=!1;function Sc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wc(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Wl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ei(t,l,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Je&2)!==0){var d=s.pending;return d===null?l.next=l:(l.next=d.next,d.next=l),s.pending=l,l=Do(t),Mh(t,null,a),l}return Lo(t,s,l,a),Do(t)}function Ea(t,l,a){if(l=l.updateQueue,l!==null&&(l=l.shared,(a&4194048)!==0)){var s=l.lanes;s&=t.pendingLanes,a|=s,l.lanes=a,De(t,a)}}function kc(t,l){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=S:p=p.next=S,a=a.next}while(a!==null);p===null?d=p=l:p=p.next=l}else d=p=l;a={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=l:t.next=l,a.lastBaseUpdate=l}var Cc=!1;function Aa(){if(Cc){var t=xr;if(t!==null)throw t}}function Ta(t,l,a,s){Cc=!1;var d=t.updateQueue;Jl=!1;var p=d.firstBaseUpdate,S=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var O=A,G=O.next;O.next=null,S===null?p=G:S.next=G,S=O;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,A=Z.lastBaseUpdate,A!==S&&(A===null?Z.firstBaseUpdate=G:A.next=G,Z.lastBaseUpdate=O))}if(p!==null){var le=d.baseState;S=0,Z=G=O=null,A=p;do{var Y=A.lane&-536870913,Q=Y!==A.lane;if(Q?(Pe&Y)===Y:(s&Y)===Y){Y!==0&&Y===br&&(Cc=!0),Z!==null&&(Z=Z.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var pe=t,Ce=A;Y=l;var at=a;switch(Ce.tag){case 1:if(pe=Ce.payload,typeof pe=="function"){le=pe.call(at,le,Y);break e}le=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ce.payload,Y=typeof pe=="function"?pe.call(at,le,Y):pe,Y==null)break e;le=g({},le,Y);break e;case 2:Jl=!0}}Y=A.callback,Y!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=d.callbacks,Q===null?d.callbacks=[Y]:Q.push(Y))}else Q={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Z===null?(G=Z=Q,O=le):Z=Z.next=Q,S|=Y;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;Q=A,A=Q.next,Q.next=null,d.lastBaseUpdate=Q,d.shared.pending=null}}while(!0);Z===null&&(O=le),d.baseState=O,d.firstBaseUpdate=G,d.lastBaseUpdate=Z,p===null&&(d.shared.lanes=0),ri|=S,t.lanes=S,t.memoizedState=le}}function Kh(t,l){if(typeof t!="function")throw Error(r(191,t));t.call(l)}function Zh(t,l){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Kh(a[t],l)}var kr=z(null),Yo=z(0);function $h(t,l){t=Rl,N(Yo,t),N(kr,l),Rl=t|l.baseLanes}function Ec(){N(Yo,Rl),N(kr,kr.current)}function Ac(){Rl=Yo.current,U(kr),U(Yo)}var wn=z(null),Un=null;function ti(t){var l=t.alternate;N(_t,_t.current&1),N(wn,t),Un===null&&(l===null||kr.current!==null||l.memoizedState!==null)&&(Un=t)}function Tc(t){N(_t,_t.current),N(wn,t),Un===null&&(Un=t)}function Jh(t){t.tag===22?(N(_t,_t.current),N(wn,t),Un===null&&(Un=t)):ni()}function ni(){N(_t,_t.current),N(wn,wn.current)}function kn(t){U(wn),Un===t&&(Un=null),U(_t)}var _t=z(0);function Qo(t){for(var l=t;l!==null;){if(l.tag===13){var a=l.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rf(a)||Lf(a)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Al=0,Oe=null,it=null,Rt=null,Xo=!1,Cr=!1,Fi=!1,Ko=0,_a=0,Er=null,HS=0;function kt(){throw Error(r(321))}function _c(t,l){if(l===null)return!1;for(var a=0;a<l.length&&a<t.length;a++)if(!xn(t[a],l[a]))return!1;return!0}function Nc(t,l,a,s,d,p){return Al=p,Oe=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,D.H=t===null||t.memoizedState===null?Lp:qc,Fi=!1,p=a(s,d),Fi=!1,Cr&&(p=ep(l,a,s,d)),Wh(t),p}function Wh(t){D.H=Ma;var l=it!==null&&it.next!==null;if(Al=0,Rt=it=Oe=null,Xo=!1,_a=0,Er=null,l)throw Error(r(300));t===null||Lt||(t=t.dependencies,t!==null&&Uo(t)&&(Lt=!0))}function ep(t,l,a,s){Oe=t;var d=0;do{if(Cr&&(Er=null),_a=0,Cr=!1,25<=d)throw Error(r(301));if(d+=1,Rt=it=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=Dp,p=l(a,s)}while(Cr);return p}function PS(){var t=D.H,l=t.useState()[0];return l=typeof l.then=="function"?Na(l):l,t=t.useState()[0],(it!==null?it.memoizedState:null)!==t&&(Oe.flags|=1024),l}function zc(){var t=Ko!==0;return Ko=0,t}function Mc(t,l,a){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~a}function Oc(t){if(Xo){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}Xo=!1}Al=0,Rt=it=Oe=null,Cr=!1,_a=Ko=0,Er=null}function ln(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Oe.memoizedState=Rt=t:Rt=Rt.next=t,Rt}function Nt(){if(it===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=it.next;var l=Rt===null?Oe.memoizedState:Rt.next;if(l!==null)Rt=l,it=t;else{if(t===null)throw Oe.alternate===null?Error(r(467)):Error(r(310));it=t,t={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Rt===null?Oe.memoizedState=Rt=t:Rt=Rt.next=t}return Rt}function Zo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Na(t){var l=_a;return _a+=1,Er===null&&(Er=[]),t=qh(Er,t,l),l=Oe,(Rt===null?l.memoizedState:Rt.next)===null&&(l=l.alternate,D.H=l===null||l.memoizedState===null?Lp:qc),t}function $o(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Na(t);if(t.$$typeof===M)return Qt(t)}throw Error(r(438,String(t)))}function jc(t){var l=null,a=Oe.updateQueue;if(a!==null&&(l=a.memoCache),l==null){var s=Oe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(l={data:s.data.map(function(d){return d.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),a===null&&(a=Zo(),Oe.updateQueue=a),a.memoCache=l,a=l.data[l.index],a===void 0)for(a=l.data[l.index]=Array(t),s=0;s<t;s++)a[s]=I;return l.index++,a}function Tl(t,l){return typeof l=="function"?l(t):l}function Jo(t){var l=Nt();return Rc(l,it,t)}function Rc(t,l,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var d=t.baseQueue,p=s.pending;if(p!==null){if(d!==null){var S=d.next;d.next=p.next,p.next=S}l.baseQueue=d=p,s.pending=null}if(p=t.baseState,d===null)t.memoizedState=p;else{l=d.next;var A=S=null,O=null,G=l,Z=!1;do{var le=G.lane&-536870913;if(le!==G.lane?(Pe&le)===le:(Al&le)===le){var Y=G.revertLane;if(Y===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),le===br&&(Z=!0);else if((Al&Y)===Y){G=G.next,Y===br&&(Z=!0);continue}else le={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(A=O=le,S=p):O=O.next=le,Oe.lanes|=Y,ri|=Y;le=G.action,Fi&&a(p,le),p=G.hasEagerState?G.eagerState:a(p,le)}else Y={lane:le,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(A=O=Y,S=p):O=O.next=Y,Oe.lanes|=le,ri|=le;G=G.next}while(G!==null&&G!==l);if(O===null?S=p:O.next=A,!xn(p,t.memoizedState)&&(Lt=!0,Z&&(a=xr,a!==null)))throw a;t.memoizedState=p,t.baseState=S,t.baseQueue=O,s.lastRenderedState=p}return d===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Lc(t){var l=Nt(),a=l.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,d=a.pending,p=l.memoizedState;if(d!==null){a.pending=null;var S=d=d.next;do p=t(p,S.action),S=S.next;while(S!==d);xn(p,l.memoizedState)||(Lt=!0),l.memoizedState=p,l.baseQueue===null&&(l.baseState=p),a.lastRenderedState=p}return[p,s]}function tp(t,l,a){var s=Oe,d=Nt(),p=Ye;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=l();var S=!xn((it||d).memoizedState,a);if(S&&(d.memoizedState=a,Lt=!0),d=d.queue,Bc(ip.bind(null,s,d,t),[t]),d.getSnapshot!==l||S||Rt!==null&&Rt.memoizedState.tag&1){if(s.flags|=2048,Ar(9,{destroy:void 0},lp.bind(null,s,d,a,l),null),st===null)throw Error(r(349));p||(Al&127)!==0||np(s,l,a)}return a}function np(t,l,a){t.flags|=16384,t={getSnapshot:l,value:a},l=Oe.updateQueue,l===null?(l=Zo(),Oe.updateQueue=l,l.stores=[t]):(a=l.stores,a===null?l.stores=[t]:a.push(t))}function lp(t,l,a,s){l.value=a,l.getSnapshot=s,rp(l)&&ap(t)}function ip(t,l,a){return a(function(){rp(l)&&ap(t)})}function rp(t){var l=t.getSnapshot;t=t.value;try{var a=l();return!xn(t,a)}catch{return!0}}function ap(t){var l=Oi(t,2);l!==null&&pn(l,t,2)}function Dc(t){var l=ln();if(typeof t=="function"){var a=t;if(t=a(),Fi){xt(!0);try{a()}finally{xt(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:t},l}function op(t,l,a,s){return t.baseState=a,Rc(t,it,typeof s=="function"?s:Tl)}function qS(t,l,a,s,d){if(ts(t))throw Error(r(485));if(t=l.action,t!==null){var p={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};D.T!==null?a(!0):p.isTransition=!1,s(p),a=l.pending,a===null?(p.next=l.pending=p,sp(l,p)):(p.next=a.next,l.pending=a.next=p)}}function sp(t,l){var a=l.action,s=l.payload,d=t.state;if(l.isTransition){var p=D.T,S={};D.T=S;try{var A=a(d,s),O=D.S;O!==null&&O(S,A),up(t,l,A)}catch(G){Ic(t,l,G)}finally{p!==null&&S.types!==null&&(p.types=S.types),D.T=p}}else try{p=a(d,s),up(t,l,p)}catch(G){Ic(t,l,G)}}function up(t,l,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){cp(t,l,s)},function(s){return Ic(t,l,s)}):cp(t,l,a)}function cp(t,l,a){l.status="fulfilled",l.value=a,fp(l),t.state=a,l=t.pending,l!==null&&(a=l.next,a===l?t.pending=null:(a=a.next,l.next=a,sp(t,a)))}function Ic(t,l,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do l.status="rejected",l.reason=a,fp(l),l=l.next;while(l!==s)}t.action=null}function fp(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function dp(t,l){return l}function mp(t,l){if(Ye){var a=st.formState;if(a!==null){e:{var s=Oe;if(Ye){if(mt){t:{for(var d=mt,p=Bn;d.nodeType!==8;){if(!p){d=null;break t}if(d=Vn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){mt=Vn(d.nextSibling),s=d.data==="F!";break e}}Zl(s)}s=!1}s&&(l=a[0])}}return a=ln(),a.memoizedState=a.baseState=l,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dp,lastRenderedState:l},a.queue=s,a=Op.bind(null,Oe,s),s.dispatch=a,s=Dc(!1),p=Pc.bind(null,Oe,!1,s.queue),s=ln(),d={state:l,dispatch:null,action:t,pending:null},s.queue=d,a=qS.bind(null,Oe,d,p,a),d.dispatch=a,s.memoizedState=t,[l,a,!1]}function hp(t){var l=Nt();return pp(l,it,t)}function pp(t,l,a){if(l=Rc(t,l,dp)[0],t=Jo(Tl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var s=Na(l)}catch(S){throw S===Sr?Ho:S}else s=l;l=Nt();var d=l.queue,p=d.dispatch;return a!==l.memoizedState&&(Oe.flags|=2048,Ar(9,{destroy:void 0},GS.bind(null,d,a),null)),[s,p,t]}function GS(t,l){t.action=l}function gp(t){var l=Nt(),a=it;if(a!==null)return pp(l,a,t);Nt(),l=l.memoizedState,a=Nt();var s=a.queue.dispatch;return a.memoizedState=t,[l,s,!1]}function Ar(t,l,a,s){return t={tag:t,create:a,deps:s,inst:l,next:null},l=Oe.updateQueue,l===null&&(l=Zo(),Oe.updateQueue=l),a=l.lastEffect,a===null?l.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,l.lastEffect=t),t}function yp(){return Nt().memoizedState}function Wo(t,l,a,s){var d=ln();Oe.flags|=t,d.memoizedState=Ar(1|l,{destroy:void 0},a,s===void 0?null:s)}function es(t,l,a,s){var d=Nt();s=s===void 0?null:s;var p=d.memoizedState.inst;it!==null&&s!==null&&_c(s,it.memoizedState.deps)?d.memoizedState=Ar(l,p,a,s):(Oe.flags|=t,d.memoizedState=Ar(1|l,p,a,s))}function vp(t,l){Wo(8390656,8,t,l)}function Bc(t,l){es(2048,8,t,l)}function YS(t){Oe.flags|=4;var l=Oe.updateQueue;if(l===null)l=Zo(),Oe.updateQueue=l,l.events=[t];else{var a=l.events;a===null?l.events=[t]:a.push(t)}}function bp(t){var l=Nt().memoizedState;return YS({ref:l,nextImpl:t}),function(){if((Je&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function xp(t,l){return es(4,2,t,l)}function Sp(t,l){return es(4,4,t,l)}function wp(t,l){if(typeof l=="function"){t=t();var a=l(t);return function(){typeof a=="function"?a():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function kp(t,l,a){a=a!=null?a.concat([t]):null,es(4,4,wp.bind(null,l,t),a)}function Uc(){}function Cp(t,l){var a=Nt();l=l===void 0?null:l;var s=a.memoizedState;return l!==null&&_c(l,s[1])?s[0]:(a.memoizedState=[t,l],t)}function Ep(t,l){var a=Nt();l=l===void 0?null:l;var s=a.memoizedState;if(l!==null&&_c(l,s[1]))return s[0];if(s=t(),Fi){xt(!0);try{t()}finally{xt(!1)}}return a.memoizedState=[s,l],s}function Vc(t,l,a){return a===void 0||(Al&1073741824)!==0&&(Pe&261930)===0?t.memoizedState=l:(t.memoizedState=a,t=Ag(),Oe.lanes|=t,ri|=t,a)}function Ap(t,l,a,s){return xn(a,l)?a:kr.current!==null?(t=Vc(t,a,s),xn(t,l)||(Lt=!0),t):(Al&42)===0||(Al&1073741824)!==0&&(Pe&261930)===0?(Lt=!0,t.memoizedState=a):(t=Ag(),Oe.lanes|=t,ri|=t,l)}function Tp(t,l,a,s,d){var p=X.p;X.p=p!==0&&8>p?p:8;var S=D.T,A={};D.T=A,Pc(t,!1,l,a);try{var O=d(),G=D.S;if(G!==null&&G(A,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Z=FS(O,s);za(t,l,Z,An(t))}else za(t,l,s,An(t))}catch(le){za(t,l,{then:function(){},status:"rejected",reason:le},An())}finally{X.p=p,S!==null&&A.types!==null&&(S.types=A.types),D.T=S}}function QS(){}function Fc(t,l,a,s){if(t.tag!==5)throw Error(r(476));var d=_p(t).queue;Tp(t,d,l,ne,a===null?QS:function(){return Np(t),a(s)})}function _p(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ne},next:null};var a={};return l.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:a},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function Np(t){var l=_p(t);l.next===null&&(l=t.alternate.memoizedState),za(t,l.next.queue,{},An())}function Hc(){return Qt(Qa)}function zp(){return Nt().memoizedState}function Mp(){return Nt().memoizedState}function XS(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var a=An();t=Wl(a);var s=ei(l,t,a);s!==null&&(pn(s,l,a),Ea(s,l,a)),l={cache:yc()},t.payload=l;return}l=l.return}}function KS(t,l,a){var s=An();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ts(t)?jp(l,a):(a=ac(t,l,a,s),a!==null&&(pn(a,t,s),Rp(a,l,s)))}function Op(t,l,a){var s=An();za(t,l,a,s)}function za(t,l,a,s){var d={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ts(t))jp(l,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=l.lastRenderedReducer,p!==null))try{var S=l.lastRenderedState,A=p(S,a);if(d.hasEagerState=!0,d.eagerState=A,xn(A,S))return Lo(t,l,d,0),st===null&&Ro(),!1}catch{}finally{}if(a=ac(t,l,d,s),a!==null)return pn(a,t,s),Rp(a,l,s),!0}return!1}function Pc(t,l,a,s){if(s={lane:2,revertLane:wf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ts(t)){if(l)throw Error(r(479))}else l=ac(t,a,s,2),l!==null&&pn(l,t,2)}function ts(t){var l=t.alternate;return t===Oe||l!==null&&l===Oe}function jp(t,l){Cr=Xo=!0;var a=t.pending;a===null?l.next=l:(l.next=a.next,a.next=l),t.pending=l}function Rp(t,l,a){if((a&4194048)!==0){var s=l.lanes;s&=t.pendingLanes,a|=s,l.lanes=a,De(t,a)}}var Ma={readContext:Qt,use:$o,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Ma.useEffectEvent=kt;var Lp={readContext:Qt,use:$o,useCallback:function(t,l){return ln().memoizedState=[t,l===void 0?null:l],t},useContext:Qt,useEffect:vp,useImperativeHandle:function(t,l,a){a=a!=null?a.concat([t]):null,Wo(4194308,4,wp.bind(null,l,t),a)},useLayoutEffect:function(t,l){return Wo(4194308,4,t,l)},useInsertionEffect:function(t,l){Wo(4,2,t,l)},useMemo:function(t,l){var a=ln();l=l===void 0?null:l;var s=t();if(Fi){xt(!0);try{t()}finally{xt(!1)}}return a.memoizedState=[s,l],s},useReducer:function(t,l,a){var s=ln();if(a!==void 0){var d=a(l);if(Fi){xt(!0);try{a(l)}finally{xt(!1)}}}else d=l;return s.memoizedState=s.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},s.queue=t,t=t.dispatch=KS.bind(null,Oe,t),[s.memoizedState,t]},useRef:function(t){var l=ln();return t={current:t},l.memoizedState=t},useState:function(t){t=Dc(t);var l=t.queue,a=Op.bind(null,Oe,l);return l.dispatch=a,[t.memoizedState,a]},useDebugValue:Uc,useDeferredValue:function(t,l){var a=ln();return Vc(a,t,l)},useTransition:function(){var t=Dc(!1);return t=Tp.bind(null,Oe,t.queue,!0,!1),ln().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,a){var s=Oe,d=ln();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=l(),st===null)throw Error(r(349));(Pe&127)!==0||np(s,l,a)}d.memoizedState=a;var p={value:a,getSnapshot:l};return d.queue=p,vp(ip.bind(null,s,p,t),[t]),s.flags|=2048,Ar(9,{destroy:void 0},lp.bind(null,s,p,a,l),null),a},useId:function(){var t=ln(),l=st.identifierPrefix;if(Ye){var a=ul,s=sl;a=(s&~(1<<32-Be(s)-1)).toString(32)+a,l="_"+l+"R_"+a,a=Ko++,0<a&&(l+="H"+a.toString(32)),l+="_"}else a=HS++,l="_"+l+"r_"+a.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:Hc,useFormState:mp,useActionState:mp,useOptimistic:function(t){var l=ln();l.memoizedState=l.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=a,l=Pc.bind(null,Oe,!0,a),a.dispatch=l,[t,l]},useMemoCache:jc,useCacheRefresh:function(){return ln().memoizedState=XS.bind(null,Oe)},useEffectEvent:function(t){var l=ln(),a={impl:t};return l.memoizedState=a,function(){if((Je&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},qc={readContext:Qt,use:$o,useCallback:Cp,useContext:Qt,useEffect:Bc,useImperativeHandle:kp,useInsertionEffect:xp,useLayoutEffect:Sp,useMemo:Ep,useReducer:Jo,useRef:yp,useState:function(){return Jo(Tl)},useDebugValue:Uc,useDeferredValue:function(t,l){var a=Nt();return Ap(a,it.memoizedState,t,l)},useTransition:function(){var t=Jo(Tl)[0],l=Nt().memoizedState;return[typeof t=="boolean"?t:Na(t),l]},useSyncExternalStore:tp,useId:zp,useHostTransitionStatus:Hc,useFormState:hp,useActionState:hp,useOptimistic:function(t,l){var a=Nt();return op(a,it,t,l)},useMemoCache:jc,useCacheRefresh:Mp};qc.useEffectEvent=bp;var Dp={readContext:Qt,use:$o,useCallback:Cp,useContext:Qt,useEffect:Bc,useImperativeHandle:kp,useInsertionEffect:xp,useLayoutEffect:Sp,useMemo:Ep,useReducer:Lc,useRef:yp,useState:function(){return Lc(Tl)},useDebugValue:Uc,useDeferredValue:function(t,l){var a=Nt();return it===null?Vc(a,t,l):Ap(a,it.memoizedState,t,l)},useTransition:function(){var t=Lc(Tl)[0],l=Nt().memoizedState;return[typeof t=="boolean"?t:Na(t),l]},useSyncExternalStore:tp,useId:zp,useHostTransitionStatus:Hc,useFormState:gp,useActionState:gp,useOptimistic:function(t,l){var a=Nt();return it!==null?op(a,it,t,l):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:jc,useCacheRefresh:Mp};Dp.useEffectEvent=bp;function Gc(t,l,a,s){l=t.memoizedState,a=a(s,l),a=a==null?l:g({},l,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Yc={enqueueSetState:function(t,l,a){t=t._reactInternals;var s=An(),d=Wl(s);d.payload=l,a!=null&&(d.callback=a),l=ei(t,d,s),l!==null&&(pn(l,t,s),Ea(l,t,s))},enqueueReplaceState:function(t,l,a){t=t._reactInternals;var s=An(),d=Wl(s);d.tag=1,d.payload=l,a!=null&&(d.callback=a),l=ei(t,d,s),l!==null&&(pn(l,t,s),Ea(l,t,s))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var a=An(),s=Wl(a);s.tag=2,l!=null&&(s.callback=l),l=ei(t,s,a),l!==null&&(pn(l,t,a),Ea(l,t,a))}};function Ip(t,l,a,s,d,p,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,S):l.prototype&&l.prototype.isPureReactComponent?!ya(a,s)||!ya(d,p):!0}function Bp(t,l,a,s){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(a,s),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(a,s),l.state!==t&&Yc.enqueueReplaceState(l,l.state,null)}function Hi(t,l){var a=l;if("ref"in l){a={};for(var s in l)s!=="ref"&&(a[s]=l[s])}if(t=t.defaultProps){a===l&&(a=g({},a));for(var d in t)a[d]===void 0&&(a[d]=t[d])}return a}function Up(t){jo(t)}function Vp(t){console.error(t)}function Fp(t){jo(t)}function ns(t,l){try{var a=t.onUncaughtError;a(l.value,{componentStack:l.stack})}catch(s){setTimeout(function(){throw s})}}function Hp(t,l,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Qc(t,l,a){return a=Wl(a),a.tag=3,a.payload={element:null},a.callback=function(){ns(t,l)},a}function Pp(t){return t=Wl(t),t.tag=3,t}function qp(t,l,a,s){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=s.value;t.payload=function(){return d(p)},t.callback=function(){Hp(l,a,s)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Hp(l,a,s),typeof d!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var A=s.stack;this.componentDidCatch(s.value,{componentStack:A!==null?A:""})})}function ZS(t,l,a,s,d){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(l=a.alternate,l!==null&&vr(l,a,d,!0),a=wn.current,a!==null){switch(a.tag){case 31:case 13:return Un===null?hs():a.alternate===null&&Ct===0&&(Ct=3),a.flags&=-257,a.flags|=65536,a.lanes=d,s===Po?a.flags|=16384:(l=a.updateQueue,l===null?a.updateQueue=new Set([s]):l.add(s),bf(t,s,d)),!1;case 22:return a.flags|=65536,s===Po?a.flags|=16384:(l=a.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=l):(a=l.retryQueue,a===null?l.retryQueue=new Set([s]):a.add(s)),bf(t,s,d)),!1}throw Error(r(435,a.tag))}return bf(t,s,d),hs(),!1}if(Ye)return l=wn.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=d,s!==dc&&(t=Error(r(422),{cause:s}),xa(Ln(t,a)))):(s!==dc&&(l=Error(r(423),{cause:s}),xa(Ln(l,a))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,s=Ln(s,a),d=Qc(t.stateNode,s,d),kc(t,d),Ct!==4&&(Ct=2)),!1;var p=Error(r(520),{cause:s});if(p=Ln(p,a),Ua===null?Ua=[p]:Ua.push(p),Ct!==4&&(Ct=2),l===null)return!0;s=Ln(s,a),a=l;do{switch(a.tag){case 3:return a.flags|=65536,t=d&-d,a.lanes|=t,t=Qc(a.stateNode,s,t),kc(a,t),!1;case 1:if(l=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ai===null||!ai.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=Pp(d),qp(d,t,a,s),kc(a,d),!1}a=a.return}while(a!==null);return!1}var Xc=Error(r(461)),Lt=!1;function Xt(t,l,a,s){l.child=t===null?Xh(l,null,a,s):Vi(l,t.child,a,s)}function Gp(t,l,a,s,d){a=a.render;var p=l.ref;if("ref"in s){var S={};for(var A in s)A!=="ref"&&(S[A]=s[A])}else S=s;return Di(l),s=Nc(t,l,a,S,p,d),A=zc(),t!==null&&!Lt?(Mc(t,l,d),_l(t,l,d)):(Ye&&A&&cc(l),l.flags|=1,Xt(t,l,s,d),l.child)}function Yp(t,l,a,s,d){if(t===null){var p=a.type;return typeof p=="function"&&!oc(p)&&p.defaultProps===void 0&&a.compare===null?(l.tag=15,l.type=p,Qp(t,l,p,s,d)):(t=Io(a.type,null,s,l,l.mode,d),t.ref=l.ref,t.return=l,l.child=t)}if(p=t.child,!nf(t,d)){var S=p.memoizedProps;if(a=a.compare,a=a!==null?a:ya,a(S,s)&&t.ref===l.ref)return _l(t,l,d)}return l.flags|=1,t=wl(p,s),t.ref=l.ref,t.return=l,l.child=t}function Qp(t,l,a,s,d){if(t!==null){var p=t.memoizedProps;if(ya(p,s)&&t.ref===l.ref)if(Lt=!1,l.pendingProps=s=p,nf(t,d))(t.flags&131072)!==0&&(Lt=!0);else return l.lanes=t.lanes,_l(t,l,d)}return Kc(t,l,a,s,d)}function Xp(t,l,a,s){var d=s.children,p=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((l.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,t!==null){for(s=l.child=t.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~p}else s=0,l.child=null;return Kp(t,l,p,a,s)}if((a&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fo(l,p!==null?p.cachePool:null),p!==null?$h(l,p):Ec(),Jh(l);else return s=l.lanes=536870912,Kp(t,l,p!==null?p.baseLanes|a:a,a,s)}else p!==null?(Fo(l,p.cachePool),$h(l,p),ni(),l.memoizedState=null):(t!==null&&Fo(l,null),Ec(),ni());return Xt(t,l,d,a),l.child}function Oa(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Kp(t,l,a,s,d){var p=bc();return p=p===null?null:{parent:jt._currentValue,pool:p},l.memoizedState={baseLanes:a,cachePool:p},t!==null&&Fo(l,null),Ec(),Jh(l),t!==null&&vr(t,l,s,!0),l.childLanes=d,null}function ls(t,l){return l=rs({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function Zp(t,l,a){return Vi(l,t.child,null,a),t=ls(l,l.pendingProps),t.flags|=2,kn(l),l.memoizedState=null,t}function $S(t,l,a){var s=l.pendingProps,d=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(Ye){if(s.mode==="hidden")return t=ls(l,s),l.lanes=536870912,Oa(null,t);if(Tc(l),(t=mt)?(t=sy(t,Bn),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:Xl!==null?{id:sl,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},a=jh(t),a.return=l,l.child=a,Yt=l,mt=null)):t=null,t===null)throw Zl(l);return l.lanes=536870912,null}return ls(l,s)}var p=t.memoizedState;if(p!==null){var S=p.dehydrated;if(Tc(l),d)if(l.flags&256)l.flags&=-257,l=Zp(t,l,a);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(r(558));else if(Lt||vr(t,l,a,!1),d=(a&t.childLanes)!==0,Lt||d){if(s=st,s!==null&&(S=Et(s,a),S!==0&&S!==p.retryLane))throw p.retryLane=S,Oi(t,S),pn(s,t,S),Xc;hs(),l=Zp(t,l,a)}else t=p.treeContext,mt=Vn(S.nextSibling),Yt=l,Ye=!0,Kl=null,Bn=!1,t!==null&&Dh(l,t),l=ls(l,s),l.flags|=4096;return l}return t=wl(t.child,{mode:s.mode,children:s.children}),t.ref=l.ref,l.child=t,t.return=l,t}function is(t,l){var a=l.ref;if(a===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(l.flags|=4194816)}}function Kc(t,l,a,s,d){return Di(l),a=Nc(t,l,a,s,void 0,d),s=zc(),t!==null&&!Lt?(Mc(t,l,d),_l(t,l,d)):(Ye&&s&&cc(l),l.flags|=1,Xt(t,l,a,d),l.child)}function $p(t,l,a,s,d,p){return Di(l),l.updateQueue=null,a=ep(l,s,a,d),Wh(t),s=zc(),t!==null&&!Lt?(Mc(t,l,p),_l(t,l,p)):(Ye&&s&&cc(l),l.flags|=1,Xt(t,l,a,p),l.child)}function Jp(t,l,a,s,d){if(Di(l),l.stateNode===null){var p=hr,S=a.contextType;typeof S=="object"&&S!==null&&(p=Qt(S)),p=new a(s,p),l.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Yc,l.stateNode=p,p._reactInternals=l,p=l.stateNode,p.props=s,p.state=l.memoizedState,p.refs={},Sc(l),S=a.contextType,p.context=typeof S=="object"&&S!==null?Qt(S):hr,p.state=l.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Gc(l,a,S,s),p.state=l.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Yc.enqueueReplaceState(p,p.state,null),Ta(l,s,p,d),Aa(),p.state=l.memoizedState),typeof p.componentDidMount=="function"&&(l.flags|=4194308),s=!0}else if(t===null){p=l.stateNode;var A=l.memoizedProps,O=Hi(a,A);p.props=O;var G=p.context,Z=a.contextType;S=hr,typeof Z=="object"&&Z!==null&&(S=Qt(Z));var le=a.getDerivedStateFromProps;Z=typeof le=="function"||typeof p.getSnapshotBeforeUpdate=="function",A=l.pendingProps!==A,Z||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(A||G!==S)&&Bp(l,p,s,S),Jl=!1;var Y=l.memoizedState;p.state=Y,Ta(l,s,p,d),Aa(),G=l.memoizedState,A||Y!==G||Jl?(typeof le=="function"&&(Gc(l,a,le,s),G=l.memoizedState),(O=Jl||Ip(l,a,O,s,Y,G,S))?(Z||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(l.flags|=4194308)):(typeof p.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=s,l.memoizedState=G),p.props=s,p.state=G,p.context=S,s=O):(typeof p.componentDidMount=="function"&&(l.flags|=4194308),s=!1)}else{p=l.stateNode,wc(t,l),S=l.memoizedProps,Z=Hi(a,S),p.props=Z,le=l.pendingProps,Y=p.context,G=a.contextType,O=hr,typeof G=="object"&&G!==null&&(O=Qt(G)),A=a.getDerivedStateFromProps,(G=typeof A=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==le||Y!==O)&&Bp(l,p,s,O),Jl=!1,Y=l.memoizedState,p.state=Y,Ta(l,s,p,d),Aa();var Q=l.memoizedState;S!==le||Y!==Q||Jl||t!==null&&t.dependencies!==null&&Uo(t.dependencies)?(typeof A=="function"&&(Gc(l,a,A,s),Q=l.memoizedState),(Z=Jl||Ip(l,a,Z,s,Y,Q,O)||t!==null&&t.dependencies!==null&&Uo(t.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Q,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Q,O)),typeof p.componentDidUpdate=="function"&&(l.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(l.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(l.flags|=1024),l.memoizedProps=s,l.memoizedState=Q),p.props=s,p.state=Q,p.context=O,s=Z):(typeof p.componentDidUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(l.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Y===t.memoizedState||(l.flags|=1024),s=!1)}return p=s,is(t,l),s=(l.flags&128)!==0,p||s?(p=l.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:p.render(),l.flags|=1,t!==null&&s?(l.child=Vi(l,t.child,null,d),l.child=Vi(l,null,a,d)):Xt(t,l,a,d),l.memoizedState=p.state,t=l.child):t=_l(t,l,d),t}function Wp(t,l,a,s){return Ri(),l.flags|=256,Xt(t,l,a,s),l.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(t){return{baseLanes:t,cachePool:Hh()}}function Jc(t,l,a){return t=t!==null?t.childLanes&~a:0,l&&(t|=En),t}function eg(t,l,a){var s=l.pendingProps,d=!1,p=(l.flags&128)!==0,S;if((S=p)||(S=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),S&&(d=!0,l.flags&=-129),S=(l.flags&32)!==0,l.flags&=-33,t===null){if(Ye){if(d?ti(l):ni(),(t=mt)?(t=sy(t,Bn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:Xl!==null?{id:sl,overflow:ul}:null,retryLane:536870912,hydrationErrors:null},a=jh(t),a.return=l,l.child=a,Yt=l,mt=null)):t=null,t===null)throw Zl(l);return Lf(t)?l.lanes=32:l.lanes=536870912,null}var A=s.children;return s=s.fallback,d?(ni(),d=l.mode,A=rs({mode:"hidden",children:A},d),s=ji(s,d,a,null),A.return=l,s.return=l,A.sibling=s,l.child=A,s=l.child,s.memoizedState=$c(a),s.childLanes=Jc(t,S,a),l.memoizedState=Zc,Oa(null,s)):(ti(l),Wc(l,A))}var O=t.memoizedState;if(O!==null&&(A=O.dehydrated,A!==null)){if(p)l.flags&256?(ti(l),l.flags&=-257,l=ef(t,l,a)):l.memoizedState!==null?(ni(),l.child=t.child,l.flags|=128,l=null):(ni(),A=s.fallback,d=l.mode,s=rs({mode:"visible",children:s.children},d),A=ji(A,d,a,null),A.flags|=2,s.return=l,A.return=l,s.sibling=A,l.child=s,Vi(l,t.child,null,a),s=l.child,s.memoizedState=$c(a),s.childLanes=Jc(t,S,a),l.memoizedState=Zc,l=Oa(null,s));else if(ti(l),Lf(A)){if(S=A.nextSibling&&A.nextSibling.dataset,S)var G=S.dgst;S=G,s=Error(r(419)),s.stack="",s.digest=S,xa({value:s,source:null,stack:null}),l=ef(t,l,a)}else if(Lt||vr(t,l,a,!1),S=(a&t.childLanes)!==0,Lt||S){if(S=st,S!==null&&(s=Et(S,a),s!==0&&s!==O.retryLane))throw O.retryLane=s,Oi(t,s),pn(S,t,s),Xc;Rf(A)||hs(),l=ef(t,l,a)}else Rf(A)?(l.flags|=192,l.child=t.child,l=null):(t=O.treeContext,mt=Vn(A.nextSibling),Yt=l,Ye=!0,Kl=null,Bn=!1,t!==null&&Dh(l,t),l=Wc(l,s.children),l.flags|=4096);return l}return d?(ni(),A=s.fallback,d=l.mode,O=t.child,G=O.sibling,s=wl(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,G!==null?A=wl(G,A):(A=ji(A,d,a,null),A.flags|=2),A.return=l,s.return=l,s.sibling=A,l.child=s,Oa(null,s),s=l.child,A=t.child.memoizedState,A===null?A=$c(a):(d=A.cachePool,d!==null?(O=jt._currentValue,d=d.parent!==O?{parent:O,pool:O}:d):d=Hh(),A={baseLanes:A.baseLanes|a,cachePool:d}),s.memoizedState=A,s.childLanes=Jc(t,S,a),l.memoizedState=Zc,Oa(t.child,s)):(ti(l),a=t.child,t=a.sibling,a=wl(a,{mode:"visible",children:s.children}),a.return=l,a.sibling=null,t!==null&&(S=l.deletions,S===null?(l.deletions=[t],l.flags|=16):S.push(t)),l.child=a,l.memoizedState=null,a)}function Wc(t,l){return l=rs({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function rs(t,l){return t=Sn(22,t,null,l),t.lanes=0,t}function ef(t,l,a){return Vi(l,t.child,null,a),t=Wc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function tg(t,l,a){t.lanes|=l;var s=t.alternate;s!==null&&(s.lanes|=l),pc(t.return,l,a)}function tf(t,l,a,s,d,p){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:d,treeForkCount:p}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=a,S.tailMode=d,S.treeForkCount=p)}function ng(t,l,a){var s=l.pendingProps,d=s.revealOrder,p=s.tail;s=s.children;var S=_t.current,A=(S&2)!==0;if(A?(S=S&1|2,l.flags|=128):S&=1,N(_t,S),Xt(t,l,s,a),s=Ye?ba:0,!A&&t!==null&&(t.flags&128)!==0)e:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&tg(t,a,l);else if(t.tag===19)tg(t,a,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break e;for(;t.sibling===null;){if(t.return===null||t.return===l)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(a=l.child,d=null;a!==null;)t=a.alternate,t!==null&&Qo(t)===null&&(d=a),a=a.sibling;a=d,a===null?(d=l.child,l.child=null):(d=a.sibling,a.sibling=null),tf(l,!1,d,a,p,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=l.child,l.child=null;d!==null;){if(t=d.alternate,t!==null&&Qo(t)===null){l.child=d;break}t=d.sibling,d.sibling=a,a=d,d=t}tf(l,!0,a,null,p,s);break;case"together":tf(l,!1,null,null,void 0,s);break;default:l.memoizedState=null}return l.child}function _l(t,l,a){if(t!==null&&(l.dependencies=t.dependencies),ri|=l.lanes,(a&l.childLanes)===0)if(t!==null){if(vr(t,l,a,!1),(a&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(r(153));if(l.child!==null){for(t=l.child,a=wl(t,t.pendingProps),l.child=a,a.return=l;t.sibling!==null;)t=t.sibling,a=a.sibling=wl(t,t.pendingProps),a.return=l;a.sibling=null}return l.child}function nf(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Uo(t)))}function JS(t,l,a){switch(l.tag){case 3:be(l,l.stateNode.containerInfo),$l(l,jt,t.memoizedState.cache),Ri();break;case 27:case 5:Ge(l);break;case 4:be(l,l.stateNode.containerInfo);break;case 10:$l(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Tc(l),null;break;case 13:var s=l.memoizedState;if(s!==null)return s.dehydrated!==null?(ti(l),l.flags|=128,null):(a&l.child.childLanes)!==0?eg(t,l,a):(ti(l),t=_l(t,l,a),t!==null?t.sibling:null);ti(l);break;case 19:var d=(t.flags&128)!==0;if(s=(a&l.childLanes)!==0,s||(vr(t,l,a,!1),s=(a&l.childLanes)!==0),d){if(s)return ng(t,l,a);l.flags|=128}if(d=l.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),N(_t,_t.current),s)break;return null;case 22:return l.lanes=0,Xp(t,l,a,l.pendingProps);case 24:$l(l,jt,t.memoizedState.cache)}return _l(t,l,a)}function lg(t,l,a){if(t!==null)if(t.memoizedProps!==l.pendingProps)Lt=!0;else{if(!nf(t,a)&&(l.flags&128)===0)return Lt=!1,JS(t,l,a);Lt=(t.flags&131072)!==0}else Lt=!1,Ye&&(l.flags&1048576)!==0&&Lh(l,ba,l.index);switch(l.lanes=0,l.tag){case 16:e:{var s=l.pendingProps;if(t=Bi(l.elementType),l.type=t,typeof t=="function")oc(t)?(s=Hi(t,s),l.tag=1,l=Jp(null,l,t,s,a)):(l.tag=0,l=Kc(null,l,t,s,a));else{if(t!=null){var d=t.$$typeof;if(d===P){l.tag=11,l=Gp(null,l,t,s,a);break e}else if(d===H){l.tag=14,l=Yp(null,l,t,s,a);break e}}throw l=oe(t)||t,Error(r(306,l,""))}}return l;case 0:return Kc(t,l,l.type,l.pendingProps,a);case 1:return s=l.type,d=Hi(s,l.pendingProps),Jp(t,l,s,d,a);case 3:e:{if(be(l,l.stateNode.containerInfo),t===null)throw Error(r(387));s=l.pendingProps;var p=l.memoizedState;d=p.element,wc(t,l),Ta(l,s,null,a);var S=l.memoizedState;if(s=S.cache,$l(l,jt,s),s!==p.cache&&gc(l,[jt],a,!0),Aa(),s=S.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:S.cache},l.updateQueue.baseState=p,l.memoizedState=p,l.flags&256){l=Wp(t,l,s,a);break e}else if(s!==d){d=Ln(Error(r(424)),l),xa(d),l=Wp(t,l,s,a);break e}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(mt=Vn(t.firstChild),Yt=l,Ye=!0,Kl=null,Bn=!0,a=Xh(l,null,s,a),l.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ri(),s===d){l=_l(t,l,a);break e}Xt(t,l,s,a)}l=l.child}return l;case 26:return is(t,l),t===null?(a=hy(l.type,null,l.pendingProps,null))?l.memoizedState=a:Ye||(a=l.type,t=l.pendingProps,s=Ss(re.current).createElement(a),s[dt]=l,s[nt]=t,Kt(s,a,t),At(s),l.stateNode=s):l.memoizedState=hy(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Ge(l),t===null&&Ye&&(s=l.stateNode=fy(l.type,l.pendingProps,re.current),Yt=l,Bn=!0,d=mt,ci(l.type)?(Df=d,mt=Vn(s.firstChild)):mt=d),Xt(t,l,l.pendingProps.children,a),is(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&Ye&&((d=s=mt)&&(s=_w(s,l.type,l.pendingProps,Bn),s!==null?(l.stateNode=s,Yt=l,mt=Vn(s.firstChild),Bn=!1,d=!0):d=!1),d||Zl(l)),Ge(l),d=l.type,p=l.pendingProps,S=t!==null?t.memoizedProps:null,s=p.children,Mf(d,p)?s=null:S!==null&&Mf(d,S)&&(l.flags|=32),l.memoizedState!==null&&(d=Nc(t,l,PS,null,null,a),Qa._currentValue=d),is(t,l),Xt(t,l,s,a),l.child;case 6:return t===null&&Ye&&((t=a=mt)&&(a=Nw(a,l.pendingProps,Bn),a!==null?(l.stateNode=a,Yt=l,mt=null,t=!0):t=!1),t||Zl(l)),null;case 13:return eg(t,l,a);case 4:return be(l,l.stateNode.containerInfo),s=l.pendingProps,t===null?l.child=Vi(l,null,s,a):Xt(t,l,s,a),l.child;case 11:return Gp(t,l,l.type,l.pendingProps,a);case 7:return Xt(t,l,l.pendingProps,a),l.child;case 8:return Xt(t,l,l.pendingProps.children,a),l.child;case 12:return Xt(t,l,l.pendingProps.children,a),l.child;case 10:return s=l.pendingProps,$l(l,l.type,s.value),Xt(t,l,s.children,a),l.child;case 9:return d=l.type._context,s=l.pendingProps.children,Di(l),d=Qt(d),s=s(d),l.flags|=1,Xt(t,l,s,a),l.child;case 14:return Yp(t,l,l.type,l.pendingProps,a);case 15:return Qp(t,l,l.type,l.pendingProps,a);case 19:return ng(t,l,a);case 31:return $S(t,l,a);case 22:return Xp(t,l,a,l.pendingProps);case 24:return Di(l),s=Qt(jt),t===null?(d=bc(),d===null&&(d=st,p=yc(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),l.memoizedState={parent:s,cache:d},Sc(l),$l(l,jt,d)):((t.lanes&a)!==0&&(wc(t,l),Ta(l,null,null,a),Aa()),d=t.memoizedState,p=l.memoizedState,d.parent!==s?(d={parent:s,cache:s},l.memoizedState=d,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=d),$l(l,jt,s)):(s=p.cache,$l(l,jt,s),s!==d.cache&&gc(l,[jt],a,!0))),Xt(t,l,l.pendingProps.children,a),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Nl(t){t.flags|=4}function lf(t,l,a,s,d){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(zg())t.flags|=8192;else throw Ui=Po,xc}else t.flags&=-16777217}function ig(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!by(l))if(zg())t.flags|=8192;else throw Ui=Po,xc}function as(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?yl():536870912,t.lanes|=l,zr|=l)}function ja(t,l){if(!Ye)switch(t.tailMode){case"hidden":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function ht(t){var l=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(l)for(var d=t.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)a|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=s,t.childLanes=a,l}function WS(t,l,a){var s=l.pendingProps;switch(fc(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(l),null;case 1:return ht(l),null;case 3:return a=l.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),El(jt),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(yr(l)?Nl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,mc())),ht(l),null;case 26:var d=l.type,p=l.memoizedState;return t===null?(Nl(l),p!==null?(ht(l),ig(l,p)):(ht(l),lf(l,d,null,s,a))):p?p!==t.memoizedState?(Nl(l),ht(l),ig(l,p)):(ht(l),l.flags&=-16777217):(t=t.memoizedProps,t!==s&&Nl(l),ht(l),lf(l,d,t,s,a)),null;case 27:if(We(l),a=re.current,d=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==s&&Nl(l);else{if(!s){if(l.stateNode===null)throw Error(r(166));return ht(l),null}t=W.current,yr(l)?Ih(l):(t=fy(d,s,a),l.stateNode=t,Nl(l))}return ht(l),null;case 5:if(We(l),d=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==s&&Nl(l);else{if(!s){if(l.stateNode===null)throw Error(r(166));return ht(l),null}if(p=W.current,yr(l))Ih(l);else{var S=Ss(re.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?S.createElement(d,{is:s.is}):S.createElement(d)}}p[dt]=l,p[nt]=s;e:for(S=l.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===l)break e;for(;S.sibling===null;){if(S.return===null||S.return===l)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}l.stateNode=p;e:switch(Kt(p,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Nl(l)}}return ht(l),lf(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,a),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==s&&Nl(l);else{if(typeof s!="string"&&l.stateNode===null)throw Error(r(166));if(t=re.current,yr(l)){if(t=l.stateNode,a=l.memoizedProps,s=null,d=Yt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}t[dt]=l,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||ey(t.nodeValue,a)),t||Zl(l,!0)}else t=Ss(t).createTextNode(s),t[dt]=l,l.stateNode=t}return ht(l),null;case 31:if(a=l.memoizedState,t===null||t.memoizedState!==null){if(s=yr(l),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[dt]=l}else Ri(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ht(l),t=!1}else a=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return l.flags&256?(kn(l),l):(kn(l),null);if((l.flags&128)!==0)throw Error(r(558))}return ht(l),null;case 13:if(s=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=yr(l),s!==null&&s.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=l.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[dt]=l}else Ri(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ht(l),d=!1}else d=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return l.flags&256?(kn(l),l):(kn(l),null)}return kn(l),(l.flags&128)!==0?(l.lanes=a,l):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=l.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==d&&(s.flags|=2048)),a!==t&&a&&(l.child.flags|=8192),as(l,l.updateQueue),ht(l),null);case 4:return he(),t===null&&Af(l.stateNode.containerInfo),ht(l),null;case 10:return El(l.type),ht(l),null;case 19:if(U(_t),s=l.memoizedState,s===null)return ht(l),null;if(d=(l.flags&128)!==0,p=s.rendering,p===null)if(d)ja(s,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(p=Qo(t),p!==null){for(l.flags|=128,ja(s,!1),t=p.updateQueue,l.updateQueue=t,as(l,t),l.subtreeFlags=0,t=a,a=l.child;a!==null;)Oh(a,t),a=a.sibling;return N(_t,_t.current&1|2),Ye&&kl(l,s.treeForkCount),l.child}t=t.sibling}s.tail!==null&&pt()>fs&&(l.flags|=128,d=!0,ja(s,!1),l.lanes=4194304)}else{if(!d)if(t=Qo(p),t!==null){if(l.flags|=128,d=!0,t=t.updateQueue,l.updateQueue=t,as(l,t),ja(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Ye)return ht(l),null}else 2*pt()-s.renderingStartTime>fs&&a!==536870912&&(l.flags|=128,d=!0,ja(s,!1),l.lanes=4194304);s.isBackwards?(p.sibling=l.child,l.child=p):(t=s.last,t!==null?t.sibling=p:l.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=pt(),t.sibling=null,a=_t.current,N(_t,d?a&1|2:a&1),Ye&&kl(l,s.treeForkCount),t):(ht(l),null);case 22:case 23:return kn(l),Ac(),s=l.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(l.flags|=8192):s&&(l.flags|=8192),s?(a&536870912)!==0&&(l.flags&128)===0&&(ht(l),l.subtreeFlags&6&&(l.flags|=8192)):ht(l),a=l.updateQueue,a!==null&&as(l,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==a&&(l.flags|=2048),t!==null&&U(Ii),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),El(jt),ht(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function ew(t,l){switch(fc(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return El(jt),he(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return We(l),null;case 31:if(l.memoizedState!==null){if(kn(l),l.alternate===null)throw Error(r(340));Ri()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(kn(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ri()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return U(_t),null;case 4:return he(),null;case 10:return El(l.type),null;case 22:case 23:return kn(l),Ac(),t!==null&&U(Ii),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return El(jt),null;case 25:return null;default:return null}}function rg(t,l){switch(fc(l),l.tag){case 3:El(jt),he();break;case 26:case 27:case 5:We(l);break;case 4:he();break;case 31:l.memoizedState!==null&&kn(l);break;case 13:kn(l);break;case 19:U(_t);break;case 10:El(l.type);break;case 22:case 23:kn(l),Ac(),t!==null&&U(Ii);break;case 24:El(jt)}}function Ra(t,l){try{var a=l.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var d=s.next;a=d;do{if((a.tag&t)===t){s=void 0;var p=a.create,S=a.inst;s=p(),S.destroy=s}a=a.next}while(a!==d)}}catch(A){tt(l,l.return,A)}}function li(t,l,a){try{var s=l.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var p=d.next;s=p;do{if((s.tag&t)===t){var S=s.inst,A=S.destroy;if(A!==void 0){S.destroy=void 0,d=l;var O=a,G=A;try{G()}catch(Z){tt(d,O,Z)}}}s=s.next}while(s!==p)}}catch(Z){tt(l,l.return,Z)}}function ag(t){var l=t.updateQueue;if(l!==null){var a=t.stateNode;try{Zh(l,a)}catch(s){tt(t,t.return,s)}}}function og(t,l,a){a.props=Hi(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){tt(t,l,s)}}function La(t,l){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(d){tt(t,l,d)}}function cl(t,l){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(d){tt(t,l,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){tt(t,l,d)}else a.current=null}function sg(t){var l=t.type,a=t.memoizedProps,s=t.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(d){tt(t,t.return,d)}}function rf(t,l,a){try{var s=t.stateNode;ww(s,t.type,a,l),s[nt]=l}catch(d){tt(t,t.return,d)}}function ug(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ci(t.type)||t.tag===4}function af(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ug(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ci(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function of(t,l,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,l?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,l):(l=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.appendChild(t),a=a._reactRootContainer,a!=null||l.onclick!==null||(l.onclick=xl));else if(s!==4&&(s===27&&ci(t.type)&&(a=t.stateNode,l=null),t=t.child,t!==null))for(of(t,l,a),t=t.sibling;t!==null;)of(t,l,a),t=t.sibling}function os(t,l,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,l?a.insertBefore(t,l):a.appendChild(t);else if(s!==4&&(s===27&&ci(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(os(t,l,a),t=t.sibling;t!==null;)os(t,l,a),t=t.sibling}function cg(t){var l=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,d=l.attributes;d.length;)l.removeAttributeNode(d[0]);Kt(l,s,a),l[dt]=t,l[nt]=a}catch(p){tt(t,t.return,p)}}var zl=!1,Dt=!1,sf=!1,fg=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function tw(t,l){if(t=t.containerInfo,Nf=_s,t=kh(t),ec(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var d=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var S=0,A=-1,O=-1,G=0,Z=0,le=t,Y=null;t:for(;;){for(var Q;le!==a||d!==0&&le.nodeType!==3||(A=S+d),le!==p||s!==0&&le.nodeType!==3||(O=S+s),le.nodeType===3&&(S+=le.nodeValue.length),(Q=le.firstChild)!==null;)Y=le,le=Q;for(;;){if(le===t)break t;if(Y===a&&++G===d&&(A=S),Y===p&&++Z===s&&(O=S),(Q=le.nextSibling)!==null)break;le=Y,Y=le.parentNode}le=Q}a=A===-1||O===-1?null:{start:A,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(zf={focusedElem:t,selectionRange:a},_s=!1,Ht=l;Ht!==null;)if(l=Ht,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Ht=t;else for(;Ht!==null;){switch(l=Ht,p=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)d=t[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,a=l,d=p.memoizedProps,p=p.memoizedState,s=a.stateNode;try{var pe=Hi(a.type,d);t=s.getSnapshotBeforeUpdate(pe,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){tt(a,a.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,a=t.nodeType,a===9)jf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":jf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=l.sibling,t!==null){t.return=l.return,Ht=t;break}Ht=l.return}}function dg(t,l,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(t,a),s&4&&Ra(5,a);break;case 1:if(Ol(t,a),s&4)if(t=a.stateNode,l===null)try{t.componentDidMount()}catch(S){tt(a,a.return,S)}else{var d=Hi(a.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(d,l,t.__reactInternalSnapshotBeforeUpdate)}catch(S){tt(a,a.return,S)}}s&64&&ag(a),s&512&&La(a,a.return);break;case 3:if(Ol(t,a),s&64&&(t=a.updateQueue,t!==null)){if(l=null,a.child!==null)switch(a.child.tag){case 27:case 5:l=a.child.stateNode;break;case 1:l=a.child.stateNode}try{Zh(t,l)}catch(S){tt(a,a.return,S)}}break;case 27:l===null&&s&4&&cg(a);case 26:case 5:Ol(t,a),l===null&&s&4&&sg(a),s&512&&La(a,a.return);break;case 12:Ol(t,a);break;case 31:Ol(t,a),s&4&&pg(t,a);break;case 13:Ol(t,a),s&4&&gg(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=cw.bind(null,a),zw(t,a))));break;case 22:if(s=a.memoizedState!==null||zl,!s){l=l!==null&&l.memoizedState!==null||Dt,d=zl;var p=Dt;zl=s,(Dt=l)&&!p?jl(t,a,(a.subtreeFlags&8772)!==0):Ol(t,a),zl=d,Dt=p}break;case 30:break;default:Ol(t,a)}}function mg(t){var l=t.alternate;l!==null&&(t.alternate=null,mg(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Ai(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var vt=null,fn=!1;function Ml(t,l,a){for(a=a.child;a!==null;)hg(t,l,a),a=a.sibling}function hg(t,l,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ft,a)}catch{}switch(a.tag){case 26:Dt||cl(a,l),Ml(t,l,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Dt||cl(a,l);var s=vt,d=fn;ci(a.type)&&(vt=a.stateNode,fn=!1),Ml(t,l,a),qa(a.stateNode),vt=s,fn=d;break;case 5:Dt||cl(a,l);case 6:if(s=vt,d=fn,vt=null,Ml(t,l,a),vt=s,fn=d,vt!==null)if(fn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(a.stateNode)}catch(p){tt(a,l,p)}else try{vt.removeChild(a.stateNode)}catch(p){tt(a,l,p)}break;case 18:vt!==null&&(fn?(t=vt,ay(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Br(t)):ay(vt,a.stateNode));break;case 4:s=vt,d=fn,vt=a.stateNode.containerInfo,fn=!0,Ml(t,l,a),vt=s,fn=d;break;case 0:case 11:case 14:case 15:li(2,a,l),Dt||li(4,a,l),Ml(t,l,a);break;case 1:Dt||(cl(a,l),s=a.stateNode,typeof s.componentWillUnmount=="function"&&og(a,l,s)),Ml(t,l,a);break;case 21:Ml(t,l,a);break;case 22:Dt=(s=Dt)||a.memoizedState!==null,Ml(t,l,a),Dt=s;break;default:Ml(t,l,a)}}function pg(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Br(t)}catch(a){tt(l,l.return,a)}}}function gg(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Br(t)}catch(a){tt(l,l.return,a)}}function nw(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new fg),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new fg),l;default:throw Error(r(435,t.tag))}}function ss(t,l){var a=nw(t);l.forEach(function(s){if(!a.has(s)){a.add(s);var d=fw.bind(null,t,s);s.then(d,d)}})}function dn(t,l){var a=l.deletions;if(a!==null)for(var s=0;s<a.length;s++){var d=a[s],p=t,S=l,A=S;e:for(;A!==null;){switch(A.tag){case 27:if(ci(A.type)){vt=A.stateNode,fn=!1;break e}break;case 5:vt=A.stateNode,fn=!1;break e;case 3:case 4:vt=A.stateNode.containerInfo,fn=!0;break e}A=A.return}if(vt===null)throw Error(r(160));hg(p,S,d),vt=null,fn=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)yg(l,t),l=l.sibling}var nl=null;function yg(t,l){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:dn(l,t),mn(t),s&4&&(li(3,t,t.return),Ra(3,t),li(5,t,t.return));break;case 1:dn(l,t),mn(t),s&512&&(Dt||a===null||cl(a,a.return)),s&64&&zl&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var d=nl;if(dn(l,t),mn(t),s&512&&(Dt||a===null||cl(a,a.return)),s&4){var p=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){e:{s=t.type,a=t.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":p=d.getElementsByTagName("title")[0],(!p||p[$e]||p[dt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(s),d.head.insertBefore(p,d.querySelector("head > title"))),Kt(p,s,a),p[dt]=t,At(p),s=p;break e;case"link":var S=yy("link","href",d).get(s+(a.href||""));if(S){for(var A=0;A<S.length;A++)if(p=S[A],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(A,1);break t}}p=d.createElement(s),Kt(p,s,a),d.head.appendChild(p);break;case"meta":if(S=yy("meta","content",d).get(s+(a.content||""))){for(A=0;A<S.length;A++)if(p=S[A],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(A,1);break t}}p=d.createElement(s),Kt(p,s,a),d.head.appendChild(p);break;default:throw Error(r(468,s))}p[dt]=t,At(p),s=p}t.stateNode=s}else vy(d,t.type,t.stateNode);else t.stateNode=gy(d,s,t.memoizedProps);else p!==s?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,s===null?vy(d,t.type,t.stateNode):gy(d,s,t.memoizedProps)):s===null&&t.stateNode!==null&&rf(t,t.memoizedProps,a.memoizedProps)}break;case 27:dn(l,t),mn(t),s&512&&(Dt||a===null||cl(a,a.return)),a!==null&&s&4&&rf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(dn(l,t),mn(t),s&512&&(Dt||a===null||cl(a,a.return)),t.flags&32){d=t.stateNode;try{or(d,"")}catch(pe){tt(t,t.return,pe)}}s&4&&t.stateNode!=null&&(d=t.memoizedProps,rf(t,d,a!==null?a.memoizedProps:d)),s&1024&&(sf=!0);break;case 6:if(dn(l,t),mn(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(pe){tt(t,t.return,pe)}}break;case 3:if(Cs=null,d=nl,nl=ws(l.containerInfo),dn(l,t),nl=d,mn(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Br(l.containerInfo)}catch(pe){tt(t,t.return,pe)}sf&&(sf=!1,vg(t));break;case 4:s=nl,nl=ws(t.stateNode.containerInfo),dn(l,t),mn(t),nl=s;break;case 12:dn(l,t),mn(t);break;case 31:dn(l,t),mn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 13:dn(l,t),mn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(cs=pt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 22:d=t.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,G=zl,Z=Dt;if(zl=G||d,Dt=Z||O,dn(l,t),Dt=Z,zl=G,mn(t),s&8192)e:for(l=t.stateNode,l._visibility=d?l._visibility&-2:l._visibility|1,d&&(a===null||O||zl||Dt||Pi(t)),a=null,l=t;;){if(l.tag===5||l.tag===26){if(a===null){O=a=l;try{if(p=O.stateNode,d)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{A=O.stateNode;var le=O.memoizedProps.style,Y=le!=null&&le.hasOwnProperty("display")?le.display:null;A.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(pe){tt(O,O.return,pe)}}}else if(l.tag===6){if(a===null){O=l;try{O.stateNode.nodeValue=d?"":O.memoizedProps}catch(pe){tt(O,O.return,pe)}}}else if(l.tag===18){if(a===null){O=l;try{var Q=O.stateNode;d?oy(Q,!0):oy(O.stateNode,!1)}catch(pe){tt(O,O.return,pe)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;a===l&&(a=null),l=l.return}a===l&&(a=null),l.sibling.return=l.return,l=l.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,ss(t,a))));break;case 19:dn(l,t),mn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 30:break;case 21:break;default:dn(l,t),mn(t)}}function mn(t){var l=t.flags;if(l&2){try{for(var a,s=t.return;s!==null;){if(ug(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=af(t);os(t,p,d);break;case 5:var S=a.stateNode;a.flags&32&&(or(S,""),a.flags&=-33);var A=af(t);os(t,A,S);break;case 3:case 4:var O=a.stateNode.containerInfo,G=af(t);of(t,G,O);break;default:throw Error(r(161))}}catch(Z){tt(t,t.return,Z)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function vg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;vg(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Ol(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)dg(t,l.alternate,l),l=l.sibling}function Pi(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:li(4,l,l.return),Pi(l);break;case 1:cl(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&og(l,l.return,a),Pi(l);break;case 27:qa(l.stateNode);case 26:case 5:cl(l,l.return),Pi(l);break;case 22:l.memoizedState===null&&Pi(l);break;case 30:Pi(l);break;default:Pi(l)}t=t.sibling}}function jl(t,l,a){for(a=a&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var s=l.alternate,d=t,p=l,S=p.flags;switch(p.tag){case 0:case 11:case 15:jl(d,p,a),Ra(4,p);break;case 1:if(jl(d,p,a),s=p,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(G){tt(s,s.return,G)}if(s=p,d=s.updateQueue,d!==null){var A=s.stateNode;try{var O=d.shared.hiddenCallbacks;if(O!==null)for(d.shared.hiddenCallbacks=null,d=0;d<O.length;d++)Kh(O[d],A)}catch(G){tt(s,s.return,G)}}a&&S&64&&ag(p),La(p,p.return);break;case 27:cg(p);case 26:case 5:jl(d,p,a),a&&s===null&&S&4&&sg(p),La(p,p.return);break;case 12:jl(d,p,a);break;case 31:jl(d,p,a),a&&S&4&&pg(d,p);break;case 13:jl(d,p,a),a&&S&4&&gg(d,p);break;case 22:p.memoizedState===null&&jl(d,p,a),La(p,p.return);break;case 30:break;default:jl(d,p,a)}l=l.sibling}}function uf(t,l){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Sa(a))}function cf(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Sa(t))}function ll(t,l,a,s){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)bg(t,l,a,s),l=l.sibling}function bg(t,l,a,s){var d=l.flags;switch(l.tag){case 0:case 11:case 15:ll(t,l,a,s),d&2048&&Ra(9,l);break;case 1:ll(t,l,a,s);break;case 3:ll(t,l,a,s),d&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Sa(t)));break;case 12:if(d&2048){ll(t,l,a,s),t=l.stateNode;try{var p=l.memoizedProps,S=p.id,A=p.onPostCommit;typeof A=="function"&&A(S,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){tt(l,l.return,O)}}else ll(t,l,a,s);break;case 31:ll(t,l,a,s);break;case 13:ll(t,l,a,s);break;case 23:break;case 22:p=l.stateNode,S=l.alternate,l.memoizedState!==null?p._visibility&2?ll(t,l,a,s):Da(t,l):p._visibility&2?ll(t,l,a,s):(p._visibility|=2,Tr(t,l,a,s,(l.subtreeFlags&10256)!==0||!1)),d&2048&&uf(S,l);break;case 24:ll(t,l,a,s),d&2048&&cf(l.alternate,l);break;default:ll(t,l,a,s)}}function Tr(t,l,a,s,d){for(d=d&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var p=t,S=l,A=a,O=s,G=S.flags;switch(S.tag){case 0:case 11:case 15:Tr(p,S,A,O,d),Ra(8,S);break;case 23:break;case 22:var Z=S.stateNode;S.memoizedState!==null?Z._visibility&2?Tr(p,S,A,O,d):Da(p,S):(Z._visibility|=2,Tr(p,S,A,O,d)),d&&G&2048&&uf(S.alternate,S);break;case 24:Tr(p,S,A,O,d),d&&G&2048&&cf(S.alternate,S);break;default:Tr(p,S,A,O,d)}l=l.sibling}}function Da(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var a=t,s=l,d=s.flags;switch(s.tag){case 22:Da(a,s),d&2048&&uf(s.alternate,s);break;case 24:Da(a,s),d&2048&&cf(s.alternate,s);break;default:Da(a,s)}l=l.sibling}}var Ia=8192;function _r(t,l,a){if(t.subtreeFlags&Ia)for(t=t.child;t!==null;)xg(t,l,a),t=t.sibling}function xg(t,l,a){switch(t.tag){case 26:_r(t,l,a),t.flags&Ia&&t.memoizedState!==null&&Hw(a,nl,t.memoizedState,t.memoizedProps);break;case 5:_r(t,l,a);break;case 3:case 4:var s=nl;nl=ws(t.stateNode.containerInfo),_r(t,l,a),nl=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Ia,Ia=16777216,_r(t,l,a),Ia=s):_r(t,l,a));break;default:_r(t,l,a)}}function Sg(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function Ba(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var a=0;a<l.length;a++){var s=l[a];Ht=s,kg(s,t)}Sg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wg(t),t=t.sibling}function wg(t){switch(t.tag){case 0:case 11:case 15:Ba(t),t.flags&2048&&li(9,t,t.return);break;case 3:Ba(t);break;case 12:Ba(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,us(t)):Ba(t);break;default:Ba(t)}}function us(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var a=0;a<l.length;a++){var s=l[a];Ht=s,kg(s,t)}Sg(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:li(8,l,l.return),us(l);break;case 22:a=l.stateNode,a._visibility&2&&(a._visibility&=-3,us(l));break;default:us(l)}t=t.sibling}}function kg(t,l){for(;Ht!==null;){var a=Ht;switch(a.tag){case 0:case 11:case 15:li(8,a,l);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Sa(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,Ht=s;else e:for(a=t;Ht!==null;){s=Ht;var d=s.sibling,p=s.return;if(mg(s),s===a){Ht=null;break e}if(d!==null){d.return=p,Ht=d;break e}Ht=p}}}var lw={getCacheForType:function(t){var l=Qt(jt),a=l.data.get(t);return a===void 0&&(a=t(),l.data.set(t,a)),a},cacheSignal:function(){return Qt(jt).controller.signal}},iw=typeof WeakMap=="function"?WeakMap:Map,Je=0,st=null,Ue=null,Pe=0,et=0,Cn=null,ii=!1,Nr=!1,ff=!1,Rl=0,Ct=0,ri=0,qi=0,df=0,En=0,zr=0,Ua=null,hn=null,mf=!1,cs=0,Cg=0,fs=1/0,ds=null,ai=null,Bt=0,oi=null,Mr=null,Ll=0,hf=0,pf=null,Eg=null,Va=0,gf=null;function An(){return(Je&2)!==0&&Pe!==0?Pe&-Pe:D.T!==null?wf():Ae()}function Ag(){if(En===0)if((Pe&536870912)===0||Ye){var t=un;un<<=1,(un&3932160)===0&&(un=262144),En=t}else En=536870912;return t=wn.current,t!==null&&(t.flags|=32),En}function pn(t,l,a){(t===st&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(Or(t,0),si(t,Pe,En,!1)),de(t,a),((Je&2)===0||t!==st)&&(t===st&&((Je&2)===0&&(qi|=a),Ct===4&&si(t,Pe,En,!1)),fl(t))}function Tg(t,l,a){if((Je&6)!==0)throw Error(r(327));var s=!a&&(l&127)===0&&(l&t.expiredLanes)===0||Gt(t,l),d=s?ow(t,l):vf(t,l,!0),p=s;do{if(d===0){Nr&&!s&&si(t,l,0,!1);break}else{if(a=t.current.alternate,p&&!rw(a)){d=vf(t,l,!1),p=!1;continue}if(d===2){if(p=l,t.errorRecoveryDisabledLanes&p)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){l=S;e:{var A=t;d=Ua;var O=A.current.memoizedState.isDehydrated;if(O&&(Or(A,S).flags|=256),S=vf(A,S,!1),S!==2){if(ff&&!O){A.errorRecoveryDisabledLanes|=p,qi|=p,d=4;break e}p=hn,hn=d,p!==null&&(hn===null?hn=p:hn.push.apply(hn,p))}d=S}if(p=!1,d!==2)continue}}if(d===1){Or(t,0),si(t,l,0,!0);break}e:{switch(s=t,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:si(s,l,En,!ii);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(d=cs+300-pt(),10<d)){if(si(s,l,En,!ii),Jn(s,0,!0)!==0)break e;Ll=l,s.timeoutHandle=iy(_g.bind(null,s,a,hn,ds,mf,l,En,qi,zr,ii,p,"Throttled",-0,0),d);break e}_g(s,a,hn,ds,mf,l,En,qi,zr,ii,p,null,-0,0)}}break}while(!0);fl(t)}function _g(t,l,a,s,d,p,S,A,O,G,Z,le,Y,Q){if(t.timeoutHandle=-1,le=l.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xl},xg(l,p,le);var pe=(p&62914560)===p?cs-pt():(p&4194048)===p?Cg-pt():0;if(pe=Pw(le,pe),pe!==null){Ll=p,t.cancelPendingCommit=pe(Dg.bind(null,t,l,p,a,s,d,S,A,O,Z,le,null,Y,Q)),si(t,p,S,!G);return}}Dg(t,l,p,a,s,d,S,A,O)}function rw(t){for(var l=t;;){var a=l.tag;if((a===0||a===11||a===15)&&l.flags&16384&&(a=l.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var d=a[s],p=d.getSnapshot;d=d.value;try{if(!xn(p(),d))return!1}catch{return!1}}if(a=l.child,l.subtreeFlags&16384&&a!==null)a.return=l,l=a;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function si(t,l,a,s){l&=~df,l&=~qi,t.suspendedLanes|=l,t.pingedLanes&=~l,s&&(t.warmLanes|=l),s=t.expirationTimes;for(var d=l;0<d;){var p=31-Be(d),S=1<<p;s[p]=-1,d&=~S}a!==0&&ze(t,a,l)}function ms(){return(Je&6)===0?(Fa(0),!1):!0}function yf(){if(Ue!==null){if(et===0)var t=Ue.return;else t=Ue,Cl=Li=null,Oc(t),wr=null,ka=0,t=Ue;for(;t!==null;)rg(t.alternate,t),t=t.return;Ue=null}}function Or(t,l){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Ew(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Ll=0,yf(),st=t,Ue=a=wl(t.current,null),Pe=l,et=0,Cn=null,ii=!1,Nr=Gt(t,l),ff=!1,zr=En=df=qi=ri=Ct=0,hn=Ua=null,mf=!1,(l&8)!==0&&(l|=l&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=l;0<s;){var d=31-Be(s),p=1<<d;l|=t[d],s&=~p}return Rl=l,Ro(),a}function Ng(t,l){Oe=null,D.H=Ma,l===Sr||l===Ho?(l=Gh(),et=3):l===xc?(l=Gh(),et=4):et=l===Xc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Cn=l,Ue===null&&(Ct=1,ns(t,Ln(l,t.current)))}function zg(){var t=wn.current;return t===null?!0:(Pe&4194048)===Pe?Un===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?t===Un:!1}function Mg(){var t=D.H;return D.H=Ma,t===null?Ma:t}function Og(){var t=D.A;return D.A=lw,t}function hs(){Ct=4,ii||(Pe&4194048)!==Pe&&wn.current!==null||(Nr=!0),(ri&134217727)===0&&(qi&134217727)===0||st===null||si(st,Pe,En,!1)}function vf(t,l,a){var s=Je;Je|=2;var d=Mg(),p=Og();(st!==t||Pe!==l)&&(ds=null,Or(t,l)),l=!1;var S=Ct;e:do try{if(et!==0&&Ue!==null){var A=Ue,O=Cn;switch(et){case 8:yf(),S=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(l=!0);var G=et;if(et=0,Cn=null,jr(t,A,O,G),a&&Nr){S=0;break e}break;default:G=et,et=0,Cn=null,jr(t,A,O,G)}}aw(),S=Ct;break}catch(Z){Ng(t,Z)}while(!0);return l&&t.shellSuspendCounter++,Cl=Li=null,Je=s,D.H=d,D.A=p,Ue===null&&(st=null,Pe=0,Ro()),S}function aw(){for(;Ue!==null;)jg(Ue)}function ow(t,l){var a=Je;Je|=2;var s=Mg(),d=Og();st!==t||Pe!==l?(ds=null,fs=pt()+500,Or(t,l)):Nr=Gt(t,l);e:do try{if(et!==0&&Ue!==null){l=Ue;var p=Cn;t:switch(et){case 1:et=0,Cn=null,jr(t,l,p,1);break;case 2:case 9:if(Ph(p)){et=0,Cn=null,Rg(l);break}l=function(){et!==2&&et!==9||st!==t||(et=7),fl(t)},p.then(l,l);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Ph(p)?(et=0,Cn=null,Rg(l)):(et=0,Cn=null,jr(t,l,p,7));break;case 5:var S=null;switch(Ue.tag){case 26:S=Ue.memoizedState;case 5:case 27:var A=Ue;if(S?by(S):A.stateNode.complete){et=0,Cn=null;var O=A.sibling;if(O!==null)Ue=O;else{var G=A.return;G!==null?(Ue=G,ps(G)):Ue=null}break t}}et=0,Cn=null,jr(t,l,p,5);break;case 6:et=0,Cn=null,jr(t,l,p,6);break;case 8:yf(),Ct=6;break e;default:throw Error(r(462))}}sw();break}catch(Z){Ng(t,Z)}while(!0);return Cl=Li=null,D.H=s,D.A=d,Je=a,Ue!==null?0:(st=null,Pe=0,Ro(),Ct)}function sw(){for(;Ue!==null&&!Zn();)jg(Ue)}function jg(t){var l=lg(t.alternate,t,Rl);t.memoizedProps=t.pendingProps,l===null?ps(t):Ue=l}function Rg(t){var l=t,a=l.alternate;switch(l.tag){case 15:case 0:l=$p(a,l,l.pendingProps,l.type,void 0,Pe);break;case 11:l=$p(a,l,l.pendingProps,l.type.render,l.ref,Pe);break;case 5:Oc(l);default:rg(a,l),l=Ue=Oh(l,Rl),l=lg(a,l,Rl)}t.memoizedProps=t.pendingProps,l===null?ps(t):Ue=l}function jr(t,l,a,s){Cl=Li=null,Oc(l),wr=null,ka=0;var d=l.return;try{if(ZS(t,d,l,a,Pe)){Ct=1,ns(t,Ln(a,t.current)),Ue=null;return}}catch(p){if(d!==null)throw Ue=d,p;Ct=1,ns(t,Ln(a,t.current)),Ue=null;return}l.flags&32768?(Ye||s===1?t=!0:Nr||(Pe&536870912)!==0?t=!1:(ii=t=!0,(s===2||s===9||s===3||s===6)&&(s=wn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Lg(l,t)):ps(l)}function ps(t){var l=t;do{if((l.flags&32768)!==0){Lg(l,ii);return}t=l.return;var a=WS(l.alternate,l,Rl);if(a!==null){Ue=a;return}if(l=l.sibling,l!==null){Ue=l;return}Ue=l=t}while(l!==null);Ct===0&&(Ct=5)}function Lg(t,l){do{var a=ew(t.alternate,t);if(a!==null){a.flags&=32767,Ue=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!l&&(t=t.sibling,t!==null)){Ue=t;return}Ue=t=a}while(t!==null);Ct=6,Ue=null}function Dg(t,l,a,s,d,p,S,A,O){t.cancelPendingCommit=null;do gs();while(Bt!==0);if((Je&6)!==0)throw Error(r(327));if(l!==null){if(l===t.current)throw Error(r(177));if(p=l.lanes|l.childLanes,p|=rc,Ze(t,a,p,S,A,O),t===st&&(Ue=st=null,Pe=0),Mr=l,oi=t,Ll=a,hf=p,pf=d,Eg=s,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,dw(we,function(){return Fg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,d=X.p,X.p=2,S=Je,Je|=4;try{tw(t,l,a)}finally{Je=S,X.p=d,D.T=s}}Bt=1,Ig(),Bg(),Ug()}}function Ig(){if(Bt===1){Bt=0;var t=oi,l=Mr,a=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var s=X.p;X.p=2;var d=Je;Je|=4;try{yg(l,t);var p=zf,S=kh(t.containerInfo),A=p.focusedElem,O=p.selectionRange;if(S!==A&&A&&A.ownerDocument&&wh(A.ownerDocument.documentElement,A)){if(O!==null&&ec(A)){var G=O.start,Z=O.end;if(Z===void 0&&(Z=G),"selectionStart"in A)A.selectionStart=G,A.selectionEnd=Math.min(Z,A.value.length);else{var le=A.ownerDocument||document,Y=le&&le.defaultView||window;if(Y.getSelection){var Q=Y.getSelection(),pe=A.textContent.length,Ce=Math.min(O.start,pe),at=O.end===void 0?Ce:Math.min(O.end,pe);!Q.extend&&Ce>at&&(S=at,at=Ce,Ce=S);var B=Sh(A,Ce),L=Sh(A,at);if(B&&L&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==L.node||Q.focusOffset!==L.offset)){var q=le.createRange();q.setStart(B.node,B.offset),Q.removeAllRanges(),Ce>at?(Q.addRange(q),Q.extend(L.node,L.offset)):(q.setEnd(L.node,L.offset),Q.addRange(q))}}}}for(le=[],Q=A;Q=Q.parentNode;)Q.nodeType===1&&le.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<le.length;A++){var ee=le[A];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}_s=!!Nf,zf=Nf=null}finally{Je=d,X.p=s,D.T=a}}t.current=l,Bt=2}}function Bg(){if(Bt===2){Bt=0;var t=oi,l=Mr,a=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var s=X.p;X.p=2;var d=Je;Je|=4;try{dg(t,l.alternate,l)}finally{Je=d,X.p=s,D.T=a}}Bt=3}}function Ug(){if(Bt===4||Bt===3){Bt=0,$n();var t=oi,l=Mr,a=Ll,s=Eg;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Bt=5:(Bt=0,Mr=oi=null,Vg(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(ai=null),wt(a),l=l.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(ft,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=D.T,d=X.p,X.p=2,D.T=null;try{for(var p=t.onRecoverableError,S=0;S<s.length;S++){var A=s[S];p(A.value,{componentStack:A.stack})}}finally{D.T=l,X.p=d}}(Ll&3)!==0&&gs(),fl(t),d=t.pendingLanes,(a&261930)!==0&&(d&42)!==0?t===gf?Va++:(Va=0,gf=t):Va=0,Fa(0)}}function Vg(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Sa(l)))}function gs(){return Ig(),Bg(),Ug(),Fg()}function Fg(){if(Bt!==5)return!1;var t=oi,l=hf;hf=0;var a=wt(Ll),s=D.T,d=X.p;try{X.p=32>a?32:a,D.T=null,a=pf,pf=null;var p=oi,S=Ll;if(Bt=0,Mr=oi=null,Ll=0,(Je&6)!==0)throw Error(r(331));var A=Je;if(Je|=4,wg(p.current),bg(p,p.current,S,a),Je=A,Fa(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(ft,p)}catch{}return!0}finally{X.p=d,D.T=s,Vg(t,l)}}function Hg(t,l,a){l=Ln(a,l),l=Qc(t.stateNode,l,2),t=ei(t,l,2),t!==null&&(de(t,2),fl(t))}function tt(t,l,a){if(t.tag===3)Hg(t,t,a);else for(;l!==null;){if(l.tag===3){Hg(l,t,a);break}else if(l.tag===1){var s=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ai===null||!ai.has(s))){t=Ln(a,t),a=Pp(2),s=ei(l,a,2),s!==null&&(qp(a,s,l,t),de(s,2),fl(s));break}}l=l.return}}function bf(t,l,a){var s=t.pingCache;if(s===null){s=t.pingCache=new iw;var d=new Set;s.set(l,d)}else d=s.get(l),d===void 0&&(d=new Set,s.set(l,d));d.has(a)||(ff=!0,d.add(a),t=uw.bind(null,t,l,a),l.then(t,t))}function uw(t,l,a){var s=t.pingCache;s!==null&&s.delete(l),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,st===t&&(Pe&a)===a&&(Ct===4||Ct===3&&(Pe&62914560)===Pe&&300>pt()-cs?(Je&2)===0&&Or(t,0):df|=a,zr===Pe&&(zr=0)),fl(t)}function Pg(t,l){l===0&&(l=yl()),t=Oi(t,l),t!==null&&(de(t,l),fl(t))}function cw(t){var l=t.memoizedState,a=0;l!==null&&(a=l.retryLane),Pg(t,a)}function fw(t,l){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,d=t.memoizedState;d!==null&&(a=d.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(l),Pg(t,a)}function dw(t,l){return al(t,l)}var ys=null,Rr=null,xf=!1,vs=!1,Sf=!1,ui=0;function fl(t){t!==Rr&&t.next===null&&(Rr===null?ys=Rr=t:Rr=Rr.next=t),vs=!0,xf||(xf=!0,hw())}function Fa(t,l){if(!Sf&&vs){Sf=!0;do for(var a=!1,s=ys;s!==null;){if(t!==0){var d=s.pendingLanes;if(d===0)var p=0;else{var S=s.suspendedLanes,A=s.pingedLanes;p=(1<<31-Be(42|t)+1)-1,p&=d&~(S&~A),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Qg(s,p))}else p=Pe,p=Jn(s,s===st?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Gt(s,p)||(a=!0,Qg(s,p));s=s.next}while(a);Sf=!1}}function mw(){qg()}function qg(){vs=xf=!1;var t=0;ui!==0&&Cw()&&(t=ui);for(var l=pt(),a=null,s=ys;s!==null;){var d=s.next,p=Gg(s,l);p===0?(s.next=null,a===null?ys=d:a.next=d,d===null&&(Rr=a)):(a=s,(t!==0||(p&3)!==0)&&(vs=!0)),s=d}Bt!==0&&Bt!==5||Fa(t),ui!==0&&(ui=0)}function Gg(t,l){for(var a=t.suspendedLanes,s=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var S=31-Be(p),A=1<<S,O=d[S];O===-1?((A&a)===0||(A&s)!==0)&&(d[S]=Ot(A,l)):O<=l&&(t.expiredLanes|=A),p&=~A}if(l=st,a=Pe,a=Jn(t,t===l?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===l&&(et===2||et===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&zt(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Gt(t,a)){if(l=a&-a,l===t.callbackPriority)return l;switch(s!==null&&zt(s),wt(a)){case 2:case 8:a=fe;break;case 32:a=we;break;case 268435456:a=He;break;default:a=we}return s=Yg.bind(null,t),a=al(a,s),t.callbackPriority=l,t.callbackNode=a,l}return s!==null&&s!==null&&zt(s),t.callbackPriority=2,t.callbackNode=null,2}function Yg(t,l){if(Bt!==0&&Bt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(gs()&&t.callbackNode!==a)return null;var s=Pe;return s=Jn(t,t===st?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Tg(t,s,l),Gg(t,pt()),t.callbackNode!=null&&t.callbackNode===a?Yg.bind(null,t):null)}function Qg(t,l){if(gs())return null;Tg(t,l,!0)}function hw(){Aw(function(){(Je&6)!==0?al(K,mw):qg()})}function wf(){if(ui===0){var t=br;t===0&&(t=zn,zn<<=1,(zn&261888)===0&&(zn=256)),ui=t}return ui}function Xg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ao(""+t)}function Kg(t,l){var a=l.ownerDocument.createElement("input");return a.name=l.name,a.value=l.value,t.id&&a.setAttribute("form",t.id),l.parentNode.insertBefore(a,l),t=new FormData(t),a.parentNode.removeChild(a),t}function pw(t,l,a,s,d){if(l==="submit"&&a&&a.stateNode===d){var p=Xg((d[nt]||null).action),S=s.submitter;S&&(l=(l=S[nt]||null)?Xg(l.formAction):S.getAttribute("formAction"),l!==null&&(p=l,S=null));var A=new zo("action","action",null,s,d);t.push({event:A,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ui!==0){var O=S?Kg(d,S):new FormData(d);Fc(a,{pending:!0,data:O,method:d.method,action:p},null,O)}}else typeof p=="function"&&(A.preventDefault(),O=S?Kg(d,S):new FormData(d),Fc(a,{pending:!0,data:O,method:d.method,action:p},p,O))},currentTarget:d}]})}}for(var kf=0;kf<ic.length;kf++){var Cf=ic[kf],gw=Cf.toLowerCase(),yw=Cf[0].toUpperCase()+Cf.slice(1);tl(gw,"on"+yw)}tl(Ah,"onAnimationEnd"),tl(Th,"onAnimationIteration"),tl(_h,"onAnimationStart"),tl("dblclick","onDoubleClick"),tl("focusin","onFocus"),tl("focusout","onBlur"),tl(jS,"onTransitionRun"),tl(RS,"onTransitionStart"),tl(LS,"onTransitionCancel"),tl(Nh,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ha="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(" "),vw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ha));function Zg(t,l){l=(l&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],d=s.event;s=s.listeners;e:{var p=void 0;if(l)for(var S=s.length-1;0<=S;S--){var A=s[S],O=A.instance,G=A.currentTarget;if(A=A.listener,O!==p&&d.isPropagationStopped())break e;p=A,d.currentTarget=G;try{p(d)}catch(Z){jo(Z)}d.currentTarget=null,p=O}else for(S=0;S<s.length;S++){if(A=s[S],O=A.instance,G=A.currentTarget,A=A.listener,O!==p&&d.isPropagationStopped())break e;p=A,d.currentTarget=G;try{p(d)}catch(Z){jo(Z)}d.currentTarget=null,p=O}}}}function Ve(t,l){var a=l[ir];a===void 0&&(a=l[ir]=new Set);var s=t+"__bubble";a.has(s)||($g(l,t,2,!1),a.add(s))}function Ef(t,l,a){var s=0;l&&(s|=4),$g(a,t,s,l)}var bs="_reactListening"+Math.random().toString(36).slice(2);function Af(t){if(!t[bs]){t[bs]=!0,sa.forEach(function(a){a!=="selectionchange"&&(vw.has(a)||Ef(a,!1,t),Ef(a,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[bs]||(l[bs]=!0,Ef("selectionchange",!1,l))}}function $g(t,l,a,s){switch(Ay(l)){case 2:var d=Yw;break;case 8:d=Qw;break;default:d=Ff}a=d.bind(null,l,a,t),d=void 0,!Gu||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(d=!0),s?d!==void 0?t.addEventListener(l,a,{capture:!0,passive:d}):t.addEventListener(l,a,!0):d!==void 0?t.addEventListener(l,a,{passive:d}):t.addEventListener(l,a,!1)}function Tf(t,l,a,s,d){var p=s;if((l&1)===0&&(l&2)===0&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var A=s.stateNode.containerInfo;if(A===d)break;if(S===4)for(S=s.return;S!==null;){var O=S.tag;if((O===3||O===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;A!==null;){if(S=ql(A),S===null)return;if(O=S.tag,O===5||O===6||O===26||O===27){s=p=S;continue e}A=A.parentNode}}s=s.return}nh(function(){var G=p,Z=Pu(a),le=[];e:{var Y=zh.get(t);if(Y!==void 0){var Q=zo,pe=t;switch(t){case"keypress":if(_o(a)===0)break e;case"keydown":case"keyup":Q=fS;break;case"focusin":pe="focus",Q=Ku;break;case"focusout":pe="blur",Q=Ku;break;case"beforeblur":case"afterblur":Q=Ku;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=rh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Wx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=hS;break;case Ah:case Th:case _h:Q=nS;break;case Nh:Q=gS;break;case"scroll":case"scrollend":Q=$x;break;case"wheel":Q=vS;break;case"copy":case"cut":case"paste":Q=iS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=oh;break;case"toggle":case"beforetoggle":Q=xS}var Ce=(l&4)!==0,at=!Ce&&(t==="scroll"||t==="scrollend"),B=Ce?Y!==null?Y+"Capture":null:Y;Ce=[];for(var L=G,q;L!==null;){var ee=L;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||B===null||(ee=ca(L,B),ee!=null&&Ce.push(Pa(L,ee,q))),at)break;L=L.return}0<Ce.length&&(Y=new Q(Y,pe,null,a,Z),le.push({event:Y,listeners:Ce}))}}if((l&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",Y&&a!==Hu&&(pe=a.relatedTarget||a.fromElement)&&(ql(pe)||pe[vl]))break e;if((Q||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,Q?(pe=a.relatedTarget||a.toElement,Q=G,pe=pe?ql(pe):null,pe!==null&&(at=u(pe),Ce=pe.tag,pe!==at||Ce!==5&&Ce!==27&&Ce!==6)&&(pe=null)):(Q=null,pe=G),Q!==pe)){if(Ce=rh,ee="onMouseLeave",B="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=oh,ee="onPointerLeave",B="onPointerEnter",L="pointer"),at=Q==null?Y:el(Q),q=pe==null?Y:el(pe),Y=new Ce(ee,L+"leave",Q,a,Z),Y.target=at,Y.relatedTarget=q,ee=null,ql(Z)===G&&(Ce=new Ce(B,L+"enter",pe,a,Z),Ce.target=q,Ce.relatedTarget=at,ee=Ce),at=ee,Q&&pe)t:{for(Ce=bw,B=Q,L=pe,q=0,ee=B;ee;ee=Ce(ee))q++;ee=0;for(var Se=L;Se;Se=Ce(Se))ee++;for(;0<q-ee;)B=Ce(B),q--;for(;0<ee-q;)L=Ce(L),ee--;for(;q--;){if(B===L||L!==null&&B===L.alternate){Ce=B;break t}B=Ce(B),L=Ce(L)}Ce=null}else Ce=null;Q!==null&&Jg(le,Y,Q,Ce,!1),pe!==null&&at!==null&&Jg(le,at,pe,Ce,!0)}}e:{if(Y=G?el(G):window,Q=Y.nodeName&&Y.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Y.type==="file")var Xe=ph;else if(mh(Y))if(gh)Xe=zS;else{Xe=_S;var ve=TS}else Q=Y.nodeName,!Q||Q.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?G&&Fu(G.elementType)&&(Xe=ph):Xe=NS;if(Xe&&(Xe=Xe(t,G))){hh(le,Xe,a,Z);break e}ve&&ve(t,Y,G),t==="focusout"&&G&&Y.type==="number"&&G.memoizedProps.value!=null&&Vu(Y,"number",Y.value)}switch(ve=G?el(G):window,t){case"focusin":(mh(ve)||ve.contentEditable==="true")&&(fr=ve,tc=G,va=null);break;case"focusout":va=tc=fr=null;break;case"mousedown":nc=!0;break;case"contextmenu":case"mouseup":case"dragend":nc=!1,Ch(le,a,Z);break;case"selectionchange":if(OS)break;case"keydown":case"keyup":Ch(le,a,Z)}var Re;if($u)e:{switch(t){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else cr?fh(t,a)&&(qe="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(qe="onCompositionStart");qe&&(sh&&a.locale!=="ko"&&(cr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&cr&&(Re=lh()):(Ql=Z,Yu="value"in Ql?Ql.value:Ql.textContent,cr=!0)),ve=xs(G,qe),0<ve.length&&(qe=new ah(qe,t,null,a,Z),le.push({event:qe,listeners:ve}),Re?qe.data=Re:(Re=dh(a),Re!==null&&(qe.data=Re)))),(Re=wS?kS(t,a):CS(t,a))&&(qe=xs(G,"onBeforeInput"),0<qe.length&&(ve=new ah("onBeforeInput","beforeinput",null,a,Z),le.push({event:ve,listeners:qe}),ve.data=Re)),pw(le,t,G,a,Z)}Zg(le,l)})}function Pa(t,l,a){return{instance:t,listener:l,currentTarget:a}}function xs(t,l){for(var a=l+"Capture",s=[];t!==null;){var d=t,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ca(t,a),d!=null&&s.unshift(Pa(t,d,p)),d=ca(t,l),d!=null&&s.push(Pa(t,d,p))),t.tag===3)return s;t=t.return}return[]}function bw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Jg(t,l,a,s,d){for(var p=l._reactName,S=[];a!==null&&a!==s;){var A=a,O=A.alternate,G=A.stateNode;if(A=A.tag,O!==null&&O===s)break;A!==5&&A!==26&&A!==27||G===null||(O=G,d?(G=ca(a,p),G!=null&&S.unshift(Pa(a,G,O))):d||(G=ca(a,p),G!=null&&S.push(Pa(a,G,O)))),a=a.return}S.length!==0&&t.push({event:l,listeners:S})}var xw=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function Wg(t){return(typeof t=="string"?t:""+t).replace(xw,`
49
- `).replace(Sw,"")}function ey(t,l){return l=Wg(l),Wg(t)===l}function rt(t,l,a,s,d,p){switch(a){case"children":typeof s=="string"?l==="body"||l==="textarea"&&s===""||or(t,s):(typeof s=="number"||typeof s=="bigint")&&l!=="body"&&or(t,""+s);break;case"className":lt(t,"class",s);break;case"tabIndex":lt(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":lt(t,a,s);break;case"style":eh(t,s,p);break;case"data":if(l!=="object"){lt(t,"data",s);break}case"src":case"href":if(s===""&&(l!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Ao(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"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 p=="function"&&(a==="formAction"?(l!=="input"&&rt(t,l,"name",d.name,d,null),rt(t,l,"formEncType",d.formEncType,d,null),rt(t,l,"formMethod",d.formMethod,d,null),rt(t,l,"formTarget",d.formTarget,d,null)):(rt(t,l,"encType",d.encType,d,null),rt(t,l,"method",d.method,d,null),rt(t,l,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Ao(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=xl);break;case"onScroll":s!=null&&Ve("scroll",t);break;case"onScrollEnd":s!=null&&Ve("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=Ao(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":Ve("beforetoggle",t),Ve("toggle",t),je(t,"popover",s);break;case"xlinkActuate":Tt(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Tt(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Tt(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Tt(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Tt(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Tt(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Tt(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":je(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Kx.get(a)||a,je(t,a,s))}}function _f(t,l,a,s,d,p){switch(a){case"style":eh(t,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?or(t,s):(typeof s=="number"||typeof s=="bigint")&&or(t,""+s);break;case"onScroll":s!=null&&Ve("scroll",t);break;case"onScrollEnd":s!=null&&Ve("scrollend",t);break;case"onClick":s!=null&&(t.onclick=xl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ua.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),l=a.slice(2,d?a.length-7:void 0),p=t[nt]||null,p=p!=null?p[a]:null,typeof p=="function"&&t.removeEventListener(l,p,d),typeof s=="function")){typeof p!="function"&&p!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(l,s,d);break e}a in t?t[a]=s:s===!0?t.setAttribute(a,""):je(t,a,s)}}}function Kt(t,l,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",t),Ve("load",t);var s=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var S=a[p];if(S!=null)switch(p){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:rt(t,l,p,S,a,null)}}d&&rt(t,l,"srcSet",a.srcSet,a,null),s&&rt(t,l,"src",a.src,a,null);return;case"input":Ve("invalid",t);var A=p=S=d=null,O=null,G=null;for(s in a)if(a.hasOwnProperty(s)){var Z=a[s];if(Z!=null)switch(s){case"name":d=Z;break;case"type":S=Z;break;case"checked":O=Z;break;case"defaultChecked":G=Z;break;case"value":p=Z;break;case"defaultValue":A=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,l));break;default:rt(t,l,s,Z,a,null)}}Zm(t,p,A,O,G,S,d,!1);return;case"select":Ve("invalid",t),s=S=p=null;for(d in a)if(a.hasOwnProperty(d)&&(A=a[d],A!=null))switch(d){case"value":p=A;break;case"defaultValue":S=A;break;case"multiple":s=A;default:rt(t,l,d,A,a,null)}l=p,a=S,t.multiple=!!s,l!=null?ar(t,!!s,l,!1):a!=null&&ar(t,!!s,a,!0);return;case"textarea":Ve("invalid",t),p=d=s=null;for(S in a)if(a.hasOwnProperty(S)&&(A=a[S],A!=null))switch(S){case"value":s=A;break;case"defaultValue":d=A;break;case"children":p=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:rt(t,l,S,A,a,null)}Jm(t,s,d,p);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(s=a[O],s!=null))switch(O){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:rt(t,l,O,s,a,null)}return;case"dialog":Ve("beforetoggle",t),Ve("toggle",t),Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":Ve("load",t);break;case"video":case"audio":for(s=0;s<Ha.length;s++)Ve(Ha[s],t);break;case"image":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"embed":case"source":case"link":Ve("error",t),Ve("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in a)if(a.hasOwnProperty(G)&&(s=a[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:rt(t,l,G,s,a,null)}return;default:if(Fu(l)){for(Z in a)a.hasOwnProperty(Z)&&(s=a[Z],s!==void 0&&_f(t,l,Z,s,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(s=a[A],s!=null&&rt(t,l,A,s,a,null))}function ww(t,l,a,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,S=null,A=null,O=null,G=null,Z=null;for(Q in a){var le=a[Q];if(a.hasOwnProperty(Q)&&le!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":O=le;default:s.hasOwnProperty(Q)||rt(t,l,Q,null,s,le)}}for(var Y in s){var Q=s[Y];if(le=a[Y],s.hasOwnProperty(Y)&&(Q!=null||le!=null))switch(Y){case"type":p=Q;break;case"name":d=Q;break;case"checked":G=Q;break;case"defaultChecked":Z=Q;break;case"value":S=Q;break;case"defaultValue":A=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,l));break;default:Q!==le&&rt(t,l,Y,Q,s,le)}}Uu(t,S,A,O,G,Z,p,d);return;case"select":Q=S=A=Y=null;for(p in a)if(O=a[p],a.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":Q=O;default:s.hasOwnProperty(p)||rt(t,l,p,null,s,O)}for(d in s)if(p=s[d],O=a[d],s.hasOwnProperty(d)&&(p!=null||O!=null))switch(d){case"value":Y=p;break;case"defaultValue":A=p;break;case"multiple":S=p;default:p!==O&&rt(t,l,d,p,s,O)}l=A,a=S,s=Q,Y!=null?ar(t,!!a,Y,!1):!!s!=!!a&&(l!=null?ar(t,!!a,l,!0):ar(t,!!a,a?[]:"",!1));return;case"textarea":Q=Y=null;for(A in a)if(d=a[A],a.hasOwnProperty(A)&&d!=null&&!s.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:rt(t,l,A,null,s,d)}for(S in s)if(d=s[S],p=a[S],s.hasOwnProperty(S)&&(d!=null||p!=null))switch(S){case"value":Y=d;break;case"defaultValue":Q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&rt(t,l,S,d,s,p)}$m(t,Y,Q);return;case"option":for(var pe in a)if(Y=a[pe],a.hasOwnProperty(pe)&&Y!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:rt(t,l,pe,null,s,Y)}for(O in s)if(Y=s[O],Q=a[O],s.hasOwnProperty(O)&&Y!==Q&&(Y!=null||Q!=null))switch(O){case"selected":t.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:rt(t,l,O,Y,s,Q)}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 Ce in a)Y=a[Ce],a.hasOwnProperty(Ce)&&Y!=null&&!s.hasOwnProperty(Ce)&&rt(t,l,Ce,null,s,Y);for(G in s)if(Y=s[G],Q=a[G],s.hasOwnProperty(G)&&Y!==Q&&(Y!=null||Q!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,l));break;default:rt(t,l,G,Y,s,Q)}return;default:if(Fu(l)){for(var at in a)Y=a[at],a.hasOwnProperty(at)&&Y!==void 0&&!s.hasOwnProperty(at)&&_f(t,l,at,void 0,s,Y);for(Z in s)Y=s[Z],Q=a[Z],!s.hasOwnProperty(Z)||Y===Q||Y===void 0&&Q===void 0||_f(t,l,Z,Y,s,Q);return}}for(var B in a)Y=a[B],a.hasOwnProperty(B)&&Y!=null&&!s.hasOwnProperty(B)&&rt(t,l,B,null,s,Y);for(le in s)Y=s[le],Q=a[le],!s.hasOwnProperty(le)||Y===Q||Y==null&&Q==null||rt(t,l,le,Y,s,Q)}function ty(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var d=a[s],p=d.transferSize,S=d.initiatorType,A=d.duration;if(p&&A&&ty(S)){for(S=0,A=d.responseEnd,s+=1;s<a.length;s++){var O=a[s],G=O.startTime;if(G>A)break;var Z=O.transferSize,le=O.initiatorType;Z&&ty(le)&&(O=O.responseEnd,S+=Z*(O<A?1:(A-G)/(O-G)))}if(--s,l+=8*(p+S)/(d.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Nf=null,zf=null;function Ss(t){return t.nodeType===9?t:t.ownerDocument}function ny(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ly(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Mf(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Of=null;function Cw(){var t=window.event;return t&&t.type==="popstate"?t===Of?!1:(Of=t,!0):(Of=null,!1)}var iy=typeof setTimeout=="function"?setTimeout:void 0,Ew=typeof clearTimeout=="function"?clearTimeout:void 0,ry=typeof Promise=="function"?Promise:void 0,Aw=typeof queueMicrotask=="function"?queueMicrotask:typeof ry<"u"?function(t){return ry.resolve(null).then(t).catch(Tw)}:iy;function Tw(t){setTimeout(function(){throw t})}function ci(t){return t==="head"}function ay(t,l){var a=l,s=0;do{var d=a.nextSibling;if(t.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(d),Br(l);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")qa(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,qa(a);for(var p=a.firstChild;p;){var S=p.nextSibling,A=p.nodeName;p[$e]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=S}}else a==="body"&&qa(t.ownerDocument.body);a=d}while(a);Br(l)}function oy(t,l){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?l?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(l?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function jf(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var a=l;switch(l=l.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":jf(a),Ai(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function _w(t,l,a,s){for(;t.nodeType===1;){var d=a;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[$e])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Vn(t.nextSibling),t===null)break}return null}function Nw(t,l,a){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Vn(t.nextSibling),t===null))return null;return t}function sy(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Vn(t.nextSibling),t===null))return null;return t}function Rf(t){return t.data==="$?"||t.data==="$~"}function Lf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function zw(t,l){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||a.readyState!=="loading")l();else{var s=function(){l(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Vn(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Df=null;function uy(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(l===0)return Vn(t.nextSibling);l--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||l++}t=t.nextSibling}return null}function cy(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(l===0)return t;l--}else a!=="/$"&&a!=="/&"||l++}t=t.previousSibling}return null}function fy(t,l,a){switch(l=Ss(a),t){case"html":if(t=l.documentElement,!t)throw Error(r(452));return t;case"head":if(t=l.head,!t)throw Error(r(453));return t;case"body":if(t=l.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function qa(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Ai(t)}var Fn=new Map,dy=new Set;function ws(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dl=X.d;X.d={f:Mw,r:Ow,D:jw,C:Rw,L:Lw,m:Dw,X:Bw,S:Iw,M:Uw};function Mw(){var t=Dl.f(),l=ms();return t||l}function Ow(t){var l=Ti(t);l!==null&&l.tag===5&&l.type==="form"?Np(l):Dl.r(t)}var Lr=typeof document>"u"?null:document;function my(t,l,a){var s=Lr;if(s&&typeof l=="string"&&l){var d=jn(l);d='link[rel="'+t+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),dy.has(d)||(dy.add(d),t={rel:t,crossOrigin:a,href:l},s.querySelector(d)===null&&(l=s.createElement("link"),Kt(l,"link",t),At(l),s.head.appendChild(l)))}}function jw(t){Dl.D(t),my("dns-prefetch",t,null)}function Rw(t,l){Dl.C(t,l),my("preconnect",t,l)}function Lw(t,l,a){Dl.L(t,l,a);var s=Lr;if(s&&t&&l){var d='link[rel="preload"][as="'+jn(l)+'"]';l==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+jn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+jn(a.imageSizes)+'"]')):d+='[href="'+jn(t)+'"]';var p=d;switch(l){case"style":p=Dr(t);break;case"script":p=Ir(t)}Fn.has(p)||(t=g({rel:"preload",href:l==="image"&&a&&a.imageSrcSet?void 0:t,as:l},a),Fn.set(p,t),s.querySelector(d)!==null||l==="style"&&s.querySelector(Ga(p))||l==="script"&&s.querySelector(Ya(p))||(l=s.createElement("link"),Kt(l,"link",t),At(l),s.head.appendChild(l)))}}function Dw(t,l){Dl.m(t,l);var a=Lr;if(a&&t){var s=l&&typeof l.as=="string"?l.as:"script",d='link[rel="modulepreload"][as="'+jn(s)+'"][href="'+jn(t)+'"]',p=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ir(t)}if(!Fn.has(p)&&(t=g({rel:"modulepreload",href:t},l),Fn.set(p,t),a.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ya(p)))return}s=a.createElement("link"),Kt(s,"link",t),At(s),a.head.appendChild(s)}}}function Iw(t,l,a){Dl.S(t,l,a);var s=Lr;if(s&&t){var d=Gl(s).hoistableStyles,p=Dr(t);l=l||"default";var S=d.get(p);if(!S){var A={loading:0,preload:null};if(S=s.querySelector(Ga(p)))A.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":l},a),(a=Fn.get(p))&&If(t,a);var O=S=s.createElement("link");At(O),Kt(O,"link",t),O._p=new Promise(function(G,Z){O.onload=G,O.onerror=Z}),O.addEventListener("load",function(){A.loading|=1}),O.addEventListener("error",function(){A.loading|=2}),A.loading|=4,ks(S,l,s)}S={type:"stylesheet",instance:S,count:1,state:A},d.set(p,S)}}}function Bw(t,l){Dl.X(t,l);var a=Lr;if(a&&t){var s=Gl(a).hoistableScripts,d=Ir(t),p=s.get(d);p||(p=a.querySelector(Ya(d)),p||(t=g({src:t,async:!0},l),(l=Fn.get(d))&&Bf(t,l),p=a.createElement("script"),At(p),Kt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function Uw(t,l){Dl.M(t,l);var a=Lr;if(a&&t){var s=Gl(a).hoistableScripts,d=Ir(t),p=s.get(d);p||(p=a.querySelector(Ya(d)),p||(t=g({src:t,async:!0,type:"module"},l),(l=Fn.get(d))&&Bf(t,l),p=a.createElement("script"),At(p),Kt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function hy(t,l,a,s){var d=(d=re.current)?ws(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(l=Dr(a.href),a=Gl(d).hoistableStyles,s=a.get(l),s||(s={type:"style",instance:null,count:0,state:null},a.set(l,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Dr(a.href);var p=Gl(d).hoistableStyles,S=p.get(t);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,S),(p=d.querySelector(Ga(t)))&&!p._p&&(S.instance=p,S.state.loading=5),Fn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Fn.set(t,a),p||Vw(d,t,a,S.state))),l&&s===null)throw Error(r(528,""));return S}if(l&&s!==null)throw Error(r(529,""));return null;case"script":return l=a.async,a=a.src,typeof a=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ir(a),a=Gl(d).hoistableScripts,s=a.get(l),s||(s={type:"script",instance:null,count:0,state:null},a.set(l,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Dr(t){return'href="'+jn(t)+'"'}function Ga(t){return'link[rel="stylesheet"]['+t+"]"}function py(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Vw(t,l,a,s){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?s.loading=1:(l=t.createElement("link"),s.preload=l,l.addEventListener("load",function(){return s.loading|=1}),l.addEventListener("error",function(){return s.loading|=2}),Kt(l,"link",a),At(l),t.head.appendChild(l))}function Ir(t){return'[src="'+jn(t)+'"]'}function Ya(t){return"script[async]"+t}function gy(t,l,a){if(l.count++,l.instance===null)switch(l.type){case"style":var s=t.querySelector('style[data-href~="'+jn(a.href)+'"]');if(s)return l.instance=s,At(s),s;var d=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),At(s),Kt(s,"style",d),ks(s,a.precedence,t),l.instance=s;case"stylesheet":d=Dr(a.href);var p=t.querySelector(Ga(d));if(p)return l.state.loading|=4,l.instance=p,At(p),p;s=py(a),(d=Fn.get(d))&&If(s,d),p=(t.ownerDocument||t).createElement("link"),At(p);var S=p;return S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Kt(p,"link",s),l.state.loading|=4,ks(p,a.precedence,t),l.instance=p;case"script":return p=Ir(a.src),(d=t.querySelector(Ya(p)))?(l.instance=d,At(d),d):(s=a,(d=Fn.get(p))&&(s=g({},a),Bf(s,d)),t=t.ownerDocument||t,d=t.createElement("script"),At(d),Kt(d,"link",s),t.head.appendChild(d),l.instance=d);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(s=l.instance,l.state.loading|=4,ks(s,a.precedence,t));return l.instance}function ks(t,l,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,p=d,S=0;S<s.length;S++){var A=s[S];if(A.dataset.precedence===l)p=A;else if(p!==d)break}p?p.parentNode.insertBefore(t,p.nextSibling):(l=a.nodeType===9?a.head:a,l.insertBefore(t,l.firstChild))}function If(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Bf(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Cs=null;function yy(t,l,a){if(Cs===null){var s=new Map,d=Cs=new Map;d.set(a,s)}else d=Cs,s=d.get(a),s||(s=new Map,d.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),d=0;d<a.length;d++){var p=a[d];if(!(p[$e]||p[dt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(l)||"";S=t+S;var A=s.get(S);A?A.push(p):s.set(S,[p])}}return s}function vy(t,l,a){t=t.ownerDocument||t,t.head.insertBefore(a,l==="title"?t.querySelector("head > title"):null)}function Fw(t,l,a){if(a===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function by(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Hw(t,l,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Dr(s.href),p=l.querySelector(Ga(d));if(p){l=p._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Es.bind(t),l.then(t,t)),a.state.loading|=4,a.instance=p,At(p);return}p=l.ownerDocument||l,s=py(s),(d=Fn.get(d))&&If(s,d),p=p.createElement("link"),At(p);var S=p;S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Kt(p,"link",s),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,l),(l=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Es.bind(t),l.addEventListener("load",a),l.addEventListener("error",a))}}var Uf=0;function Pw(t,l){return t.stylesheets&&t.count===0&&Ts(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Ts(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+l);0<t.imgBytes&&Uf===0&&(Uf=62500*kw());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ts(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Uf?50:800)+l);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function Es(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ts(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var As=null;function Ts(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,As=new Map,l.forEach(qw,t),As=null,Es.call(t))}function qw(t,l){if(!(l.state.loading&4)){var a=As.get(t);if(a)var s=a.get(null);else{a=new Map,As.set(t,a);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var S=d[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(a.set(S.dataset.precedence,S),s=S)}s&&a.set(null,s)}d=l.instance,S=d.getAttribute("data-precedence"),p=a.get(S)||s,p===s&&a.set(null,d),a.set(S,d),this.count++,s=Es.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),p?p.parentNode.insertBefore(d,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),l.state.loading|=4}}var Qa={$$typeof:M,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Gw(t,l,a,s,d,p,S,A,O){this.tag=1,this.containerInfo=t,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=ol(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ol(0),this.hiddenUpdates=ol(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function xy(t,l,a,s,d,p,S,A,O,G,Z,le){return t=new Gw(t,l,a,S,O,G,Z,le,A),l=1,p===!0&&(l|=24),p=Sn(3,null,null,l),t.current=p,p.stateNode=t,l=yc(),l.refCount++,t.pooledCache=l,l.refCount++,p.memoizedState={element:s,isDehydrated:a,cache:l},Sc(p),t}function Sy(t){return t?(t=hr,t):hr}function wy(t,l,a,s,d,p){d=Sy(d),s.context===null?s.context=d:s.pendingContext=d,s=Wl(l),s.payload={element:a},p=p===void 0?null:p,p!==null&&(s.callback=p),a=ei(t,s,l),a!==null&&(pn(a,t,l),Ea(a,t,l))}function ky(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<l?a:l}}function Vf(t,l){ky(t,l),(t=t.alternate)&&ky(t,l)}function Cy(t){if(t.tag===13||t.tag===31){var l=Oi(t,67108864);l!==null&&pn(l,t,67108864),Vf(t,67108864)}}function Ey(t){if(t.tag===13||t.tag===31){var l=An();l=Ft(l);var a=Oi(t,l);a!==null&&pn(a,t,l),Vf(t,l)}}var _s=!0;function Yw(t,l,a,s){var d=D.T;D.T=null;var p=X.p;try{X.p=2,Ff(t,l,a,s)}finally{X.p=p,D.T=d}}function Qw(t,l,a,s){var d=D.T;D.T=null;var p=X.p;try{X.p=8,Ff(t,l,a,s)}finally{X.p=p,D.T=d}}function Ff(t,l,a,s){if(_s){var d=Hf(s);if(d===null)Tf(t,l,s,Ns,a),Ty(t,s);else if(Kw(d,t,l,a,s))s.stopPropagation();else if(Ty(t,s),l&4&&-1<Xw.indexOf(t)){for(;d!==null;){var p=Ti(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=qt(p.pendingLanes);if(S!==0){var A=p;for(A.pendingLanes|=2,A.entangledLanes|=2;S;){var O=1<<31-Be(S);A.entanglements[1]|=O,S&=~O}fl(p),(Je&6)===0&&(fs=pt()+500,Fa(0))}}break;case 31:case 13:A=Oi(p,2),A!==null&&pn(A,p,2),ms(),Vf(p,2)}if(p=Hf(s),p===null&&Tf(t,l,s,Ns,a),p===d)break;d=p}d!==null&&s.stopPropagation()}else Tf(t,l,s,null,a)}}function Hf(t){return t=Pu(t),Pf(t)}var Ns=null;function Pf(t){if(Ns=null,t=ql(t),t!==null){var l=u(t);if(l===null)t=null;else{var a=l.tag;if(a===13){if(t=c(l),t!==null)return t;t=null}else if(a===31){if(t=f(l),t!==null)return t;t=null}else if(a===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Ns=t,null}function Ay(t){switch(t){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(bn()){case K:return 2;case fe:return 8;case we:case _e:return 32;case He:return 268435456;default:return 32}default:return 32}}var qf=!1,fi=null,di=null,mi=null,Xa=new Map,Ka=new Map,hi=[],Xw="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 Ty(t,l){switch(t){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":mi=null;break;case"pointerover":case"pointerout":Xa.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ka.delete(l.pointerId)}}function Za(t,l,a,s,d,p){return t===null||t.nativeEvent!==p?(t={blockedOn:l,domEventName:a,eventSystemFlags:s,nativeEvent:p,targetContainers:[d]},l!==null&&(l=Ti(l),l!==null&&Cy(l)),t):(t.eventSystemFlags|=s,l=t.targetContainers,d!==null&&l.indexOf(d)===-1&&l.push(d),t)}function Kw(t,l,a,s,d){switch(l){case"focusin":return fi=Za(fi,t,l,a,s,d),!0;case"dragenter":return di=Za(di,t,l,a,s,d),!0;case"mouseover":return mi=Za(mi,t,l,a,s,d),!0;case"pointerover":var p=d.pointerId;return Xa.set(p,Za(Xa.get(p)||null,t,l,a,s,d)),!0;case"gotpointercapture":return p=d.pointerId,Ka.set(p,Za(Ka.get(p)||null,t,l,a,s,d)),!0}return!1}function _y(t){var l=ql(t.target);if(l!==null){var a=u(l);if(a!==null){if(l=a.tag,l===13){if(l=c(a),l!==null){t.blockedOn=l,On(t.priority,function(){Ey(a)});return}}else if(l===31){if(l=f(a),l!==null){t.blockedOn=l,On(t.priority,function(){Ey(a)});return}}else if(l===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function zs(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var a=Hf(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Hu=s,a.target.dispatchEvent(s),Hu=null}else return l=Ti(a),l!==null&&Cy(l),t.blockedOn=a,!1;l.shift()}return!0}function Ny(t,l,a){zs(t)&&a.delete(l)}function Zw(){qf=!1,fi!==null&&zs(fi)&&(fi=null),di!==null&&zs(di)&&(di=null),mi!==null&&zs(mi)&&(mi=null),Xa.forEach(Ny),Ka.forEach(Ny)}function Ms(t,l){t.blockedOn===l&&(t.blockedOn=null,qf||(qf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Zw)))}var Os=null;function zy(t){Os!==t&&(Os=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Os===t&&(Os=null);for(var l=0;l<t.length;l+=3){var a=t[l],s=t[l+1],d=t[l+2];if(typeof s!="function"){if(Pf(s||a)===null)continue;break}var p=Ti(a);p!==null&&(t.splice(l,3),l-=3,Fc(p,{pending:!0,data:d,method:a.method,action:s},s,d))}}))}function Br(t){function l(O){return Ms(O,t)}fi!==null&&Ms(fi,t),di!==null&&Ms(di,t),mi!==null&&Ms(mi,t),Xa.forEach(l),Ka.forEach(l);for(var a=0;a<hi.length;a++){var s=hi[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<hi.length&&(a=hi[0],a.blockedOn===null);)_y(a),a.blockedOn===null&&hi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var d=a[s],p=a[s+1],S=d[nt]||null;if(typeof p=="function")S||zy(a);else if(S){var A=null;if(p&&p.hasAttribute("formAction")){if(d=p,S=p[nt]||null)A=S.formAction;else if(Pf(d)!==null)continue}else A=S.action;typeof A=="function"?a[s+1]=A:(a.splice(s,3),s-=3),zy(a)}}}function My(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function l(){d!==null&&(d(),d=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),d!==null&&(d(),d=null)}}}function Gf(t){this._internalRoot=t}js.prototype.render=Gf.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(r(409));var a=l.current,s=An();wy(a,s,t,l,null,null)},js.prototype.unmount=Gf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;wy(t.current,2,null,t,null,null),ms(),l[vl]=null}};function js(t){this._internalRoot=t}js.prototype.unstable_scheduleHydration=function(t){if(t){var l=Ae();t={blockedOn:null,target:t,priority:l};for(var a=0;a<hi.length&&l!==0&&l<hi[a].priority;a++);hi.splice(a,0,t),a===0&&_y(t)}};var Oy=n.version;if(Oy!=="19.2.1")throw Error(r(527,Oy,"19.2.1"));X.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(l),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var $w={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{ft=Rs.inject($w),gt=Rs}catch{}}return Ja.createRoot=function(t,l){if(!o(t))throw Error(r(299));var a=!1,s="",d=Up,p=Vp,S=Fp;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(p=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),l=xy(t,1,!1,null,null,a,s,null,d,p,S,My),t[vl]=l.current,Af(t),new Gf(l)},Ja.hydrateRoot=function(t,l,a){if(!o(t))throw Error(r(299));var s=!1,d="",p=Up,S=Vp,A=Fp,O=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),l=xy(t,1,!0,l,a??null,s,d,O,p,S,A,My),l.context=Sy(null),a=l.current,s=An(),s=Ft(s),d=Wl(s),d.callback=null,ei(a,d,s),a=s,l.current.lanes=a,de(l,a),fl(l),t[vl]=l.current,Af(t),new js(l)},Ja.version="19.2.1",Ja}var Hy;function ok(){if(Hy)return Xf.exports;Hy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Xf.exports=ak(),Xf.exports}var sk=ok();/**
50
- * @license lucide-react v0.562.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const uk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ck=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,r)=>r?r.toUpperCase():i.toLowerCase()),Py=e=>{const n=ck(e);return n.charAt(0).toUpperCase()+n.slice(1)},Yv=(...e)=>e.filter((n,i,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===i).join(" ").trim(),fk=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
55
- * @license lucide-react v0.562.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var dk={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"};/**
60
- * @license lucide-react v0.562.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const mk=E.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...f},h)=>E.createElement("svg",{ref:h,...dk,width:n,height:n,stroke:e,strokeWidth:r?Number(i)*24/Number(n):i,className:Yv("lucide",o),...!u&&!fk(f)&&{"aria-hidden":"true"},...f},[...c.map(([m,y])=>E.createElement(m,y)),...Array.isArray(u)?u:[u]]));/**
65
- * @license lucide-react v0.562.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const Te=(e,n)=>{const i=E.forwardRef(({className:r,...o},u)=>E.createElement(mk,{ref:u,iconNode:n,className:Yv(`lucide-${uk(Py(e))}`,`lucide-${e}`,r),...o}));return i.displayName=Py(e),i};/**
70
- * @license lucide-react v0.562.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const hk=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],pk=Te("arrow-down-to-line",hk);/**
75
- * @license lucide-react v0.562.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const gk=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],yk=Te("arrow-down",gk);/**
80
- * @license lucide-react v0.562.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const vk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],bk=Te("arrow-up",vk);/**
85
- * @license lucide-react v0.562.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const xk=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],Sk=Te("asterisk",xk);/**
90
- * @license lucide-react v0.562.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const wk=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],kk=Te("check-check",wk);/**
95
- * @license lucide-react v0.562.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Ck=[["path",{d:"M20 4L9 15",key:"1qkx8z"}],["path",{d:"M21 19L3 19",key:"100sma"}],["path",{d:"M9 15L4 10",key:"9zxff7"}]],Ek=Te("check-line",Ck);/**
100
- * @license lucide-react v0.562.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const Ak=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kr=Te("check",Ak);/**
105
- * @license lucide-react v0.562.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const Tk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_k=Te("chevron-down",Tk);/**
110
- * @license lucide-react v0.562.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const Nk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zk=Te("chevron-left",Nk);/**
115
- * @license lucide-react v0.562.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Mk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Qi=Te("chevron-right",Mk);/**
120
- * @license lucide-react v0.562.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const Ok=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],jk=Te("circle-slash",Ok);/**
125
- * @license lucide-react v0.562.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const Rk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Lk=Te("circle",Rk);/**
130
- * @license lucide-react v0.562.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const Dk=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],am=Te("copy",Dk);/**
135
- * @license lucide-react v0.562.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const Ik=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Bk=Te("corner-down-left",Ik);/**
140
- * @license lucide-react v0.562.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const Uk=[["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}],["path",{d:"M9 14 4 9l5-5",key:"102s5s"}]],Vk=Te("corner-up-left",Uk);/**
145
- * @license lucide-react v0.562.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const Fk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Hk=Te("external-link",Fk);/**
150
- * @license lucide-react v0.562.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const Pk=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],qk=Te("file-archive",Pk);/**
155
- * @license lucide-react v0.562.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const Gk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],Yk=Te("file-braces",Gk);/**
160
- * @license lucide-react v0.562.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const Qk=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Xk=Te("file-code-corner",Qk);/**
165
- * @license lucide-react v0.562.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const Kk=[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],Zk=Te("file-headphone",Kk);/**
170
- * @license lucide-react v0.562.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const $k=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Qv=Te("file-image",$k);/**
175
- * @license lucide-react v0.562.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const Jk=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Wk=Te("file-pen",Jk);/**
180
- * @license lucide-react v0.562.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const eC=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],tC=Te("file-plus-corner",eC);/**
185
- * @license lucide-react v0.562.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const nC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],lC=Te("file-spreadsheet",nC);/**
190
- * @license lucide-react v0.562.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const iC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],rC=Te("file-text",iC);/**
195
- * @license lucide-react v0.562.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const aC=[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157",key:"17aeo9"}],["rect",{width:"7",height:"6",x:"3",y:"16",rx:"1",key:"s27ndx"}]],oC=Te("file-video-camera",aC);/**
200
- * @license lucide-react v0.562.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const sC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],uC=Te("file-x",sC);/**
205
- * @license lucide-react v0.562.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const cC=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Xv=Te("file",cC);/**
210
- * @license lucide-react v0.562.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const fC=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]],Ld=Te("flower",fC);/**
215
- * @license lucide-react v0.562.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const dC=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],mC=Te("link-2",dC);/**
220
- * @license lucide-react v0.562.0 - ISC
221
- *
222
- * This source code is licensed under the ISC license.
223
- * See the LICENSE file in the root directory of this source tree.
224
- */const hC=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],pC=Te("list-checks",hC);/**
225
- * @license lucide-react v0.562.0 - ISC
226
- *
227
- * This source code is licensed under the ISC license.
228
- * See the LICENSE file in the root directory of this source tree.
229
- */const gC=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],qy=Te("list-todo",gC);/**
230
- * @license lucide-react v0.562.0 - ISC
231
- *
232
- * This source code is licensed under the ISC license.
233
- * See the LICENSE file in the root directory of this source tree.
234
- */const yC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],om=Te("loader-circle",yC);/**
235
- * @license lucide-react v0.562.0 - ISC
236
- *
237
- * This source code is licensed under the ISC license.
238
- * See the LICENSE file in the root directory of this source tree.
239
- */const vC=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Gy=Te("map",vC);/**
240
- * @license lucide-react v0.562.0 - ISC
241
- *
242
- * This source code is licensed under the ISC license.
243
- * See the LICENSE file in the root directory of this source tree.
244
- */const bC=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Kv=Te("message-circle-question-mark",bC);/**
245
- * @license lucide-react v0.562.0 - ISC
246
- *
247
- * This source code is licensed under the ISC license.
248
- * See the LICENSE file in the root directory of this source tree.
249
- */const xC=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],Zv=Te("minimize",xC);/**
250
- * @license lucide-react v0.562.0 - ISC
251
- *
252
- * This source code is licensed under the ISC license.
253
- * See the LICENSE file in the root directory of this source tree.
254
- */const SC=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$v=Te("pencil",SC);/**
255
- * @license lucide-react v0.562.0 - ISC
256
- *
257
- * This source code is licensed under the ISC license.
258
- * See the LICENSE file in the root directory of this source tree.
259
- */const wC=[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],kC=Te("receipt-text",wC);/**
260
- * @license lucide-react v0.562.0 - ISC
261
- *
262
- * This source code is licensed under the ISC license.
263
- * See the LICENSE file in the root directory of this source tree.
264
- */const CC=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],EC=Te("scroll-text",CC);/**
265
- * @license lucide-react v0.562.0 - ISC
266
- *
267
- * This source code is licensed under the ISC license.
268
- * See the LICENSE file in the root directory of this source tree.
269
- */const AC=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jf=Te("search",AC);/**
270
- * @license lucide-react v0.562.0 - ISC
271
- *
272
- * This source code is licensed under the ISC license.
273
- * See the LICENSE file in the root directory of this source tree.
274
- */const TC=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],_C=Te("send",TC);/**
275
- * @license lucide-react v0.562.0 - ISC
276
- *
277
- * This source code is licensed under the ISC license.
278
- * See the LICENSE file in the root directory of this source tree.
279
- */const NC=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],zC=Te("slash",NC);/**
280
- * @license lucide-react v0.562.0 - ISC
281
- *
282
- * This source code is licensed under the ISC license.
283
- * See the LICENSE file in the root directory of this source tree.
284
- */const MC=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],OC=Te("sparkles",MC);/**
285
- * @license lucide-react v0.562.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const jC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],RC=Te("square-x",jC);/**
290
- * @license lucide-react v0.562.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */const LC=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],DC=Te("terminal",LC);/**
295
- * @license lucide-react v0.562.0 - ISC
296
- *
297
- * This source code is licensed under the ISC license.
298
- * See the LICENSE file in the root directory of this source tree.
299
- */const IC=[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]],BC=Te("toy-brick",IC);/**
300
- * @license lucide-react v0.562.0 - ISC
301
- *
302
- * This source code is licensed under the ISC license.
303
- * See the LICENSE file in the root directory of this source tree.
304
- */const UC=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],VC=Te("upload",UC);/**
305
- * @license lucide-react v0.562.0 - ISC
306
- *
307
- * This source code is licensed under the ISC license.
308
- * See the LICENSE file in the root directory of this source tree.
309
- */const FC=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],sm=Te("user-round",FC);/**
310
- * @license lucide-react v0.562.0 - ISC
311
- *
312
- * This source code is licensed under the ISC license.
313
- * See the LICENSE file in the root directory of this source tree.
314
- */const HC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ta=Te("x",HC);var Wf={exports:{}},ed={};/**
315
- * @license React
316
- * use-sync-external-store-shim.production.js
317
- *
318
- * Copyright (c) Meta Platforms, Inc. and affiliates.
319
- *
320
- * This source code is licensed under the MIT license found in the
321
- * LICENSE file in the root directory of this source tree.
322
- */var Yy;function PC(){if(Yy)return ed;Yy=1;var e=yu();function n(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var i=typeof Object.is=="function"?Object.is:n,r=e.useState,o=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(g,v){var b=v(),w=r({inst:{value:b,getSnapshot:v}}),k=w[0].inst,T=w[1];return u(function(){k.value=b,k.getSnapshot=v,h(k)&&T({inst:k})},[g,b,v]),o(function(){return h(k)&&T({inst:k}),g(function(){h(k)&&T({inst:k})})},[g]),c(b),b}function h(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!i(g,b)}catch{return!0}}function m(g,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return ed.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,ed}var Qy;function qC(){return Qy||(Qy=1,Wf.exports=PC()),Wf.exports}var Jv=qC(),vu=Gv();const GC=gu(vu);var td={};E.forwardRef(function(n,i){return E.createElement("div",{ref:i,...n})});var um=E.forwardRef(function(n,i){return E.createElement("div",{ref:i,...n})}),Hn=um;function cm(e){var n;const{props:i}=e,r=i.horizontal,o=i.contentInset,u=o??e.nativeContentInset,c=(n=e.contentInsetOverride)!=null?n:void 0;if(c){const f={bottom:0,right:0,...u,...c};return(r?f.right:f.bottom)||0}return u&&(r?u.right:u.bottom)||0}function Yn(e){var n;const{values:i,state:r}=e,o=i.get("stylePaddingTop")||0,u=r.props.stylePaddingBottom||0,c=i.get("headerSize")||0,f=i.get("footerSize")||0,h=cm(r),m=(n=r.pendingTotalSize)!=null?n:i.get("totalSize");return c+f+m+o+u+(h||0)}var YC=e=>e,bu=E.createContext(null),QC=0;function XC({children:e}){const[n]=E.useState(()=>({animatedScrollY:YC(0),columnWrapperStyle:void 0,contextNum:QC++,listeners:new Map,mapViewabilityAmountCallbacks:new Map,mapViewabilityAmountValues:new Map,mapViewabilityCallbacks:new Map,mapViewabilityConfigStates:new Map,mapViewabilityValues:new Map,positionListeners:new Map,state:void 0,values:new Map([["stylePaddingTop",0],["headerSize",0],["numContainers",0],["activeStickyIndex",-1],["totalSize",0],["scrollAdjustPending",0]]),viewRefs:new Map}));return E.createElement(bu.Provider,{value:n},e)}function Ul(){return E.useContext(bu)}function Wv(e,n){let i=[],r=[];return{get:()=>{const o=[];let u=!1;for(let c=0;c<n.length;c++){const f=xe(e,n[c]);o.push(f),f!==r[c]&&(u=!0)}return r=o,u&&(i=o),i},subscribe:o=>{const u=[];for(const c of n)u.push(Zr(e,c,o));return()=>{for(const c of u)c()}}}}function Zr(e,n,i){const{listeners:r}=e;let o=r.get(n);return o||(o=new Set,r.set(n,o)),o.add(i),()=>o.delete(i)}function xe(e,n){const{values:i}=e;return i.get(n)}function Ee(e,n,i){const{listeners:r,values:o}=e;if(o.get(n)!==i){o.set(n,i);const u=r.get(n);if(u)for(const c of u)c(i)}}function KC(e,n,i){const{positionListeners:r}=e;let o=r.get(n);return o||(o=new Set,r.set(n,o)),o.add(i),()=>o.delete(i)}function ZC(e,n,i){const{positionListeners:r}=e,o=r.get(n);if(o)for(const u of o)u(i)}function Ji(e){const n=E.useContext(bu),{subscribe:i,get:r}=E.useMemo(()=>Wv(n,e),[n,e]);return Jv.useSyncExternalStore(i,r)}function $C(e,n){const i=E.useContext(bu),{subscribe:r,get:o}=E.useMemo(()=>Wv(i,[e]),[i,e]);return Jv.useSyncExternalStore(r,()=>n(o()[0]))}var Ur=({children:e})=>E.createElement(um,{style:{alignItems:"center",flexDirection:"row",justifyContent:"space-between"}},e);E.memo(function({state:n}){const i=Ul(),[r=0,o=0,u=0,c=0,f=0,h=0]=Ji(["totalSize","scrollAdjust","debugRawScroll","debugComputedScroll","numContainers","numContainersPooled"]),m=Yn(i),[,y]=E.useReducer(g=>g+1,0);return JC(()=>{y()},100),E.createElement(um,{pointerEvents:"none",style:{backgroundColor:"#FFFFFFCC",borderRadius:4,padding:4,paddingBottom:4,paddingLeft:4,position:"absolute",right:0,top:0}},E.createElement(Ur,null,E.createElement(Hn,null,"TotalSize:"),E.createElement(Hn,null,r.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"ContentSize:"),E.createElement(Hn,null,m.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"At end:"),E.createElement(Hn,null,String(n.isAtEnd))),E.createElement(Ur,null,E.createElement(Hn,null,"ScrollAdjust:"),E.createElement(Hn,null,o.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"RawScroll: "),E.createElement(Hn,null,u.toFixed(2))),E.createElement(Ur,null,E.createElement(Hn,null,"ComputedScroll: "),E.createElement(Hn,null,c.toFixed(2))))});function JC(e,n){E.useEffect(()=>{const i=setInterval(e,n);return()=>clearInterval(i)},[n])}var WC=typeof __DEV__<"u"?__DEV__:void 0,Xy,Ky=typeof process<"u"&&typeof td=="object"&&td?(Xy="production")!=null?Xy:td.MODE:void 0,Zy=typeof Ky=="string"?Ky.toLowerCase()!=="production":void 0,$y,yn=($y=Zy??WC)!=null?$y:!1,Yr=-1e7,e2=yn&&!1,t2=yn&&!1,eb=E.forwardRef,Wi=E.memo;function fm(e){return typeof e=="function"}function xu(e){return Array.isArray(e)}var Jy=new Set;function Ws(e,n){yn&&!Jy.has(e)&&(Jy.add(e),console.warn(`[legend-list] ${n}`))}function ru(e){return Math.floor(e*8)/8}function uo(e){return e==null}function n2(e,n){return e-n}function Wy(e,n){var i,r,o;return(o=(r=(i=e[`padding${n}`])!=null?i:e.paddingVertical)!=null?r:e.padding)!=null?o:0}function e0(e,n,i){return Wy(e,i)+Wy(n,i)}function Dd(e,n){var i,r;const o=(r=(i=e.state)==null?void 0:i.containerItemKeys)==null?void 0:r.get(n);if(o!==void 0)return o;const u=xe(e,"numContainers");for(let c=0;c<u;c++)if(xe(e,`containerItemKey${c}`)===n)return c;return-1}var l2=Wi(function({id:n,horizontal:i,style:r,refView:o,...u}){const[c=Yr]=Ji([`containerPosition${n}`]),f={contain:"paint layout style"},h=xu(r)?Object.assign({},...r):r,m=i?{...f,...h,left:c}:{...f,...h,top:c},{animatedScrollY:y,index:g,onLayout:v,onLayoutChange:b,stickyHeaderConfig:w,...k}=u;return E.createElement("div",{"data-index":g,ref:o,...k,style:m})}),i2=Wi(function({id:n,horizontal:i,style:r,refView:o,index:u,animatedScrollY:c,stickyHeaderConfig:f,onLayout:h,onLayoutChange:m,children:y,...g}){const[v=Yr,b]=Ji([`containerPosition${n}`,"activeStickyIndex"]),w={contain:"paint layout style"},k=E.useMemo(()=>{var _;return(_=xu(r)?Object.assign({},...r):r)!=null?_:{}},[r]),T=E.useMemo(()=>{var _;const j={...w,...k};delete j.transform;const M=(_=f==null?void 0:f.offset)!=null?_:0,P=M??0,F=b===u;return j.position=F?"sticky":"absolute",j.zIndex=u+1e3,i?j.left=F?P:v:j.top=F?P:v,j},[k,i,v,u,b,f==null?void 0:f.offset]);return E.createElement("div",{"data-index":u,ref:o,style:T,...g},y)}),r2=l2,tb=E.createContext(null);function a2(){return E.useContext(tb)}function o2(){const e=a2();return $C("lastItemKeys",i=>{if(e){const{itemKey:r}=e;if(!uo(r))return(i==null?void 0:i.includes(r))||!1}return!1})}function s2({ItemSeparatorComponent:e,leadingItem:n}){return o2()?null:E.createElement(e,{leadingItem:n})}var nd=null;function u2(){return nd||(nd=new ResizeObserver(e=>{for(const n of e){const i=eu.get(n.target);if(i)for(const r of i)r(n)}})),nd}var eu=new WeakMap;function c2(e,n){if(typeof ResizeObserver>"u")return()=>{};if(!e)return()=>{};const i=u2();let r=eu.get(e);return r||(r=new Set,eu.set(e,r),i.observe(e)),r.add(n),()=>{r&&(r.delete(n),r.size===0&&(eu.delete(e),i.unobserve(e)))}}function dm({ref:e,onLayoutProp:n,onLayoutChange:i,webLayoutResync:r},o){return E.useLayoutEffect(()=>{var u,c;const f=e.current,m=((c=(u=f==null?void 0:f.getScrollableNode)==null?void 0:u.call(f))!=null?c:null)||f;if(!m)return;const y=(b,w)=>{b.height===0&&b.width===0||(i(b,w),n==null||n({nativeEvent:{layout:b}}))},g=m.getBoundingClientRect();y(t0(g),!0);let v=g;return c2(m,b=>{var w;const k=b.target instanceof HTMLElement?b.target:void 0,T=(w=b.contentRect)!=null?w:k==null?void 0:k.getBoundingClientRect(),_=T.width!==v.width||T.height!==v.height,j=!!(r!=null&&r());(_||j)&&(v=T,y(t0(T),!1))})},o||[]),{}}function t0(e){return e?{height:e.height,width:e.width,x:e.left,y:e.top}:{height:0,width:0,x:0,y:0}}var $r={OS:"web"};function nb(e){const n=e.mvcpAnchorLock;return n?Date.now()>n.expiresAt?(e.mvcpAnchorLock=void 0,!1):!0:!1}function co(e){return e.dataChangeNeedsScrollUpdate||nb(e)}var f2=Wi(function({id:n,recycleItems:i,horizontal:r,getRenderedItem:o,updateItemSize:u,ItemSeparatorComponent:c,stickyHeaderConfig:f}){const h=Ul(),{columnWrapperStyle:m,animatedScrollY:y}=h,g=h.state.props.positionComponentInternal,v=h.state.props.stickyPositionComponentInternal,[b=0,w=1,k,T,_=1,j,M]=Ji([`containerColumn${n}`,`containerSpan${n}`,`containerItemData${n}`,`containerItemKey${n}`,"numColumns","extraData",`containerSticky${n}`]),P=E.useRef({didLayout:!1,horizontal:r,itemKey:T,pendingShrinkToken:0,updateItemSize:u});P.current.horizontal=r,P.current.itemKey=T,P.current.updateItemSize=u;const F=E.useRef(null),[R,H]=E.useState(0),V=b>0?b:1,te=Math.min(Math.max(w||1,1),_),I=_>1?`${(V-1)/_*100}%`:0,J=_>1?`${te/_*100}%`:void 0,ae=E.useMemo(()=>{let C;if(m){const{columnGap:z,rowGap:U,gap:N}=m;r?C={paddingRight:z||N||void 0,paddingVertical:_>1?(U||N||0)/2:void 0}:C={paddingBottom:U||N||void 0,paddingHorizontal:_>1?(z||N||0)/2:void 0}}return r?{flexDirection:c?"row":void 0,height:J,left:0,position:"absolute",top:I,...C||{}}:{left:I,position:"absolute",right:_>1?null:0,top:0,width:J,...C||{}}},[r,I,J,m,_]),me=E.useMemo(()=>T!==void 0?o(T):null,[T,k,j]),{index:oe,renderedItem:ie}=me||{},D=E.useMemo(()=>(h.viewRefs.set(n,F),{containerId:n,index:oe,itemKey:T,triggerLayout:()=>{H(C=>C+1)},value:k}),[n,T,oe,k]),X=E.useCallback(C=>{const{horizontal:z,itemKey:U,updateItemSize:N,lastSize:W,pendingShrinkToken:se}=P.current;if(uo(U))return;P.current.didLayout=!0;let re=C;const ce=z?"width":"height",be=ru(C[ce]),he=W?ru(W[ce]):void 0,Ge=()=>{P.current.lastSize=re,N(U,re),P.current.didLayout=!0};if(!co(h.state)&&he!==void 0&&be+1<he){const ot=se+1;P.current.pendingShrinkToken=ot,requestAnimationFrame(()=>{var tn;if(P.current.pendingShrinkToken!==ot)return;const St=F.current,nn=(tn=St==null?void 0:St.getBoundingClientRect)==null?void 0:tn.call(St);nn&&(re={height:nn.height,width:nn.width}),Ge()});return}Ge()},[]),{onLayout:ne}=dm({onLayoutChange:X,ref:F,webLayoutResync:()=>co(h.state)},[T,R]),$=M?v||i2:g||r2;return E.createElement($,{animatedScrollY:M?y:void 0,horizontal:r,id:n,index:oe,key:i?void 0:T,onLayout:ne,refView:F,stickyHeaderConfig:f,style:ae},E.createElement(tb.Provider,{value:D},ie,me&&c&&E.createElement(s2,{ItemSeparatorComponent:c,leadingItem:me.item})))}),d2=e=>{const n=e.getAttribute("data-index");if(n===null)return[e,null];const i=Number.parseInt(n,10);return[e,Number.isNaN(i)?null:i]};function m2(e){const n=Array.from(e.children);if(n.length<=1)return n;const i=n.map(d2);i.sort((f,h)=>{const m=f[1],y=h[1];return m===null?1:y===null?-1:m-y});const r=new Map;i.forEach((f,h)=>{r.set(f[0],h)});const o=n.map(f=>r.get(f)),u=h2(o),c=new Set(u);for(let f=0;f<i.length;f++){const h=i[f][0],m=n.indexOf(h);if(!c.has(m)){let y=null;for(let g=f+1;g<i.length;g++){const v=i[g][0],b=n.indexOf(v);if(c.has(b)){y=v;break}}y?e.insertBefore(h,y):e.appendChild(h)}}}function h2(e){const n=e.length,i=[],r=new Array(n).fill(-1),o=[];for(let f=0;f<n;f++){const h=e[f];let m=0,y=i.length;for(;m<y;){const g=Math.floor((m+y)/2);e[o[g]]<h?m=g+1:y=g}m===i.length?(i.push(h),o.push(f)):(i[m]=h,o[m]=f),m>0&&(r[f]=o[m-1])}const u=[];let c=o[o.length-1];for(;c!==-1;)u.unshift(c),c=r[c];return u}function p2(e){const n=Ul(),i=E.useRef(void 0);E.useEffect(()=>{const r=Zr(n,"lastPositionUpdate",()=>{i.current!==void 0&&clearTimeout(i.current),i.current=setTimeout(()=>{const o=e.current;o&&m2(o),i.current=void 0},500)});return()=>{r(),i.current!==void 0&&clearTimeout(i.current)}},[n])}var g2=Wi(function({horizontal:n,numColumns:i,children:r}){const o=E.useRef(null),c=Ul().columnWrapperStyle,[f,h]=Ji(["otherAxisSize","totalSize"]);p2(o);const m=n?{minHeight:f,position:"relative",width:h}:{height:h,minWidth:f,position:"relative"};if(c&&i>1){const{columnGap:y,rowGap:g,gap:v}=c,b=y||v||0,w=g||v||0;n?(w&&(m.marginTop=m.marginBottom=-w/2),b&&(m.marginRight=-b)):(b&&(m.marginLeft=m.marginRight=-b),w&&(m.marginBottom=-w))}return E.createElement("div",{ref:o,style:m},r)}),y2=Wi(function({horizontal:n,recycleItems:i,ItemSeparatorComponent:r,updateItemSize:o,getRenderedItem:u,stickyHeaderConfig:c}){const[f,h]=Ji(["numContainersPooled","numColumns"]),m=[];for(let y=0;y<f;y++)m.push(E.createElement(f2,{getRenderedItem:u,horizontal:n,ItemSeparatorComponent:r,id:y,key:y,recycleItems:i,stickyHeaderConfig:c,updateItemSize:o}));return E.createElement(g2,{horizontal:n,numColumns:h},m)});function v2(e){return xu(e)?Object.assign({},...e.filter(Boolean)):e}var au={create:e=>e,flatten:e=>v2(e)};function b2(e){const n=E.useRef(e),i=E.useRef(void 0);n.current=e;const r=E.useMemo(()=>({cancel(){i.current!==void 0&&(cancelAnimationFrame(i.current),i.current=void 0)},flush(){r.cancel(),n.current()},schedule(){if(i.current!==void 0)return!1;const o=requestAnimationFrame(()=>{i.current===o&&(i.current=void 0,n.current())});return i.current=o,!0}}),[]);return E.useEffect(()=>()=>{r.cancel()},[r]),r}function x2(){return typeof document>"u"?null:document.scrollingElement||document.documentElement||document.body}function Id(){var e,n,i,r;return typeof window>"u"?{x:0,y:0}:{x:(n=(e=window.scrollX)!=null?e:window.pageXOffset)!=null?n:0,y:(r=(i=window.scrollY)!=null?i:window.pageYOffset)!=null?r:0}}function n0(e,n){var i,r;const o=e==null?void 0:e.getBoundingClientRect();return{left:((i=o==null?void 0:o.left)!=null?i:0)+n.x,top:((r=o==null?void 0:o.top)!=null?r:0)+n.y}}function lb(e){var n,i;return{height:(n=e==null?void 0:e.scrollHeight)!=null?n:0,width:(i=e==null?void 0:e.scrollWidth)!=null?i:0}}function S2(e,n,i){return lb(i?n:e)}function l0(e,n,i){var r,o,u,c,f,h;if(n&&typeof window<"u"){const m=e==null?void 0:e.getBoundingClientRect();return{height:i&&(o=(r=m==null?void 0:m.height)!=null?r:e==null?void 0:e.clientHeight)!=null?o:window.innerHeight,width:i?window.innerWidth:(c=(u=m==null?void 0:m.width)!=null?u:e==null?void 0:e.clientWidth)!=null?c:window.innerWidth}}return{height:(f=e==null?void 0:e.clientHeight)!=null?f:0,width:(h=e==null?void 0:e.clientWidth)!=null?h:0}}function i0(e,n){return Math.max(0,Math.min(e,n))}function r0(e,n){return n?e.width:e.height}function w2(e,n,i){return Math.max(0,r0(e,i)-r0(n,i))}function a0(e,n){return n&&x2()||e}function k2(e,n){return n&&typeof window<"u"?window:e}function C2(e,n,i){const r=e.getBoundingClientRect(),o=Id();return{height:n&&typeof window<"u"&&!i?window.innerHeight:r.height,width:n&&typeof window<"u"&&i?window.innerWidth:r.width,x:n?r.left+o.x:r.left,y:n?r.top+o.y:r.top}}function E2({clampedOffset:e,horizontal:n,listPos:i,scroll:r}){return{left:n?i.left+e:r.x,top:n?r.y:i.top+e}}var o0=E.forwardRef(function({children:n,style:i,contentContainerStyle:r,horizontal:o=!1,contentOffset:u,maintainVisibleContentPosition:c,onScroll:f,onMomentumScrollEnd:h,showsHorizontalScrollIndicator:m=!0,showsVerticalScrollIndicator:y=!0,refreshControl:g,useWindowScroll:v=!1,onLayout:b,...w},k){const T=Ul(),_=E.useRef(null),j=E.useRef(null),M=v,P=E.useCallback(()=>k2(_.current,M),[M]),F=E.useCallback(()=>{const ne=_.current,$=S2(ne,j.current,M),C=l0(ne,M,o);return w2($,C,o)},[o,M]),R=E.useCallback(()=>{const ne=_.current;if(M){const $=F(),C=Id(),z=n0(ne,C),U=o?C.x-z.left:C.y-z.top;return i0(U,$)}return ne?o?ne.scrollLeft:ne.scrollTop:0},[F,o,M]),H=E.useCallback((ne,$)=>{const C=_.current,z=P();if(!z||typeof z.scrollTo!="function")return;const U=F(),N=i0(ne,U),se={behavior:$?"smooth":"auto"};if(M){const re=Id(),ce=n0(C,re),{left:be,top:he}=E2({clampedOffset:N,horizontal:o,listPos:ce,scroll:re});se.left=be,se.top=he}else o?se.left=N:se.top=N;z.scrollTo(se)},[F,P,o,M]);E.useImperativeHandle(k,()=>({getBoundingClientRect:()=>{var $;return($=_.current)==null?void 0:$.getBoundingClientRect()},getContentNode:()=>j.current,getCurrentScrollOffset:R,getScrollableNode:()=>a0(_.current,M),getScrollEventTarget:()=>P(),getScrollResponder:()=>a0(_.current,M),isWindowScroll:()=>M,scrollBy:($,C)=>{const z=P();!z||typeof z.scrollBy!="function"||z.scrollBy({behavior:"auto",left:$,top:C})},scrollTo:$=>{const{x:C=0,y:z=0,animated:U=!0}=$;H(o?C:z,U)},scrollToEnd:($={})=>{const{animated:C=!0}=$,z=F();H(z,C)},scrollToOffset:$=>{const{offset:C,animated:z=!0}=$;H(C,z)}}),[R,F,P,o,M,H]);const V=E.useCallback(()=>{if(!f||!_.current)return;const ne=lb(j.current),$=l0(_.current,M,o),C=R(),z={nativeEvent:{contentOffset:{x:o?C:0,y:o?0:C},contentSize:{height:ne.height,width:ne.width},layoutMeasurement:{height:$.height,width:$.width}}};f(z)},[R,o,M,f]),te=b2(V),I=E.useCallback(ne=>{var $;if(!f)return;const C=($=T.state)==null?void 0:$.scrollingTo;C&&!C.animated?te.flush():te.schedule()},[f,te]);E.useLayoutEffect(()=>{const ne=P();if(ne)return ne.addEventListener("scroll",I,{passive:!0}),()=>{ne.removeEventListener("scroll",I),te.cancel()}},[P,I,te]),E.useEffect(()=>{const ne=()=>{u&&H(o?u.x||0:u.y||0,!1)};ne(),requestAnimationFrame(ne)},[u==null?void 0:u.x,u==null?void 0:u.y,o,H]),E.useLayoutEffect(()=>{if(!b||!_.current)return;const ne=_.current,$=()=>{b({nativeEvent:{layout:C2(ne,M,o)}})};$();const C=new ResizeObserver(()=>{$()});C.observe(ne);const z=()=>{$()};return M&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.addEventListener("resize",z),()=>{C.disconnect(),M&&typeof window<"u"&&typeof window.removeEventListener=="function"&&window.removeEventListener("resize",z)}},[M,b]);const J={...M?{}:{overflow:"auto",overflowX:o||m?"auto":"hidden",overflowY:o?y?"auto":"hidden":"auto",WebkitOverflowScrolling:"touch"},...au.flatten(i)},ae={display:o?"flex":"block",flexDirection:o?"row":void 0,minHeight:o?void 0:"100%",minWidth:o?"100%":void 0,...au.flatten(r)},{contentInset:me,scrollEventThrottle:oe,ScrollComponent:ie,useWindowScroll:D,...X}=w;return E.createElement("div",{ref:_,...X,style:J},g,E.createElement("div",{ref:j,style:ae},n))});function s0(e,n){const i=Ul();E.useLayoutEffect(()=>Zr(i,e,o=>{n(o)}),[n,i,e])}function A2(){const e=Ul(),n=E.useRef(0),i=E.useRef(void 0),r=E.useCallback(()=>{var o;const u=xe(e,"scrollAdjust"),c=xe(e,"scrollAdjustUserOffset"),f=(u||0)+(c||0),h=(o=e.state)==null?void 0:o.refScroller.current;if(h&&f!==n.current){const m=f-n.current;if(m!==0){const y=h.getContentNode(),g=h.getCurrentScrollOffset(),v=h.getScrollableNode();if(!y){h.scrollBy(0,m),n.current=f;return}const b=y.scrollHeight,w=v.clientHeight,k=g+m;if(m>0&&!e.state.adjustingFromInitialMount&&b<k+w){const T=e.state.props.stylePaddingBottom||0,_=(k+w-b)*2;y.style.paddingBottom=`${_}px`,y.offsetHeight,h.scrollBy(0,m),i.current!==void 0&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{i.current=void 0,y.style.paddingBottom=T?`${T}px`:"0"})}else h.scrollBy(0,m)}n.current=f}},[e]);return s0("scrollAdjust",r),s0("scrollAdjustUserOffset",r),null}function T2({ScrollComponent:e,...n}){const[i]=Ji(["snapToOffsets"]);return E.createElement(e,{...n,snapToOffsets:i})}var u0=({onLayoutChange:e,refView:n,children:i,...r})=>{const o=n??E.useRef(null);return dm({onLayoutChange:e,ref:o}),E.createElement("div",{...r,ref:o},i)},ld=e=>E.isValidElement(e)?e:e?E.createElement(e,null):null,_2=Wi(function({canRender:n,style:i,contentContainerStyle:r,horizontal:o,initialContentOffset:u,recycleItems:c,ItemSeparatorComponent:f,alignItemsAtEnd:h,onScroll:m,onLayout:y,ListHeaderComponent:g,ListHeaderComponentStyle:v,ListFooterComponent:b,ListFooterComponentStyle:w,ListEmptyComponent:k,getRenderedItem:T,updateItemSize:_,refScrollView:j,renderScrollComponent:M,onLayoutFooter:P,scrollAdjustHandler:F,snapToIndices:R,stickyHeaderConfig:H,stickyHeaderIndices:V,useWindowScroll:te=!1,...I}){const J=Ul(),ae=J.state.props.maintainVisibleContentPosition,me=M?E.useMemo(()=>E.forwardRef((X,ne)=>M({...X,ref:ne})),[M]):o0,oe=R?T2:me;E.useLayoutEffect(()=>{g||Ee(J,"headerSize",0),b||Ee(J,"footerSize",0)},[g,b,J]);const ie=E.useCallback(X=>{const ne=X[o?"width":"height"];Ee(J,"headerSize",ne)},[J,o]),D=E.useCallback((X,ne)=>{const $=X[o?"width":"height"];Ee(J,"footerSize",$),P==null||P(X,ne)},[J,o,P]);return E.createElement(oe,{...I,...me===o0?{useWindowScroll:te}:{},contentContainerStyle:[r,o?{height:"100%"}:{}],contentOffset:u!==void 0?o?{x:u,y:0}:{x:0,y:u}:void 0,horizontal:o,maintainVisibleContentPosition:ae.size||ae.data?{minIndexForVisible:0}:void 0,onLayout:y,onScroll:m,ref:j,ScrollComponent:R?me:void 0,style:i},E.createElement(A2,null),g&&E.createElement(u0,{onLayoutChange:ie,style:v},ld(g)),k&&ld(k),n&&!k&&E.createElement(y2,{getRenderedItem:T,horizontal:o,ItemSeparatorComponent:f,recycleItems:c,stickyHeaderConfig:H,updateItemSize:_}),b&&E.createElement(u0,{onLayoutChange:D,style:w},ld(b)),yn&&e2)});function mm(e,n){const i=e.state;return n!==void 0&&i.positions[n]||0}function N2(e){return(xe(e,"stylePaddingTop")||0)+(xe(e,"headerSize")||0)}function bt(e,n){const{data:i,keyExtractor:r}=e.props;if(!i)return"";const u=n<i.length?r?r(i[n],n):n:null;return e.idCache[n]=u,u}function ro(e,n,i){const r=e.state,o=r.totalSize;let u=r.totalSize;n===null?(u=i,r.timeoutSetPaddingTop&&(clearTimeout(r.timeoutSetPaddingTop),r.timeoutSetPaddingTop=void 0)):u+=i,o!==u&&(r.pendingTotalSize=void 0,r.totalSize=u,Ee(e,"totalSize",u))}function ib(e,n,i){const r=e.state,{sizes:o}=r,u=o.get(n),c=u!==void 0?i-u:i;c!==0&&ro(e,n,c),o.set(n,i)}function Nn(e,n,i,r,o,u){var c,f;const h=e.state,{sizesKnown:m,sizes:y,averageSizes:g,props:{estimatedItemSize:v,getEstimatedItemSize:b,getFixedItemSize:w,getItemType:k},scrollingTo:T}=h,_=m.get(n);if(_!==void 0)return _;let j;if(u){const P=y.get(n);if(P!==void 0)return P}const M=k&&(c=k(r,i))!=null?c:"";if(w&&(j=w(r,i,M),j!==void 0&&m.set(n,j)),j===void 0&&o&&_===void 0&&!T){const P=(f=g[M])==null?void 0:f.avg;P!==void 0&&(j=ru(P))}return j===void 0&&(j=y.get(n),j!==void 0)||(j===void 0&&(j=b?b(r,i,M):v),ib(e,n,j)),j}function rb(e,n){if(n===void 0||n<0)return;const i=bt(e.state,n);return Nn(e,i,n,e.state.props.data[n])}function hm(e,n,i){var r;const o=e.state,{index:u,viewOffset:c,viewPosition:f}=i;let h=n;if(c&&(h-=c),u!==void 0){const m=N2(e);m&&(h+=m)}if(f!==void 0&&u!==void 0){const m=o.props.data.length;if(m===0)return h;const y=u<0||u>=m,g=(r=o.props.estimatedItemSize)!=null?r:0,v=y?g:Nn(e,bt(o,u),u,o.props.data[u]),b=cm(o);if(h-=f*(o.scrollLength-b-v),!y&&u===o.props.data.length-1){const w=xe(e,"footerSize")||0;h+=w}}return h}function Xi(e,n,i){const r=e.state,o=Yn(e);let u=n;if(Number.isFinite(o)&&Number.isFinite(r.scrollLength)&&$r.OS!=="android"){const c=Math.max(0,o-r.scrollLength),f=i==null?void 0:i.viewOffset,h=typeof f=="number"&&f<0?-f:0,m=c+h;u=Math.min(n,m)}return u=Math.max(0,u),u}function z2(e,n,i){return{...n,nativeEvent:{...n.nativeEvent,contentOffset:e.props.horizontal?{x:i,y:0}:{x:0,y:i}}}}function M2(e,n){var i,r,o,u;const c=e.state,f=c.deferredPublicOnScrollEvent;c.deferredPublicOnScrollEvent=void 0,f&&((u=(o=c.props).onScroll)==null||u.call(o,z2(c,f,(r=(i=n??c.scrollPending)!=null?i:c.scroll)!=null?r:0)))}var Ls=1;function O2(e){return!!(e!=null&&e.didDispatchNativeScroll||e!=null&&e.didRetrySilentInitialScroll||e!=null&&e.watchdog)}function c0(e){e.initialScrollSession=void 0}function Bd(e){const{bootstrap:n,completion:i,kind:r,previousDataLength:o}=e;return r==="offset"?{completion:i,kind:r,previousDataLength:o}:{bootstrap:n,completion:i,kind:r,previousDataLength:o}}function tu(e,n=(i=>(i=(r=>(r=e.initialScrollSession)==null?void 0:r.kind)())!=null?i:"bootstrap")()){var i,r;return e.initialScrollSession?e.initialScrollSession.kind!==n&&(e.initialScrollSession=Bd({bootstrap:e.initialScrollSession.kind==="bootstrap"?e.initialScrollSession.bootstrap:void 0,completion:e.initialScrollSession.completion,kind:n,previousDataLength:e.initialScrollSession.previousDataLength})):e.initialScrollSession=Bd({completion:{},kind:n,previousDataLength:0}),(r=(i=e.initialScrollSession).completion)!=null||(i.completion={}),e.initialScrollSession.completion}var pm={didDispatchNativeScroll(e){var n,i;return!!((i=(n=e.initialScrollSession)==null?void 0:n.completion)!=null&&i.didDispatchNativeScroll)},didRetrySilentInitialScroll(e){var n,i;return!!((i=(n=e.initialScrollSession)==null?void 0:n.completion)!=null&&i.didRetrySilentInitialScroll)},markInitialScrollNativeDispatch(e){tu(e).didDispatchNativeScroll=!0},markSilentInitialScrollRetry(e){tu(e).didRetrySilentInitialScroll=!0},resetFlags(e){if(!e.initialScrollSession)return;const n=tu(e,e.initialScrollSession.kind);n.didDispatchNativeScroll=void 0,n.didRetrySilentInitialScroll=void 0}},on={clear(e){on.set(e,void 0)},didObserveProgress(e,n){const i=Math.abs(n.startScroll-n.targetOffset),r=Math.abs(e-n.targetOffset);return r<=Ls||r+Ls<i},get(e){var n,i;return(i=(n=e.initialScrollSession)==null?void 0:n.completion)==null?void 0:i.watchdog},hasNonZeroTargetOffset(e){return e!==void 0&&e>Ls},isAtZeroTargetOffset(e){return e<=Ls},set(e,n){var i,r;if(!n&&!((r=(i=e.initialScrollSession)==null?void 0:i.completion)!=null&&r.watchdog))return;const o=tu(e);o.watchdog=n?{startScroll:n.startScroll,targetOffset:n.targetOffset}:void 0}};function er(e,n={}){var i,r,o;const u=e.initialScrollSession,c=(i=n.kind)!=null?i:u==null?void 0:u.kind,f=u==null?void 0:u.completion,h=Object.hasOwn(n,"bootstrap"),m=c==="bootstrap"?h?n.bootstrap:(u==null?void 0:u.kind)==="bootstrap"?u.bootstrap:void 0:void 0;if(!c||!e.initialScroll&&!m&&!O2(f))return c0(e);const y=(o=(r=n.previousDataLength)!=null?r:u==null?void 0:u.previousDataLength)!=null?o:0;return e.initialScrollSession=Bd({bootstrap:m,completion:f,kind:c,previousDataLength:y}),e.initialScrollSession}function fo(e){var n,i;const r=e.state;if(r!=null&&r.scrollingTo){const o=r.pendingScrollResolve;r.pendingScrollResolve=void 0;const u=r.scrollingTo;if(r.scrollHistory.length=0,r.scrollingTo=void 0,r.pendingTotalSize!==void 0&&ro(e,null,r.pendingTotalSize),r.scrollAdjustHandler.commitPendingAdjust(u),u.isInitialScroll||r.initialScroll){const c=((n=r.initialScrollSession)==null?void 0:n.kind)==="offset";mo(e,{onFinished:o,preserveTarget:c&&r.props.data.length===0||!!u.isInitialScroll&&!!((i=r.initialScroll)!=null&&i.preserveForFooterLayout),recalculateItems:!0,syncObservedOffset:c,waitForCompletionFrame:!!u.waitForInitialScrollCompletionFrame});return}o==null||o()}}var j2=80,R2=1500,L2=320,D2=1;function I2(e,n){const i=e.state,{animated:r,horizontal:o,offset:u}=n,c=i.refScroller.current,f=c==null?void 0:c.getScrollableNode();if(!c||!f)return;const h=!!r,m=!!o,y=m?u:0,g=m?0:u;if(c.scrollTo({animated:h,x:y,y:g}),h){const v=c.getScrollEventTarget();B2(e,{readOffset:()=>c.getCurrentScrollOffset(),target:v,targetOffset:u})}else i.scroll=u,setTimeout(()=>{fo(e)},100)}function B2(e,n){const{readOffset:i,target:r,targetOffset:o}=n;if(!r){fo(e);return}const u="onscrollend"in r;let c,f=!1;const h=e.state.scrollingTo,m=setTimeout(()=>g("max"),R2),y=()=>{r.removeEventListener("scroll",v),u&&r.removeEventListener("scrollend",b),c&&clearTimeout(c),clearTimeout(m)},g=w=>{if(f)return;if(h!==e.state.scrollingTo){f=!0,y();return}const k=i(),T=Math.abs(k-o)<=D2;w==="scrollend"&&!T||(f=!0,y(),fo(e))},v=()=>{c&&clearTimeout(c),c=setTimeout(()=>g("idle"),j2)},b=()=>g("scrollend");r.addEventListener("scroll",v),u?r.addEventListener("scrollend",b):c=setTimeout(()=>g("idle"),L2)}function U2(e,n){var i;const{isInitialScroll:r,requestedOffset:o,targetOffset:u}=n,c=on.get(e),f=!e.didFinishInitialScroll&&(r||!!c)&&on.hasNonZeroTargetOffset(u),h=!e.didFinishInitialScroll&&!!c&&on.isAtZeroTargetOffset(o);if(f){e.hasScrolled=!1,on.set(e,{startScroll:(i=c==null?void 0:c.startScroll)!=null?i:e.scroll,targetOffset:u});return}h&&on.clear(e)}function Su(e,n){var i;const r=e.state,{noScrollingTo:o,forceScroll:u,...c}=n,{animated:f,isInitialScroll:h,offset:m,precomputedWithViewOffset:y,waitForInitialScrollCompletionFrame:g}=c,{props:{horizontal:v}}=r;r.animFrameCheckFinishedScroll&&cancelAnimationFrame(e.state.animFrameCheckFinishedScroll),r.timeoutCheckFinishedScrollFallback&&clearTimeout(e.state.timeoutCheckFinishedScrollFallback);const b=y?m:hm(e,m,c),w=!!h&&((i=r.initialScrollSession)==null?void 0:i.kind)==="offset",k=Xi(e,b,c),T=w?b:k;r.scrollHistory.length=0,o||(h&&pm.resetFlags(r),r.scrollingTo={...c,targetOffset:k,waitForInitialScrollCompletionFrame:g}),r.scrollPending=k,U2(r,{isInitialScroll:h,requestedOffset:T,targetOffset:k}),u||!h||$r.OS==="android"?I2(e,{animated:f,horizontal:v,offset:T}):r.scroll=T}function ab(e,n){return n<=0?-1:e>=n?n-1:e<0?0:e}function Ds(e,{index:n,viewOffset:i=0,animated:r=!0,forceScroll:o,isInitialScroll:u,viewPosition:c}){const f=e.state,{data:h}=f.props;n=ab(n,h.length);const m=rb(e,n),y=mm(e,n);n===h.length-1&&c===void 0&&(c=1),f.scrollForNextCalculateItemsInView=void 0,Su(e,{animated:r,forceScroll:o,index:n,isInitialScroll:u,itemSize:m,offset:y,viewOffset:i,viewPosition:c??0})}var V2=1.3,ob=(e,n,i,r,o,u,c,f,h)=>{const m=Math.abs(e),y=n||i>0&&m<=i,g=()=>{f({atThreshold:n,contentSize:u.contentSize,dataLength:u.dataLength,scrollPosition:u.scrollPosition})};return r?!n&&i>0&&m>=i*V2||!n&&i<=0&&m>0?(f(void 0),!1):(y&&(!o||o.atThreshold!==n||o.contentSize!==u.contentSize||o.dataLength!==u.dataLength)&&(h&&c(e),g()),!0):y?(c(e),g(),!0):!1};function sb(e){var n;const i=e.state;if(!i||i.initialScroll)return;const{queuedInitialLayout:r,scrollLength:o,scroll:u,maintainingScrollAtEnd:c,props:{maintainScrollAtEndThreshold:f,onEndReachedThreshold:h}}=i;if(i.initialScroll)return;const m=Yn(e);if(m>0&&r&&!c){const y=cm(i),g=m-u-o-y,v=m<o;i.isAtEnd=v||g<o*f,i.isEndReached=ob(g,v,h*o,i.isEndReached,i.endReachedSnapshot,{contentSize:m,dataLength:(n=i.props.data)==null?void 0:n.length,scrollPosition:u},b=>{var w,k;return(k=(w=i.props).onEndReached)==null?void 0:k.call(w,{distanceFromEnd:b})},b=>{i.endReachedSnapshot=b},!0)}}function F2(e){const n=e==null?void 0:e.state;if(!n||n.initialScroll||n.scrollingTo)return;const{dataChangeEpoch:i,isStartReached:r,props:{data:o,onStartReachedThreshold:u},scroll:c,scrollLength:f,startReachedSnapshot:h,startReachedSnapshotDataChangeEpoch:m,totalSize:y}=n,g=o.length,v=u*f,b=m!==i,w=v>0&&Math.abs(c)<=v,k=!!r&&w&&!!b&&!co(n);r&&v>0&&c>v&&h&&(b||h.contentSize!==y||h.dataLength!==g)&&(n.isStartReached=!1,n.startReachedSnapshot=void 0,n.startReachedSnapshotDataChangeEpoch=void 0),n.isAtStart=c<=0,!(r&&w&&b&&!k)&&(n.isStartReached=ob(c,!1,v,n.isStartReached,k?void 0:h,{contentSize:y,dataLength:g,scrollPosition:c},T=>{var _,j;return(j=(_=n.props).onStartReached)==null?void 0:j.call(_,{distanceFromStart:T})},T=>{n.startReachedSnapshot=T,n.startReachedSnapshotDataChangeEpoch=T?i:void 0},k))}function wu(e){sb(e),F2(e)}function gm(e,{didLayout:n,didInitialScroll:i}){const{state:r}=e,{loadStartTime:o,props:{onLoad:u}}=r;n&&(r.didContainersLayout=!0),i&&(r.didFinishInitialScroll=!0),!!(r.didContainersLayout&&r.didFinishInitialScroll)&&!xe(e,"readyToRender")&&(Ee(e,"readyToRender",!0),u&&u({elapsedTimeInMs:Date.now()-o}))}function f0(e,n){e.scroll=n,e.scrollPending=n,e.scrollPrev=n}function ku(e,n){const{forceScroll:i,resolvedOffset:r,target:o,waitForCompletionFrame:u}=n,c=o.index,f=c!==void 0?ab(c,e.state.props.data.length):void 0,h=rb(e,f);Su(e,{animated:!1,forceScroll:i,index:f!==void 0&&f>=0?f:void 0,isInitialScroll:!0,itemSize:h,offset:r,precomputedWithViewOffset:!0,viewOffset:o.viewOffset,viewPosition:o.viewPosition,waitForInitialScrollCompletionFrame:u})}function Jr(e,n,i){var r;e.initialScroll=n,i!=null&&i.resetDidFinish&&e.didFinishInitialScroll&&(e.didFinishInitialScroll=!1),er(e,{kind:((r=e.initialScrollSession)==null?void 0:r.kind)==="offset"?"offset":"bootstrap"})}function mo(e,n){var i,r,o;const u=e.state;if((n==null?void 0:n.resolvedOffset)!==void 0)f0(u,n.resolvedOffset);else if(n!=null&&n.syncObservedOffset&&((i=u.initialScrollSession)==null?void 0:i.kind)==="offset"){const f=(o=(r=u.refScroller.current)==null?void 0:r.getCurrentScrollOffset)==null?void 0:o.call(r);typeof f=="number"&&Number.isFinite(f)&&f0(u,f)}const c=()=>{var f,h,m,y,g,v,b;const w=((f=u.initialScrollSession)==null?void 0:f.kind)==="bootstrap",k=(y=(m=(h=n==null?void 0:n.resolvedOffset)!=null?h:u.scrollPending)!=null?m:u.scroll)!=null?y:0;on.clear(u),n!=null&&n.preserveTarget||(u.initialScroll=void 0),er(u),n!=null&&n.recalculateItems&&((g=u.props)!=null&&g.data)&&((v=u.triggerCalculateItemsInView)==null||v.call(u,{forceFullItemPositions:!0})),n!=null&&n.recalculateItems&&wu(e),gm(e,{didInitialScroll:!0}),w&&M2(e,k),(b=n==null?void 0:n.onFinished)==null||b.call(n)};if(n!=null&&n.waitForCompletionFrame){requestAnimationFrame(c);return}c()}function Bl(e,n){var i,r;if(((i=e.state.initialScrollSession)==null?void 0:i.kind)==="offset")return(r=n.contentOffset)!=null?r:0;const u=n.index!==void 0?mm(e,n.index):0,c=hm(e,u,n);return Xi(e,c,n)}function ub(e,n){const{didFinishInitialScroll:i,queuedInitialLayout:r,scrollingTo:o}=e,u=e.initialScroll,c=!!(o!=null&&o.isInitialScroll),f=!!(n!=null&&n.requiresMeasuredLayout)&&!r&&!c;if(!(!u||f||i||o&&!c))return{initialScroll:u,isInitialScrollInProgress:c,queuedInitialLayout:r,scrollingTo:o}}function H2(e,n){var i,r,o;const u=e.state,c=ub(u,{requiresMeasuredLayout:!0});if(!c)return!1;const{initialScroll:f,isInitialScrollInProgress:h,queuedInitialLayout:m}=c,y=h?c.scrollingTo:void 0,g=Bl(e,f),v=y?(i=y.targetOffset)!=null?i:y.offset:void 0,b=f.contentOffset===void 0||Math.abs(f.contentOffset-g)>1,w=v!==void 0&&Math.abs(v-g)>1,k=v!==void 0&&Math.abs(u.scroll-v)<=1&&Math.abs(u.scrollPending-v)<=1;if(!(n!=null&&n.forceScroll)&&!b&&h&&!w||n!=null&&n.forceScroll&&k)return!1;b&&((r=u.initialScrollSession)==null?void 0:r.kind)!=="offset"&&Jr(u,{...f,contentOffset:g});const T=(o=n==null?void 0:n.forceScroll)!=null?o:!!m||h&&b;return ku(e,{forceScroll:T,resolvedOffset:g,target:f}),!0}function P2(e,n){var i,r;const o=e.state,u=ub(o);if(!u)return!1;const{initialScroll:c,queuedInitialLayout:f}=u,h=(i=c.contentOffset)!=null?i:0,m=Math.abs(o.scroll-h)<=1&&Math.abs(o.scrollPending-h)<=1;if(n!=null&&n.forceScroll&&m)return!1;const y=!!o.lastLayout&&o.scrollLength>0,g=(r=n==null?void 0:n.forceScroll)!=null?r:y||!!f;return ku(e,{forceScroll:g,resolvedOffset:h,target:c}),!0}function ou(e,n){var i;return((i=e.state.initialScrollSession)==null?void 0:i.kind)==="offset"?P2(e,{forceScroll:n==null?void 0:n.forceScroll}):H2(e,{forceScroll:n==null?void 0:n.forceScroll})}function d0(e){return e==null}function cb(e){const{startBuffered:n,endBuffered:i}=e;return!d0(i)&&!d0(n)&&n>=0&&i>=0?Array.from(e.containerItemKeys.keys()).map(r=>e.indexByKey.get(r)).filter(r=>r!==void 0&&r>=n&&r<=i).sort((r,o)=>r-o):[]}function ym(e,n=cb(e)){return n.length>0&&n.every(i=>{const r=bt(e,i);return e.sizesKnown.has(r)})}var fb=1,q2=8,G2=24,Y2="LegendList bootstrap initial scroll aborted after exceeding convergence bounds.";function Qn(e){var n;return((n=e.initialScrollSession)==null?void 0:n.kind)==="bootstrap"?e.initialScrollSession.bootstrap:void 0}function bo(e){var n;return((n=e.initialScrollSession)==null?void 0:n.kind)==="offset"}function Q2(e,n){if(!e||e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function X2(e){const{dataLength:n,getSize:i,offset:r,positions:o,scrollLength:u,startIndex:c}=e,f=r+u,h=[];let m=c!==void 0?Math.max(0,Math.min(n-1,c)):0;for(;m>0;){const y=m-1,g=o[y];if(g===void 0){m=y;continue}const v=i(y);if(v===void 0){m=y;continue}if(g+v<=r)break;m=y}for(;m<n;m++){const y=o[m];if(y===void 0)continue;const g=i(m);if(g!==void 0){if(y<f&&y+g>r)h.push(m);else if(h.length>0&&y>=f)break}}return h}function K2(e){const{mountFrameCount:n,maxFrames:i=q2,maxPasses:r=G2,passCount:o}=e;return n>=i||o>=r}function db(e,n){return K2(n)?(yn&&console.warn(Y2),aE(e),!0):!1}function ho(e){var n;const i=Qn(e),r=i==null?void 0:i.frameHandle;r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),i&&(i.frameHandle=void 0),er(e,{bootstrap:void 0,kind:(n=e.initialScrollSession)==null?void 0:n.kind})}function mb(e,n){var i,r,o;const u=Qn(e);er(e,{bootstrap:{frameHandle:u==null?void 0:u.frameHandle,mountFrameCount:(i=u==null?void 0:u.mountFrameCount)!=null?i:0,passCount:0,previousResolvedOffset:void 0,scroll:n.scroll,seedContentOffset:(o=(r=n.seedContentOffset)!=null?r:u==null?void 0:u.seedContentOffset)!=null?o:n.scroll,targetIndexSeed:n.targetIndexSeed,visibleIndices:void 0},kind:"bootstrap"})}function Z2(e,n){var i,r,o;const u=Qn(e);u?(u.passCount=0,u.previousResolvedOffset=void 0,u.scroll=(i=n==null?void 0:n.scroll)!=null?i:u.scroll,u.seedContentOffset=(r=n==null?void 0:n.seedContentOffset)!=null?r:u.seedContentOffset,u.targetIndexSeed=(o=n==null?void 0:n.targetIndexSeed)!=null?o:u.targetIndexSeed,u.visibleIndices=void 0,er(e,{bootstrap:u,kind:"bootstrap"})):(n==null?void 0:n.scroll)!==void 0&&mb(e,{scroll:n.scroll,seedContentOffset:n.seedContentOffset,targetIndexSeed:n.targetIndexSeed})}function Ud(e){requestAnimationFrame(()=>{var n;Qn(e)&&((n=e.triggerCalculateItemsInView)==null||n.call(e,{forceFullItemPositions:!0}))})}function vm(e){const n=e.state,i=Qn(n);if(!i||i.frameHandle!==void 0)return;const r=()=>{const o=Qn(n);o&&(o.frameHandle=void 0,o.mountFrameCount+=1,!db(e,{mountFrameCount:o.mountFrameCount,passCount:o.passCount})&&vm(e))};i.frameHandle=requestAnimationFrame(r)}function Vd(e,n){Z2(e.state,n),vm(e),Ud(e.state)}function hb(e){const{dataLength:n,footerSize:i,preserveForFooterLayout:r,stylePaddingBottom:o}=e;return{contentOffset:void 0,index:Math.max(0,n-1),preserveForBottomPadding:!0,preserveForFooterLayout:r,viewOffset:-o-i,viewPosition:1}}function $2(e){return!!(e!=null&&e.preserveForBottomPadding)}function Ki(e){return!!(e!=null&&e.preserveForFooterLayout)}function J2(e){return!!(e&&e.viewPosition===1&&($2(e)||Ki(e)))}function W2(e){const{dataLength:n,footerSize:i,initialScrollAtEnd:r,stylePaddingBottom:o,target:u}=e,c=Ki(u);return{...u,contentOffset:void 0,index:r?Math.max(0,n-1):u.index,preserveForBottomPadding:!0,preserveForFooterLayout:c,viewOffset:-o-(c?i:0),viewPosition:1}}function eE(e,n){return e.index===n.index&&e.preserveForBottomPadding===n.preserveForBottomPadding&&e.preserveForFooterLayout===n.preserveForFooterLayout&&e.viewOffset===n.viewOffset&&e.viewPosition===n.viewPosition}function Fd(e,n){if(Ki(n)){if(e.didFinishInitialScroll&&!Qn(e)){e.initialScroll=void 0,er(e);return}Jr(e,{...n,preserveForFooterLayout:void 0})}}function pb(e,n,i=fb){const r=e.state;if(!r.didFinishInitialScroll)return!1;const o=Hd(r);return Math.abs(o-Bl(e,n))>i}function Hd(e){var n,i,r,o;const u=(i=(n=e.refScroller.current)==null?void 0:n.getCurrentScrollOffset)==null?void 0:i.call(n);return typeof u=="number"&&Number.isFinite(u)?u:(o=(r=e.scrollPending)!=null?r:e.scroll)!=null?o:0}function tE(e,n){var i,r,o;const{initialScrollAtEnd:u,target:c}=n,f=e.state,h=Bl(e,c),m=h===0&&!u&&(bo(f)?Math.abs((i=c.contentOffset)!=null?i:0)<=1:c.index===0&&((r=c.viewPosition)!=null?r:0)===0&&Math.abs((o=c.viewOffset)!=null?o:0)<=1),y=f.props.data.length===0&&c.index!==void 0;m?(ho(f),mo(e,{resolvedOffset:h})):y?(ho(f),mo(e,{preserveTarget:!0,resolvedOffset:h})):(mb(f,{scroll:h,seedContentOffset:0,targetIndexSeed:c.index}),vm(e))}function nE(e,n){const{dataLength:i,didDataChange:r,initialScrollAtEnd:o,previousDataLength:u,stylePaddingBottom:c}=n,f=e.state,h=f.initialScroll;if(bo(f)||!h)return;const m=!!(f.didFinishInitialScroll&&u===0&&i>0&&h.index!==void 0),y=Qn(f),g=i>0&&(o||J2(h));if(!(!r&&!m&&!g)){if(g){if(!m&&pb(e,h)){Fd(f,h);return}const v=o?hb({dataLength:i,footerSize:xe(e,"footerSize")||0,preserveForFooterLayout:Ki(h),stylePaddingBottom:c}):W2({dataLength:i,footerSize:xe(e,"footerSize")||0,initialScrollAtEnd:o,stylePaddingBottom:c,target:h});if(!eE(h,v)||y||m||r){Jr(f,v,{resetDidFinish:m}),Vd(e,{scroll:Bl(e,v),seedContentOffset:m&&!y?Hd(f):void 0,targetIndexSeed:v.index});return}}r&&(y||m)&&(Jr(f,h,{resetDidFinish:m}),Vd(e,{scroll:Bl(e,h),seedContentOffset:m&&!y?Hd(f):void 0,targetIndexSeed:h.index}))}}function lE(e,n){const{dataLength:i,footerSize:r,initialScrollAtEnd:o,stylePaddingBottom:u}=n,c=e.state;if(!o)return;const f=c.initialScroll;if(!(bo(c)||i===0||!f||!(Qn(c)||Ki(f))))if(pb(e,f))Fd(c,f);else{const m=hb({dataLength:i,footerSize:r,preserveForFooterLayout:Ki(f),stylePaddingBottom:u});f.index!==m.index||f.viewPosition!==m.viewPosition||f.viewOffset!==m.viewOffset?(Jr(c,m,{resetDidFinish:!!c.didFinishInitialScroll}),Vd(e,{scroll:Bl(e,m),targetIndexSeed:m.index})):Fd(c,f)}}function iE(e){var n,i;const r=e.state,o=Qn(r),u=r.initialScroll;if(!o||!u||bo(r)||(n=r.scrollingTo)!=null&&n.isInitialScroll||(o.passCount+=1,db(e,{mountFrameCount:o.mountFrameCount,passCount:o.passCount})))return;u.index!==void 0&&r.startBuffered>=0&&r.endBuffered>=0&&u.index>=r.startBuffered&&u.index<=r.endBuffered&&(o.targetIndexSeed=void 0);const c=Bl(e,u),f=cb(r),h=ym(r,f),m=Math.abs(o.scroll-c)>1,{data:y}=r.props,g=X2({dataLength:y.length,getSize:T=>{var _,j;const M=(_=r.idCache[T])!=null?_:bt(r,T);return(j=r.sizes.get(M))!=null?j:Nn(e,M,T,y[T])},offset:c,positions:r.positions,scrollLength:r.scrollLength,startIndex:(i=o.targetIndexSeed)!=null?i:r.startBuffered>=0?r.startBuffered:void 0}),v=g.length>0&&g.every(T=>{var _;const j=(_=r.idCache[T])!=null?_:bt(r,T);return r.sizesKnown.has(j)}),b=o.previousResolvedOffset,w=o.visibleIndices;if(o.previousResolvedOffset=c,o.visibleIndices=g,m){o.scroll=c,Ud(r);return}if(!h||!v)return;if(!(b!==void 0&&Math.abs(b-c)<=fb&&Q2(w,g))){Ud(r);return}ho(r),ku(e,{forceScroll:!0,resolvedOffset:c,target:u,waitForCompletionFrame:$r.OS==="web"})}function rE(e,n){const i=e.state;ho(i),mo(e,{preserveTarget:Ki(i.initialScroll),recalculateItems:!0,resolvedOffset:n})}function aE(e){var n,i,r,o;const u=e.state,c=Qn(u),f=u.initialScroll;c&&f&&!bo(u)&&u.refScroller.current?(ho(u),ku(e,{forceScroll:!0,resolvedOffset:c.scroll,target:f,waitForCompletionFrame:$r.OS==="web"})):rE(e,(o=(r=(i=(n=Qn(u))==null?void 0:n.scroll)!=null?i:u.scrollPending)!=null?r:u.scroll)!=null?o:0)}var oE=20,sE=1,uE=1,id=16;function bm(e,n){const i=e.state.scrollingTo;n!=null&&n.onlyIfAligned&&(!(i!=null&&i.isInitialScroll)||i.animated||!xm(e,i).isAtResolvedTarget)||(e.state.animFrameCheckFinishedScroll=requestAnimationFrame(()=>dE(e)))}function cE(e,n){const{clampedTargetOffset:i,scrollingTo:r}=n;return!r.isInitialScroll||e.hasScrolled||i<=sE}function fE(e,n){return!!(n!=null&&n.isInitialScroll)&&pm.didDispatchNativeScroll(e)&&!e.hasScrolled}function gb(e){var n;return(n=on.get(e))==null?void 0:n.targetOffset}function yb(e){const n=gb(e);return!e.didFinishInitialScroll&&on.hasNonZeroTargetOffset(n)}function m0(e,n){var i,r;if(!n.isInitialScroll||n.animated||!e.didContainersLayout||((i=e.initialScrollSession)==null?void 0:i.kind)==="bootstrap")return!1;const o=(r=n.targetOffset)!=null?r:n.offset;return on.hasNonZeroTargetOffset(o)&&pm.didDispatchNativeScroll(e)&&!e.hasScrolled||on.isAtZeroTargetOffset(o)||Math.abs(e.scroll-o)>1||Math.abs(e.scrollPending-o)>1?!1:!!n.waitForInitialScrollCompletionFrame||yb(e)}function h0(e){var n;const{state:i}=e;return!!((n=i.scrollingTo)!=null&&n.isInitialScroll)&&i.props.data.length>0&&Yn(e)<=i.scrollLength&&i.scrollPending<=uE}function xm(e,n){var i;const{state:r}=e,o=r.scrollPending,u=r.scrollAdjustHandler.getAdjust(),c=(i=n.targetOffset)!=null?i:Xi(e,n.offset-(n.viewOffset||0),n),f=Xi(e,o,n),h=Math.abs(o-c),m=Math.abs(h-u);return{clampedTargetOffset:c,isAtResolvedTarget:Math.abs(o-f)<1&&(h<1||!n.animated&&m<1)}}function dE(e){const n=e.state.scrollingTo;if(!n)return;const{state:i}=e;i.animFrameCheckFinishedScroll=void 0;const r=xm(e,n);r.isAtResolvedTarget&&cE(i,{clampedTargetOffset:r.clampedTargetOffset,scrollingTo:n})&&fo(e)}function mE(e,n){var i;(i=e.state.refScroller.current)==null||i.scrollTo({animated:!1,x:e.state.props.horizontal?n:0,y:e.state.props.horizontal?0:n})}function hE(e){const n=e.state,i=n.scrollingTo,r=h0(e),o=fE(n,i),u=i!==void 0?m0(n,i):!1,c=(i==null?void 0:i.isInitialScroll)&&!r&&!u||!n.didContainersLayout,f=r||u?0:o?id:c?500:100;n.timeoutCheckFinishedScrollFallback=setTimeout(()=>{let h=0;const m=g=>{n.timeoutCheckFinishedScrollFallback=setTimeout(y,g)},y=()=>{var g;n.timeoutCheckFinishedScrollFallback=void 0;const v=n.scrollingTo;if(v){h++;const b=yb(n)&&!n.hasScrolled,w=o?5:b?oE:5,k=h0(e),T=m0(n,v),_=xm(e,v),j=o&&_.isAtResolvedTarget&&h>=1;if(k||n.hasScrolled||T||j||h>w)fo(e);else if(b&&h<=w){const M=(g=gb(n))!=null?g:n.scrollPending;mE(e,M),m(o?id:100)}else m(o?id:100)}};y()},f)}function pE(e){var n;if(!e.state.initialScroll)return;const i=()=>ou(e,{forceScroll:!0});i(),((n=e.state.initialScrollSession)==null?void 0:n.kind)!=="offset"&&requestAnimationFrame(i),bm(e,{onlyIfAligned:!0})}function gE(e,n){var i,r;const{dataLength:o,hasFooterComponent:u,initialContentOffset:c,initialScrollAtEnd:f,useBootstrapInitialScroll:h}=n,m=e.state,y=m.initialScroll,g=c??0,v=h&&f&&u;if(y&&(y.contentOffset===void 0||!!y.preserveForFooterLayout!==v&&((i=m.initialScrollSession)==null?void 0:i.kind)!=="offset")&&Jr(m,{...y,contentOffset:g,preserveForFooterLayout:v}),h&&y&&((r=m.initialScrollSession)==null?void 0:r.kind)!=="offset"){tE(e,{initialScrollAtEnd:f,target:m.initialScroll});return}!g&&!(!!y&&o===0&&!(g===0&&!f))&&(y&&!f?mo(e,{resolvedOffset:g}):gm(e,{didInitialScroll:!0}))}function yE(e,n){var i,r,o;const{dataLength:u,didDataChange:c,initialScrollAtEnd:f,stylePaddingBottom:h,useBootstrapInitialScroll:m}=n,y=e.state,g=(r=(i=y.initialScrollSession)==null?void 0:i.previousDataLength)!=null?r:0;if(y.initialScrollSession&&(y.initialScrollSession.previousDataLength=u),er(y),m){nE(e,{dataLength:u,didDataChange:c,initialScrollAtEnd:f,previousDataLength:g,stylePaddingBottom:h});return}const v=g===0&&u>0&&!!y.initialScroll&&((o=e.state.initialScrollSession)==null?void 0:o.kind)==="offset"&&!!y.didFinishInitialScroll;g!==0||u===0||!y.initialScroll||!y.queuedInitialLayout||y.didFinishInitialScroll&&!v||(v&&(y.didFinishInitialScroll=!1),ou(e))}function Sm(e,n,i){const r=e.state;if(Math.abs(n)>.1){const o=()=>{r.scrollAdjustHandler.requestAdjust(n),r.adjustingFromInitialMount&&r.adjustingFromInitialMount--};r.scroll+=n,r.scrollForNextCalculateItemsInView=void 0,xe(e,"readyToRender")?o():(r.adjustingFromInitialMount=(r.adjustingFromInitialMount||0)+1,requestAnimationFrame(o))}}var rn=.1,vE=300,bE=2,xE=1;function SE(e,n,i,r){if(!n){e.mvcpAnchorLock=void 0;return}const o=e.mvcpAnchorLock;if(!o)return;const u=r>o.expiresAt,c=e.indexByKey.get(o.id)===void 0;if(u||c||!i){e.mvcpAnchorLock=void 0;return}return o}function wE(e,n){{const{anchorId:i,anchorPosition:r,dataChanged:o,now:u,positionDiff:c}=n,f=!!o||!!e.mvcpAnchorLock,h=e.props.maintainVisibleContentPosition.data;if(!f||!h||e.scrollingTo||!i||r===void 0)return;const m=e.mvcpAnchorLock,y=!o&&Math.abs(c)<=rn&&(m==null?void 0:m.id)===i?m.quietPasses+1:0;if(!o&&y>=bE){e.mvcpAnchorLock=void 0;return}e.mvcpAnchorLock={expiresAt:u+vE,id:i,position:r,quietPasses:y}}}function kE(e,n,i,r,o,u){return!1}function CE(e,n,i){if(Math.abs(n)<=rn)return 0;const o=Math.max(0,i-e.scrollLength)-e.scroll;return n<0?Math.max(n,Math.min(0,o)):n>0?Math.min(n,Math.max(0,o)):0}function EE(e,n){return e<0?-n:n}function rd(e,n,i){const r=e.state;r.pendingNativeMVCPAdjust=void 0;const o=n-i;Math.abs(o)>rn&&Sm(e,o)}function AE(e){const n=e.state,i=n.pendingNativeMVCPAdjust;if(!i||Math.abs(i.manualApplied)>rn)return;const r=Yn(e),o=CE(n,i.amount,r);if(Math.abs(o)<=rn)return;const u=i.amount-o;Math.abs(u)<=rn||(i.manualApplied=u,Sm(e,u),i.furthestProgressTowardAmount=0)}function TE(e,n){const i=e.state,r=i.pendingNativeMVCPAdjust;if(!r)return!1;const o=r.amount-r.manualApplied,u=n-(r.startScroll+r.manualApplied),c=o<0&&u>rn||o>0&&u<-rn,f=EE(o,u);if(Math.abs(o)<=rn)return i.pendingNativeMVCPAdjust=void 0,!0;if(c)return i.pendingNativeMVCPAdjust=void 0,!1;if(f+rn>=Math.abs(o))return rd(e,o,u),!0;const h=Math.max(0,Yn(e)-i.scrollLength);return Math.abs(n-h)<=xE||i.pendingMaintainScrollAtEnd&&i.isAtEnd&&f>rn?(rd(e,o,u),!0):f>r.furthestProgressTowardAmount+rn?(r.furthestProgressTowardAmount=f,!1):(r.furthestProgressTowardAmount>rn&&f<r.furthestProgressTowardAmount-rn&&(i.pendingNativeMVCPAdjust=void 0),!1)}function _E(e,n){const i=e.state,{idsInView:r,positions:o,props:u}=i,{maintainVisibleContentPosition:{data:c,size:f,shouldRestorePosition:h}}=u,m=Date.now(),y=!!n||!!i.mvcpAnchorLock,g=i.scrollingTo,v=SE(i,y,c,m);let b,w;const k=[],T=g==null?void 0:g.index,_=g==null?void 0:g.viewPosition,j=T!==void 0&&i.props.data.length>0&&T>=i.props.data.length-1&&(_??0)>0,M=n?c:f,P=i.indexByKey,F=i.scroll;if(Yn(e),M){if(v&&T===void 0?(w=v.id,b=v.position):T!==void 0?w=bt(i,T):r.length>0&&i.didContainersLayout&&!n&&(w=r.find(R=>P.get(R)!==void 0)),n&&r.length>0&&i.didContainersLayout)for(let R=0;R<r.length;R++){const H=r[R],V=P.get(H);if(V!==void 0){const te=o[V];te!==void 0&&k.push({id:H,position:te})}}if(w!==void 0&&b===void 0){const R=P.get(w);R!==void 0&&(b=o[R])}return()=>{let R=0,H=v==null?void 0:v.id,V,te=!1;const I=i.props.data;if(n&&c&&T===void 0&&w!==void 0&&(v==null?void 0:v.id)===w&&h!==void 0&&w!==void 0){const me=P.get(w);if(me!==void 0){const oe=I[me];te=oe===void 0||!h(oe,me,I),te&&(v==null?void 0:v.id)===w&&(i.mvcpAnchorLock=void 0)}}if(n&&c&&T===void 0&&(()=>{if(w===void 0||te)return!0;const me=P.get(w);return me===void 0||o[me]===void 0})())for(let me=0;me<k.length;me++){const{id:oe,position:ie}=k[me],D=P.get(oe);if(D!==void 0&&h){const ne=I[D];if(ne===void 0||!h(ne,D,I))continue}const X=D!==void 0?o[D]:void 0;if(X!==void 0){R=X-ie,H=oe,V=X;break}}if(!te&&w!==void 0&&b!==void 0){const me=P.get(w),oe=me!==void 0?o[me]:void 0;if(oe!==void 0){const ie=Yn(e);let D=oe-b;D!==0&&j&&i.scroll+i.scrollLength>ie&&(D>0?D=Math.max(0,ie-i.scroll-i.scrollLength):D=0),R=D,H=w,V=oe}}if(_&&_>0){const me=Nn(e,w,T,i.props.data[T]),oe=g==null?void 0:g.itemSize;if(me!==void 0&&oe!==void 0&&me!==oe){const ie=me-oe;ie!==0&&(R+=ie*_,g.itemSize=me)}}if(wE(i,{anchorId:H,anchorPosition:V,dataChanged:n,now:m,positionDiff:R}),kE()){i.pendingNativeMVCPAdjust={amount:R,furthestProgressTowardAmount:0,manualApplied:0,startScroll:F},AE(e);return}Math.abs(R)>rn&&Sm(e,R)}}}function NE(e,n,i){var r;const o=e.state,u=xe(e,"numColumns");let c=n;o.columns[n]!==1&&(c=p0(o,u,n));let h=0;const m=o.columns[c];if(c>0){const y=c-1,g=(r=o.positions[y])!=null?r:0,v=p0(o,u,y),b=zE(e,v,y,i);h=g+b}return{column:m,currentRowTop:h,startIndex:c}}function p0(e,n,i){if(n<=1)return Math.max(0,i);let r=Math.max(0,i);for(;r>0&&e.columns[r]!==1;)r--;return r}function zE(e,n,i,r){const o=e.state;if(i<n)return 0;const{data:u}=o.props;if(!u)return 0;let c=0;for(let f=n;f<=i;f++){if(f<0||f>=u.length)continue;const h=o.idCache[f],m=Nn(e,h,f,u[f],r);m>c&&(c=m)}return c}function ME(e){var n,i;const r=e.state,{positions:o,props:{data:u}}=r,c=(n=xe(e,"numColumns"))!=null?n:1;if(u.length===0)ro(e,null,0);else{const f=u.length-1,h=bt(r,f),m=o[f];if(h!==void 0&&m!==void 0)if(c>1){let y=f;for(;y>0;){const v=r.columns[y];if(v===1||v===void 0)break;y-=1}let g=0;for(let v=y;v<=f;v++){const b=(i=r.idCache[v])!=null?i:bt(r,v),w=Nn(e,b,v,u[v]);w>g&&(g=w)}ro(e,null,m+g)}else{const y=Nn(e,h,f,u[f]);if(y!==void 0){const g=m+y;ro(e,null,g)}}}}var wm=e=>{const{scrollHistory:n}=e,i=n.length-1;if(i<1)return 0;const r=n[i],o=Date.now();let u=0;for(let m=i;m>0;m--){const y=n[m].scroll-n[m-1].scroll;if(y!==0){u=Math.sign(y);break}}if(u===0)return 0;let c=r;for(let m=i-1;m>=0;m--){const y=n[m],v=n[m+1].scroll-y.scroll,b=Math.sign(v);if(b!==0&&b!==u||o-y.time>1e3)break;c=y}const f=r.scroll-c.scroll,h=r.time-c.time;return h>0?f/h:0};function vb(e){const n=e.state,{props:{snapToIndices:i}}=n,r=Array(i.length);for(let o=0;o<i.length;o++){const u=i[o];bt(n,u),r[o]=n.positions[u]}Ee(e,"snapToOffsets",r)}function bb(e,n,{startIndex:i,scrollBottomBuffered:r,forceFullUpdate:o=!1,doMVCP:u}={doMVCP:!1,forceFullUpdate:!1,scrollBottomBuffered:-1,startIndex:0}){var c,f,h,m,y;const g=e.state,v=e.positionListeners.size>0,{columns:b,columnSpans:w,indexByKey:k,positions:T,idCache:_,sizesKnown:j,props:{data:M,getEstimatedItemSize:P,overrideItemLayout:F,snapToIndices:R},scrollingTo:H}=g,V=M.length,te=(c=xe(e,"numColumns"))!=null?c:1,I=te>1,J=yn?new Map:void 0,ae=xe(e,"extraData"),me=F?{span:1}:void 0,oe=g.lastScrollDelta,ie=wm(g),D=!o&&!n&&(Math.abs(ie)>0||g.scrollLength>0&&oe>g.scrollLength),X=r+1e3,ne=!P,$=!u||n||g.scrollAdjustHandler.getAdjust()!==0||((f=xe(e,"scrollAdjustPending"))!=null?f:0)!==0;let C=0,z=1,U=0;if(n&&(w.length=0),I||(b.length&&(b.length=0),w.length&&(w.length=0)),i>0){if(I){const{startIndex:ce,currentRowTop:be}=NE(e,i,ne);i=ce,C=be}else if(i<V){const ce=i-1,be=bt(g,ce),he=(h=T[ce])!=null?h:0,Ge=(m=j.get(be))!=null?m:Nn(e,be,ce,M[ce],ne,$);C=he+Ge}}const N=n||k.size===0,W=I&&!!F&&!!me;let se=!1,re;for(let ce=i;ce<V;ce++){if(D&&re!==void 0&&ce>re){se=!0;break}D&&re===void 0&&!H&&!n&&C>X&&(re=ce+(I?te:1)+10);const be=(y=_[ce])!=null?y:bt(g,ce);let he=1;if(W){me.span=1,F(me,M[ce],ce,te,ae);const ot=me.span;ot!==void 0&&Number.isFinite(ot)&&(he=Math.max(1,Math.min(te,Math.round(ot))))}I&&z+he-1>te&&(C+=U,z=1,U=0);const Ge=j.get(be),We=Ge!==void 0?Ge:Nn(e,be,ce,M[ce],ne,$);yn&&N&&(J.has(be)&&console.error(`[legend-list] Error: Detected overlapping key (${be}) which causes missing items and gaps and other terrrible things. Check that keyExtractor returns unique values.`),J.set(be,ce)),C!==T[ce]&&(T[ce]=C,v&&ZC(e,be,C)),N&&k.set(be,ce),I?(b[ce]=z,w[ce]=he,We>U&&(U=We),z+=he,z>te&&(C+=U,z=1,U=0)):C+=We}se||ME(e),R&&vb(e)}function xb(e,n){let i=e.mapViewabilityConfigStates;i||(i=new Map,e.mapViewabilityConfigStates=i);let r=i.get(n);return r||(r={end:-1,previousEnd:-1,previousStart:-1,start:-1,viewableItems:[]},i.set(n,r)),r}function OE(e){let{viewabilityConfig:n,viewabilityConfigCallbackPairs:i,onViewableItemsChanged:r}=e;return(n||r)&&(i=[...i||[],{onViewableItemsChanged:r,viewabilityConfig:n||{viewAreaCoveragePercentThreshold:0}}]),i}function jE(e,n,i,r,o,u){const{timeouts:c,props:{data:f}}=e;for(const h of i){const m=xb(n,h.viewabilityConfig.id);if(m.start=o,m.end=u,h.viewabilityConfig.minimumViewTime){const y=setTimeout(()=>{c.delete(y),g0(f,h,e,n,r)},h.viewabilityConfig.minimumViewTime);c.add(y)}else g0(f,h,e,n,r)}}function g0(e,n,i,r,o){const{viewabilityConfig:u,onViewableItemsChanged:c}=n,f=u.id,h=xb(r,f),{viewableItems:m,start:y,end:g}=h,v=new Map;for(const[k,T]of r.mapViewabilityAmountValues)v.set(k,Sb(i,r,u,k,T.key,o,T.item,T.index));const b=[];if(m)for(const k of m){const T=Dd(r,k.key);v0(i,r,u,T,k.key,o,k.item,k.index)||(k.isViewable=!1,b.push(k))}const w=[];for(let k=y;k<=g;k++){const T=e[k];if(T){const _=bt(i,k),j=Dd(r,_);if(v0(i,r,u,j,_,o,T,k)){const M={containerId:j,index:k,isViewable:!0,item:T,key:_};w.push(M),m!=null&&m.find(P=>P.key===M.key)||b.push(M)}}}if(Object.assign(h,{previousEnd:g,previousStart:y,viewableItems:w}),b.length>0){h.viewableItems=w;for(let k=0;k<b.length;k++){const T=b[k];RE(r,f,T.containerId,T)}c&&c({changed:b,viewableItems:w})}for(const[k,T]of r.mapViewabilityAmountValues)T.sizeVisible<0&&r.mapViewabilityAmountValues.delete(k)}function y0(e,n){if(!e)return!1;const i=Object.keys(n);for(let r=0;r<i.length;r++){const o=i[r];if(e[o]!==n[o])return!1}return!0}function Sb(e,n,i,r,o,u,c,f){const{sizes:h,scroll:m}=e,y=(xe(n,"stylePaddingTop")||0)+(xe(n,"headerSize")||0),{itemVisiblePercentThreshold:g,viewAreaCoveragePercentThreshold:v}=i,b=v!=null,w=b?v:g,k=m-y,T=e.positions[f],_=h.get(o)||0;if(T===void 0){const ae={containerId:r,index:f,isViewable:!1,item:c,key:o,percentOfScroller:0,percentVisible:0,scrollSize:u,size:_,sizeVisible:-1},me=n.mapViewabilityAmountValues.get(r);if(!y0(me,ae)){n.mapViewabilityAmountValues.set(r,ae);const oe=n.mapViewabilityAmountCallbacks.get(r);oe&&oe(ae)}return ae}const j=T-k,M=j+_,P=j>=0&&M<=u&&M>j,F=P?_:Math.min(M,u)-Math.max(j,0),R=_?P?100:100*(F/_):0,H=_?100*(F/u):0,te=(P?100:b?H:R)>=w,I={containerId:r,index:f,isViewable:te,item:c,key:o,percentOfScroller:H,percentVisible:R,scrollSize:u,size:_,sizeVisible:F},J=n.mapViewabilityAmountValues.get(r);if(!y0(J,I)){n.mapViewabilityAmountValues.set(r,I);const ae=n.mapViewabilityAmountCallbacks.get(r);ae&&ae(I)}return I}function v0(e,n,i,r,o,u,c,f){let h=n.mapViewabilityAmountValues.get(r);return(!h||h.key!==o)&&(h=Sb(e,n,i,r,o,u,c,f)),h.isViewable}function RE(e,n,i,r){const o=i+n;e.mapViewabilityValues.set(o,r);const u=e.mapViewabilityCallbacks.get(o);u==null||u(r)}var b0=vu.unstable_batchedUpdates,LE=typeof b0=="function"?b0:e=>e();function DE(e,n,i,r,o,u,c){const f=xe(e,"numContainers"),h=e.state,{stickyContainerPool:m,containerItemTypes:y}=h,g=[],v=[],b=new Set(o);let w=!1;const k=h.props.stickyIndicesSet,T=(c==null?void 0:c.filter(F=>k.has(F)))||[],_=(F,R)=>{if(!R)return!0;const H=y.get(F);return H?H===R:!0},j=u?[...u]:[];let M=0;for(let F=0;F<T.length;F++){const R=j[M];let H=!1;for(const V of m){const te=xe(e,`containerItemKey${V}`),I=b.has(V);if((te===void 0||I)&&_(V,R)&&!g.includes(V)){g.push(V),I&&b.delete(V)&&(w=!0),H=!0,u&&M++;break}}if(!H){const V=f+g.filter(te=>te>=f).length;g.push(V),m.add(V),u&&M++}}for(let F=0;F<f&&g.length<n;F++){if(m.has(F))continue;const R=xe(e,`containerItemKey${F}`),H=j[M],V=R!==void 0&&b.has(F);(R===void 0||V&&_(F,H))&&(V&&(b.delete(F),w=!0),g.push(F),u&&M++)}for(let F=0;F<f&&g.length<n;F++){if(m.has(F))continue;const R=xe(e,`containerItemKey${F}`);if(R===void 0)continue;const H=h.indexByKey.get(R);if(H<i||H>r){const te=H<i?i-H:H-r;(!u||M<j.length&&_(F,j[M]))&&v.push({distance:te,index:F})}}const P=n-g.length;if(P>0){if(v.length>0){v.length>P&&(v.sort(IE),v.length=P);for(const R of v)g.push(R.index),u&&M++}const F=n-g.length;if(F>0){for(let R=0;R<F;R++)g.push(f+R);yn&&f+F>xe(e,"numContainersPooled")&&console.warn("[legend-list] No unused container available, so creating one on demand. This can be a minor performance issue and is likely caused by the estimatedItemSize being too large. Consider decreasing estimatedItemSize or increasing initialContainerPoolRatio.",{debugInfo:{numContainers:f,numContainersPooled:xe(e,"numContainersPooled"),numNeeded:n,stillNeeded:F}})}}if(w){o.length=0;for(const F of b)o.push(F)}return g.sort(n2)}function IE(e,n){return n.distance-e.distance}function BE(e){const n=e.state;n.queuedInitialLayout=!0,sb(e),gm(e,{didLayout:!0})}function UE(e,n,i){const r=i.positions;for(let o=e.length-1;o>=0;o--){const u=e[o],c=r[u];if(c!==void 0&&n>=c)return o}return-1}function VE(e,n){const i=e.state;return new Set(Array.from(i.stickyContainerPool).map(r=>xe(e,`containerItemKey${r}`)).map(r=>r?i.indexByKey.get(r):void 0).filter(r=>r!==void 0&&n.has(r)))}function FE(e,n,i,r,o,u,c,f){var h;const m=e.state,y=VE(e,n);Ee(e,"activeStickyIndex",r>=0?i[r]:-1);for(let g=0;g<=1;g++){const v=r-g;if(v<0||y.has(i[v]))continue;const b=i[v],w=(h=m.idCache[b])!=null?h:bt(m,b);w&&!m.containerItemKeys.has(w)&&(b<c||b>f)&&!u.has(b)&&(u.add(b),o.push(b))}}function HE(e,n,i,r,o,u,c){var f,h;const m=e.state;for(const y of m.stickyContainerPool){const g=xe(e,`containerItemKey${y}`),v=g?m.indexByKey.get(g):void 0;if(v===void 0||c.has(v))continue;const b=n.indexOf(v);if(b===-1){m.stickyContainerPool.delete(y),Ee(e,`containerSticky${y}`,!1);continue}if(b>=o-1&&b<=o+1)continue;const k=n[b+1];let T=!1;if(k){const _=m.positions[k];T=_!==void 0&&i>_+r*2}else{const _=(f=m.idCache[v])!=null?f:bt(m,v);if(_){const j=m.positions[v],M=(h=m.sizes.get(_))!=null?h:Nn(e,_,v,m.props.data[v]);T=j!==void 0&&i>j+M+r*3}}T&&u.push(y)}}function Si(e,n={}){const i=e.state;LE(()=>{var r,o,u,c,f,h,m,y,g,v,b,w,k,T;const{columns:_,columnSpans:j,containerItemKeys:M,enableScrollForNextCalculateItemsInView:P,idCache:F,indexByKey:R,minIndexSizeChanged:H,positions:V,props:{alwaysRenderIndicesArr:te,alwaysRenderIndicesSet:I,drawDistance:J,getItemType:ae,itemsAreEqual:me,keyExtractor:oe,onStickyHeaderChange:ie},scrollForNextCalculateItemsInView:D,scrollLength:X,sizes:ne,startBufferedId:$,viewabilityConfigCallbackPairs:C}=i,{data:z}=i.props,U=i.props.stickyIndicesArr||[],N=i.props.stickyIndicesSet||new Set,W=te||[],se=I||new Set,{dataChanged:re,doMVCP:ce,forceFullItemPositions:be}=n,he=((r=i.initialScrollSession)==null?void 0:r.kind)==="bootstrap"?i.initialScrollSession.bootstrap:void 0,Ge=!!he,We=xe(e,"numContainers");if(!z||X===0||!We)return;let ot=Yn(e);const tn=xe(e,"stylePaddingTop")+xe(e,"headerSize"),St=xe(e,"numColumns"),nn=wm(i),Xn=0,{queuedInitialLayout:pl}=i,gl=Ge?(o=he==null?void 0:he.scroll)!=null?o:i.scroll:!pl&&i.initialScroll?Bl(e,i.initialScroll):i.scroll,Kn=(u=xe(e,"scrollAdjustPending"))!=null?u:0,al=Kn-tn;let zt=Math.round(gl+Xn+al);zt+X>ot&&(zt=Math.max(0,ot-X));const Zn=xe(e,"activeStickyIndex"),$n=U.length>0?UE(U,zt,i):-1,pt=$n>=0?U[$n]:-1;($n>=0||Zn>=0)&&Ee(e,"activeStickyIndex",pt);let bn=J,K=J;nn>0||nn===0&&zt<Math.max(50,J)?(bn=J*.5,K=J*1.5):(bn=J*1.5,K=J*.5);const fe=zt-bn,we=zt+X+(zt<0?-zt:0),_e=we+K;if(!Ge&&!re&&!be&&D){const{top:de,bottom:Ze}=D;if(de===null&&Ze===null)i.scrollForNextCalculateItemsInView=void 0;else if((de===null||fe>de)&&(Ze===null||_e<Ze)&&!co(i))return}const He=ce&&!Ge?_E(e,re):void 0;re&&(R.clear(),F.length=0,V.length=0,_.length=0,j.length=0);const Vt=be||re?0:(c=H??i.startBuffered)!=null?c:0;bb(e,re,{doMVCP:ce,forceFullUpdate:!!be,scrollBottomBuffered:_e,startIndex:Vt}),ot=Yn(e),H!==void 0&&(i.minIndexSizeChanged=void 0),He==null||He();let Mt=null,ft=null,gt=null,xt=null,Be=null,Pt=(f=Ge?he==null?void 0:he.targetIndexSeed:void 0)!=null?f:!re&&$&&R.get($)||0;for(let de=Pt;de>=0;de--){const Ze=(h=F[de])!=null?h:bt(i,de),ze=V[de],De=(m=ne.get(Ze))!=null?m:Nn(e,Ze,de,z[de]);if(ze+De>zt-bn)Pt=de;else break}if(St>1)for(;Pt>0;){const de=_[Pt];if(de===1||de===void 0)break;Pt-=1}let Zt=!1,Pl,zn,un=0;for(let de=0;de<We;de++){const Ze=xe(e,`containerItemKey${de}`);if(Ze!==void 0){const ze=R.get(Ze);un=Math.max(un,ze)}}let Mn;const qt=z.length;for(let de=Math.max(0,Pt);de<qt&&(!Zt||de<=un);de++){const Ze=(y=F[de])!=null?y:bt(i,de),ze=(g=ne.get(Ze))!=null?g:Nn(e,Ze,de,z[de]),De=V[de];Zt||(Mt===null&&De+ze>zt&&(Mt=de),Mn===void 0&&De>=zt-10&&De<=we&&(Mn=de),ft===null&&De+ze>fe&&(ft=de,gt=Ze,fe<0?Pl=null:Pl=De),Mt!==null&&(De<=we&&(xt=de),De<=_e?(Be=de,_e>ot?zn=null:zn=De+ze):Zt=!0))}const Jn=[],Gt=Mn??Mt;if(Gt!=null&&xt!==null)for(let de=Gt;de<=xt;de++){const Ze=(v=F[de])!=null?v:bt(i,de);Jn.push(Ze)}Object.assign(i,{endBuffered:Be,endNoBuffer:xt,firstFullyOnScreenIndex:Mn,idsInView:Jn,startBuffered:ft,startBufferedId:gt,startNoBuffer:Mt}),P&&Pl!==void 0&&zn!==void 0&&(i.scrollForNextCalculateItemsInView=uo(Pl)&&uo(zn)?void 0:{bottom:zn,top:Pl});let Ot=We;const yl=[];if(re)for(let de=0;de<Ot;de++){const Ze=xe(e,`containerItemKey${de}`);(!oe||Ze&&R.get(Ze)===void 0)&&yl.push(de)}if(ft!==null&&Be!==null){const de=[],Ze=new Set;for(let ze=ft;ze<=Be;ze++){const De=(b=F[ze])!=null?b:bt(i,ze);M.has(De)||(Ze.add(ze),de.push(ze))}if(W.length>0)for(const ze of W){if(ze<0||ze>=qt)continue;const De=(w=F[ze])!=null?w:bt(i,ze);De&&!M.has(De)&&!Ze.has(ze)&&(Ze.add(ze),de.push(ze))}if(U.length>0?FE(e,N,U,$n,de,Ze,ft,Be):Zn!==-1&&Ee(e,"activeStickyIndex",-1),de.length>0){const ze=ae?de.map(Et=>{const Ft=ae(z[Et],Et);return Ft!==void 0?String(Ft):""}):void 0,De=DE(e,de.length,ft,Be,yl,ze,de);for(let Et=0;Et<de.length;Et++){const Ft=de[Et],wt=De[Et],Ae=(k=F[Ft])!=null?k:bt(i,Ft),On=xe(e,`containerItemKey${wt}`);On&&On!==Ae&&M.delete(On),Ee(e,`containerItemKey${wt}`,Ae),Ee(e,`containerItemData${wt}`,z[Ft]),ze&&i.containerItemTypes.set(wt,ze[Et]),M.set(Ae,wt);const $t=`containerSticky${wt}`,dt=N.has(Ft),nt=se.has(Ft);dt?(Ee(e,$t,!0),i.stickyContainerPool.add(wt)):(xe(e,$t)&&Ee(e,$t,!1),nt?i.stickyContainerPool.add(wt):i.stickyContainerPool.has(wt)&&i.stickyContainerPool.delete(wt)),wt>=Ot&&(Ot=wt+1)}Ot!==We&&(Ee(e,"numContainers",Ot),Ot>xe(e,"numContainersPooled")&&Ee(e,"numContainersPooled",Math.ceil(Ot*1.5)))}if(W.length>0)for(const ze of W){if(ze<0||ze>=qt)continue;const De=(T=F[ze])!=null?T:bt(i,ze),Et=M.get(De);Et!==void 0&&i.stickyContainerPool.add(Et)}}i.stickyContainerPool.size>0&&HE(e,U,zt,J,$n,yl,se);let ol=!1;for(let de=0;de<Ot;de++){const Ze=xe(e,`containerItemKey${de}`);if(yl.includes(de))Ze!==void 0&&M.delete(Ze),i.containerItemTypes.delete(de),i.stickyContainerPool.has(de)&&(Ee(e,`containerSticky${de}`,!1),i.stickyContainerPool.delete(de)),Ee(e,`containerItemKey${de}`,void 0),Ee(e,`containerItemData${de}`,void 0),Ee(e,`containerPosition${de}`,Yr),Ee(e,`containerColumn${de}`,-1),Ee(e,`containerSpan${de}`,1);else{const ze=R.get(Ze),De=z[ze];if(De!==void 0){const Et=V[ze];if(Et===void 0)Ee(e,`containerPosition${de}`,Yr);else{const Ft=(Et||0)-Kn,wt=_[ze]||1,Ae=j[ze]||1,On=xe(e,`containerPosition${de}`),$t=xe(e,`containerColumn${de}`),dt=xe(e,`containerSpan${de}`),nt=xe(e,`containerItemData${de}`);Ft>Yr&&Ft!==On&&(Ee(e,`containerPosition${de}`,Ft),ol=!0),wt>=0&&wt!==$t&&Ee(e,`containerColumn${de}`,wt),Ae!==dt&&Ee(e,`containerSpan${de}`,Ae),nt!==De&&(!me||!me(nt,De,ze,z))&&Ee(e,`containerItemData${de}`,De)}}}}if(ol&&Ee(e,"lastPositionUpdate",Date.now()),Ge){iE(e);return}if(!pl&&Be!==null&&ym(i)&&(BE(e),pE(e)),C&&Mt!==null&&xt!==null&&jE(e.state,e,C,X,Mt,xt),ie&&U.length>0&&pt!==void 0&&pt!==Zn){const de=z[pt];de!==void 0&&ie({index:pt,item:de})}})}function PE(e,n,i){if(!i||!n||n.length!==i.length)return!0;const{idCache:r,props:{keyExtractor:o}}=e;for(let u=0;u<n.length;u++)if(n[u]!==i[u]||(o?r[u]!==o(i[u],u):n[u]!==i[u]))return!0;return!1}function Cu(e){const n=e.state,{didContainersLayout:i,isAtEnd:r,pendingNativeMVCPAdjust:o,refScroller:u,props:{maintainScrollAtEnd:c}}=n,f=!!(r&&c&&i);return o?(n.pendingMaintainScrollAtEnd=f,!1):(n.pendingMaintainScrollAtEnd=!1,f?(Yn(e)<n.scrollLength&&(n.scroll=0),requestAnimationFrame(()=>{var m;n.isAtEnd&&(n.maintainingScrollAtEnd=!0,(m=u.current)==null||m.scrollToEnd({animated:c.animated}),setTimeout(()=>{n.maintainingScrollAtEnd=!1},c.animated?500:0))}),!0):!1)}function qE(e,n,i){var r;const{averageSizes:o,sizesKnown:u,indexByKey:c,props:{itemsAreEqual:f,getItemType:h,keyExtractor:m}}=e;if(!f||!n.length||!i.length){for(const b in o)delete o[b];return}const y={},g=i.length,v=n.length;for(let b=0;b<g;b++){const w=i[b],k=m?m(w,b):String(b),T=c.get(k);if(T!==void 0&&T<v){const _=u.get(k);if(_===void 0)continue;const j=n[T];if(f(j,w,b,i)){const P=h&&(r=h(w,b))!=null?r:"";let F=y[P];F||(F=y[P]={count:0,totalSize:0}),F.totalSize+=_,F.count++}}}for(const b in o)delete o[b];for(const b in y){const{totalSize:w,count:k}=y[b];k>0&&(o[b]={avg:w/k,num:k})}}function GE(e,n){const i=e.state,{previousData:r}=i;r&&qE(i,r,n);const{maintainScrollAtEnd:o}=i.props;Si(e,{dataChanged:!0,doMVCP:!0});const c=(o==null?void 0:o.onDataChange)&&Cu(e);!c&&r&&n.length>r.length&&(i.isEndReached=!1),c||wu(e),delete i.previousData}function wb(e){var n,i,r;const o=e.state,{scrollLength:u,props:{data:c,drawDistance:f,getEstimatedItemSize:h,getFixedItemSize:m,getItemType:y,numColumns:g,estimatedItemSize:v}}=o,b=xe(e,"numContainers");if(u>0&&c.length>0&&!b){let w;if(m||h){let T=0;const _=Math.min(20,c.length);for(let j=0;j<_;j++){const M=c[j];if(M!==void 0){const P=(n=y==null?void 0:y(M,j))!=null?n:"";T+=(r=(i=m==null?void 0:m(M,j,P))!=null?i:h==null?void 0:h(M,j,P))!=null?r:v}}w=T/_}else w=v;const k=Math.ceil((u+f*2)/w*g);for(let T=0;T<k;T++)Ee(e,`containerPosition${T}`,Yr),Ee(e,`containerColumn${T}`,-1),Ee(e,`containerSpan${T}`,1);return Ee(e,"numContainers",k),Ee(e,"numContainersPooled",k*o.props.initialContainerPoolRatio),o.lastLayout&&(o.initialScroll?requestAnimationFrame(()=>{Si(e,{dataChanged:!0,doMVCP:!0})}):Si(e,{dataChanged:!0,doMVCP:!0})),!0}}function YE(){return typeof window>"u"?{height:0,width:0}:{height:window.innerHeight,width:window.innerWidth}}function QE(e,n,i){const r=e.state,{maintainScrollAtEnd:o,useWindowScroll:u}=r.props,c=r.props.horizontal?"width":"height",f=r.props.horizontal?"height":"width";let h=n;if(u){const T=YE()[c];h=T>0?{...n,[c]:T}:n}const m=h[c],y=r.scrollLength,g=m>0?m:y,v=h[f],b=!r.lastLayout||g>r.scrollLength||r.lastLayout.x!==h.x||r.lastLayout.y!==h.y;r.lastLayout=h;const w=r.otherAxisSize,k=g!==r.scrollLength||v!==w;k&&(r.scrollLength=g,r.otherAxisSize=v,r.lastBatchingAction=Date.now(),r.scrollForNextCalculateItemsInView=void 0,g>0&&wb(e),b&&Si(e,{doMVCP:!0}),(k||v!==w)&&Ee(e,"scrollSize",{height:h.height,width:h.width}),o!=null&&o.onLayout&&Cu(e),wu(e),r&&(r.needsOtherAxisSize=v-(r.props.stylePaddingTop||0)<10),yn&&m===0&&Ws("height0",`List ${r.props.horizontal?"width":"height"} is 0. You may need to set a style or \`flex: \` for the list, because children are absolutely positioned.`)),i(!0)}function km(e,n,i){var r;const o=e.state,{ignoreScrollFromMVCP:u,lastScrollAdjustForHistory:c,scrollAdjustHandler:f,scrollHistory:h,scrollingTo:m}=o,y=o.scroll;o.hasScrolled=!0,o.lastBatchingAction=Date.now();const g=Date.now(),v=f.getAdjust(),b=c!==void 0&&Math.abs(v-c)>.1;if(b&&(h.length=0),o.lastScrollAdjustForHistory=v,m===void 0&&!(h.length===0&&n===o.scroll)&&(b||h.push({scroll:n,time:g})),h.length>5&&h.shift(),u&&!m){const{lt:P,gt:F}=u;if(P&&n<P||F&&n>F){o.ignoreScrollFromMVCPIgnored=!0;return}}o.scrollPrev=y,o.scrollPrevTime=o.scrollTime,o.scroll=n,o.scrollTime=g;const w=Math.abs(n-y),k=TE(e,n),T=o.scrollLength,_=o.scrollLastCalculate;if(co(o)||k||i||_===void 0||Math.abs(o.scroll-_)>2){o.scrollLastCalculate=o.scroll,o.ignoreScrollFromMVCPIgnored=!1,o.lastScrollDelta=w;const P=()=>{var R;(R=o.triggerCalculateItemsInView)==null||R.call(o,{doMVCP:m!==void 0}),wu(e)};T>0&&m===void 0&&w>T?vu.flushSync(P):P();const F=!!o.pendingMaintainScrollAtEnd||!!((r=o.props.maintainScrollAtEnd)!=null&&r.onDataChange);k&&F&&(o.pendingMaintainScrollAtEnd=!1,Cu(e)),o.dataChangeNeedsScrollUpdate=!1,o.lastScrollDelta=0}}function XE(e,n){const i=on.get(e);if(!!i&&on.didObserveProgress(n,i)){on.clear(e);return}i&&(e.hasScrolled=!1,on.set(e,{startScroll:i.startScroll,targetOffset:i.targetOffset}))}function KE(e){var n;return!!e.initialScroll&&((n=e.initialScrollSession)==null?void 0:n.kind)==="bootstrap"&&!e.didFinishInitialScroll}function ZE(e){return{...e,nativeEvent:{...e.nativeEvent}}}function $E(e,n){var i,r,o,u;const c=e.state,{scrollProcessingEnabled:f}=c;if(f===!1||((r=(i=n.nativeEvent)==null?void 0:i.contentSize)==null?void 0:r.height)===0&&((o=n.nativeEvent.contentSize)==null?void 0:o.width)===0)return;let h=!1;if((u=n.nativeEvent)!=null&&u.contentInset){const{contentInset:y}=n.nativeEvent,g=c.nativeContentInset;(!g||g.top!==y.top||g.bottom!==y.bottom||g.left!==y.left||g.right!==y.right)&&(c.nativeContentInset=y,h=!0)}let m=n.nativeEvent.contentOffset[c.props.horizontal?"x":"y"];if(c.scrollingTo&&c.scrollingTo.offset>=m){const y=Xi(e,m,c.scrollingTo);if(m!==y&&Math.abs(m-y)>1){m=y,Su(e,{forceScroll:!0,isInitialScroll:!0,noScrollingTo:!0,offset:m});return}}c.scrollPending=m,km(e,m,h),XE(c,m),c.scrollingTo&&bm(e),c.props.onScroll&&(KE(c)?c.deferredPublicOnScrollEvent=ZE(n):c.props.onScroll(n))}var JE=class{constructor(e){this.appliedAdjust=0,this.pendingAdjust=0,this.ctx=e}requestAdjust(e){const n=this.ctx.state.scrollingTo;n!=null&&n.animated&&!n.isInitialScroll?(this.pendingAdjust+=e,Ee(this.ctx,"scrollAdjustPending",this.pendingAdjust)):(this.appliedAdjust+=e,Ee(this.ctx,"scrollAdjust",this.appliedAdjust)),this.ctx.state.scrollingTo&&bm(this.ctx)}getAdjust(){return this.appliedAdjust}commitPendingAdjust(e){{const n=this.ctx.state,i=this.pendingAdjust;if(this.pendingAdjust=0,i!==0){let r;if((e==null?void 0:e.index)!==void 0){const u=mm(this.ctx,e.index);r=hm(this.ctx,u,e),r=Xi(this.ctx,r,e)}else r=Xi(this.ctx,n.scroll+i);const o=r-n.scroll;(Math.abs(o)>.1||Math.abs(i)>.1)&&(this.appliedAdjust+=o,n.scroll=r,n.scrollForNextCalculateItemsInView=void 0,Ee(this.ctx,"scrollAdjust",this.appliedAdjust)),Ee(this.ctx,"scrollAdjustPending",0),Si(this.ctx)}}}};function WE(e){const n=e.state;{if(!n.mvcpAnchorLock){n.queuedMVCPRecalculate!==void 0&&(cancelAnimationFrame(n.queuedMVCPRecalculate),n.queuedMVCPRecalculate=void 0),Si(e,{doMVCP:!0});return}if(n.queuedMVCPRecalculate!==void 0)return;n.queuedMVCPRecalculate=requestAnimationFrame(()=>{n.queuedMVCPRecalculate=void 0,Si(e,{doMVCP:!0})})}}function eA(e,n,i){var r;const o=e.state,{didContainersLayout:u,sizesKnown:c,props:{getFixedItemSize:f,getItemType:h,horizontal:m,suggestEstimatedItemSize:y,onItemSizeChanged:g,data:v,maintainScrollAtEnd:b}}=o;if(!v)return;const w=o.indexByKey.get(n);if(f){if(w===void 0)return;const H=o.props.data[w];if(H===void 0)return;const V=h&&(r=h(H,w))!=null?r:"",te=f(H,w,V);if(te!==void 0&&te===c.get(n))return}let k=!u,T=!1,_,j=xe(e,"otherAxisSize")||0;const M=o.sizesKnown.get(n),P=tA(e,n,i),F=ru(m?i.width:i.height);if(P!==0){_=_!==void 0?Math.min(_,w):w;const{startBuffered:H,endBuffered:V}=o;if(k||(k=w>=H&&w<=V),!k&&o.containerItemKeys.has(n)&&(k=!0),o.needsOtherAxisSize){const te=m?i.height:i.width;j=Math.max(j,te)}M!==void 0&&Math.abs(M-F)>5&&(T=!0),g==null||g({index:w,itemData:o.props.data[w],itemKey:n,previous:F-P,size:F})}_!==void 0&&(o.minIndexSizeChanged=o.minIndexSizeChanged!==void 0?Math.min(o.minIndexSizeChanged,_):_),yn&&y&&_!==void 0&&(o.timeoutSizeMessage&&clearTimeout(o.timeoutSizeMessage),o.timeoutSizeMessage=setTimeout(()=>{var H;o.timeoutSizeMessage=void 0;const V=o.sizesKnown.size,te=(H=o.averageSizes[""])==null?void 0:H.avg;console.warn(`[legend-list] Based on the ${V} items rendered so far, the optimal estimated size is ${te}.`)},1e3));const R=xe(e,"otherAxisSize");(!R||j>R)&&Ee(e,"otherAxisSize",j),(u||ym(o))&&(k&&(o.scrollForNextCalculateItemsInView=void 0,WE(e)),T&&b!=null&&b.onItemLayout&&Cu(e))}function tA(e,n,i){var r;const o=e.state,{indexByKey:u,sizesKnown:c,averageSizes:f,props:{data:h,horizontal:m,getEstimatedItemSize:y,getItemType:g,getFixedItemSize:v}}=o;if(!h)return 0;const b=u.get(n),w=Nn(e,n,b,h[b]),k=m?i.width:i.height,T=Math.round(k),_=c.get(n);if(c.set(n,T),!y&&!v&&T>0){const j=g&&(r=g(h[b],b))!=null?r:"";let M=f[j];M||(M=f[j]={avg:0,num:0}),M.num===0?(M.avg=T,M.num++):_!==void 0&&_>0?M.avg+=(T-_)/M.num:(M.avg=(M.avg*M.num+T)/(M.num+1),M.num++)}return!w||Math.abs(w-T)>.1?(ib(e,n,T),T-w):0}function Is(e){return E.useMemo(()=>e?(n,i,r)=>n!==void 0&&i!==void 0?e(n,i,r):void 0:void 0,[e])}var nA=(...e)=>E.useCallback(i=>{for(const r of e)r&&(fm(r)?r(i):r.current=i)},e);function lA(e){return null}function iA(e,n,i,r){return r}function rA(e){const{gap:n,columnGap:i,rowGap:r}=e;if(n||i||r)return e.gap=void 0,e.columnGap=void 0,e.rowGap=void 0,{columnGap:i,gap:n,rowGap:r}}function aA(e){const n=e.state,i=800,r=2;let o=0;const u=()=>!!n.didDataChange||!!n.didColumnsChange||n.queuedMVCPRecalculate!==void 0||n.ignoreScrollFromMVCP!==void 0||nb(n),c=(g,v)=>{const b=Date.now();let w=0;const k=()=>{if(g!==o)return;u()?w=0:w+=1;const T=Date.now()-b>=i;if(w>=r||T){v();return}requestAnimationFrame(k)};requestAnimationFrame(k)},f=g=>new Promise(v=>{var b;const w=++o;(b=n.pendingScrollResolve)==null||b.call(n),n.pendingScrollResolve=v;const k=()=>{if(w!==o)return;(!g()||!n.scrollingTo)&&(n.pendingScrollResolve===v&&(n.pendingScrollResolve=void 0),v())};if(u()){c(w,k);return}k()}),h=g=>{if(n){const{index:v,...b}=g,{startNoBuffer:w,endNoBuffer:k}=n;if(v<w||v>k){const T=v<w?0:1;return Ds(e,{...b,index:v,viewPosition:T}),!0}}return!1},m=n.refScroller;return{clearCaches:g=>{var v,b;const w=(v=g==null?void 0:g.mode)!=null?v:"sizes";n.sizes.clear(),n.sizesKnown.clear();for(const k in n.averageSizes)delete n.averageSizes[k];n.minIndexSizeChanged=0,n.scrollForNextCalculateItemsInView=void 0,n.pendingTotalSize=void 0,n.totalSize=0,Ee(e,"totalSize",0),w==="full"&&(n.indexByKey.clear(),n.idCache.length=0,n.positions.length=0,n.columns.length=0,n.columnSpans.length=0),(b=n.triggerCalculateItemsInView)==null||b.call(n,{forceFullItemPositions:!0})},flashScrollIndicators:()=>m.current.flashScrollIndicators(),getNativeScrollRef:()=>m.current,getScrollableNode:()=>m.current.getScrollableNode(),getScrollResponder:()=>m.current.getScrollResponder(),getState:()=>({activeStickyIndex:xe(e,"activeStickyIndex"),contentLength:Yn(e),data:n.props.data,elementAtIndex:g=>{var v;return(v=e.viewRefs.get(Dd(e,bt(n,g))))==null?void 0:v.current},end:n.endNoBuffer,endBuffered:n.endBuffered,isAtEnd:n.isAtEnd,isAtStart:n.isAtStart,isEndReached:n.isEndReached,isStartReached:n.isStartReached,listen:(g,v)=>Zr(e,g,v),listenToPosition:(g,v)=>KC(e,g,v),positionAtIndex:g=>n.positions[g],positionByKey:g=>{const v=n.indexByKey.get(g);return v===void 0?void 0:n.positions[v]},scroll:n.scroll,scrollLength:n.scrollLength,scrollVelocity:wm(n),sizeAtIndex:g=>n.sizesKnown.get(bt(n,g)),sizes:n.sizesKnown,start:n.startNoBuffer,startBuffered:n.startBuffered}),reportContentInset:g=>{n.contentInsetOverride=g??void 0,km(e,n.scroll,!0)},scrollIndexIntoView:g=>f(()=>h(g)),scrollItemIntoView:({item:g,...v})=>f(()=>{const w=n.props.data.indexOf(g);return w!==-1?(h({index:w,...v}),!0):!1}),scrollToEnd:g=>f(()=>{const v=n.props.data,b=n.props.stylePaddingBottom,w=v.length-1;if(w!==-1){const k=b||0,T=xe(e,"footerSize")||0;return Ds(e,{...g,index:w,viewOffset:-k-T+((g==null?void 0:g.viewOffset)||0),viewPosition:1}),!0}return!1}),scrollToIndex:g=>f(()=>(Ds(e,g),!0)),scrollToItem:({item:g,...v})=>f(()=>{const w=n.props.data.indexOf(g);return w!==-1?(Ds(e,{index:w,...v}),!0):!1}),scrollToOffset:g=>f(()=>(Su(e,g),!0)),setScrollProcessingEnabled:g=>{n.scrollProcessingEnabled=g},setVisibleContentAnchorOffset:g=>{const v=fm(g)?g(xe(e,"scrollAdjustUserOffset")||0):g;Ee(e,"scrollAdjustUserOffset",v)}}}var oA=(e,n)=>e-n,x0=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.floor(e)):0,Bs=(e,n,i)=>{i>=0&&i<n&&e.add(i)};function sA(e,n,i){var r,o;if(!e||n.length===0)return[];const u=new Set,c=n.length,f=x0(e.top);if(f>0)for(let y=0;y<Math.min(f,c);y++)Bs(u,c,y);const h=x0(e.bottom);if(h>0)for(let y=Math.max(0,c-h);y<c;y++)Bs(u,c,y);if((r=e.indices)!=null&&r.length)for(const y of e.indices)Number.isFinite(y)&&Bs(u,c,Math.floor(y));if((o=e.keys)!=null&&o.length){const y=new Set(e.keys);for(let g=0;g<c&&y.size>0;g++){const v=i(n[g],g);y.has(v)&&(Bs(u,c,g),y.delete(v))}}const m=Array.from(u);return m.sort(oA),m}function uA(e,n){var i;const r=e.state;if(!r)return null;const{indexByKey:o,props:{data:u,getItemType:c,renderItem:f}}=r,h=o.get(n);if(h===void 0)return null;let m=null;const y=xe(e,"extraData"),g=u[h];if(f&&!uo(g)){const v={data:u,extraData:y,index:h,item:g,type:c&&(i=c(g,h))!=null?i:""};m=fm(f)?f(v):Pv.createElement(f,v)}return{index:h,item:u[h],renderedItem:m}}function S0(e,n){var i,r,o;return{animated:!1,onDataChange:n?(i=e==null?void 0:e.dataChange)!=null?i:!1:!0,onItemLayout:n?(r=e==null?void 0:e.itemLayout)!=null?r:!1:!0,onLayout:n?(o=e==null?void 0:e.layout)!=null?o:!1:!0}}function cA(e){var n;return e?e===!0?{...S0(void 0,!1),animated:!1}:{...S0(e.on,"on"in e),animated:(n=e.animated)!=null?n:!1}:void 0}function fA(e){var n,i;return e===!0?{data:!0,size:!0}:e&&typeof e=="object"?{data:(n=e.data)!=null?n:!1,shouldRestorePosition:e.shouldRestorePosition,size:(i=e.size)!=null?i:!0}:e===!1?{data:!1,size:!1}:{data:!1,size:!0}}function dA(e,{stylePaddingTop:n}){const i=e.state;if(n!==void 0){const r=xe(e,"stylePaddingTop")||0;if(n<r){let o=xe(e,"totalSize")||0;Ee(e,"totalSize",o+r),i.timeoutSetPaddingTop=setTimeout(()=>{o=xe(e,"totalSize")||0,Ee(e,"totalSize",o-r)},16)}Ee(e,"stylePaddingTop",n)}}function mA(e){const n=E.useRef(null),i=E.useRef(0),r=E.useRef(null),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return E.useCallback((c,f,...h)=>{{const m=Date.now();r.current=h,m-i.current>=f?(i.current=m,c(...h),o()):(o(),n.current=setTimeout(()=>{r.current&&(i.current=Date.now(),c(...r.current),n.current=null,r.current=null)},f-(m-i.current)))}},[e])}function hA(e,n){const i=mA("throttle");return r=>i(e,n,{nativeEvent:r.nativeEvent})}var pA=Wi(eb(function(n,i){const{children:r,data:o,renderItem:u,...c}=n,h=r!==void 0&&o===void 0?{...c,childrenMode:!0,data:(xu(r)?r:E.Children.toArray(r)).flat(1),renderItem:({item:m})=>m}:{...c,data:o||[],renderItem:u};return E.createElement(XC,null,E.createElement(gA,{...h,ref:i}))})),gA=eb(function(n,i){var r,o,u,c,f,h,m;const{alignItemsAtEnd:y=!1,alwaysRender:g,columnWrapperStyle:v,contentContainerStyle:b,contentInset:w,data:k=[],dataVersion:T,drawDistance:_=250,estimatedItemSize:j=100,estimatedListSize:M,extraData:P,getEstimatedItemSize:F,getFixedItemSize:R,getItemType:H,horizontal:V,initialContainerPoolRatio:te=2,initialScrollAtEnd:I=!1,initialScrollIndex:J,initialScrollOffset:ae,itemsAreEqual:me,keyExtractor:oe,ListEmptyComponent:ie,ListFooterComponent:D,ListFooterComponentStyle:X,ListHeaderComponent:ne,maintainScrollAtEnd:$=!1,maintainScrollAtEndThreshold:C=.1,maintainVisibleContentPosition:z,numColumns:U=1,overrideItemLayout:N,onEndReached:W,onEndReachedThreshold:se=.5,onItemSizeChanged:re,onMetricsChange:ce,onLayout:be,onLoad:he,onMomentumScrollEnd:Ge,onRefresh:We,onScroll:ot,onStartReached:tn,onStartReachedThreshold:St=.5,onStickyHeaderChange:nn,onViewableItemsChanged:Xn,progressViewOffset:pl,recycleItems:gl=!1,refreshControl:Kn,refreshing:al,refScrollView:zt,renderScrollComponent:Zn,renderItem:$n,scrollEventThrottle:pt,snapToIndices:bn,stickyHeaderIndices:K,stickyIndices:fe,style:we,suggestEstimatedItemSize:_e,useWindowScroll:He=!1,viewabilityConfig:Vt,viewabilityConfigCallbackPairs:Mt,...ft}=n,gt=n.animatedPropsInternal,xt=n.positionComponentInternal,Be=n.stickyPositionComponentInternal,{childrenMode:Pt,positionComponentInternal:Zt,stickyPositionComponentInternal:Pl,...zn}=ft,un=au.flatten(b),Mn=y&&(V?(un==null?void 0:un.minWidth)==null:(un==null?void 0:un.minHeight)==null),qt={...un,...y?{display:"flex",flexDirection:V?"row":"column",...Mn?{flexGrow:1}:{},justifyContent:"flex-end"}:{}},Jn={...au.flatten(we)},Gt=e0(Jn,qt,"Top"),Ot=e0(Jn,qt,"Bottom"),yl=cA($),ol=fA(z),de=J!=null,Ze=ae!=null,ze=!I&&!de&&Ze,De=I||de,Et=I?{index:Math.max(0,k.length-1),preserveForBottomPadding:!0,viewOffset:-Ot,viewPosition:1}:de?typeof J=="object"?{index:(r=J.index)!=null?r:0,preserveForBottomPadding:J.viewOffset===void 0&&J.viewPosition===1?!0:void 0,viewOffset:(o=J.viewOffset)!=null?o:J.viewPosition===1?-Ot:0,viewPosition:(u=J.viewPosition)!=null?u:0}:{index:J??0,viewOffset:ae??0}:ze?{contentOffset:ae??0,index:0,viewOffset:0}:void 0,[Ft,wt]=E.useState(!1),Ae=Ul();Ae.columnWrapperStyle=v||(qt?rA(qt):void 0);const On=E.useRef(null),$t=nA(On,zt),dt=oe??((je,lt)=>lt.toString()),nt=K??fe,vl=E.useMemo(()=>{const je=sA(g,k,dt);return{arr:je,set:new Set(je)}},[g==null?void 0:g.top,g==null?void 0:g.bottom,(c=g==null?void 0:g.indices)==null?void 0:c.join(","),(f=g==null?void 0:g.keys)==null?void 0:f.join(","),k,T,dt]);yn&&fe&&!K&&Ws("stickyIndices","stickyIndices has been renamed to stickyHeaderIndices. Please update your props to use stickyHeaderIndices."),yn&&He&&Zn&&Ws("useWindowScrollRenderScrollComponent","useWindowScroll is not supported when renderScrollComponent is provided.");const ir=!!He&&!Zn,Wn=E.useRef(void 0),Ei=!!N,oa=E.useRef(Ei);if(!Wn.current){if(!Ae.state){const je=(M??{height:0,width:0})[V?"width":"height"];Ae.state={activeStickyIndex:-1,averageSizes:{},columnSpans:[],columns:[],containerItemKeys:new Map,containerItemTypes:new Map,contentInsetOverride:void 0,dataChangeEpoch:0,dataChangeNeedsScrollUpdate:!1,didColumnsChange:!1,didDataChange:!1,enableScrollForNextCalculateItemsInView:!0,endBuffered:-1,endNoBuffer:-1,endReachedSnapshot:void 0,firstFullyOnScreenIndex:-1,idCache:[],idsInView:[],indexByKey:new Map,initialScroll:Et,initialScrollSession:Et?{kind:ze?"offset":"bootstrap",previousDataLength:k.length}:void 0,isAtEnd:!1,isAtStart:!1,isEndReached:null,isFirst:!0,isStartReached:null,lastBatchingAction:Date.now(),lastLayout:void 0,lastScrollDelta:0,loadStartTime:Date.now(),minIndexSizeChanged:0,nativeContentInset:void 0,nativeMarginTop:0,pendingNativeMVCPAdjust:void 0,positions:[],props:{},queuedCalculateItemsInView:0,refScroller:{current:null},scroll:0,scrollAdjustHandler:new JE(Ae),scrollForNextCalculateItemsInView:void 0,scrollHistory:[],scrollLength:je,scrollPending:0,scrollPrev:0,scrollPrevTime:0,scrollProcessingEnabled:!0,scrollTime:0,sizes:new Map,sizesKnown:new Map,startBuffered:-1,startNoBuffer:-1,startReachedSnapshot:void 0,startReachedSnapshotDataChangeEpoch:void 0,stickyContainerPool:new Set,stickyContainers:new Map,timeoutSizeMessage:0,timeouts:new Set,totalSize:0,viewabilityConfigCallbackPairs:void 0};const lt=Ae.state;lt.triggerCalculateItemsInView=Tt=>Si(Ae,Tt),lt.reprocessCurrentScroll=()=>km(Ae,lt.scroll,!0),Ee(Ae,"maintainVisibleContentPosition",ol),Ee(Ae,"extraData",P)}Wn.current=Ae.state}const $e=Wn.current,Ai=$e.isFirst;$e.didColumnsChange=U!==$e.props.numColumns;const ql=$e.props.data!==k,el=$e.props.dataVersion!==T||ql&&PE($e,k,$e.props.data);el&&($e.dataChangeEpoch+=1,$e.dataChangeNeedsScrollUpdate=!0,$e.didDataChange=!0,$e.previousData=$e.props.data);const Gl=pt&&ot?hA(ot,pt):ot;$e.props={alignItemsAtEnd:y,alwaysRender:g,alwaysRenderIndicesArr:vl.arr,alwaysRenderIndicesSet:vl.set,animatedProps:gt,contentInset:w,data:k,dataVersion:T,drawDistance:_,estimatedItemSize:j,getEstimatedItemSize:Is(F),getFixedItemSize:Is(R),getItemType:Is(H),horizontal:!!V,initialContainerPoolRatio:te,itemsAreEqual:me,keyExtractor:Is(dt),maintainScrollAtEnd:yl,maintainScrollAtEndThreshold:C,maintainVisibleContentPosition:ol,numColumns:U,onEndReached:W,onEndReachedThreshold:se,onItemSizeChanged:re,onLoad:he,onScroll:Gl,onStartReached:tn,onStartReachedThreshold:St,onStickyHeaderChange:nn,overrideItemLayout:N,positionComponentInternal:xt,recycleItems:!!gl,renderItem:$n,snapToIndices:bn,stickyIndicesArr:nt??[],stickyIndicesSet:E.useMemo(()=>new Set(nt??[]),[nt==null?void 0:nt.join(",")]),stickyPositionComponentInternal:Be,stylePaddingBottom:Ot,stylePaddingTop:Gt,suggestEstimatedItemSize:!!_e,useWindowScroll:ir},$e.refScroller=On;const At=E.useMemo(()=>k.length?Array.from({length:Math.min(U,k.length)},(je,lt)=>bt($e,k.length-1-lt)):[],[k,T,U]),sa=je=>{Ee(Ae,"lastItemKeys",At),Ee(Ae,"numColumns",U);const lt=xe(Ae,"stylePaddingTop");dA(Ae,{stylePaddingTop:Gt}),Wn.current.props.stylePaddingBottom=Ot;let Tt=Gt-lt;je&&ol.size&&Tt&&lt!==void 0&&$r.OS};Ai&&(sa(!1),bb(Ae,!0));const ua=E.useMemo(()=>{var je,lt;const Tt=$e.initialScroll;if(!Tt)return;const yt=(je=Tt.contentOffset)!=null?je:Bl(Ae,Tt);return De&&((lt=$e.initialScrollSession)==null?void 0:lt.kind)==="bootstrap"&&$r.OS==="web"?void 0:yt},[De]);E.useLayoutEffect(()=>{gE(Ae,{dataLength:k.length,hasFooterComponent:!!D,initialContentOffset:ua,initialScrollAtEnd:I,useBootstrapInitialScroll:De})},[]),(Ai||el||U!==xe(Ae,"numColumns"))&&(Wn.current.lastBatchingAction=Date.now(),!oe&&!Ai&&el&&(yn&&!Pt&&Ws("keyExtractor","Changing data without a keyExtractor can cause slow performance and resetting scroll. If your list data can change you should use a keyExtractor with a unique id for best performance and behavior."),Wn.current.sizes.clear(),Wn.current.positions.length=0,Wn.current.totalSize=0,Ee(Ae,"totalSize",0))),E.useLayoutEffect(()=>{yE(Ae,{dataLength:k.length,didDataChange:el,initialScrollAtEnd:I,stylePaddingBottom:Ot,useBootstrapInitialScroll:De})},[k.length,el,I,Ot,De]);const bl=E.useCallback(je=>{De&&lE(Ae,{dataLength:k.length,footerSize:je[V?"width":"height"],initialScrollAtEnd:I,stylePaddingBottom:Ot})},[k.length,I,V,Ot,De]),Yl=E.useCallback(je=>{QE(Ae,je,wt),!De&&ou(Ae)},[De]),{onLayout:Du}=dm({onLayoutChange:Yl,onLayoutProp:be,ref:On});E.useLayoutEffect(()=>{bn&&vb(Ae)},[bn]),E.useLayoutEffect(()=>{const{didColumnsChange:je,didDataChange:lt,isFirst:Tt,props:{data:yt}}=$e;!(yt.length>0&&wb(Ae))&&!Tt&&(lt||je)&&GE(Ae,yt),$e.didColumnsChange=!1,$e.didDataChange=!1,$e.isFirst=!1},[k,T,U]),E.useLayoutEffect(()=>{var je;Ee(Ae,"extraData",P);const lt=oa.current!==Ei;oa.current=Ei,(Ei||lt)&&U>1&&((je=$e.triggerCalculateItemsInView)==null||je.call($e,{forceFullItemPositions:!0}))},[P,Ei,U]),E.useLayoutEffect(()=>sa(!0),[T,At.join(","),U,Ot,Gt]),E.useEffect(()=>{if(!ce)return;let je;const lt=()=>{const yt={footerSize:xe(Ae,"footerSize")||0,headerSize:xe(Ae,"headerSize")||0};(!je||yt.headerSize!==je.headerSize||yt.footerSize!==je.footerSize)&&(je=yt,ce(yt))};lt();const Tt=[Zr(Ae,"headerSize",lt),Zr(Ae,"footerSize",lt)];return()=>{for(const yt of Tt)yt()}},[Ae,ce]),E.useEffect(()=>{const je=OE({onViewableItemsChanged:Xn,viewabilityConfig:Vt,viewabilityConfigCallbackPairs:Mt});$e.viewabilityConfigCallbackPairs=je,$e.enableScrollForNextCalculateItemsInView=!je},[Vt,Mt,Xn]),E.useImperativeHandle(i,()=>aA(Ae),[]),E.useEffect(()=>{De||ou(Ae)},[De]);const _i=E.useMemo(()=>({getRenderedItem:je=>uA(Ae,je),onMomentumScrollEnd:je=>{hE(Ae),Ge&&Ge(je)},onScroll:je=>$E(Ae,je),updateItemSize:(je,lt)=>eA(Ae,je,lt)}),[]),Co=iA(nt,V,Ae,_i.onScroll),rr=Kn;return E.createElement(E.Fragment,null,E.createElement(_2,{...zn,alignItemsAtEnd:y,canRender:Ft,contentContainerStyle:qt,contentInset:w,getRenderedItem:_i.getRenderedItem,horizontal:V,initialContentOffset:ua,ListEmptyComponent:k.length===0?ie:void 0,ListFooterComponent:D,ListFooterComponentStyle:X,ListHeaderComponent:ne,onLayout:Du,onLayoutFooter:bl,onMomentumScrollEnd:_i.onMomentumScrollEnd,onScroll:Co,recycleItems:gl,refreshControl:rr?Gt>0?E.cloneElement(rr,{progressViewOffset:((h=rr.props.progressViewOffset)!=null?h:0)+Gt}):rr:We&&E.createElement(lA,{onRefresh:We,progressViewOffset:(pl||0)+Gt,refreshing:!!al}),refScrollView:$t,renderScrollComponent:Zn,scrollAdjustHandler:(m=Wn.current)==null?void 0:m.scrollAdjustHandler,scrollEventThrottle:0,snapToIndices:bn,stickyHeaderIndices:nt,style:Jn,updateItemSize:_i.updateItemSize,useWindowScroll:ir}),yn&&t2)}),yA=pA,vA=yA;function kb(e){var n,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(i=kb(e[n]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function Cb(){for(var e,n,i=0,r="",o=arguments.length;i<o;i++)(e=arguments[i])&&(n=kb(e))&&(r&&(r+=" "),r+=n);return r}const bA=(e,n)=>{const i=new Array(e.length+n.length);for(let r=0;r<e.length;r++)i[r]=e[r];for(let r=0;r<n.length;r++)i[e.length+r]=n[r];return i},xA=(e,n)=>({classGroupId:e,validator:n}),Eb=(e=new Map,n=null,i)=>({nextPart:e,validators:n,classGroupId:i}),su="-",w0=[],SA="arbitrary..",wA=e=>{const n=CA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return kA(c);const f=c.split(su),h=f[0]===""&&f.length>1?1:0;return Ab(f,h,n)},getConflictingClassGroupIds:(c,f)=>{if(f){const h=r[c],m=i[c];return h?m?bA(m,h):h:m||w0}return i[c]||w0}}},Ab=(e,n,i)=>{if(e.length-n===0)return i.classGroupId;const o=e[n],u=i.nextPart.get(o);if(u){const m=Ab(e,n+1,u);if(m)return m}const c=i.validators;if(c===null)return;const f=n===0?e.join(su):e.slice(n).join(su),h=c.length;for(let m=0;m<h;m++){const y=c[m];if(y.validator(f))return y.classGroupId}},kA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),i=n.indexOf(":"),r=n.slice(0,i);return r?SA+r:void 0})(),CA=e=>{const{theme:n,classGroups:i}=e;return EA(i,n)},EA=(e,n)=>{const i=Eb();for(const r in e){const o=e[r];Cm(o,i,r,n)}return i},Cm=(e,n,i,r)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];AA(c,n,i,r)}},AA=(e,n,i,r)=>{if(typeof e=="string"){TA(e,n,i);return}if(typeof e=="function"){_A(e,n,i,r);return}NA(e,n,i,r)},TA=(e,n,i)=>{const r=e===""?n:Tb(n,e);r.classGroupId=i},_A=(e,n,i,r)=>{if(zA(e)){Cm(e(r),n,i,r);return}n.validators===null&&(n.validators=[]),n.validators.push(xA(i,e))},NA=(e,n,i,r)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[f,h]=o[c];Cm(h,Tb(n,f),i,r)}},Tb=(e,n)=>{let i=e;const r=n.split(su),o=r.length;for(let u=0;u<o;u++){const c=r[u];let f=i.nextPart.get(c);f||(f=Eb(),i.nextPart.set(c,f)),i=f}return i},zA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,MA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,i=Object.create(null),r=Object.create(null);const o=(u,c)=>{i[u]=c,n++,n>e&&(n=0,r=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=r[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},Pd="!",k0=":",OA=[],C0=(e,n,i,r,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:i,maybePostfixModifierPosition:r,isExternal:o}),jA=e=>{const{prefix:n,experimentalParseClassName:i}=e;let r=o=>{const u=[];let c=0,f=0,h=0,m;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(c===0&&f===0){if(T===k0){u.push(o.slice(h,k)),h=k+1;continue}if(T==="/"){m=k;continue}}T==="["?c++:T==="]"?c--:T==="("?f++:T===")"&&f--}const g=u.length===0?o:o.slice(h);let v=g,b=!1;g.endsWith(Pd)?(v=g.slice(0,-1),b=!0):g.startsWith(Pd)&&(v=g.slice(1),b=!0);const w=m&&m>h?m-h:void 0;return C0(u,b,v,w)};if(n){const o=n+k0,u=r;r=c=>c.startsWith(o)?u(c.slice(o.length)):C0(OA,!1,c,void 0,!0)}if(i){const o=r;r=u=>i({className:u,parseClassName:o})}return r},RA=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((i,r)=>{n.set(i,1e6+r)}),i=>{const r=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],f=c[0]==="[",h=n.has(c);f||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(c)):o.push(c)}return o.length>0&&(o.sort(),r.push(...o)),r}},LA=e=>({cache:MA(e.cacheSize),parseClassName:jA(e),sortModifiers:RA(e),...wA(e)}),DA=/\s+/,IA=(e,n)=>{const{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:u}=n,c=[],f=e.trim().split(DA);let h="";for(let m=f.length-1;m>=0;m-=1){const y=f[m],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:k}=i(y);if(g){h=y+(h.length>0?" "+h:h);continue}let T=!!k,_=r(T?w.substring(0,k):w);if(!_){if(!T){h=y+(h.length>0?" "+h:h);continue}if(_=r(w),!_){h=y+(h.length>0?" "+h:h);continue}T=!1}const j=v.length===0?"":v.length===1?v[0]:u(v).join(":"),M=b?j+Pd:j,P=M+_;if(c.indexOf(P)>-1)continue;c.push(P);const F=o(_,T);for(let R=0;R<F.length;++R){const H=F[R];c.push(M+H)}h=y+(h.length>0?" "+h:h)}return h},BA=(...e)=>{let n=0,i,r,o="";for(;n<e.length;)(i=e[n++])&&(r=_b(i))&&(o&&(o+=" "),o+=r);return o},_b=e=>{if(typeof e=="string")return e;let n,i="";for(let r=0;r<e.length;r++)e[r]&&(n=_b(e[r]))&&(i&&(i+=" "),i+=n);return i},UA=(e,...n)=>{let i,r,o,u;const c=h=>{const m=n.reduce((y,g)=>g(y),e());return i=LA(m),r=i.cache.get,o=i.cache.set,u=f,f(h)},f=h=>{const m=r(h);if(m)return m;const y=IA(h,i);return o(h,y),y};return u=c,(...h)=>u(BA(...h))},VA=[],Ut=e=>{const n=i=>i[e]||VA;return n.isThemeGetter=!0,n},Nb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,HA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PA=/\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$/,qA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gi=e=>FA.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),yi=e=>!!e&&Number.isInteger(Number(e)),ad=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Il=e=>HA.test(e),Mb=()=>!0,QA=e=>PA.test(e)&&!qA.test(e),Em=()=>!1,XA=e=>GA.test(e),KA=e=>YA.test(e),ZA=e=>!ge(e)&&!ye(e),$A=e=>ki(e,Rb,Em),ge=e=>Nb.test(e),Gi=e=>ki(e,Lb,QA),E0=e=>ki(e,rT,Ie),JA=e=>ki(e,Ib,Mb),WA=e=>ki(e,Db,Em),A0=e=>ki(e,Ob,Em),eT=e=>ki(e,jb,KA),Us=e=>ki(e,Bb,XA),ye=e=>zb.test(e),Wa=e=>tr(e,Lb),tT=e=>tr(e,Db),T0=e=>tr(e,Ob),nT=e=>tr(e,Rb),lT=e=>tr(e,jb),Vs=e=>tr(e,Bb,!0),iT=e=>tr(e,Ib,!0),ki=(e,n,i)=>{const r=Nb.exec(e);return r?r[1]?n(r[1]):i(r[2]):!1},tr=(e,n,i=!1)=>{const r=zb.exec(e);return r?r[1]?n(r[1]):i:!1},Ob=e=>e==="position"||e==="percentage",jb=e=>e==="image"||e==="url",Rb=e=>e==="length"||e==="size"||e==="bg-size",Lb=e=>e==="length",rT=e=>e==="number",Db=e=>e==="family-name",Ib=e=>e==="number"||e==="weight",Bb=e=>e==="shadow",aT=()=>{const e=Ut("color"),n=Ut("font"),i=Ut("text"),r=Ut("font-weight"),o=Ut("tracking"),u=Ut("leading"),c=Ut("breakpoint"),f=Ut("container"),h=Ut("spacing"),m=Ut("radius"),y=Ut("shadow"),g=Ut("inset-shadow"),v=Ut("text-shadow"),b=Ut("drop-shadow"),w=Ut("blur"),k=Ut("perspective"),T=Ut("aspect"),_=Ut("ease"),j=Ut("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...P(),ye,ge],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],V=()=>[ye,ge,h],te=()=>[gi,"full","auto",...V()],I=()=>[yi,"none","subgrid",ye,ge],J=()=>["auto",{span:["full",yi,ye,ge]},yi,ye,ge],ae=()=>[yi,"auto",ye,ge],me=()=>["auto","min","max","fr",ye,ge],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...V()],X=()=>[gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],ne=()=>[gi,"screen","full","dvw","lvw","svw","min","max","fit",...V()],$=()=>[gi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],C=()=>[e,ye,ge],z=()=>[...P(),T0,A0,{position:[ye,ge]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",nT,$A,{size:[ye,ge]}],W=()=>[ad,Wa,Gi],se=()=>["","none","full",m,ye,ge],re=()=>["",Ie,Wa,Gi],ce=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Ie,ad,T0,A0],Ge=()=>["","none",w,ye,ge],We=()=>["none",Ie,ye,ge],ot=()=>["none",Ie,ye,ge],tn=()=>[Ie,ye,ge],St=()=>[gi,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Il],breakpoint:[Il],color:[Mb],container:[Il],"drop-shadow":[Il],ease:["in","out","in-out"],font:[ZA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Il],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Il],shadow:[Il],spacing:["px",Ie],text:[Il],"text-shadow":[Il],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gi,ge,ye,T]}],container:["container"],columns:[{columns:[Ie,ge,ye,f]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:F()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[yi,"auto",ye,ge]}],basis:[{basis:[gi,"full","auto",f,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,gi,"auto","initial","none",ge]}],grow:[{grow:["",Ie,ye,ge]}],shrink:[{shrink:["",Ie,ye,ge]}],order:[{order:[yi,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...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",i,Wa,Gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,iT,JA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,ge]}],"font-family":[{font:[tT,WA,n]}],"font-features":[{"font-features":[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,ge]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,E0]}],leading:[{leading:[u,...V()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,Gi]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],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",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yi,ye,ge],radial:["",ye,ge],conic:[yi,ye,ge]},lT,eT]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,ge]}],"outline-w":[{outline:["",Ie,Wa,Gi]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",y,Vs,Us]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",g,Vs,Us]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Ie,Gi]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",v,Vs,Us]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Ie,ye,ge]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:Ge()}],brightness:[{brightness:[Ie,ye,ge]}],contrast:[{contrast:[Ie,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",b,Vs,Us]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Ie,ye,ge]}],"hue-rotate":[{"hue-rotate":[Ie,ye,ge]}],invert:[{invert:["",Ie,ye,ge]}],saturate:[{saturate:[Ie,ye,ge]}],sepia:[{sepia:["",Ie,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,ge]}],ease:[{ease:["linear","initial",_,ye,ge]}],delay:[{delay:[Ie,ye,ge]}],animate:[{animate:["none",j,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ye,ge]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:We()}],"rotate-x":[{"rotate-x":We()}],"rotate-y":[{"rotate-y":We()}],"rotate-z":[{"rotate-z":We()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:tn()}],"skew-x":[{"skew-x":tn()}],"skew-y":[{"skew-y":tn()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ge]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ye,ge]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Ie,Wa,Gi,E0]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},oT=UA(aT);function Me(...e){return oT(Cb(e))}const xo=({children:e,className:n,shimmerWidth:i=100,animate:r=!0,...o})=>x.jsx("span",{style:{"--shiny-width":`${Math.min(i,100)}px`},className:Me("mx-auto max-w-md text-foreground/50",r?["animate-shiny-text [background-size:var(--shiny-width)_100%] bg-clip-text [background-position:0_0] bg-no-repeat [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]","bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80"]:["text-neutral"],n),...o,children:e}),_0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,N0=Cb,sT=(e,n)=>i=>{var r;if((n==null?void 0:n.variants)==null)return N0(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:u}=n,c=Object.keys(o).map(m=>{const y=i==null?void 0:i[m],g=u==null?void 0:u[m];if(y===null)return null;const v=_0(y)||_0(g);return o[m][v]}),f=i&&Object.entries(i).reduce((m,y)=>{let[g,v]=y;return v===void 0||(m[g]=v),m},{}),h=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((m,y)=>{let{class:g,className:v,...b}=y;return Object.entries(b).every(w=>{let[k,T]=w;return Array.isArray(T)?T.includes({...u,...f}[k]):{...u,...f}[k]===T})?[...m,g,v]:m},[]);return N0(e,c,h,i==null?void 0:i.class,i==null?void 0:i.className)},uT=sT("touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",{variants:{variant:{default:"bg-primary text-primary-foreground disabled:bg-primary/50 disabled:text-primary-foreground/90 hover:bg-primary/90",juicy:"bg-logo text-primary-foreground disabled:text-primary-foreground/50 hover:bg-logo/90",destructive:"bg-destructive/80 dark:text-white",outline:"border disabled:bg-transparent disabled:text-foreground/50 border-inpu disabled:border-input/90 bg-card hover:bg-muted hover:text-accent-foreground",secondary:"bg-transparent border border-border text-secondary-foreground hover:text-secondary-foreground/60 disabled:text-secondary-foreground/50",ghost:"hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground disabled:text-muted-foreground/50 border border-border/0 hover:border-border",link:"text-primary disabled:text-primary/50 underline-offset-4 hover:underline",none:""},size:{default:"h-10 px-4 rounded-full py-2",sm:"h-9 rounded-full px-3",lg:"h-11 rounded-full px-8",icon:"h-9 w-9 rounded-full",none:"","icon-sm":"h-5.5 w-5.5 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),an=E.forwardRef(({className:e,variant:n,size:i,...r},o)=>x.jsx("button",{className:Me(uT({variant:n,size:i,className:e})),ref:o,...r}));an.displayName="Button";function Fs(e){if(!e)return;const n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:void 0}function z0(e){var r,o;const n=/^(?<path>\/.+?)#L(?<line>\d+)(?:C(?<column>\d+))?$/.exec(e);if((r=n==null?void 0:n.groups)!=null&&r.path)return{path:n.groups.path,line:Fs(n.groups.line),column:Fs(n.groups.column)};const i=/^(?<path>\/.+?):(?<line>\d+)(?::(?<column>\d+))?$/.exec(e);return(o=i==null?void 0:i.groups)!=null&&o.path?{path:i.groups.path,line:Fs(i.groups.line),column:Fs(i.groups.column)}:e.startsWith("/")?{path:e}:null}function cT(e){if(!e)return null;const n=e.trim();if(!n||/^(mailto:|ftp:|file:)/i.test(n))return null;if(/^https?:/i.test(n)){if(typeof window>"u")return null;try{const i=new URL(n);return i.origin!==window.location.origin||!i.pathname.startsWith("/")?null:z0(`${i.pathname}${i.hash}`)}catch{return null}}return z0(n)}function Hs(e,n){if(!e)return"";if(n){const i=n.endsWith("/")?n:`${n}/`;if(e.startsWith(i))return e.slice(i.length);if(e===n)return""}return e.replace(/^\/home\/user\/workspace\//,"")}const Ub={readonly:!1,localLinkMode:"open",attachmentMode:"live"},Vb=E.createContext(Ub);function fT({children:e,value:n}){return x.jsx(Vb.Provider,{value:{...Ub,...n},children:e})}function Eu(){return E.useContext(Vb)}const Am=()=>{},Fb=E.createContext(Am);function Hb({children:e,onOpenLocalLink:n}){return x.jsx(Fb.Provider,{value:n??Am,children:e})}const qd={Task:qy,TaskOutput:qy,Bash:DC,Glob:Jf,Grep:Jf,ExitPlanMode:Gy,Read:Xv,Edit:Wk,Write:tC,Delete:uC,NotebookEdit:$v,WebFetch:pk,TodoWrite:Ek,WebSearch:Jf,KillShell:RC,AskUserQuestion:Kv,Skill:OC,EnterPlanMode:Gy},Pb=BC;function qb(e){return qd[e]?qd[e]:Pb}function Vl({children:e,className:n}){return x.jsx("div",{className:Me("flex gap-3 justify-start items-center",n),children:e})}function Gb({children:e,className:n}){return x.jsx("div",{className:Me("flex items-center gap-1.5 text-xs",n),children:e})}function wi({children:e,className:n}){return x.jsx("span",{className:Me("font-medium text-foreground/80",n),children:e})}function dT({children:e}){return x.jsx("span",{className:"text-muted-foreground",children:e})}function Au({children:e,expandedContent:n,defaultExpanded:i=!1}){const[r,o]=E.useState(i);return x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsxs("button",{onClick:()=>o(!r),className:`group/expandable-row cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${r?"":"hover:opacity-60 transition-opacity"}`,children:[x.jsx("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:e}),x.jsx(Qi,{className:`h-4.5 w-4.5 text-muted-icon translate-y-[0.5px] transition-all duration-200 opacity-0 group-hover/expandable-row:opacity-100 ${r?"rotate-90 opacity-100":""}`})]}),r&&n]})}function M0({label:e,children:n,copyText:i}){const[r,o]=E.useState(!1),u=i??uu(n),c=E.useCallback(async()=>{await navigator.clipboard.writeText(u),o(!0),setTimeout(()=>o(!1),2e3)},[u]);return x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-muted-foreground",children:e}),x.jsxs("div",{className:"relative group/codeblock",children:[x.jsx("pre",{className:"my-1 text-xs font-mono whitespace-no-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto w-full",children:n}),x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-[4px] right-[4px] z-10 h-6.5 w-6.5 rounded-sm text-muted-foreground opacity-0 group-hover/codeblock:opacity-100 transition-opacity",!r&&"hover:text-foreground",r&&"hover:!bg-transparent hover:!border-transparent"),onClick:c,children:r?x.jsx(Kr,{className:"h-3.5 w-3.5 text-green-400"}):x.jsx(am,{className:"h-4 w-4"})})]})]})}function Yb({children:e,icon:n,className:i}){return x.jsxs("span",{className:Me("inline-flex items-center gap-1 px-2 py-1 bg-muted border border-border rounded-full",i),children:[n&&x.jsx(n,{className:"h-3 w-3 text-muted-foreground"}),e]})}function Tu({children:e,className:n}){return x.jsxs("div",{className:Me("grid grid-cols-[auto_1fr] gap-2 min-w-0",n),children:[x.jsx("div",{className:" min-w-5 flex flex-col relative items-center justify-center",children:x.jsx("div",{className:"min-h-full w-[1px] bg-muted-foreground/20"})}),x.jsx("div",{className:"-ml-[1px] min-w-0 overflow-hidden",children:e})]})}function uu(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(uu).join("");if(e&&typeof e=="object"&&"props"in e){const n=e.props;return uu(n.children)}return""}function O0(e,n){return E.isValidElement(e)?E.cloneElement(e,{className:Me(e.props.className,n)}):e}const mT={h1:({children:e})=>x.jsx("h1",{className:"text-[20px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h2:({children:e})=>x.jsx("h2",{className:"text-[18px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h3:({children:e})=>x.jsx("h3",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h4:({children:e})=>x.jsx("h4",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h5:({children:e})=>x.jsx("h5",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),h6:({children:e})=>x.jsx("h6",{className:"text-[16px] font-normal leading-tight mt-5 mb-3 first:mt-0 last:mb-0",children:e}),pre:({children:e,...n})=>{const[i,r]=E.useState(!1),o=uu(e),u=async()=>{await navigator.clipboard.writeText(o),r(!0),setTimeout(()=>r(!1),2e3)};return x.jsxs("div",{className:"relative overflow-x-auto max-w-full min-w-0 no-code-highlight group/pre",children:[x.jsx("pre",{className:"min-w-0 rounded-xl py-2.5 px-3.5 [.no-pre-highlight_&]:bg-background",...n,children:e}),x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-[35px] -translate-y-[50%] -translate-x-[1px] rounded-md right-1.5 h-8 w-8 text-muted-foreground opacity-0 group-hover/pre:opacity-100 transition-opacity",!i&&"hover:text-foreground",i&&"hover:!bg-transparent hover:!border-transparent"),onClick:u,children:i?x.jsx(Kr,{className:"h-4 w-4 text-green-400"}):x.jsx(am,{className:"h-4 w-4"})})]})},code:({children:e,className:n,...i})=>n?x.jsx("code",{className:"block text-xs whitespace-pre",...i,children:e}):x.jsx("code",{className:"break-all px-1 bg-border/60 dark:[.no-pre-highlight_&]:bg-background dark:[.text-pretty_&]:bg-neutral [.no-code-highlight_&]:!bg-transparent py-0.5 rounded text-sm whitespace-wrap",...i,children:e}),table:({children:e,...n})=>x.jsx("div",{className:"border border-border rounded-xl overflow-x-auto",children:x.jsx("table",{className:"table-auto min-w-full divide-y divide-border bg-background",...n,children:e})}),tbody:({children:e,...n})=>x.jsx("tbody",{className:"divide-y divide-border",...n,children:e}),th:({children:e,...n})=>x.jsx("th",{className:"text-left text-xs uppercase text-muted-foreground tracking-wider p-2 pl-0 first:pl-3 bg-muted dark:bg-card [&_*]:font-semibold",...n,children:e}),td:({children:e,...n})=>x.jsx("td",{className:"text-left p-2 pl-0 first:pl-3 [&_*]:font-normal ",...n,children:e}),p:({children:e,...n})=>x.jsx("p",{className:"break-words mt-5 mb-3 first:mt-0 last:mb-0",...n,children:e}),blockquote:({children:e,...n})=>(()=>{const i=E.Children.toArray(e),r=i[0];r!==void 0&&(i[0]=O0(r,"mt-0"));const o=i.length-1,u=i[o];return u!==void 0&&(i[o]=O0(u,"mb-0")),x.jsx("blockquote",{className:"my-2 mt-5 mb-3 first:mt-0 last:mb-0 border-l-2 border-border/80 pl-2 text-muted-foreground",...n,children:i})})(),a:({children:e,...n})=>x.jsx("a",{className:"transition-all underline decoration-2 text-logo decoration-logo/50 hover:text-logo/70 dark:text-logo dark:decoration-logo/70 dark:hover:text-logo/60 dark:hover:decoration-logo/40 ",target:"_blank",rel:"noopener noreferrer",...n,children:e})};function na(e){return{...mT,a:({children:n,href:i,onClick:r,...o})=>{const u=E.useContext(Fb),c=Eu(),f=cT(i);return f&&c.localLinkMode==="text"?x.jsx("span",{className:"transition-all underline decoration-2 text-logo decoration-logo/50",children:n}):x.jsx("a",{className:"transition-all underline decoration-2 text-logo decoration-logo/50 hover:text-logo/70 dark:text-logo dark:decoration-logo/70 dark:hover:text-logo/60 dark:hover:decoration-logo/40 ",href:i,target:f?void 0:"_blank",rel:f?void 0:"noopener noreferrer",onClick:h=>{r==null||r(h),!(h.defaultPrevented||!f||u===Am)&&(h.preventDefault(),u(f))},...o,children:n})}}}function hT({onStop:e}){return x.jsx(Vl,{className:"ml-[1px]",children:x.jsx(Gb,{children:x.jsxs("div",{className:"group/draining relative flex items-center gap-1.5",children:[x.jsxs("div",{className:"flex items-center gap-1.5 group-hover/draining:opacity-0 transition-opacity",children:[x.jsx(om,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(xo,{className:"ml-[1px] text-sm",shimmerWidth:44,children:"Running..."})]}),x.jsxs("button",{onClick:e,className:"absolute inset-0 flex items-center gap-1.5 opacity-0 group-hover/draining:opacity-100 transition-opacity cursor-pointer",children:[x.jsx(ta,{className:"size-4.5 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Stop"})]})]})})})}function pT(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const gT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vT={};function j0(e,n){return(vT.jsx?yT:gT).test(e)}const bT=/[ \t\n\f\r]/g;function xT(e){return typeof e=="object"?e.type==="text"?R0(e.value):!1:R0(e)}function R0(e){return e.replace(bT,"")===""}class So{constructor(n,i,r){this.normal=i,this.property=n,r&&(this.space=r)}}So.prototype.normal={};So.prototype.property={};So.prototype.space=void 0;function Qb(e,n){const i={},r={};for(const o of e)Object.assign(i,o.property),Object.assign(r,o.normal);return new So(i,r,n)}function Gd(e){return e.toLowerCase()}class vn{constructor(n,i){this.attribute=i,this.property=n}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let ST=0;const Le=nr(),It=nr(),Yd=nr(),ue=nr(),ct=nr(),Qr=nr(),Tn=nr();function nr(){return 2**++ST}const Qd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:It,commaOrSpaceSeparated:Tn,commaSeparated:Qr,number:ue,overloadedBoolean:Yd,spaceSeparated:ct},Symbol.toStringTag,{value:"Module"})),od=Object.keys(Qd);class Tm extends vn{constructor(n,i,r,o){let u=-1;if(super(n,i),L0(this,"space",o),typeof r=="number")for(;++u<od.length;){const c=od[u];L0(this,od[u],(r&Qd[c])===Qd[c])}}}Tm.prototype.defined=!0;function L0(e,n,i){i&&(e[n]=i)}function la(e){const n={},i={};for(const[r,o]of Object.entries(e.properties)){const u=new Tm(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),n[r]=u,i[Gd(r)]=r,i[Gd(u.attribute)]=r}return new So(n,i,e.space)}const Xb=la({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:ct,ariaCurrent:null,ariaDescribedBy:ct,ariaDetails:null,ariaDisabled:It,ariaDropEffect:ct,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:ct,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ct,ariaLevel:ue,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:ct,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:ct,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:It,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Kb(e,n){return n in e?e[n]:n}function Zb(e,n){return Kb(e,n.toLowerCase())}const wT=la({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qr,acceptCharset:ct,accessKey:ct,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ct,autoFocus:Le,autoPlay:Le,blocking:ct,capture:null,charSet:null,checked:Le,cite:null,className:ct,cols:ue,colSpan:null,content:null,contentEditable:It,controls:Le,controlsList:ct,coords:ue|Qr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Yd,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ct,height:ue,hidden:Yd,high:ue,href:null,hrefLang:null,htmlFor:ct,httpEquiv:ct,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ct,itemRef:ct,itemScope:Le,itemType:ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ue,pattern:null,ping:ct,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ct,required:Le,reversed:Le,rows:ue,rowSpan:ue,sandbox:ct,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:It,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ct,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Zb}),kT=la({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:Tn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:ct,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:Qr,g2:Qr,glyphName:Qr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tn,rev:Tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tn,requiredFeatures:Tn,requiredFonts:Tn,requiredFormats:Tn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Kb}),$b=la({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Jb=la({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zb}),Wb=la({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),CT={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"},ET=/[A-Z]/g,D0=/-[a-z]/g,AT=/^data[-\w.:]+$/i;function TT(e,n){const i=Gd(n);let r=n,o=vn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&AT.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(D0,NT);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!D0.test(u)){let c=u.replace(ET,_T);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=Tm}return new o(r,n)}function _T(e){return"-"+e.toLowerCase()}function NT(e){return e.charAt(1).toUpperCase()}const zT=Qb([Xb,wT,$b,Jb,Wb],"html"),_m=Qb([Xb,kT,$b,Jb,Wb],"svg");function MT(e){return e.join(" ").trim()}var Vr={},sd,I0;function OT(){if(I0)return sd;I0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
323
- `,m="/",y="*",g="",v="comment",b="declaration";function w(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var j=1,M=1;function P(oe){var ie=oe.match(n);ie&&(j+=ie.length);var D=oe.lastIndexOf(h);M=~D?oe.length-D:M+oe.length}function F(){var oe={line:j,column:M};return function(ie){return ie.position=new R(oe),te(),ie}}function R(oe){this.start=oe,this.end={line:j,column:M},this.source=_.source}R.prototype.content=T;function H(oe){var ie=new Error(_.source+":"+j+":"+M+": "+oe);if(ie.reason=oe,ie.filename=_.source,ie.line=j,ie.column=M,ie.source=T,!_.silent)throw ie}function V(oe){var ie=oe.exec(T);if(ie){var D=ie[0];return P(D),T=T.slice(D.length),ie}}function te(){V(i)}function I(oe){var ie;for(oe=oe||[];ie=J();)ie!==!1&&oe.push(ie);return oe}function J(){var oe=F();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var ie=2;g!=T.charAt(ie)&&(y!=T.charAt(ie)||m!=T.charAt(ie+1));)++ie;if(ie+=2,g===T.charAt(ie-1))return H("End of comment missing");var D=T.slice(2,ie-2);return M+=2,P(D),T=T.slice(ie),M+=2,oe({type:v,comment:D})}}function ae(){var oe=F(),ie=V(r);if(ie){if(J(),!V(o))return H("property missing ':'");var D=V(u),X=oe({type:b,property:k(ie[0].replace(e,g)),value:D?k(D[0].replace(e,g)):g});return V(c),X}}function me(){var oe=[];I(oe);for(var ie;ie=ae();)ie!==!1&&(oe.push(ie),I(oe));return oe}return te(),me()}function k(T){return T?T.replace(f,g):g}return sd=w,sd}var B0;function jT(){if(B0)return Vr;B0=1;var e=Vr&&Vr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=i;const n=e(OT());function i(r,o){let u=null;if(!r||typeof r!="string")return u;const c=(0,n.default)(r),f=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;f?o(m,y,h):y&&(u=u||{},u[m]=y)}),u}return Vr}var eo={},U0;function RT(){if(U0)return eo;U0=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},c=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,f):m=m.replace(r,f),m.replace(n,c))};return eo.camelCase=h,eo}var to,V0;function LT(){if(V0)return to;V0=1;var e=to&&to.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(jT()),i=RT();function r(o,u){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,i.camelCase)(f,u)]=h)}),c}return r.default=r,to=r,to}var DT=LT();const IT=gu(DT),e1=t1("end"),Nm=t1("start");function t1(e){return n;function n(i){const r=i&&i.position&&i.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function BT(e){const n=Nm(e),i=e1(e);if(n&&i)return{start:n,end:i}}function ao(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?F0(e.position):"start"in e||"end"in e?F0(e):"line"in e||"column"in e?Xd(e):""}function Xd(e){return H0(e&&e.line)+":"+H0(e&&e.column)}function F0(e){return Xd(e&&e.start)+"-"+Xd(e&&e.end)}function H0(e){return e&&typeof e=="number"?e:1}class en extends Error{constructor(n,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let o="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof n=="string"?o=n:!u.cause&&n&&(c=!0,o=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof r=="string"){const h=r.indexOf(":");h===-1?u.ruleId=r:(u.source=r.slice(0,h),u.ruleId=r.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=ao(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}en.prototype.file="";en.prototype.name="";en.prototype.reason="";en.prototype.message="";en.prototype.stack="";en.prototype.column=void 0;en.prototype.line=void 0;en.prototype.ancestors=void 0;en.prototype.cause=void 0;en.prototype.fatal=void 0;en.prototype.place=void 0;en.prototype.ruleId=void 0;en.prototype.source=void 0;const zm={}.hasOwnProperty,UT=new Map,VT=/[A-Z]/g,FT=new Set(["table","tbody","thead","tfoot","tr"]),HT=new Set(["td","th"]),n1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function PT(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$T(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ZT(i,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?_m:zT,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=l1(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function l1(e,n,i){if(n.type==="element")return qT(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return GT(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return QT(e,n,i);if(n.type==="mdxjsEsm")return YT(e,n);if(n.type==="root")return XT(e,n,i);if(n.type==="text")return KT(e,n)}function qT(e,n,i){const r=e.schema;let o=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=_m,e.schema=o),e.ancestors.push(n);const u=r1(e,n.tagName,!1),c=JT(e,n);let f=Om(e,n);return FT.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!xT(h):!0})),i1(e,c,u,n),Mm(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,i)}function GT(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}po(e,n.position)}function YT(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);po(e,n.position)}function QT(e,n,i){const r=e.schema;let o=r;n.name==="svg"&&r.space==="html"&&(o=_m,e.schema=o),e.ancestors.push(n);const u=n.name===null?e.Fragment:r1(e,n.name,!0),c=WT(e,n),f=Om(e,n);return i1(e,c,u,n),Mm(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,i)}function XT(e,n,i){const r={};return Mm(r,Om(e,n)),e.create(n,e.Fragment,r,i)}function KT(e,n){return n.value}function i1(e,n,i,r){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=r)}function Mm(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function ZT(e,n,i){return r;function r(o,u,c,f){const m=Array.isArray(c.children)?i:n;return f?m(u,c,f):m(u,c)}}function $T(e,n){return i;function i(r,o,u,c){const f=Array.isArray(u.children),h=Nm(r);return n(o,u,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function JT(e,n){const i={};let r,o;for(o in n.properties)if(o!=="children"&&zm.call(n.properties,o)){const u=e_(e,o,n.properties[o]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&HT.has(n.tagName)?r=f:i[c]=f}}if(r){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function WT(e,n){const i={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else po(e,n.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else po(e,n.position);else u=r.value===null?!0:r.value;i[o]=u}return i}function Om(e,n){const i=[];let r=-1;const o=e.passKeys?new Map:UT;for(;++r<n.children.length;){const u=n.children[r];let c;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const m=o.get(h)||0;c=h+"-"+m,o.set(h,m+1)}}const f=l1(e,u,c);f!==void 0&&i.push(f)}return i}function e_(e,n,i){const r=TT(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?pT(i):MT(i)),r.property==="style"){let o=typeof i=="object"?i:t_(e,String(i));return e.stylePropertyNameCase==="css"&&(o=n_(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?CT[r.property]||r.property:r.attribute,i]}}function t_(e,n){try{return IT(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const r=i,o=new en("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=n1+"#cannot-parse-style-attribute",o}}function r1(e,n,i){let r;if(!i)r={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let u=-1,c;for(;++u<o.length;){const f=j0(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}r=c}else r=j0(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const o=r.value;return zm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);po(e)}function po(e,n){const i=new en("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=n1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function n_(e){const n={};let i;for(i in e)zm.call(e,i)&&(n[l_(i)]=e[i]);return n}function l_(e){let n=e.replace(VT,i_);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function i_(e){return"-"+e.toLowerCase()}const ud={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"]},r_={};function jm(e,n){const i=r_,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return a1(e,r,o)}function a1(e,n,i){if(a_(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return P0(e.children,n,i)}return Array.isArray(e)?P0(e,n,i):""}function P0(e,n,i){const r=[];let o=-1;for(;++o<e.length;)r[o]=a1(e[o],n,i);return r.join("")}function a_(e){return!!(e&&typeof e=="object")}const q0=document.createElement("i");function Rm(e){const n="&"+e+";";q0.innerHTML=n;const i=q0.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function _n(e,n,i,r){const o=e.length;let u=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);u<r.length;)c=r.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Gn(e,n){return e.length>0?(_n(e,e.length,0,n),e):n}const G0={}.hasOwnProperty;function o1(e){const n={};let i=-1;for(;++i<e.length;)o_(n,e[i]);return n}function o_(e,n){let i;for(i in n){const o=(G0.call(e,i)?e[i]:void 0)||(e[i]={}),u=n[i];let c;if(u)for(c in u){G0.call(o,c)||(o[c]=[]);const f=u[c];s_(o[c],Array.isArray(f)?f:f?[f]:[])}}}function s_(e,n){let i=-1;const r=[];for(;++i<n.length;)(n[i].add==="after"?e:r).push(n[i]);_n(e,0,0,r)}function s1(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=Ci(/[A-Za-z]/),Wt=Ci(/[\dA-Za-z]/),u_=Ci(/[#-'*+\--9=?A-Z^-~]/);function cu(e){return e!==null&&(e<32||e===127)}const Kd=Ci(/\d/),c_=Ci(/[\dA-Fa-f]/),f_=Ci(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const _u=Ci(new RegExp("\\p{P}|\\p{S}","u")),Zi=Ci(/\s/);function Ci(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function ia(e){const n=[];let i=-1,r=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&Wt(e.charCodeAt(i+1))&&Wt(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(i+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),o=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(r,i),encodeURIComponent(c)),r=i+o+1,c=""),o&&(i+=o,o=0)}return n.join("")+e.slice(r)}function Qe(e,n,i,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return Fe(h)?(e.enter(i),f(h)):n(h)}function f(h){return Fe(h)&&u++<o?(e.consume(h),f):(e.exit(i),n(h))}}const d_={tokenize:m_};function m_(e){const n=e.attempt(this.parser.constructs.contentInitial,r,o);let i;return n;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const h=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return ke(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const h_={tokenize:p_},Y0={tokenize:g_};function p_(e){const n=this,i=[];let r=0,o,u,c;return f;function f(M){if(r<i.length){const P=i[r];return n.containerState=P[1],e.attempt(P[0].continuation,h,m)(M)}return m(M)}function h(M){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&j();const P=n.events.length;let F=P,R;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){R=n.events[F][1].end;break}_(r);let H=P;for(;H<n.events.length;)n.events[H][1].end={...R},H++;return _n(n.events,F+1,0,n.events.slice(P)),n.events.length=H,m(M)}return f(M)}function m(M){if(r===i.length){if(!o)return v(M);if(o.currentConstruct&&o.currentConstruct.concrete)return w(M);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Y0,y,g)(M)}function y(M){return o&&j(),_(r),v(M)}function g(M){return n.parser.lazy[n.now().line]=r!==i.length,c=n.now().offset,w(M)}function v(M){return n.containerState={},e.attempt(Y0,b,w)(M)}function b(M){return r++,i.push([n.currentConstruct,n.containerState]),v(M)}function w(M){if(M===null){o&&j(),_(0),e.consume(M);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),k(M)}function k(M){if(M===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(M);return}return ke(M)?(e.consume(M),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,f):(e.consume(M),k)}function T(M,P){const F=n.sliceStream(M);if(P&&F.push(null),M.previous=u,u&&(u.next=M),u=M,o.defineSkip(M.start),o.write(F),n.parser.lazy[M.start.line]){let R=o.events.length;for(;R--;)if(o.events[R][1].start.offset<c&&(!o.events[R][1].end||o.events[R][1].end.offset>c))return;const H=n.events.length;let V=H,te,I;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(te){I=n.events[V][1].end;break}te=!0}for(_(r),R=H;R<n.events.length;)n.events[R][1].end={...I},R++;_n(n.events,V+1,0,n.events.slice(H)),n.events.length=R}}function _(M){let P=i.length;for(;P-- >M;){const F=i[P];n.containerState=F[1],F[0].exit.call(n,e)}i.length=M}function j(){o.write([null]),u=void 0,o=void 0,n.containerState._closeFlow=void 0}}function g_(e,n,i){return Qe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Wr(e){if(e===null||ut(e)||Zi(e))return 1;if(_u(e))return 2}function Nu(e,n,i){const r=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!r.includes(u)&&(n=u(n,i),r.push(u))}return n}const Zd={name:"attention",resolveAll:y_,tokenize:v_};function y_(e,n){let i=-1,r,o,u,c,f,h,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(r=i;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[r][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;h=e[r][1].end.offset-e[r][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[r][1].end},v={...e[i][1].start};Q0(g,-h),Q0(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:h>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[i][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[r][1].end={...c.start},e[i][1].start={...f.end},m=[],e[r][1].end.offset-e[r][1].start.offset&&(m=Gn(m,[["enter",e[r][1],n],["exit",e[r][1],n]])),m=Gn(m,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",u,n]]),m=Gn(m,Nu(n.parser.constructs.insideSpan.null,e.slice(r+1,i),n)),m=Gn(m,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=Gn(m,[["enter",e[i][1],n],["exit",e[i][1],n]])):y=0,_n(e,r-1,i-r+3,m),i=r+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function v_(e,n){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Wr(r);let u;return c;function c(h){return u=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===u)return e.consume(h),f;const m=e.exit("attentionSequence"),y=Wr(h),g=!y||y===2&&o||i.includes(h),v=!o||o===2&&y||i.includes(r);return m._open=!!(u===42?g:g&&(o||!v)),m._close=!!(u===42?v:v&&(y||!g)),n(h)}}function Q0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const b_={name:"autolink",tokenize:x_};function x_(e,n,i){let r=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(b){return sn(b)?(e.consume(b),c):b===64?i(b):m(b)}function c(b){return b===43||b===45||b===46||Wt(b)?(r=1,f(b)):m(b)}function f(b){return b===58?(e.consume(b),r=0,h):(b===43||b===45||b===46||Wt(b))&&r++<32?(e.consume(b),f):(r=0,m(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||cu(b)?i(b):(e.consume(b),h)}function m(b){return b===64?(e.consume(b),y):u_(b)?(e.consume(b),m):i(b)}function y(b){return Wt(b)?g(b):i(b)}function g(b){return b===46?(e.consume(b),r=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):v(b)}function v(b){if((b===45||Wt(b))&&r++<63){const w=b===45?v:g;return e.consume(b),w}return i(b)}}const wo={partial:!0,tokenize:S_};function S_(e,n,i){return r;function r(u){return Fe(u)?Qe(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||ke(u)?n(u):i(u)}}const u1={continuation:{tokenize:k_},exit:C_,name:"blockQuote",tokenize:w_};function w_(e,n,i){const r=this;return o;function o(c){if(c===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Fe(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function k_(e,n,i){const r=this;return o;function o(c){return Fe(c)?Qe(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(u1,n,i)(c)}}function C_(e){e.exit("blockQuote")}const c1={name:"characterEscape",tokenize:E_};function E_(e,n,i){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return f_(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(u)}}const f1={name:"characterReference",tokenize:A_};function A_(e,n,i){const r=this;let o=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=Wt,y(g))}function m(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=c_,y):(e.enter("characterReferenceValue"),u=7,c=Kd,y(g))}function y(g){if(g===59&&o){const v=e.exit("characterReferenceValue");return c===Wt&&!Rm(r.sliceSerialize(v))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&o++<u?(e.consume(g),y):i(g)}}const X0={partial:!0,tokenize:__},K0={concrete:!0,name:"codeFenced",tokenize:T_};function T_(e,n,i){const r=this,o={partial:!0,tokenize:F};let u=0,c=0,f;return h;function h(R){return m(R)}function m(R){const H=r.events[r.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,f=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(R)}function y(R){return R===f?(c++,e.consume(R),y):c<3?i(R):(e.exit("codeFencedFenceSequence"),Fe(R)?Qe(e,g,"whitespace")(R):g(R))}function g(R){return R===null||ke(R)?(e.exit("codeFencedFence"),r.interrupt?n(R):e.check(X0,k,P)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||ke(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):Fe(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,b,"whitespace")(R)):R===96&&R===f?i(R):(e.consume(R),v)}function b(R){return R===null||ke(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(R))}function w(R){return R===null||ke(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===f?i(R):(e.consume(R),w)}function k(R){return e.attempt(o,P,T)(R)}function T(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),_}function _(R){return u>0&&Fe(R)?Qe(e,j,"linePrefix",u+1)(R):j(R)}function j(R){return R===null||ke(R)?e.check(X0,k,P)(R):(e.enter("codeFlowValue"),M(R))}function M(R){return R===null||ke(R)?(e.exit("codeFlowValue"),j(R)):(e.consume(R),M)}function P(R){return e.exit("codeFenced"),n(R)}function F(R,H,V){let te=0;return I;function I(ie){return R.enter("lineEnding"),R.consume(ie),R.exit("lineEnding"),J}function J(ie){return R.enter("codeFencedFence"),Fe(ie)?Qe(R,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):ae(ie)}function ae(ie){return ie===f?(R.enter("codeFencedFenceSequence"),me(ie)):V(ie)}function me(ie){return ie===f?(te++,R.consume(ie),me):te>=c?(R.exit("codeFencedFenceSequence"),Fe(ie)?Qe(R,oe,"whitespace")(ie):oe(ie)):V(ie)}function oe(ie){return ie===null||ke(ie)?(R.exit("codeFencedFence"),H(ie)):V(ie)}}}function __(e,n,i){const r=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return r.parser.lazy[r.now().line]?i(c):n(c)}}const cd={name:"codeIndented",tokenize:z_},N_={partial:!0,tokenize:M_};function z_(e,n,i){const r=this;return o;function o(m){return e.enter("codeIndented"),Qe(e,u,"linePrefix",5)(m)}function u(m){const y=r.events[r.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?h(m):ke(m)?e.attempt(N_,c,h)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||ke(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),f)}function h(m){return e.exit("codeIndented"),n(m)}}function M_(e,n,i){const r=this;return o;function o(c){return r.parser.lazy[r.now().line]?i(c):ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Qe(e,u,"linePrefix",5)(c)}function u(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):ke(c)?o(c):i(c)}}const O_={name:"codeText",previous:R_,resolve:j_,tokenize:L_};function j_(e){let n=e.length-4,i=3,r,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=i;++r<n;)if(e[r][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(r=i-1,n++;++r<=n;)o===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(o=r):(r===n||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),n-=r-o-2,r=o+2),o=void 0);return e}function R_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function L_(e,n,i){let r=0,o,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),r++,f):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(u=e.enter("codeTextSequence"),o=0,y(g)):ke(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ke(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),m)}function y(g){return g===96?(e.consume(g),o++,y):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(u.type="codeTextData",m(g))}}class D_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,i,r){const o=i||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&no(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),no(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),no(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);no(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);no(this.left,i.reverse())}}}function no(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function d1(e){const n={};let i=-1,r,o,u,c,f,h,m;const y=new D_(e);for(;++i<y.length;){for(;i in n;)i=n[i];if(r=y.get(i),i&&r[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(h=r[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,I_(y,i)),i=n[i],m=!0);else if(r[1]._container){for(u=i,o=void 0;u--;)if(c=y.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(r[1].end={...y.get(o)[1].start},f=y.slice(o,i),f.unshift(r),y.splice(o,i-o+1,f))}}return _n(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function I_(e,n){const i=e.get(n)[1],r=e.get(n)[2];let o=n-1;const u=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],m={};let y,g,v=-1,b=i,w=0,k=0;const T=[k];for(;b;){for(;e.get(++o)[1]!==b;);u.push(o),b._tokenizer||(y=r.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=i;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(k=v+1,T.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):T.pop(),v=T.length;v--;){const _=f.slice(T[v],T[v+1]),j=u.pop();h.push([j,j+_.length-1]),e.splice(j,2,_)}for(h.reverse(),v=-1;++v<h.length;)m[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return m}const B_={resolve:V_,tokenize:F_},U_={partial:!0,tokenize:H_};function V_(e){return d1(e),e}function F_(e,n){let i;return r;function r(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):ke(f)?e.check(U_,c,u)(f):(e.consume(f),o)}function u(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function H_(e,n,i){const r=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Qe(e,u,"linePrefix")}function u(c){if(c===null||ke(c))return i(c);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(r.parser.constructs.flow,i,n)(c)}}function m1(e,n,i,r,o,u,c,f,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(_){return _===60?(e.enter(r),e.enter(o),e.enter(u),e.consume(_),e.exit(u),v):_===null||_===32||_===41||cu(_)?i(_):(e.enter(r),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(_))}function v(_){return _===62?(e.enter(u),e.consume(_),e.exit(u),e.exit(o),e.exit(r),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(_))}function b(_){return _===62?(e.exit("chunkString"),e.exit(f),v(_)):_===null||_===60||ke(_)?i(_):(e.consume(_),_===92?w:b)}function w(_){return _===60||_===62||_===92?(e.consume(_),b):b(_)}function k(_){return!y&&(_===null||_===41||ut(_))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(r),n(_)):y<m&&_===40?(e.consume(_),y++,k):_===41?(e.consume(_),y--,k):_===null||_===32||_===40||cu(_)?i(_):(e.consume(_),_===92?T:k)}function T(_){return _===40||_===41||_===92?(e.consume(_),k):k(_)}}function h1(e,n,i,r,o,u){const c=this;let f=0,h;return m;function m(b){return e.enter(r),e.enter(o),e.consume(b),e.exit(o),e.enter(u),y}function y(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(u),e.enter(o),e.consume(b),e.exit(o),e.exit(r),n):ke(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||ke(b)||f++>999?(e.exit("chunkString"),y(b)):(e.consume(b),h||(h=!Fe(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function p1(e,n,i,r,o,u){let c;return f;function f(v){return v===34||v===39||v===40?(e.enter(r),e.enter(o),e.consume(v),e.exit(o),c=v===40?41:v,h):i(v)}function h(v){return v===c?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),n):(e.enter(u),m(v))}function m(v){return v===c?(e.exit(u),h(c)):v===null?i(v):ke(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Qe(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||ke(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(e.consume(v),y):y(v)}}function oo(e,n){let i;return r;function r(o){return ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,r):Fe(o)?Qe(e,r,i?"linePrefix":"lineSuffix")(o):n(o)}}const P_={name:"definition",tokenize:G_},q_={partial:!0,tokenize:Y_};function G_(e,n,i){const r=this;let o;return u;function u(b){return e.enter("definition"),c(b)}function c(b){return h1.call(r,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):i(b)}function h(b){return ut(b)?oo(e,m)(b):m(b)}function m(b){return m1(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(q_,g,g)(b)}function g(b){return Fe(b)?Qe(e,v,"whitespace")(b):v(b)}function v(b){return b===null||ke(b)?(e.exit("definition"),r.parser.defined.push(o),n(b)):i(b)}}function Y_(e,n,i){return r;function r(f){return ut(f)?oo(e,o)(f):i(f)}function o(f){return p1(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Fe(f)?Qe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||ke(f)?n(f):i(f)}}const Q_={name:"hardBreakEscape",tokenize:X_};function X_(e,n,i){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return ke(u)?(e.exit("hardBreakEscape"),n(u)):i(u)}}const K_={name:"headingAtx",resolve:Z_,tokenize:$_};function Z_(e,n){let i=e.length-2,r=3,o,u;return e[r][1].type==="whitespace"&&(r+=2),i-2>r&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&e[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[i][1].end},u={type:"chunkText",start:e[r][1].start,end:e[i][1].end,contentType:"text"},_n(e,r,i-r+1,[["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n]])),e}function $_(e,n,i){let r=0;return o;function o(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&r++<6?(e.consume(y),c):y===null||ut(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||ke(y)?(e.exit("atxHeading"),n(y)):Fe(y)?Qe(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||ut(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const J_=["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"],Z0=["pre","script","style","textarea"],W_={concrete:!0,name:"htmlFlow",resolveTo:nN,tokenize:lN},eN={partial:!0,tokenize:rN},tN={partial:!0,tokenize:iN};function nN(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function lN(e,n,i){const r=this;let o,u,c,f,h;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),u=!0,k):N===63?(e.consume(N),o=3,r.interrupt?n:C):sn(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function v(N){return N===45?(e.consume(N),o=2,b):N===91?(e.consume(N),o=5,f=0,w):sn(N)?(e.consume(N),o=4,r.interrupt?n:C):i(N)}function b(N){return N===45?(e.consume(N),r.interrupt?n:C):i(N)}function w(N){const W="CDATA[";return N===W.charCodeAt(f++)?(e.consume(N),f===W.length?r.interrupt?n:ae:w):i(N)}function k(N){return sn(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function T(N){if(N===null||N===47||N===62||ut(N)){const W=N===47,se=c.toLowerCase();return!W&&!u&&Z0.includes(se)?(o=1,r.interrupt?n(N):ae(N)):J_.includes(c.toLowerCase())?(o=6,W?(e.consume(N),_):r.interrupt?n(N):ae(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(N):u?j(N):M(N))}return N===45||Wt(N)?(e.consume(N),c+=String.fromCharCode(N),T):i(N)}function _(N){return N===62?(e.consume(N),r.interrupt?n:ae):i(N)}function j(N){return Fe(N)?(e.consume(N),j):I(N)}function M(N){return N===47?(e.consume(N),I):N===58||N===95||sn(N)?(e.consume(N),P):Fe(N)?(e.consume(N),M):I(N)}function P(N){return N===45||N===46||N===58||N===95||Wt(N)?(e.consume(N),P):F(N)}function F(N){return N===61?(e.consume(N),R):Fe(N)?(e.consume(N),F):M(N)}function R(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),h=N,H):Fe(N)?(e.consume(N),R):V(N)}function H(N){return N===h?(e.consume(N),h=null,te):N===null||ke(N)?i(N):(e.consume(N),H)}function V(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||ut(N)?F(N):(e.consume(N),V)}function te(N){return N===47||N===62||Fe(N)?M(N):i(N)}function I(N){return N===62?(e.consume(N),J):i(N)}function J(N){return N===null||ke(N)?ae(N):Fe(N)?(e.consume(N),J):i(N)}function ae(N){return N===45&&o===2?(e.consume(N),D):N===60&&o===1?(e.consume(N),X):N===62&&o===4?(e.consume(N),z):N===63&&o===3?(e.consume(N),C):N===93&&o===5?(e.consume(N),$):ke(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(eN,U,me)(N)):N===null||ke(N)?(e.exit("htmlFlowData"),me(N)):(e.consume(N),ae)}function me(N){return e.check(tN,oe,U)(N)}function oe(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ie}function ie(N){return N===null||ke(N)?me(N):(e.enter("htmlFlowData"),ae(N))}function D(N){return N===45?(e.consume(N),C):ae(N)}function X(N){return N===47?(e.consume(N),c="",ne):ae(N)}function ne(N){if(N===62){const W=c.toLowerCase();return Z0.includes(W)?(e.consume(N),z):ae(N)}return sn(N)&&c.length<8?(e.consume(N),c+=String.fromCharCode(N),ne):ae(N)}function $(N){return N===93?(e.consume(N),C):ae(N)}function C(N){return N===62?(e.consume(N),z):N===45&&o===2?(e.consume(N),C):ae(N)}function z(N){return N===null||ke(N)?(e.exit("htmlFlowData"),U(N)):(e.consume(N),z)}function U(N){return e.exit("htmlFlow"),n(N)}}function iN(e,n,i){const r=this;return o;function o(c){return ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return r.parser.lazy[r.now().line]?i(c):n(c)}}function rN(e,n,i){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(wo,n,i)}}const aN={name:"htmlText",tokenize:oN};function oN(e,n,i){const r=this;let o,u,c;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),m):C===47?(e.consume(C),F):C===63?(e.consume(C),M):sn(C)?(e.consume(C),V):i(C)}function m(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),u=0,w):sn(C)?(e.consume(C),j):i(C)}function y(C){return C===45?(e.consume(C),b):i(C)}function g(C){return C===null?i(C):C===45?(e.consume(C),v):ke(C)?(c=g,X(C)):(e.consume(C),g)}function v(C){return C===45?(e.consume(C),b):g(C)}function b(C){return C===62?D(C):C===45?v(C):g(C)}function w(C){const z="CDATA[";return C===z.charCodeAt(u++)?(e.consume(C),u===z.length?k:w):i(C)}function k(C){return C===null?i(C):C===93?(e.consume(C),T):ke(C)?(c=k,X(C)):(e.consume(C),k)}function T(C){return C===93?(e.consume(C),_):k(C)}function _(C){return C===62?D(C):C===93?(e.consume(C),_):k(C)}function j(C){return C===null||C===62?D(C):ke(C)?(c=j,X(C)):(e.consume(C),j)}function M(C){return C===null?i(C):C===63?(e.consume(C),P):ke(C)?(c=M,X(C)):(e.consume(C),M)}function P(C){return C===62?D(C):M(C)}function F(C){return sn(C)?(e.consume(C),R):i(C)}function R(C){return C===45||Wt(C)?(e.consume(C),R):H(C)}function H(C){return ke(C)?(c=H,X(C)):Fe(C)?(e.consume(C),H):D(C)}function V(C){return C===45||Wt(C)?(e.consume(C),V):C===47||C===62||ut(C)?te(C):i(C)}function te(C){return C===47?(e.consume(C),D):C===58||C===95||sn(C)?(e.consume(C),I):ke(C)?(c=te,X(C)):Fe(C)?(e.consume(C),te):D(C)}function I(C){return C===45||C===46||C===58||C===95||Wt(C)?(e.consume(C),I):J(C)}function J(C){return C===61?(e.consume(C),ae):ke(C)?(c=J,X(C)):Fe(C)?(e.consume(C),J):te(C)}function ae(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),o=C,me):ke(C)?(c=ae,X(C)):Fe(C)?(e.consume(C),ae):(e.consume(C),oe)}function me(C){return C===o?(e.consume(C),o=void 0,ie):C===null?i(C):ke(C)?(c=me,X(C)):(e.consume(C),me)}function oe(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||ut(C)?te(C):(e.consume(C),oe)}function ie(C){return C===47||C===62||ut(C)?te(C):i(C)}function D(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):i(C)}function X(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return Fe(C)?Qe(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):$(C)}function $(C){return e.enter("htmlTextData"),c(C)}}const Lm={name:"labelEnd",resolveAll:fN,resolveTo:dN,tokenize:mN},sN={tokenize:hN},uN={tokenize:pN},cN={tokenize:gN};function fN(e){let n=-1;const i=[];for(;++n<e.length;){const r=e[n][1];if(i.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",n+=o}}return e.length!==i.length&&_n(e,0,e.length,i),e}function dN(e,n){let i=e.length,r=0,o,u,c,f;for(;i--;)if(o=e[i][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=i,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(c=i);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",m,n]],f=Gn(f,e.slice(u+1,u+r+3)),f=Gn(f,[["enter",y,n]]),f=Gn(f,Nu(n.parser.constructs.insideSpan.null,e.slice(u+r+4,c-3),n)),f=Gn(f,[["exit",y,n],e[c-2],e[c-1],["exit",m,n]]),f=Gn(f,e.slice(c+1)),f=Gn(f,[["exit",h,n]]),_n(e,u,e.length,f),e}function mN(e,n,i){const r=this;let o=r.events.length,u,c;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){u=r.events[o][1];break}return f;function f(v){return u?u._inactive?g(v):(c=r.parser.defined.includes(il(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):i(v)}function h(v){return v===40?e.attempt(sN,y,c?y:g)(v):v===91?e.attempt(uN,y,c?m:g)(v):c?y(v):g(v)}function m(v){return e.attempt(cN,y,g)(v)}function y(v){return n(v)}function g(v){return u._balanced=!0,i(v)}}function hN(e,n,i){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return ut(g)?oo(e,u)(g):u(g)}function u(g){return g===41?y(g):m1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return ut(g)?oo(e,h)(g):y(g)}function f(g){return i(g)}function h(g){return g===34||g===39||g===40?p1(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return ut(g)?oo(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):i(g)}}function pN(e,n,i){const r=this;return o;function o(f){return h1.call(r,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return r.parser.defined.includes(il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function gN(e,n,i){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):i(u)}}const yN={name:"labelStartImage",resolveAll:Lm.resolveAll,tokenize:vN};function vN(e,n,i){const r=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(f):n(f)}}const bN={name:"labelStartLink",resolveAll:Lm.resolveAll,tokenize:xN};function xN(e,n,i){const r=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):n(c)}}const fd={name:"lineEnding",tokenize:SN};function SN(e,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qe(e,n,"linePrefix")}}const nu={name:"thematicBreak",tokenize:wN};function wN(e,n,i){let r=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,f(m)}function f(m){return m===o?(e.enter("thematicBreakSequence"),h(m)):r>=3&&(m===null||ke(m))?(e.exit("thematicBreak"),n(m)):i(m)}function h(m){return m===o?(e.consume(m),r++,h):(e.exit("thematicBreakSequence"),Fe(m)?Qe(e,f,"whitespace")(m):f(m))}}const gn={continuation:{tokenize:AN},exit:_N,name:"list",tokenize:EN},kN={partial:!0,tokenize:NN},CN={partial:!0,tokenize:TN};function EN(e,n,i){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(b){const w=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Kd(b)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(nu,i,m)(b):m(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return i(b)}function h(b){return Kd(b)&&++c<10?(e.consume(b),h):(!r.interrupt||c<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),m(b)):i(b)}function m(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(wo,r.interrupt?i:y,e.attempt(kN,v,g))}function y(b){return r.containerState.initialBlankLine=!0,u++,v(b)}function g(b){return Fe(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):i(b)}function v(b){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function AN(e,n,i){const r=this;return r.containerState._closeFlow=void 0,e.check(wo,o,u);function o(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(e,n,"listItemIndent",r.containerState.size+1)(f)}function u(f){return r.containerState.furtherBlankLines||!Fe(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(CN,n,c)(f))}function c(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(e,e.attempt(gn,n,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function TN(e,n,i){const r=this;return Qe(e,o,"listItemIndent",r.containerState.size+1);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?n(u):i(u)}}function _N(e){e.exit(this.containerState.type)}function NN(e,n,i){const r=this;return Qe(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=r.events[r.events.length-1];return!Fe(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):i(u)}}const $0={name:"setextUnderline",resolveTo:zN,tokenize:MN};function zN(e,n){let i=e.length,r,o,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){r=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end={...e[u][1].end}):e[r][1]=c,e.push(["exit",c,n]),e}function MN(e,n,i){const r=this;let o;return u;function u(m){let y=r.events.length,g;for(;y--;)if(r.events[y][1].type!=="lineEnding"&&r.events[y][1].type!=="linePrefix"&&r.events[y][1].type!=="content"){g=r.events[y][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),o=m,c(m)):i(m)}function c(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===o?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Fe(m)?Qe(e,h,"lineSuffix")(m):h(m))}function h(m){return m===null||ke(m)?(e.exit("setextHeadingLine"),n(m)):i(m)}}const ON={tokenize:jN};function jN(e){const n=this,i=e.attempt(wo,r,e.attempt(this.parser.constructs.flowInitial,o,Qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(B_,o)),"linePrefix")));return i;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const RN={resolveAll:y1()},LN=g1("string"),DN=g1("text");function g1(e){return{resolveAll:y1(e==="text"?IN:void 0),tokenize:n};function n(i){const r=this,o=this.parser.constructs[e],u=i.attempt(o,c,f);return c;function c(y){return m(y)?u(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),h}function h(y){return m(y)?(i.exit("data"),u(y)):(i.consume(y),h)}function m(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function y1(e){return n;function n(i,r){let o=-1,u;for(;++o<=i.length;)u===void 0?i[o]&&i[o][1].type==="data"&&(u=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==u+2&&(i[u][1].end=i[o-1][1].end,i.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(i,r):i}}function IN(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const r=e[i-1][1],o=n.sliceStream(r);let u=o.length,c=-1,f=0,h;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)h=!0,f++;else if(m!==-1){u++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const m={type:i===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:r.start._bufferIndex+c,_index:r.start._index+u,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(e.splice(i,0,["enter",m,n],["exit",m,n]),i+=2)}i++}return e}const BN={42:gn,43:gn,45:gn,48:gn,49:gn,50:gn,51:gn,52:gn,53:gn,54:gn,55:gn,56:gn,57:gn,62:u1},UN={91:P_},VN={[-2]:cd,[-1]:cd,32:cd},FN={35:K_,42:nu,45:[$0,nu],60:W_,61:$0,95:nu,96:K0,126:K0},HN={38:f1,92:c1},PN={[-5]:fd,[-4]:fd,[-3]:fd,33:yN,38:f1,42:Zd,60:[b_,aN],91:bN,92:[Q_,c1],93:Lm,95:Zd,96:O_},qN={null:[Zd,RN]},GN={null:[42,95]},YN={null:[]},QN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:GN,contentInitial:UN,disable:YN,document:BN,flow:FN,flowInitial:VN,insideSpan:qN,string:HN,text:PN},Symbol.toStringTag,{value:"Module"}));function XN(e,n,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let c=[],f=[];const h={attempt:H(F),check:H(R),consume:j,enter:M,exit:P,interrupt:H(R,{interrupt:!0})},m={code:null,containerState:{},defineSkip:k,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:g};let y=n.tokenize.call(m,h);return n.resolveAll&&u.push(n),m;function g(J){return c=Gn(c,J),T(),c[c.length-1]!==null?[]:(V(n,0),m.events=Nu(u,m.events,m),m.events)}function v(J,ae){return ZN(b(J),ae)}function b(J){return KN(c,J)}function w(){const{_bufferIndex:J,_index:ae,line:me,column:oe,offset:ie}=r;return{_bufferIndex:J,_index:ae,line:me,column:oe,offset:ie}}function k(J){o[J.line]=J.column,I()}function T(){let J;for(;r._index<c.length;){const ae=c[r._index];if(typeof ae=="string")for(J=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===J&&r._bufferIndex<ae.length;)_(ae.charCodeAt(r._bufferIndex));else _(ae)}}function _(J){y=y(J)}function j(J){ke(J)?(r.line++,r.column=1,r.offset+=J===-3?2:1,I()):J!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=J}function M(J,ae){const me=ae||{};return me.type=J,me.start=w(),m.events.push(["enter",me,m]),f.push(me),me}function P(J){const ae=f.pop();return ae.end=w(),m.events.push(["exit",ae,m]),ae}function F(J,ae){V(J,ae.from)}function R(J,ae){ae.restore()}function H(J,ae){return me;function me(oe,ie,D){let X,ne,$,C;return Array.isArray(oe)?U(oe):"tokenize"in oe?U([oe]):z(oe);function z(re){return ce;function ce(be){const he=be!==null&&re[be],Ge=be!==null&&re.null,We=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return U(We)(be)}}function U(re){return X=re,ne=0,re.length===0?D:N(re[ne])}function N(re){return ce;function ce(be){return C=te(),$=re,re.partial||(m.currentConstruct=re),re.name&&m.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(ae?Object.assign(Object.create(m),ae):m,h,W,se)(be)}}function W(re){return J($,C),ie}function se(re){return C.restore(),++ne<X.length?N(X[ne]):D}}}function V(J,ae){J.resolveAll&&!u.includes(J)&&u.push(J),J.resolve&&_n(m.events,ae,m.events.length-ae,J.resolve(m.events.slice(ae),m)),J.resolveTo&&(m.events=J.resolveTo(m.events,m))}function te(){const J=w(),ae=m.previous,me=m.currentConstruct,oe=m.events.length,ie=Array.from(f);return{from:oe,restore:D};function D(){r=J,m.previous=ae,m.currentConstruct=me,m.events.length=oe,f=ie,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function KN(e,n){const i=n.start._index,r=n.start._bufferIndex,o=n.end._index,u=n.end._bufferIndex;let c;if(i===o)c=[e[i].slice(r,u)];else{if(c=e.slice(i,o),r>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(r):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function ZN(e,n){let i=-1;const r=[];let o;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
324
- `;break}case-3:{c=`\r
325
- `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,r.push(c)}return r.join("")}function $N(e){const r={constructs:o1([QN,...(e||{}).extensions||[]]),content:o(d_),defined:[],document:o(h_),flow:o(ON),lazy:{},string:o(LN),text:o(DN)};return r;function o(u){return c;function c(f){return XN(r,u,f)}}}function JN(e){for(;!d1(e););return e}const J0=/[\0\t\n\r]/g;function WN(){let e=1,n="",i=!0,r;return o;function o(u,c,f){const h=[];let m,y,g,v,b;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,n="",i&&(u.charCodeAt(0)===65279&&g++,i=void 0);g<u.length;){if(J0.lastIndex=g,m=J0.exec(u),v=m&&m.index!==void 0?m.index:u.length,b=u.charCodeAt(v),!m){n=u.slice(g);break}if(b===10&&g===v&&r)h.push(-3),r=void 0;else switch(r&&(h.push(-5),r=void 0),g<v&&(h.push(u.slice(g,v)),e+=v-g),b){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:r=!0,e=1}g=v+1}return f&&(r&&h.push(-5),n&&h.push(n),h.push(null)),h}}const ez=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tz(e){return e.replace(ez,nz)}function nz(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),u=o===120||o===88;return s1(i.slice(u?2:1),u?16:10)}return Rm(i)||e}const v1={}.hasOwnProperty;function lz(e,n,i){return n&&typeof n=="object"&&(i=n,n=void 0),iz(i)(JN($N(i).document().write(WN()(e,n,!0))))}function iz(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Kn),autolinkProtocol:te,autolinkEmail:te,atxHeading:u(nn),blockQuote:u(Ge),characterEscape:te,characterReference:te,codeFenced:u(We),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(We,c),codeText:u(ot,c),codeTextData:te,data:te,codeFlowValue:te,definition:u(tn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(St),hardBreakEscape:u(Xn),hardBreakTrailing:u(Xn),htmlFlow:u(pl,c),htmlFlowData:te,htmlText:u(pl,c),htmlTextData:te,image:u(gl),label:c,link:u(Kn),listItem:u(zt),listItemValue:v,listOrdered:u(al,g),listUnordered:u(al),paragraph:u(Zn),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(nn),strong:u($n),thematicBreak:u(bn)},exit:{atxHeading:h(),atxHeadingSequence:F,autolink:h(),autolinkEmail:he,autolinkProtocol:be,blockQuote:h(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:ce,codeFenced:h(T),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:I,codeIndented:h(_),codeText:h(ie),codeTextData:I,data:I,definition:h(),definitionDestinationString:P,definitionLabelString:j,definitionTitleString:M,emphasis:h(),hardBreakEscape:h(ae),hardBreakTrailing:h(ae),htmlFlow:h(me),htmlFlowData:I,htmlText:h(oe),htmlTextData:I,image:h(X),label:$,labelText:ne,lineEnding:J,link:h(D),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:W,resourceDestinationString:C,resourceTitleString:z,resource:U,setextHeading:h(V),setextHeadingLineSequence:H,setextHeadingText:R,strong:h(),thematicBreak:h()}};b1(n,(e||{}).mdastExtensions||[]);const i={};return r;function r(K){let fe={type:"root",children:[]};const we={stack:[fe],tokenStack:[],config:n,enter:f,exit:m,buffer:c,resume:y,data:i},_e=[];let He=-1;for(;++He<K.length;)if(K[He][1].type==="listOrdered"||K[He][1].type==="listUnordered")if(K[He][0]==="enter")_e.push(He);else{const Vt=_e.pop();He=o(K,Vt,He)}for(He=-1;++He<K.length;){const Vt=n[K[He][0]];v1.call(Vt,K[He][1].type)&&Vt[K[He][1].type].call(Object.assign({sliceSerialize:K[He][2].sliceSerialize},we),K[He][1])}if(we.tokenStack.length>0){const Vt=we.tokenStack[we.tokenStack.length-1];(Vt[1]||W0).call(we,void 0,Vt[0])}for(fe.position={start:vi(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:vi(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<n.transforms.length;)fe=n.transforms[He](fe)||fe;return fe}function o(K,fe,we){let _e=fe-1,He=-1,Vt=!1,Mt,ft,gt,xt;for(;++_e<=we;){const Be=K[_e];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?He++:He--,xt=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(Mt&&!xt&&!He&&!gt&&(gt=_e),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!He&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||He===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(Mt){let Pt=_e;for(ft=void 0;Pt--;){const Zt=K[Pt];if(Zt[1].type==="lineEnding"||Zt[1].type==="lineEndingBlank"){if(Zt[0]==="exit")continue;ft&&(K[ft][1].type="lineEndingBlank",Vt=!0),Zt[1].type="lineEnding",ft=Pt}else if(!(Zt[1].type==="linePrefix"||Zt[1].type==="blockQuotePrefix"||Zt[1].type==="blockQuotePrefixWhitespace"||Zt[1].type==="blockQuoteMarker"||Zt[1].type==="listItemIndent"))break}gt&&(!ft||gt<ft)&&(Mt._spread=!0),Mt.end=Object.assign({},ft?K[ft][1].start:Be[1].end),K.splice(ft||_e,0,["exit",Mt,Be[2]]),_e++,we++}if(Be[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};Mt=Pt,K.splice(_e,0,["enter",Pt,Be[2]]),_e++,we++,gt=void 0,xt=!0}}}return K[fe][1]._spread=Vt,we}function u(K,fe){return we;function we(_e){f.call(this,K(_e),_e),fe&&fe.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(K,fe,we){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([fe,we||void 0]),K.position={start:vi(fe.start),end:void 0}}function h(K){return fe;function fe(we){K&&K.call(this,we),m.call(this,we)}}function m(K,fe){const we=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==K.type&&(fe?fe.call(this,K,_e[0]):(_e[1]||W0).call(this,K,_e[0]));else throw new Error("Cannot close `"+K.type+"` ("+ao({start:K.start,end:K.end})+"): it’s not open");we.position.end=vi(K.end)}function y(){return jm(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(K){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function b(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=K}function w(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=K}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K.replace(/(\r?\n|\r)$/g,"")}function j(K){const fe=this.resume(),we=this.stack[this.stack.length-1];we.label=fe,we.identifier=il(this.sliceSerialize(K)).toLowerCase()}function M(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.title=K}function P(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.url=K}function F(K){const fe=this.stack[this.stack.length-1];if(!fe.depth){const we=this.sliceSerialize(K).length;fe.depth=we}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function H(K){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function te(K){const we=this.stack[this.stack.length-1].children;let _e=we[we.length-1];(!_e||_e.type!=="text")&&(_e=pt(),_e.position={start:vi(K.start),end:void 0},we.push(_e)),this.stack.push(_e)}function I(K){const fe=this.stack.pop();fe.value+=this.sliceSerialize(K),fe.position.end=vi(K.end)}function J(K){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=fe.children[fe.children.length-1];we.position.end=vi(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(fe.type)&&(te.call(this,K),I.call(this,K))}function ae(){this.data.atHardBreak=!0}function me(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function oe(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function ie(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.value=K}function D(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=fe,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function X(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=fe,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ne(K){const fe=this.sliceSerialize(K),we=this.stack[this.stack.length-2];we.label=tz(fe),we.identifier=il(fe).toLowerCase()}function $(){const K=this.stack[this.stack.length-1],fe=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const _e=K.children;we.children=_e}else we.alt=fe}function C(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.url=K}function z(){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.title=K}function U(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function W(K){const fe=this.resume(),we=this.stack[this.stack.length-1];we.label=fe,we.identifier=il(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function se(K){this.data.characterReferenceType=K.type}function re(K){const fe=this.sliceSerialize(K),we=this.data.characterReferenceType;let _e;we?(_e=s1(fe,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Rm(fe);const He=this.stack[this.stack.length-1];He.value+=_e}function ce(K){const fe=this.stack.pop();fe.position.end=vi(K.end)}function be(K){I.call(this,K);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(K)}function he(K){I.call(this,K);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(K)}function Ge(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function ot(){return{type:"inlineCode",value:""}}function tn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function St(){return{type:"emphasis",children:[]}}function nn(){return{type:"heading",depth:0,children:[]}}function Xn(){return{type:"break"}}function pl(){return{type:"html",value:""}}function gl(){return{type:"image",title:null,url:"",alt:null}}function Kn(){return{type:"link",title:null,url:"",children:[]}}function al(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function zt(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Zn(){return{type:"paragraph",children:[]}}function $n(){return{type:"strong",children:[]}}function pt(){return{type:"text",value:""}}function bn(){return{type:"thematicBreak"}}}function vi(e){return{line:e.line,column:e.column,offset:e.offset}}function b1(e,n){let i=-1;for(;++i<n.length;){const r=n[i];Array.isArray(r)?b1(e,r):rz(e,r)}}function rz(e,n){let i;for(i in n)if(v1.call(n,i))switch(i){case"canContainEols":{const r=n[i];r&&e[i].push(...r);break}case"transforms":{const r=n[i];r&&e[i].push(...r);break}case"enter":case"exit":{const r=n[i];r&&Object.assign(e[i],r);break}}}function W0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ao({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ao({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ao({start:n.start,end:n.end})+") is still open")}function az(e){const n=this;n.parser=i;function i(r){return lz(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function oz(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)}function sz(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
326
- `}]}function uz(e,n){const i=n.value?n.value+`
327
- `:"",r={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u=e.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(n,u),u}function cz(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function fz(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function dz(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),o=ia(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let c,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(r,f);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,m),e.applyData(n,m)}function mz(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function hz(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function x1(e,n){const i=n.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const o=e.all(n),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=r:o.push({type:"text",value:r}),o}function pz(e,n){const i=String(n.identifier).toUpperCase(),r=e.definitionById.get(i);if(!r)return x1(e,n);const o={src:ia(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,u),e.applyData(n,u)}function gz(e,n){const i={src:ia(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const r={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,r),e.applyData(n,r)}function yz(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,r),e.applyData(n,r)}function vz(e,n){const i=String(n.identifier).toUpperCase(),r=e.definitionById.get(i);if(!r)return x1(e,n);const o={href:ia(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function bz(e,n){const i={href:ia(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const r={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function xz(e,n,i){const r=e.all(n),o=i?Sz(i):S1(n),u={},c=[];if(typeof n.checked=="boolean"){const y=r[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const y=r[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
328
- `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=r[r.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
329
- `});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,m),e.applyData(n,m)}function Sz(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let r=-1;for(;!n&&++r<i.length;)n=S1(i[r])}return n}function S1(e){const n=e.spread;return n??e.children.length>1}function wz(e,n){const i={},r=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++o<r.length;){const c=r[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(r,!0)};return e.patch(n,u),e.applyData(n,u)}function kz(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function Cz(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function Ez(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function Az(e,n){const i=e.all(n),r=i.shift(),o=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],c),o.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=Nm(n.children[1]),h=e1(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,u),e.applyData(n,u)}function Tz(e,n,i){const r=i?i.children:void 0,u=(r?r.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let h=-1;const m=[];for(;++h<f;){const g=n.children[h],v={},b=c?c[h]:void 0;b&&(v.align=b);let w={type:"element",tagName:u,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),m.push(w)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(n,y),e.applyData(n,y)}function _z(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const ev=9,tv=32;function Nz(e){const n=String(e),i=/\r?\n|\r/g;let r=i.exec(n),o=0;const u=[];for(;r;)u.push(nv(n.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=i.exec(n);return u.push(nv(n.slice(o),o>0,!1)),u.join("")}function nv(e,n,i){let r=0,o=e.length;if(n){let u=e.codePointAt(r);for(;u===ev||u===tv;)r++,u=e.codePointAt(r)}if(i){let u=e.codePointAt(o-1);for(;u===ev||u===tv;)o--,u=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function zz(e,n){const i={type:"text",value:Nz(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function Mz(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const Oz={blockquote:oz,break:sz,code:uz,delete:cz,emphasis:fz,footnoteReference:dz,heading:mz,html:hz,imageReference:pz,image:gz,inlineCode:yz,linkReference:vz,link:bz,listItem:xz,list:wz,paragraph:kz,root:Cz,strong:Ez,table:Az,tableCell:_z,tableRow:Tz,text:zz,thematicBreak:Mz,toml:Ps,yaml:Ps,definition:Ps,footnoteDefinition:Ps};function Ps(){}const w1=-1,zu=0,so=1,fu=2,Dm=3,Im=4,Bm=5,Um=6,k1=7,C1=8,lv=typeof self=="object"?self:globalThis,jz=(e,n)=>{const i=(o,u)=>(e.set(u,o),o),r=o=>{if(e.has(o))return e.get(o);const[u,c]=n[o];switch(u){case zu:case w1:return i(c,o);case so:{const f=i([],o);for(const h of c)f.push(r(h));return f}case fu:{const f=i({},o);for(const[h,m]of c)f[r(h)]=r(m);return f}case Dm:return i(new Date(c),o);case Im:{const{source:f,flags:h}=c;return i(new RegExp(f,h),o)}case Bm:{const f=i(new Map,o);for(const[h,m]of c)f.set(r(h),r(m));return f}case Um:{const f=i(new Set,o);for(const h of c)f.add(r(h));return f}case k1:{const{name:f,message:h}=c;return i(new lv[f](h),o)}case C1:return i(BigInt(c),o);case"BigInt":return i(Object(BigInt(c)),o);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new lv[u](c),o)};return r},iv=e=>jz(new Map,e)(0),Fr="",{toString:Rz}={},{keys:Lz}=Object,lo=e=>{const n=typeof e;if(n!=="object"||!e)return[zu,n];const i=Rz.call(e).slice(8,-1);switch(i){case"Array":return[so,Fr];case"Object":return[fu,Fr];case"Date":return[Dm,Fr];case"RegExp":return[Im,Fr];case"Map":return[Bm,Fr];case"Set":return[Um,Fr];case"DataView":return[so,i]}return i.includes("Array")?[so,i]:i.includes("Error")?[k1,i]:[fu,i]},qs=([e,n])=>e===zu&&(n==="function"||n==="symbol"),Dz=(e,n,i,r)=>{const o=(c,f)=>{const h=r.push(c)-1;return i.set(f,h),h},u=c=>{if(i.has(c))return i.get(c);let[f,h]=lo(c);switch(f){case zu:{let y=c;switch(h){case"bigint":f=C1,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([w1],c)}return o([f,y],c)}case so:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),o([h,[...v]],c)}const y=[],g=o([f,y],c);for(const v of c)y.push(u(v));return g}case fu:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const y=[],g=o([f,y],c);for(const v of Lz(c))(e||!qs(lo(c[v])))&&y.push([u(v),u(c[v])]);return g}case Dm:return o([f,c.toISOString()],c);case Im:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case Bm:{const y=[],g=o([f,y],c);for(const[v,b]of c)(e||!(qs(lo(v))||qs(lo(b))))&&y.push([u(v),u(b)]);return g}case Um:{const y=[],g=o([f,y],c);for(const v of c)(e||!qs(lo(v)))&&y.push(u(v));return g}}const{message:m}=c;return o([f,{name:h,message:m}],c)};return u},rv=(e,{json:n,lossy:i}={})=>{const r=[];return Dz(!(n||i),!!n,new Map,r)(e),r},du=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?iv(rv(e,n)):structuredClone(e):(e,n)=>iv(rv(e,n));function Iz(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function Bz(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Uz(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||Iz,r=e.options.footnoteBackLabel||Bz,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[h]);if(!m)continue;const y=e.all(m),g=String(m.identifier).toUpperCase(),v=ia(g.toLowerCase());let b=0;const w=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++b<=k;){w.length>0&&w.push({type:"text",value:" "});let j=typeof i=="string"?i:i(h,b);typeof j=="string"&&(j={type:"text",value:j}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(h,b),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const j=T.children[T.children.length-1];j&&j.type==="text"?j.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else y.push(...w);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+v},children:e.wrap(y,!0)};e.patch(m,_),f.push(_)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...du(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
330
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
331
- `}]}}const Mu=(function(e){if(e==null)return Pz;if(typeof e=="function")return Ou(e);if(typeof e=="object")return Array.isArray(e)?Vz(e):Fz(e);if(typeof e=="string")return Hz(e);throw new Error("Expected function, string, or object as test")});function Vz(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=Mu(e[i]);return Ou(r);function r(...o){let u=-1;for(;++u<n.length;)if(n[u].apply(this,o))return!0;return!1}}function Fz(e){const n=e;return Ou(i);function i(r){const o=r;let u;for(u in e)if(o[u]!==n[u])return!1;return!0}}function Hz(e){return Ou(n);function n(i){return i&&i.type===e}}function Ou(e){return n;function n(i,r,o){return!!(qz(i)&&e.call(this,i,typeof r=="number"?r:void 0,o||void 0))}}function Pz(){return!0}function qz(e){return e!==null&&typeof e=="object"&&"type"in e}const E1=[],Gz=!0,$d=!1,Yz="skip";function A1(e,n,i,r){let o;typeof n=="function"&&typeof i!="function"?(r=i,i=n):o=n;const u=Mu(o),c=r?-1:1;f(e,void 0,[])();function f(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=E1,w,k,T;if((!n||u(h,m,y[y.length-1]||void 0))&&(b=Qz(i(h,y)),b[0]===$d))return b;if("children"in h&&h.children){const _=h;if(_.children&&b[0]!==Yz)for(k=(r?_.children.length:-1)+c,T=y.concat(_);k>-1&&k<_.children.length;){const j=_.children[k];if(w=f(j,k,T)(),w[0]===$d)return w;k=typeof w[1]=="number"?w[1]:k+c}}return b}}}function Qz(e){return Array.isArray(e)?e:typeof e=="number"?[Gz,e]:e==null?E1:[e]}function Vm(e,n,i,r){let o,u,c;typeof n=="function"&&typeof i!="function"?(u=void 0,c=n,o=i):(u=n,c=i,o=r),A1(e,u,f,o);function f(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const Jd={}.hasOwnProperty,Xz={};function Kz(e,n){const i=n||Xz,r=new Map,o=new Map,u=new Map,c={...Oz,...i.handlers},f={all:m,applyData:$z,definitionById:r,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:i,patch:Zz,wrap:Wz};return Vm(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?r:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),f;function h(y,g){const v=y.type,b=f.handlers[v];if(Jd.call(f.handlers,v)&&b)return b(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:k,...T}=y,_=du(T);return _.children=f.all(y),_}return du(y)}return(f.options.unknownHandler||Jz)(f,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let b=-1;for(;++b<v.length;){const w=f.one(v[b],y);if(w){if(b&&v[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=av(w.value)),!Array.isArray(w)&&w.type==="element")){const k=w.children[0];k&&k.type==="text"&&(k.value=av(k.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function Zz(e,n){e.position&&(n.position=BT(e))}function $z(e,n){let i=n;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,du(u)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function Jz(e,n){const i=n.data||{},r="value"in n&&!(Jd.call(i,"hProperties")||Jd.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Wz(e,n){const i=[];let r=-1;for(n&&i.push({type:"text",value:`
332
- `});++r<e.length;)r&&i.push({type:"text",value:`
333
- `}),i.push(e[r]);return n&&e.length>0&&i.push({type:"text",value:`
334
- `}),i}function av(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function ov(e,n){const i=Kz(e,n),r=i.one(e,void 0),o=Uz(i),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
335
- `},o),u}function eM(e,n){return e&&"run"in e?async function(i,r){const o=ov(i,{file:r,...n});await e.run(o,r)}:function(i,r){return ov(i,{file:r,...e||n})}}function sv(e){if(e)throw e}var dd,uv;function tM(){if(uv)return dd;uv=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):n.call(m)==="[object Array]"},u=function(m){if(!m||n.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},c=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(r)return r(m,y).value}else return;return m[y]};return dd=function h(){var m,y,g,v,b,w,k=arguments[0],T=1,_=arguments.length,j=!1;for(typeof k=="boolean"&&(j=k,k=arguments[1]||{},T=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});T<_;++T)if(m=arguments[T],m!=null)for(y in m)g=f(k,y),v=f(m,y),k!==v&&(j&&v&&(u(v)||(b=o(v)))?(b?(b=!1,w=g&&o(g)?g:[]):w=g&&u(g)?g:{},c(k,{name:y,newValue:h(j,w,v)})):typeof v<"u"&&c(k,{name:y,newValue:v}));return k},dd}var nM=tM();const md=gu(nM);function Wd(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lM(){const e=[],n={run:i,use:r};return n;function i(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(h,...m){const y=e[++u];let g=-1;if(h){c(h);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?iM(y,f)(...m):c(null,...m)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function iM(e,n){let i;return r;function r(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(m){const y=m;if(f&&i)throw y;return o(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(u,o):h instanceof Error?o(h):u(h))}function o(c,...f){i||(i=!0,n(c,...f))}function u(c){o(null,c)}}const dl={basename:rM,dirname:aM,extname:oM,join:sM,sep:"/"};function rM(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ko(e);let i=0,r=-1,o=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":e.slice(i,r)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else c<0&&(u=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(r=o):(f=-1,r=c));return i===r?r=c:r<0&&(r=e.length),e.slice(i,r)}function aM(e){if(ko(e),e.length===0)return".";let n=-1,i=e.length,r;for(;--i;)if(e.codePointAt(i)===47){if(r){n=i;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function oM(e){ko(e);let n=e.length,i=-1,r=0,o=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){r=n+1;break}continue}i<0&&(c=!0,i=n+1),f===46?o<0?o=n:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||i<0||u===0||u===1&&o===i-1&&o===r+1?"":e.slice(o,i)}function sM(...e){let n=-1,i;for(;++n<e.length;)ko(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":uM(i)}function uM(e){ko(e);const n=e.codePointAt(0)===47;let i=cM(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function cM(e,n){let i="",r=0,o=-1,u=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",r=0):(i=i.slice(0,h),r=i.length-1-i.lastIndexOf("/")),o=c,u=0;continue}}else if(i.length>0){i="",r=0,o=c,u=0;continue}}n&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,u=0}else f===46&&u>-1?u++:u=-1}return i}function ko(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fM={cwd:dM};function dM(){return"/"}function em(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mM(e){if(typeof e=="string")e=new URL(e);else if(!em(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return hM(e)}function hM(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const r=n.codePointAt(i+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const hd=["history","path","basename","stem","extname","dirname"];class T1{constructor(n){let i;n?em(n)?i={path:n}:typeof n=="string"||pM(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":fM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<hd.length;){const u=hd[r];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let o;for(o in i)hd.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?dl.basename(this.path):void 0}set basename(n){gd(n,"basename"),pd(n,"basename"),this.path=dl.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dl.dirname(this.path):void 0}set dirname(n){cv(this.basename,"dirname"),this.path=dl.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dl.extname(this.path):void 0}set extname(n){if(pd(n,"extname"),cv(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dl.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){em(n)&&(n=mM(n)),gd(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dl.basename(this.path,this.extname):void 0}set stem(n){gd(n,"stem"),pd(n,"stem"),this.path=dl.join(this.dirname||"",n+(this.extname||""))}fail(n,i,r){const o=this.message(n,i,r);throw o.fatal=!0,o}info(n,i,r){const o=this.message(n,i,r);return o.fatal=void 0,o}message(n,i,r){const o=new en(n,i,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function pd(e,n){if(e&&e.includes(dl.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dl.sep+"`")}function gd(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function cv(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function pM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gM=(function(e){const r=this.constructor.prototype,o=r[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),yM={}.hasOwnProperty;class Fm extends gM{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=lM()}copy(){const n=new Fm;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];n.use(...r)}return n.data(md(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(bd("data",this.frozen),this.namespace[n]=i,this):yM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(bd("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=i.call(n,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Gs(n),r=this.parser||this.Parser;return yd("parse",r),r(String(i),i)}process(n,i){const r=this;return this.freeze(),yd("process",this.parser||this.Parser),vd("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,c){const f=Gs(n),h=r.parse(f);r.run(h,f,function(y,g,v){if(y||!g||!v)return m(y);const b=g,w=r.stringify(b,v);xM(w)?v.value=w:v.result=w,m(y,v)});function m(y,g){y||!g?c(y):u?u(g):i(void 0,g)}}}processSync(n){let i=!1,r;return this.freeze(),yd("processSync",this.parser||this.Parser),vd("processSync",this.compiler||this.Compiler),this.process(n,o),dv("processSync","process",i),r;function o(u,c){i=!0,sv(u),r=c}}run(n,i,r){fv(n),this.freeze();const o=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?u(void 0,r):new Promise(u);function u(c,f){const h=Gs(i);o.run(n,h,m);function m(y,g,v){const b=g||n;y?f(y):c?c(b):r(void 0,b,v)}}}runSync(n,i){let r=!1,o;return this.run(n,i,u),dv("runSync","run",r),o;function u(c,f){sv(c),o=f,r=!0}}stringify(n,i){this.freeze();const r=Gs(i),o=this.compiler||this.Compiler;return vd("stringify",o),fv(n),o(n,r)}use(n,...i){const r=this.attachers,o=this.namespace;if(bd("use",this.frozen),n!=null)if(typeof n=="function")h(n,i);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(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");f(m.plugins),m.settings&&(o.settings=md(!0,o.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];u(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,v=-1;for(;++g<r.length;)if(r[g][0]===m){v=g;break}if(v===-1)r.push([m,...y]);else if(y.length>0){let[b,...w]=y;const k=r[v][1];Wd(k)&&Wd(b)&&(b=md(!0,k,b)),r[v]=[m,b,...w]}}}}const vM=new Fm().freeze();function yd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bd(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fv(e){if(!Wd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dv(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Gs(e){return bM(e)?e:new T1(e)}function bM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xM(e){return typeof e=="string"||SM(e)}function SM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mv=[],hv={allowDangerousHtml:!0},kM=/^(https?|ircs?|mailto|xmpp)$/i,CM=[{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 ra(e){const n=EM(e),i=AM(e);return TM(n.runSync(n.parse(i),i),e)}function EM(e){const n=e.rehypePlugins||mv,i=e.remarkPlugins||mv,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hv}:hv;return vM().use(az).use(i).use(eM,r).use(n)}function AM(e){const n=e.children||"",i=new T1;return typeof n=="string"&&(i.value=n),i}function TM(e,n){const i=n.allowedElements,r=n.allowElement,o=n.components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||_M;for(const y of CM)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+wM+y.id,void 0);return Vm(e,m),PT(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in ud)if(Object.hasOwn(ud,b)&&Object.hasOwn(y.properties,b)){const w=y.properties[b],k=ud[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=h(String(w||""),b,y))}}if(y.type==="element"){let b=i?!i.includes(y.tagName):u?u.includes(y.tagName):!1;if(!b&&r&&typeof g=="number"&&(b=!r(y,g,v)),b&&v&&typeof g=="number")return f&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function _M(e){const n=e.indexOf(":"),i=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||r!==-1&&n>r||kM.test(e.slice(0,n))?e:""}function pv(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,o=i.indexOf(n);for(;o!==-1;)r++,o=i.indexOf(n,o+n.length);return r}function NM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zM(e,n,i){const o=Mu((i||{}).ignore||[]),u=MM(n);let c=-1;for(;++c<u.length;)A1(e,"text",f);function f(m,y){let g=-1,v;for(;++g<y.length;){const b=y[g],w=v?v.children:void 0;if(o(b,w?w.indexOf(b):void 0,v))return;v=b}if(v)return h(m,y)}function h(m,y){const g=y[y.length-1],v=u[c][0],b=u[c][1];let w=0;const T=g.children.indexOf(m);let _=!1,j=[];v.lastIndex=0;let M=v.exec(m.value);for(;M;){const P=M.index,F={index:M.index,input:M.input,stack:[...y,m]};let R=b(...M,F);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?v.lastIndex=P+1:(w!==P&&j.push({type:"text",value:m.value.slice(w,P)}),Array.isArray(R)?j.push(...R):R&&j.push(R),w=P+M[0].length,_=!0),!v.global)break;M=v.exec(m.value)}return _?(w<m.value.length&&j.push({type:"text",value:m.value.slice(w)}),g.children.splice(T,1,...j)):j=[m],T+j.length}}function MM(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<i.length;){const o=i[r];n.push([OM(o[0]),jM(o[1])])}return n}function OM(e){return typeof e=="string"?new RegExp(NM(e),"g"):e}function jM(e){return typeof e=="function"?e:function(){return e}}const xd="phrasing",Sd=["autolink","link","image","label"];function RM(){return{transforms:[FM],enter:{literalAutolink:DM,literalAutolinkEmail:wd,literalAutolinkHttp:wd,literalAutolinkWww:wd},exit:{literalAutolink:VM,literalAutolinkEmail:UM,literalAutolinkHttp:IM,literalAutolinkWww:BM}}}function LM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xd,notInConstruct:Sd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xd,notInConstruct:Sd},{character:":",before:"[ps]",after:"\\/",inConstruct:xd,notInConstruct:Sd}]}}function DM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wd(e){this.config.enter.autolinkProtocol.call(this,e)}function IM(e){this.config.exit.autolinkProtocol.call(this,e)}function BM(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function UM(e){this.config.exit.autolinkEmail.call(this,e)}function VM(e){this.exit(e)}function FM(e){zM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,HM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),PM]],{ignore:["link","linkReference"]})}function HM(e,n,i,r,o){let u="";if(!_1(o)||(/^w/i.test(n)&&(i=n+i,n="",u="http://"),!qM(i)))return!1;const c=GM(i+r);if(!c[0])return!1;const f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function PM(e,n,i,r){return!_1(r,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function qM(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function GM(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let i=n[0],r=i.indexOf(")");const o=pv(e,"(");let u=pv(e,")");for(;r!==-1&&o>u;)e+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),u++;return[e,i]}function _1(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Zi(i)||_u(i))&&(!n||i!==47)}N1.peek=e3;function YM(){this.buffer()}function QM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function XM(){this.buffer()}function KM(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ZM(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=il(this.sliceSerialize(e)).toLowerCase(),i.label=n}function $M(e){this.exit(e)}function JM(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=il(this.sliceSerialize(e)).toLowerCase(),i.label=n}function WM(e){this.exit(e)}function e3(){return"["}function N1(e,n,i,r){const o=i.createTracker(r);let u=o.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return u+=o.move(i.safe(i.associationId(e),{after:"]",before:u})),f(),c(),u+=o.move("]"),u}function t3(){return{enter:{gfmFootnoteCallString:YM,gfmFootnoteCall:QM,gfmFootnoteDefinitionLabelString:XM,gfmFootnoteDefinition:KM},exit:{gfmFootnoteCallString:ZM,gfmFootnoteCall:$M,gfmFootnoteDefinitionLabelString:JM,gfmFootnoteDefinition:WM}}}function n3(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:N1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(r,o,u,c){const f=u.createTracker(c);let h=f.move("[^");const m=u.enter("footnoteDefinition"),y=u.enter("label");return h+=f.move(u.safe(u.associationId(r),{before:h,after:"]"})),y(),h+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),h+=f.move((n?`
336
- `:" ")+u.indentLines(u.containerFlow(r,f.current()),n?z1:l3))),m(),h}}function l3(e,n,i){return n===0?e:z1(e,n,i)}function z1(e,n,i){return(i?"":" ")+e}const i3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];M1.peek=u3;function r3(){return{canContainEols:["delete"],enter:{strikethrough:o3},exit:{strikethrough:s3}}}function a3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:i3}],handlers:{delete:M1}}}function o3(e){this.enter({type:"delete",children:[]},e)}function s3(e){this.exit(e)}function M1(e,n,i,r){const o=i.createTracker(r),u=i.enter("strikethrough");let c=o.move("~~");return c+=i.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),u(),c}function u3(){return"~"}function c3(e){return e.length}function f3(e,n){const i=n||{},r=(i.align||[]).concat(),o=i.stringLength||c3,u=[],c=[],f=[],h=[];let m=0,y=-1;for(;++y<e.length;){const k=[],T=[];let _=-1;for(e[y].length>m&&(m=e[y].length);++_<e[y].length;){const j=d3(e[y][_]);if(i.alignDelimiters!==!1){const M=o(j);T[_]=M,(h[_]===void 0||M>h[_])&&(h[_]=M)}k.push(j)}c[y]=k,f[y]=T}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<m;)u[g]=gv(r[g]);else{const k=gv(r);for(;++g<m;)u[g]=k}g=-1;const v=[],b=[];for(;++g<m;){const k=u[g];let T="",_="";k===99?(T=":",_=":"):k===108?T=":":k===114&&(_=":");let j=i.alignDelimiters===!1?1:Math.max(1,h[g]-T.length-_.length);const M=T+"-".repeat(j)+_;i.alignDelimiters!==!1&&(j=T.length+j+_.length,j>h[g]&&(h[g]=j),b[g]=j),v[g]=M}c.splice(1,0,v),f.splice(1,0,b),y=-1;const w=[];for(;++y<c.length;){const k=c[y],T=f[y];g=-1;const _=[];for(;++g<m;){const j=k[g]||"";let M="",P="";if(i.alignDelimiters!==!1){const F=h[g]-(T[g]||0),R=u[g];R===114?M=" ".repeat(F):R===99?F%2?(M=" ".repeat(F/2+.5),P=" ".repeat(F/2-.5)):(M=" ".repeat(F/2),P=M):P=" ".repeat(F)}i.delimiterStart!==!1&&!g&&_.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&j==="")&&(i.delimiterStart!==!1||g)&&_.push(" "),i.alignDelimiters!==!1&&_.push(M),_.push(j),i.alignDelimiters!==!1&&_.push(P),i.padding!==!1&&_.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&_.push("|")}w.push(i.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return w.join(`
337
- `)}function d3(e){return e==null?"":String(e)}function gv(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function m3(e,n,i,r){const o=i.enter("blockquote"),u=i.createTracker(r);u.move("> "),u.shift(2);const c=i.indentLines(i.containerFlow(e,u.current()),h3);return o(),c}function h3(e,n,i){return">"+(i?"":" ")+e}function p3(e,n){return yv(e,n.inConstruct,!0)&&!yv(e,n.notInConstruct,!1)}function yv(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function vv(e,n,i,r){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
338
- `&&p3(i.stack,i.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
339
- `}function g3(e,n){const i=String(e);let r=i.indexOf(n),o=r,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++u>c&&(c=u):u=1,o=r+n.length,r=i.indexOf(n,o);return c}function y3(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function v3(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function b3(e,n,i,r){const o=v3(i),u=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(y3(e,i)){const g=i.enter("codeIndented"),v=i.indentLines(u,x3);return g(),v}const f=i.createTracker(r),h=o.repeat(Math.max(g3(u,o)+1,3)),m=i.enter("codeFenced");let y=f.move(h);if(e.lang){const g=i.enter(`codeFencedLang${c}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
340
- `,encode:["`"],...f.current()})),g()}return y+=f.move(`
341
- `),u&&(y+=f.move(u+`
342
- `)),y+=f.move(h),m(),y}function x3(e,n,i){return(i?"":" ")+e}function Hm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function S3(e,n,i,r){const o=Hm(i),u=o==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const h=i.createTracker(r);let m=h.move("[");return m+=h.move(i.safe(i.associationId(e),{before:m,after:"]",...h.current()})),m+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(i.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=i.enter("destinationRaw"),m+=h.move(i.safe(e.url,{before:m,after:e.title?" ":`
343
- `,...h.current()}))),f(),e.title&&(f=i.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(i.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),f()),c(),m}function w3(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function go(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mu(e,n,i){const r=Wr(e),o=Wr(n);return r===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}O1.peek=k3;function O1(e,n,i,r){const o=w3(i),u=i.enter("emphasis"),c=i.createTracker(r),f=c.move(o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=h.charCodeAt(0),y=mu(r.before.charCodeAt(r.before.length-1),m,o);y.inside&&(h=go(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=mu(r.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+go(g));const b=c.move(o);return u(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+b}function k3(e,n,i){return i.options.emphasis||"*"}function C3(e,n){let i=!1;return Vm(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return i=!0,$d}),!!((!e.depth||e.depth<3)&&jm(e)&&(n.options.setext||i))}function E3(e,n,i,r){const o=Math.max(Math.min(6,e.depth||1),1),u=i.createTracker(r);if(C3(e,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(e,{...u.current(),before:`
344
- `,after:`
345
- `});return g(),y(),v+`
346
- `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
347
- `))+1))}const c="#".repeat(o),f=i.enter("headingAtx"),h=i.enter("phrasing");u.move(c+" ");let m=i.containerPhrasing(e,{before:"# ",after:`
348
- `,...u.current()});return/^[\t ]/.test(m)&&(m=go(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,i.options.closeAtx&&(m+=" "+c),h(),f(),m}j1.peek=A3;function j1(e){return e.value||""}function A3(){return"<"}R1.peek=T3;function R1(e,n,i,r){const o=Hm(i),u=o==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const h=i.createTracker(r);let m=h.move("![");return m+=h.move(i.safe(e.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(i.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=i.enter("destinationRaw"),m+=h.move(i.safe(e.url,{before:m,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=i.enter(`title${u}`),m+=h.move(" "+o),m+=h.move(i.safe(e.title,{before:m,after:o,...h.current()})),m+=h.move(o),f()),m+=h.move(")"),c(),m}function T3(){return"!"}L1.peek=_3;function L1(e,n,i,r){const o=e.referenceType,u=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(r);let h=f.move("![");const m=i.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,u(),o==="full"||!m||m!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function _3(){return"!"}D1.peek=N3;function D1(e,n,i){let r=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<i.unsafe.length;){const c=i.unsafe[u],f=i.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(r);){let m=h.index;r.charCodeAt(m)===10&&r.charCodeAt(m-1)===13&&m--,r=r.slice(0,m)+" "+r.slice(h.index+1)}}return o+r+o}function N3(){return"`"}function I1(e,n){const i=jm(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}B1.peek=z3;function B1(e,n,i,r){const o=Hm(i),u=o==='"'?"Quote":"Apostrophe",c=i.createTracker(r);let f,h;if(I1(e,i)){const y=i.stack;i.stack=[],f=i.enter("autolink");let g=c.move("<");return g+=c.move(i.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),i.stack=y,g}f=i.enter("link"),h=i.enter("label");let m=c.move("[");return m+=c.move(i.containerPhrasing(e,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(i.safe(e.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=i.enter("destinationRaw"),m+=c.move(i.safe(e.url,{before:m,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${u}`),m+=c.move(" "+o),m+=c.move(i.safe(e.title,{before:m,after:o,...c.current()})),m+=c.move(o),h()),m+=c.move(")"),f(),m}function z3(e,n,i){return I1(e,i)?"<":"["}U1.peek=M3;function U1(e,n,i,r){const o=e.referenceType,u=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(r);let h=f.move("[");const m=i.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,u(),o==="full"||!m||m!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function M3(){return"["}function Pm(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function O3(e){const n=Pm(e),i=e.options.bulletOther;if(!i)return n==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+i+"`) to be different");return i}function j3(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function V1(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function R3(e,n,i,r){const o=i.enter("list"),u=i.bulletCurrent;let c=e.ordered?j3(i):Pm(i);const f=e.ordered?c==="."?")":".":O3(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),V1(i)===c&&y){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),i.bulletCurrent=c;const m=i.containerFlow(e,r);return i.bulletLastUsed=c,i.bulletCurrent=u,o(),m}function L3(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function D3(e,n,i,r){const o=L3(i);let u=i.bulletCurrent||Pm(i);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(r);f.move(u+" ".repeat(c-u.length)),f.shift(c);const h=i.enter("listItem"),m=i.indentLines(i.containerFlow(e,f.current()),y);return h(),m;function y(g,v,b){return v?(b?"":" ".repeat(c))+g:(b?u:u+" ".repeat(c-u.length))+g}}function I3(e,n,i,r){const o=i.enter("paragraph"),u=i.enter("phrasing"),c=i.containerPhrasing(e,r);return u(),o(),c}const B3=Mu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function U3(e,n,i,r){return(e.children.some(function(c){return B3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,r)}function V3(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}F1.peek=F3;function F1(e,n,i,r){const o=V3(i),u=i.enter("strong"),c=i.createTracker(r),f=c.move(o+o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=h.charCodeAt(0),y=mu(r.before.charCodeAt(r.before.length-1),m,o);y.inside&&(h=go(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=mu(r.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+go(g));const b=c.move(o+o);return u(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+b}function F3(e,n,i){return i.options.strong||"*"}function H3(e,n,i,r){return i.safe(e.value,r)}function P3(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function q3(e,n,i){const r=(V1(i)+(i.options.ruleSpaces?" ":"")).repeat(P3(i));return i.options.ruleSpaces?r.slice(0,-1):r}const H1={blockquote:m3,break:vv,code:b3,definition:S3,emphasis:O1,hardBreak:vv,heading:E3,html:j1,image:R1,imageReference:L1,inlineCode:D1,link:B1,linkReference:U1,list:R3,listItem:D3,paragraph:I3,root:U3,strong:F1,text:H3,thematicBreak:q3};function G3(){return{enter:{table:Y3,tableData:bv,tableHeader:bv,tableRow:X3},exit:{codeText:K3,table:Q3,tableData:kd,tableHeader:kd,tableRow:kd}}}function Y3(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function Q3(e){this.exit(e),this.data.inTable=void 0}function X3(e){this.enter({type:"tableRow",children:[]},e)}function kd(e){this.exit(e)}function bv(e){this.enter({type:"tableCell",children:[]},e)}function K3(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Z3));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function Z3(e,n){return n==="|"?n:e}function $3(e){const n=e||{},i=n.tableCellPadding,r=n.tablePipeAlign,o=n.stringLength,u=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
349
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(b,w,k,T){return m(y(b,k,T),b.align)}function f(b,w,k,T){const _=g(b,k,T),j=m([_]);return j.slice(0,j.indexOf(`
350
- `))}function h(b,w,k,T){const _=k.enter("tableCell"),j=k.enter("phrasing"),M=k.containerPhrasing(b,{...T,before:u,after:u});return j(),_(),M}function m(b,w){return f3(b,{align:w,alignDelimiters:r,padding:i,stringLength:o})}function y(b,w,k){const T=b.children;let _=-1;const j=[],M=w.enter("table");for(;++_<T.length;)j[_]=g(T[_],w,k);return M(),j}function g(b,w,k){const T=b.children;let _=-1;const j=[],M=w.enter("tableRow");for(;++_<T.length;)j[_]=h(T[_],b,w,k);return M(),j}function v(b,w,k){let T=H1.inlineCode(b,w,k);return k.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function J3(){return{exit:{taskListCheckValueChecked:xv,taskListCheckValueUnchecked:xv,paragraph:eO}}}function W3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tO}}}function xv(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function eO(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const r=i.children[0];if(r&&r.type==="text"){const o=n.children;let u=-1,c;for(;++u<o.length;){const f=o[u];if(f.type==="paragraph"){c=f;break}}c===i&&(r.value=r.value.slice(1),r.value.length===0?i.children.shift():i.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function tO(e,n,i,r){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=i.createTracker(r);u&&f.move(c);let h=H1.listItem(e,n,i,{...r,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+c}}function nO(){return[RM(),t3(),r3(),G3(),J3()]}function lO(e){return{extensions:[LM(),n3(e),a3(),$3(e),W3()]}}const iO={tokenize:cO,partial:!0},P1={tokenize:fO,partial:!0},q1={tokenize:dO,partial:!0},G1={tokenize:mO,partial:!0},rO={tokenize:hO,partial:!0},Y1={name:"wwwAutolink",tokenize:sO,previous:X1},Q1={name:"protocolAutolink",tokenize:uO,previous:K1},Fl={name:"emailAutolink",tokenize:oO,previous:Z1},hl={};function aO(){return{text:hl}}let Yi=48;for(;Yi<123;)hl[Yi]=Fl,Yi++,Yi===58?Yi=65:Yi===91&&(Yi=97);hl[43]=Fl;hl[45]=Fl;hl[46]=Fl;hl[95]=Fl;hl[72]=[Fl,Q1];hl[104]=[Fl,Q1];hl[87]=[Fl,Y1];hl[119]=[Fl,Y1];function oO(e,n,i){const r=this;let o,u;return c;function c(g){return!tm(g)||!Z1.call(r,r.previous)||qm(r.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return tm(g)?(e.consume(g),f):g===64?(e.consume(g),h):i(g)}function h(g){return g===46?e.check(rO,y,m)(g):g===45||g===95||Wt(g)?(u=!0,e.consume(g),h):y(g)}function m(g){return e.consume(g),o=!0,h}function y(g){return u&&o&&sn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):i(g)}}function sO(e,n,i){const r=this;return o;function o(c){return c!==87&&c!==119||!X1.call(r,r.previous)||qm(r.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iO,e.attempt(P1,e.attempt(q1,u),i),i)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function uO(e,n,i){const r=this;let o="",u=!1;return c;function c(g){return(g===72||g===104)&&K1.call(r,r.previous)&&!qm(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):i(g)}function f(g){if(sn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return e.consume(g),h}return i(g)}function h(g){return g===47?(e.consume(g),u?m:(u=!0,h)):i(g)}function m(g){return g===null||cu(g)||ut(g)||Zi(g)||_u(g)?i(g):e.attempt(P1,e.attempt(q1,y),i)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function cO(e,n,i){let r=0;return o;function o(c){return(c===87||c===119)&&r<3?(r++,e.consume(c),o):c===46&&r===3?(e.consume(c),u):i(c)}function u(c){return c===null?i(c):n(c)}}function fO(e,n,i){let r,o,u;return c;function c(m){return m===46||m===95?e.check(G1,h,f)(m):m===null||ut(m)||Zi(m)||m!==45&&_u(m)?h(m):(u=!0,e.consume(m),c)}function f(m){return m===95?r=!0:(o=r,r=void 0),e.consume(m),c}function h(m){return o||r||!u?i(m):n(m)}}function dO(e,n){let i=0,r=0;return o;function o(c){return c===40?(i++,e.consume(c),o):c===41&&r<i?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(G1,n,u)(c):c===null||ut(c)||Zi(c)?n(c):(e.consume(c),o)}function u(c){return c===41&&r++,e.consume(c),o}}function mO(e,n,i){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||ut(f)||Zi(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||ut(f)||Zi(f)?n(f):r(f)}function u(f){return sn(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),r):sn(f)?(e.consume(f),c):i(f)}}function hO(e,n,i){return r;function r(u){return e.consume(u),o}function o(u){return Wt(u)?i(u):n(u)}}function X1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function K1(e){return!sn(e)}function Z1(e){return!(e===47||tm(e))}function tm(e){return e===43||e===45||e===46||e===95||Wt(e)}function qm(e){let n=e.length,i=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){i=!0;break}if(r._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const pO={tokenize:kO,partial:!0};function gO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xO,continuation:{tokenize:SO},exit:wO}},text:{91:{name:"gfmFootnoteCall",tokenize:bO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yO,resolveTo:vO}}}}function yO(e,n,i){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;o--;){const h=r.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return i(h);const m=il(r.sliceSerialize({start:c.end,end:r.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function vO(e,n){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[i+1],e[i+2],["enter",r,n],e[i+3],e[i+4],["enter",o,n],["exit",o,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(i,e.length-i+1,...f),e}function bO(e,n,i){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(g){if(u>999||g===93&&!c||g===null||g===91||ut(g))return i(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return o.includes(il(r.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(g)}return ut(g)||(c=!0),u++,e.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(e.consume(g),u++,m):m(g)}}function xO(e,n,i){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(w)}function y(w){if(c>999||w===93&&!f||w===null||w===91||ut(w))return i(w);if(w===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return u=il(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return ut(w)||(f=!0),c++,e.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,y):y(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(u)||o.push(u),Qe(e,b,"gfmFootnoteDefinitionWhitespace")):i(w)}function b(w){return n(w)}}function SO(e,n,i){return e.check(wo,n,e.attempt(pO,n,i))}function wO(e){e.exit("gfmFootnoteDefinition")}function kO(e,n,i){const r=this;return Qe(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):i(u)}}function CO(e){let i=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:o};return i==null&&(i=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",y,f],["enter",c[m][1],f],["exit",c[m][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&_n(v,v.length,0,Nu(b,c.slice(m+1,h),f)),_n(v,v.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),_n(c,m-1,h-m+3,v),h=m+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const m=this.previous,y=this.events;let g=0;return v;function v(w){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const k=Wr(m);if(w===126)return g>1?h(w):(c.consume(w),g++,b);if(g<2&&!i)return h(w);const T=c.exit("strikethroughSequenceTemporary"),_=Wr(w);return T._open=!_||_===2&&!!k,T._close=!k||k===2&&!!_,f(w)}}}class EO{constructor(){this.map=[]}add(n,i,r){AO(this,n,i,r)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const r=[];for(;i>0;)i-=1,r.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];r.push(n.slice()),n.length=0;let o=r.pop();for(;o;){for(const u of o)n.push(u);o=r.pop()}this.map.length=0}}function AO(e,n,i,r){let o=0;if(!(i===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=i,e.map[o][2].push(...r);return}o+=1}e.map.push([n,i,r])}}function TO(e,n){let i=!1;const r=[];for(;n<e.length;){const o=e[n];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return r}function _O(){return{flow:{null:{name:"table",tokenize:NO,resolveAll:zO}}}}function NO(e,n,i){const r=this;let o=0,u=0,c;return f;function f(I){let J=r.events.length-1;for(;J>-1;){const oe=r.events[J][1].type;if(oe==="lineEnding"||oe==="linePrefix")J--;else break}const ae=J>-1?r.events[J][1].type:null,me=ae==="tableHead"||ae==="tableRow"?R:h;return me===R&&r.parser.lazy[r.now().line]?i(I):me(I)}function h(I){return e.enter("tableHead"),e.enter("tableRow"),m(I)}function m(I){return I===124||(c=!0,u+=1),y(I)}function y(I){return I===null?i(I):ke(I)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),b):i(I):Fe(I)?Qe(e,y,"whitespace")(I):(u+=1,c&&(c=!1,o+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(I)))}function g(I){return I===null||I===124||ut(I)?(e.exit("data"),y(I)):(e.consume(I),I===92?v:g)}function v(I){return I===92||I===124?(e.consume(I),g):g(I)}function b(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?i(I):(e.enter("tableDelimiterRow"),c=!1,Fe(I)?Qe(e,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):w(I))}function w(I){return I===45||I===58?T(I):I===124?(c=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):F(I)}function k(I){return Fe(I)?Qe(e,T,"whitespace")(I):T(I)}function T(I){return I===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):I===45?(u+=1,_(I)):I===null||ke(I)?P(I):F(I)}function _(I){return I===45?(e.enter("tableDelimiterFiller"),j(I)):F(I)}function j(I){return I===45?(e.consume(I),j):I===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(I))}function M(I){return Fe(I)?Qe(e,P,"whitespace")(I):P(I)}function P(I){return I===124?w(I):I===null||ke(I)?!c||o!==u?F(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(I)):F(I)}function F(I){return i(I)}function R(I){return e.enter("tableRow"),H(I)}function H(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),H):I===null||ke(I)?(e.exit("tableRow"),n(I)):Fe(I)?Qe(e,H,"whitespace")(I):(e.enter("data"),V(I))}function V(I){return I===null||I===124||ut(I)?(e.exit("data"),H(I)):(e.consume(I),I===92?te:V)}function te(I){return I===92||I===124?(e.consume(I),V):V(I)}}function zO(e,n){let i=-1,r=!0,o=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,m,y,g;const v=new EO;for(;++i<e.length;){const b=e[i],w=b[1];b[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(Sv(v,n,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(i,0,[["enter",m,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(r=!0,g=void 0,u=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(i,0,[["enter",y,n]])),o=w.type==="tableDelimiterRow"?2:y?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Ys(v,n,u,o,void 0,g),u=[0,0,0,0]),c[2]=i)):w.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(c[0]=c[1],g=Ys(v,n,u,o,void 0,g)),u=c,c=[u[1],i,0,0])):w.type==="tableHead"?(f=!0,h=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=i,u[1]!==0?(c[0]=c[1],g=Ys(v,n,u,o,i,g)):c[1]!==0&&(g=Ys(v,n,c,o,i,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=i)}for(h!==0&&Sv(v,n,h,m,y),v.consume(n.events),i=-1;++i<n.events.length;){const b=n.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=TO(n.events,i))}return e}function Ys(e,n,i,r,o,u){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(u.end=Object.assign({},Gr(n.events,i[0])),e.add(i[0],0,[["exit",u,n]]));const h=Gr(n.events,i[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(i[1],0,[["enter",u,n]]),i[2]!==0){const m=Gr(n.events,i[2]),y=Gr(n.events,i[3]),g={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",g,n]]),r!==2){const v=n.events[i[2]],b=n.events[i[3]];if(v[1].end=Object.assign({},b[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,k=i[3]-i[2]-1;e.add(w,k,[])}}e.add(i[3]+1,0,[["exit",g,n]])}return o!==void 0&&(u.end=Object.assign({},Gr(n.events,o)),e.add(o,0,[["exit",u,n]]),u=void 0),u}function Sv(e,n,i,r,o){const u=[],c=Gr(n.events,i);o&&(o.end=Object.assign({},c),u.push(["exit",o,n])),r.end=Object.assign({},c),u.push(["exit",r,n]),e.add(i+1,0,u)}function Gr(e,n){const i=e[n],r=i[0]==="enter"?"start":"end";return i[1][r]}const MO={name:"tasklistCheck",tokenize:jO};function OO(){return{text:{91:MO}}}function jO(e,n,i){const r=this;return o;function o(h){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return ut(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(h)}function f(h){return ke(h)?n(h):Fe(h)?e.check({tokenize:RO},n,i)(h):i(h)}}function RO(e,n,i){return Qe(e,r,"whitespace");function r(o){return o===null?i(o):n(o)}}function LO(e){return o1([aO(),gO(),CO(e),_O(),OO()])}const DO={};function aa(e){const n=this,i=e||DO,r=n.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(LO(i)),u.push(nO()),c.push(lO(i))}function IO({message:e,onRemove:n,onSendNow:i}){return x.jsx("div",{className:"flex justify-end py-2",children:x.jsxs("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-col items-end gap-1.5",children:[e.attachments.length>0?x.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:e.attachments.map(r=>x.jsxs("div",{className:"max-w-[220px] rounded-xl border border-dashed border-border bg-transparent px-3 py-2 text-left",children:[x.jsx("div",{className:"truncate text-[13px] font-medium text-foreground",children:r.displayName}),x.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:r.mimeType})]},r.id))}):null,e.content?x.jsxs("div",{className:"relative group",children:[x.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-end gap-2.5 rounded-[20px] border border-dashed border-border bg-transparent pl-3.5 pr-1.5 py-1.5 prose prose-sm prose-invert text-left text-primary [&_p]:whitespace-pre-line",children:[x.jsx("div",{children:x.jsx(ra,{remarkPlugins:[aa],components:na(),children:e.content})}),x.jsx(an,{type:"button",variant:"default",size:"none",className:"rounded-full size-[24px] bg-muted text-muted-foreground border border-primary/10 group-hover:!text-primary hover:bg-muted/60",onClick:i,children:x.jsx(bk,{className:"size-3.5"})})]}),x.jsx(an,{type:"button",variant:"none",size:"none",className:"opacity-0 scale-[0.1] group-hover:scale-[1.0] group-hover:opacity-100 !p-0.5 border rounded-full text-xs font-medium text-muted-foreground hover:text-foreground gap-0.5 absolute top-0 left-0 bg-background -translate-x-[28%] -translate-y-[28%]",onClick:n,children:x.jsx(ta,{className:"size-3"})})]}):null]})})}const BO={connecting:"Connecting...",acquiring_sandbox:"Booting...",initializing:"Initializing...",starting:"Starting...",running:"Running...",waiting_for_user:"Waiting...",failed:"Failed"};function UO({status:e}){const n=(e?BO[e]:void 0)||"Processing...",i=e==="failed";return x.jsx(Vl,{className:"ml-[1px]",children:x.jsxs(Gb,{children:[i?x.jsx(ta,{className:"size-4.5 text-red-500"}):x.jsx(om,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(xo,{className:"ml-[1px] text-sm",shimmerWidth:44,children:n})]})})}const VO=1024*1024,FO=256*1024,wv=200,nm=20,$1=new Set([".c",".cc",".cfg",".conf",".cpp",".cs",".css",".env",".go",".graphql",".h",".hpp",".html",".ini",".java",".js",".jsonc",".jsx",".kt",".lua",".mjs",".php",".pl",".properties",".py",".rb",".rs",".scss",".sh",".sql",".swift",".toml",".ts",".tsx",".txt",".vue",".xml",".yaml",".yml",".zsh"]),HO=new Set([".7z",".bz2",".gz",".rar",".tar",".tgz",".xz",".zip"]),PO=new Set([".aac",".flac",".m4a",".mp3",".ogg",".wav"]),qO=new Set([".avi",".m4v",".mov",".mp4",".mkv",".webm"]);function J1(e){const n=e.mimeType.toLowerCase(),i=W1(e.displayName);return n.startsWith("image/")?{kind:"image",openInNewTab:!1}:n==="application/pdf"?{kind:"pdf",openInNewTab:!1}:n==="application/json"?e.size<=FO?{kind:"json",openInNewTab:!1}:{kind:"external",openInNewTab:!0}:i===".md"?{kind:"markdown",openInNewTab:!1}:n==="text/csv"||n==="text/tab-separated-values"?{kind:"table",openInNewTab:!1}:n.startsWith("text/")?{kind:"text",openInNewTab:!1}:$1.has(i)?{kind:"text",openInNewTab:!1}:{kind:"external",openInNewTab:!0}}function GO(e){const n=e.mimeType.toLowerCase(),i=W1(e.displayName);return n.startsWith("image/")?"image":n==="application/pdf"||i===".pdf"?"pdf":n==="application/json"||i===".json"||i===".jsonc"?"json":i===".md"?"markdown":n==="text/csv"||n==="text/tab-separated-values"||i===".csv"||i===".tsv"?"table":n.startsWith("audio/")||PO.has(i)?"audio":n.startsWith("video/")||qO.has(i)?"video":n.includes("zip")||n.includes("archive")||HO.has(i)?"archive":$1.has(i)?i===".txt"?"text":"code":n.startsWith("text/")?"text":"file"}async function YO(e,n){const i=typeof AbortController<"u"?new AbortController:null,r=typeof window<"u"&&i?window.setTimeout(()=>i.abort("preview-timeout"),15e3):null;try{const o=await fetch(KO(e),{signal:i==null?void 0:i.signal,headers:{Accept:"text/plain, text/markdown, application/json, text/csv, text/tab-separated-values, */*"}});if(!o.ok)throw new Error(`Preview request failed with status ${o.status}`);if(!o.body){const g=await o.text(),v=new TextEncoder().encode(g),b=v.length>n;return{content:b?new TextDecoder().decode(v.slice(0,n)):g,truncated:b}}const u=o.body.getReader(),c=[];let f=0,h=!1;for(;;){const{done:g,value:v}=await u.read();if(g)break;if(!v)continue;const b=n-f;if(b<=0){h=!0,await u.cancel();break}if(v.byteLength>b){c.push(v.slice(0,b)),f+=b,h=!0,await u.cancel();break}c.push(v),f+=v.byteLength}const m=new Uint8Array(f);let y=0;for(const g of c)m.set(g,y),y+=g.byteLength;return{content:new TextDecoder().decode(m),truncated:h}}catch(o){throw ZO(o)?new Error("Preview request timed out"):o}finally{r!==null&&window.clearTimeout(r)}}function QO(e){try{return`${JSON.stringify(JSON.parse(e),null,2)}
351
- `}catch{return e}}function XO(e,n){const i=$O(e,n),r=i.length,o=i.reduce((f,h)=>Math.max(f,h.length),0),u=r>wv,c=o>nm;return{rows:i.slice(0,wv).map(f=>f.slice(0,nm)),rowCount:r,columnCount:o,truncatedRows:u,truncatedColumns:c}}function W1(e){const n=e.lastIndexOf(".");return n>=0?e.slice(n).toLowerCase():""}function KO(e){return typeof window>"u"?e:new URL(e,document.baseURI||window.location.href).toString()}function ZO(e){return e instanceof DOMException&&e.name==="AbortError"?!0:typeof e=="string"&&e==="preview-timeout"}function $O(e,n){const i=[];let r=[],o="",u=!1;for(let c=0;c<e.length;c+=1){const f=e[c],h=e[c+1];if(f==='"'){u&&h==='"'?(o+='"',c+=1):u=!u;continue}if(!u&&f===n){r.push(o),o="";continue}if(!u&&(f===`
352
- `||f==="\r")){f==="\r"&&h===`
353
- `&&(c+=1),r.push(o),i.push(r),r=[],o="";continue}o+=f}return(o.length>0||r.length>0)&&(r.push(o),i.push(r)),i}function JO({attachment:e,previewUrl:n,onClick:i,onRemove:r,className:o,size:u="transcript"}){const c=e.contentUrl||n,f=u==="composer";return x.jsxs("div",{className:Me("group relative flex flex-row items-end",o),children:[x.jsxs("button",{type:"button",onClick:i,className:Me("group/image relative overflow-hidden rounded-xl border border-border/80 bg-background/85 shadow-sm backdrop-blur-md",f?"min-w-[80px]":"min-w-[200px]"),children:[c?x.jsx("img",{src:c,alt:e.displayName,className:Me("rounded-xl object-contain bg-muted",f?"min-h-[50px] min-w-[80px] max-h-[120px] max-w-[200px]":"min-h-[100px] min-w-[200px] max-h-[300px] max-w-[300px]")}):x.jsx("div",{className:Me("flex items-center justify-center rounded-xl bg-muted text-muted-foreground",f?"min-h-[64px] min-w-[80px]":"min-h-[160px] min-w-[200px]"),children:x.jsx(Qv,{className:Me(f?"size-6":"size-8")})}),x.jsxs("div",{className:Me("pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/75 via-black/30 to-transparent text-left opacity-0 transition-opacity duration-200 group-hover/image:opacity-100",f?"px-2.5 pb-2 pt-6":"px-4 pb-3 pt-10"),children:[x.jsx("div",{className:Me("truncate font-medium text-white",f?"text-xs":"text-sm"),children:e.displayName}),x.jsxs("div",{className:"truncate text-xs text-white/80",children:[e.mimeType," · ",Gm(e.size)]})]})]}),r?x.jsx(ex,{displayName:e.displayName,onRemove:r}):null]})}function WO({attachment:e,onClick:n,onRemove:i,className:r}){const o=e4(GO(e));return x.jsxs("div",{className:Me("group relative",r),children:[x.jsxs("button",{type:"button",onClick:n,className:"flex w-[200px] items-center gap-2 rounded-xl border border-border bg-background/85 p-1 pr-3 text-left transition-colors hover:bg-accent/50",children:[x.jsx("div",{className:"flex min-h-10 min-w-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground",children:x.jsx(o,{className:"size-5"})}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("div",{className:"max-w-[150px] truncate text-[13px] font-medium text-foreground",children:e.displayName}),x.jsxs("div",{className:"truncate text-[11px] text-muted-foreground",children:[e.mimeType," · ",Gm(e.size)]})]})]}),i?x.jsx(ex,{displayName:e.displayName,onRemove:i}):null]})}function ex({displayName:e,onRemove:n}){return x.jsx("button",{type:"button",className:"absolute right-2 top-2 rounded-full bg-background/90 p-1 text-muted-foreground shadow-sm transition hover:bg-muted hover:text-foreground",onClick:i=>{i.preventDefault(),i.stopPropagation(),n()},"aria-label":`Remove ${e}`,children:x.jsx(ta,{className:"h-3.5 w-3.5"})})}function e4(e){switch(e){case"image":return Qv;case"pdf":return kC;case"markdown":return EC;case"json":return Yk;case"table":return lC;case"code":return Xk;case"text":return rC;case"archive":return qk;case"audio":return Zk;case"video":return oC;default:return Xv}}function Gm(e){return e<1024?`${e} B`:e<1024*1024?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function xi(e,n,{checkForDefaultPrevented:i=!0}={}){return function(o){if(e==null||e(o),i===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function kv(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function tx(...e){return n=>{let i=!1;const r=e.map(o=>{const u=kv(o,n);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():kv(e[o],null)}}}}function lr(...e){return E.useCallback(tx(...e),e)}function t4(e,n){const i=E.createContext(n),r=u=>{const{children:c,...f}=u,h=E.useMemo(()=>f,Object.values(f));return x.jsx(i.Provider,{value:h,children:c})};r.displayName=e+"Provider";function o(u){const c=E.useContext(i);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[r,o]}function n4(e,n=[]){let i=[];function r(u,c){const f=E.createContext(c),h=i.length;i=[...i,c];const m=g=>{var _;const{scope:v,children:b,...w}=g,k=((_=v==null?void 0:v[e])==null?void 0:_[h])||f,T=E.useMemo(()=>w,Object.values(w));return x.jsx(k.Provider,{value:T,children:b})};m.displayName=u+"Provider";function y(g,v){var k;const b=((k=v==null?void 0:v[e])==null?void 0:k[h])||f,w=E.useContext(b);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[m,y]}const o=()=>{const u=i.map(c=>E.createContext(c));return function(f){const h=(f==null?void 0:f[e])||u;return E.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[r,l4(o,...n)]}function l4(...e){const n=e[0];if(e.length===1)return n;const i=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const c=r.reduce((f,{useScope:h,scopeName:m})=>{const g=h(u)[`__scope${m}`];return{...f,...g}},{});return E.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return i.scopeName=n.scopeName,i}var yo=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},i4=qv[" useId ".trim().toString()]||(()=>{}),r4=0;function Cd(e){const[n,i]=E.useState(i4());return yo(()=>{i(r=>r??String(r4++))},[e]),e||(n?`radix-${n}`:"")}var a4=qv[" useInsertionEffect ".trim().toString()]||yo;function o4({prop:e,defaultProp:n,onChange:i=()=>{},caller:r}){const[o,u,c]=s4({defaultProp:n,onChange:i}),f=e!==void 0,h=f?e:o;{const y=E.useRef(e!==void 0);E.useEffect(()=>{const g=y.current;g!==f&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${f?"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.`),y.current=f},[f,r])}const m=E.useCallback(y=>{var g;if(f){const v=u4(y)?y(e):y;v!==e&&((g=c.current)==null||g.call(c,v))}else u(y)},[f,e,u,c]);return[h,m]}function s4({defaultProp:e,onChange:n}){const[i,r]=E.useState(e),o=E.useRef(i),u=E.useRef(n);return a4(()=>{u.current=n},[n]),E.useEffect(()=>{var c;o.current!==i&&((c=u.current)==null||c.call(u,i),o.current=i)},[i,o]),[i,r,u]}function u4(e){return typeof e=="function"}function nx(e){const n=c4(e),i=E.forwardRef((r,o)=>{const{children:u,...c}=r,f=E.Children.toArray(u),h=f.find(d4);if(h){const m=h.props.children,y=f.map(g=>g===h?E.Children.count(m)>1?E.Children.only(null):E.isValidElement(m)?m.props.children:null:g);return x.jsx(n,{...c,ref:o,children:E.isValidElement(m)?E.cloneElement(m,void 0,y):null})}return x.jsx(n,{...c,ref:o,children:u})});return i.displayName=`${e}.Slot`,i}function c4(e){const n=E.forwardRef((i,r)=>{const{children:o,...u}=i;if(E.isValidElement(o)){const c=h4(o),f=m4(u,o.props);return o.type!==E.Fragment&&(f.ref=r?tx(r,c):c),E.cloneElement(o,f)}return E.Children.count(o)>1?E.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var f4=Symbol("radix.slottable");function d4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===f4}function m4(e,n){const i={...n};for(const r in n){const o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?i[r]=(...f)=>{const h=u(...f);return o(...f),h}:o&&(i[r]=o):r==="style"?i[r]={...o,...u}:r==="className"&&(i[r]=[o,u].filter(Boolean).join(" "))}return{...e,...i}}function h4(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var p4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hl=p4.reduce((e,n)=>{const i=nx(`Primitive.${n}`),r=E.forwardRef((o,u)=>{const{asChild:c,...f}=o,h=c?i:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...f,ref:u})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function g4(e,n){e&&vu.flushSync(()=>e.dispatchEvent(n))}function vo(e){const n=E.useRef(e);return E.useEffect(()=>{n.current=e}),E.useMemo(()=>(...i)=>{var r;return(r=n.current)==null?void 0:r.call(n,...i)},[])}function y4(e,n=globalThis==null?void 0:globalThis.document){const i=vo(e);E.useEffect(()=>{const r=o=>{o.key==="Escape"&&i(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[i,n])}var v4="DismissableLayer",lm="dismissableLayer.update",b4="dismissableLayer.pointerDownOutside",x4="dismissableLayer.focusOutside",Cv,lx=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ix=E.forwardRef((e,n)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...h}=e,m=E.useContext(lx),[y,g]=E.useState(null),v=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=E.useState({}),w=lr(n,H=>g(H)),k=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),_=k.indexOf(T),j=y?k.indexOf(y):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,P=j>=_,F=k4(H=>{const V=H.target,te=[...m.branches].some(I=>I.contains(V));!P||te||(o==null||o(H),c==null||c(H),H.defaultPrevented||f==null||f())},v),R=C4(H=>{const V=H.target;[...m.branches].some(I=>I.contains(V))||(u==null||u(H),c==null||c(H),H.defaultPrevented||f==null||f())},v);return y4(H=>{j===m.layers.size-1&&(r==null||r(H),!H.defaultPrevented&&f&&(H.preventDefault(),f()))},v),E.useEffect(()=>{if(y)return i&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Cv=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Ev(),()=>{i&&m.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Cv)}},[y,v,i,m]),E.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Ev())},[y,m]),E.useEffect(()=>{const H=()=>b({});return document.addEventListener(lm,H),()=>document.removeEventListener(lm,H)},[]),x.jsx(Hl.div,{...h,ref:w,style:{pointerEvents:M?P?"auto":"none":void 0,...e.style},onFocusCapture:xi(e.onFocusCapture,R.onFocusCapture),onBlurCapture:xi(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:xi(e.onPointerDownCapture,F.onPointerDownCapture)})});ix.displayName=v4;var S4="DismissableLayerBranch",w4=E.forwardRef((e,n)=>{const i=E.useContext(lx),r=E.useRef(null),o=lr(n,r);return E.useEffect(()=>{const u=r.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),x.jsx(Hl.div,{...e,ref:o})});w4.displayName=S4;function k4(e,n=globalThis==null?void 0:globalThis.document){const i=vo(e),r=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const u=f=>{if(f.target&&!r.current){let h=function(){rx(b4,i,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,i]),{onPointerDownCapture:()=>r.current=!0}}function C4(e,n=globalThis==null?void 0:globalThis.document){const i=vo(e),r=E.useRef(!1);return E.useEffect(()=>{const o=u=>{u.target&&!r.current&&rx(x4,i,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,i]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ev(){const e=new CustomEvent(lm);document.dispatchEvent(e)}function rx(e,n,i,{discrete:r}){const o=i.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});n&&o.addEventListener(e,n,{once:!0}),r?g4(o,u):o.dispatchEvent(u)}var Ed="focusScope.autoFocusOnMount",Ad="focusScope.autoFocusOnUnmount",Av={bubbles:!1,cancelable:!0},E4="FocusScope",ax=E.forwardRef((e,n)=>{const{loop:i=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[f,h]=E.useState(null),m=vo(o),y=vo(u),g=E.useRef(null),v=lr(n,k=>h(k)),b=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let k=function(M){if(b.paused||!f)return;const P=M.target;f.contains(P)?g.current=P:bi(g.current,{select:!0})},T=function(M){if(b.paused||!f)return;const P=M.relatedTarget;P!==null&&(f.contains(P)||bi(g.current,{select:!0}))},_=function(M){if(document.activeElement===document.body)for(const F of M)F.removedNodes.length>0&&bi(f)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const j=new MutationObserver(_);return f&&j.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),j.disconnect()}}},[r,f,b.paused]),E.useEffect(()=>{if(f){_v.add(b);const k=document.activeElement;if(!f.contains(k)){const _=new CustomEvent(Ed,Av);f.addEventListener(Ed,m),f.dispatchEvent(_),_.defaultPrevented||(A4(M4(ox(f)),{select:!0}),document.activeElement===k&&bi(f))}return()=>{f.removeEventListener(Ed,m),setTimeout(()=>{const _=new CustomEvent(Ad,Av);f.addEventListener(Ad,y),f.dispatchEvent(_),_.defaultPrevented||bi(k??document.body,{select:!0}),f.removeEventListener(Ad,y),_v.remove(b)},0)}}},[f,m,y,b]);const w=E.useCallback(k=>{if(!i&&!r||b.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,_=document.activeElement;if(T&&_){const j=k.currentTarget,[M,P]=T4(j);M&&P?!k.shiftKey&&_===P?(k.preventDefault(),i&&bi(M,{select:!0})):k.shiftKey&&_===M&&(k.preventDefault(),i&&bi(P,{select:!0})):_===j&&k.preventDefault()}},[i,r,b.paused]);return x.jsx(Hl.div,{tabIndex:-1,...c,ref:v,onKeyDown:w})});ax.displayName=E4;function A4(e,{select:n=!1}={}){const i=document.activeElement;for(const r of e)if(bi(r,{select:n}),document.activeElement!==i)return}function T4(e){const n=ox(e),i=Tv(n,e),r=Tv(n.reverse(),e);return[i,r]}function ox(e){const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n}function Tv(e,n){for(const i of e)if(!_4(i,{upTo:n}))return i}function _4(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function N4(e){return e instanceof HTMLInputElement&&"select"in e}function bi(e,{select:n=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&N4(e)&&n&&e.select()}}var _v=z4();function z4(){let e=[];return{add(n){const i=e[0];n!==i&&(i==null||i.pause()),e=Nv(e,n),e.unshift(n)},remove(n){var i;e=Nv(e,n),(i=e[0])==null||i.resume()}}}function Nv(e,n){const i=[...e],r=i.indexOf(n);return r!==-1&&i.splice(r,1),i}function M4(e){return e.filter(n=>n.tagName!=="A")}var O4="Portal",sx=E.forwardRef((e,n)=>{var f;const{container:i,...r}=e,[o,u]=E.useState(!1);yo(()=>u(!0),[]);const c=i||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?GC.createPortal(x.jsx(Hl.div,{...r,ref:n}),c):null});sx.displayName=O4;function j4(e,n){return E.useReducer((i,r)=>n[i][r]??i,e)}var ju=e=>{const{present:n,children:i}=e,r=R4(n),o=typeof i=="function"?i({present:r.isPresent}):E.Children.only(i),u=lr(r.ref,L4(o));return typeof i=="function"||r.isPresent?E.cloneElement(o,{ref:u}):null};ju.displayName="Presence";function R4(e){const[n,i]=E.useState(),r=E.useRef(null),o=E.useRef(e),u=E.useRef("none"),c=e?"mounted":"unmounted",[f,h]=j4(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const m=Qs(r.current);u.current=f==="mounted"?m:"none"},[f]),yo(()=>{const m=r.current,y=o.current;if(y!==e){const v=u.current,b=Qs(m);e?h("MOUNT"):b==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(y&&v!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),yo(()=>{if(n){let m;const y=n.ownerDocument.defaultView??window,g=b=>{const k=Qs(r.current).includes(CSS.escape(b.animationName));if(b.target===n&&k&&(h("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",m=y.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},v=b=>{b.target===n&&(u.current=Qs(r.current))};return n.addEventListener("animationstart",v),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{y.clearTimeout(m),n.removeEventListener("animationstart",v),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:E.useCallback(m=>{r.current=m?getComputedStyle(m):null,i(m)},[])}}function Qs(e){return(e==null?void 0:e.animationName)||"none"}function L4(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Td=0;function D4(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zv()),document.body.insertAdjacentElement("beforeend",e[1]??zv()),Td++,()=>{Td===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Td--}},[])}function zv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ml=function(){return ml=Object.assign||function(n){for(var i,r=1,o=arguments.length;r<o;r++){i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},ml.apply(this,arguments)};function ux(e,n){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]]);return i}function I4(e,n,i){if(i||arguments.length===2)for(var r=0,o=n.length,u;r<o;r++)(u||!(r in n))&&(u||(u=Array.prototype.slice.call(n,0,r)),u[r]=n[r]);return e.concat(u||Array.prototype.slice.call(n))}var lu="right-scroll-bar-position",iu="width-before-scroll-bar",B4="with-scroll-bars-hidden",U4="--removed-body-scroll-bar-size";function _d(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function V4(e,n){var i=E.useState(function(){return{value:e,callback:n,facade:{get current(){return i.value},set current(r){var o=i.value;o!==r&&(i.value=r,i.callback(r,o))}}}})[0];return i.callback=n,i.facade}var F4=typeof window<"u"?E.useLayoutEffect:E.useEffect,Mv=new WeakMap;function H4(e,n){var i=V4(null,function(r){return e.forEach(function(o){return _d(o,r)})});return F4(function(){var r=Mv.get(i);if(r){var o=new Set(r),u=new Set(e),c=i.current;o.forEach(function(f){u.has(f)||_d(f,null)}),u.forEach(function(f){o.has(f)||_d(f,c)})}Mv.set(i,e)},[e]),i}function P4(e){return e}function q4(e,n){n===void 0&&(n=P4);var i=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(u){var c=n(u,r);return i.push(c),function(){i=i.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(r=!0;i.length;){var c=i;i=[],c.forEach(u)}i={push:function(f){return u(f)},filter:function(){return i}}},assignMedium:function(u){r=!0;var c=[];if(i.length){var f=i;i=[],f.forEach(u),c=i}var h=function(){var y=c;c=[],y.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),i={push:function(y){c.push(y),m()},filter:function(y){return c=c.filter(y),i}}}};return o}function G4(e){e===void 0&&(e={});var n=q4(null);return n.options=ml({async:!0,ssr:!1},e),n}var cx=function(e){var n=e.sideCar,i=ux(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,ml({},i))};cx.isSideCarExport=!0;function Y4(e,n){return e.useMedium(n),cx}var fx=G4(),Nd=function(){},Ru=E.forwardRef(function(e,n){var i=E.useRef(null),r=E.useState({onScrollCapture:Nd,onWheelCapture:Nd,onTouchMoveCapture:Nd}),o=r[0],u=r[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,y=e.enabled,g=e.shards,v=e.sideCar,b=e.noRelative,w=e.noIsolation,k=e.inert,T=e.allowPinchZoom,_=e.as,j=_===void 0?"div":_,M=e.gapMode,P=ux(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=v,R=H4([i,n]),H=ml(ml({},P),o);return E.createElement(E.Fragment,null,y&&E.createElement(F,{sideCar:fx,removeScrollBar:m,shards:g,noRelative:b,noIsolation:w,inert:k,setCallbacks:u,allowPinchZoom:!!T,lockRef:i,gapMode:M}),c?E.cloneElement(E.Children.only(f),ml(ml({},H),{ref:R})):E.createElement(j,ml({},H,{className:h,ref:R}),f))});Ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ru.classNames={fullWidth:iu,zeroRight:lu};var Q4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function X4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Q4();return n&&e.setAttribute("nonce",n),e}function K4(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Z4(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var $4=function(){var e=0,n=null;return{add:function(i){e==0&&(n=X4())&&(K4(n,i),Z4(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},J4=function(){var e=$4();return function(n,i){E.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},dx=function(){var e=J4(),n=function(i){var r=i.styles,o=i.dynamic;return e(r,o),null};return n},W4={left:0,top:0,right:0,gap:0},zd=function(e){return parseInt(e||"",10)||0},ej=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[zd(i),zd(r),zd(o)]},tj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return W4;var n=ej(e),i=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-i+n[2]-n[0])}},nj=dx(),Xr="data-scroll-locked",lj=function(e,n,i,r){var o=e.left,u=e.top,c=e.right,f=e.gap;return i===void 0&&(i="margin"),`
354
- .`.concat(B4,` {
355
- overflow: hidden `).concat(r,`;
356
- padding-right: `).concat(f,"px ").concat(r,`;
357
- }
358
- body[`).concat(Xr,`] {
359
- overflow: hidden `).concat(r,`;
360
- overscroll-behavior: contain;
361
- `).concat([n&&"position: relative ".concat(r,";"),i==="margin"&&`
362
- padding-left: `.concat(o,`px;
363
- padding-top: `).concat(u,`px;
364
- padding-right: `).concat(c,`px;
365
- margin-left:0;
366
- margin-top:0;
367
- margin-right: `).concat(f,"px ").concat(r,`;
368
- `),i==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
369
- }
370
-
371
- .`).concat(lu,` {
372
- right: `).concat(f,"px ").concat(r,`;
373
- }
374
-
375
- .`).concat(iu,` {
376
- margin-right: `).concat(f,"px ").concat(r,`;
377
- }
378
-
379
- .`).concat(lu," .").concat(lu,` {
380
- right: 0 `).concat(r,`;
381
- }
382
-
383
- .`).concat(iu," .").concat(iu,` {
384
- margin-right: 0 `).concat(r,`;
385
- }
386
-
387
- body[`).concat(Xr,`] {
388
- `).concat(U4,": ").concat(f,`px;
389
- }
390
- `)},Ov=function(){var e=parseInt(document.body.getAttribute(Xr)||"0",10);return isFinite(e)?e:0},ij=function(){E.useEffect(function(){return document.body.setAttribute(Xr,(Ov()+1).toString()),function(){var e=Ov()-1;e<=0?document.body.removeAttribute(Xr):document.body.setAttribute(Xr,e.toString())}},[])},rj=function(e){var n=e.noRelative,i=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ij();var u=E.useMemo(function(){return tj(o)},[o]);return E.createElement(nj,{styles:lj(u,!n,o,i?"":"!important")})},im=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return im=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{im=!1}var Hr=im?{passive:!1}:!1,aj=function(e){return e.tagName==="TEXTAREA"},mx=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!aj(e)&&i[n]==="visible")},oj=function(e){return mx(e,"overflowY")},sj=function(e){return mx(e,"overflowX")},jv=function(e,n){var i=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=hx(e,r);if(o){var u=px(e,r),c=u[1],f=u[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==i.body);return!1},uj=function(e){var n=e.scrollTop,i=e.scrollHeight,r=e.clientHeight;return[n,i,r]},cj=function(e){var n=e.scrollLeft,i=e.scrollWidth,r=e.clientWidth;return[n,i,r]},hx=function(e,n){return e==="v"?oj(n):sj(n)},px=function(e,n){return e==="v"?uj(n):cj(n)},fj=function(e,n){return e==="h"&&n==="rtl"?-1:1},dj=function(e,n,i,r,o){var u=fj(e,window.getComputedStyle(n).direction),c=u*r,f=i.target,h=n.contains(f),m=!1,y=c>0,g=0,v=0;do{if(!f)break;var b=px(e,f),w=b[0],k=b[1],T=b[2],_=k-T-u*w;(w||_)&&hx(e,f)&&(g+=_,v+=w);var j=f.parentNode;f=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(m=!0),m},Ks=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rv=function(e){return[e.deltaX,e.deltaY]},Lv=function(e){return e&&"current"in e?e.current:e},mj=function(e,n){return e[0]===n[0]&&e[1]===n[1]},hj=function(e){return`
391
- .block-interactivity-`.concat(e,` {pointer-events: none;}
392
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
393
- `)},pj=0,Pr=[];function gj(e){var n=E.useRef([]),i=E.useRef([0,0]),r=E.useRef(),o=E.useState(pj++)[0],u=E.useState(dx)[0],c=E.useRef(e);E.useEffect(function(){c.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var k=I4([e.lockRef.current],(e.shards||[]).map(Lv),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=E.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var _=Ks(k),j=i.current,M="deltaX"in k?k.deltaX:j[0]-_[0],P="deltaY"in k?k.deltaY:j[1]-_[1],F,R=k.target,H=Math.abs(M)>Math.abs(P)?"h":"v";if("touches"in k&&H==="h"&&R.type==="range")return!1;var V=window.getSelection(),te=V&&V.anchorNode,I=te?te===R||te.contains(R):!1;if(I)return!1;var J=jv(H,R);if(!J)return!0;if(J?F=H:(F=H==="v"?"h":"v",J=jv(H,R)),!J)return!1;if(!r.current&&"changedTouches"in k&&(M||P)&&(r.current=F),!F)return!0;var ae=r.current||F;return dj(ae,T,k,ae==="h"?M:P)},[]),h=E.useCallback(function(k){var T=k;if(!(!Pr.length||Pr[Pr.length-1]!==u)){var _="deltaY"in T?Rv(T):Ks(T),j=n.current.filter(function(F){return F.name===T.type&&(F.target===T.target||T.target===F.shadowParent)&&mj(F.delta,_)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var M=(c.current.shards||[]).map(Lv).filter(Boolean).filter(function(F){return F.contains(T.target)}),P=M.length>0?f(T,M[0]):!c.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),m=E.useCallback(function(k,T,_,j){var M={name:k,delta:T,target:_,should:j,shadowParent:yj(_)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(P){return P!==M})},1)},[]),y=E.useCallback(function(k){i.current=Ks(k),r.current=void 0},[]),g=E.useCallback(function(k){m(k.type,Rv(k),k.target,f(k,e.lockRef.current))},[]),v=E.useCallback(function(k){m(k.type,Ks(k),k.target,f(k,e.lockRef.current))},[]);E.useEffect(function(){return Pr.push(u),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",h,Hr),document.addEventListener("touchmove",h,Hr),document.addEventListener("touchstart",y,Hr),function(){Pr=Pr.filter(function(k){return k!==u}),document.removeEventListener("wheel",h,Hr),document.removeEventListener("touchmove",h,Hr),document.removeEventListener("touchstart",y,Hr)}},[]);var b=e.removeScrollBar,w=e.inert;return E.createElement(E.Fragment,null,w?E.createElement(u,{styles:hj(o)}):null,b?E.createElement(rj,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yj(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const vj=Y4(fx,gj);var gx=E.forwardRef(function(e,n){return E.createElement(Ru,ml({},e,{ref:n,sideCar:vj}))});gx.classNames=Ru.classNames;var bj=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},qr=new WeakMap,Zs=new WeakMap,$s={},Md=0,yx=function(e){return e&&(e.host||yx(e.parentNode))},xj=function(e,n){return n.map(function(i){if(e.contains(i))return i;var r=yx(i);return r&&e.contains(r)?r:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},Sj=function(e,n,i,r){var o=xj(n,Array.isArray(e)?e:[e]);$s[i]||($s[i]=new WeakMap);var u=$s[i],c=[],f=new Set,h=new Set(o),m=function(g){!g||f.has(g)||(f.add(g),m(g.parentNode))};o.forEach(m);var y=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(v){if(f.has(v))y(v);else try{var b=v.getAttribute(r),w=b!==null&&b!=="false",k=(qr.get(v)||0)+1,T=(u.get(v)||0)+1;qr.set(v,k),u.set(v,T),c.push(v),k===1&&w&&Zs.set(v,!0),T===1&&v.setAttribute(i,"true"),w||v.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",v,_)}})};return y(n),f.clear(),Md++,function(){c.forEach(function(g){var v=qr.get(g)-1,b=u.get(g)-1;qr.set(g,v),u.set(g,b),v||(Zs.has(g)||g.removeAttribute(r),Zs.delete(g)),b||g.removeAttribute(i)}),Md--,Md||(qr=new WeakMap,qr=new WeakMap,Zs=new WeakMap,$s={})}},wj=function(e,n,i){i===void 0&&(i="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=bj(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Sj(r,o,i,"aria-hidden")):function(){return null}},Lu="Dialog",[vx]=n4(Lu),[kj,rl]=vx(Lu),bx=e=>{const{__scopeDialog:n,children:i,open:r,defaultOpen:o,onOpenChange:u,modal:c=!0}=e,f=E.useRef(null),h=E.useRef(null),[m,y]=o4({prop:r,defaultProp:o??!1,onChange:u,caller:Lu});return x.jsx(kj,{scope:n,triggerRef:f,contentRef:h,contentId:Cd(),titleId:Cd(),descriptionId:Cd(),open:m,onOpenChange:y,onOpenToggle:E.useCallback(()=>y(g=>!g),[y]),modal:c,children:i})};bx.displayName=Lu;var xx="DialogTrigger",Cj=E.forwardRef((e,n)=>{const{__scopeDialog:i,...r}=e,o=rl(xx,i),u=lr(n,o.triggerRef);return x.jsx(Hl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xm(o.open),...r,ref:u,onClick:xi(e.onClick,o.onOpenToggle)})});Cj.displayName=xx;var Ym="DialogPortal",[Ej,Sx]=vx(Ym,{forceMount:void 0}),wx=e=>{const{__scopeDialog:n,forceMount:i,children:r,container:o}=e,u=rl(Ym,n);return x.jsx(Ej,{scope:n,forceMount:i,children:E.Children.map(r,c=>x.jsx(ju,{present:i||u.open,children:x.jsx(sx,{asChild:!0,container:o,children:c})}))})};wx.displayName=Ym;var hu="DialogOverlay",kx=E.forwardRef((e,n)=>{const i=Sx(hu,e.__scopeDialog),{forceMount:r=i.forceMount,...o}=e,u=rl(hu,e.__scopeDialog);return u.modal?x.jsx(ju,{present:r||u.open,children:x.jsx(Tj,{...o,ref:n})}):null});kx.displayName=hu;var Aj=nx("DialogOverlay.RemoveScroll"),Tj=E.forwardRef((e,n)=>{const{__scopeDialog:i,...r}=e,o=rl(hu,i);return x.jsx(gx,{as:Aj,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(Hl.div,{"data-state":Xm(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),$i="DialogContent",Cx=E.forwardRef((e,n)=>{const i=Sx($i,e.__scopeDialog),{forceMount:r=i.forceMount,...o}=e,u=rl($i,e.__scopeDialog);return x.jsx(ju,{present:r||u.open,children:u.modal?x.jsx(_j,{...o,ref:n}):x.jsx(Nj,{...o,ref:n})})});Cx.displayName=$i;var _j=E.forwardRef((e,n)=>{const i=rl($i,e.__scopeDialog),r=E.useRef(null),o=lr(n,i.contentRef,r);return E.useEffect(()=>{const u=r.current;if(u)return wj(u)},[]),x.jsx(Ex,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xi(e.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=i.triggerRef.current)==null||c.focus()}),onPointerDownOutside:xi(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:xi(e.onFocusOutside,u=>u.preventDefault())})}),Nj=E.forwardRef((e,n)=>{const i=rl($i,e.__scopeDialog),r=E.useRef(!1),o=E.useRef(!1);return x.jsx(Ex,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,u),u.defaultPrevented||(r.current||(f=i.triggerRef.current)==null||f.focus(),u.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:u=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,u),u.defaultPrevented||(r.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=u.target;((m=i.triggerRef.current)==null?void 0:m.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),Ex=E.forwardRef((e,n)=>{const{__scopeDialog:i,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...c}=e,f=rl($i,i),h=E.useRef(null),m=lr(n,h);return D4(),x.jsxs(x.Fragment,{children:[x.jsx(ax,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(ix,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Xm(f.open),...c,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(zj,{titleId:f.titleId}),x.jsx(Oj,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Qm="DialogTitle",Ax=E.forwardRef((e,n)=>{const{__scopeDialog:i,...r}=e,o=rl(Qm,i);return x.jsx(Hl.h2,{id:o.titleId,...r,ref:n})});Ax.displayName=Qm;var Tx="DialogDescription",_x=E.forwardRef((e,n)=>{const{__scopeDialog:i,...r}=e,o=rl(Tx,i);return x.jsx(Hl.p,{id:o.descriptionId,...r,ref:n})});_x.displayName=Tx;var Nx="DialogClose",zx=E.forwardRef((e,n)=>{const{__scopeDialog:i,...r}=e,o=rl(Nx,i);return x.jsx(Hl.button,{type:"button",...r,ref:n,onClick:xi(e.onClick,()=>o.onOpenChange(!1))})});zx.displayName=Nx;function Xm(e){return e?"open":"closed"}var Mx="DialogTitleWarning",[d5,Ox]=t4(Mx,{contentName:$i,titleName:Qm,docsSlug:"dialog"}),zj=({titleId:e})=>{const n=Ox(Mx),i=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
394
-
395
- If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
396
-
397
- For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(i))},[i,e]),null},Mj="DialogDescriptionWarning",Oj=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ox(Mj).contentName}}.`;return E.useEffect(()=>{var u;const o=(u=e.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},jj=bx,Rj=wx,jx=kx,Rx=Cx,Lj=Ax,Dj=_x,Ij=zx;const Bj="data-focus-fallback-ignore",Uj="kanna:restore-chat-input-focus",Lx="data-chat-selection-zone",Vj=jj,Fj=Rj,Dx=E.forwardRef(({className:e,...n},i)=>x.jsx(jx,{ref:i,className:Me("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));Dx.displayName=jx.displayName;const Hj={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"},Ix=E.forwardRef(({className:e,children:n,size:i="md",...r},o)=>x.jsxs(Fj,{children:[x.jsx(Dx,{}),x.jsxs(Rx,{ref:o,[Bj]:"",onCloseAutoFocus:u=>{var c;u.preventDefault(),window.dispatchEvent(new Event(Uj)),(c=r.onCloseAutoFocus)==null||c.call(r,u)},className:Me("fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-background shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","max-h-[85vh] flex flex-col",Hj[i],e),...r,children:[n,x.jsxs(Ij,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(ta,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ix.displayName=Rx.displayName;function Pj({className:e,...n}){return x.jsx("div",{className:Me("shrink-0 flex flex-col space-y-1.5 p-4 border-b border-border",e),...n})}function qj({className:e,...n}){return x.jsx(Lj,{className:Me("text-lg font-medium leading-none tracking-tight",e),...n})}function Gj({className:e,...n}){return x.jsx(Dj,{className:Me("text-sm text-muted-foreground",e),...n})}function Yj({className:e,...n}){return x.jsx("div",{className:Me("flex-1 min-h-0 overflow-y-auto px-4 pb-4 pt-3.5",e),...n})}function Qj({className:e,...n}){return x.jsx("div",{className:Me("shrink-0 flex justify-end gap-2 border-t border-border bg-background p-2 rounded-b-xl",e),...n})}function Xj({className:e,...n}){return x.jsx("button",{className:Me("touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer text-sm font-medium transition-colors","rounded-full h-9 px-4","hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground","disabled:pointer-events-none disabled:text-muted-foreground/50",e),...n})}function Kj(e){const n=e.split(`
398
- `),i=/^\s*(\d+)→(.*)$/;return n.map(r=>{const o=r.match(i);return o?{lineNumber:parseInt(o[1],10),content:o[2]}:{lineNumber:null,content:r}})}function Zj(e){return e.replace(/<[^>]+>/g,"")}function $j(e,n){const i=e.split(`
399
- `),r=n.split(`
400
- `),o=Jj(i,r),u=Wj(i,r,o);return eR(u)}function Jj(e,n){const i=e.length,r=n.length,o=Array.from({length:i+1},()=>Array(r+1).fill(0));for(let u=1;u<=i;u++)for(let c=1;c<=r;c++)o[u][c]=e[u-1]===n[c-1]?o[u-1][c-1]+1:Math.max(o[u-1][c],o[u][c-1]);return o}function Wj(e,n,i){const r=[];let o=e.length,u=n.length;for(;o>0||u>0;)o>0&&u>0&&e[o-1]===n[u-1]?(r.push({type:"context",text:e[o-1],oldIdx:o,newIdx:u}),o--,u--):u>0&&(o===0||i[o][u-1]>=i[o-1][u])?(r.push({type:"added",text:n[u-1],oldIdx:o,newIdx:u}),u--):(r.push({type:"removed",text:e[o-1],oldIdx:o,newIdx:u}),o--);return r.reverse()}function eR(e){return e.map(n=>{const i=n.type==="removed"?"-":n.type==="added"?"+":" ";return{type:n.type,content:`${i}${n.text}`}})}function io({content:e,isDiff:n=!1,oldString:i,newString:r}){const o=E.useMemo(()=>n&&i!==void 0&&r!==void 0?$j(i,r):[],[n,i,r]),u=E.useMemo(()=>n?[]:Kj(e),[e,n]),c=E.useMemo(()=>u.some(f=>f.lineNumber!==null),[u]);return n&&o.length>0?x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:o.map((f,h)=>{const m=f.type==="removed"?"bg-red-500/10 dark:bg-red-500/15":f.type==="added"?"bg-green-500/10 dark:bg-green-500/15":"",y=f.type==="removed"?"text-red-700 dark:text-red-400":f.type==="added"?"text-green-700 dark:text-green-400":"text-foreground";return x.jsxs("tr",{className:m,children:[x.jsx("td",{className:`px-2 py-0 select-none w-0 whitespace-nowrap ${f.type==="removed"?"text-red-500/50":f.type==="added"?"text-green-500/50":"text-muted-foreground/50"}`,children:f.type==="removed"?"-":f.type==="added"?"+":" "}),x.jsx("td",{className:`px-2 py-0 whitespace-pre select-all ${y}`,children:f.content.slice(1)})]},h)})})})})}):x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:u.map((f,h)=>x.jsxs("tr",{children:[c&&x.jsx("td",{className:"px-2 py-0 select-none w-0 whitespace-nowrap text-muted-foreground/50 text-right",children:f.lineNumber!==null?f.lineNumber:""}),x.jsx("td",{className:"px-2 py-0 whitespace-pre select-all text-foreground",children:Zj(f.content)})]},h))})})})})}function tR({attachment:e,onOpenChange:n}){const[i,r]=E.useState({}),o=E.useMemo(()=>e?J1(e):null,[e]),u=e?i[e.id]:void 0,c=e!=null&&e.contentUrl?lR(e.contentUrl):"";E.useEffect(()=>{if(!e||!o||o.openInNewTab||o.kind==="image"||o.kind==="pdf"||o.kind==="external")return;const m=o.kind;if((u==null?void 0:u.status)==="loading"||(u==null?void 0:u.status)==="ready")return;let y=!1;return r(g=>({...g,[e.id]:{status:"loading"}})),YO(e.contentUrl,VO).then(({content:g,truncated:v})=>{if(y)return;if(m==="table"){const w=e.mimeType==="text/tab-separated-values"?" ":",";r(k=>({...k,[e.id]:{status:"ready",kind:"table",truncated:v,table:XO(g,w)}}));return}const b=m==="json"?QO(g):g;r(w=>({...w,[e.id]:{status:"ready",kind:m,content:b,truncated:v}}))}).catch(g=>{if(y)return;const v=g instanceof Error?g.message:"Unable to load preview.";r(b=>({...b,[e.id]:{status:"error",message:v}}))}),()=>{y=!0}},[e==null?void 0:e.id,e==null?void 0:e.contentUrl,e==null?void 0:e.mimeType,o==null?void 0:o.kind,o==null?void 0:o.openInNewTab]);async function f(){var m;!c||typeof navigator>"u"||!((m=navigator.clipboard)!=null&&m.writeText)||await navigator.clipboard.writeText(c)}function h(){!c||typeof window>"u"||window.open(c,"_blank","noopener,noreferrer")}return x.jsx(Vj,{open:e!==null&&!(o!=null&&o.openInNewTab),onOpenChange:n,children:x.jsx(Ix,{size:"lg",className:"max-w-[min(92vw,960px)] overflow-hidden p-0",children:e&&o&&!o.openInNewTab?x.jsxs(x.Fragment,{children:[x.jsx(Pj,{className:"pr-12",children:x.jsx(qj,{className:"text-md",children:e.displayName})}),x.jsx(Yj,{className:"bg-muted/20 p-4",children:nR(e,o.kind,u)}),x.jsxs(Qj,{className:"items-center justify-between gap-3 px-4 py-3",children:[x.jsxs(Gj,{className:"truncate",children:[e.mimeType," · ",Gm(e.size)]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs(Xj,{type:"button",onClick:f,children:[x.jsx(mC,{className:"mr-2 h-4 w-4"}),"Copy Link"]}),x.jsxs(an,{type:"button",variant:"outline",onClick:h,children:[x.jsx(Hk,{className:"mr-2 h-4 w-4"}),"Open In New Tab"]})]})]})]}):null})})}function nR(e,n,i){if(n==="image")return x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("img",{src:e.contentUrl,alt:e.displayName,className:"max-h-[70vh] w-auto max-w-full rounded-2xl object-contain"})});if(n==="pdf")return x.jsx("iframe",{src:e.contentUrl,title:e.displayName,className:"h-[70vh] w-full rounded-xl border border-border bg-background"});if(!i||i.status==="loading")return x.jsx("div",{className:"flex h-[50vh] items-center justify-center text-sm text-muted-foreground",children:"Loading preview…"});if(i.status==="error")return x.jsx("div",{className:"flex h-[50vh] items-center justify-center text-sm text-destructive",children:i.message});if(i.kind==="markdown"&&i.content!==void 0)return x.jsxs("div",{className:"space-y-3",children:[i.truncated?x.jsx(Od,{message:"Preview truncated to 1024 KB."}):null,x.jsx("div",{className:"prose prose-sm max-w-none overflow-auto rounded-xl border border-border bg-background p-4 prose-invert",children:x.jsx(ra,{remarkPlugins:[aa],components:na(),children:i.content})})]});if(i.kind==="table"&&i.table){const r=i.table.rows.length>0,[o,...u]=i.table.rows,c=[i.truncated?"Preview truncated to 1024 KB.":null,i.table.truncatedRows?`Showing first ${i.table.rows.length} of ${i.table.rowCount} rows.`:null,i.table.truncatedColumns?`Showing first ${nm} of ${i.table.columnCount} columns.`:null].filter(Boolean);return x.jsxs("div",{className:"space-y-3",children:[c.length>0?x.jsx(Od,{message:c.join(" ")}):null,x.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-xl border border-border bg-background",children:x.jsxs("table",{className:"min-w-full border-collapse text-xs",children:[r?x.jsx("thead",{className:"sticky top-0 bg-muted",children:x.jsx("tr",{children:o.map((f,h)=>x.jsx("th",{className:"border-b border-border px-3 py-2 text-left font-medium text-foreground",children:f||" "},`${f}-${h}`))})}):null,x.jsx("tbody",{children:(r?u:i.table.rows).map((f,h)=>x.jsx("tr",{className:"odd:bg-background even:bg-muted/20",children:f.map((m,y)=>x.jsx("td",{className:"max-w-[320px] border-b border-border px-3 py-2 align-top text-foreground",children:x.jsx("div",{className:"whitespace-pre-wrap break-words",children:m||" "})},`${h}-${y}`))},h))})]})})]})}return x.jsxs("div",{className:"space-y-3",children:[i.truncated?x.jsx(Od,{message:"Preview truncated to 1024 KB."}):null,x.jsx(io,{content:i.content??""})]})}function Od({message:e}){return x.jsx("div",{className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-muted-foreground",children:e})}function lR(e){return typeof window>"u"?e:new URL(e,document.baseURI||window.location.href).toString()}function iR(e){var i;const n=e.match(/^<system-message>\s*([\s\S]*?)\s*<\/system-message>\s*([\s\S]*)$/);return n?{systemMessage:((i=n[1])==null?void 0:i.trim())||null,body:n[2]??""}:{systemMessage:null,body:e}}function rR({content:e,attachments:n=[],steered:i=!1}){const[r,o]=E.useState(null),u=Eu(),c=E.useMemo(()=>iR(e),[e]),f=u.attachmentMode==="metadata",h=!u.readonly||u.attachmentMode==="bundle",m=E.useMemo(()=>n.filter(b=>b.kind==="image"&&(b.contentUrl||f)),[n,f]),y=E.useMemo(()=>n.filter(b=>b.kind!=="image"||!b.contentUrl&&!f),[n,f]),g=n.find(b=>b.id===r)??null;function v(b){if(!h||!b.contentUrl)return;if(J1(b).openInNewTab){typeof window<"u"&&window.open(new URL(b.contentUrl,document.baseURI||window.location.href).toString(),"_blank","noopener,noreferrer");return}o(b.id)}return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col items-end gap-2",children:[m.length>0?x.jsx("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-wrap justify-end gap-3",children:m.map(b=>x.jsx(JO,{attachment:b,onClick:h?()=>v(b):void 0},b.id))}):null,y.length>0?x.jsx("div",{className:"flex max-w-[85%] sm:max-w-[80%] flex-wrap justify-end gap-2",children:y.map(b=>x.jsx(WO,{attachment:b,onClick:h?()=>v(b):void 0},b.id))}):null,c.body||!c.body&&n.length===0&&e&&!c.systemMessage?x.jsxs("div",{className:"flex max-w-[85%] items-center gap-2 sm:max-w-[80%]",children:[i?x.jsx("span",{"aria-label":"Sent mid-turn",role:"img",title:"Sent mid-turn",className:"shrink-0 text-muted-foreground",children:x.jsx(Vk,{className:"h-4 w-4"})}):null,x.jsx("div",{className:"min-w-0 flex-1 rounded-[20px] border border-border bg-muted px-3.5 py-1.5 text-primary prose prose-sm prose-invert [&_p]:whitespace-pre-line",children:x.jsx(ra,{remarkPlugins:[aa],components:na(),children:c.body})})]}):null]}),x.jsx(tR,{attachment:g,onOpenChange:b=>!b&&o(null)})]})}function aR({json:e}){return x.jsx("div",{className:"flex gap-3 justify-start",children:x.jsx("div",{className:"flex-1 max-w-[90%]",children:x.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words bg-muted rounded-lg p-3 overflow-auto max-h-96",children:e})})})}function rm(e){return e.split(/[\s_-]+/).filter(Boolean).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")}const oR=[/^(?:\/usr\/bin\/env\s+)?(?:\/bin\/)?(?:bash|zsh|sh)\s+(?:-[a-zA-Z]*c|-c)\s+(['"])([\s\S]*)\1$/,/^(?:\/usr\/bin\/env\s+)?(?:\/bin\/)?(?:bash|zsh|sh)\s+(?:-[a-zA-Z]*c|-c)\s+(.+)$/,/^(?:\/usr\/bin\/env\s+)?(?:cmd(?:\.exe)?)\s+\/c\s+(['"])([\s\S]*)\1$/i,/^(?:\/usr\/bin\/env\s+)?(?:cmd(?:\.exe)?)\s+\/c\s+(.+)$/i,/^(?:\/usr\/bin\/env\s+)?(?:powershell(?:\.exe)?|pwsh)\s+(?:-NoProfile\s+)?-Command\s+(['"])([\s\S]*)\1$/i,/^(?:\/usr\/bin\/env\s+)?(?:powershell(?:\.exe)?|pwsh)\s+(?:-NoProfile\s+)?-Command\s+(.+)$/i];function sR(e){const n=e.trim();for(const i of oR){const r=n.match(i);if(!r)continue;const o=(r[2]??r[1]??"").trim();if(o)return o}return n}function Bx({title:e,count:n,children:i,badge:r}){const[o,u]=E.useState(!1);return n===0?null:x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>u(!o),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Qi,{className:Me("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",o&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:e}),x.jsx("span",{className:"text-muted-foreground/60",children:n}),r]}),o&&x.jsx("div",{className:"ml-5",children:i})]})}function jd({title:e,items:n,icon:i,getIcon:r}){return n.length===0?null:x.jsx(Bx,{title:e,count:n.length,children:x.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(o=>x.jsx(Yb,{icon:r?r(o):i,children:o},o))})})}function uR(e){const n=e.match(/^mcp__([^_]+)__(.+)$/);return n?{server:n[1],tool:n[2]}:null}function Ux({status:e}){const n=e==="connected"?"bg-emerald-500":e==="pending"?"bg-yellow-500":"bg-red-500";return x.jsx("span",{className:Me("inline-block h-2 w-2 rounded-full shrink-0",n)})}function cR(e){switch(e){case"connected":return"Connected";case"failed":return"Failed";case"needs-auth":return"Needs auth";case"pending":return"Connecting...";case"disabled":return"Disabled";default:return e}}function Dv({server:e}){const[n,i]=E.useState(!1),r=e.status==="connected";return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>r&&e.tools.length>0&&i(!n),className:Me("flex items-center gap-1.5",r&&e.tools.length>0&&"cursor-pointer hover:opacity-60 transition-opacity"),children:[r&&e.tools.length>0&&x.jsx(Qi,{className:Me("h-3 w-3 text-muted-foreground transition-transform duration-200",n&&"rotate-90")}),x.jsx(Ux,{status:e.status}),x.jsx("span",{className:"text-muted-foreground font-medium",children:rm(e.name)}),r?x.jsxs("span",{className:"text-muted-foreground/50",children:[e.tools.length," tools"]}):x.jsx("span",{className:"text-muted-foreground/50",children:cR(e.status)})]}),!r&&e.error&&x.jsx("span",{className:"text-destructive ml-5",children:e.error}),n&&e.tools.length>0&&x.jsx("div",{className:"flex flex-wrap gap-1.5 ml-5",children:e.tools.map(o=>x.jsx(Yb,{icon:qb(`mcp__${e.name}__${o}`),children:o},o))})]})}function fR({servers:e}){if(e.length===0)return null;const n=e.filter(o=>o.status==="connected"),i=e.filter(o=>o.status!=="connected"),r=i.length>0?x.jsxs("span",{className:"flex items-center gap-1 ml-1",children:[x.jsx(Ux,{status:"failed"}),x.jsxs("span",{className:"text-muted-foreground/60",children:[i.length," disconnected"]})]}):null;return x.jsx(Bx,{title:"MCP Servers",count:e.length,badge:r,children:x.jsxs("div",{className:"flex flex-col gap-2",children:[n.map(o=>x.jsx(Dv,{server:o},o.name)),i.map(o=>x.jsx(Dv,{server:o},o.name))]})})}function dR({rawJson:e}){const[n,i]=E.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>i(!n),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Qi,{className:Me("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",n&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:"Raw Message"})]}),n&&x.jsx("pre",{className:"ml-5 text-xs whitespace-pre-wrap break-all border border-border rounded-md p-3 overflow-x-auto max-h-96 overflow-y-auto",children:e})]})}function mR({message:e,rawJson:n}){const{coreTools:i,mcpServersWithTools:r}=E.useMemo(()=>{const o=new Map,u=[];for(const f of e.tools){const h=uR(f);if(h){const m=o.get(h.server)||[];m.push(h.tool),o.set(h.server,m)}else u.push(f)}const c=e.mcpServers.map(f=>({name:f.name,status:f.status,error:f.error,tools:o.get(f.name)||[]}));return{coreTools:u,mcpServersWithTools:c}},[e.tools,e.mcpServers]);return x.jsx(Vl,{children:x.jsxs(Au,{expandedContent:x.jsx(Tu,{className:"my-4 text-xs",children:x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx(dT,{children:e.model}),x.jsx(jd,{title:"Tools",items:i,getIcon:o=>qd[o]??Pb}),x.jsx(jd,{title:"Agents",items:e.agents,icon:sm}),x.jsx(jd,{title:"Commands",items:e.slashCommands,icon:zC}),x.jsx(fR,{servers:r}),n&&x.jsx(dR,{rawJson:n})]})}),children:[x.jsx(Sk,{className:"h-5 w-5 text-logo"}),x.jsx(wi,{children:"Session Started"})]})})}function hR({message:e}){return x.jsx(Vl,{className:"hidden",children:x.jsxs(Au,{expandedContent:x.jsx(Tu,{className:"my-4 text-xs",children:x.jsx("pre",{className:"font-mono whitespace-pre-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto",children:JSON.stringify(e.accountInfo,null,2)})}),children:[x.jsx("div",{className:"size-5 flex justify-center items-center ",children:x.jsx(sm,{className:"h-4 w-4 text-muted-foreground"})}),x.jsx(wi,{children:"Account"})]})})}function pR({message:e}){return x.jsx("div",{className:"text-pretty prose prose-sm dark:prose-invert px-0.5 w-full max-w-full space-y-4",children:x.jsx(ra,{remarkPlugins:[aa],components:na(),children:e.text})})}function gR({question:e,currentIndex:n,totalQuestions:i,onBack:r,children:o}){const u=r&&n>0;return x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border text-foreground flex flex-row items-center gap-2",children:[u?x.jsx("button",{onClick:r,className:" text-muted-foreground hover:opacity-60 transition-all flex items-center",children:x.jsx(zk,{className:"h-4 w-4 -ml-0.5",strokeWidth:3})}):i>1?x.jsxs("span",{className:"font-bold text-muted-foreground whitespace-nowrap",children:[n+1," of ",i]}):null,e]}),i>1&&x.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-border",children:x.jsx("div",{className:"h-full bg-muted-foreground/40 transition-all duration-300",style:{width:`${n/i*100}%`}})})]}),o]})}function Iv({label:e,description:n}){return x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-foreground text-sm",children:e}),n&&x.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n})]})}function Vx({selected:e,multiSelect:n,onClick:i}){return x.jsx("button",{type:"button",onClick:i,className:Me("flex-shrink-0 w-5 h-5 border-1 flex items-center justify-center",n?"rounded":"rounded-full",e?"border-slate-500/0 bg-foreground":"border-muted-foreground/50 bg-background",i&&e&&"cursor-pointer"),children:e&&x.jsx(Kr,{strokeWidth:3,className:"translate-y-[0.5px] h-3 w-3 text-white dark:text-background"})})}function yR({option:e,selected:n,multiSelect:i,onClick:r,isLast:o}){const u="w-full text-left p-3 pt-2.5 pl-4 pr-5 bg-background",c=o?"":"border-b border-border";return r?x.jsx("button",{onClick:r,className:Me(u,c,"transition-all cursor-pointer"),children:x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsx("div",{className:"flex-1 min-w-0",children:x.jsx(Iv,{label:e.label,description:e.description})}),x.jsx(Vx,{selected:n,multiSelect:i})]})}):x.jsx("div",{className:Me(u,c),children:x.jsx(Iv,{label:e.label,description:e.description})})}function vR(e){return e==null?void 0:e.answers}function Pn(e){return e.id||e.question}function bR({message:e,onSubmit:n,isLatest:i}){var X,ne;const r=Eu(),o=e.input.questions,u=!!e.result,c=vR(e.result),f=((X=e.result)==null?void 0:X.discarded)===!0,[h,m]=E.useState(0),[y,g]=E.useState({}),[v,b]=E.useState({}),[w,k]=E.useState(c??null),[T,_]=E.useState(u),j=($,C)=>{var se;const z=(se=v[$])==null?void 0:se.trim(),U=y[$]||"",N=C||o.find(re=>Pn(re)===$);if(N!=null&&N.multiSelect)return[U,z].filter(Boolean).flatMap(re=>re.split(", ").filter(Boolean));const W=z||U;return W?[W]:[]},M=$=>{const C=y[Pn($)]||"";return $.multiSelect?C.split(", ").filter(Boolean):[C]},P=($,C)=>{const z=Pn($);if($.multiSelect){const U=y[z]?y[z].split(", ").filter(Boolean):[],N=U.includes(C)?U.filter(W=>W!==C):[...U,C];g({...y,[z]:N.join(", ")})}else g({...y,[z]:C}),b({...v,[z]:""}),h<o.length-1&&setTimeout(()=>m(h+1),150)},F=($,C)=>{const z=Pn($);b({...v,[z]:C}),C&&!$.multiSelect&&g({...y,[z]:""})},R=$=>{const C=Pn($);$.multiSelect&&v[C]&&b({...v,[C]:""})},H=o.every($=>j(Pn($),$).length>0),V=o[h],te=h===o.length-1,I=V&&j(Pn(V),V).length>0,J=()=>{h<o.length-1&&m(h+1)},ae=()=>{h>0&&m(h-1)},me=()=>{if(!H)return;const $={};for(const C of o){const z=Pn(C);$[z]=j(z,C)}k($),_(!0),n(e.toolId,o,$)},oe=$=>{if($.key==="Enter"&&!(!V||!I)){if($.preventDefault(),te){me();return}J()}};if(T||u){const $=c||w||{};return x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"font-medium text-sm p-3 px-4 pr-5 bg-muted border-b border-border flex flex-row items-center justify-between",children:[x.jsxs("p",{children:["Question",o.length!==1?"s":""]}),x.jsx("p",{className:"",children:f?"Discarded":"Answers"})]}),o.map((C,z)=>{const U=$[Pn(C)]||$[C.question]||[],N=z===o.length-1;return x.jsxs("div",{className:Me("w-full p-3 pt-2.5 pl-4 pr-5 bg-background flex items-center justify-between gap-3",!N&&"border-b border-border"),children:[x.jsx("div",{className:"text-sm text-pretty",children:C.question}),U.length>0&&x.jsx("div",{className:"text-sm font-medium text-right max-w-[50%] text-pretty",children:U.join(", ")}),U.length===0&&x.jsx("div",{className:"text-sm font-medium text-right italic",children:f?"Discarded":"No Response"})]},Pn(C))})]})})}if(r.readonly)return x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"font-medium text-sm p-3 px-4 pr-5 bg-muted border-b border-border flex flex-row items-center justify-between gap-3",children:[x.jsxs("p",{children:["Question",o.length!==1?"s":""]}),x.jsx("p",{className:"text-muted-foreground",children:"Awaiting response"})]}),o.map(($,C)=>{var z;return x.jsxs("div",{className:Me("w-full p-3 pt-2.5 pl-4 pr-5 bg-background flex items-center justify-between gap-3",C<o.length-1&&"border-b border-border"),children:[x.jsx("div",{className:"text-sm text-pretty",children:$.question}),x.jsx("div",{className:"max-w-[50%] text-right text-xs text-muted-foreground text-pretty",children:((z=$.options)==null?void 0:z.map(U=>U.label).join(", "))||"Freeform response"})]},Pn($))})]})});if(!i)return x.jsx("div",{className:"w-full py-2",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Kv,{className:"h-4 w-4 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Questions pending (newer question active)"})]})});if(!V)return null;const ie=M(V),D=v[Pn(V)]||"";return x.jsxs("div",{className:"w-full space-y-3",children:[x.jsxs(gR,{question:V.question,currentIndex:h,totalQuestions:o.length,onBack:h>0?ae:void 0,children:[(ne=V.options)==null?void 0:ne.map($=>x.jsx(yR,{option:$,selected:ie.includes($.label),multiSelect:V.multiSelect,onClick:()=>P(V,$.label)},$.label)),x.jsx("div",{className:"transition-all bg-background",children:x.jsxs("div",{className:"flex pr-5 items-center justify-between gap-3",children:[x.jsx("input",{type:"text",value:D,onChange:$=>F(V,$.target.value),onKeyDown:oe,placeholder:"Other...",className:"flex-1 px-3 !py-1 pl-4 min-h-[55px] min-w-0 text-sm bg-transparent outline-none text-foreground placeholder:text-muted-foreground"}),x.jsx(Vx,{selected:!!D,multiSelect:V.multiSelect,onClick:V.multiSelect&&D?()=>R(V):void 0})]})})]}),x.jsxs("div",{className:"flex justify-end gap-2 mx-2",children:[!te&&I&&(V.multiSelect||!!D)&&x.jsx(an,{size:"sm",onClick:J,children:"Next"}),te&&x.jsx(an,{size:"sm",onClick:me,disabled:!H,className:Me(!H&&"opacity-50 cursor-not-allowed","rounded-full"),children:"Submit"})]})]})}function xR({message:e,onConfirm:n,isLatest:i}){const r=Eu(),o=!!e.result,[u,c]=E.useState(!1),[f,h]=E.useState(!1),[m,y]=E.useState(!1),[g,v]=E.useState(""),b=E.useRef(null),w=e.input;E.useEffect(()=>{m&&b.current&&b.current.focus()},[m]);const k=async()=>{w!=null&&w.plan&&(await navigator.clipboard.writeText(w.plan),h(!0),setTimeout(()=>h(!1),2e3))},T=o?e.result:null,_=(T==null?void 0:T.discarded)===!0;return x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("div",{className:"relative rounded-2xl border border-border overflow-hidden group/plan",children:[(w==null?void 0:w.plan)&&x.jsx(an,{variant:"ghost",size:"icon",className:Me("absolute top-2 right-2 z-10 h-8 w-8 rounded-md text-muted-foreground opacity-0 group-hover/plan:opacity-100 transition-opacity",!f&&"hover:text-foreground",f&&"hover:!bg-transparent hover:!border-transparent"),onClick:k,children:f?x.jsx(Kr,{className:"h-4 w-4 text-green-400"}):x.jsx(am,{className:"h-4 w-4"})}),x.jsxs("div",{className:Me("!pt-5 !pb-0 px-4 md:py-4.5 md:px-5.5 bg-muted dark:bg-card overflow-scroll no-pre-highlight transition-all",o&&!u?"max-h-[min(400px,40vh)] ":"",o?"hover:!pb-[32px]":""),children:[o&&x.jsxs(an,{variant:"ghost",className:"absolute z-10 bottom-2 pr-2.5 !pl-3.5 h-[34px] inline-flex gap-1 text-sm left-[50%] -translate-x-[50%] text-muted-foreground backdrop-blur-sm hover:text-foreground opacity-0 group-hover/plan:opacity-100 transition-all rounded-full border border-border",onClick:()=>c(!u),children:[u?"Show Less":"Show More",x.jsx(_k,{className:`size-3.5 transition-transform ${u?"rotate-180":""}`})]}),w!=null&&w.plan?x.jsxs("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:[x.jsx(ra,{remarkPlugins:[aa],components:na(),children:w.plan}),x.jsx("div",{className:"mt-5"})]}):x.jsx("p",{className:"text-sm text-muted-foreground",children:"No plan provided"})]})]}),o?x.jsx("div",{className:"flex justify-end mx-2",children:x.jsxs("span",{className:"pl-4 inline text-sm font-medium bg-background text-foreground/60 border border-border py-1.5 px-3 rounded-[20px] leading-relaxed max-w-[85%] sm:max-w-[80%]",children:[x.jsx("em",{children:_?"Discarded":T!=null&&T.clearContext?"Approved & Cleared Context":T!=null&&T.confirmed?"Approved":T!=null&&T.message?`Adjusted: "${T.message}"`:"Adjusted Plan"}),x.jsx(Bk,{className:"inline h-4 w-4 ml-1.5 -mt-0.5"})]})}):i?r.readonly?x.jsx("div",{className:"flex justify-end mx-2",children:x.jsx("span",{className:"inline text-sm text-muted-foreground italic",children:"Plan pending in original session"})}):x.jsxs("div",{className:"flex flex-col gap-3",children:[!m&&x.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center justify-end gap-2 mx-2",children:[x.jsxs(an,{size:"sm",onClick:()=>n(e.toolId,!0,!0),className:"rounded-full bg-primary text-background pr-4 md:order-last",children:[x.jsx(kk,{className:"h-4 w-4 mr-1.5"}),"Approve & Clear"]}),x.jsxs("div",{className:"flex items-stretch md:items-center gap-2 md:contents",children:[x.jsxs(an,{size:"sm",variant:"outline",onClick:()=>y(!0),className:"rounded-full border-border flex-1 md:flex-initial md:order-first",children:[x.jsx($v,{className:"h-4 w-4 mr-1.5"}),"Suggest Edits"]}),x.jsxs(an,{size:"sm",variant:"outline",onClick:()=>n(e.toolId,!0),className:"rounded-full border-border flex-1 md:flex-initial",children:[x.jsx(Kr,{className:"h-4 w-4 mr-1.5"}),"Approve"]})]})]}),m&&x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx("textarea",{ref:b,value:g,onChange:j=>v(j.target.value),onKeyDown:j=>{j.key==="Enter"&&!j.shiftKey&&g.trim()&&(j.preventDefault(),n(e.toolId,!1,void 0,g.trim())),j.key==="Escape"&&(y(!1),v(""))},placeholder:"Describe what you'd like to change...",rows:3,className:"w-full rounded-2xl border border-border bg-muted dark:bg-card px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground resize-none outline-none"}),x.jsxs("div",{className:"flex items-center justify-end gap-2 mx-2",children:[x.jsx(an,{size:"sm",variant:"ghost",onClick:()=>{y(!1),v("")},className:"rounded-full text-muted-foreground",children:"Cancel"}),x.jsxs(an,{size:"sm",disabled:!g.trim(),onClick:()=>n(e.toolId,!1,void 0,g.trim()),className:"rounded-full bg-primary text-background disabled:opacity-50 disabled:pointer-events-none",children:[x.jsx(_C,{className:"h-4 w-4 mr-1.5"}),"Adjust Plan"]})]})]})]}):x.jsx("div",{className:"flex justify-end mx-2",children:x.jsx("span",{className:"inline text-sm text-muted-foreground italic",children:"Plan pending (newer prompt active)"})})]})}const SR={completed:{Icon:Kr,iconClass:"text-emerald-500",textClass:"text-muted-foreground"},in_progress:{Icon:om,iconClass:"text-foreground animate-spin",textClass:"text-foreground font-medium"},pending:{Icon:Lk,iconClass:"text-muted-foreground",textClass:"text-muted-foreground"}};function wR({message:e}){const n=e.input.todos;return n.length?x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border flex items-center gap-2",children:[x.jsx(pC,{className:"h-4 w-4 text-muted-foreground"}),"Progress"]}),x.jsx("div",{children:n.map((i,r)=>{const o=r===n.length-1,{Icon:u,iconClass:c,textClass:f}=SR[i.status];return x.jsxs("div",{className:Me("flex items-center gap-3 px-4 py-2.5 bg-background",!o&&"border-b border-border"),children:[x.jsx(u,{className:Me("h-4 w-4 flex-shrink-0",c)}),x.jsx("span",{className:Me("text-sm",f),children:i.status==="in_progress"?i.activeForm:i.content})]},r)})})]})}):null}function Bv(e){return(e&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)?e.content:Array.isArray(e)?e:[]).flatMap(i=>!i||typeof i!="object"||!("type"in i)||i.type!=="image"?[]:"data"in i&&typeof i.data=="string"?[{type:"image",data:i.data,mimeType:typeof i.mimeType=="string"?i.mimeType:void 0}]:"source"in i&&i.source&&typeof i.source=="object"&&"type"in i.source&&i.source.type==="base64"&&"data"in i.source&&typeof i.source.data=="string"?[{type:"image",data:i.source.data,mimeType:typeof i.source.media_type=="string"?i.source.media_type:void 0}]:[])}function kR({images:e}){return x.jsx("div",{className:"flex flex-col gap-3",children:e.map((n,i)=>{const r=n.mimeType||"image/png";return x.jsx("div",{className:"overflow-hidden rounded-lg border border-border bg-muted/20",children:x.jsx("img",{src:`data:${r};base64,${n.data}`,alt:`Read result ${i+1}`,className:"max-h-[50vh] w-full object-contain bg-background"})},`${r}:${i}`)})})}function Fx({message:e,isLoading:n=!1,localPath:i}){var T;const r=e.result!==void 0,o=!r&&n,u=E.useMemo(()=>{if(e.toolKind==="skill")return e.input.skill;if(e.toolKind==="glob")return`Search files ${e.input.pattern==="**/*"?"in all directories":`matching ${e.input.pattern}`}`;if(e.toolKind==="grep"){const _=e.input.pattern,j=e.input.outputMode;return j==="count"?`Count \`${_}\` occurrences`:j==="content"?`Find \`${_}\` in text`:`Find \`${_}\` in files`}return e.toolKind==="bash"?e.input.description||(e.input.command?sR(e.input.command):"Bash"):e.toolKind==="web_search"?e.input.query||"Web Search":e.toolKind==="read_file"?`Read ${Hs(e.input.filePath,i)}`:e.toolKind==="write_file"?`Write ${Hs(e.input.filePath,i)}`:e.toolKind==="edit_file"?`Edit ${Hs(e.input.filePath,i)}`:e.toolKind==="delete_file"?`Delete ${Hs(e.input.filePath,i)}`:e.toolKind==="mcp_generic"?`${rm(e.input.tool)} from ${rm(e.input.server)}`:e.toolKind==="subagent_task"&&e.input.subagentType||e.toolName},[e.input,e.toolName,i]),c=E.useMemo(()=>e.toolKind==="subagent_task",[e.toolKind]),f=E.useMemo(()=>{if(e.toolKind==="skill")return e.input.skill},[e.input,e.toolKind]),h=e.toolKind==="bash",m=e.toolKind==="write_file",y=e.toolKind==="edit_file",g=e.toolKind==="delete_file",v=e.toolKind==="read_file",b=E.useMemo(()=>{if(typeof e.result=="string")return e.result;if(!e.result)return"";if(typeof e.result=="object"&&e.result!==null&&"content"in e.result){const _=e.result.content;if(typeof _=="string")return _}return JSON.stringify(e.result,null,2)},[e.result]),w=E.useMemo(()=>{if(!v)return[];if(e.result&&typeof e.result=="object"&&"blocks"in e.result){const _=e.result.blocks;if(Array.isArray(_)){const j=Bv(_);if(j.length>0)return j}}return Bv(e.rawResult)},[v,e.rawResult,e.result]),k=E.useMemo(()=>{switch(e.toolKind){case"bash":return e.input.command;case"write_file":case"delete_file":return e.input.content;default:return JSON.stringify(e.input,null,2)}},[e]);return x.jsx(Vl,{className:"w-full",children:x.jsxs(Au,{expandedContent:x.jsx(Tu,{className:"my-4 text-sm",children:x.jsxs("div",{className:"flex flex-col gap-2",children:[y?x.jsx(io,{content:"",isDiff:!0,oldString:e.input.oldString,newString:e.input.newString}):g?x.jsx(io,{content:e.input.content}):!v&&!m&&x.jsx(M0,{label:h?x.jsxs("span",{className:"flex items-center gap-2 w-full",children:[x.jsx("span",{children:"Command"}),!!e.input.timeoutMs&&x.jsxs("span",{className:"text-muted-foreground",children:["timeout: ",String(e.input.timeoutMs),"ms"]}),!!e.input.runInBackground&&x.jsx("span",{className:"text-muted-foreground",children:"background"})]}):m?"Contents":"Input",copyText:k,children:k}),r&&v&&!e.isError&&(w.length>0?x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-muted-foreground",children:"Image"}),x.jsx("div",{className:"mt-1",children:x.jsx(kR,{images:w})})]}):x.jsx(io,{content:b})),m&&!e.isError&&x.jsx(io,{content:e.input.content}),r&&!v&&!(m&&!e.isError)&&!(y&&!e.isError)&&!(g&&!e.isError)&&x.jsx(M0,{label:e.isError?"Error":"Result",copyText:b,children:b})]})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(()=>{if(e.isError)return x.jsx(ta,{className:"size-4 text-destructive"});if(c)return x.jsx(sm,{className:"size-4 text-muted-icon"});const _=qb(e.toolName);return x.jsx(_,{className:"size-4 text-muted-icon"})})()}),x.jsx(wi,{className:"text-left transition-opacity duration-200 truncate",children:x.jsx(xo,{animate:o,shimmerWidth:Math.max(20,(((T=f||u)==null?void 0:T.length)??33)*3),children:f||u})})]})})}function CR({message:e}){const n=i=>{if(i<1e3)return`${i}ms`;const r=Math.floor(i/1e3),o=Math.floor(r/3600),u=Math.floor(r%3600/60),c=r%60;return o>0?`${o}h${u>0?` ${u}m`:""}`:u>0?`${u}m${c>0?` ${c}s`:""}`:`${c}s`};return e.success?x.jsxs(Vl,{className:`px-0.5 text-xs tracking-wide ${e.durationMs>6e4?"":"hidden"}`,children:[x.jsx("div",{className:"w-full h-[1px] bg-border"}),x.jsxs(wi,{className:"whitespace-nowrap text-[11px] tracking-widest text-muted-foreground/60 uppercase flex-shrink-0",children:["Worked for ",n(e.durationMs)]}),x.jsx("div",{className:"w-full h-[1px] bg-border"})]}):x.jsx("div",{className:"px-4 py-3 mx-2 my-1 rounded-lg bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:e.result||"An unknown error occurred."})}function ER({message:e}){return x.jsx("div",{className:"flex items-center justify-end gap-2 text-sm text-muted-foreground my-3",children:x.jsxs("div",{className:"inline-flex gap-1.5 items-center justify-center whitespace-nowrap text-sm font-medium bg-background text-foreground/60 border border-border h-9 pl-1 pr-4 rounded-full",children:[x.jsx(jk,{className:"h-4 w-4 ml-1.5"}),x.jsx("em",{children:"Interrupted"})]})})}function pu({size:e=4}){return x.jsxs("svg",{className:"flex-1",viewBox:`0 0 100 ${e}`,preserveAspectRatio:"none",style:{height:`${e}px`},children:[x.jsx("pattern",{id:"zigzag",width:e,height:e,patternUnits:"userSpaceOnUse",children:x.jsx("path",{d:`M0 ${e} L${e/2} 0 L${e} ${e}`,fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-muted-foreground/30",style:{stroke:"currentColor"}})}),x.jsx("rect",{width:"100%",height:e,fill:"url(#zigzag)",className:"text-muted-foreground/30"})]})}function AR(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(pu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Compacted"}),x.jsx(pu,{})]})}function TR(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(pu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Context Cleared"}),x.jsx(pu,{})]})}function _R({message:e}){return x.jsx(Vl,{children:x.jsxs(Au,{expandedContent:x.jsx(Tu,{className:"my-4 text-xs",children:x.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:x.jsx(ra,{remarkPlugins:[aa],components:na(),children:e.summary})})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Zv,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(wi,{children:"Summarized"})]})})}const NR={compacting:"Compacting..."};function zR({message:e}){const n=NR[e.status]||e.status;return x.jsxs(Vl,{className:"grid grid-cols-[auto_1fr] items-center gap-1.5 text-sm animate-pulse",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Zv,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(wi,{className:"text-left transition-opacity duration-200 truncate",children:n})]})}const MR={read_file:{key:"read",singular:"read",plural:"reads"},edit_file:{key:"edit",singular:"edit",plural:"edits"},write_file:{key:"write",singular:"write",plural:"writes"},delete_file:{key:"delete",singular:"delete",plural:"deletes"},bash:{key:"bash",singular:"command",plural:"commands"},grep:{key:"grep",singular:"search",plural:"searches"},glob:{key:"glob",singular:"glob",plural:"globs"},subagent_task:{key:"task",singular:"agent",plural:"agents"},web_search:{key:"websearch",singular:"web search",plural:"web searches"},skill:{key:"skill",singular:"skill",plural:"skills"},todo_write:{key:"todo",singular:"todo update",plural:"todo updates"}},OR={key:"other",singular:"tool call",plural:"tool calls"};function jR(e){return MR[e]??OR}function RR(e){const n=new Map,i=[];for(const r of e){const o=r.toolKind,u=jR(o),c=n.get(u.key);c?c.count++:(n.set(u.key,{category:u,count:1}),i.push(u.key))}return i.map(r=>{const{category:o,count:u}=n.get(r);return`${u} ${u===1?o.singular:o.plural}`}).join(", ")}function LR({messages:e,isLoading:n,localPath:i,expanded:r,onExpandedChange:o}){const u=E.useMemo(()=>RR(e),[e]),f=e.some(h=>h.result===void 0)&&n;return x.jsx(Vl,{className:"w-full",children:x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsx("button",{onClick:()=>o(!r),className:`group cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${!r&&!f?"hover:opacity-60 transition-opacity":""}`,children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Qi,{className:`h-4.5 w-4.5 text-muted-icon transition-all duration-200 ${r?"rotate-90":""}`})}),x.jsx(wi,{className:"text-left",children:x.jsx(xo,{animate:f,children:u})})]})}),r&&x.jsxs("div",{className:"my-4 flex flex-col gap-3",children:[e.map(h=>x.jsx(Fx,{message:h,isLoading:n,localPath:i},h.id)),e.length>5&&x.jsx("button",{onClick:()=>o(!1),className:"cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-xs hover:opacity-80 transition-opacity",children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Qi,{className:"h-4.5 w-4.5 text-muted-icon -rotate-90"})}),x.jsx(wi,{className:"text-left",children:"Collapse"})]})})]})]})})}const DR=new Set(["AskUserQuestion","ExitPlanMode","TodoWrite"]);function Uv(e){if(e.kind!=="tool")return!1;const n=e.toolName;return!DR.has(n)}function IR(e,{isFirstSystem:n,isFirstAccount:i,isLatestTodoWrite:r,hideResult:o,isFinalStatus:u}){let c=!e.hidden;if(c)switch(e.kind){case"system_init":c=n;break;case"account_info":c=i;break;case"tool":c=e.toolKind!=="todo_write"||r;break;case"result":c=!o&&(!e.success||e.durationMs>6e4);break;case"context_window_updated":c=!1;break;case"status":c=u;break;default:c=!0;break}return{isFirstSystem:n,isFirstAccount:i,isLatestTodoWrite:r,hideResult:o,isFinalStatus:u,shouldRender:c}}function BR(e,n){const i=e.findIndex(o=>o.kind==="system_init"),r=e.findIndex(o=>o.kind==="account_info");return e.map((o,u)=>{const c=e[u-1],f=e[u+1];return IR(o,{isFirstSystem:i===u,isFirstAccount:r===u,isLatestTodoWrite:o.id===n.TodoWrite,hideResult:(f==null?void 0:f.kind)==="context_cleared"||(c==null?void 0:c.kind)==="context_cleared",isFinalStatus:u===e.length-1})})}function UR(e,n){const i=[];let r=0;for(;r<e.length;){const o=e[r],u=n[r];if(u!=null&&u.shouldRender&&Uv(o)){const c=[o],f=r;for(r+=1;r<e.length;){const h=e[r],m=n[r];if(!(m!=null&&m.shouldRender)){r+=1;continue}if(!Uv(h))break;c.push(h),r+=1}c.length>=2?i.push({type:"tool-group",messages:c,startIndex:f}):i.push({type:"single",message:o,index:f});continue}i.push({type:"single",message:o,index:r}),r+=1}return i}function Vv(e){var i;return e.type==="single"?e.message.id:`tool-group:${((i=e.messages[0])==null?void 0:i.id)??e.startIndex}`}function Rd(e,n){return e===n?!0:!e||!n||e.length!==n.length?!1:e.every((i,r)=>i===n[r])}function VR(e,n){return e.id===n.id&&e.kind===n.kind&&e.displayName===n.displayName&&e.absolutePath===n.absolutePath&&e.relativePath===n.relativePath&&e.contentUrl===n.contentUrl&&e.mimeType===n.mimeType&&e.size===n.size}function FR(e,n){return e===n?!0:!e||!n||e.length!==n.length?!1:e.every((i,r)=>VR(i,n[r]))}function ea(e,n){if(e===n)return!0;if(e.kind!==n.kind||e.id!==n.id||e.hidden!==n.hidden)return!1;switch(e.kind){case"user_prompt":return e.content===(n.kind==="user_prompt"?n.content:null)&&n.kind==="user_prompt"&&e.steered===n.steered&&FR(e.attachments,n.attachments);case"system_init":return n.kind==="system_init"&&e.provider===n.provider&&e.model===n.model&&Rd(e.tools,n.tools)&&Rd(e.agents,n.agents)&&Rd(e.slashCommands,n.slashCommands)&&e.debugRaw===n.debugRaw;case"account_info":return n.kind==="account_info"&&JSON.stringify(e.accountInfo)===JSON.stringify(n.accountInfo);case"assistant_text":return n.kind==="assistant_text"&&e.text===n.text;case"tool":return n.kind==="tool"&&e.toolKind===n.toolKind&&e.toolName===n.toolName&&e.toolId===n.toolId&&e.isError===n.isError&&JSON.stringify(e.input)===JSON.stringify(n.input)&&JSON.stringify(e.result)===JSON.stringify(n.result)&&JSON.stringify(e.rawResult)===JSON.stringify(n.rawResult);case"result":return n.kind==="result"&&e.success===n.success&&e.cancelled===n.cancelled&&e.result===n.result&&e.durationMs===n.durationMs&&e.costUsd===n.costUsd;case"status":return n.kind==="status"&&e.status===n.status;case"compact_summary":return n.kind==="compact_summary"&&e.summary===n.summary;case"context_window_updated":return n.kind==="context_window_updated"&&JSON.stringify(e.usage)===JSON.stringify(n.usage);case"compact_boundary":case"context_cleared":case"interrupted":return!0;case"unknown":return n.kind==="unknown"&&e.json===n.json}}function HR(e,n){return e.kind!==n.kind||e.id!==n.id?!1:e.kind==="single"&&n.kind==="single"?e.index===n.index&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.isFirstSystem===n.isFirstSystem&&e.isFirstAccount===n.isFirstAccount&&e.isLatestAskUserQuestion===n.isLatestAskUserQuestion&&e.isLatestExitPlanMode===n.isLatestExitPlanMode&&e.isLatestTodoWrite===n.isLatestTodoWrite&&e.hideResult===n.hideResult&&e.isFinalStatus===n.isFinalStatus&&ea(e.message,n.message):e.kind==="tool-group"&&n.kind==="tool-group"?e.startIndex===n.startIndex&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.messages.length===n.messages.length&&e.messages.every((i,r)=>ea(i,n.messages[r])):!1}function PR(e,n){const i=new Map;let r=e.length!==n.byId.size;const o=e.map((u,c)=>{const f=n.byId.get(u.id),h=f&&HR(f,u)?f:u;return i.set(u.id,h),!r&&n.result[c]!==h&&(r=!0),h});return r?{byId:i,result:o}:n}function qR(e){const n=E.useRef({byId:new Map,result:[]});return E.useMemo(()=>{const i=PR(e,n.current);return n.current=i,i.result},[e])}const GR=E.memo(function({message:n,index:i,isLoading:r,localPath:o,isFirstSystem:u,isFirstAccount:c,isLatestAskUserQuestion:f,isLatestExitPlanMode:h,isLatestTodoWrite:m,hideResult:y,isFinalStatus:g,onAskUserQuestionSubmit:v,onExitPlanModeConfirm:b}){let w=null;if(n.kind==="user_prompt")w=x.jsx(rR,{content:n.content,attachments:n.attachments,steered:n.steered},n.id);else switch(n.kind){case"unknown":w=x.jsx(aR,{json:n.json},n.id);break;case"system_init":w=u?x.jsx(mR,{message:n,rawJson:n.debugRaw},n.id):null;break;case"account_info":w=c?x.jsx(hR,{message:n},n.id):null;break;case"assistant_text":w=x.jsx(pR,{message:n},n.id);break;case"tool":if(n.toolKind==="ask_user_question"){w=x.jsx(bR,{message:n,onSubmit:v,isLatest:f},n.id);break}if(n.toolKind==="exit_plan_mode"){w=x.jsx(xR,{message:n,onConfirm:b,isLatest:h},n.id);break}if(n.toolKind==="todo_write"){w=m?x.jsx(wR,{message:n},n.id):null;break}w=x.jsx(Fx,{message:n,isLoading:r,localPath:o},n.id);break;case"result":w=y?null:x.jsx(CR,{message:n},n.id);break;case"context_window_updated":w=null;break;case"interrupted":w=x.jsx(ER,{message:n},n.id);break;case"compact_boundary":w=x.jsx(AR,{},n.id);break;case"context_cleared":w=x.jsx(TR,{},n.id);break;case"compact_summary":w=x.jsx(_R,{message:n},n.id);break;case"status":w=g?x.jsx(zR,{message:n},n.id):null;break}return w?x.jsx("div",{id:`msg-${n.id}`,className:"group relative","data-index":i,[Lx]:"",children:w}):null},(e,n)=>e.index===n.index&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.isFirstSystem===n.isFirstSystem&&e.isFirstAccount===n.isFirstAccount&&e.isLatestAskUserQuestion===n.isLatestAskUserQuestion&&e.isLatestExitPlanMode===n.isLatestExitPlanMode&&e.isLatestTodoWrite===n.isLatestTodoWrite&&e.hideResult===n.hideResult&&e.isFinalStatus===n.isFinalStatus&&e.onAskUserQuestionSubmit===n.onAskUserQuestionSubmit&&e.onExitPlanModeConfirm===n.onExitPlanModeConfirm&&ea(e.message,n.message)),YR=E.memo(function({id:n,startIndex:i,messages:r,isLoading:o,localPath:u,expanded:c,onExpandedChange:f}){return x.jsx("div",{className:"group relative",[Lx]:"",children:x.jsx(LR,{messages:r,isLoading:o,localPath:u,expanded:c,onExpandedChange:h=>f(n,h)})})},(e,n)=>e.id===n.id&&e.startIndex===n.startIndex&&e.isLoading===n.isLoading&&e.localPath===n.localPath&&e.expanded===n.expanded&&e.onExpandedChange===n.onExpandedChange&&e.messages.length===n.messages.length&&e.messages.every((i,r)=>ea(i,n.messages[r])));function Hx(e,{isLoading:n,localPath:i,latestToolIds:r}){const o=BR(e,r),u=UR(e,o),c=[];for(const f of u){if(f.type==="tool-group"){c.push({kind:"tool-group",id:Vv(f),startIndex:f.startIndex,messages:f.messages,isLoading:n&&f.messages.some(y=>y.kind==="tool"&&y.result===void 0),localPath:i});continue}const h=o[f.index];if(!h)continue;const m={kind:"single",id:Vv(f),message:f.message,index:f.index,isLoading:f.message.kind==="tool"&&f.message.result===void 0&&n,localPath:i,isFirstSystem:h.isFirstSystem,isFirstAccount:h.isFirstAccount,isLatestAskUserQuestion:f.message.id===r.AskUserQuestion,isLatestExitPlanMode:f.message.id===r.ExitPlanMode,isLatestTodoWrite:h.isLatestTodoWrite,hideResult:h.hideResult,isFinalStatus:h.isFinalStatus};h.shouldRender&&c.push(m)}return c}const Px=E.memo(function({row:n,toolGroupExpanded:i,onToolGroupExpandedChange:r,onAskUserQuestionSubmit:o,onExitPlanModeConfirm:u}){return n.kind==="tool-group"?x.jsx(YR,{id:n.id,startIndex:n.startIndex,messages:n.messages,isLoading:n.isLoading,localPath:n.localPath,expanded:i??!1,onExpandedChange:r}):x.jsx(GR,{message:n.message,index:n.index,isLoading:n.isLoading,localPath:n.localPath,isFirstSystem:n.isFirstSystem,isFirstAccount:n.isFirstAccount,isLatestAskUserQuestion:n.isLatestAskUserQuestion,isLatestExitPlanMode:n.isLatestExitPlanMode,isLatestTodoWrite:n.isLatestTodoWrite,hideResult:n.hideResult,isFinalStatus:n.isFinalStatus,onAskUserQuestionSubmit:o,onExitPlanModeConfirm:u})},(e,n)=>{if(e.toolGroupExpanded!==n.toolGroupExpanded||e.onToolGroupExpandedChange!==n.onToolGroupExpandedChange||e.onAskUserQuestionSubmit!==n.onAskUserQuestionSubmit||e.onExitPlanModeConfirm!==n.onExitPlanModeConfirm||e.row.kind!==n.row.kind||e.row.id!==n.row.id)return!1;if(e.row.kind==="tool-group"&&n.row.kind==="tool-group"){const i=e.row,r=n.row;return i.startIndex===r.startIndex&&i.isLoading===r.isLoading&&i.localPath===r.localPath&&i.messages.length===r.messages.length&&i.messages.every((o,u)=>ea(o,r.messages[u]))}return e.row.kind==="single"&&n.row.kind==="single"?e.row.index===n.row.index&&e.row.isLoading===n.row.isLoading&&e.row.localPath===n.row.localPath&&e.row.isFirstSystem===n.row.isFirstSystem&&e.row.isFirstAccount===n.row.isFirstAccount&&e.row.isLatestAskUserQuestion===n.row.isLatestAskUserQuestion&&e.row.isLatestExitPlanMode===n.row.isLatestExitPlanMode&&e.row.isLatestTodoWrite===n.row.isLatestTodoWrite&&e.row.hideResult===n.row.hideResult&&e.row.isFinalStatus===n.row.isFinalStatus&&ea(e.row.message,n.row.message):!1});function QR({messages:e,isLoading:n,localPath:i,latestToolIds:r,onOpenLocalLink:o,onAskUserQuestionSubmit:u,onExitPlanModeConfirm:c}){const[f,h]=E.useState({}),m=E.useMemo(()=>Hx(e,{isLoading:n,localPath:i,latestToolIds:r}),[n,r,i,e]),y=E.useCallback((g,v)=>{h(b=>b[g]===v?b:{...b,[g]:v})},[]);return x.jsx(Hb,{onOpenLocalLink:o,children:m.map(g=>x.jsx("div",{className:"mx-auto max-w-[800px] pb-5",children:x.jsx(Px,{row:g,toolGroupExpanded:g.kind==="tool-group"?f[g.id]??!1:void 0,onToolGroupExpandedChange:y,onAskUserQuestionSubmit:u,onExitPlanModeConfirm:c})},g.id))})}E.memo(QR);const Fv="What are we building?",XR=72,KR=E.memo(function({activeChatId:n,listRef:i,messages:r,queuedMessages:o,transcriptPaddingBottom:u,localPath:c,latestToolIds:f,isHistoryLoading:h,hasOlderHistory:m,isProcessing:y,runtimeStatus:g,isDraining:v,commandError:b,loadOlderHistory:w,onStopDraining:k,onSteerQueuedMessage:T,onRemoveQueuedMessage:_,onOpenLocalLink:j,onAskUserQuestionSubmit:M,onExitPlanModeConfirm:P,showScrollButton:F,onIsAtEndChange:R,scrollToBottom:H,typedEmptyStateText:V,isEmptyStateTypingComplete:te,isPageFileDragActive:I,showEmptyState:J,headerOffsetPx:ae=XR}){const me=E.useRef(0),[oe,ie]=E.useState({}),D=E.useMemo(()=>Hx(r,{isLoading:y,localPath:c??void 0,latestToolIds:f}),[y,f,c,r]),X=qR(D);E.useEffect(()=>{ie({})},[n]),E.useEffect(()=>{const W=me.current;if(me.current=X.length,W>0||X.length===0)return;R(!0);const se=window.requestAnimationFrame(()=>{var re,ce;(ce=(re=i.current)==null?void 0:re.scrollToEnd)==null||ce.call(re,{animated:!1})});return()=>window.cancelAnimationFrame(se)},[i,R,X.length]);const ne=E.useCallback((W,se)=>{ie(re=>re[W]===se?re:{...re,[W]:se})},[]),$=E.useCallback(W=>{var ce,be,he,Ge;const se=typeof W=="object"&&W!==null&&"currentTarget"in W&&W.currentTarget instanceof HTMLElement?W.currentTarget:(be=(ce=i.current)==null?void 0:ce.getScrollableNode)==null?void 0:be.call(ce);if(se instanceof HTMLElement){const We=se.scrollHeight-se.clientHeight-se.scrollTop;R(We<=4);return}const re=(Ge=(he=i.current)==null?void 0:he.getState)==null?void 0:Ge.call(he);re&&R(re.isAtEnd)},[i,R]);E.useEffect(()=>{let W;const se=window.requestAnimationFrame(()=>{var be,he;const re=(he=(be=i.current)==null?void 0:be.getScrollableNode)==null?void 0:he.call(be);if(!(re instanceof HTMLElement))return;const ce=()=>{$({currentTarget:re})};re.addEventListener("scroll",ce,{passive:!0}),ce(),W=()=>{re.removeEventListener("scroll",ce)}});return()=>{window.cancelAnimationFrame(se),W==null||W()}},[n,$,i,X.length]);const C=E.useCallback(()=>{h||!m||w()},[m,h,w]),z=E.useCallback(({item:W})=>x.jsx("div",{className:"mx-auto w-full max-w-[800px] pb-5","data-transcript-row-id":W.id,children:x.jsx(Px,{row:W,toolGroupExpanded:W.kind==="tool-group"?oe[W.id]??!1:void 0,onToolGroupExpandedChange:ne,onAskUserQuestionSubmit:M,onExitPlanModeConfirm:P})}),[ne,M,P,oe]),U=x.jsx("div",{className:"mx-auto w-full max-w-[800px]",style:{paddingTop:`${ae}px`},children:h?x.jsx("div",{className:"flex justify-center pb-4",children:x.jsx("span",{className:"text-sm translate-y-[-0.5px]",children:x.jsx(xo,{animate:!0,shimmerWidth:Math.max(20,72),children:"Loading more messages..."})})}):null}),N=x.jsxs("div",{className:"mx-auto w-full max-w-[800px]",children:[y?x.jsx(UO,{status:g??void 0}):null,o.map(W=>x.jsx(IO,{message:W,onRemove:()=>void _(W.id),onSendNow:()=>void T(W.id)},W.id)),!y&&v?x.jsx(hT,{onStop:()=>void k()}):null,b?x.jsx("div",{className:"rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3 text-sm text-destructive",children:b}):null]});return x.jsxs(x.Fragment,{children:[x.jsx(Hb,{onOpenLocalLink:j,children:x.jsx(vA,{ref:i,data:X,extraData:oe,keyExtractor:ZR,renderItem:z,estimatedItemSize:96,initialScrollAtEnd:!0,maintainScrollAtEnd:!0,maintainScrollAtEndThreshold:.1,maintainVisibleContentPosition:!0,onScroll:$,onStartReached:C,onStartReachedThreshold:.1,className:"h-full flex-1 overflow-x-hidden overscroll-y-contain px-3 scroll-pt-[72px] [scrollbar-gutter:auto]",contentContainerStyle:{paddingBottom:u+10},ListHeaderComponent:U,ListFooterComponent:N})}),J?x.jsx("div",{className:"pointer-events-none absolute inset-x-4 animate-fade-in",style:{top:ae,bottom:u},children:x.jsx("div",{className:"mx-auto flex h-full max-w-[800px] items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 text-muted-foreground opacity-70",children:[x.jsx(Ld,{strokeWidth:1.5,className:"kanna-empty-state-flower size-8 text-muted-foreground"}),x.jsx("div",{className:"kanna-empty-state-text flex max-w-xs items-center text-center text-base font-normal text-muted-foreground","aria-label":Fv,children:x.jsxs("span",{className:"relative inline-grid place-items-start",children:[x.jsxs("span",{className:"invisible col-start-1 row-start-1 flex items-center whitespace-pre",children:[x.jsx("span",{children:Fv}),x.jsx("span",{className:"kanna-typewriter-cursor-slot","aria-hidden":"true"})]}),x.jsxs("span",{className:"col-start-1 row-start-1 flex items-center whitespace-pre",children:[x.jsx("span",{children:V}),x.jsx("span",{className:"kanna-typewriter-cursor-slot","aria-hidden":"true",children:x.jsx("span",{className:"kanna-typewriter-cursor","data-typing-complete":te?"true":"false"})})]})]})})]})})}):null,I?x.jsxs("div",{className:"pointer-events-none absolute inset-0 z-30",children:[x.jsx("div",{className:"absolute inset-0 backdrop-blur-sm"}),x.jsx("div",{className:"absolute inset-6 ",children:x.jsx("div",{className:"flex h-full items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 text-center",children:[x.jsx(VC,{className:"mx-auto size-14 text-foreground",strokeWidth:1.75}),x.jsx("div",{className:"text-xl font-medium text-foreground",children:"Drop up to 10 files"})]})})})]}):null,x.jsx("div",{style:{bottom:u-20},className:Me("absolute left-1/2 z-10 -translate-x-1/2 transition-all",F?"scale-100 duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]":"pointer-events-none scale-60 opacity-0 blur-sm duration-300 ease-out"),children:x.jsx("button",{onClick:H,className:"flex aspect-square cursor-pointer items-center gap-1.5 rounded-full border border-border bg-white px-2 text-sm text-primary transition-colors hover:bg-muted hover:text-foreground dark:border-slate-600 dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600",children:x.jsx(yk,{className:"h-5 w-5"})})})]})});function ZR(e){return e.id}const $R=["AskUserQuestion","ExitPlanMode","TodoWrite"],JR=new Set(["TodoWrite"]);function WR(e,n){for(let i=e.length-1;i>=0;i-=1){const r=e[i];if(r.kind!=="tool")continue;const o=r;if(o.toolName===n&&!o.result)return o.id}return null}function e5(e,n){for(let i=e.length-1;i>=0;i-=1){const r=e[i];if(r.kind!=="tool")continue;const o=r;if(o.toolName===n)return o.id}return null}function t5(e){const n={};for(const i of $R)n[i]=JR.has(i)?e5(e,i):WR(e,i);return n}function Js(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function n5(e){if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}}function l5(e){const n=e&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)?e.content:Array.isArray(e)?e:[],i=[];for(const r of n)if(!(!r||typeof r!="object"||!("type"in r))){if(r.type==="text"&&typeof r.text=="string"){i.push({type:"text",text:r.text});continue}if(r.type==="image"){if("data"in r&&typeof r.data=="string"){i.push({type:"image",data:r.data,mimeType:typeof r.mimeType=="string"?r.mimeType:void 0});continue}"source"in r&&r.source&&typeof r.source=="object"&&"type"in r.source&&r.source.type==="base64"&&"data"in r.source&&typeof r.source.data=="string"&&i.push({type:"image",data:r.source.data,mimeType:typeof r.source.media_type=="string"?r.source.media_type:void 0})}}return i}function i5(e,n){const i=n5(n);switch(e.toolKind){case"ask_user_question":{const u=Js(i),c=Js(u==null?void 0:u.answers)??(u||{});return{answers:Object.fromEntries(Object.entries(c).map(([f,h])=>Array.isArray(h)?[f,h.map(m=>String(m))]:h&&typeof h=="object"&&Array.isArray(h.answers)?[f,h.answers.map(m=>String(m))]:h==null||h===""?[f,[]]:[f,[String(h)]])),...(u==null?void 0:u.discarded)===!0?{discarded:!0}:{}}}case"exit_plan_mode":{const u=Js(i);return{confirmed:typeof(u==null?void 0:u.confirmed)=="boolean"?u.confirmed:void 0,clearContext:typeof(u==null?void 0:u.clearContext)=="boolean"?u.clearContext:void 0,message:typeof(u==null?void 0:u.message)=="string"?u.message:void 0,...(u==null?void 0:u.discarded)===!0?{discarded:!0}:{}}}case"read_file":if(typeof i=="string")return i;const r=l5(i);if(r.length>0)return{content:r.flatMap(u=>u.type==="text"?[u.text]:[]).join(""),blocks:r};const o=Js(i);return{content:typeof(o==null?void 0:o.content)=="string"?o.content:JSON.stringify(i,null,2)};default:return i}}function qx(e){return new Date(e).toISOString()}function qn(e){return{id:e._id,messageId:e.messageId,timestamp:qx(e.createdAt),hidden:e.hidden}}function r5(e){return{id:e._id,messageId:e.messageId,hidden:e.hidden,kind:"tool",toolKind:e.tool.toolKind,toolName:e.tool.toolName,toolId:e.tool.toolId,input:e.tool.input,timestamp:qx(e.createdAt)}}function a5(e){if(e.debugRaw)try{return JSON.parse(e.debugRaw).tool_use_result}catch{return}}function o5(e){const n=new Map,i=[];for(const r of e)switch(r.kind){case"user_prompt":i.push({...qn(r),kind:"user_prompt",content:r.content,attachments:r.attachments??[],steered:r.steered});break;case"system_init":i.push({...qn(r),kind:"system_init",provider:r.provider,model:r.model,tools:r.tools,agents:r.agents,slashCommands:r.slashCommands,mcpServers:r.mcpServers,debugRaw:r.debugRaw});break;case"account_info":i.push({...qn(r),kind:"account_info",accountInfo:r.accountInfo});break;case"assistant_text":i.push({...qn(r),kind:"assistant_text",text:r.text});break;case"tool_call":{const o=r5(r);n.set(r.tool.toolId,{hydrated:o,normalized:r.tool}),i.push(o);break}case"tool_result":{const o=n.get(r.toolId);if(o){const u=o.normalized.toolKind==="ask_user_question"||o.normalized.toolKind==="exit_plan_mode"?a5(r)??r.content:r.content;o.hydrated.result=i5(o.normalized,u),o.hydrated.rawResult=u,o.hydrated.isError=r.isError}break}case"result":i.push({...qn(r),kind:"result",success:!r.isError,cancelled:r.subtype==="cancelled",result:r.result,durationMs:r.durationMs,costUsd:r.costUsd});break;case"status":i.push({...qn(r),kind:"status",status:r.status});break;case"context_window_updated":i.push({...qn(r),kind:"context_window_updated",usage:r.usage});break;case"compact_boundary":i.push({...qn(r),kind:"compact_boundary"});break;case"compact_summary":i.push({...qn(r),kind:"compact_summary",summary:r.summary});break;case"context_cleared":i.push({...qn(r),kind:"context_cleared"});break;case"interrupted":i.push({...qn(r),kind:"interrupted"});break;default:i.push({...qn(r),kind:"unknown",json:JSON.stringify(r,null,2)});break}return i}E.createContext(void 0);function s5(e){return e==="dark"?"black-translucent":"default"}function Hv(e,n){if(typeof document>"u")return;let i=document.head.querySelector(`meta[name="${e}"]`);i||(i=document.createElement("meta"),i.setAttribute("name",e),document.head.appendChild(i)),i.setAttribute("content",n)}function u5(e){if(typeof document>"u"||typeof window>"u")return;const n=getComputedStyle(document.body).backgroundColor||getComputedStyle(document.documentElement).backgroundColor;n&&Hv("theme-color",n),Hv("apple-mobile-web-app-status-bar-style",s5(e)),document.documentElement.style.colorScheme=e}const c5="Kanna";function f5(){const[e,n]=E.useState({status:"loading"}),[i,r]=E.useState(!0),o=E.useRef(null);E.useEffect(()=>{let w=!1;return fetch(new URL("./transcript.json",document.baseURI).toString(),{headers:{Accept:"application/json"}}).then(async k=>{if(!k.ok)throw new Error(`Transcript request failed with status ${k.status}`);return await k.json()}).then(k=>{w||n({status:"ready",bundle:k})}).catch(k=>{w||n({status:"error",message:k instanceof Error?k.message:"Unable to load transcript."})}),()=>{w=!0}},[]),E.useEffect(()=>{if(e.status!=="ready")return;document.title=`${e.bundle.title} | Kanna`,document.documentElement.classList.toggle("dark",e.bundle.theme==="dark"),document.documentElement.style.colorScheme=e.bundle.theme;const w=window.requestAnimationFrame(()=>{u5(e.bundle.theme)});return()=>{window.cancelAnimationFrame(w)}},[e]);const u=E.useMemo(()=>e.status==="ready"?o5(e.bundle.messages):[],[e]),c=E.useMemo(()=>t5(u),[u]),f=E.useCallback(()=>{},[]),h=E.useCallback(()=>Promise.resolve(),[]),m=E.useCallback((w,k,T)=>Promise.resolve(),[]),y=E.useCallback((w,k,T,_)=>Promise.resolve(),[]),g=E.useCallback(()=>Promise.resolve(),[]),v=E.useCallback(()=>{var w,k;(k=(w=o.current)==null?void 0:w.scrollToEnd)==null||k.call(w,{animated:!0})},[]),b=E.useCallback(()=>{window.open("https://kanna.sh","_blank","noopener,noreferrer")},[]);return e.status==="loading"?x.jsx("div",{className:"flex h-full items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading transcript..."}):e.status==="error"?x.jsx("div",{className:"flex h-full items-center justify-center bg-background px-6",children:x.jsx("div",{className:"max-w-md rounded-2xl border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-foreground",children:e.message})}):x.jsx(fT,{value:{readonly:!0,localLinkMode:"text",attachmentMode:e.bundle.attachmentMode},children:x.jsx("div",{className:"h-full bg-background",children:x.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[x.jsx("header",{className:"flex-shrink-0 border-b border-border px-4",children:x.jsxs("div",{className:"mx-auto flex h-16 w-full items-center gap-2 min-w-0",children:[x.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x.jsxs("a",{className:"flex flex-shrink-0 items-center gap-2",href:"https://kanna.sh",target:"_blank",rel:"noopener noreferrer",children:[x.jsx(Ld,{className:"h-5 w-5 sm:h-6 sm:w-6 text-logo"}),x.jsx("span",{className:"font-logo text-base uppercase sm:text-lg text-slate-600 dark:text-slate-100",children:c5})]}),x.jsx("span",{className:"hidden text-sm text-muted-foreground sm:inline",children:"/"}),x.jsx("span",{className:"truncate text-sm text-muted-foreground",children:e.bundle.title})]}),x.jsx("div",{className:"flex-1 md:hidden"})]})}),x.jsxs("div",{className:"relative flex h-full min-h-0 flex-col overflow-hidden",children:[x.jsx(KR,{activeChatId:e.bundle.chatId,listRef:o,messages:u,queuedMessages:[],transcriptPaddingBottom:120,localPath:e.bundle.localPath,latestToolIds:c,isHistoryLoading:!1,hasOlderHistory:!1,isProcessing:!1,runtimeStatus:null,isDraining:!1,commandError:null,loadOlderHistory:h,onStopDraining:f,onSteerQueuedMessage:h,onRemoveQueuedMessage:h,onOpenLocalLink:g,onAskUserQuestionSubmit:m,onExitPlanModeConfirm:y,showScrollButton:!i&&u.length>0,onIsAtEndChange:r,scrollToBottom:v,typedEmptyStateText:"",isEmptyStateTypingComplete:!0,isPageFileDragActive:!1,showEmptyState:!1,headerOffsetPx:20}),x.jsx("div",{className:"absolute bottom-4 left-1/2 z-20 w-full -translate-x-1/2 md:w-auto",children:x.jsxs("div",{className:"mx-2 flex items-center gap-3 rounded-xl border border-border bg-background/95 px-4 py-3 shadow-lg backdrop-blur-lg md:mx-0",children:[x.jsx(Ld,{className:"h-6 w-6 flex-shrink-0 text-logo"}),x.jsx("p",{className:"flex-1 text-sm text-foreground sm:text-base",children:"Kanna is a delightful open-source harness UI"}),x.jsxs("a",{className:"ml-4 flex flex-shrink-0 flex-row items-center gap-1 rounded-lg bg-logo px-3 py-1.5 pr-2 text-sm font-bold text-white transition-colors hover:bg-logo/90",href:"https://kanna.sh",target:"_blank",rel:"noopener noreferrer",onClick:w=>{w.preventDefault(),b()},children:[x.jsx("span",{children:"Try It"}),x.jsx(Qi,{className:"h-4 w-4 translate-y-[0.5px]"})]})]})})]})]})})})}const Gx=document.getElementById("root");if(!Gx)throw new Error("Missing #root");sk.createRoot(Gx).render(x.jsx(E.StrictMode,{children:x.jsx(f5,{})}));