@shipbench/board 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,122 @@
1
+ var W0=e=>{throw TypeError(e)};var eb=(e,n,i)=>n.has(e)||W0("Cannot "+i);var rn=(e,n,i)=>(eb(e,n,"read from private field"),i?i.call(e):n.get(e)),tb=(e,n,i)=>n.has(e)?W0("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),Rd=(e,n,i,l)=>(eb(e,n,"write to private field"),l?l.call(e,i):n.set(e,i),i);function $S(e,n){for(var i=0;i<n.length;i++){const l=n[i];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(l,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>l[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"]'))l(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"&&l(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 l(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();const Sh="task";function ZS(e){if(typeof e!="object"||e===null)return!1;const n=e;return(n.shipbenchTask===null||typeof n.shipbenchTask=="string")&&Array.isArray(n.trail)&&n.trail.every(i=>typeof i=="string")}function nb(){return new URLSearchParams(window.location.search).get(Sh)||null}function rb(e,n){return ZS(e)&&e.shipbenchTask===n?e.trail:void 0}function GS(){const e=nb();return{initialTaskSlug:e,initialTrail:rb(window.history.state,e),onSelectedTaskChange(n,{push:i,trail:l}){const o=new URL(window.location.href);n?o.searchParams.set(Sh,n):o.searchParams.delete(Sh),o.hash="";const u={shipbenchTask:n,trail:[...l]};i?window.history.pushState(u,"",o):window.history.replaceState(u,"",o)},back:n=>window.history.go(-n),subscribe(n){const i=l=>{const o=nb();n(o,rb(l.state,o))};return window.addEventListener("popstate",i),()=>window.removeEventListener("popstate",i)}}}function $u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},so={};/**
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 ib;function QS(){if(ib)return so;ib=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(l,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:l,key:c,ref:o!==void 0?o:null,props:u}}return so.Fragment=n,so.jsx=i,so.jsxs=i,so}var lb;function KS(){return lb||(lb=1,Od.exports=QS()),Od.exports}var x=KS(),Md={exports:{}},uo={},jd={exports:{}},_d={};/**
10
+ * @license React
11
+ * scheduler.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 ab;function JS(){return ab||(ab=1,(function(e){function n(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var se=te-1>>>1,z=H[se];if(0<o(z,Z))H[se]=Z,H[te]=z,te=se;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var se=0,z=H.length,I=z>>>1;se<I;){var G=2*(se+1)-1,j=H[G],ie=G+1,de=H[ie];if(0>o(j,te))ie<z&&0>o(de,j)?(H[se]=de,H[ie]=te,se=ie):(H[se]=j,H[G]=te,se=G);else if(ie<z&&0>o(de,te))H[se]=de,H[ie]=te,se=ie;else break e}}return Z}function o(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.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 d=[],h=[],b=1,m=null,y=3,v=!1,k=!1,T=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function R(H){for(var Z=i(h);Z!==null;){if(Z.callback===null)l(h);else if(Z.startTime<=H)l(h),Z.sortIndex=Z.expirationTime,n(d,Z);else break;Z=i(h)}}function _(H){if(T=!1,R(H),!k)if(i(d)!==null)k=!0,N||(N=!0,X());else{var Z=i(h);Z!==null&&J(_,Z.startTime-H)}}var N=!1,M=-1,B=5,F=-1;function L(){return C?!0:!(e.unstable_now()-F<B)}function P(){if(C=!1,N){var H=e.unstable_now();F=H;var Z=!0;try{e:{k=!1,T&&(T=!1,A(M),M=-1),v=!0;var te=y;try{t:{for(R(H),m=i(d);m!==null&&!(m.expirationTime>H&&L());){var se=m.callback;if(typeof se=="function"){m.callback=null,y=m.priorityLevel;var z=se(m.expirationTime<=H);if(H=e.unstable_now(),typeof z=="function"){m.callback=z,R(H),Z=!0;break t}m===i(d)&&l(d),R(H)}else l(d);m=i(d)}if(m!==null)Z=!0;else{var I=i(h);I!==null&&J(_,I.startTime-H),Z=!1}}break e}finally{m=null,y=te,v=!1}Z=void 0}}finally{Z?X():N=!1}}}var X;if(typeof D=="function")X=function(){D(P)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,q=U.port2;U.port1.onmessage=P,X=function(){q.postMessage(null)}}else X=function(){w(P,0)};function J(H,Z){M=w(function(){H(e.unstable_now())},Z)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(H){switch(y){case 1:case 2:case 3:var Z=3;break;default:Z=y}var te=y;y=Z;try{return H()}finally{y=te}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=y;y=H;try{return Z()}finally{y=te}},e.unstable_scheduleCallback=function(H,Z,te){var se=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?se+te:se):te=se,H){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=te+z,H={id:b++,callback:Z,priorityLevel:H,startTime:te,expirationTime:z,sortIndex:-1},te>se?(H.sortIndex=te,n(h,H),i(d)===null&&H===i(h)&&(T?(A(M),M=-1):T=!0,J(_,te-se))):(H.sortIndex=z,n(d,H),k||v||(k=!0,N||(N=!0,X()))),H},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(H){var Z=y;return function(){var te=y;y=Z;try{return H.apply(this,arguments)}finally{y=te}}}})(_d)),_d}var ob;function WS(){return ob||(ob=1,jd.exports=JS()),jd.exports}var Ld={exports:{}},Re={};/**
18
+ * @license React
19
+ * react.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 sb;function e4(){if(sb)return Re;sb=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=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"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function v(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,C={};function w(I,G,j){this.props=I,this.context=G,this.refs=C,this.updater=j||k}w.prototype.isReactComponent={},w.prototype.setState=function(I,G){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,G,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function A(){}A.prototype=w.prototype;function D(I,G,j){this.props=I,this.context=G,this.refs=C,this.updater=j||k}var R=D.prototype=new A;R.constructor=D,T(R,w.prototype),R.isPureReactComponent=!0;var _=Array.isArray;function N(){}var M={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function F(I,G,j){var ie=j.ref;return{$$typeof:e,type:I,key:G,ref:ie!==void 0?ie:null,props:j}}function L(I,G){return F(I.type,G,I.props)}function P(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function X(I){var G={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(j){return G[j]})}var U=/\/+/g;function q(I,G){return typeof I=="object"&&I!==null&&I.key!=null?X(""+I.key):G.toString(36)}function J(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(N,N):(I.status="pending",I.then(function(G){I.status==="pending"&&(I.status="fulfilled",I.value=G)},function(G){I.status==="pending"&&(I.status="rejected",I.reason=G)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function H(I,G,j,ie,de){var ue=typeof I;(ue==="undefined"||ue==="boolean")&&(I=null);var ve=!1;if(I===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(I.$$typeof){case e:case n:ve=!0;break;case b:return ve=I._init,H(ve(I._payload),G,j,ie,de)}}if(ve)return de=de(I),ve=ie===""?"."+q(I,0):ie,_(de)?(j="",ve!=null&&(j=ve.replace(U,"$&/")+"/"),H(de,G,j,"",function(be){return be})):de!=null&&(P(de)&&(de=L(de,j+(de.key==null||I&&I.key===de.key?"":(""+de.key).replace(U,"$&/")+"/")+ve)),G.push(de)),1;ve=0;var me=ie===""?".":ie+":";if(_(I))for(var he=0;he<I.length;he++)ie=I[he],ue=me+q(ie,he),ve+=H(ie,G,j,ue,de);else if(he=v(I),typeof he=="function")for(I=he.call(I),he=0;!(ie=I.next()).done;)ie=ie.value,ue=me+q(ie,he++),ve+=H(ie,G,j,ue,de);else if(ue==="object"){if(typeof I.then=="function")return H(J(I),G,j,ie,de);throw G=String(I),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Z(I,G,j){if(I==null)return I;var ie=[],de=0;return H(I,ie,"","",function(ue){return G.call(j,ue,de++)}),ie}function te(I){if(I._status===-1){var G=I._result;G=G(),G.then(function(j){(I._status===0||I._status===-1)&&(I._status=1,I._result=j)},function(j){(I._status===0||I._status===-1)&&(I._status=2,I._result=j)}),I._status===-1&&(I._status=0,I._result=G)}if(I._status===1)return I._result.default;throw I._result}var se=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},z={map:Z,forEach:function(I,G,j){Z(I,function(){G.apply(this,arguments)},j)},count:function(I){var G=0;return Z(I,function(){G++}),G},toArray:function(I){return Z(I,function(G){return G})||[]},only:function(I){if(!P(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Re.Activity=m,Re.Children=z,Re.Component=w,Re.Fragment=i,Re.Profiler=o,Re.PureComponent=D,Re.StrictMode=l,Re.Suspense=d,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Re.__COMPILER_RUNTIME={__proto__:null,c:function(I){return M.H.useMemoCache(I)}},Re.cache=function(I){return function(){return I.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(I,G,j){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ie=T({},I.props),de=I.key;if(G!=null)for(ue in G.key!==void 0&&(de=""+G.key),G)!B.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(ie[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)ie.children=j;else if(1<ue){for(var ve=Array(ue),me=0;me<ue;me++)ve[me]=arguments[me+2];ie.children=ve}return F(I.type,de,ie)},Re.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:u,_context:I},I},Re.createElement=function(I,G,j){var ie,de={},ue=null;if(G!=null)for(ie in G.key!==void 0&&(ue=""+G.key),G)B.call(G,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(de[ie]=G[ie]);var ve=arguments.length-2;if(ve===1)de.children=j;else if(1<ve){for(var me=Array(ve),he=0;he<ve;he++)me[he]=arguments[he+2];de.children=me}if(I&&I.defaultProps)for(ie in ve=I.defaultProps,ve)de[ie]===void 0&&(de[ie]=ve[ie]);return F(I,ue,de)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(I){return{$$typeof:f,render:I}},Re.isValidElement=P,Re.lazy=function(I){return{$$typeof:b,_payload:{_status:-1,_result:I},_init:te}},Re.memo=function(I,G){return{$$typeof:h,type:I,compare:G===void 0?null:G}},Re.startTransition=function(I){var G=M.T,j={};M.T=j;try{var ie=I(),de=M.S;de!==null&&de(j,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(N,se)}catch(ue){se(ue)}finally{G!==null&&j.types!==null&&(G.types=j.types),M.T=G}},Re.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Re.use=function(I){return M.H.use(I)},Re.useActionState=function(I,G,j){return M.H.useActionState(I,G,j)},Re.useCallback=function(I,G){return M.H.useCallback(I,G)},Re.useContext=function(I){return M.H.useContext(I)},Re.useDebugValue=function(){},Re.useDeferredValue=function(I,G){return M.H.useDeferredValue(I,G)},Re.useEffect=function(I,G){return M.H.useEffect(I,G)},Re.useEffectEvent=function(I){return M.H.useEffectEvent(I)},Re.useId=function(){return M.H.useId()},Re.useImperativeHandle=function(I,G,j){return M.H.useImperativeHandle(I,G,j)},Re.useInsertionEffect=function(I,G){return M.H.useInsertionEffect(I,G)},Re.useLayoutEffect=function(I,G){return M.H.useLayoutEffect(I,G)},Re.useMemo=function(I,G){return M.H.useMemo(I,G)},Re.useOptimistic=function(I,G){return M.H.useOptimistic(I,G)},Re.useReducer=function(I,G,j){return M.H.useReducer(I,G,j)},Re.useRef=function(I){return M.H.useRef(I)},Re.useState=function(I){return M.H.useState(I)},Re.useSyncExternalStore=function(I,G,j){return M.H.useSyncExternalStore(I,G,j)},Re.useTransition=function(){return M.H.useTransition()},Re.version="19.2.8",Re}var ub;function om(){return ub||(ub=1,Ld.exports=e4()),Ld.exports}var zd={exports:{}},ln={};/**
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 cb;function t4(){if(cb)return ln;cb=1;var e=om();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={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(d,h,b){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:d,containerInfo:h,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ln.createPortal=function(d,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return u(d,h,null,b)},ln.flushSync=function(d){var h=c.T,b=l.p;try{if(c.T=null,l.p=2,d)return d()}finally{c.T=h,l.p=b,l.d.f()}},ln.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(d,h))},ln.prefetchDNS=function(d){typeof d=="string"&&l.d.D(d)},ln.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var b=h.as,m=f(b,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:v}):b==="script"&&l.d.X(d,{crossOrigin:m,integrity:y,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ln.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=f(h.as,h.crossOrigin);l.d.M(d,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(d)},ln.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,m=f(b,h.crossOrigin);l.d.L(d,b,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ln.preloadModule=function(d,h){if(typeof d=="string")if(h){var b=f(h.as,h.crossOrigin);l.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(d)},ln.requestFormReset=function(d){l.d.r(d)},ln.unstable_batchedUpdates=function(d,h){return d(h)},ln.useFormState=function(d,h,b){return c.H.useFormState(d,h,b)},ln.useFormStatus=function(){return c.H.useHostTransitionStatus()},ln.version="19.2.8",ln}var fb;function dy(){if(fb)return zd.exports;fb=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(),zd.exports=t4(),zd.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 db;function n4(){if(db)return uo;db=1;var e=WS(),n=om(),i=dy();function l(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+r+" 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 r=t,a=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(a=r.return),t=r.return;while(t)}return r.tag===3?a:null}function c(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(u(t)!==t)throw Error(l(188))}function h(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(l(188));return r!==t?null:t}for(var a=t,s=r;;){var p=a.return;if(p===null)break;var g=p.alternate;if(g===null){if(s=p.return,s!==null){a=s;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===a)return d(p),t;if(g===s)return d(p),r;g=g.sibling}throw Error(l(188))}if(a.return!==s.return)a=p,s=g;else{for(var S=!1,O=p.child;O;){if(O===a){S=!0,a=p,s=g;break}if(O===s){S=!0,s=p,a=g;break}O=O.sibling}if(!S){for(O=g.child;O;){if(O===a){S=!0,a=g,s=p;break}if(O===s){S=!0,s=g,a=p;break}O=O.sibling}if(!S)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?t:r}function b(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=b(t),r!==null)return r;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),D=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function X(t){return t===null||typeof t!="object"?null:(t=P&&t[P]||t["@@iterator"],typeof t=="function"?t:null)}var U=Symbol.for("react.client.reference");function q(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===U?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case _:return"Suspense";case N:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case D:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case R:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case M:return r=t.displayName||null,r!==null?r:q(t.type)||"Memo";case B:r=t._payload,t=t._init;try{return q(t(r))}catch{}}return null}var J=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},se=[],z=-1;function I(t){return{current:t}}function G(t){0>z||(t.current=se[z],se[z]=null,z--)}function j(t,r){z++,se[z]=t.current,t.current=r}var ie=I(null),de=I(null),ue=I(null),ve=I(null);function me(t,r){switch(j(ue,r),j(de,t),j(ie,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?w0(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=w0(r),t=C0(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(ie),j(ie,t)}function he(){G(ie),G(de),G(ue)}function be(t){t.memoizedState!==null&&j(ve,t);var r=ie.current,a=C0(r,t.type);r!==a&&(j(de,t),j(ie,a))}function Te(t){de.current===t&&(G(ie),G(de)),ve.current===t&&(G(ve),io._currentValue=te)}var Ce,Ae;function Pe(t){if(Ce===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||"",Ae=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ce+t+Ae}var st=!1;function pt(t,r){if(!t||st)return"";st=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var W=ee}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(ee){W=ee}t.call(oe.prototype)}}else{try{throw Error()}catch(ee){W=ee}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&W&&typeof ee.stack=="string")return[ee.stack,W.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),S=g[0],O=g[1];if(S&&O){var V=S.split(`
44
+ `),K=O.split(`
45
+ `);for(p=s=0;s<V.length&&!V[s].includes("DetermineComponentFrameRoot");)s++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(s===V.length||p===K.length)for(s=V.length-1,p=K.length-1;1<=s&&0<=p&&V[s]!==K[p];)p--;for(;1<=s&&0<=p;s--,p--)if(V[s]!==K[p]){if(s!==1||p!==1)do if(s--,p--,0>p||V[s]!==K[p]){var ne=`
46
+ `+V[s].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),ne}while(1<=s&&0<=p);break}}}finally{st=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Pe(a):""}function Ot(t,r){switch(t.tag){case 26:case 27:case 5:return Pe(t.type);case 16:return Pe("Lazy");case 13:return t.child!==r&&r!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return pt(t.type,!1);case 11:return pt(t.type.render,!1);case 1:return pt(t.type,!0);case 31:return Pe("Activity");default:return""}}function nn(t){try{var r="",a=null;do r+=Ot(t,a),a=t,t=t.return;while(t);return r}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var Et=Object.prototype.hasOwnProperty,It=e.unstable_scheduleCallback,pn=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,Tr=e.unstable_requestPaint,ct=e.unstable_now,Li=e.unstable_getCurrentPriorityLevel,re=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,Se=e.unstable_NormalPriority,De=e.unstable_LowPriority,je=e.unstable_IdlePriority,Qe=e.log,sn=e.unstable_setDisableYieldValue,gt=null,yt=null;function Mt(t){if(typeof Qe=="function"&&sn(t),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(gt,t)}catch{}}var qe=Math.clz32?Math.clz32:va,An=Math.log,ft=Math.LN2;function va(t){return t>>>=0,t===0?32:31-(An(t)/ft|0)|0}var dr=256,un=262144,bt=4194304;function xt(t){var r=t&42;if(r!==0)return r;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 Dt(t,r,a){var s=t.pendingLanes;if(s===0)return 0;var p=0,g=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var O=s&134217727;return O!==0?(s=O&~g,s!==0?p=xt(s):(S&=O,S!==0?p=xt(S):a||(a=O&~t,a!==0&&(p=xt(a))))):(O=s&~g,O!==0?p=xt(O):S!==0?p=xt(S):a||(a=s&~t,a!==0&&(p=xt(a)))),p===0?0:r!==0&&r!==p&&(r&g)===0&&(g=p&-p,a=r&-r,g>=a||g===32&&(a&4194048)!==0)?r:p}function Gt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function xe(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Ue(){var t=bt;return bt<<=1,(bt&62914560)===0&&(bt=4194304),t}function $e(t){for(var r=[],a=0;31>a;a++)r.push(t);return r}function it(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function dt(t,r,a,s,p,g){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 O=t.entanglements,V=t.expirationTimes,K=t.hiddenUpdates;for(a=S&~a;0<a;){var ne=31-qe(a),oe=1<<ne;O[ne]=0,V[ne]=-1;var W=K[ne];if(W!==null)for(K[ne]=null,ne=0;ne<W.length;ne++){var ee=W[ne];ee!==null&&(ee.lane&=-536870913)}a&=~oe}s!==0&&Ke(t,s,0),g!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=g&~(S&~r))}function Ke(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var s=31-qe(r);t.entangledLanes|=r,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function ut(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var s=31-qe(a),p=1<<s;p&r|t[s]&r&&(t[s]|=r),a&=~p}}function St(t,r){var a=r&-r;return a=(a&42)!==0?1:Dn(a),(a&(t.suspendedLanes|r))!==0?0:a}function Dn(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 jt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function cn(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:X0(t.type))}function Wr(t,r){var a=Z.p;try{return Z.p=t,r()}finally{Z.p=a}}var In=Math.random().toString(36).slice(2),Qt="__reactFiber$"+In,gn="__reactProps$"+In,cl="__reactContainer$"+In,xc="__reactEvents$"+In,z5="__reactListeners$"+In,B5="__reactHandles$"+In,up="__reactResources$"+In,ya="__reactMarker$"+In;function Sc(t){delete t[Qt],delete t[gn],delete t[xc],delete t[z5],delete t[B5]}function fl(t){var r=t[Qt];if(r)return r;for(var a=t.parentNode;a;){if(r=a[cl]||a[Qt]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=R0(t);t!==null;){if(a=t[Qt])return a;t=R0(t)}return r}t=a,a=t.parentNode}return null}function dl(t){if(t=t[Qt]||t[cl]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function xa(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function hl(t){var r=t[up];return r||(r=t[up]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function qt(t){t[ya]=!0}var cp=new Set,fp={};function zi(t,r){ml(t,r),ml(t+"Capture",r)}function ml(t,r){for(fp[t]=r,t=0;t<r.length;t++)cp.add(r[t])}var H5=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]*$"),dp={},hp={};function U5(t){return Et.call(hp,t)?!0:Et.call(dp,t)?!1:H5.test(t)?hp[t]=!0:(dp[t]=!0,!1)}function $o(t,r,a){if(U5(r))if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+a)}}function Zo(t,r,a){if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+a)}}function Ar(t,r,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(r,a,""+s)}}function Vn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mp(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function I5(t,r,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(S){a=""+S,g.call(this,S)}}),Object.defineProperty(t,r,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(S){a=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function wc(t){if(!t._valueTracker){var r=mp(t)?"checked":"value";t._valueTracker=I5(t,r,""+t[r])}}function pp(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),s="";return t&&(s=mp(t)?t.checked?"true":"false":t.value),t=s,t!==a?(r.setValue(t),!0):!1}function Go(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 V5=/[\n"\\]/g;function Pn(t){return t.replace(V5,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Cc(t,r,a,s,p,g,S,O){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),r!=null?S==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Vn(r)):t.value!==""+Vn(r)&&(t.value=""+Vn(r)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),r!=null?Ec(t,S,Vn(r)):a!=null?Ec(t,S,Vn(a)):s!=null&&t.removeAttribute("value"),p==null&&g!=null&&(t.defaultChecked=!!g),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?t.name=""+Vn(O):t.removeAttribute("name")}function gp(t,r,a,s,p,g,S,O){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||a!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){wc(t);return}a=a!=null?""+Vn(a):"",r=r!=null?""+Vn(r):a,O||r===t.value||(t.value=r),t.defaultValue=r}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=O?t.checked:!!s,t.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),wc(t)}function Ec(t,r,a){r==="number"&&Go(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function pl(t,r,a,s){if(t=t.options,r){r={};for(var p=0;p<a.length;p++)r["$"+a[p]]=!0;for(a=0;a<t.length;a++)p=r.hasOwnProperty("$"+t[a].value),t[a].selected!==p&&(t[a].selected=p),p&&s&&(t[a].defaultSelected=!0)}else{for(a=""+Vn(a),r=null,p=0;p<t.length;p++){if(t[p].value===a){t[p].selected=!0,s&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function bp(t,r,a){if(r!=null&&(r=""+Vn(r),r!==t.value&&(t.value=r),a==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=a!=null?""+Vn(a):""}function vp(t,r,a,s){if(r==null){if(s!=null){if(a!=null)throw Error(l(92));if(J(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),r=a}a=Vn(r),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),wc(t)}function gl(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var P5=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 yp(t,r,a){var s=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":s?t.setProperty(r,a):typeof a!="number"||a===0||P5.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function xp(t,r,a){if(r!=null&&typeof r!="object")throw Error(l(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var p in r)s=r[p],r.hasOwnProperty(p)&&a[p]!==s&&yp(t,p,s)}else for(var g in r)r.hasOwnProperty(g)&&yp(t,g,r[g])}function kc(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 F5=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"]]),q5=/^[\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 Qo(t){return q5.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Dr(){}var Tc=null;function Ac(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var bl=null,vl=null;function Sp(t){var r=dl(t);if(r&&(t=r.stateNode)){var a=t[gn]||null;e:switch(t=r.stateNode,r.type){case"input":if(Cc(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var s=a[r];if(s!==t&&s.form===t.form){var p=s[gn]||null;if(!p)throw Error(l(90));Cc(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<a.length;r++)s=a[r],s.form===t.form&&pp(s)}break e;case"textarea":bp(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&pl(t,!!a.multiple,r,!1)}}}var Dc=!1;function wp(t,r,a){if(Dc)return t(r,a);Dc=!0;try{var s=t(r);return s}finally{if(Dc=!1,(bl!==null||vl!==null)&&(Bs(),bl&&(r=bl,t=vl,vl=bl=null,Sp(r),t)))for(r=0;r<t.length;r++)Sp(t[r])}}function Sa(t,r){var a=t.stateNode;if(a===null)return null;var s=a[gn]||null;if(s===null)return null;a=s[r];e:switch(r){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(l(231,r,typeof a));return a}var Nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nc=!1;if(Nr)try{var wa={};Object.defineProperty(wa,"passive",{get:function(){Nc=!0}}),window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Nc=!1}var ei=null,Rc=null,Ko=null;function Cp(){if(Ko)return Ko;var t,r=Rc,a=r.length,s,p="value"in ei?ei.value:ei.textContent,g=p.length;for(t=0;t<a&&r[t]===p[t];t++);var S=a-t;for(s=1;s<=S&&r[a-s]===p[g-s];s++);return Ko=p.slice(t,1<s?1-s:void 0)}function Jo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Wo(){return!0}function Ep(){return!1}function bn(t){function r(a,s,p,g,S){this._reactName=a,this._targetInst=p,this.type=s,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var O in t)t.hasOwnProperty(O)&&(a=t[O],this[O]=a?a(g):g[O]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Wo:Ep,this.isPropagationStopped=Ep,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Wo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Wo)},persist:function(){},isPersistent:Wo}),r}var Bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=bn(Bi),Ca=m({},Bi,{view:0,detail:0}),Y5=bn(Ca),Oc,Mc,Ea,ts=m({},Ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_c,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!==Ea&&(Ea&&t.type==="mousemove"?(Oc=t.screenX-Ea.screenX,Mc=t.screenY-Ea.screenY):Mc=Oc=0,Ea=t),Oc)},movementY:function(t){return"movementY"in t?t.movementY:Mc}}),kp=bn(ts),X5=m({},ts,{dataTransfer:0}),$5=bn(X5),Z5=m({},Ca,{relatedTarget:0}),jc=bn(Z5),G5=m({},Bi,{animationName:0,elapsedTime:0,pseudoElement:0}),Q5=bn(G5),K5=m({},Bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J5=bn(K5),W5=m({},Bi,{data:0}),Tp=bn(W5),e3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t3={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"},n3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r3(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=n3[t])?!!r[t]:!1}function _c(){return r3}var i3=m({},Ca,{key:function(t){if(t.key){var r=e3[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Jo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?t3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_c,charCode:function(t){return t.type==="keypress"?Jo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Jo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),l3=bn(i3),a3=m({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ap=bn(a3),o3=m({},Ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_c}),s3=bn(o3),u3=m({},Bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),c3=bn(u3),f3=m({},ts,{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}),d3=bn(f3),h3=m({},Bi,{newState:0,oldState:0}),m3=bn(h3),p3=[9,13,27,32],Lc=Nr&&"CompositionEvent"in window,ka=null;Nr&&"documentMode"in document&&(ka=document.documentMode);var g3=Nr&&"TextEvent"in window&&!ka,Dp=Nr&&(!Lc||ka&&8<ka&&11>=ka),Np=" ",Rp=!1;function Op(t,r){switch(t){case"keyup":return p3.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var yl=!1;function b3(t,r){switch(t){case"compositionend":return Mp(r);case"keypress":return r.which!==32?null:(Rp=!0,Np);case"textInput":return t=r.data,t===Np&&Rp?null:t;default:return null}}function v3(t,r){if(yl)return t==="compositionend"||!Lc&&Op(t,r)?(t=Cp(),Ko=Rc=ei=null,yl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Dp&&r.locale!=="ko"?null:r.data;default:return null}}var y3={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 jp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!y3[t.type]:r==="textarea"}function _p(t,r,a,s){bl?vl?vl.push(s):vl=[s]:bl=s,r=qs(r,"onChange"),0<r.length&&(a=new es("onChange","change",null,a,s),t.push({event:a,listeners:r}))}var Ta=null,Aa=null;function x3(t){g0(t,0)}function ns(t){var r=xa(t);if(pp(r))return t}function Lp(t,r){if(t==="change")return r}var zp=!1;if(Nr){var zc;if(Nr){var Bc="oninput"in document;if(!Bc){var Bp=document.createElement("div");Bp.setAttribute("oninput","return;"),Bc=typeof Bp.oninput=="function"}zc=Bc}else zc=!1;zp=zc&&(!document.documentMode||9<document.documentMode)}function Hp(){Ta&&(Ta.detachEvent("onpropertychange",Up),Aa=Ta=null)}function Up(t){if(t.propertyName==="value"&&ns(Aa)){var r=[];_p(r,Aa,t,Ac(t)),wp(x3,r)}}function S3(t,r,a){t==="focusin"?(Hp(),Ta=r,Aa=a,Ta.attachEvent("onpropertychange",Up)):t==="focusout"&&Hp()}function w3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ns(Aa)}function C3(t,r){if(t==="click")return ns(r)}function E3(t,r){if(t==="input"||t==="change")return ns(r)}function k3(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Nn=typeof Object.is=="function"?Object.is:k3;function Da(t,r){if(Nn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var a=Object.keys(t),s=Object.keys(r);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var p=a[s];if(!Et.call(r,p)||!Nn(t[p],r[p]))return!1}return!0}function Ip(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vp(t,r){var a=Ip(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=r&&s>=r)return{node:a,offset:r-t};t=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ip(a)}}function Pp(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Pp(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Fp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Go(t.document);r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=Go(t.document)}return r}function Hc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var T3=Nr&&"documentMode"in document&&11>=document.documentMode,xl=null,Uc=null,Na=null,Ic=!1;function qp(t,r,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||xl==null||xl!==Go(s)||(s=xl,"selectionStart"in s&&Hc(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}),Na&&Da(Na,s)||(Na=s,s=qs(Uc,"onSelect"),0<s.length&&(r=new es("onSelect","select",null,r,a),t.push({event:r,listeners:s}),r.target=xl)))}function Hi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var Sl={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},Vc={},Yp={};Nr&&(Yp=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function Ui(t){if(Vc[t])return Vc[t];if(!Sl[t])return t;var r=Sl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in Yp)return Vc[t]=r[a];return t}var Xp=Ui("animationend"),$p=Ui("animationiteration"),Zp=Ui("animationstart"),A3=Ui("transitionrun"),D3=Ui("transitionstart"),N3=Ui("transitioncancel"),Gp=Ui("transitionend"),Qp=new Map,Pc="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(" ");Pc.push("scrollEnd");function tr(t,r){Qp.set(t,r),zi(r,[t])}var rs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Fn=[],wl=0,Fc=0;function is(){for(var t=wl,r=Fc=wl=0;r<t;){var a=Fn[r];Fn[r++]=null;var s=Fn[r];Fn[r++]=null;var p=Fn[r];Fn[r++]=null;var g=Fn[r];if(Fn[r++]=null,s!==null&&p!==null){var S=s.pending;S===null?p.next=p:(p.next=S.next,S.next=p),s.pending=p}g!==0&&Kp(a,p,g)}}function ls(t,r,a,s){Fn[wl++]=t,Fn[wl++]=r,Fn[wl++]=a,Fn[wl++]=s,Fc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function qc(t,r,a,s){return ls(t,r,a,s),as(t)}function Ii(t,r){return ls(t,null,null,r),as(t)}function Kp(t,r,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var p=!1,g=t.return;g!==null;)g.childLanes|=a,s=g.alternate,s!==null&&(s.childLanes|=a),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(p=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,p&&r!==null&&(p=31-qe(a),t=g.hiddenUpdates,s=t[p],s===null?t[p]=[r]:s.push(r),r.lane=a|536870912),g):null}function as(t){if(50<Ka)throw Ka=0,ed=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Cl={};function R3(t,r,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=r,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 Rn(t,r,a,s){return new R3(t,r,a,s)}function Yc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rr(t,r){var a=t.alternate;return a===null?(a=Rn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,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,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Jp(t,r){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=r,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,r=a.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function os(t,r,a,s,p,g){var S=0;if(s=t,typeof t=="function")Yc(t)&&(S=1);else if(typeof t=="string")S=LS(t,a,ie.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case F:return t=Rn(31,a,r,p),t.elementType=F,t.lanes=g,t;case T:return Vi(a.children,p,g,r);case C:S=8,p|=24;break;case w:return t=Rn(12,a,r,p|2),t.elementType=w,t.lanes=g,t;case _:return t=Rn(13,a,r,p),t.elementType=_,t.lanes=g,t;case N:return t=Rn(19,a,r,p),t.elementType=N,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:S=10;break e;case A:S=9;break e;case R:S=11;break e;case M:S=14;break e;case B:S=16,s=null;break e}S=29,a=Error(l(130,t===null?"null":typeof t,"")),s=null}return r=Rn(S,a,r,p),r.elementType=t,r.type=s,r.lanes=g,r}function Vi(t,r,a,s){return t=Rn(7,t,s,r),t.lanes=a,t}function Xc(t,r,a){return t=Rn(6,t,null,r),t.lanes=a,t}function Wp(t){var r=Rn(18,null,null,0);return r.stateNode=t,r}function $c(t,r,a){return r=Rn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var eg=new WeakMap;function qn(t,r){if(typeof t=="object"&&t!==null){var a=eg.get(t);return a!==void 0?a:(r={value:t,source:r,stack:nn(r)},eg.set(t,r),r)}return{value:t,source:r,stack:nn(r)}}var El=[],kl=0,ss=null,Ra=0,Yn=[],Xn=0,ti=null,hr=1,mr="";function Or(t,r){El[kl++]=Ra,El[kl++]=ss,ss=t,Ra=r}function tg(t,r,a){Yn[Xn++]=hr,Yn[Xn++]=mr,Yn[Xn++]=ti,ti=t;var s=hr;t=mr;var p=32-qe(s)-1;s&=~(1<<p),a+=1;var g=32-qe(r)+p;if(30<g){var S=p-p%5;g=(s&(1<<S)-1).toString(32),s>>=S,p-=S,hr=1<<32-qe(r)+p|a<<p|s,mr=g+t}else hr=1<<g|a<<p|s,mr=t}function Zc(t){t.return!==null&&(Or(t,1),tg(t,1,0))}function Gc(t){for(;t===ss;)ss=El[--kl],El[kl]=null,Ra=El[--kl],El[kl]=null;for(;t===ti;)ti=Yn[--Xn],Yn[Xn]=null,mr=Yn[--Xn],Yn[Xn]=null,hr=Yn[--Xn],Yn[Xn]=null}function ng(t,r){Yn[Xn++]=hr,Yn[Xn++]=mr,Yn[Xn++]=ti,hr=r.id,mr=r.overflow,ti=t}var Kt=null,ht=null,Ie=!1,ni=null,$n=!1,Qc=Error(l(519));function ri(t){var r=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oa(qn(r,t)),Qc}function rg(t){var r=t.stateNode,a=t.type,s=t.memoizedProps;switch(r[Qt]=t,r[gn]=s,a){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(a=0;a<Wa.length;a++)Le(Wa[a],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),gp(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),vp(r,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||s.suppressHydrationWarning===!0||x0(r.textContent,a)?(s.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),s.onScroll!=null&&Le("scroll",r),s.onScrollEnd!=null&&Le("scrollend",r),s.onClick!=null&&(r.onclick=Dr),r=!0):r=!1,r||ri(t,!0)}function ig(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:Kt=Kt.return}}function Tl(t){if(t!==Kt)return!1;if(!Ie)return ig(t),Ie=!0,!1;var r=t.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||pd(t.type,t.memoizedProps)),a=!a),a&&ht&&ri(t),ig(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));ht=N0(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));ht=N0(t)}else r===27?(r=ht,bi(t.type)?(t=xd,xd=null,ht=t):ht=r):ht=Kt?Gn(t.stateNode.nextSibling):null;return!0}function Pi(){ht=Kt=null,Ie=!1}function Kc(){var t=ni;return t!==null&&(Sn===null?Sn=t:Sn.push.apply(Sn,t),ni=null),t}function Oa(t){ni===null?ni=[t]:ni.push(t)}var Jc=I(null),Fi=null,Mr=null;function ii(t,r,a){j(Jc,r._currentValue),r._currentValue=a}function jr(t){t._currentValue=Jc.current,G(Jc)}function Wc(t,r,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===a)break;t=t.return}}function ef(t,r,a,s){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var g=p.dependencies;if(g!==null){var S=p.child;g=g.firstContext;e:for(;g!==null;){var O=g;g=p;for(var V=0;V<r.length;V++)if(O.context===r[V]){g.lanes|=a,O=g.alternate,O!==null&&(O.lanes|=a),Wc(g.return,a,t),s||(S=null);break e}g=O.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(l(341));S.lanes|=a,g=S.alternate,g!==null&&(g.lanes|=a),Wc(S,a,t),S=null}else S=p.child;if(S!==null)S.return=p;else for(S=p;S!==null;){if(S===t){S=null;break}if(p=S.sibling,p!==null){p.return=S.return,S=p;break}S=S.return}p=S}}function Al(t,r,a,s){t=null;for(var p=r,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var S=p.alternate;if(S===null)throw Error(l(387));if(S=S.memoizedProps,S!==null){var O=p.type;Nn(p.pendingProps.value,S.value)||(t!==null?t.push(O):t=[O])}}else if(p===ve.current){if(S=p.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(io):t=[io])}p=p.return}t!==null&&ef(r,t,a,s),r.flags|=262144}function us(t){for(t=t.firstContext;t!==null;){if(!Nn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function qi(t){Fi=t,Mr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return lg(Fi,t)}function cs(t,r){return Fi===null&&qi(t),lg(t,r)}function lg(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Mr===null){if(t===null)throw Error(l(308));Mr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Mr=Mr.next=r;return a}var O3=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){r.aborted=!0,t.forEach(function(a){return a()})}},M3=e.unstable_scheduleCallback,j3=e.unstable_NormalPriority,_t={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tf(){return{controller:new O3,data:new Map,refCount:0}}function Ma(t){t.refCount--,t.refCount===0&&M3(j3,function(){t.controller.abort()})}var ja=null,nf=0,Dl=0,Nl=null;function _3(t,r){if(ja===null){var a=ja=[];nf=0,Dl=ad(),Nl={status:"pending",value:void 0,then:function(s){a.push(s)}}}return nf++,r.then(ag,ag),r}function ag(){if(--nf===0&&ja!==null){Nl!==null&&(Nl.status="fulfilled");var t=ja;ja=null,Dl=0,Nl=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function L3(t,r){var a=[],s={status:"pending",value:null,reason:null,then:function(p){a.push(p)}};return t.then(function(){s.status="fulfilled",s.value=r;for(var p=0;p<a.length;p++)(0,a[p])(r)},function(p){for(s.status="rejected",s.reason=p,p=0;p<a.length;p++)(0,a[p])(void 0)}),s}var og=H.S;H.S=function(t,r){q1=ct(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&_3(t,r),og!==null&&og(t,r)};var Yi=I(null);function rf(){var t=Yi.current;return t!==null?t:lt.pooledCache}function fs(t,r){r===null?j(Yi,Yi.current):j(Yi,r.pool)}function sg(){var t=rf();return t===null?null:{parent:_t._currentValue,pool:t}}var Rl=Error(l(460)),lf=Error(l(474)),ds=Error(l(542)),hs={then:function(){}};function ug(t){return t=t.status,t==="fulfilled"||t==="rejected"}function cg(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Dr,Dr),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,dg(t),t;default:if(typeof r.status=="string")r.then(Dr,Dr);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=r,t.status="pending",t.then(function(s){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=s}},function(s){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,dg(t),t}throw $i=r,Rl}}function Xi(t){try{var r=t._init;return r(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?($i=a,Rl):a}}var $i=null;function fg(){if($i===null)throw Error(l(459));var t=$i;return $i=null,t}function dg(t){if(t===Rl||t===ds)throw Error(l(483))}var Ol=null,_a=0;function ms(t){var r=_a;return _a+=1,Ol===null&&(Ol=[]),cg(Ol,t,r)}function La(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function ps(t,r){throw r.$$typeof===y?Error(l(525)):(t=Object.prototype.toString.call(r),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function hg(t){function r($,Y){if(t){var Q=$.deletions;Q===null?($.deletions=[Y],$.flags|=16):Q.push(Y)}}function a($,Y){if(!t)return null;for(;Y!==null;)r($,Y),Y=Y.sibling;return null}function s($){for(var Y=new Map;$!==null;)$.key!==null?Y.set($.key,$):Y.set($.index,$),$=$.sibling;return Y}function p($,Y){return $=Rr($,Y),$.index=0,$.sibling=null,$}function g($,Y,Q){return $.index=Q,t?(Q=$.alternate,Q!==null?(Q=Q.index,Q<Y?($.flags|=67108866,Y):Q):($.flags|=67108866,Y)):($.flags|=1048576,Y)}function S($){return t&&$.alternate===null&&($.flags|=67108866),$}function O($,Y,Q,le){return Y===null||Y.tag!==6?(Y=Xc(Q,$.mode,le),Y.return=$,Y):(Y=p(Y,Q),Y.return=$,Y)}function V($,Y,Q,le){var we=Q.type;return we===T?ne($,Y,Q.props.children,le,Q.key):Y!==null&&(Y.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===B&&Xi(we)===Y.type)?(Y=p(Y,Q.props),La(Y,Q),Y.return=$,Y):(Y=os(Q.type,Q.key,Q.props,null,$.mode,le),La(Y,Q),Y.return=$,Y)}function K($,Y,Q,le){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==Q.containerInfo||Y.stateNode.implementation!==Q.implementation?(Y=$c(Q,$.mode,le),Y.return=$,Y):(Y=p(Y,Q.children||[]),Y.return=$,Y)}function ne($,Y,Q,le,we){return Y===null||Y.tag!==7?(Y=Vi(Q,$.mode,le,we),Y.return=$,Y):(Y=p(Y,Q),Y.return=$,Y)}function oe($,Y,Q){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=Xc(""+Y,$.mode,Q),Y.return=$,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return Q=os(Y.type,Y.key,Y.props,null,$.mode,Q),La(Q,Y),Q.return=$,Q;case k:return Y=$c(Y,$.mode,Q),Y.return=$,Y;case B:return Y=Xi(Y),oe($,Y,Q)}if(J(Y)||X(Y))return Y=Vi(Y,$.mode,Q,null),Y.return=$,Y;if(typeof Y.then=="function")return oe($,ms(Y),Q);if(Y.$$typeof===D)return oe($,cs($,Y),Q);ps($,Y)}return null}function W($,Y,Q,le){var we=Y!==null?Y.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return we!==null?null:O($,Y,""+Q,le);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return Q.key===we?V($,Y,Q,le):null;case k:return Q.key===we?K($,Y,Q,le):null;case B:return Q=Xi(Q),W($,Y,Q,le)}if(J(Q)||X(Q))return we!==null?null:ne($,Y,Q,le,null);if(typeof Q.then=="function")return W($,Y,ms(Q),le);if(Q.$$typeof===D)return W($,Y,cs($,Q),le);ps($,Q)}return null}function ee($,Y,Q,le,we){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return $=$.get(Q)||null,O(Y,$,""+le,we);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case v:return $=$.get(le.key===null?Q:le.key)||null,V(Y,$,le,we);case k:return $=$.get(le.key===null?Q:le.key)||null,K(Y,$,le,we);case B:return le=Xi(le),ee($,Y,Q,le,we)}if(J(le)||X(le))return $=$.get(Q)||null,ne(Y,$,le,we,null);if(typeof le.then=="function")return ee($,Y,Q,ms(le),we);if(le.$$typeof===D)return ee($,Y,Q,cs(Y,le),we);ps(Y,le)}return null}function ge($,Y,Q,le){for(var we=null,Ye=null,ye=Y,Me=Y=0,He=null;ye!==null&&Me<Q.length;Me++){ye.index>Me?(He=ye,ye=null):He=ye.sibling;var Xe=W($,ye,Q[Me],le);if(Xe===null){ye===null&&(ye=He);break}t&&ye&&Xe.alternate===null&&r($,ye),Y=g(Xe,Y,Me),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe,ye=He}if(Me===Q.length)return a($,ye),Ie&&Or($,Me),we;if(ye===null){for(;Me<Q.length;Me++)ye=oe($,Q[Me],le),ye!==null&&(Y=g(ye,Y,Me),Ye===null?we=ye:Ye.sibling=ye,Ye=ye);return Ie&&Or($,Me),we}for(ye=s(ye);Me<Q.length;Me++)He=ee(ye,$,Me,Q[Me],le),He!==null&&(t&&He.alternate!==null&&ye.delete(He.key===null?Me:He.key),Y=g(He,Y,Me),Ye===null?we=He:Ye.sibling=He,Ye=He);return t&&ye.forEach(function(wi){return r($,wi)}),Ie&&Or($,Me),we}function ke($,Y,Q,le){if(Q==null)throw Error(l(151));for(var we=null,Ye=null,ye=Y,Me=Y=0,He=null,Xe=Q.next();ye!==null&&!Xe.done;Me++,Xe=Q.next()){ye.index>Me?(He=ye,ye=null):He=ye.sibling;var wi=W($,ye,Xe.value,le);if(wi===null){ye===null&&(ye=He);break}t&&ye&&wi.alternate===null&&r($,ye),Y=g(wi,Y,Me),Ye===null?we=wi:Ye.sibling=wi,Ye=wi,ye=He}if(Xe.done)return a($,ye),Ie&&Or($,Me),we;if(ye===null){for(;!Xe.done;Me++,Xe=Q.next())Xe=oe($,Xe.value,le),Xe!==null&&(Y=g(Xe,Y,Me),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe);return Ie&&Or($,Me),we}for(ye=s(ye);!Xe.done;Me++,Xe=Q.next())Xe=ee(ye,$,Me,Xe.value,le),Xe!==null&&(t&&Xe.alternate!==null&&ye.delete(Xe.key===null?Me:Xe.key),Y=g(Xe,Y,Me),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe);return t&&ye.forEach(function(XS){return r($,XS)}),Ie&&Or($,Me),we}function nt($,Y,Q,le){if(typeof Q=="object"&&Q!==null&&Q.type===T&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:e:{for(var we=Q.key;Y!==null;){if(Y.key===we){if(we=Q.type,we===T){if(Y.tag===7){a($,Y.sibling),le=p(Y,Q.props.children),le.return=$,$=le;break e}}else if(Y.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===B&&Xi(we)===Y.type){a($,Y.sibling),le=p(Y,Q.props),La(le,Q),le.return=$,$=le;break e}a($,Y);break}else r($,Y);Y=Y.sibling}Q.type===T?(le=Vi(Q.props.children,$.mode,le,Q.key),le.return=$,$=le):(le=os(Q.type,Q.key,Q.props,null,$.mode,le),La(le,Q),le.return=$,$=le)}return S($);case k:e:{for(we=Q.key;Y!==null;){if(Y.key===we)if(Y.tag===4&&Y.stateNode.containerInfo===Q.containerInfo&&Y.stateNode.implementation===Q.implementation){a($,Y.sibling),le=p(Y,Q.children||[]),le.return=$,$=le;break e}else{a($,Y);break}else r($,Y);Y=Y.sibling}le=$c(Q,$.mode,le),le.return=$,$=le}return S($);case B:return Q=Xi(Q),nt($,Y,Q,le)}if(J(Q))return ge($,Y,Q,le);if(X(Q)){if(we=X(Q),typeof we!="function")throw Error(l(150));return Q=we.call(Q),ke($,Y,Q,le)}if(typeof Q.then=="function")return nt($,Y,ms(Q),le);if(Q.$$typeof===D)return nt($,Y,cs($,Q),le);ps($,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,Y!==null&&Y.tag===6?(a($,Y.sibling),le=p(Y,Q),le.return=$,$=le):(a($,Y),le=Xc(Q,$.mode,le),le.return=$,$=le),S($)):a($,Y)}return function($,Y,Q,le){try{_a=0;var we=nt($,Y,Q,le);return Ol=null,we}catch(ye){if(ye===Rl||ye===ds)throw ye;var Ye=Rn(29,ye,null,$.mode);return Ye.lanes=le,Ye.return=$,Ye}finally{}}}var Zi=hg(!0),mg=hg(!1),li=!1;function af(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function of(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ai(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function oi(t,r,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ze&2)!==0){var p=s.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),s.pending=r,r=as(t),Kp(t,null,a),r}return ls(t,s,r,a),as(t)}function za(t,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var s=r.lanes;s&=t.pendingLanes,a|=s,r.lanes=a,ut(t,a)}}function sf(t,r){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var p=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?p=g=S:g=g.next=S,a=a.next}while(a!==null);g===null?p=g=r:g=g.next=r}else p=g=r;a={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=r:t.next=r,a.lastBaseUpdate=r}var uf=!1;function Ba(){if(uf){var t=Nl;if(t!==null)throw t}}function Ha(t,r,a,s){uf=!1;var p=t.updateQueue;li=!1;var g=p.firstBaseUpdate,S=p.lastBaseUpdate,O=p.shared.pending;if(O!==null){p.shared.pending=null;var V=O,K=V.next;V.next=null,S===null?g=K:S.next=K,S=V;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,O=ne.lastBaseUpdate,O!==S&&(O===null?ne.firstBaseUpdate=K:O.next=K,ne.lastBaseUpdate=V))}if(g!==null){var oe=p.baseState;S=0,ne=K=V=null,O=g;do{var W=O.lane&-536870913,ee=W!==O.lane;if(ee?(Be&W)===W:(s&W)===W){W!==0&&W===Dl&&(uf=!0),ne!==null&&(ne=ne.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ge=t,ke=O;W=r;var nt=a;switch(ke.tag){case 1:if(ge=ke.payload,typeof ge=="function"){oe=ge.call(nt,oe,W);break e}oe=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=ke.payload,W=typeof ge=="function"?ge.call(nt,oe,W):ge,W==null)break e;oe=m({},oe,W);break e;case 2:li=!0}}W=O.callback,W!==null&&(t.flags|=64,ee&&(t.flags|=8192),ee=p.callbacks,ee===null?p.callbacks=[W]:ee.push(W))}else ee={lane:W,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ne===null?(K=ne=ee,V=oe):ne=ne.next=ee,S|=W;if(O=O.next,O===null){if(O=p.shared.pending,O===null)break;ee=O,O=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);ne===null&&(V=oe),p.baseState=V,p.firstBaseUpdate=K,p.lastBaseUpdate=ne,g===null&&(p.shared.lanes=0),di|=S,t.lanes=S,t.memoizedState=oe}}function pg(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function gg(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)pg(a[t],r)}var Ml=I(null),gs=I(0);function bg(t,r){t=Pr,j(gs,t),j(Ml,r),Pr=t|r.baseLanes}function cf(){j(gs,Pr),j(Ml,Ml.current)}function ff(){Pr=gs.current,G(Ml),G(gs)}var On=I(null),Zn=null;function si(t){var r=t.alternate;j(Nt,Nt.current&1),j(On,t),Zn===null&&(r===null||Ml.current!==null||r.memoizedState!==null)&&(Zn=t)}function df(t){j(Nt,Nt.current),j(On,t),Zn===null&&(Zn=t)}function vg(t){t.tag===22?(j(Nt,Nt.current),j(On,t),Zn===null&&(Zn=t)):ui()}function ui(){j(Nt,Nt.current),j(On,On.current)}function Mn(t){G(On),Zn===t&&(Zn=null),G(Nt)}var Nt=I(0);function bs(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||vd(a)||yd(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var _r=0,Oe=null,et=null,Lt=null,vs=!1,jl=!1,Gi=!1,ys=0,Ua=0,_l=null,z3=0;function kt(){throw Error(l(321))}function hf(t,r){if(r===null)return!1;for(var a=0;a<r.length&&a<t.length;a++)if(!Nn(t[a],r[a]))return!1;return!0}function mf(t,r,a,s,p,g){return _r=g,Oe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,H.H=t===null||t.memoizedState===null?t1:Nf,Gi=!1,g=a(s,p),Gi=!1,jl&&(g=xg(r,a,s,p)),yg(t),g}function yg(t){H.H=Pa;var r=et!==null&&et.next!==null;if(_r=0,Lt=et=Oe=null,vs=!1,Ua=0,_l=null,r)throw Error(l(300));t===null||zt||(t=t.dependencies,t!==null&&us(t)&&(zt=!0))}function xg(t,r,a,s){Oe=t;var p=0;do{if(jl&&(_l=null),Ua=0,jl=!1,25<=p)throw Error(l(301));if(p+=1,Lt=et=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}H.H=n1,g=r(a,s)}while(jl);return g}function B3(){var t=H.H,r=t.useState()[0];return r=typeof r.then=="function"?Ia(r):r,t=t.useState()[0],(et!==null?et.memoizedState:null)!==t&&(Oe.flags|=1024),r}function pf(){var t=ys!==0;return ys=0,t}function gf(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function bf(t){if(vs){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}vs=!1}_r=0,Lt=et=Oe=null,jl=!1,Ua=ys=0,_l=null}function fn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?Oe.memoizedState=Lt=t:Lt=Lt.next=t,Lt}function Rt(){if(et===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=et.next;var r=Lt===null?Oe.memoizedState:Lt.next;if(r!==null)Lt=r,et=t;else{if(t===null)throw Oe.alternate===null?Error(l(467)):Error(l(310));et=t,t={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Lt===null?Oe.memoizedState=Lt=t:Lt=Lt.next=t}return Lt}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ia(t){var r=Ua;return Ua+=1,_l===null&&(_l=[]),t=cg(_l,t,r),r=Oe,(Lt===null?r.memoizedState:Lt.next)===null&&(r=r.alternate,H.H=r===null||r.memoizedState===null?t1:Nf),t}function Ss(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ia(t);if(t.$$typeof===D)return Jt(t)}throw Error(l(438,String(t)))}function vf(t){var r=null,a=Oe.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var s=Oe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=xs(),Oe.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(t),s=0;s<t;s++)a[s]=L;return r.index++,a}function Lr(t,r){return typeof r=="function"?r(t):r}function ws(t){var r=Rt();return yf(r,et,t)}function yf(t,r,a){var s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var p=t.baseQueue,g=s.pending;if(g!==null){if(p!==null){var S=p.next;p.next=g.next,g.next=S}r.baseQueue=p=g,s.pending=null}if(g=t.baseState,p===null)t.memoizedState=g;else{r=p.next;var O=S=null,V=null,K=r,ne=!1;do{var oe=K.lane&-536870913;if(oe!==K.lane?(Be&oe)===oe:(_r&oe)===oe){var W=K.revertLane;if(W===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),oe===Dl&&(ne=!0);else if((_r&W)===W){K=K.next,W===Dl&&(ne=!0);continue}else oe={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(O=V=oe,S=g):V=V.next=oe,Oe.lanes|=W,di|=W;oe=K.action,Gi&&a(g,oe),g=K.hasEagerState?K.eagerState:a(g,oe)}else W={lane:oe,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(O=V=W,S=g):V=V.next=W,Oe.lanes|=oe,di|=oe;K=K.next}while(K!==null&&K!==r);if(V===null?S=g:V.next=O,!Nn(g,t.memoizedState)&&(zt=!0,ne&&(a=Nl,a!==null)))throw a;t.memoizedState=g,t.baseState=S,t.baseQueue=V,s.lastRenderedState=g}return p===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function xf(t){var r=Rt(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var s=a.dispatch,p=a.pending,g=r.memoizedState;if(p!==null){a.pending=null;var S=p=p.next;do g=t(g,S.action),S=S.next;while(S!==p);Nn(g,r.memoizedState)||(zt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),a.lastRenderedState=g}return[g,s]}function Sg(t,r,a){var s=Oe,p=Rt(),g=Ie;if(g){if(a===void 0)throw Error(l(407));a=a()}else a=r();var S=!Nn((et||p).memoizedState,a);if(S&&(p.memoizedState=a,zt=!0),p=p.queue,Cf(Eg.bind(null,s,p,t),[t]),p.getSnapshot!==r||S||Lt!==null&&Lt.memoizedState.tag&1){if(s.flags|=2048,Ll(9,{destroy:void 0},Cg.bind(null,s,p,a,r),null),lt===null)throw Error(l(349));g||(_r&127)!==0||wg(s,r,a)}return a}function wg(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Oe.updateQueue,r===null?(r=xs(),Oe.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function Cg(t,r,a,s){r.value=a,r.getSnapshot=s,kg(r)&&Tg(t)}function Eg(t,r,a){return a(function(){kg(r)&&Tg(t)})}function kg(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Nn(t,a)}catch{return!0}}function Tg(t){var r=Ii(t,2);r!==null&&wn(r,t,2)}function Sf(t){var r=fn();if(typeof t=="function"){var a=t;if(t=a(),Gi){Mt(!0);try{a()}finally{Mt(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:t},r}function Ag(t,r,a,s){return t.baseState=a,yf(t,et,typeof s=="function"?s:Lr)}function H3(t,r,a,s,p){if(ks(t))throw Error(l(485));if(t=r.action,t!==null){var g={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};H.T!==null?a(!0):g.isTransition=!1,s(g),a=r.pending,a===null?(g.next=r.pending=g,Dg(r,g)):(g.next=a.next,r.pending=a.next=g)}}function Dg(t,r){var a=r.action,s=r.payload,p=t.state;if(r.isTransition){var g=H.T,S={};H.T=S;try{var O=a(p,s),V=H.S;V!==null&&V(S,O),Ng(t,r,O)}catch(K){wf(t,r,K)}finally{g!==null&&S.types!==null&&(g.types=S.types),H.T=g}}else try{g=a(p,s),Ng(t,r,g)}catch(K){wf(t,r,K)}}function Ng(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Rg(t,r,s)},function(s){return wf(t,r,s)}):Rg(t,r,a)}function Rg(t,r,a){r.status="fulfilled",r.value=a,Og(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,Dg(t,a)))}function wf(t,r,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=a,Og(r),r=r.next;while(r!==s)}t.action=null}function Og(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Mg(t,r){return r}function jg(t,r){if(Ie){var a=lt.formState;if(a!==null){e:{var s=Oe;if(Ie){if(ht){t:{for(var p=ht,g=$n;p.nodeType!==8;){if(!g){p=null;break t}if(p=Gn(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){ht=Gn(p.nextSibling),s=p.data==="F!";break e}}ri(s)}s=!1}s&&(r=a[0])}}return a=fn(),a.memoizedState=a.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mg,lastRenderedState:r},a.queue=s,a=Jg.bind(null,Oe,s),s.dispatch=a,s=Sf(!1),g=Df.bind(null,Oe,!1,s.queue),s=fn(),p={state:r,dispatch:null,action:t,pending:null},s.queue=p,a=H3.bind(null,Oe,p,g,a),p.dispatch=a,s.memoizedState=t,[r,a,!1]}function _g(t){var r=Rt();return Lg(r,et,t)}function Lg(t,r,a){if(r=yf(t,r,Mg)[0],t=ws(Lr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Ia(r)}catch(S){throw S===Rl?ds:S}else s=r;r=Rt();var p=r.queue,g=p.dispatch;return a!==r.memoizedState&&(Oe.flags|=2048,Ll(9,{destroy:void 0},U3.bind(null,p,a),null)),[s,g,t]}function U3(t,r){t.action=r}function zg(t){var r=Rt(),a=et;if(a!==null)return Lg(r,a,t);Rt(),r=r.memoizedState,a=Rt();var s=a.queue.dispatch;return a.memoizedState=t,[r,s,!1]}function Ll(t,r,a,s){return t={tag:t,create:a,deps:s,inst:r,next:null},r=Oe.updateQueue,r===null&&(r=xs(),Oe.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,r.lastEffect=t),t}function Bg(){return Rt().memoizedState}function Cs(t,r,a,s){var p=fn();Oe.flags|=t,p.memoizedState=Ll(1|r,{destroy:void 0},a,s===void 0?null:s)}function Es(t,r,a,s){var p=Rt();s=s===void 0?null:s;var g=p.memoizedState.inst;et!==null&&s!==null&&hf(s,et.memoizedState.deps)?p.memoizedState=Ll(r,g,a,s):(Oe.flags|=t,p.memoizedState=Ll(1|r,g,a,s))}function Hg(t,r){Cs(8390656,8,t,r)}function Cf(t,r){Es(2048,8,t,r)}function I3(t){Oe.flags|=4;var r=Oe.updateQueue;if(r===null)r=xs(),Oe.updateQueue=r,r.events=[t];else{var a=r.events;a===null?r.events=[t]:a.push(t)}}function Ug(t){var r=Rt().memoizedState;return I3({ref:r,nextImpl:t}),function(){if((Ze&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}function Ig(t,r){return Es(4,2,t,r)}function Vg(t,r){return Es(4,4,t,r)}function Pg(t,r){if(typeof r=="function"){t=t();var a=r(t);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Fg(t,r,a){a=a!=null?a.concat([t]):null,Es(4,4,Pg.bind(null,r,t),a)}function Ef(){}function qg(t,r){var a=Rt();r=r===void 0?null:r;var s=a.memoizedState;return r!==null&&hf(r,s[1])?s[0]:(a.memoizedState=[t,r],t)}function Yg(t,r){var a=Rt();r=r===void 0?null:r;var s=a.memoizedState;if(r!==null&&hf(r,s[1]))return s[0];if(s=t(),Gi){Mt(!0);try{t()}finally{Mt(!1)}}return a.memoizedState=[s,r],s}function kf(t,r,a){return a===void 0||(_r&1073741824)!==0&&(Be&261930)===0?t.memoizedState=r:(t.memoizedState=a,t=X1(),Oe.lanes|=t,di|=t,a)}function Xg(t,r,a,s){return Nn(a,r)?a:Ml.current!==null?(t=kf(t,a,s),Nn(t,r)||(zt=!0),t):(_r&42)===0||(_r&1073741824)!==0&&(Be&261930)===0?(zt=!0,t.memoizedState=a):(t=X1(),Oe.lanes|=t,di|=t,r)}function $g(t,r,a,s,p){var g=Z.p;Z.p=g!==0&&8>g?g:8;var S=H.T,O={};H.T=O,Df(t,!1,r,a);try{var V=p(),K=H.S;if(K!==null&&K(O,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ne=L3(V,s);Va(t,r,ne,Ln(t))}else Va(t,r,s,Ln(t))}catch(oe){Va(t,r,{then:function(){},status:"rejected",reason:oe},Ln())}finally{Z.p=g,S!==null&&O.types!==null&&(S.types=O.types),H.T=S}}function V3(){}function Tf(t,r,a,s){if(t.tag!==5)throw Error(l(476));var p=Zg(t).queue;$g(t,p,r,te,a===null?V3:function(){return Gg(t),a(s)})}function Zg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:te},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Gg(t){var r=Zg(t);r.next===null&&(r=t.alternate.memoizedState),Va(t,r.next.queue,{},Ln())}function Af(){return Jt(io)}function Qg(){return Rt().memoizedState}function Kg(){return Rt().memoizedState}function P3(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=Ln();t=ai(a);var s=oi(r,t,a);s!==null&&(wn(s,r,a),za(s,r,a)),r={cache:tf()},t.payload=r;return}r=r.return}}function F3(t,r,a){var s=Ln();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ks(t)?Wg(r,a):(a=qc(t,r,a,s),a!==null&&(wn(a,t,s),e1(a,r,s)))}function Jg(t,r,a){var s=Ln();Va(t,r,a,s)}function Va(t,r,a,s){var p={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ks(t))Wg(r,p);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var S=r.lastRenderedState,O=g(S,a);if(p.hasEagerState=!0,p.eagerState=O,Nn(O,S))return ls(t,r,p,0),lt===null&&is(),!1}catch{}finally{}if(a=qc(t,r,p,s),a!==null)return wn(a,t,s),e1(a,r,s),!0}return!1}function Df(t,r,a,s){if(s={lane:2,revertLane:ad(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ks(t)){if(r)throw Error(l(479))}else r=qc(t,a,s,2),r!==null&&wn(r,t,2)}function ks(t){var r=t.alternate;return t===Oe||r!==null&&r===Oe}function Wg(t,r){jl=vs=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function e1(t,r,a){if((a&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,a|=s,r.lanes=a,ut(t,a)}}var Pa={readContext:Jt,use:Ss,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};Pa.useEffectEvent=kt;var t1={readContext:Jt,use:Ss,useCallback:function(t,r){return fn().memoizedState=[t,r===void 0?null:r],t},useContext:Jt,useEffect:Hg,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,Cs(4194308,4,Pg.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Cs(4194308,4,t,r)},useInsertionEffect:function(t,r){Cs(4,2,t,r)},useMemo:function(t,r){var a=fn();r=r===void 0?null:r;var s=t();if(Gi){Mt(!0);try{t()}finally{Mt(!1)}}return a.memoizedState=[s,r],s},useReducer:function(t,r,a){var s=fn();if(a!==void 0){var p=a(r);if(Gi){Mt(!0);try{a(r)}finally{Mt(!1)}}}else p=r;return s.memoizedState=s.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},s.queue=t,t=t.dispatch=F3.bind(null,Oe,t),[s.memoizedState,t]},useRef:function(t){var r=fn();return t={current:t},r.memoizedState=t},useState:function(t){t=Sf(t);var r=t.queue,a=Jg.bind(null,Oe,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:Ef,useDeferredValue:function(t,r){var a=fn();return kf(a,t,r)},useTransition:function(){var t=Sf(!1);return t=$g.bind(null,Oe,t.queue,!0,!1),fn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var s=Oe,p=fn();if(Ie){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),lt===null)throw Error(l(349));(Be&127)!==0||wg(s,r,a)}p.memoizedState=a;var g={value:a,getSnapshot:r};return p.queue=g,Hg(Eg.bind(null,s,g,t),[t]),s.flags|=2048,Ll(9,{destroy:void 0},Cg.bind(null,s,g,a,r),null),a},useId:function(){var t=fn(),r=lt.identifierPrefix;if(Ie){var a=mr,s=hr;a=(s&~(1<<32-qe(s)-1)).toString(32)+a,r="_"+r+"R_"+a,a=ys++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=z3++,r="_"+r+"r_"+a.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Af,useFormState:jg,useActionState:jg,useOptimistic:function(t){var r=fn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Df.bind(null,Oe,!0,a),a.dispatch=r,[t,r]},useMemoCache:vf,useCacheRefresh:function(){return fn().memoizedState=P3.bind(null,Oe)},useEffectEvent:function(t){var r=fn(),a={impl:t};return r.memoizedState=a,function(){if((Ze&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},Nf={readContext:Jt,use:Ss,useCallback:qg,useContext:Jt,useEffect:Cf,useImperativeHandle:Fg,useInsertionEffect:Ig,useLayoutEffect:Vg,useMemo:Yg,useReducer:ws,useRef:Bg,useState:function(){return ws(Lr)},useDebugValue:Ef,useDeferredValue:function(t,r){var a=Rt();return Xg(a,et.memoizedState,t,r)},useTransition:function(){var t=ws(Lr)[0],r=Rt().memoizedState;return[typeof t=="boolean"?t:Ia(t),r]},useSyncExternalStore:Sg,useId:Qg,useHostTransitionStatus:Af,useFormState:_g,useActionState:_g,useOptimistic:function(t,r){var a=Rt();return Ag(a,et,t,r)},useMemoCache:vf,useCacheRefresh:Kg};Nf.useEffectEvent=Ug;var n1={readContext:Jt,use:Ss,useCallback:qg,useContext:Jt,useEffect:Cf,useImperativeHandle:Fg,useInsertionEffect:Ig,useLayoutEffect:Vg,useMemo:Yg,useReducer:xf,useRef:Bg,useState:function(){return xf(Lr)},useDebugValue:Ef,useDeferredValue:function(t,r){var a=Rt();return et===null?kf(a,t,r):Xg(a,et.memoizedState,t,r)},useTransition:function(){var t=xf(Lr)[0],r=Rt().memoizedState;return[typeof t=="boolean"?t:Ia(t),r]},useSyncExternalStore:Sg,useId:Qg,useHostTransitionStatus:Af,useFormState:zg,useActionState:zg,useOptimistic:function(t,r){var a=Rt();return et!==null?Ag(a,et,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:vf,useCacheRefresh:Kg};n1.useEffectEvent=Ug;function Rf(t,r,a,s){r=t.memoizedState,a=a(s,r),a=a==null?r:m({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Of={enqueueSetState:function(t,r,a){t=t._reactInternals;var s=Ln(),p=ai(s);p.payload=r,a!=null&&(p.callback=a),r=oi(t,p,s),r!==null&&(wn(r,t,s),za(r,t,s))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var s=Ln(),p=ai(s);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=oi(t,p,s),r!==null&&(wn(r,t,s),za(r,t,s))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=Ln(),s=ai(a);s.tag=2,r!=null&&(s.callback=r),r=oi(t,s,a),r!==null&&(wn(r,t,a),za(r,t,a))}};function r1(t,r,a,s,p,g,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,g,S):r.prototype&&r.prototype.isPureReactComponent?!Da(a,s)||!Da(p,g):!0}function i1(t,r,a,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,s),r.state!==t&&Of.enqueueReplaceState(r,r.state,null)}function Qi(t,r){var a=r;if("ref"in r){a={};for(var s in r)s!=="ref"&&(a[s]=r[s])}if(t=t.defaultProps){a===r&&(a=m({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}function l1(t){rs(t)}function a1(t){console.error(t)}function o1(t){rs(t)}function Ts(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function s1(t,r,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Mf(t,r,a){return a=ai(a),a.tag=3,a.payload={element:null},a.callback=function(){Ts(t,r)},a}function u1(t){return t=ai(t),t.tag=3,t}function c1(t,r,a,s){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var g=s.value;t.payload=function(){return p(g)},t.callback=function(){s1(r,a,s)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){s1(r,a,s),typeof p!="function"&&(hi===null?hi=new Set([this]):hi.add(this));var O=s.stack;this.componentDidCatch(s.value,{componentStack:O!==null?O:""})})}function q3(t,r,a,s,p){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=a.alternate,r!==null&&Al(r,a,p,!0),a=On.current,a!==null){switch(a.tag){case 31:case 13:return Zn===null?Hs():a.alternate===null&&Tt===0&&(Tt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,s===hs?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([s]):r.add(s),rd(t,s,p)),!1;case 22:return a.flags|=65536,s===hs?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([s]):a.add(s)),rd(t,s,p)),!1}throw Error(l(435,a.tag))}return rd(t,s,p),Hs(),!1}if(Ie)return r=On.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,s!==Qc&&(t=Error(l(422),{cause:s}),Oa(qn(t,a)))):(s!==Qc&&(r=Error(l(423),{cause:s}),Oa(qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,s=qn(s,a),p=Mf(t.stateNode,s,p),sf(t,p),Tt!==4&&(Tt=2)),!1;var g=Error(l(520),{cause:s});if(g=qn(g,a),Qa===null?Qa=[g]:Qa.push(g),Tt!==4&&(Tt=2),r===null)return!0;s=qn(s,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,t=p&-p,a.lanes|=t,t=Mf(a.stateNode,s,t),sf(a,t),!1;case 1:if(r=a.type,g=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(hi===null||!hi.has(g))))return a.flags|=65536,p&=-p,a.lanes|=p,p=u1(p),c1(p,t,a,s),sf(a,p),!1}a=a.return}while(a!==null);return!1}var jf=Error(l(461)),zt=!1;function Wt(t,r,a,s){r.child=t===null?mg(r,null,a,s):Zi(r,t.child,a,s)}function f1(t,r,a,s,p){a=a.render;var g=r.ref;if("ref"in s){var S={};for(var O in s)O!=="ref"&&(S[O]=s[O])}else S=s;return qi(r),s=mf(t,r,a,S,g,p),O=pf(),t!==null&&!zt?(gf(t,r,p),zr(t,r,p)):(Ie&&O&&Zc(r),r.flags|=1,Wt(t,r,s,p),r.child)}function d1(t,r,a,s,p){if(t===null){var g=a.type;return typeof g=="function"&&!Yc(g)&&g.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=g,h1(t,r,g,s,p)):(t=os(a.type,null,s,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!Vf(t,p)){var S=g.memoizedProps;if(a=a.compare,a=a!==null?a:Da,a(S,s)&&t.ref===r.ref)return zr(t,r,p)}return r.flags|=1,t=Rr(g,s),t.ref=r.ref,t.return=r,r.child=t}function h1(t,r,a,s,p){if(t!==null){var g=t.memoizedProps;if(Da(g,s)&&t.ref===r.ref)if(zt=!1,r.pendingProps=s=g,Vf(t,p))(t.flags&131072)!==0&&(zt=!0);else return r.lanes=t.lanes,zr(t,r,p)}return _f(t,r,a,s,p)}function m1(t,r,a,s){var p=s.children,g=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((r.flags&128)!==0){if(g=g!==null?g.baseLanes|a:a,t!==null){for(s=r.child=t.child,p=0;s!==null;)p=p|s.lanes|s.childLanes,s=s.sibling;s=p&~g}else s=0,r.child=null;return p1(t,r,g,a,s)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&fs(r,g!==null?g.cachePool:null),g!==null?bg(r,g):cf(),vg(r);else return s=r.lanes=536870912,p1(t,r,g!==null?g.baseLanes|a:a,a,s)}else g!==null?(fs(r,g.cachePool),bg(r,g),ui(),r.memoizedState=null):(t!==null&&fs(r,null),cf(),ui());return Wt(t,r,p,a),r.child}function Fa(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function p1(t,r,a,s,p){var g=rf();return g=g===null?null:{parent:_t._currentValue,pool:g},r.memoizedState={baseLanes:a,cachePool:g},t!==null&&fs(r,null),cf(),vg(r),t!==null&&Al(t,r,s,!0),r.childLanes=p,null}function As(t,r){return r=Ns({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function g1(t,r,a){return Zi(r,t.child,null,a),t=As(r,r.pendingProps),t.flags|=2,Mn(r),r.memoizedState=null,t}function Y3(t,r,a){var s=r.pendingProps,p=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(Ie){if(s.mode==="hidden")return t=As(r,s),r.lanes=536870912,Fa(null,t);if(df(r),(t=ht)?(t=D0(t,$n),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ti!==null?{id:hr,overflow:mr}:null,retryLane:536870912,hydrationErrors:null},a=Wp(t),a.return=r,r.child=a,Kt=r,ht=null)):t=null,t===null)throw ri(r);return r.lanes=536870912,null}return As(r,s)}var g=t.memoizedState;if(g!==null){var S=g.dehydrated;if(df(r),p)if(r.flags&256)r.flags&=-257,r=g1(t,r,a);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(l(558));else if(zt||Al(t,r,a,!1),p=(a&t.childLanes)!==0,zt||p){if(s=lt,s!==null&&(S=St(s,a),S!==0&&S!==g.retryLane))throw g.retryLane=S,Ii(t,S),wn(s,t,S),jf;Hs(),r=g1(t,r,a)}else t=g.treeContext,ht=Gn(S.nextSibling),Kt=r,Ie=!0,ni=null,$n=!1,t!==null&&ng(r,t),r=As(r,s),r.flags|=4096;return r}return t=Rr(t.child,{mode:s.mode,children:s.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Ds(t,r){var a=r.ref;if(a===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(t===null||t.ref!==a)&&(r.flags|=4194816)}}function _f(t,r,a,s,p){return qi(r),a=mf(t,r,a,s,void 0,p),s=pf(),t!==null&&!zt?(gf(t,r,p),zr(t,r,p)):(Ie&&s&&Zc(r),r.flags|=1,Wt(t,r,a,p),r.child)}function b1(t,r,a,s,p,g){return qi(r),r.updateQueue=null,a=xg(r,s,a,p),yg(t),s=pf(),t!==null&&!zt?(gf(t,r,g),zr(t,r,g)):(Ie&&s&&Zc(r),r.flags|=1,Wt(t,r,a,g),r.child)}function v1(t,r,a,s,p){if(qi(r),r.stateNode===null){var g=Cl,S=a.contextType;typeof S=="object"&&S!==null&&(g=Jt(S)),g=new a(s,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Of,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=s,g.state=r.memoizedState,g.refs={},af(r),S=a.contextType,g.context=typeof S=="object"&&S!==null?Jt(S):Cl,g.state=r.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Rf(r,a,S,s),g.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&Of.enqueueReplaceState(g,g.state,null),Ha(r,s,g,p),Ba(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(t===null){g=r.stateNode;var O=r.memoizedProps,V=Qi(a,O);g.props=V;var K=g.context,ne=a.contextType;S=Cl,typeof ne=="object"&&ne!==null&&(S=Jt(ne));var oe=a.getDerivedStateFromProps;ne=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function",O=r.pendingProps!==O,ne||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O||K!==S)&&i1(r,g,s,S),li=!1;var W=r.memoizedState;g.state=W,Ha(r,s,g,p),Ba(),K=r.memoizedState,O||W!==K||li?(typeof oe=="function"&&(Rf(r,a,oe,s),K=r.memoizedState),(V=li||r1(r,a,V,s,W,K,S))?(ne||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=K),g.props=s,g.state=K,g.context=S,s=V):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{g=r.stateNode,of(t,r),S=r.memoizedProps,ne=Qi(a,S),g.props=ne,oe=r.pendingProps,W=g.context,K=a.contextType,V=Cl,typeof K=="object"&&K!==null&&(V=Jt(K)),O=a.getDerivedStateFromProps,(K=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==oe||W!==V)&&i1(r,g,s,V),li=!1,W=r.memoizedState,g.state=W,Ha(r,s,g,p),Ba();var ee=r.memoizedState;S!==oe||W!==ee||li||t!==null&&t.dependencies!==null&&us(t.dependencies)?(typeof O=="function"&&(Rf(r,a,O,s),ee=r.memoizedState),(ne=li||r1(r,a,ne,s,W,ee,V)||t!==null&&t.dependencies!==null&&us(t.dependencies))?(K||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,ee,V),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,ee,V)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=ee),g.props=s,g.state=ee,g.context=V,s=ne):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),s=!1)}return g=s,Ds(t,r),s=(r.flags&128)!==0,g||s?(g=r.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&s?(r.child=Zi(r,t.child,null,p),r.child=Zi(r,null,a,p)):Wt(t,r,a,p),r.memoizedState=g.state,t=r.child):t=zr(t,r,p),t}function y1(t,r,a,s){return Pi(),r.flags|=256,Wt(t,r,a,s),r.child}var Lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zf(t){return{baseLanes:t,cachePool:sg()}}function Bf(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=_n),t}function x1(t,r,a){var s=r.pendingProps,p=!1,g=(r.flags&128)!==0,S;if((S=g)||(S=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),S&&(p=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ie){if(p?si(r):ui(),(t=ht)?(t=D0(t,$n),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ti!==null?{id:hr,overflow:mr}:null,retryLane:536870912,hydrationErrors:null},a=Wp(t),a.return=r,r.child=a,Kt=r,ht=null)):t=null,t===null)throw ri(r);return yd(t)?r.lanes=32:r.lanes=536870912,null}var O=s.children;return s=s.fallback,p?(ui(),p=r.mode,O=Ns({mode:"hidden",children:O},p),s=Vi(s,p,a,null),O.return=r,s.return=r,O.sibling=s,r.child=O,s=r.child,s.memoizedState=zf(a),s.childLanes=Bf(t,S,a),r.memoizedState=Lf,Fa(null,s)):(si(r),Hf(r,O))}var V=t.memoizedState;if(V!==null&&(O=V.dehydrated,O!==null)){if(g)r.flags&256?(si(r),r.flags&=-257,r=Uf(t,r,a)):r.memoizedState!==null?(ui(),r.child=t.child,r.flags|=128,r=null):(ui(),O=s.fallback,p=r.mode,s=Ns({mode:"visible",children:s.children},p),O=Vi(O,p,a,null),O.flags|=2,s.return=r,O.return=r,s.sibling=O,r.child=s,Zi(r,t.child,null,a),s=r.child,s.memoizedState=zf(a),s.childLanes=Bf(t,S,a),r.memoizedState=Lf,r=Fa(null,s));else if(si(r),yd(O)){if(S=O.nextSibling&&O.nextSibling.dataset,S)var K=S.dgst;S=K,s=Error(l(419)),s.stack="",s.digest=S,Oa({value:s,source:null,stack:null}),r=Uf(t,r,a)}else if(zt||Al(t,r,a,!1),S=(a&t.childLanes)!==0,zt||S){if(S=lt,S!==null&&(s=St(S,a),s!==0&&s!==V.retryLane))throw V.retryLane=s,Ii(t,s),wn(S,t,s),jf;vd(O)||Hs(),r=Uf(t,r,a)}else vd(O)?(r.flags|=192,r.child=t.child,r=null):(t=V.treeContext,ht=Gn(O.nextSibling),Kt=r,Ie=!0,ni=null,$n=!1,t!==null&&ng(r,t),r=Hf(r,s.children),r.flags|=4096);return r}return p?(ui(),O=s.fallback,p=r.mode,V=t.child,K=V.sibling,s=Rr(V,{mode:"hidden",children:s.children}),s.subtreeFlags=V.subtreeFlags&65011712,K!==null?O=Rr(K,O):(O=Vi(O,p,a,null),O.flags|=2),O.return=r,s.return=r,s.sibling=O,r.child=s,Fa(null,s),s=r.child,O=t.child.memoizedState,O===null?O=zf(a):(p=O.cachePool,p!==null?(V=_t._currentValue,p=p.parent!==V?{parent:V,pool:V}:p):p=sg(),O={baseLanes:O.baseLanes|a,cachePool:p}),s.memoizedState=O,s.childLanes=Bf(t,S,a),r.memoizedState=Lf,Fa(t.child,s)):(si(r),a=t.child,t=a.sibling,a=Rr(a,{mode:"visible",children:s.children}),a.return=r,a.sibling=null,t!==null&&(S=r.deletions,S===null?(r.deletions=[t],r.flags|=16):S.push(t)),r.child=a,r.memoizedState=null,a)}function Hf(t,r){return r=Ns({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Ns(t,r){return t=Rn(22,t,null,r),t.lanes=0,t}function Uf(t,r,a){return Zi(r,t.child,null,a),t=Hf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function S1(t,r,a){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Wc(t.return,r,a)}function If(t,r,a,s,p,g){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:p,treeForkCount:g}:(S.isBackwards=r,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=a,S.tailMode=p,S.treeForkCount=g)}function w1(t,r,a){var s=r.pendingProps,p=s.revealOrder,g=s.tail;s=s.children;var S=Nt.current,O=(S&2)!==0;if(O?(S=S&1|2,r.flags|=128):S&=1,j(Nt,S),Wt(t,r,s,a),s=Ie?Ra:0,!O&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&S1(t,a,r);else if(t.tag===19)S1(t,a,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&bs(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),If(r,!1,p,a,g,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&bs(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}If(r,!0,a,null,g,s);break;case"together":If(r,!1,null,null,void 0,s);break;default:r.memoizedState=null}return r.child}function zr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),di|=r.lanes,(a&r.childLanes)===0)if(t!==null){if(Al(t,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(l(153));if(r.child!==null){for(t=r.child,a=Rr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Rr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function Vf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&us(t)))}function X3(t,r,a){switch(r.tag){case 3:me(r,r.stateNode.containerInfo),ii(r,_t,t.memoizedState.cache),Pi();break;case 27:case 5:be(r);break;case 4:me(r,r.stateNode.containerInfo);break;case 10:ii(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,df(r),null;break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(si(r),r.flags|=128,null):(a&r.child.childLanes)!==0?x1(t,r,a):(si(r),t=zr(t,r,a),t!==null?t.sibling:null);si(r);break;case 19:var p=(t.flags&128)!==0;if(s=(a&r.childLanes)!==0,s||(Al(t,r,a,!1),s=(a&r.childLanes)!==0),p){if(s)return w1(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),j(Nt,Nt.current),s)break;return null;case 22:return r.lanes=0,m1(t,r,a,r.pendingProps);case 24:ii(r,_t,t.memoizedState.cache)}return zr(t,r,a)}function C1(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)zt=!0;else{if(!Vf(t,a)&&(r.flags&128)===0)return zt=!1,X3(t,r,a);zt=(t.flags&131072)!==0}else zt=!1,Ie&&(r.flags&1048576)!==0&&tg(r,Ra,r.index);switch(r.lanes=0,r.tag){case 16:e:{var s=r.pendingProps;if(t=Xi(r.elementType),r.type=t,typeof t=="function")Yc(t)?(s=Qi(t,s),r.tag=1,r=v1(null,r,t,s,a)):(r.tag=0,r=_f(null,r,t,s,a));else{if(t!=null){var p=t.$$typeof;if(p===R){r.tag=11,r=f1(null,r,t,s,a);break e}else if(p===M){r.tag=14,r=d1(null,r,t,s,a);break e}}throw r=q(t)||t,Error(l(306,r,""))}}return r;case 0:return _f(t,r,r.type,r.pendingProps,a);case 1:return s=r.type,p=Qi(s,r.pendingProps),v1(t,r,s,p,a);case 3:e:{if(me(r,r.stateNode.containerInfo),t===null)throw Error(l(387));s=r.pendingProps;var g=r.memoizedState;p=g.element,of(t,r),Ha(r,s,null,a);var S=r.memoizedState;if(s=S.cache,ii(r,_t,s),s!==g.cache&&ef(r,[_t],a,!0),Ba(),s=S.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=y1(t,r,s,a);break e}else if(s!==p){p=qn(Error(l(424)),r),Oa(p),r=y1(t,r,s,a);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(ht=Gn(t.firstChild),Kt=r,Ie=!0,ni=null,$n=!0,a=mg(r,null,s,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pi(),s===p){r=zr(t,r,a);break e}Wt(t,r,s,a)}r=r.child}return r;case 26:return Ds(t,r),t===null?(a=_0(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ie||(a=r.type,t=r.pendingProps,s=Ys(ue.current).createElement(a),s[Qt]=r,s[gn]=t,en(s,a,t),qt(s),r.stateNode=s):r.memoizedState=_0(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return be(r),t===null&&Ie&&(s=r.stateNode=O0(r.type,r.pendingProps,ue.current),Kt=r,$n=!0,p=ht,bi(r.type)?(xd=p,ht=Gn(s.firstChild)):ht=p),Wt(t,r,r.pendingProps.children,a),Ds(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ie&&((p=s=ht)&&(s=wS(s,r.type,r.pendingProps,$n),s!==null?(r.stateNode=s,Kt=r,ht=Gn(s.firstChild),$n=!1,p=!0):p=!1),p||ri(r)),be(r),p=r.type,g=r.pendingProps,S=t!==null?t.memoizedProps:null,s=g.children,pd(p,g)?s=null:S!==null&&pd(p,S)&&(r.flags|=32),r.memoizedState!==null&&(p=mf(t,r,B3,null,null,a),io._currentValue=p),Ds(t,r),Wt(t,r,s,a),r.child;case 6:return t===null&&Ie&&((t=a=ht)&&(a=CS(a,r.pendingProps,$n),a!==null?(r.stateNode=a,Kt=r,ht=null,t=!0):t=!1),t||ri(r)),null;case 13:return x1(t,r,a);case 4:return me(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Zi(r,null,s,a):Wt(t,r,s,a),r.child;case 11:return f1(t,r,r.type,r.pendingProps,a);case 7:return Wt(t,r,r.pendingProps,a),r.child;case 8:return Wt(t,r,r.pendingProps.children,a),r.child;case 12:return Wt(t,r,r.pendingProps.children,a),r.child;case 10:return s=r.pendingProps,ii(r,r.type,s.value),Wt(t,r,s.children,a),r.child;case 9:return p=r.type._context,s=r.pendingProps.children,qi(r),p=Jt(p),s=s(p),r.flags|=1,Wt(t,r,s,a),r.child;case 14:return d1(t,r,r.type,r.pendingProps,a);case 15:return h1(t,r,r.type,r.pendingProps,a);case 19:return w1(t,r,a);case 31:return Y3(t,r,a);case 22:return m1(t,r,a,r.pendingProps);case 24:return qi(r),s=Jt(_t),t===null?(p=rf(),p===null&&(p=lt,g=tf(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=a),p=g),r.memoizedState={parent:s,cache:p},af(r),ii(r,_t,p)):((t.lanes&a)!==0&&(of(t,r),Ha(r,null,null,a),Ba()),p=t.memoizedState,g=r.memoizedState,p.parent!==s?(p={parent:s,cache:s},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),ii(r,_t,s)):(s=g.cache,ii(r,_t,s),s!==p.cache&&ef(r,[_t],a,!0))),Wt(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Br(t){t.flags|=4}function Pf(t,r,a,s,p){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(Q1())t.flags|=8192;else throw $i=hs,lf}else t.flags&=-16777217}function E1(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!U0(r))if(Q1())t.flags|=8192;else throw $i=hs,lf}function Rs(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Ue():536870912,t.lanes|=r,Ul|=r)}function qa(t,r){if(!Ie)switch(t.tailMode){case"hidden":r=t.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.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?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function mt(t){var r=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(r)for(var p=t.child;p!==null;)a|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)a|=p.lanes|p.childLanes,s|=p.subtreeFlags,s|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=s,t.childLanes=a,r}function $3(t,r,a){var s=r.pendingProps;switch(Gc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(r),null;case 1:return mt(r),null;case 3:return a=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),jr(_t),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Tl(r)?Br(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Kc())),mt(r),null;case 26:var p=r.type,g=r.memoizedState;return t===null?(Br(r),g!==null?(mt(r),E1(r,g)):(mt(r),Pf(r,p,null,s,a))):g?g!==t.memoizedState?(Br(r),mt(r),E1(r,g)):(mt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==s&&Br(r),mt(r),Pf(r,p,t,s,a)),null;case 27:if(Te(r),a=ue.current,p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Br(r);else{if(!s){if(r.stateNode===null)throw Error(l(166));return mt(r),null}t=ie.current,Tl(r)?rg(r):(t=O0(p,s,a),r.stateNode=t,Br(r))}return mt(r),null;case 5:if(Te(r),p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Br(r);else{if(!s){if(r.stateNode===null)throw Error(l(166));return mt(r),null}if(g=ie.current,Tl(r))rg(r);else{var S=Ys(ue.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?S.createElement(p,{is:s.is}):S.createElement(p)}}g[Qt]=r,g[gn]=s;e:for(S=r.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===r)break e;for(;S.sibling===null;){if(S.return===null||S.return===r)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}r.stateNode=g;e:switch(en(g,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Br(r)}}return mt(r),Pf(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,a),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&Br(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(l(166));if(t=ue.current,Tl(r)){if(t=r.stateNode,a=r.memoizedProps,s=null,p=Kt,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}t[Qt]=r,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||x0(t.nodeValue,a)),t||ri(r,!0)}else t=Ys(t).createTextNode(s),t[Qt]=r,r.stateNode=t}return mt(r),null;case 31:if(a=r.memoizedState,t===null||t.memoizedState!==null){if(s=Tl(r),a!==null){if(t===null){if(!s)throw Error(l(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[Qt]=r}else Pi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;mt(r),t=!1}else a=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return r.flags&256?(Mn(r),r):(Mn(r),null);if((r.flags&128)!==0)throw Error(l(558))}return mt(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Tl(r),s!==null&&s.dehydrated!==null){if(t===null){if(!p)throw Error(l(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(l(317));p[Qt]=r}else Pi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;mt(r),p=!1}else p=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(Mn(r),r):(Mn(r),null)}return Mn(r),(r.flags&128)!==0?(r.lanes=a,r):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=r.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==p&&(s.flags|=2048)),a!==t&&a&&(r.child.flags|=8192),Rs(r,r.updateQueue),mt(r),null);case 4:return he(),t===null&&cd(r.stateNode.containerInfo),mt(r),null;case 10:return jr(r.type),mt(r),null;case 19:if(G(Nt),s=r.memoizedState,s===null)return mt(r),null;if(p=(r.flags&128)!==0,g=s.rendering,g===null)if(p)qa(s,!1);else{if(Tt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=bs(t),g!==null){for(r.flags|=128,qa(s,!1),t=g.updateQueue,r.updateQueue=t,Rs(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)Jp(a,t),a=a.sibling;return j(Nt,Nt.current&1|2),Ie&&Or(r,s.treeForkCount),r.child}t=t.sibling}s.tail!==null&&ct()>Ls&&(r.flags|=128,p=!0,qa(s,!1),r.lanes=4194304)}else{if(!p)if(t=bs(g),t!==null){if(r.flags|=128,p=!0,t=t.updateQueue,r.updateQueue=t,Rs(r,t),qa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!Ie)return mt(r),null}else 2*ct()-s.renderingStartTime>Ls&&a!==536870912&&(r.flags|=128,p=!0,qa(s,!1),r.lanes=4194304);s.isBackwards?(g.sibling=r.child,r.child=g):(t=s.last,t!==null?t.sibling=g:r.child=g,s.last=g)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ct(),t.sibling=null,a=Nt.current,j(Nt,p?a&1|2:a&1),Ie&&Or(r,s.treeForkCount),t):(mt(r),null);case 22:case 23:return Mn(r),ff(),s=r.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(a&536870912)!==0&&(r.flags&128)===0&&(mt(r),r.subtreeFlags&6&&(r.flags|=8192)):mt(r),a=r.updateQueue,a!==null&&Rs(r,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==a&&(r.flags|=2048),t!==null&&G(Yi),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),jr(_t),mt(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function Z3(t,r){switch(Gc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return jr(_t),he(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Te(r),null;case 31:if(r.memoizedState!==null){if(Mn(r),r.alternate===null)throw Error(l(340));Pi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(Mn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Pi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return G(Nt),null;case 4:return he(),null;case 10:return jr(r.type),null;case 22:case 23:return Mn(r),ff(),t!==null&&G(Yi),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return jr(_t),null;case 25:return null;default:return null}}function k1(t,r){switch(Gc(r),r.tag){case 3:jr(_t),he();break;case 26:case 27:case 5:Te(r);break;case 4:he();break;case 31:r.memoizedState!==null&&Mn(r);break;case 13:Mn(r);break;case 19:G(Nt);break;case 10:jr(r.type);break;case 22:case 23:Mn(r),ff(),t!==null&&G(Yi);break;case 24:jr(_t)}}function Ya(t,r){try{var a=r.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var p=s.next;a=p;do{if((a.tag&t)===t){s=void 0;var g=a.create,S=a.inst;s=g(),S.destroy=s}a=a.next}while(a!==p)}}catch(O){We(r,r.return,O)}}function ci(t,r,a){try{var s=r.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var g=p.next;s=g;do{if((s.tag&t)===t){var S=s.inst,O=S.destroy;if(O!==void 0){S.destroy=void 0,p=r;var V=a,K=O;try{K()}catch(ne){We(p,V,ne)}}}s=s.next}while(s!==g)}}catch(ne){We(r,r.return,ne)}}function T1(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{gg(r,a)}catch(s){We(t,t.return,s)}}}function A1(t,r,a){a.props=Qi(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){We(t,r,s)}}function Xa(t,r){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(p){We(t,r,p)}}function pr(t,r){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(p){We(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){We(t,r,p)}else a.current=null}function D1(t){var r=t.type,a=t.memoizedProps,s=t.stateNode;try{e:switch(r){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(p){We(t,t.return,p)}}function Ff(t,r,a){try{var s=t.stateNode;gS(s,t.type,a,r),s[gn]=r}catch(p){We(t,t.return,p)}}function N1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&bi(t.type)||t.tag===4}function qf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||N1(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&&bi(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 Yf(t,r,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(t),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Dr));else if(s!==4&&(s===27&&bi(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(Yf(t,r,a),t=t.sibling;t!==null;)Yf(t,r,a),t=t.sibling}function Os(t,r,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(s!==4&&(s===27&&bi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Os(t,r,a),t=t.sibling;t!==null;)Os(t,r,a),t=t.sibling}function R1(t){var r=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);en(r,s,a),r[Qt]=t,r[gn]=a}catch(g){We(t,t.return,g)}}var Hr=!1,Bt=!1,Xf=!1,O1=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function G3(t,r){if(t=t.containerInfo,hd=Js,t=Fp(t),Hc(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 p=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var S=0,O=-1,V=-1,K=0,ne=0,oe=t,W=null;t:for(;;){for(var ee;oe!==a||p!==0&&oe.nodeType!==3||(O=S+p),oe!==g||s!==0&&oe.nodeType!==3||(V=S+s),oe.nodeType===3&&(S+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)W=oe,oe=ee;for(;;){if(oe===t)break t;if(W===a&&++K===p&&(O=S),W===g&&++ne===s&&(V=S),(ee=oe.nextSibling)!==null)break;oe=W,W=oe.parentNode}oe=ee}a=O===-1||V===-1?null:{start:O,end:V}}else a=null}a=a||{start:0,end:0}}else a=null;for(md={focusedElem:t,selectionRange:a},Js=!1,Yt=r;Yt!==null;)if(r=Yt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Yt=t;else for(;Yt!==null;){switch(r=Yt,g=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)p=t[a],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,a=r,p=g.memoizedProps,g=g.memoizedState,s=a.stateNode;try{var ge=Qi(a.type,p);t=s.getSnapshotBeforeUpdate(ge,g),s.__reactInternalSnapshotBeforeUpdate=t}catch(ke){We(a,a.return,ke)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)bd(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bd(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(l(163))}if(t=r.sibling,t!==null){t.return=r.return,Yt=t;break}Yt=r.return}}function M1(t,r,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Ir(t,a),s&4&&Ya(5,a);break;case 1:if(Ir(t,a),s&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(S){We(a,a.return,S)}else{var p=Qi(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(S){We(a,a.return,S)}}s&64&&T1(a),s&512&&Xa(a,a.return);break;case 3:if(Ir(t,a),s&64&&(t=a.updateQueue,t!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{gg(t,r)}catch(S){We(a,a.return,S)}}break;case 27:r===null&&s&4&&R1(a);case 26:case 5:Ir(t,a),r===null&&s&4&&D1(a),s&512&&Xa(a,a.return);break;case 12:Ir(t,a);break;case 31:Ir(t,a),s&4&&L1(t,a);break;case 13:Ir(t,a),s&4&&z1(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=iS.bind(null,a),ES(t,a))));break;case 22:if(s=a.memoizedState!==null||Hr,!s){r=r!==null&&r.memoizedState!==null||Bt,p=Hr;var g=Bt;Hr=s,(Bt=r)&&!g?Vr(t,a,(a.subtreeFlags&8772)!==0):Ir(t,a),Hr=p,Bt=g}break;case 30:break;default:Ir(t,a)}}function j1(t){var r=t.alternate;r!==null&&(t.alternate=null,j1(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Sc(r)),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,vn=!1;function Ur(t,r,a){for(a=a.child;a!==null;)_1(t,r,a),a=a.sibling}function _1(t,r,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(gt,a)}catch{}switch(a.tag){case 26:Bt||pr(a,r),Ur(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Bt||pr(a,r);var s=vt,p=vn;bi(a.type)&&(vt=a.stateNode,vn=!1),Ur(t,r,a),to(a.stateNode),vt=s,vn=p;break;case 5:Bt||pr(a,r);case 6:if(s=vt,p=vn,vt=null,Ur(t,r,a),vt=s,vn=p,vt!==null)if(vn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(a.stateNode)}catch(g){We(a,r,g)}else try{vt.removeChild(a.stateNode)}catch(g){We(a,r,g)}break;case 18:vt!==null&&(vn?(t=vt,T0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),$l(t)):T0(vt,a.stateNode));break;case 4:s=vt,p=vn,vt=a.stateNode.containerInfo,vn=!0,Ur(t,r,a),vt=s,vn=p;break;case 0:case 11:case 14:case 15:ci(2,a,r),Bt||ci(4,a,r),Ur(t,r,a);break;case 1:Bt||(pr(a,r),s=a.stateNode,typeof s.componentWillUnmount=="function"&&A1(a,r,s)),Ur(t,r,a);break;case 21:Ur(t,r,a);break;case 22:Bt=(s=Bt)||a.memoizedState!==null,Ur(t,r,a),Bt=s;break;default:Ur(t,r,a)}}function L1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{$l(t)}catch(a){We(r,r.return,a)}}}function z1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{$l(t)}catch(a){We(r,r.return,a)}}function Q3(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new O1),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new O1),r;default:throw Error(l(435,t.tag))}}function Ms(t,r){var a=Q3(t);r.forEach(function(s){if(!a.has(s)){a.add(s);var p=lS.bind(null,t,s);s.then(p,p)}})}function yn(t,r){var a=r.deletions;if(a!==null)for(var s=0;s<a.length;s++){var p=a[s],g=t,S=r,O=S;e:for(;O!==null;){switch(O.tag){case 27:if(bi(O.type)){vt=O.stateNode,vn=!1;break e}break;case 5:vt=O.stateNode,vn=!1;break e;case 3:case 4:vt=O.stateNode.containerInfo,vn=!0;break e}O=O.return}if(vt===null)throw Error(l(160));_1(g,S,p),vt=null,vn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)B1(r,t),r=r.sibling}var nr=null;function B1(t,r){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:yn(r,t),xn(t),s&4&&(ci(3,t,t.return),Ya(3,t),ci(5,t,t.return));break;case 1:yn(r,t),xn(t),s&512&&(Bt||a===null||pr(a,a.return)),s&64&&Hr&&(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 p=nr;if(yn(r,t),xn(t),s&512&&(Bt||a===null||pr(a,a.return)),s&4){var g=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,p=p.ownerDocument||p;t:switch(s){case"title":g=p.getElementsByTagName("title")[0],(!g||g[ya]||g[Qt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(s),p.head.insertBefore(g,p.querySelector("head > title"))),en(g,s,a),g[Qt]=t,qt(g),s=g;break e;case"link":var S=B0("link","href",p).get(s+(a.href||""));if(S){for(var O=0;O<S.length;O++)if(g=S[O],g.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&g.getAttribute("rel")===(a.rel==null?null:a.rel)&&g.getAttribute("title")===(a.title==null?null:a.title)&&g.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(O,1);break t}}g=p.createElement(s),en(g,s,a),p.head.appendChild(g);break;case"meta":if(S=B0("meta","content",p).get(s+(a.content||""))){for(O=0;O<S.length;O++)if(g=S[O],g.getAttribute("content")===(a.content==null?null:""+a.content)&&g.getAttribute("name")===(a.name==null?null:a.name)&&g.getAttribute("property")===(a.property==null?null:a.property)&&g.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&g.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(O,1);break t}}g=p.createElement(s),en(g,s,a),p.head.appendChild(g);break;default:throw Error(l(468,s))}g[Qt]=t,qt(g),s=g}t.stateNode=s}else H0(p,t.type,t.stateNode);else t.stateNode=z0(p,s,t.memoizedProps);else g!==s?(g===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):g.count--,s===null?H0(p,t.type,t.stateNode):z0(p,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Ff(t,t.memoizedProps,a.memoizedProps)}break;case 27:yn(r,t),xn(t),s&512&&(Bt||a===null||pr(a,a.return)),a!==null&&s&4&&Ff(t,t.memoizedProps,a.memoizedProps);break;case 5:if(yn(r,t),xn(t),s&512&&(Bt||a===null||pr(a,a.return)),t.flags&32){p=t.stateNode;try{gl(p,"")}catch(ge){We(t,t.return,ge)}}s&4&&t.stateNode!=null&&(p=t.memoizedProps,Ff(t,p,a!==null?a.memoizedProps:p)),s&1024&&(Xf=!0);break;case 6:if(yn(r,t),xn(t),s&4){if(t.stateNode===null)throw Error(l(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(ge){We(t,t.return,ge)}}break;case 3:if(Zs=null,p=nr,nr=Xs(r.containerInfo),yn(r,t),nr=p,xn(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{$l(r.containerInfo)}catch(ge){We(t,t.return,ge)}Xf&&(Xf=!1,H1(t));break;case 4:s=nr,nr=Xs(t.stateNode.containerInfo),yn(r,t),xn(t),nr=s;break;case 12:yn(r,t),xn(t);break;case 31:yn(r,t),xn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ms(t,s)));break;case 13:yn(r,t),xn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_s=ct()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ms(t,s)));break;case 22:p=t.memoizedState!==null;var V=a!==null&&a.memoizedState!==null,K=Hr,ne=Bt;if(Hr=K||p,Bt=ne||V,yn(r,t),Bt=ne,Hr=K,xn(t),s&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||V||Hr||Bt||Ki(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){V=a=r;try{if(g=V.stateNode,p)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{O=V.stateNode;var oe=V.memoizedProps.style,W=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;O.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(ge){We(V,V.return,ge)}}}else if(r.tag===6){if(a===null){V=r;try{V.stateNode.nodeValue=p?"":V.memoizedProps}catch(ge){We(V,V.return,ge)}}}else if(r.tag===18){if(a===null){V=r;try{var ee=V.stateNode;p?A0(ee,!0):A0(V.stateNode,!1)}catch(ge){We(V,V.return,ge)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Ms(t,a))));break;case 19:yn(r,t),xn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ms(t,s)));break;case 30:break;case 21:break;default:yn(r,t),xn(t)}}function xn(t){var r=t.flags;if(r&2){try{for(var a,s=t.return;s!==null;){if(N1(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,g=qf(t);Os(t,g,p);break;case 5:var S=a.stateNode;a.flags&32&&(gl(S,""),a.flags&=-33);var O=qf(t);Os(t,O,S);break;case 3:case 4:var V=a.stateNode.containerInfo,K=qf(t);Yf(t,K,V);break;default:throw Error(l(161))}}catch(ne){We(t,t.return,ne)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function H1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;H1(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Ir(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)M1(t,r.alternate,r),r=r.sibling}function Ki(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:ci(4,r,r.return),Ki(r);break;case 1:pr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&A1(r,r.return,a),Ki(r);break;case 27:to(r.stateNode);case 26:case 5:pr(r,r.return),Ki(r);break;case 22:r.memoizedState===null&&Ki(r);break;case 30:Ki(r);break;default:Ki(r)}t=t.sibling}}function Vr(t,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,p=t,g=r,S=g.flags;switch(g.tag){case 0:case 11:case 15:Vr(p,g,a),Ya(4,g);break;case 1:if(Vr(p,g,a),s=g,p=s.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){We(s,s.return,K)}if(s=g,p=s.updateQueue,p!==null){var O=s.stateNode;try{var V=p.shared.hiddenCallbacks;if(V!==null)for(p.shared.hiddenCallbacks=null,p=0;p<V.length;p++)pg(V[p],O)}catch(K){We(s,s.return,K)}}a&&S&64&&T1(g),Xa(g,g.return);break;case 27:R1(g);case 26:case 5:Vr(p,g,a),a&&s===null&&S&4&&D1(g),Xa(g,g.return);break;case 12:Vr(p,g,a);break;case 31:Vr(p,g,a),a&&S&4&&L1(p,g);break;case 13:Vr(p,g,a),a&&S&4&&z1(p,g);break;case 22:g.memoizedState===null&&Vr(p,g,a),Xa(g,g.return);break;case 30:break;default:Vr(p,g,a)}r=r.sibling}}function $f(t,r){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ma(a))}function Zf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ma(t))}function rr(t,r,a,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)U1(t,r,a,s),r=r.sibling}function U1(t,r,a,s){var p=r.flags;switch(r.tag){case 0:case 11:case 15:rr(t,r,a,s),p&2048&&Ya(9,r);break;case 1:rr(t,r,a,s);break;case 3:rr(t,r,a,s),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ma(t)));break;case 12:if(p&2048){rr(t,r,a,s),t=r.stateNode;try{var g=r.memoizedProps,S=g.id,O=g.onPostCommit;typeof O=="function"&&O(S,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(V){We(r,r.return,V)}}else rr(t,r,a,s);break;case 31:rr(t,r,a,s);break;case 13:rr(t,r,a,s);break;case 23:break;case 22:g=r.stateNode,S=r.alternate,r.memoizedState!==null?g._visibility&2?rr(t,r,a,s):$a(t,r):g._visibility&2?rr(t,r,a,s):(g._visibility|=2,zl(t,r,a,s,(r.subtreeFlags&10256)!==0||!1)),p&2048&&$f(S,r);break;case 24:rr(t,r,a,s),p&2048&&Zf(r.alternate,r);break;default:rr(t,r,a,s)}}function zl(t,r,a,s,p){for(p=p&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var g=t,S=r,O=a,V=s,K=S.flags;switch(S.tag){case 0:case 11:case 15:zl(g,S,O,V,p),Ya(8,S);break;case 23:break;case 22:var ne=S.stateNode;S.memoizedState!==null?ne._visibility&2?zl(g,S,O,V,p):$a(g,S):(ne._visibility|=2,zl(g,S,O,V,p)),p&&K&2048&&$f(S.alternate,S);break;case 24:zl(g,S,O,V,p),p&&K&2048&&Zf(S.alternate,S);break;default:zl(g,S,O,V,p)}r=r.sibling}}function $a(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=t,s=r,p=s.flags;switch(s.tag){case 22:$a(a,s),p&2048&&$f(s.alternate,s);break;case 24:$a(a,s),p&2048&&Zf(s.alternate,s);break;default:$a(a,s)}r=r.sibling}}var Za=8192;function Bl(t,r,a){if(t.subtreeFlags&Za)for(t=t.child;t!==null;)I1(t,r,a),t=t.sibling}function I1(t,r,a){switch(t.tag){case 26:Bl(t,r,a),t.flags&Za&&t.memoizedState!==null&&zS(a,nr,t.memoizedState,t.memoizedProps);break;case 5:Bl(t,r,a);break;case 3:case 4:var s=nr;nr=Xs(t.stateNode.containerInfo),Bl(t,r,a),nr=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Za,Za=16777216,Bl(t,r,a),Za=s):Bl(t,r,a));break;default:Bl(t,r,a)}}function V1(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Ga(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];Yt=s,F1(s,t)}V1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)P1(t),t=t.sibling}function P1(t){switch(t.tag){case 0:case 11:case 15:Ga(t),t.flags&2048&&ci(9,t,t.return);break;case 3:Ga(t);break;case 12:Ga(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,js(t)):Ga(t);break;default:Ga(t)}}function js(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];Yt=s,F1(s,t)}V1(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:ci(8,r,r.return),js(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,js(r));break;default:js(r)}t=t.sibling}}function F1(t,r){for(;Yt!==null;){var a=Yt;switch(a.tag){case 0:case 11:case 15:ci(8,a,r);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:Ma(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,Yt=s;else e:for(a=t;Yt!==null;){s=Yt;var p=s.sibling,g=s.return;if(j1(s),s===a){Yt=null;break e}if(p!==null){p.return=g,Yt=p;break e}Yt=g}}}var K3={getCacheForType:function(t){var r=Jt(_t),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a},cacheSignal:function(){return Jt(_t).controller.signal}},J3=typeof WeakMap=="function"?WeakMap:Map,Ze=0,lt=null,_e=null,Be=0,Je=0,jn=null,fi=!1,Hl=!1,Gf=!1,Pr=0,Tt=0,di=0,Ji=0,Qf=0,_n=0,Ul=0,Qa=null,Sn=null,Kf=!1,_s=0,q1=0,Ls=1/0,zs=null,hi=null,Vt=0,mi=null,Il=null,Fr=0,Jf=0,Wf=null,Y1=null,Ka=0,ed=null;function Ln(){return(Ze&2)!==0&&Be!==0?Be&-Be:H.T!==null?ad():cn()}function X1(){if(_n===0)if((Be&536870912)===0||Ie){var t=un;un<<=1,(un&3932160)===0&&(un=262144),_n=t}else _n=536870912;return t=On.current,t!==null&&(t.flags|=32),_n}function wn(t,r,a){(t===lt&&(Je===2||Je===9)||t.cancelPendingCommit!==null)&&(Vl(t,0),pi(t,Be,_n,!1)),it(t,a),((Ze&2)===0||t!==lt)&&(t===lt&&((Ze&2)===0&&(Ji|=a),Tt===4&&pi(t,Be,_n,!1)),gr(t))}function $1(t,r,a){if((Ze&6)!==0)throw Error(l(327));var s=!a&&(r&127)===0&&(r&t.expiredLanes)===0||Gt(t,r),p=s?tS(t,r):nd(t,r,!0),g=s;do{if(p===0){Hl&&!s&&pi(t,r,0,!1);break}else{if(a=t.current.alternate,g&&!W3(a)){p=nd(t,r,!1),g=!1;continue}if(p===2){if(g=r,t.errorRecoveryDisabledLanes&g)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var O=t;p=Qa;var V=O.current.memoizedState.isDehydrated;if(V&&(Vl(O,S).flags|=256),S=nd(O,S,!1),S!==2){if(Gf&&!V){O.errorRecoveryDisabledLanes|=g,Ji|=g,p=4;break e}g=Sn,Sn=p,g!==null&&(Sn===null?Sn=g:Sn.push.apply(Sn,g))}p=S}if(g=!1,p!==2)continue}}if(p===1){Vl(t,0),pi(t,r,0,!0);break}e:{switch(s=t,g=p,g){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:pi(s,r,_n,!fi);break e;case 2:Sn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=_s+300-ct(),10<p)){if(pi(s,r,_n,!fi),Dt(s,0,!0)!==0)break e;Fr=r,s.timeoutHandle=E0(Z1.bind(null,s,a,Sn,zs,Kf,r,_n,Ji,Ul,fi,g,"Throttled",-0,0),p);break e}Z1(s,a,Sn,zs,Kf,r,_n,Ji,Ul,fi,g,null,-0,0)}}break}while(!0);gr(t)}function Z1(t,r,a,s,p,g,S,O,V,K,ne,oe,W,ee){if(t.timeoutHandle=-1,oe=r.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Dr},I1(r,g,oe);var ge=(g&62914560)===g?_s-ct():(g&4194048)===g?q1-ct():0;if(ge=BS(oe,ge),ge!==null){Fr=g,t.cancelPendingCommit=ge(n0.bind(null,t,r,g,a,s,p,S,O,V,ne,oe,null,W,ee)),pi(t,g,S,!K);return}}n0(t,r,g,a,s,p,S,O,V)}function W3(t){for(var r=t;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var p=a[s],g=p.getSnapshot;p=p.value;try{if(!Nn(g(),p))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function pi(t,r,a,s){r&=~Qf,r&=~Ji,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var p=r;0<p;){var g=31-qe(p),S=1<<g;s[g]=-1,p&=~S}a!==0&&Ke(t,a,r)}function Bs(){return(Ze&6)===0?(Ja(0),!1):!0}function td(){if(_e!==null){if(Je===0)var t=_e.return;else t=_e,Mr=Fi=null,bf(t),Ol=null,_a=0,t=_e;for(;t!==null;)k1(t.alternate,t),t=t.return;_e=null}}function Vl(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,yS(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Fr=0,td(),lt=t,_e=a=Rr(t.current,null),Be=r,Je=0,jn=null,fi=!1,Hl=Gt(t,r),Gf=!1,Ul=_n=Qf=Ji=di=Tt=0,Sn=Qa=null,Kf=!1,(r&8)!==0&&(r|=r&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=r;0<s;){var p=31-qe(s),g=1<<p;r|=t[p],s&=~g}return Pr=r,is(),a}function G1(t,r){Oe=null,H.H=Pa,r===Rl||r===ds?(r=fg(),Je=3):r===lf?(r=fg(),Je=4):Je=r===jf?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,jn=r,_e===null&&(Tt=1,Ts(t,qn(r,t.current)))}function Q1(){var t=On.current;return t===null?!0:(Be&4194048)===Be?Zn===null:(Be&62914560)===Be||(Be&536870912)!==0?t===Zn:!1}function K1(){var t=H.H;return H.H=Pa,t===null?Pa:t}function J1(){var t=H.A;return H.A=K3,t}function Hs(){Tt=4,fi||(Be&4194048)!==Be&&On.current!==null||(Hl=!0),(di&134217727)===0&&(Ji&134217727)===0||lt===null||pi(lt,Be,_n,!1)}function nd(t,r,a){var s=Ze;Ze|=2;var p=K1(),g=J1();(lt!==t||Be!==r)&&(zs=null,Vl(t,r)),r=!1;var S=Tt;e:do try{if(Je!==0&&_e!==null){var O=_e,V=jn;switch(Je){case 8:td(),S=6;break e;case 3:case 2:case 9:case 6:On.current===null&&(r=!0);var K=Je;if(Je=0,jn=null,Pl(t,O,V,K),a&&Hl){S=0;break e}break;default:K=Je,Je=0,jn=null,Pl(t,O,V,K)}}eS(),S=Tt;break}catch(ne){G1(t,ne)}while(!0);return r&&t.shellSuspendCounter++,Mr=Fi=null,Ze=s,H.H=p,H.A=g,_e===null&&(lt=null,Be=0,is()),S}function eS(){for(;_e!==null;)W1(_e)}function tS(t,r){var a=Ze;Ze|=2;var s=K1(),p=J1();lt!==t||Be!==r?(zs=null,Ls=ct()+500,Vl(t,r)):Hl=Gt(t,r);e:do try{if(Je!==0&&_e!==null){r=_e;var g=jn;t:switch(Je){case 1:Je=0,jn=null,Pl(t,r,g,1);break;case 2:case 9:if(ug(g)){Je=0,jn=null,e0(r);break}r=function(){Je!==2&&Je!==9||lt!==t||(Je=7),gr(t)},g.then(r,r);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:ug(g)?(Je=0,jn=null,e0(r)):(Je=0,jn=null,Pl(t,r,g,7));break;case 5:var S=null;switch(_e.tag){case 26:S=_e.memoizedState;case 5:case 27:var O=_e;if(S?U0(S):O.stateNode.complete){Je=0,jn=null;var V=O.sibling;if(V!==null)_e=V;else{var K=O.return;K!==null?(_e=K,Us(K)):_e=null}break t}}Je=0,jn=null,Pl(t,r,g,5);break;case 6:Je=0,jn=null,Pl(t,r,g,6);break;case 8:td(),Tt=6;break e;default:throw Error(l(462))}}nS();break}catch(ne){G1(t,ne)}while(!0);return Mr=Fi=null,H.H=s,H.A=p,Ze=a,_e!==null?0:(lt=null,Be=0,is(),Tt)}function nS(){for(;_e!==null&&!Ge();)W1(_e)}function W1(t){var r=C1(t.alternate,t,Pr);t.memoizedProps=t.pendingProps,r===null?Us(t):_e=r}function e0(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=b1(a,r,r.pendingProps,r.type,void 0,Be);break;case 11:r=b1(a,r,r.pendingProps,r.type.render,r.ref,Be);break;case 5:bf(r);default:k1(a,r),r=_e=Jp(r,Pr),r=C1(a,r,Pr)}t.memoizedProps=t.pendingProps,r===null?Us(t):_e=r}function Pl(t,r,a,s){Mr=Fi=null,bf(r),Ol=null,_a=0;var p=r.return;try{if(q3(t,p,r,a,Be)){Tt=1,Ts(t,qn(a,t.current)),_e=null;return}}catch(g){if(p!==null)throw _e=p,g;Tt=1,Ts(t,qn(a,t.current)),_e=null;return}r.flags&32768?(Ie||s===1?t=!0:Hl||(Be&536870912)!==0?t=!1:(fi=t=!0,(s===2||s===9||s===3||s===6)&&(s=On.current,s!==null&&s.tag===13&&(s.flags|=16384))),t0(r,t)):Us(r)}function Us(t){var r=t;do{if((r.flags&32768)!==0){t0(r,fi);return}t=r.return;var a=$3(r.alternate,r,Pr);if(a!==null){_e=a;return}if(r=r.sibling,r!==null){_e=r;return}_e=r=t}while(r!==null);Tt===0&&(Tt=5)}function t0(t,r){do{var a=Z3(t.alternate,t);if(a!==null){a.flags&=32767,_e=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){_e=t;return}_e=t=a}while(t!==null);Tt=6,_e=null}function n0(t,r,a,s,p,g,S,O,V){t.cancelPendingCommit=null;do Is();while(Vt!==0);if((Ze&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(g=r.lanes|r.childLanes,g|=Fc,dt(t,a,g,S,O,V),t===lt&&(_e=lt=null,Be=0),Il=r,mi=t,Fr=a,Jf=g,Wf=p,Y1=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,aS(Se,function(){return o0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=H.T,H.T=null,p=Z.p,Z.p=2,S=Ze,Ze|=4;try{G3(t,r,a)}finally{Ze=S,Z.p=p,H.T=s}}Vt=1,r0(),i0(),l0()}}function r0(){if(Vt===1){Vt=0;var t=mi,r=Il,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var s=Z.p;Z.p=2;var p=Ze;Ze|=4;try{B1(r,t);var g=md,S=Fp(t.containerInfo),O=g.focusedElem,V=g.selectionRange;if(S!==O&&O&&O.ownerDocument&&Pp(O.ownerDocument.documentElement,O)){if(V!==null&&Hc(O)){var K=V.start,ne=V.end;if(ne===void 0&&(ne=K),"selectionStart"in O)O.selectionStart=K,O.selectionEnd=Math.min(ne,O.value.length);else{var oe=O.ownerDocument||document,W=oe&&oe.defaultView||window;if(W.getSelection){var ee=W.getSelection(),ge=O.textContent.length,ke=Math.min(V.start,ge),nt=V.end===void 0?ke:Math.min(V.end,ge);!ee.extend&&ke>nt&&(S=nt,nt=ke,ke=S);var $=Vp(O,ke),Y=Vp(O,nt);if($&&Y&&(ee.rangeCount!==1||ee.anchorNode!==$.node||ee.anchorOffset!==$.offset||ee.focusNode!==Y.node||ee.focusOffset!==Y.offset)){var Q=oe.createRange();Q.setStart($.node,$.offset),ee.removeAllRanges(),ke>nt?(ee.addRange(Q),ee.extend(Y.node,Y.offset)):(Q.setEnd(Y.node,Y.offset),ee.addRange(Q))}}}}for(oe=[],ee=O;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<oe.length;O++){var le=oe[O];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Js=!!hd,md=hd=null}finally{Ze=p,Z.p=s,H.T=a}}t.current=r,Vt=2}}function i0(){if(Vt===2){Vt=0;var t=mi,r=Il,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var s=Z.p;Z.p=2;var p=Ze;Ze|=4;try{M1(t,r.alternate,r)}finally{Ze=p,Z.p=s,H.T=a}}Vt=3}}function l0(){if(Vt===4||Vt===3){Vt=0,Tr();var t=mi,r=Il,a=Fr,s=Y1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Vt=5:(Vt=0,Il=mi=null,a0(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(hi=null),jt(a),r=r.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(gt,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=H.T,p=Z.p,Z.p=2,H.T=null;try{for(var g=t.onRecoverableError,S=0;S<s.length;S++){var O=s[S];g(O.value,{componentStack:O.stack})}}finally{H.T=r,Z.p=p}}(Fr&3)!==0&&Is(),gr(t),p=t.pendingLanes,(a&261930)!==0&&(p&42)!==0?t===ed?Ka++:(Ka=0,ed=t):Ka=0,Ja(0)}}function a0(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ma(r)))}function Is(){return r0(),i0(),l0(),o0()}function o0(){if(Vt!==5)return!1;var t=mi,r=Jf;Jf=0;var a=jt(Fr),s=H.T,p=Z.p;try{Z.p=32>a?32:a,H.T=null,a=Wf,Wf=null;var g=mi,S=Fr;if(Vt=0,Il=mi=null,Fr=0,(Ze&6)!==0)throw Error(l(331));var O=Ze;if(Ze|=4,P1(g.current),U1(g,g.current,S,a),Ze=O,Ja(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(gt,g)}catch{}return!0}finally{Z.p=p,H.T=s,a0(t,r)}}function s0(t,r,a){r=qn(a,r),r=Mf(t.stateNode,r,2),t=oi(t,r,2),t!==null&&(it(t,2),gr(t))}function We(t,r,a){if(t.tag===3)s0(t,t,a);else for(;r!==null;){if(r.tag===3){s0(r,t,a);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(hi===null||!hi.has(s))){t=qn(a,t),a=u1(2),s=oi(r,a,2),s!==null&&(c1(a,s,r,t),it(s,2),gr(s));break}}r=r.return}}function rd(t,r,a){var s=t.pingCache;if(s===null){s=t.pingCache=new J3;var p=new Set;s.set(r,p)}else p=s.get(r),p===void 0&&(p=new Set,s.set(r,p));p.has(a)||(Gf=!0,p.add(a),t=rS.bind(null,t,r,a),r.then(t,t))}function rS(t,r,a){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,lt===t&&(Be&a)===a&&(Tt===4||Tt===3&&(Be&62914560)===Be&&300>ct()-_s?(Ze&2)===0&&Vl(t,0):Qf|=a,Ul===Be&&(Ul=0)),gr(t)}function u0(t,r){r===0&&(r=Ue()),t=Ii(t,r),t!==null&&(it(t,r),gr(t))}function iS(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),u0(t,a)}function lS(t,r){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,p=t.memoizedState;p!==null&&(a=p.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(r),u0(t,a)}function aS(t,r){return It(t,r)}var Vs=null,Fl=null,id=!1,Ps=!1,ld=!1,gi=0;function gr(t){t!==Fl&&t.next===null&&(Fl===null?Vs=Fl=t:Fl=Fl.next=t),Ps=!0,id||(id=!0,sS())}function Ja(t,r){if(!ld&&Ps){ld=!0;do for(var a=!1,s=Vs;s!==null;){if(t!==0){var p=s.pendingLanes;if(p===0)var g=0;else{var S=s.suspendedLanes,O=s.pingedLanes;g=(1<<31-qe(42|t)+1)-1,g&=p&~(S&~O),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,h0(s,g))}else g=Be,g=Dt(s,s===lt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||Gt(s,g)||(a=!0,h0(s,g));s=s.next}while(a);ld=!1}}function oS(){c0()}function c0(){Ps=id=!1;var t=0;gi!==0&&vS()&&(t=gi);for(var r=ct(),a=null,s=Vs;s!==null;){var p=s.next,g=f0(s,r);g===0?(s.next=null,a===null?Vs=p:a.next=p,p===null&&(Fl=a)):(a=s,(t!==0||(g&3)!==0)&&(Ps=!0)),s=p}Vt!==0&&Vt!==5||Ja(t),gi!==0&&(gi=0)}function f0(t,r){for(var a=t.suspendedLanes,s=t.pingedLanes,p=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var S=31-qe(g),O=1<<S,V=p[S];V===-1?((O&a)===0||(O&s)!==0)&&(p[S]=xe(O,r)):V<=r&&(t.expiredLanes|=O),g&=~O}if(r=lt,a=Be,a=Dt(t,t===r?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===r&&(Je===2||Je===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&pn(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Gt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(s!==null&&pn(s),jt(a)){case 2:case 8:a=ce;break;case 32:a=Se;break;case 268435456:a=je;break;default:a=Se}return s=d0.bind(null,t),a=It(a,s),t.callbackPriority=r,t.callbackNode=a,r}return s!==null&&s!==null&&pn(s),t.callbackPriority=2,t.callbackNode=null,2}function d0(t,r){if(Vt!==0&&Vt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Is()&&t.callbackNode!==a)return null;var s=Be;return s=Dt(t,t===lt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:($1(t,s,r),f0(t,ct()),t.callbackNode!=null&&t.callbackNode===a?d0.bind(null,t):null)}function h0(t,r){if(Is())return null;$1(t,r,!0)}function sS(){xS(function(){(Ze&6)!==0?It(re,oS):c0()})}function ad(){if(gi===0){var t=Dl;t===0&&(t=dr,dr<<=1,(dr&261888)===0&&(dr=256)),gi=t}return gi}function m0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Qo(""+t)}function p0(t,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,t.id&&a.setAttribute("form",t.id),r.parentNode.insertBefore(a,r),t=new FormData(t),a.parentNode.removeChild(a),t}function uS(t,r,a,s,p){if(r==="submit"&&a&&a.stateNode===p){var g=m0((p[gn]||null).action),S=s.submitter;S&&(r=(r=S[gn]||null)?m0(r.formAction):S.getAttribute("formAction"),r!==null&&(g=r,S=null));var O=new es("action","action",null,s,p);t.push({event:O,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(gi!==0){var V=S?p0(p,S):new FormData(p);Tf(a,{pending:!0,data:V,method:p.method,action:g},null,V)}}else typeof g=="function"&&(O.preventDefault(),V=S?p0(p,S):new FormData(p),Tf(a,{pending:!0,data:V,method:p.method,action:g},g,V))},currentTarget:p}]})}}for(var od=0;od<Pc.length;od++){var sd=Pc[od],cS=sd.toLowerCase(),fS=sd[0].toUpperCase()+sd.slice(1);tr(cS,"on"+fS)}tr(Xp,"onAnimationEnd"),tr($p,"onAnimationIteration"),tr(Zp,"onAnimationStart"),tr("dblclick","onDoubleClick"),tr("focusin","onFocus"),tr("focusout","onBlur"),tr(A3,"onTransitionRun"),tr(D3,"onTransitionStart"),tr(N3,"onTransitionCancel"),tr(Gp,"onTransitionEnd"),ml("onMouseEnter",["mouseout","mouseover"]),ml("onMouseLeave",["mouseout","mouseover"]),ml("onPointerEnter",["pointerout","pointerover"]),ml("onPointerLeave",["pointerout","pointerover"]),zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zi("onBeforeInput",["compositionend","keypress","textInput","paste"]),zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wa="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(" "),dS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wa));function g0(t,r){r=(r&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],p=s.event;s=s.listeners;e:{var g=void 0;if(r)for(var S=s.length-1;0<=S;S--){var O=s[S],V=O.instance,K=O.currentTarget;if(O=O.listener,V!==g&&p.isPropagationStopped())break e;g=O,p.currentTarget=K;try{g(p)}catch(ne){rs(ne)}p.currentTarget=null,g=V}else for(S=0;S<s.length;S++){if(O=s[S],V=O.instance,K=O.currentTarget,O=O.listener,V!==g&&p.isPropagationStopped())break e;g=O,p.currentTarget=K;try{g(p)}catch(ne){rs(ne)}p.currentTarget=null,g=V}}}}function Le(t,r){var a=r[xc];a===void 0&&(a=r[xc]=new Set);var s=t+"__bubble";a.has(s)||(b0(r,t,2,!1),a.add(s))}function ud(t,r,a){var s=0;r&&(s|=4),b0(a,t,s,r)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function cd(t){if(!t[Fs]){t[Fs]=!0,cp.forEach(function(a){a!=="selectionchange"&&(dS.has(a)||ud(a,!1,t),ud(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Fs]||(r[Fs]=!0,ud("selectionchange",!1,r))}}function b0(t,r,a,s){switch(X0(r)){case 2:var p=IS;break;case 8:p=VS;break;default:p=kd}a=p.bind(null,r,a,t),p=void 0,!Nc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),s?p!==void 0?t.addEventListener(r,a,{capture:!0,passive:p}):t.addEventListener(r,a,!0):p!==void 0?t.addEventListener(r,a,{passive:p}):t.addEventListener(r,a,!1)}function fd(t,r,a,s,p){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var O=s.stateNode.containerInfo;if(O===p)break;if(S===4)for(S=s.return;S!==null;){var V=S.tag;if((V===3||V===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;O!==null;){if(S=fl(O),S===null)return;if(V=S.tag,V===5||V===6||V===26||V===27){s=g=S;continue e}O=O.parentNode}}s=s.return}wp(function(){var K=g,ne=Ac(a),oe=[];e:{var W=Qp.get(t);if(W!==void 0){var ee=es,ge=t;switch(t){case"keypress":if(Jo(a)===0)break e;case"keydown":case"keyup":ee=l3;break;case"focusin":ge="focus",ee=jc;break;case"focusout":ge="blur",ee=jc;break;case"beforeblur":case"afterblur":ee=jc;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":ee=kp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=$5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=s3;break;case Xp:case $p:case Zp:ee=Q5;break;case Gp:ee=c3;break;case"scroll":case"scrollend":ee=Y5;break;case"wheel":ee=d3;break;case"copy":case"cut":case"paste":ee=J5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Ap;break;case"toggle":case"beforetoggle":ee=m3}var ke=(r&4)!==0,nt=!ke&&(t==="scroll"||t==="scrollend"),$=ke?W!==null?W+"Capture":null:W;ke=[];for(var Y=K,Q;Y!==null;){var le=Y;if(Q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||Q===null||$===null||(le=Sa(Y,$),le!=null&&ke.push(eo(Y,le,Q))),nt)break;Y=Y.return}0<ke.length&&(W=new ee(W,ge,null,a,ne),oe.push({event:W,listeners:ke}))}}if((r&7)===0){e:{if(W=t==="mouseover"||t==="pointerover",ee=t==="mouseout"||t==="pointerout",W&&a!==Tc&&(ge=a.relatedTarget||a.fromElement)&&(fl(ge)||ge[cl]))break e;if((ee||W)&&(W=ne.window===ne?ne:(W=ne.ownerDocument)?W.defaultView||W.parentWindow:window,ee?(ge=a.relatedTarget||a.toElement,ee=K,ge=ge?fl(ge):null,ge!==null&&(nt=u(ge),ke=ge.tag,ge!==nt||ke!==5&&ke!==27&&ke!==6)&&(ge=null)):(ee=null,ge=K),ee!==ge)){if(ke=kp,le="onMouseLeave",$="onMouseEnter",Y="mouse",(t==="pointerout"||t==="pointerover")&&(ke=Ap,le="onPointerLeave",$="onPointerEnter",Y="pointer"),nt=ee==null?W:xa(ee),Q=ge==null?W:xa(ge),W=new ke(le,Y+"leave",ee,a,ne),W.target=nt,W.relatedTarget=Q,le=null,fl(ne)===K&&(ke=new ke($,Y+"enter",ge,a,ne),ke.target=Q,ke.relatedTarget=nt,le=ke),nt=le,ee&&ge)t:{for(ke=hS,$=ee,Y=ge,Q=0,le=$;le;le=ke(le))Q++;le=0;for(var we=Y;we;we=ke(we))le++;for(;0<Q-le;)$=ke($),Q--;for(;0<le-Q;)Y=ke(Y),le--;for(;Q--;){if($===Y||Y!==null&&$===Y.alternate){ke=$;break t}$=ke($),Y=ke(Y)}ke=null}else ke=null;ee!==null&&v0(oe,W,ee,ke,!1),ge!==null&&nt!==null&&v0(oe,nt,ge,ke,!0)}}e:{if(W=K?xa(K):window,ee=W.nodeName&&W.nodeName.toLowerCase(),ee==="select"||ee==="input"&&W.type==="file")var Ye=Lp;else if(jp(W))if(zp)Ye=E3;else{Ye=w3;var ye=S3}else ee=W.nodeName,!ee||ee.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?K&&kc(K.elementType)&&(Ye=Lp):Ye=C3;if(Ye&&(Ye=Ye(t,K))){_p(oe,Ye,a,ne);break e}ye&&ye(t,W,K),t==="focusout"&&K&&W.type==="number"&&K.memoizedProps.value!=null&&Ec(W,"number",W.value)}switch(ye=K?xa(K):window,t){case"focusin":(jp(ye)||ye.contentEditable==="true")&&(xl=ye,Uc=K,Na=null);break;case"focusout":Na=Uc=xl=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,qp(oe,a,ne);break;case"selectionchange":if(T3)break;case"keydown":case"keyup":qp(oe,a,ne)}var Me;if(Lc)e:{switch(t){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else yl?Op(t,a)&&(He="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(He="onCompositionStart");He&&(Dp&&a.locale!=="ko"&&(yl||He!=="onCompositionStart"?He==="onCompositionEnd"&&yl&&(Me=Cp()):(ei=ne,Rc="value"in ei?ei.value:ei.textContent,yl=!0)),ye=qs(K,He),0<ye.length&&(He=new Tp(He,t,null,a,ne),oe.push({event:He,listeners:ye}),Me?He.data=Me:(Me=Mp(a),Me!==null&&(He.data=Me)))),(Me=g3?b3(t,a):v3(t,a))&&(He=qs(K,"onBeforeInput"),0<He.length&&(ye=new Tp("onBeforeInput","beforeinput",null,a,ne),oe.push({event:ye,listeners:He}),ye.data=Me)),uS(oe,t,K,a,ne)}g0(oe,r)})}function eo(t,r,a){return{instance:t,listener:r,currentTarget:a}}function qs(t,r){for(var a=r+"Capture",s=[];t!==null;){var p=t,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Sa(t,a),p!=null&&s.unshift(eo(t,p,g)),p=Sa(t,r),p!=null&&s.push(eo(t,p,g))),t.tag===3)return s;t=t.return}return[]}function hS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function v0(t,r,a,s,p){for(var g=r._reactName,S=[];a!==null&&a!==s;){var O=a,V=O.alternate,K=O.stateNode;if(O=O.tag,V!==null&&V===s)break;O!==5&&O!==26&&O!==27||K===null||(V=K,p?(K=Sa(a,g),K!=null&&S.unshift(eo(a,K,V))):p||(K=Sa(a,g),K!=null&&S.push(eo(a,K,V)))),a=a.return}S.length!==0&&t.push({event:r,listeners:S})}var mS=/\r\n?/g,pS=/\u0000|\uFFFD/g;function y0(t){return(typeof t=="string"?t:""+t).replace(mS,`
49
+ `).replace(pS,"")}function x0(t,r){return r=y0(r),y0(t)===r}function tt(t,r,a,s,p,g){switch(a){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||gl(t,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&gl(t,""+s);break;case"className":Zo(t,"class",s);break;case"tabIndex":Zo(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Zo(t,a,s);break;case"style":xp(t,s,g);break;case"data":if(r!=="object"){Zo(t,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Qo(""+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 g=="function"&&(a==="formAction"?(r!=="input"&&tt(t,r,"name",p.name,p,null),tt(t,r,"formEncType",p.formEncType,p,null),tt(t,r,"formMethod",p.formMethod,p,null),tt(t,r,"formTarget",p.formTarget,p,null)):(tt(t,r,"encType",p.encType,p,null),tt(t,r,"method",p.method,p,null),tt(t,r,"target",p.target,p,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Qo(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=Dr);break;case"onScroll":s!=null&&Le("scroll",t);break;case"onScrollEnd":s!=null&&Le("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(p.children!=null)throw Error(l(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=Qo(""+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":Le("beforetoggle",t),Le("toggle",t),$o(t,"popover",s);break;case"xlinkActuate":Ar(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ar(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ar(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ar(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ar(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ar(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ar(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ar(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ar(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":$o(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=F5.get(a)||a,$o(t,a,s))}}function dd(t,r,a,s,p,g){switch(a){case"style":xp(t,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(p.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"children":typeof s=="string"?gl(t,s):(typeof s=="number"||typeof s=="bigint")&&gl(t,""+s);break;case"onScroll":s!=null&&Le("scroll",t);break;case"onScrollEnd":s!=null&&Le("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Dr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),g=t[gn]||null,g=g!=null?g[a]:null,typeof g=="function"&&t.removeEventListener(r,g,p),typeof s=="function")){typeof g!="function"&&g!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(r,s,p);break e}a in t?t[a]=s:s===!0?t.setAttribute(a,""):$o(t,a,s)}}}function en(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var s=!1,p=!1,g;for(g in a)if(a.hasOwnProperty(g)){var S=a[g];if(S!=null)switch(g){case"src":s=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:tt(t,r,g,S,a,null)}}p&&tt(t,r,"srcSet",a.srcSet,a,null),s&&tt(t,r,"src",a.src,a,null);return;case"input":Le("invalid",t);var O=g=S=p=null,V=null,K=null;for(s in a)if(a.hasOwnProperty(s)){var ne=a[s];if(ne!=null)switch(s){case"name":p=ne;break;case"type":S=ne;break;case"checked":V=ne;break;case"defaultChecked":K=ne;break;case"value":g=ne;break;case"defaultValue":O=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(l(137,r));break;default:tt(t,r,s,ne,a,null)}}gp(t,g,O,V,K,S,p,!1);return;case"select":Le("invalid",t),s=S=g=null;for(p in a)if(a.hasOwnProperty(p)&&(O=a[p],O!=null))switch(p){case"value":g=O;break;case"defaultValue":S=O;break;case"multiple":s=O;default:tt(t,r,p,O,a,null)}r=g,a=S,t.multiple=!!s,r!=null?pl(t,!!s,r,!1):a!=null&&pl(t,!!s,a,!0);return;case"textarea":Le("invalid",t),g=p=s=null;for(S in a)if(a.hasOwnProperty(S)&&(O=a[S],O!=null))switch(S){case"value":s=O;break;case"defaultValue":p=O;break;case"children":g=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(91));break;default:tt(t,r,S,O,a,null)}vp(t,s,p,g);return;case"option":for(V in a)if(a.hasOwnProperty(V)&&(s=a[V],s!=null))switch(V){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:tt(t,r,V,s,a,null)}return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(s=0;s<Wa.length;s++)Le(Wa[s],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("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(K in a)if(a.hasOwnProperty(K)&&(s=a[K],s!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:tt(t,r,K,s,a,null)}return;default:if(kc(r)){for(ne in a)a.hasOwnProperty(ne)&&(s=a[ne],s!==void 0&&dd(t,r,ne,s,a,void 0));return}}for(O in a)a.hasOwnProperty(O)&&(s=a[O],s!=null&&tt(t,r,O,s,a,null))}function gS(t,r,a,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,S=null,O=null,V=null,K=null,ne=null;for(ee in a){var oe=a[ee];if(a.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":V=oe;default:s.hasOwnProperty(ee)||tt(t,r,ee,null,s,oe)}}for(var W in s){var ee=s[W];if(oe=a[W],s.hasOwnProperty(W)&&(ee!=null||oe!=null))switch(W){case"type":g=ee;break;case"name":p=ee;break;case"checked":K=ee;break;case"defaultChecked":ne=ee;break;case"value":S=ee;break;case"defaultValue":O=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,r));break;default:ee!==oe&&tt(t,r,W,ee,s,oe)}}Cc(t,S,O,V,K,ne,g,p);return;case"select":ee=S=O=W=null;for(g in a)if(V=a[g],a.hasOwnProperty(g)&&V!=null)switch(g){case"value":break;case"multiple":ee=V;default:s.hasOwnProperty(g)||tt(t,r,g,null,s,V)}for(p in s)if(g=s[p],V=a[p],s.hasOwnProperty(p)&&(g!=null||V!=null))switch(p){case"value":W=g;break;case"defaultValue":O=g;break;case"multiple":S=g;default:g!==V&&tt(t,r,p,g,s,V)}r=O,a=S,s=ee,W!=null?pl(t,!!a,W,!1):!!s!=!!a&&(r!=null?pl(t,!!a,r,!0):pl(t,!!a,a?[]:"",!1));return;case"textarea":ee=W=null;for(O in a)if(p=a[O],a.hasOwnProperty(O)&&p!=null&&!s.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:tt(t,r,O,null,s,p)}for(S in s)if(p=s[S],g=a[S],s.hasOwnProperty(S)&&(p!=null||g!=null))switch(S){case"value":W=p;break;case"defaultValue":ee=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(l(91));break;default:p!==g&&tt(t,r,S,p,s,g)}bp(t,W,ee);return;case"option":for(var ge in a)if(W=a[ge],a.hasOwnProperty(ge)&&W!=null&&!s.hasOwnProperty(ge))switch(ge){case"selected":t.selected=!1;break;default:tt(t,r,ge,null,s,W)}for(V in s)if(W=s[V],ee=a[V],s.hasOwnProperty(V)&&W!==ee&&(W!=null||ee!=null))switch(V){case"selected":t.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:tt(t,r,V,W,s,ee)}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 ke in a)W=a[ke],a.hasOwnProperty(ke)&&W!=null&&!s.hasOwnProperty(ke)&&tt(t,r,ke,null,s,W);for(K in s)if(W=s[K],ee=a[K],s.hasOwnProperty(K)&&W!==ee&&(W!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,r));break;default:tt(t,r,K,W,s,ee)}return;default:if(kc(r)){for(var nt in a)W=a[nt],a.hasOwnProperty(nt)&&W!==void 0&&!s.hasOwnProperty(nt)&&dd(t,r,nt,void 0,s,W);for(ne in s)W=s[ne],ee=a[ne],!s.hasOwnProperty(ne)||W===ee||W===void 0&&ee===void 0||dd(t,r,ne,W,s,ee);return}}for(var $ in a)W=a[$],a.hasOwnProperty($)&&W!=null&&!s.hasOwnProperty($)&&tt(t,r,$,null,s,W);for(oe in s)W=s[oe],ee=a[oe],!s.hasOwnProperty(oe)||W===ee||W==null&&ee==null||tt(t,r,oe,W,s,ee)}function S0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var p=a[s],g=p.transferSize,S=p.initiatorType,O=p.duration;if(g&&O&&S0(S)){for(S=0,O=p.responseEnd,s+=1;s<a.length;s++){var V=a[s],K=V.startTime;if(K>O)break;var ne=V.transferSize,oe=V.initiatorType;ne&&S0(oe)&&(V=V.responseEnd,S+=ne*(V<O?1:(O-K)/(V-K)))}if(--s,r+=8*(g+S)/(p.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hd=null,md=null;function Ys(t){return t.nodeType===9?t:t.ownerDocument}function w0(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 C0(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function pd(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var gd=null;function vS(){var t=window.event;return t&&t.type==="popstate"?t===gd?!1:(gd=t,!0):(gd=null,!1)}var E0=typeof setTimeout=="function"?setTimeout:void 0,yS=typeof clearTimeout=="function"?clearTimeout:void 0,k0=typeof Promise=="function"?Promise:void 0,xS=typeof queueMicrotask=="function"?queueMicrotask:typeof k0<"u"?function(t){return k0.resolve(null).then(t).catch(SS)}:E0;function SS(t){setTimeout(function(){throw t})}function bi(t){return t==="head"}function T0(t,r){var a=r,s=0;do{var p=a.nextSibling;if(t.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(p),$l(r);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")to(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,to(a);for(var g=a.firstChild;g;){var S=g.nextSibling,O=g.nodeName;g[ya]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=S}}else a==="body"&&to(t.ownerDocument.body);a=p}while(a);$l(r)}function A0(t,r){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(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 bd(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":bd(a),Sc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function wS(t,r,a,s){for(;t.nodeType===1;){var p=a;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[ya])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=Gn(t.nextSibling),t===null)break}return null}function CS(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Gn(t.nextSibling),t===null))return null;return t}function D0(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Gn(t.nextSibling),t===null))return null;return t}function vd(t){return t.data==="$?"||t.data==="$~"}function yd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function ES(t,r){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||a.readyState!=="loading")r();else{var s=function(){r(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Gn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var xd=null;function N0(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(r===0)return Gn(t.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}t=t.nextSibling}return null}function R0(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return t;r--}else a!=="/$"&&a!=="/&"||r++}t=t.previousSibling}return null}function O0(t,r,a){switch(r=Ys(a),t){case"html":if(t=r.documentElement,!t)throw Error(l(452));return t;case"head":if(t=r.head,!t)throw Error(l(453));return t;case"body":if(t=r.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function to(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Sc(t)}var Qn=new Map,M0=new Set;function Xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var qr=Z.d;Z.d={f:kS,r:TS,D:AS,C:DS,L:NS,m:RS,X:MS,S:OS,M:jS};function kS(){var t=qr.f(),r=Bs();return t||r}function TS(t){var r=dl(t);r!==null&&r.tag===5&&r.type==="form"?Gg(r):qr.r(t)}var ql=typeof document>"u"?null:document;function j0(t,r,a){var s=ql;if(s&&typeof r=="string"&&r){var p=Pn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),M0.has(p)||(M0.add(p),t={rel:t,crossOrigin:a,href:r},s.querySelector(p)===null&&(r=s.createElement("link"),en(r,"link",t),qt(r),s.head.appendChild(r)))}}function AS(t){qr.D(t),j0("dns-prefetch",t,null)}function DS(t,r){qr.C(t,r),j0("preconnect",t,r)}function NS(t,r,a){qr.L(t,r,a);var s=ql;if(s&&t&&r){var p='link[rel="preload"][as="'+Pn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+Pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+Pn(a.imageSizes)+'"]')):p+='[href="'+Pn(t)+'"]';var g=p;switch(r){case"style":g=Yl(t);break;case"script":g=Xl(t)}Qn.has(g)||(t=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Qn.set(g,t),s.querySelector(p)!==null||r==="style"&&s.querySelector(no(g))||r==="script"&&s.querySelector(ro(g))||(r=s.createElement("link"),en(r,"link",t),qt(r),s.head.appendChild(r)))}}function RS(t,r){qr.m(t,r);var a=ql;if(a&&t){var s=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Pn(s)+'"][href="'+Pn(t)+'"]',g=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Xl(t)}if(!Qn.has(g)&&(t=m({rel:"modulepreload",href:t},r),Qn.set(g,t),a.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ro(g)))return}s=a.createElement("link"),en(s,"link",t),qt(s),a.head.appendChild(s)}}}function OS(t,r,a){qr.S(t,r,a);var s=ql;if(s&&t){var p=hl(s).hoistableStyles,g=Yl(t);r=r||"default";var S=p.get(g);if(!S){var O={loading:0,preload:null};if(S=s.querySelector(no(g)))O.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Qn.get(g))&&Sd(t,a);var V=S=s.createElement("link");qt(V),en(V,"link",t),V._p=new Promise(function(K,ne){V.onload=K,V.onerror=ne}),V.addEventListener("load",function(){O.loading|=1}),V.addEventListener("error",function(){O.loading|=2}),O.loading|=4,$s(S,r,s)}S={type:"stylesheet",instance:S,count:1,state:O},p.set(g,S)}}}function MS(t,r){qr.X(t,r);var a=ql;if(a&&t){var s=hl(a).hoistableScripts,p=Xl(t),g=s.get(p);g||(g=a.querySelector(ro(p)),g||(t=m({src:t,async:!0},r),(r=Qn.get(p))&&wd(t,r),g=a.createElement("script"),qt(g),en(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(p,g))}}function jS(t,r){qr.M(t,r);var a=ql;if(a&&t){var s=hl(a).hoistableScripts,p=Xl(t),g=s.get(p);g||(g=a.querySelector(ro(p)),g||(t=m({src:t,async:!0,type:"module"},r),(r=Qn.get(p))&&wd(t,r),g=a.createElement("script"),qt(g),en(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(p,g))}}function _0(t,r,a,s){var p=(p=ue.current)?Xs(p):null;if(!p)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=Yl(a.href),a=hl(p).hoistableStyles,s=a.get(r),s||(s={type:"style",instance:null,count:0,state:null},a.set(r,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=Yl(a.href);var g=hl(p).hoistableStyles,S=g.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,S),(g=p.querySelector(no(t)))&&!g._p&&(S.instance=g,S.state.loading=5),Qn.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},Qn.set(t,a),g||_S(p,t,a,S.state))),r&&s===null)throw Error(l(528,""));return S}if(r&&s!==null)throw Error(l(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Xl(a),a=hl(p).hoistableScripts,s=a.get(r),s||(s={type:"script",instance:null,count:0,state:null},a.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function Yl(t){return'href="'+Pn(t)+'"'}function no(t){return'link[rel="stylesheet"]['+t+"]"}function L0(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function _S(t,r,a,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),en(r,"link",a),qt(r),t.head.appendChild(r))}function Xl(t){return'[src="'+Pn(t)+'"]'}function ro(t){return"script[async]"+t}function z0(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+Pn(a.href)+'"]');if(s)return r.instance=s,qt(s),s;var p=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),qt(s),en(s,"style",p),$s(s,a.precedence,t),r.instance=s;case"stylesheet":p=Yl(a.href);var g=t.querySelector(no(p));if(g)return r.state.loading|=4,r.instance=g,qt(g),g;s=L0(a),(p=Qn.get(p))&&Sd(s,p),g=(t.ownerDocument||t).createElement("link"),qt(g);var S=g;return S._p=new Promise(function(O,V){S.onload=O,S.onerror=V}),en(g,"link",s),r.state.loading|=4,$s(g,a.precedence,t),r.instance=g;case"script":return g=Xl(a.src),(p=t.querySelector(ro(g)))?(r.instance=p,qt(p),p):(s=a,(p=Qn.get(g))&&(s=m({},a),wd(s,p)),t=t.ownerDocument||t,p=t.createElement("script"),qt(p),en(p,"link",s),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,$s(s,a.precedence,t));return r.instance}function $s(t,r,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,g=p,S=0;S<s.length;S++){var O=s[S];if(O.dataset.precedence===r)g=O;else if(g!==p)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function Sd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function wd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Zs=null;function B0(t,r,a){if(Zs===null){var s=new Map,p=Zs=new Map;p.set(a,s)}else p=Zs,s=p.get(a),s||(s=new Map,p.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),p=0;p<a.length;p++){var g=a[p];if(!(g[ya]||g[Qt]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(r)||"";S=t+S;var O=s.get(S);O?O.push(g):s.set(S,[g])}}return s}function H0(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function LS(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function U0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function zS(t,r,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 p=Yl(s.href),g=r.querySelector(no(p));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=Gs.bind(t),r.then(t,t)),a.state.loading|=4,a.instance=g,qt(g);return}g=r.ownerDocument||r,s=L0(s),(p=Qn.get(p))&&Sd(s,p),g=g.createElement("link"),qt(g);var S=g;S._p=new Promise(function(O,V){S.onload=O,S.onerror=V}),en(g,"link",s),a.instance=g}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Gs.bind(t),r.addEventListener("load",a),r.addEventListener("error",a))}}var Cd=0;function BS(t,r){return t.stylesheets&&t.count===0&&Ks(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Ks(t,t.stylesheets),t.unsuspend){var g=t.unsuspend;t.unsuspend=null,g()}},6e4+r);0<t.imgBytes&&Cd===0&&(Cd=62500*bS());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ks(t,t.stylesheets),t.unsuspend)){var g=t.unsuspend;t.unsuspend=null,g()}},(t.imgBytes>Cd?50:800)+r);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function Gs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ks(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Qs=null;function Ks(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Qs=new Map,r.forEach(HS,t),Qs=null,Gs.call(t))}function HS(t,r){if(!(r.state.loading&4)){var a=Qs.get(t);if(a)var s=a.get(null);else{a=new Map,Qs.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var S=p[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(a.set(S.dataset.precedence,S),s=S)}s&&a.set(null,s)}p=r.instance,S=p.getAttribute("data-precedence"),g=a.get(S)||s,g===s&&a.set(null,p),a.set(S,p),this.count++,s=Gs.bind(this),p.addEventListener("load",s),p.addEventListener("error",s),g?g.parentNode.insertBefore(p,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var io={$$typeof:D,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function US(t,r,a,s,p,g,S,O,V){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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=s,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function I0(t,r,a,s,p,g,S,O,V,K,ne,oe){return t=new US(t,r,a,S,V,K,ne,oe,O),r=1,g===!0&&(r|=24),g=Rn(3,null,null,r),t.current=g,g.stateNode=t,r=tf(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:s,isDehydrated:a,cache:r},af(g),t}function V0(t){return t?(t=Cl,t):Cl}function P0(t,r,a,s,p,g){p=V0(p),s.context===null?s.context=p:s.pendingContext=p,s=ai(r),s.payload={element:a},g=g===void 0?null:g,g!==null&&(s.callback=g),a=oi(t,s,r),a!==null&&(wn(a,t,r),za(a,t,r))}function F0(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function Ed(t,r){F0(t,r),(t=t.alternate)&&F0(t,r)}function q0(t){if(t.tag===13||t.tag===31){var r=Ii(t,67108864);r!==null&&wn(r,t,67108864),Ed(t,67108864)}}function Y0(t){if(t.tag===13||t.tag===31){var r=Ln();r=Dn(r);var a=Ii(t,r);a!==null&&wn(a,t,r),Ed(t,r)}}var Js=!0;function IS(t,r,a,s){var p=H.T;H.T=null;var g=Z.p;try{Z.p=2,kd(t,r,a,s)}finally{Z.p=g,H.T=p}}function VS(t,r,a,s){var p=H.T;H.T=null;var g=Z.p;try{Z.p=8,kd(t,r,a,s)}finally{Z.p=g,H.T=p}}function kd(t,r,a,s){if(Js){var p=Td(s);if(p===null)fd(t,r,s,Ws,a),$0(t,s);else if(FS(p,t,r,a,s))s.stopPropagation();else if($0(t,s),r&4&&-1<PS.indexOf(t)){for(;p!==null;){var g=dl(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=xt(g.pendingLanes);if(S!==0){var O=g;for(O.pendingLanes|=2,O.entangledLanes|=2;S;){var V=1<<31-qe(S);O.entanglements[1]|=V,S&=~V}gr(g),(Ze&6)===0&&(Ls=ct()+500,Ja(0))}}break;case 31:case 13:O=Ii(g,2),O!==null&&wn(O,g,2),Bs(),Ed(g,2)}if(g=Td(s),g===null&&fd(t,r,s,Ws,a),g===p)break;p=g}p!==null&&s.stopPropagation()}else fd(t,r,s,null,a)}}function Td(t){return t=Ac(t),Ad(t)}var Ws=null;function Ad(t){if(Ws=null,t=fl(t),t!==null){var r=u(t);if(r===null)t=null;else{var a=r.tag;if(a===13){if(t=c(r),t!==null)return t;t=null}else if(a===31){if(t=f(r),t!==null)return t;t=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Ws=t,null}function X0(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(Li()){case re:return 2;case ce:return 8;case Se:case De:return 32;case je:return 268435456;default:return 32}default:return 32}}var Dd=!1,vi=null,yi=null,xi=null,lo=new Map,ao=new Map,Si=[],PS="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 $0(t,r){switch(t){case"focusin":case"focusout":vi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":xi=null;break;case"pointerover":case"pointerout":lo.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":ao.delete(r.pointerId)}}function oo(t,r,a,s,p,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:a,eventSystemFlags:s,nativeEvent:g,targetContainers:[p]},r!==null&&(r=dl(r),r!==null&&q0(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function FS(t,r,a,s,p){switch(r){case"focusin":return vi=oo(vi,t,r,a,s,p),!0;case"dragenter":return yi=oo(yi,t,r,a,s,p),!0;case"mouseover":return xi=oo(xi,t,r,a,s,p),!0;case"pointerover":var g=p.pointerId;return lo.set(g,oo(lo.get(g)||null,t,r,a,s,p)),!0;case"gotpointercapture":return g=p.pointerId,ao.set(g,oo(ao.get(g)||null,t,r,a,s,p)),!0}return!1}function Z0(t){var r=fl(t.target);if(r!==null){var a=u(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){t.blockedOn=r,Wr(t.priority,function(){Y0(a)});return}}else if(r===31){if(r=f(a),r!==null){t.blockedOn=r,Wr(t.priority,function(){Y0(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function eu(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=Td(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Tc=s,a.target.dispatchEvent(s),Tc=null}else return r=dl(a),r!==null&&q0(r),t.blockedOn=a,!1;r.shift()}return!0}function G0(t,r,a){eu(t)&&a.delete(r)}function qS(){Dd=!1,vi!==null&&eu(vi)&&(vi=null),yi!==null&&eu(yi)&&(yi=null),xi!==null&&eu(xi)&&(xi=null),lo.forEach(G0),ao.forEach(G0)}function tu(t,r){t.blockedOn===r&&(t.blockedOn=null,Dd||(Dd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qS)))}var nu=null;function Q0(t){nu!==t&&(nu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nu===t&&(nu=null);for(var r=0;r<t.length;r+=3){var a=t[r],s=t[r+1],p=t[r+2];if(typeof s!="function"){if(Ad(s||a)===null)continue;break}var g=dl(a);g!==null&&(t.splice(r,3),r-=3,Tf(g,{pending:!0,data:p,method:a.method,action:s},s,p))}}))}function $l(t){function r(V){return tu(V,t)}vi!==null&&tu(vi,t),yi!==null&&tu(yi,t),xi!==null&&tu(xi,t),lo.forEach(r),ao.forEach(r);for(var a=0;a<Si.length;a++){var s=Si[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Si.length&&(a=Si[0],a.blockedOn===null);)Z0(a),a.blockedOn===null&&Si.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var p=a[s],g=a[s+1],S=p[gn]||null;if(typeof g=="function")S||Q0(a);else if(S){var O=null;if(g&&g.hasAttribute("formAction")){if(p=g,S=g[gn]||null)O=S.formAction;else if(Ad(p)!==null)continue}else O=S.action;typeof O=="function"?a[s+1]=O:(a.splice(s,3),s-=3),Q0(a)}}}function K0(){function t(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return p=S})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function Nd(t){this._internalRoot=t}ru.prototype.render=Nd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,s=Ln();P0(a,s,t,r,null,null)},ru.prototype.unmount=Nd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;P0(t.current,2,null,t,null,null),Bs(),r[cl]=null}};function ru(t){this._internalRoot=t}ru.prototype.unstable_scheduleHydration=function(t){if(t){var r=cn();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Si.length&&r!==0&&r<Si[a].priority;a++);Si.splice(a,0,t),a===0&&Z0(t)}};var J0=n.version;if(J0!=="19.2.8")throw Error(l(527,J0,"19.2.8"));Z.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=h(r),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var YS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{gt=iu.inject(YS),yt=iu}catch{}}return uo.createRoot=function(t,r){if(!o(t))throw Error(l(299));var a=!1,s="",p=l1,g=a1,S=o1;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError)),r=I0(t,1,!1,null,null,a,s,null,p,g,S,K0),t[cl]=r.current,cd(t),new Nd(r)},uo.hydrateRoot=function(t,r,a){if(!o(t))throw Error(l(299));var s=!1,p="",g=l1,S=a1,O=o1,V=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(O=a.onRecoverableError),a.formState!==void 0&&(V=a.formState)),r=I0(t,1,!0,r,a??null,s,p,V,g,S,O,K0),r.context=V0(null),a=r.current,s=Ln(),s=Dn(s),p=ai(s),p.callback=null,oi(a,p,s),a=s,r.current.lanes=a,it(r,a),gr(r),t[cl]=r.current,cd(t),new ru(r)},uo.version="19.2.8",uo}var hb;function r4(){if(hb)return Md.exports;hb=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(),Md.exports=n4(),Md.exports}var i4=r4(),E=om();const ae=$u(E),_o=$S({__proto__:null,default:ae},[E]),mb=e=>{let n;const i=new Set,l=(h,b)=>{const m=typeof h=="function"?h(n):h;if(!Object.is(m,n)){const y=n;n=b??(typeof m!="object"||m===null)?m:Object.assign({},n,m),i.forEach(v=>v(n,y))}},o=()=>n,f={setState:l,getState:o,getInitialState:()=>d,subscribe:h=>(i.add(h),()=>i.delete(h))},d=n=e(l,o,f);return f},l4=(e=>e?mb(e):mb),a4=e=>e;function o4(e,n=a4){const i=ae.useSyncExternalStore(e.subscribe,ae.useCallback(()=>n(e.getState()),[e,n]),ae.useCallback(()=>n(e.getInitialState()),[e,n]));return ae.useDebugValue(i),i}function wh(e,n){return Date.parse(n.frontmatter.created)-Date.parse(e.frontmatter.created)}function s4(e,n){return Date.parse(n.frontmatter.updated)-Date.parse(e.frontmatter.updated)}function Tu(e,n,i){const l={};for(const[o,u]of Object.entries(e))l[o]=u.filter(c=>c!==n&&(i===void 0||i.has(c)));return l}function Bd({layout:e,tasks:n,slug:i,toStatus:l,position:o,doneColumn:u}){const c=new Set(n.map(v=>v.slug)),f=Tu(e,i,c);if(delete f[u],l===u)return f;const d=f[l]??[],h=new Set(d),b=n.filter(v=>v.frontmatter.status===l&&v.slug!==i&&!h.has(v.slug)).slice().sort(wh).map(v=>v.slug),m=[...d,...b],y=o<0||o>m.length?m.length:o;return m.splice(y,0,i),f[l]=m,f}function Au(e,n,i,l,o){if(!l.has(i))return e.filter(b=>!l.has(b.frontmatter.status)).slice().sort(wh);if(i===o)return e.filter(b=>b.frontmatter.status===i).slice().sort(s4);const u=e.filter(b=>b.frontmatter.status===i),c=new Map(u.map(b=>[b.slug,b])),f=[],d=new Set;for(const b of(n==null?void 0:n[i])??[]){const m=c.get(b);m&&(f.push(m),d.add(b))}const h=u.filter(b=>!d.has(b.slug)).slice().sort(wh);return[...f,...h]}var ar=dy();const u4=$u(ar);function c4(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}const f4=e=>{switch(e){case"success":return m4;case"info":return g4;case"warning":return p4;case"error":return b4;default:return null}},d4=Array(12).fill(0),h4=({visible:e,className:n})=>ae.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},ae.createElement("div",{className:"sonner-spinner"},d4.map((i,l)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),m4=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),p4=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),g4=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),b4=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v4=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),y4=()=>{const[e,n]=ae.useState(document.hidden);return ae.useEffect(()=>{const i=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i)},[]),e};let x4=1;const S4=100,pb=e=>{var n;return typeof(e==null?void 0:e.id)=="number"||(e==null||(n=e.id)==null?void 0:n.length)>0?e.id:x4++};class w4{constructor(){this.subscribe=n=>(this.subscribers.push(n),this.getActiveToasts().forEach(i=>n(i)),()=>{const i=this.subscribers.indexOf(n);this.subscribers.splice(i,1)}),this.publish=n=>{this.subscribers.forEach(i=>i(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n],this.trimHistory()},this.trimHistory=()=>{let n=this.toasts.length-S4;n<=0||(this.toasts=this.toasts.filter(i=>n>0&&this.dismissedToasts.has(i.id)?(this.dismissedToasts.delete(i.id),n--,!1):!0))},this.create=n=>{const{message:i,...l}=n,o=pb(n),u=this.pendingDismissals.get(o);u!==void 0&&(cancelAnimationFrame(u),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o));const c=this.dismissedToasts.has(o),f=n.dismissible===void 0?!0:n.dismissible;return c&&(this.dismissedToasts.delete(o),this.toasts=this.toasts.filter(h=>h.id!==o)),(c?void 0:this.toasts.find(h=>h.id===o))?this.toasts=this.toasts.map(h=>h.id===o?(this.publish({...h,...n,id:o,title:i}),{...h,...n,id:o,dismissible:f,title:i}):h):this.addToast({title:i,...l,dismissible:f,id:o}),o},this.dismiss=n=>{if(n==null)return this.getActiveToasts().forEach(l=>{this.dismissedToasts.add(l.id),this.subscribers.forEach(o=>o({id:l.id,dismiss:!0}))}),n;this.dismissedToasts.add(n);const i=this.pendingDismissals.get(n);return i!==void 0&&cancelAnimationFrame(i),this.pendingDismissals.set(n,requestAnimationFrame(()=>{this.pendingDismissals.delete(n),this.subscribers.forEach(l=>l({id:n,dismiss:!0}))})),n},this.message=(n,i)=>this.create({...i,message:n,type:void 0}),this.error=(n,i)=>this.create({...i,message:n,type:"error"}),this.success=(n,i)=>this.create({...i,type:"success",message:n}),this.info=(n,i)=>this.create({...i,type:"info",message:n}),this.warning=(n,i)=>this.create({...i,type:"warning",message:n}),this.loading=(n,i)=>this.create({...i,type:"loading",message:n}),this.promise=(n,i)=>{if(!i)return;let l;i.loading!==void 0&&(l=this.create({...i,promise:n,type:"loading",message:i.loading,description:typeof i.description!="function"?i.description:void 0}));const o=Promise.resolve(n instanceof Function?n():n);let u=l!==void 0,c;const f=o.then(async h=>{if(c=["resolve",h],ae.isValidElement(h))u=!1,this.create({id:l,type:"default",message:h});else if(E4(h)&&!h.ok){u=!1;const m=typeof i.error=="function"?await i.error(`HTTP error! status: ${h.status}`):i.error,y=typeof i.description=="function"?await i.description(`HTTP error! status: ${h.status}`):i.description,k=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:l,type:"error",description:y,...k})}else if(h instanceof Error){u=!1;const m=typeof i.error=="function"?await i.error(h):i.error,y=typeof i.description=="function"?await i.description(h):i.description,k=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:l,type:"error",description:y,...k})}else if(i.success!==void 0){u=!1;const m=typeof i.success=="function"?await i.success(h):i.success,y=typeof i.description=="function"?await i.description(h):i.description,k=typeof m=="object"&&!ae.isValidElement(m)?m:{message:m};this.create({id:l,type:"success",description:y,...k})}}).catch(async h=>{if(c=["reject",h],i.error!==void 0){u=!1;const b=typeof i.error=="function"?await i.error(h):i.error,m=typeof i.description=="function"?await i.description(h):i.description,v=typeof b=="object"&&!ae.isValidElement(b)?b:{message:b};this.create({id:l,type:"error",description:m,...v})}}).finally(()=>{u&&(this.dismiss(l),l=void 0),i.finally==null||i.finally.call(i)}),d=()=>new Promise((h,b)=>f.then(()=>c[0]==="reject"?b(c[1]):h(c[1])).catch(b));return typeof l!="string"&&typeof l!="number"?{unwrap:d}:Object.assign(l,{unwrap:d})},this.custom=(n,i)=>{const l=pb(i);return this.create({...i,jsx:n(l),id:l,type:void 0}),l},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}const En=new w4,C4=(e,n)=>En.message(e,n),E4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",k4=C4,T4=()=>En.toasts,A4=()=>En.getActiveToasts(),go=Object.assign(k4,{success:En.success,info:En.info,warning:En.warning,error:En.error,custom:En.custom,message:En.message,promise:En.promise,dismiss:En.dismiss,loading:En.loading},{getHistory:T4,getToasts:A4});c4("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function lu(e){return e.label!==void 0}const D4=3,N4="24px",R4="16px",gb=4e3,O4=356,M4=14,j4=45,_4=200;function br(...e){return e.filter(Boolean).join(" ")}function L4(e){const[n,i]=e.split("-"),l=[];return n&&l.push(n),i&&l.push(i),l}const z4=e=>{var n,i,l,o,u,c,f,d,h;const{invert:b,toast:m,unstyled:y,interacting:v,setHeights:k,visibleToasts:T,heights:C,index:w,toasts:A,expanded:D,removeToast:R,defaultRichColors:_,closeButton:N,style:M,cancelButtonStyle:B,actionButtonStyle:F,className:L="",descriptionClassName:P="",duration:X,position:U,gap:q,expandByDefault:J,classNames:H,icons:Z,closeButtonAriaLabel:te="Close toast"}=e,[se,z]=ae.useState(null),[I,G]=ae.useState(null),[j,ie]=ae.useState(!1),[de,ue]=ae.useState(!1),[ve,me]=ae.useState(!1),[he,be]=ae.useState(!1),[Te,Ce]=ae.useState(!1),[Ae,Pe]=ae.useState(0),[st,pt]=ae.useState(0),Ot=ae.useRef(m.duration||X||gb),nn=ae.useRef(null),Et=ae.useRef(null),It=w===0,pn=w+1<=T,Ge=m.type,Tr=Ge??"default",ct=m.dismissible!==!1,Li=m.className||"",re=m.descriptionClassName||"",ce=ae.useMemo(()=>C.findIndex(xe=>xe.toastId===m.id)||0,[C,m.id]),Se=ae.useMemo(()=>{var xe;return(xe=m.closeButton)!=null?xe:N},[m.closeButton,N]),De=ae.useMemo(()=>m.duration||X||gb,[m.duration,X]),je=ae.useRef(0),Qe=ae.useRef(0),sn=ae.useRef(0),gt=ae.useRef(null),[yt,Mt]=U.split("-"),qe=ae.useMemo(()=>C.reduce((xe,Ue,$e)=>$e>=ce?xe:xe+Ue.height,0),[C,ce]),An=y4(),ft=ae.useMemo(()=>{var xe;return(xe=e.swipeDirections)!=null?xe:L4(U)},[e.swipeDirections,U]),va=m.invert||b,dr=Ge==="loading";Qe.current=ae.useMemo(()=>ce*q+qe,[ce,qe]),ae.useEffect(()=>{Ot.current=De},[De]),ae.useEffect(()=>{ie(!0)},[]),ae.useEffect(()=>{const xe=Et.current;if(xe){const Ue=xe.getBoundingClientRect().height;return pt(Ue),k($e=>[{toastId:m.id,height:Ue,position:m.position},...$e]),()=>k($e=>$e.filter(it=>it.toastId!==m.id))}},[k,m.id]),ae.useLayoutEffect(()=>{if(!j)return;const xe=Et.current,Ue=xe.style.height;xe.style.height="auto";const $e=xe.getBoundingClientRect().height;xe.style.height=Ue,pt($e),k(it=>it.find(Ke=>Ke.toastId===m.id)?it.map(Ke=>Ke.toastId===m.id?{...Ke,height:$e}:Ke):[{toastId:m.id,height:$e,position:m.position},...it])},[j,m.title,m.description,k,m.id,m.jsx,m.action,m.cancel]);const un=ae.useCallback(()=>{ue(!0),Pe(Qe.current),k(xe=>xe.filter(Ue=>Ue.toastId!==m.id)),setTimeout(()=>{R(m)},_4)},[m,R,k,Qe]);ae.useEffect(()=>{if(m.promise&&Ge==="loading"||m.duration===1/0||m.type==="loading")return;let xe;return D||v||An?(()=>{if(sn.current<je.current){const it=new Date().getTime()-je.current;Ot.current=Ot.current-it}sn.current=new Date().getTime()})():(()=>{Ot.current!==1/0&&(je.current=new Date().getTime(),xe=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),un()},Ot.current))})(),()=>clearTimeout(xe)},[D,v,m,Ge,An,un]),ae.useEffect(()=>{m.delete&&(un(),m.onDismiss==null||m.onDismiss.call(m,m))},[un,m.delete]);function bt(){var xe;if(Z!=null&&Z.loading){var Ue;return ae.createElement("div",{className:br(H==null?void 0:H.loader,m==null||(Ue=m.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":Ge==="loading"},Z.loading)}return ae.createElement(h4,{className:br(H==null?void 0:H.loader,m==null||(xe=m.classNames)==null?void 0:xe.loader),visible:Ge==="loading"})}const xt=m.icon||(Z==null?void 0:Z[Ge])||f4(Ge);var Dt,Gt;return ae.createElement("li",{tabIndex:0,ref:Et,className:br(L,Li,H==null?void 0:H.toast,m==null||(n=m.classNames)==null?void 0:n.toast,H==null?void 0:H[Tr],m==null||(i=m.classNames)==null?void 0:i[Tr]),"data-sonner-toast":"","data-rich-colors":(Dt=m.richColors)!=null?Dt:_,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":j,"data-promise":!!m.promise,"data-swiped":Te,"data-removed":de,"data-visible":pn,"data-y-position":yt,"data-x-position":Mt,"data-index":w,"data-front":It,"data-swiping":ve,"data-dismissible":ct,"data-type":Ge,"data-invert":va,"data-swipe-out":he,"data-swipe-direction":I,"data-expanded":!!(D||J&&j),"data-testid":m.testId,style:{"--index":w,"--toasts-before":w,"--z-index":A.length-w,"--offset":`${de?Ae:Qe.current}px`,"--initial-height":J?"auto":`${st}px`,...M,...m.style},onDragEnd:()=>{me(!1),z(null),gt.current=null},onPointerDown:xe=>{xe.button!==2&&(dr||!ct||(nn.current=new Date,Pe(Qe.current),xe.target.setPointerCapture(xe.pointerId),xe.target.tagName!=="BUTTON"&&(me(!0),gt.current={x:xe.clientX,y:xe.clientY})))},onPointerUp:()=>{var xe,Ue,$e;if(he||!ct)return;gt.current=null;const it=Number(((xe=Et.current)==null?void 0:xe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),dt=Number(((Ue=Et.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-(($e=nn.current)==null?void 0:$e.getTime()),ut=se==="x"?it:dt,St=Math.abs(ut)/Ke;if((se==="x"?ft.includes(it>0?"right":"left"):ft.includes(dt>0?"bottom":"top"))&&(Math.abs(ut)>=j4||St>.11)){Pe(Qe.current),m.onDismiss==null||m.onDismiss.call(m,m),G(se==="x"?it>0?"right":"left":dt>0?"down":"up"),un(),be(!0);return}else{var jt,cn;(jt=Et.current)==null||jt.style.setProperty("--swipe-amount-x","0px"),(cn=Et.current)==null||cn.style.setProperty("--swipe-amount-y","0px")}Ce(!1),me(!1),z(null)},onPointerMove:xe=>{var Ue,$e,it;if(!gt.current||!ct||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;const Ke=xe.clientY-gt.current.y,ut=xe.clientX-gt.current.x;!se&&(Math.abs(ut)>1||Math.abs(Ke)>1)&&z(Math.abs(ut)>Math.abs(Ke)?"x":"y");let St={x:0,y:0};const Dn=jt=>1/(1.5+Math.abs(jt)/20);if(se==="y"){if(ft.includes("top")||ft.includes("bottom"))if(ft.includes("top")&&Ke<0||ft.includes("bottom")&&Ke>0)St.y=Ke;else{const jt=Ke*Dn(Ke);St.y=Math.abs(jt)<Math.abs(Ke)?jt:Ke}}else if(se==="x"&&(ft.includes("left")||ft.includes("right")))if(ft.includes("left")&&ut<0||ft.includes("right")&&ut>0)St.x=ut;else{const jt=ut*Dn(ut);St.x=Math.abs(jt)<Math.abs(ut)?jt:ut}(Math.abs(St.x)>0||Math.abs(St.y)>0)&&Ce(!0),($e=Et.current)==null||$e.style.setProperty("--swipe-amount-x",`${St.x}px`),(it=Et.current)==null||it.style.setProperty("--swipe-amount-y",`${St.y}px`)}},Se&&!m.jsx&&Ge!=="loading"?ae.createElement("button",{"aria-label":te,"data-disabled":dr,"data-close-button":!0,onClick:dr||!ct?()=>{}:()=>{un(),m.onDismiss==null||m.onDismiss.call(m,m)},className:br(H==null?void 0:H.closeButton,m==null||(l=m.classNames)==null?void 0:l.closeButton)},(Gt=Z==null?void 0:Z.close)!=null?Gt:v4):null,(Ge||m.icon||m.promise)&&m.icon!==null&&((Z==null?void 0:Z[Ge])!==null||m.icon)?ae.createElement("div",{"data-icon":"",className:br(H==null?void 0:H.icon,m==null||(o=m.classNames)==null?void 0:o.icon)},Ge==="loading"?m.icon||bt():m.promise?bt():null,Ge!=="loading"?xt:null):null,ae.createElement("div",{"data-content":"",className:br(H==null?void 0:H.content,m==null||(u=m.classNames)==null?void 0:u.content)},ae.createElement("div",{"data-title":"",className:br(H==null?void 0:H.title,m==null||(c=m.classNames)==null?void 0:c.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?ae.createElement("div",{"data-description":"",className:br(P,re,H==null?void 0:H.description,m==null||(f=m.classNames)==null?void 0:f.description)},typeof m.description=="function"?m.description():m.description):null),ae.isValidElement(m.cancel)?m.cancel:m.cancel&&lu(m.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||B,onClick:xe=>{lu(m.cancel)&&ct&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,xe),un())},className:br(H==null?void 0:H.cancelButton,m==null||(d=m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,ae.isValidElement(m.action)?m.action:m.action&&lu(m.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||F,onClick:xe=>{lu(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,xe),!xe.defaultPrevented&&un())},className:br(H==null?void 0:H.actionButton,m==null||(h=m.classNames)==null?void 0:h.actionButton)},m.action.label):null)};function bb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function B4(e,n){const i={};return[e,n].forEach((l,o)=>{const u=o===1,c=u?"--mobile-offset":"--offset",f=u?R4:N4;function d(h){["top","right","bottom","left"].forEach(b=>{i[`${c}-${b}`]=typeof h=="number"?`${h}px`:h})}typeof l=="number"||typeof l=="string"?d(l):typeof l=="object"?["top","right","bottom","left"].forEach(h=>{l[h]===void 0?i[`${c}-${h}`]=f:i[`${c}-${h}`]=typeof l[h]=="number"?`${l[h]}px`:l[h]}):d(f)}),i}const H4=ae.forwardRef(function(n,i){const{id:l,invert:o,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:d,className:h,offset:b,mobileOffset:m,theme:y="light",richColors:v,duration:k,style:T,visibleToasts:C=D4,toastOptions:w,dir:A=bb(),gap:D=M4,icons:R,customAriaLabel:_,containerAriaLabel:N="Notifications"}=n,[M,B]=ae.useState([]),F=ae.useMemo(()=>l?M.filter(ie=>ie.toasterId===l):M.filter(ie=>!ie.toasterId),[M,l]),L=ae.useMemo(()=>Array.from(new Set([u].concat(F.filter(ie=>ie.position).map(ie=>ie.position)))),[F,u]),[P,X]=ae.useState([]),[U,q]=ae.useState(!1),[J,H]=ae.useState(!1),[Z,te]=ae.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),se=ae.useRef(null),z=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=ae.useRef(null),G=ae.useRef(!1),j=ae.useCallback(ie=>{B(de=>{var ue;return(ue=de.find(ve=>ve.id===ie.id))!=null&&ue.delete||En.dismiss(ie.id),de.filter(({id:ve})=>ve!==ie.id)})},[]);return ae.useEffect(()=>En.subscribe(ie=>{if(ie.dismiss){requestAnimationFrame(()=>{B(de=>de.map(ue=>ue.id===ie.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{u4.flushSync(()=>{B(de=>{const ue=de.findIndex(ve=>ve.id===ie.id);return ue!==-1?[...de.slice(0,ue),{...de[ue],...ie},...de.slice(ue+1)]:[ie,...de]})})})}),[]),ae.useEffect(()=>{if(y!=="system"){te(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const ie=window.matchMedia("(prefers-color-scheme: dark)");try{ie.addEventListener("change",({matches:de})=>{te(de?"dark":"light")})}catch{ie.addListener(({matches:ue})=>{try{te(ue?"dark":"light")}catch(ve){console.error(ve)}})}},[y]),ae.useEffect(()=>{M.length<=1&&q(!1)},[M]),ae.useEffect(()=>{const ie=de=>{var ue;if(c.length>0&&c.every(he=>de[he]||de.code===he)){var me;q(!0),(me=se.current)==null||me.focus()}de.code==="Escape"&&(document.activeElement===se.current||(ue=se.current)!=null&&ue.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[c]),ae.useEffect(()=>{if(se.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,G.current=!1)}},[se.current]),ae.createElement("section",{ref:i,"aria-label":_??`${N} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},L.map((ie,de)=>{var ue;const[ve,me]=ie.split("-");return F.length?ae.createElement("ol",{key:ie,dir:A==="auto"?bb():A,tabIndex:-1,ref:se,className:h,"data-sonner-toaster":!0,"data-sonner-theme":Z,"data-y-position":ve,"data-x-position":me,style:{"--front-toast-height":`${((ue=P[0])==null?void 0:ue.height)||0}px`,"--width":`${O4}px`,"--gap":`${D}px`,...T,...B4(b,m)},onBlur:he=>{G.current&&!he.currentTarget.contains(he.relatedTarget)&&(G.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||G.current||(G.current=!0,I.current=he.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{J||q(!1)},onDragEnd:()=>q(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},F.filter(he=>!he.position&&de===0||he.position===ie).map((he,be)=>{var Te,Ce;return ae.createElement(z4,{key:he.id,icons:R,index:be,toast:he,defaultRichColors:v,duration:(Te=w==null?void 0:w.duration)!=null?Te:k,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:o,visibleToasts:C,closeButton:(Ce=w==null?void 0:w.closeButton)!=null?Ce:d,interacting:J,position:ie,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,closeButtonAriaLabel:w==null?void 0:w.closeButtonAriaLabel,removeToast:j,toasts:F.filter(Ae=>Ae.position==he.position),heights:P.filter(Ae=>Ae.position==he.position),setHeights:X,expandByDefault:f,gap:D,expanded:U,swipeDirections:n.swipeDirections})})):null}))}),rl="__uncategorized__";function U4(e,n={}){const i=new Map,l=new Map;let o=!1,u,c="replace",f=n.initialTaskSlug??null;function d(C){l.set(C,(l.get(C)??0)+1)}function h(C){const w=(l.get(C)??0)-1;if(w>0){l.set(C,w);return}l.delete(C),l.size===0&&o&&(o=!1,u==null||u.getState().refresh())}u=l4((C,w)=>({readOnly:!!e.readOnly,resolveRepoLink:e.resolveRepoLink?A=>{var D;return((D=e.resolveRepoLink)==null?void 0:D.call(e,A))??null}:null,config:null,tasks:[],warnings:[],unreadable:[],archiveViewOpen:!1,archivedTasks:null,archivedSlugs:[],archiveWarnings:[],archiveUnreadable:[],isArchiveLoading:!1,archiveLoadError:null,selectedTaskSlug:n.initialTaskSlug??null,taskTrail:n.initialTaskSlug?[...n.initialTrail??[]]:[],searchQuery:"",flaggedOnly:!1,lastSyncedAt:null,isSyncing:!1,hasLoaded:!1,initialLoadError:null,errorAtBySlug:{},dirtyDrafts:{},pendingNavigation:null,refresh:async()=>{C({isSyncing:!0});try{const[A,D]=await Promise.all([e.getConfig(),e.listTasks()]);l.size>0&&(o=!0),C(R=>({...I4(R,A,D,l),lastSyncedAt:Date.now(),isSyncing:!1,hasLoaded:!0,initialLoadError:null})),v()}catch(A){const D=ir(A);if(!w().hasLoaded){C({initialLoadError:D,isSyncing:!1});return}C({isSyncing:!1}),go.error(`Sync failed: ${D}`)}},moveTask:async(A,D)=>{await w().reorderTask(A,D,-1)},reorderTask:async(A,D,R)=>{const _=Ci(w(),A);if(_.task){C(N=>({tasks:N.tasks.map(M=>M.slug===A?{...M,frontmatter:{...M.frontmatter,status:D}}:M),config:N.config?{...N.config,layout:Bd({layout:N.config.layout??{},tasks:N.tasks,slug:A,toStatus:D,position:R,doneColumn:N.config.done_column})}:null})),d(A);try{const{task:N,layout:M}=await e.reorderTask(A,D,R);C(B=>({tasks:B.tasks.map(F=>F.slug===A?N:F),config:B.config?{...B.config,layout:M}:null}))}catch(N){Ei(C,_,`Move failed: ${ir(N)}`)}finally{h(A)}}},updateTask:async(A,D,R)=>{const _=Ci(w(),A),N=_.task!==void 0&&D.status!==void 0&&D.status!==_.task.frontmatter.status;C(M=>({tasks:M.tasks.map(B=>B.slug===A?{...B,frontmatter:{...B.frontmatter,...D},body:R??B.body}:B),config:N&&M.config?{...M.config,layout:Bd({layout:M.config.layout??{},tasks:M.tasks,slug:A,toStatus:D.status,position:-1,doneColumn:M.config.done_column})}:M.config})),d(A);try{const{task:M,layout:B}=await e.updateTask(A,D,R);co(C,M,A),B&&C(L=>({config:L.config?{...L.config,layout:B}:L.config}));const F=new Set(Object.keys(D));F.size&&C(L=>({warnings:L.warnings.filter(P=>P.slug!==A||!F.has(P.field))}))}catch(M){Ei(C,_,`Update failed: ${ir(M)}`)}finally{h(A)}},addComment:async(A,D)=>{if(w().readOnly)return!1;const R=Ci(w(),A);if(!R.task||!D.trim())return!1;const _=new Date().toISOString();C(N=>({tasks:N.tasks.map(M=>M.slug===A?{...M,frontmatter:{...M.frontmatter,updated:_},comments:[...M.comments??[],{timestamp:_,text:D.trim()}]}:M)})),d(A);try{const N=await e.addComment(A,D);return co(C,N,A),!0}catch(N){return Ei(C,R,`Task update failed: ${ir(N)}`),!1}finally{h(A)}},editComment:async(A,D,R)=>{var B;if(w().readOnly)return!1;const _=Ci(w(),A),N=R.trim();if(!_.task||!N||!Number.isInteger(D)||D<0||D>=(((B=_.task.comments)==null?void 0:B.length)??0))return!1;const M=new Date().toISOString();C(F=>({tasks:F.tasks.map(L=>L.slug===A?{...L,frontmatter:{...L.frontmatter,updated:M},comments:L.comments.map((P,X)=>X===D?{...P,text:N}:P)}:L)})),d(A);try{const F=await e.editComment(A,D,R);return co(C,F,A),!0}catch(F){return Ei(C,_,`Task update edit failed: ${ir(F)}`),!1}finally{h(A)}},deleteComment:async(A,D)=>{var N;if(w().readOnly)return!1;const R=Ci(w(),A);if(!R.task||!Number.isInteger(D)||D<0||D>=(((N=R.task.comments)==null?void 0:N.length)??0))return!1;const _=new Date().toISOString();C(M=>({tasks:M.tasks.map(B=>B.slug===A?{...B,frontmatter:{...B.frontmatter,updated:_},comments:B.comments.filter((F,L)=>L!==D)}:B)})),d(A);try{const M=await e.deleteComment(A,D);return co(C,M,A),!0}catch(M){return Ei(C,R,`Task update delete failed: ${ir(M)}`),!1}finally{h(A)}},createTask:async(A,D)=>{var F,L,P;const R=(D==null?void 0:D.status)??((F=w().config)==null?void 0:F.default_column)??((P=(L=w().config)==null?void 0:L.columns.at(0))==null?void 0:P.id)??rl,_=`new-${crypto.randomUUID()}`,N=new Date().toISOString(),M={slug:_,frontmatter:{title:A,status:R,priority:D==null?void 0:D.priority,assignee:D==null?void 0:D.assignee,tags:D==null?void 0:D.tags,depends_on:D==null?void 0:D.depends_on,created:N,updated:N},body:"",comments:[]},B=Ci(w(),_);C(X=>({tasks:[M,...X.tasks]})),d(_);try{const X=await e.createTask(A,D);co(C,X,_)}catch(X){Ei(C,B,`Create failed: ${ir(X)}`)}finally{h(_)}},deleteTask:async A=>{const D=Ci(w(),A);C(R=>({tasks:R.tasks.filter(_=>_.slug!==A),selectedTaskSlug:R.selectedTaskSlug===A?null:R.selectedTaskSlug,taskTrail:R.selectedTaskSlug===A?[]:R.taskTrail,config:R.config?{...R.config,layout:Tu(R.config.layout??{},A)}:null})),d(A);try{await e.deleteTask(A)}catch(R){Ei(C,D,`Delete failed: ${ir(R)}`)}finally{h(A)}},archiveTask:async(A,D=!1)=>{const R=w(),_=Ci(R,A),N=_.task;if(!N)return;const M=N.frontmatter.status,B=R.config?Au(R.tasks,R.config.layout,M,new Set(R.config.columns.map(F=>F.id)),R.config.done_column).findIndex(F=>F.slug===A):-1;C(F=>({tasks:F.tasks.filter(L=>L.slug!==A),selectedTaskSlug:F.selectedTaskSlug===A?null:F.selectedTaskSlug,taskTrail:F.selectedTaskSlug===A?[]:F.taskTrail,config:F.config?{...F.config,layout:Tu(F.config.layout??{},A)}:null})),d(A);try{await e.archiveTask(A,D?{force:!0}:void 0),i.set(A,{status:M,position:B}),C(F=>({archivedSlugs:[...F.archivedSlugs.filter(L=>L!==A),A],archivedTasks:F.archivedTasks?[N,...F.archivedTasks.filter(L=>L.slug!==A)]:null})),go.success("Task archived",{description:N.frontmatter.title,action:{label:"Undo",onClick:()=>void w().unarchiveTask(A)}})}catch(F){Ei(C,_,`Archive failed: ${ir(F)}`)}finally{h(A)}},unarchiveTask:async A=>{var D;d(A);try{let R=await e.unarchiveTask(A),_;const N=i.get(A);if(N&&N.position>=0&&R.frontmatter.status===N.status&&R.frontmatter.status!==((D=w().config)==null?void 0:D.done_column)){const M=await e.reorderTask(R.slug,N.status,N.position);R=M.task,_=M.layout}i.delete(A),C(M=>{const B=M.tasks.filter(P=>P.slug!==R.slug),F=[R,...B],L=_??(M.config?Bd({layout:M.config.layout??{},tasks:F,slug:R.slug,toStatus:R.frontmatter.status,position:-1,doneColumn:M.config.done_column}):{});return{tasks:F,config:M.config?{...M.config,layout:L}:null,archivedSlugs:M.archivedSlugs.filter(P=>P!==R.slug),archivedTasks:M.archivedTasks?M.archivedTasks.filter(P=>P.slug!==R.slug):null}}),go.success("Task restored",{description:R.frontmatter.title})}catch(R){go.error(`Restore failed: ${ir(R)}`)}finally{h(A)}},openArchive:()=>{w().readOnly||k({to:"archive"})},closeArchive:()=>C({archiveViewOpen:!1}),loadArchivedTasks:async()=>{if(!w().readOnly){C({isArchiveLoading:!0,archiveLoadError:null});try{const A=await e.listArchivedTasks();C({archivedTasks:A.tasks,archiveWarnings:A.warnings,archiveUnreadable:A.unreadable,isArchiveLoading:!1,archiveLoadError:null})}catch(A){C({isArchiveLoading:!1,archiveLoadError:ir(A)})}}},selectTask:A=>{A!==w().selectedTaskSlug&&k({to:"task",slug:A,trail:[],report:"push"})},followTaskLink:A=>{const{selectedTaskSlug:D,taskTrail:R}=w();if(A===D)return;if(D===null){w().selectTask(A);return}const _=R.indexOf(A);if(_>=0){y(_);return}k({to:"task",slug:A,trail:[...R,D],report:"push"})},stepToTask:A=>{const{selectedTaskSlug:D,taskTrail:R}=w();A!==D&&k({to:"task",slug:A,trail:R,report:"replace"})},goBack:()=>{const A=hy(w());A>=0&&y(A)},hostSelectTask:(A,D)=>{const R=w();if(!(D===void 0&&A===R.selectedTaskSlug)){if(!R.hasLoaded)f=A;else if(A!==null&&!R.tasks.some(_=>_.slug===A)){k({to:"task",slug:null,trail:[],report:"replace",fromHost:!0});return}k({to:"task",slug:A,trail:A===null?[]:[...D??[]],report:null,fromHost:!0})}},setSearchQuery:A=>C({searchQuery:A}),setFlaggedOnly:A=>C({flaggedOnly:A}),setDraftDirty:(A,D)=>{const R=w().dirtyDrafts;if((R[A]??null)===D)return;const{[A]:_,...N}=R;C({dirtyDrafts:D?{...N,[A]:D}:N})},discardAndNavigate:()=>{const A=w().pendingNavigation;A&&(C({pendingNavigation:null,dirtyDrafts:{}}),T(A))},keepEditing:()=>{var D;const A=w().pendingNavigation;if(C({pendingNavigation:null}),(A==null?void 0:A.to)==="task"&&A.fromHost){const{selectedTaskSlug:R,taskTrail:_}=w();(D=n.onSelectedTaskChange)==null||D.call(n,R,{push:!0,trail:_})}}}));const b=n.onSelectedTaskChange;b&&u.subscribe((C,w)=>{c===null||C.selectedTaskSlug===w.selectedTaskSlug&&C.taskTrail===w.taskTrail||b(C.selectedTaskSlug,{push:c==="push",trail:C.taskTrail})});function m(C,w){c=w;try{u==null||u.setState(C)}finally{c="replace"}}function y(C){const w=(u==null?void 0:u.getState().taskTrail)??[];if(n.back){k({to:"host-back",steps:w.length-C});return}k({to:"task",slug:w[C]??null,trail:w.slice(0,C),report:"push"})}function v(){const C=f;f=null;const w=u==null?void 0:u.getState();!w||C===null||w.selectedTaskSlug!==C||w.tasks.some(A=>A.slug===C)||m({selectedTaskSlug:null,taskTrail:[]},"replace")}function k(C){const w=u==null?void 0:u.getState();if(!(!w||w.pendingNavigation)){if(Object.keys(w.dirtyDrafts).length>0){u==null||u.setState({pendingNavigation:C});return}T(C)}}function T(C){var A;if(!u)return;if(C.to==="host-back"){(A=n.back)==null||A.call(n,C.steps);return}if(C.to==="task"){m({selectedTaskSlug:C.slug,taskTrail:C.trail,...C.fromHost?{archiveViewOpen:!1}:{}},C.report);return}m({archiveViewOpen:!0,selectedTaskSlug:null,taskTrail:[]},"push");const w=u.getState();w.archivedTasks===null&&!w.isArchiveLoading&&w.loadArchivedTasks()}return u}function hy(e){const n=new Set(e.tasks.map(i=>i.slug));for(let i=e.taskTrail.length-1;i>=0;i--)if(n.has(e.taskTrail[i]))return i;return-1}function I4(e,n,i,l){var f;if(l.size===0)return{config:n,tasks:i.tasks,warnings:i.warnings,unreadable:i.unreadable,archivedSlugs:i.archivedSlugs??e.archivedSlugs};const o=new Map(e.tasks.map(d=>[d.slug,d])),u=new Set(i.tasks.map(d=>d.slug)),c=i.tasks.filter(d=>!l.has(d.slug)||o.has(d.slug)).map(d=>l.has(d.slug)?o.get(d.slug)??d:d);for(const[d,h]of o)l.has(d)&&!u.has(d)&&c.push(h);return{config:{...n,layout:((f=e.config)==null?void 0:f.layout)??n.layout},tasks:c,warnings:[...i.warnings.filter(d=>!l.has(d.slug)),...e.warnings.filter(d=>l.has(d.slug))],unreadable:i.unreadable.filter(d=>!l.has(d.slug)),archivedSlugs:i.archivedSlugs?[...i.archivedSlugs.filter(d=>!l.has(d)),...e.archivedSlugs.filter(d=>l.has(d))]:e.archivedSlugs}}function Ci(e,n){var o;let i=null,l=-1;for(const[u,c]of Object.entries(((o=e.config)==null?void 0:o.layout)??{})){const f=c.indexOf(n);if(f>=0){i=u,l=f;break}}return{slug:n,task:e.tasks.find(u=>u.slug===n),column:i,index:l,selectedTaskSlug:e.selectedTaskSlug}}function co(e,n,i){e(l=>({tasks:l.tasks.some(o=>o.slug===i)?l.tasks.map(o=>o.slug===i?n:o):[n,...l.tasks],selectedTaskSlug:l.selectedTaskSlug===i?n.slug:l.selectedTaskSlug}))}function Ei(e,n,i){const l=Date.now(),{slug:o,task:u}=n;e(c=>{var b;const f=c.tasks.some(m=>m.slug===o),d=u?f?c.tasks.map(m=>m.slug===o?u:m):[u,...c.tasks]:c.tasks.filter(m=>m.slug!==o),h=Tu(((b=c.config)==null?void 0:b.layout)??{},o);if(n.column!==null){const m=[...h[n.column]??[]];m.splice(Math.min(n.index,m.length),0,o),h[n.column]=m}for(const[m,y]of Object.entries(h))y.length===0&&delete h[m];return{tasks:d,selectedTaskSlug:n.selectedTaskSlug===o&&c.selectedTaskSlug===null?o:c.selectedTaskSlug,config:c.config?{...c.config,layout:h}:c.config,errorAtBySlug:{...c.errorAtBySlug,[o]:l}}}),go.error(i),globalThis.setTimeout(()=>{e(c=>{if(c.errorAtBySlug[o]!==l)return c;const f={...c.errorAtBySlug};return delete f[o],{errorAtBySlug:f}})},350)}function ir(e){return e instanceof Error?e.message:"Unknown error"}const my=E.createContext(null);function V4({api:e,navigation:n,children:i}){const l=E.useRef(null),o=E.useRef(null),u=E.useRef(void 0);(!l.current||o.current!==e)&&(l.current=U4(e,n),o.current=e,u.current=n);const c=l.current;return E.useEffect(()=>{var f,d;return(d=(f=u.current)==null?void 0:f.subscribe)==null?void 0:d.call(f,(h,b)=>c.getState().hostSelectTask(h,b))},[c]),x.jsx(my.Provider,{value:c,children:i})}function pe(e){const n=E.useContext(my);if(!n)throw new Error("useBoardStore must be used within BoardStoreProvider");return o4(n,e)}var py={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vb=ae.createContext&&ae.createContext(py),P4=["attr","size","title"];function F4(e,n){if(e==null)return{};var i,l,o=q4(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)i=u[l],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function q4(e,n){if(e==null)return{};var i={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(n.indexOf(l)!==-1)continue;i[l]=e[l]}return i}function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)({}).hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e},Du.apply(null,arguments)}function yb(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,l)}return i}function Nu(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?yb(Object(i),!0).forEach(function(l){Y4(e,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yb(Object(i)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(i,l))})}return e}function Y4(e,n,i){return(n=X4(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function X4(e){var n=$4(e,"string");return typeof n=="symbol"?n:n+""}function $4(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var l=i.call(e,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function gy(e){return e&&e.map((n,i)=>ae.createElement(n.tag,Nu({key:i},n.attr),gy(n.child)))}function Ct(e){return n=>ae.createElement(Z4,Du({attr:Nu({},e.attr)},n),gy(e.child))}function Z4(e){var n=i=>{var l=e.attr,o=e.size,u=e.title,c=F4(e,P4),f=o||i.size||"1em",d;return i.className&&(d=i.className),e.className&&(d=(d?d+" ":"")+e.className),ae.createElement("svg",Du({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,l,c,{className:d,style:Nu(Nu({color:e.color||i.color},i.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&ae.createElement("title",null,u),e.children)};return vb!==void 0?ae.createElement(vb.Consumer,null,i=>n(i)):n(py)}function by(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.98779 1.56268C8.0409 1.27989 8.3134 1.09275 8.59619 1.14569L8.86475 1.20233C11.6292 1.83955 14.0531 4.23823 14.0532 7.70331C14.0532 9.23977 13.3539 10.4478 12.5376 11.3664C11.9526 12.0246 11.2828 12.5586 10.7446 12.968L12.3823 12.968C12.6583 12.9681 12.8822 13.192 12.8823 13.468C12.8823 13.744 12.6583 13.9678 12.3823 13.968L9.38232 13.968C9.10618 13.968 8.88232 13.7441 8.88232 13.468L8.88232 10.468C8.88242 10.1919 9.10624 9.96796 9.38232 9.96796C9.65828 9.96811 9.88223 10.192 9.88232 10.468L9.88232 12.3137L10.064 12.176C10.5978 11.7712 11.2158 11.2844 11.7583 10.674C12.4727 9.87007 13.0102 8.89839 13.0103 7.70331C13.0101 4.69155 10.8502 2.63051 8.40381 2.17108L8.30225 2.14081C8.07811 2.04924 7.94169 1.80992 7.98779 1.56268ZM0.86084 7.29706C0.860904 5.76062 1.56016 4.55258 2.37646 3.63397C2.96144 2.97579 3.63128 2.44174 4.16943 2.03241L2.53174 2.03241C2.25581 2.03224 2.03185 1.80835 2.03174 1.53241C2.03174 1.25637 2.25574 1.03258 2.53174 1.03241L5.53174 1.03241C5.80788 1.03241 6.03174 1.25627 6.03174 1.53241L6.03174 4.53241C6.03162 4.80845 5.80781 5.03241 5.53174 5.03241C5.25581 5.03224 5.03185 4.80835 5.03174 4.53241L5.03174 2.68671L4.8501 2.8244C4.3163 3.22913 3.6983 3.71593 3.15576 4.32635C2.44134 5.13029 1.90387 6.10199 1.90381 7.29706C1.90397 10.3411 4.11093 12.4148 6.58936 12.8439C6.87264 12.8932 7.06302 13.1631 7.01416 13.4465C6.96499 13.7298 6.69498 13.92 6.41162 13.8713C3.50004 13.3671 0.860998 10.9128 0.86084 7.29706Z",fill:"currentColor"},child:[]}]})(e)}function Ch(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12L10.9951 12.1025C10.9472 12.573 10.573 12.9472 10.1025 12.9951L10 13H5L4.89746 12.9951C4.42703 12.9472 4.05278 12.573 4.00488 12.1025L4 12V4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.22386 3.22386 3 3.5 3H11.5ZM5 12H10V4H5V12ZM9.5 1C9.77614 1 10 1.22386 10 1.5C10 1.77614 9.77614 2 9.5 2H5.5C5.22386 2 5 1.77614 5 1.5C5 1.22386 5.22386 1 5.5 1H9.5Z",fill:"currentColor"},child:[]}]})(e)}function G4(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.5 12C7.77614 12 8 12.2239 8 12.5V14.5C8 14.7761 7.77614 15 7.5 15C7.22386 15 7 14.7761 7 14.5V12.5C7 12.2239 7.22386 12 7.5 12ZM3.61133 10.6816C3.80662 10.4868 4.12322 10.4865 4.31836 10.6816C4.5135 10.8768 4.51324 11.1934 4.31836 11.3887L2.90332 12.8037C2.70802 12.9985 2.3914 12.9988 2.19629 12.8037C2.00118 12.6086 2.00147 12.292 2.19629 12.0967L3.61133 10.6816ZM10.6816 10.6816C10.8768 10.4865 11.1934 10.4868 11.3887 10.6816L12.8037 12.0967C12.9985 12.292 12.9988 12.6086 12.8037 12.8037C12.6086 12.9988 12.292 12.9985 12.0967 12.8037L10.6816 11.3887C10.4868 11.1934 10.4865 10.8768 10.6816 10.6816ZM7.5 4.5C9.15685 4.5 10.5 5.84315 10.5 7.5C10.5 9.15685 9.15685 10.5 7.5 10.5C5.84315 10.5 4.5 9.15685 4.5 7.5C4.5 5.84315 5.84315 4.5 7.5 4.5ZM7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5ZM2.5 7C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H2.5ZM14.5 7C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H12.5C12.2239 8 12 7.77614 12 7.5C12 7.22386 12.2239 7 12.5 7H14.5ZM2.19629 2.19629C2.3914 2.00118 2.70802 2.00147 2.90332 2.19629L4.31836 3.61133C4.51324 3.80662 4.5135 4.12322 4.31836 4.31836C4.12322 4.5135 3.80662 4.51324 3.61133 4.31836L2.19629 2.90332C2.00147 2.70802 2.00118 2.3914 2.19629 2.19629ZM12.0967 2.19629C12.292 2.00147 12.6086 2.00118 12.8037 2.19629C12.9988 2.3914 12.9985 2.70802 12.8037 2.90332L11.3887 4.31836C11.1934 4.51324 10.8768 4.5135 10.6816 4.31836C10.4865 4.12322 10.4868 3.80662 10.6816 3.61133L12.0967 2.19629ZM7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0Z",fill:"currentColor"},child:[]}]})(e)}function xb(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M4.22457 2.08224C4.41865 1.95407 4.68261 1.97583 4.85348 2.14669C5.02434 2.31756 5.0461 2.58152 4.91793 2.7756L4.85348 2.85372L3.70699 4.00021H8.99996C11.4852 4.00021 13.5 6.01493 13.5 8.50021C13.5 10.9855 11.4852 13.0002 8.99996 13.0002H4.99996C4.72382 13.0002 4.49996 12.7764 4.49996 12.5002C4.49996 12.2241 4.72382 12.0002 4.99996 12.0002H8.99996C10.933 12.0002 12.5 10.4332 12.5 8.50021C12.5 6.56721 10.933 5.00021 8.99996 5.00021H3.70699L4.85348 6.14669L4.91793 6.22482C5.0461 6.4189 5.02434 6.68286 4.85348 6.85372C4.68261 7.02459 4.41865 7.04634 4.22457 6.91818L4.14645 6.85372L2.14645 4.85372C1.95118 4.65846 1.95118 4.34195 2.14645 4.14669L4.14645 2.14669L4.22457 2.08224Z",fill:"currentColor"},child:[]}]})(e)}function vy(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.876907C11.1566 0.876907 14.1218 3.84164 14.1222 7.49898C14.1222 11.1566 11.1568 14.122 7.49915 14.122C3.84181 14.1216 0.877075 11.1564 0.877075 7.49898C0.877487 3.8419 3.84206 0.877319 7.49915 0.876907ZM7.49915 1.82613C4.36674 1.82654 1.82671 4.36657 1.82629 7.49898C1.82629 10.6317 4.36648 13.1714 7.49915 13.1718C10.6321 13.1718 13.172 10.632 13.172 7.49898C13.1716 4.36631 10.6319 1.82613 7.49915 1.82613ZM7.50012 9.74995C7.91423 9.75006 8.25009 10.0858 8.25012 10.5C8.25012 10.9141 7.91425 11.2498 7.50012 11.25C7.08591 11.25 6.75012 10.9142 6.75012 10.5C6.75015 10.0858 7.08593 9.74995 7.50012 9.74995ZM7.50012 3.82515C8.93513 3.82519 10.0499 4.9279 10.0499 6.24995C10.0499 7.35371 9.31972 7.89011 8.78528 8.2148C8.48593 8.39664 8.30488 8.48614 8.15051 8.6064C8.08554 8.65705 8.05977 8.68922 8.0509 8.70308L8.04895 8.70406C8.04674 9.00589 7.80247 9.24991 7.50012 9.24995C7.19643 9.24995 6.95042 9.00382 6.95032 8.70015C6.95034 8.23216 7.2324 7.92706 7.47473 7.73824C7.6953 7.56644 8.01457 7.39708 8.21497 7.27534C8.6804 6.99257 8.95032 6.74107 8.95032 6.24995C8.95028 5.57211 8.36497 4.9248 7.50012 4.92476C6.63522 4.92476 6.04996 5.57208 6.04993 6.24995C6.04993 6.55368 5.80384 6.79971 5.50012 6.79976C5.19637 6.79976 4.95032 6.55371 4.95032 6.24995C4.95035 4.92787 6.06507 3.82515 7.50012 3.82515Z",fill:"currentColor"},child:[]}]})(e)}function Lo(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.5 2.25C7.77614 2.25 8 2.47386 8 2.75V7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H8V12.25C8 12.5261 7.77614 12.75 7.5 12.75C7.22386 12.75 7 12.5261 7 12.25V8H2.75C2.47386 8 2.25 7.77614 2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H7V2.75C7 2.47386 7.22386 2.25 7.5 2.25Z",fill:"currentColor"},child:[]}]})(e)}function yy(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.2246 1.08204C11.4187 0.953875 11.6826 0.975633 11.8535 1.14649L13.8535 3.14649L13.9179 3.22462C14.0461 3.41869 14.0244 3.68266 13.8535 3.85352L6.42186 11.2852C6.35442 11.3526 6.27771 11.4105 6.19432 11.4561L6.10838 11.4971L2.69725 12.96C2.50933 13.0405 2.29103 12.9981 2.14647 12.8535C2.0019 12.709 1.95949 12.4907 2.04002 12.3027L3.50291 8.89161L3.54393 8.80567C3.58951 8.72228 3.6474 8.64556 3.71483 8.57813L11.1465 1.14649L11.2246 1.08204ZM4.42186 9.28516L3.78025 10.7803L4.21775 11.2178L5.71483 10.5781L12.7929 3.50001L11.5 2.20704L4.42186 9.28516Z",fill:"currentColor"},child:[]}]})(e)}function Q4(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M8.54431 0.981842L8.8363 1.03458L9.10095 1.09512L9.42517 1.18497L9.6781 1.267L9.95447 1.37051L10.1937 1.47208L10.307 1.52383L10.6342 1.68887L10.9564 1.87442L11.2484 2.06485L11.4926 2.24161L11.8138 2.50235L12.0355 2.70255L12.1957 2.85977L12.3158 2.9838L12.4789 3.16446L12.6781 3.40372L12.8314 3.60391C13.0355 3.88261 13.2175 4.17782 13.3763 4.48672L13.4506 4.63516L13.5277 4.80118L13.641 5.06876C13.7382 5.31392 13.8213 5.56724 13.889 5.82657C13.9452 6.04133 13.9913 6.26068 14.0258 6.4838L14.0619 6.76114C14.0889 7.00372 14.1029 7.25061 14.1029 7.5004C14.1028 11.1454 11.1483 14.1 7.5033 14.1C7.3745 14.1 7.24648 14.0965 7.11951 14.0893L6.85193 14.0688L6.53552 14.0297C6.40721 14.0108 6.27957 13.9885 6.15369 13.9623C6.04742 13.9402 5.9422 13.9151 5.83826 13.8881C5.70144 13.8525 5.5657 13.8131 5.43201 13.769L5.18884 13.683L4.88513 13.5609L4.62537 13.4408L4.36169 13.3061C4.23548 13.2376 4.11156 13.1654 3.9906 13.0893L3.81482 12.974L3.6283 12.8432L3.5072 12.7533L3.31873 12.6049L3.05896 12.3793L2.98669 12.3129C2.91538 12.2459 2.84503 12.1769 2.77673 12.1068C2.62748 11.9531 2.74608 11.7022 2.96033 11.6908C3.20996 11.6774 3.45726 11.65 3.69861 11.6098C6.82221 11.0879 9.20349 8.3718 9.20349 5.10001C9.20345 3.9692 8.91856 2.90436 8.41736 1.97403C8.29975 1.75576 8.17026 1.54482 8.02966 1.34219C7.90722 1.16575 8.03303 0.917893 8.24646 0.941803L8.54431 0.981842ZM9.8324 2.40567C10.2002 3.2979 10.4037 4.27587 10.4037 5.3002C10.4037 5.60452 10.3848 5.90465 10.35 6.19962L10.4779 6.20645C11.108 6.27052 11.5998 6.80261 11.6 7.44962C11.6 8.13996 11.0403 8.6996 10.35 8.69962C10.1081 8.69962 9.88309 8.63005 9.69177 8.51114C9.63529 8.6321 9.57562 8.75117 9.51306 8.86856C9.84841 8.94335 10.099 9.24212 10.099 9.60001C10.0989 10.0141 9.76312 10.35 9.349 10.35C9.09956 10.3499 8.87982 10.2269 8.74353 10.0395C7.81101 11.2068 6.54234 12.0938 5.08337 12.5522C5.81579 12.9036 6.63654 13.1 7.5033 13.1C10.596 13.1 13.1028 10.5931 13.1029 7.5004C13.1029 5.23879 11.7623 3.28958 9.8324 2.40567ZM1.50037 6.10001C1.7211 6.10022 1.90076 6.27961 1.90076 6.5004V7.10001H2.50037L2.58142 7.1088C2.76323 7.14645 2.90076 7.30743 2.90076 7.5004C2.90057 7.69325 2.76319 7.85443 2.58142 7.892L2.50037 7.90079H1.90076V8.5004C1.90055 8.721 1.72097 8.90058 1.50037 8.90079C1.27958 8.90079 1.10019 8.72113 1.09998 8.5004V7.90079H0.500366C0.279583 7.90079 0.100187 7.72113 0.0999756 7.5004C0.0999756 7.27948 0.279452 7.10001 0.500366 7.10001H1.09998V6.5004C1.09998 6.27948 1.27945 6.10001 1.50037 6.10001ZM5.50037 3.10001C5.7211 3.10022 5.90076 3.27961 5.90076 3.5004V4.10001H6.50037L6.58142 4.1088C6.76323 4.14645 6.90076 4.30743 6.90076 4.5004C6.90057 4.69325 6.76319 4.85443 6.58142 4.892L6.50037 4.90079H5.90076V5.5004C5.90055 5.721 5.72097 5.90058 5.50037 5.90079C5.27958 5.90079 5.10019 5.72113 5.09998 5.5004V4.90079H4.50037C4.27958 4.90079 4.10019 4.72113 4.09998 4.5004C4.09998 4.27948 4.27945 4.10001 4.50037 4.10001H5.09998V3.5004C5.09998 3.27948 5.27945 3.10001 5.50037 3.10001ZM2.50037 0.100006C2.7211 0.100218 2.90076 0.279613 2.90076 0.500397V1.10001H3.50037L3.58142 1.1088C3.76323 1.14645 3.90076 1.30743 3.90076 1.5004C3.90057 1.69325 3.76319 1.85443 3.58142 1.892L3.50037 1.90079H2.90076V2.5004C2.90055 2.721 2.72097 2.90058 2.50037 2.90079C2.27958 2.90079 2.10019 2.72113 2.09998 2.5004V1.90079H1.50037C1.27958 1.90079 1.10019 1.72113 1.09998 1.5004C1.09998 1.27948 1.27945 1.10001 1.50037 1.10001H2.09998V0.500397C2.09998 0.279483 2.27945 0.100006 2.50037 0.100006Z",fill:"currentColor"},child:[]}]})(e)}function sm(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56246 10.6304 8.5378 10.0146 9.30762L12.8535 12.1465L12.918 12.2246C13.0461 12.4187 13.0244 12.6827 12.8535 12.8535C12.6827 13.0244 12.4187 13.0461 12.2246 12.918L12.1465 12.8535L9.30762 10.0146C8.5378 10.6304 7.56246 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2ZM6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10C8.433 10 10 8.433 10 6.5C10 4.567 8.433 3 6.5 3Z",fill:"currentColor"},child:[]}]})(e)}function K4(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.50098 0.97831C8.5754 0.97831 9.46932 1.32269 10.0908 1.99198C10.7073 2.65592 11 3.57934 11 4.63358V5.99979H12C12.5522 5.99979 12.9999 6.4476 13 6.99979V12.9998C13 13.5521 12.5523 13.9998 12 13.9998H3C2.44772 13.9998 2 13.5521 2 12.9998V6.99979C2.00011 6.4476 2.44778 5.99979 3 5.99979H4V4.63554C4.00009 3.58126 4.29322 2.65732 4.91016 1.99296C5.53211 1.32327 6.42651 0.978401 7.50098 0.97831ZM3 12.9998H12V6.99979H3V12.9998ZM7.50098 1.97831C6.64571 1.9784 6.0396 2.24726 5.64355 2.67362C5.24259 3.10537 5.00009 3.76007 5 4.63554V5.99979H10V4.63358C10 3.75741 9.75854 3.10258 9.3584 2.67167C8.96322 2.24619 8.35692 1.97831 7.50098 1.97831Z",fill:"currentColor"},child:[]}]})(e)}function xy(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M3.6893 6.37529C3.88335 6.24731 4.14742 6.26897 4.31821 6.43975C4.51323 6.63496 4.51323 6.95156 4.31821 7.14678L3.69907 7.76592C3.37878 8.08621 3.20737 8.25925 3.09751 8.39092L3.00473 8.51201C2.54529 9.18833 2.53677 10.0437 2.95395 10.679L3.03891 10.7933C3.14049 10.9167 3.30254 11.0803 3.61118 11.389C4.02302 11.8008 4.17689 11.9514 4.32114 12.0462L4.44223 12.1194C5.06223 12.4608 5.85391 12.4263 6.48813 11.9954L6.60923 11.9026C6.74094 11.7927 6.91473 11.6216 7.2352 11.3011L7.85337 10.6819C8.04855 10.4869 8.36517 10.487 8.5604 10.6819C8.7556 10.8771 8.75548 11.1937 8.5604 11.389L7.94223 12.0081C7.64648 12.3039 7.43399 12.5174 7.24008 12.678L7.04965 12.8226C6.11777 13.4555 4.9223 13.5259 3.96079 12.9964L3.77231 12.8821C3.52088 12.717 3.28054 12.4734 2.90415 12.097C2.62181 11.8146 2.41357 11.6085 2.25766 11.4173L2.11801 11.2278C1.468 10.2379 1.50252 8.94437 2.17758 7.95049L2.32212 7.76006C2.48279 7.56615 2.69629 7.35366 2.99204 7.05791L3.61118 6.43975L3.6893 6.37529ZM8.91391 5.37822C9.109 5.18318 9.42565 5.18352 9.62094 5.37822C9.81619 5.57347 9.81616 5.88999 9.62094 6.08525L6.08579 9.62041C5.89053 9.81567 5.57402 9.81567 5.37876 9.62041C5.18404 9.4251 5.18368 9.10846 5.37876 8.91338L8.91391 5.37822ZM8.1395 2.05889C9.1042 1.50111 10.2992 1.50903 11.2274 2.11846L11.4168 2.25811C11.6081 2.41402 11.8142 2.62226 12.0965 2.90459C12.4729 3.28097 12.7166 3.52133 12.8817 3.77275L12.9959 3.96123C13.4902 4.85869 13.4619 5.96014 12.9413 6.86064L12.8221 7.0501C12.7365 7.17616 12.6315 7.3007 12.4989 7.44268L12.0077 7.94268L11.3885 8.56084C11.1932 8.75595 10.8767 8.75605 10.6815 8.56084C10.4866 8.3656 10.4865 8.04899 10.6815 7.85381L11.3006 7.23564L11.7684 6.75908C11.8753 6.64519 11.9426 6.56569 11.995 6.48857L12.076 6.35967C12.4289 5.74954 12.4376 5.02132 12.119 4.44268L12.0457 4.32158C11.951 4.17733 11.8004 4.02345 11.3885 3.61162C11.0799 3.30299 10.9163 3.14093 10.7928 3.03936L10.6786 2.95439C10.083 2.56329 9.29401 2.54612 8.64048 2.92412L8.51157 3.00518C8.43446 3.05757 8.35494 3.12484 8.24106 3.23174L7.76548 3.69951L7.14633 4.31865C6.95112 4.5137 6.63453 4.51368 6.4393 4.31865C6.24411 4.12344 6.2442 3.80689 6.4393 3.61162L7.05747 2.99248L7.55747 2.50225C7.69965 2.36939 7.82384 2.26376 7.95005 2.17803L8.1395 2.05889Z",fill:"currentColor"},child:[]}]})(e)}function J4(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.876907C11.1566 0.876907 14.1218 3.84164 14.1222 7.49898C14.1222 11.1566 11.1568 14.122 7.49915 14.122C3.84181 14.1216 0.877075 11.1564 0.877075 7.49898C0.877487 3.8419 3.84206 0.877318 7.49915 0.876907ZM7.49915 1.82613C4.36673 1.82654 1.82671 4.36657 1.82629 7.49898C1.82629 10.6317 4.36648 13.1714 7.49915 13.1718C10.6321 13.1718 13.172 10.632 13.172 7.49898C13.1716 4.36631 10.6319 1.82613 7.49915 1.82613ZM7.60071 6.00972C7.82862 6.05627 8.0001 6.25829 8.00012 6.49995V9.99995H9.00012V11H6.00012V9.99995H7.00012V6.99995H6.00012V5.99995H7.50012L7.60071 6.00972ZM7.50012 3.74995C7.91423 3.75006 8.2501 4.08583 8.25012 4.49995C8.25012 4.9141 7.91424 5.24985 7.50012 5.24995C7.08591 5.24995 6.75012 4.91417 6.75012 4.49995C6.75015 4.08576 7.08592 3.74995 7.50012 3.74995Z",fill:"currentColor"},child:[]}]})(e)}function W4(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.50002 3C10.6922 3 13.3435 4.70671 14.9239 7.23535C15.0124 7.37717 15.0235 7.55201 14.9571 7.70215L14.9239 7.76465C13.3435 10.2933 10.6922 12 7.50002 12C4.30788 12 1.65659 10.2933 0.0761963 7.76465C-0.0249881 7.6026 -0.0249956 7.3974 0.0761963 7.23535L0.227563 7C1.82294 4.60122 4.4078 3 7.50002 3ZM7.50002 4C4.80354 4 2.53299 5.37905 1.09963 7.5C2.53299 9.62094 4.80354 11 7.50002 11C10.1963 11 12.4661 9.62068 13.8994 7.5C12.4661 5.3793 10.1963 4 7.50002 4ZM7.50002 5.5C8.60459 5.5 9.50002 6.39543 9.50002 7.5C9.50002 8.60457 8.60459 9.5 7.50002 9.5C6.39545 9.5 5.50002 8.60457 5.50002 7.5C5.50002 6.39543 6.39545 5.5 7.50002 5.5Z",fill:"currentColor"},child:[]}]})(e)}function Qr(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.64204 0.483078C7.10887 -0.10392 8.04464 -0.0624346 8.44477 0.608078L14.8393 11.3366C15.2761 12.0697 14.7473 12.9995 13.894 12.9997H1.1059C0.252569 12.9994 -0.275364 12.0697 0.161567 11.3366L6.55512 0.608078L6.64204 0.483078ZM7.45161 1.08366L7.4145 1.12077L1.01997 11.8483C0.980388 11.9148 1.02858 11.9994 1.1059 11.9997H13.894C13.9714 11.9995 14.0196 11.9149 13.9799 11.8483L7.58637 1.12077C7.55727 1.07208 7.49625 1.05933 7.45161 1.08366ZM7.49946 9.72624C7.91367 9.72624 8.24946 10.062 8.24946 10.4762C8.24933 10.8903 7.91359 11.2262 7.49946 11.2262C7.08549 11.226 6.74958 10.8902 6.74946 10.4762C6.74946 10.0622 7.08542 9.72645 7.49946 9.72624ZM7.49946 3.78679C7.88158 3.78679 8.1879 4.10418 8.17329 4.48601L8.01899 8.48698C8.00826 8.76597 7.77866 8.98698 7.49946 8.98698C7.22048 8.98673 6.99163 8.76581 6.9809 8.48698L6.82661 4.48601C6.812 4.10434 7.11756 3.78706 7.49946 3.78679Z",fill:"currentColor"},child:[]}]})(e)}function ew(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M13.8779 2.00684C14.5082 2.07092 15 2.60285 15 3.25V10.75C15 11.4404 14.4404 12 13.75 12H9.92676L10.1699 13.2988L10.1797 13.4238C10.1678 13.7104 9.93104 13.95 9.62988 13.9502H5.37012C5.02598 13.95 4.76674 13.6371 4.83008 13.2988L5.07324 12H1.25C0.559644 12 2.14752e-08 11.4404 0 10.75V3.25C1.34221e-09 2.55964 0.559644 2 1.25 2H13.75L13.8779 2.00684ZM5.98926 12L5.79297 13.0498H9.20703L9.01074 12H5.98926ZM1.25 3C1.11193 3 1 3.11193 1 3.25V10.75C1 10.8881 1.11193 11 1.25 11H13.75C13.8881 11 14 10.8881 14 10.75V3.25C14 3.12931 13.9145 3.02833 13.8008 3.00488L13.75 3H1.25Z",fill:"currentColor"},child:[]}]})(e)}function tw(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877045C11.1566 0.877045 14.1218 3.84178 14.1222 7.49911C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1565 0.877075 7.49911C0.877486 3.84203 3.84206 0.877456 7.49915 0.877045ZM7.49915 1.82626C4.36673 1.82667 1.8267 4.3667 1.82629 7.49911C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49911C13.1716 4.36645 10.6319 1.82626 7.49915 1.82626ZM9.14661 5.14658C9.34187 4.95131 9.65838 4.95131 9.85364 5.14658C10.0488 5.34185 10.0489 5.65838 9.85364 5.85361L8.20715 7.50009L9.85364 9.14658L9.91809 9.2247C10.0462 9.41877 10.0245 9.68278 9.85364 9.85361C9.68281 10.0244 9.4188 10.0461 9.22473 9.91806L9.14661 9.85361L7.50012 8.20712L5.85364 9.85361C5.65841 10.0488 5.34188 10.0488 5.14661 9.85361C4.95134 9.65835 4.95134 9.34184 5.14661 9.14658L6.79309 7.50009L5.14661 5.85361L5.08215 5.77548C4.95399 5.5814 4.97574 5.31744 5.14661 5.14658C5.31747 4.97571 5.58143 4.95396 5.77551 5.08212L5.85364 5.14658L7.50012 6.79306L9.14661 5.14658Z",fill:"currentColor"},child:[]}]})(e)}function oa(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10.9688 3.21871C11.1933 2.99416 11.5567 2.99416 11.7813 3.21871C12.0056 3.44328 12.0057 3.80673 11.7813 4.03121L8.31251 7.49996L11.7813 10.9687L11.8555 11.0586C12.0026 11.2817 11.9777 11.5848 11.7813 11.7812C11.5849 11.9776 11.2818 12.0026 11.0586 11.8554L10.9688 11.7812L7.50001 8.31246L4.03126 11.7812C3.80677 12.0057 3.44332 12.0056 3.21876 11.7812C2.99421 11.5567 2.99421 11.1933 3.21876 10.9687L6.68751 7.49996L3.21876 4.03121L3.14454 3.94137C2.99723 3.71819 3.0223 3.41517 3.21876 3.21871C3.41522 3.02225 3.71823 2.99719 3.94141 3.14449L4.03126 3.21871L7.50001 6.68746L10.9688 3.21871Z",fill:"currentColor"},child:[]}]})(e)}function nw(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10 4.00003V2.50003C10 2.22389 9.77614 2.00003 9.5 2.00003H2.5C2.22386 2.00003 2 2.22389 2 2.50003V9.50003C2 9.77617 2.22386 10 2.5 10H4V5.50003C4 4.6716 4.67157 4.00003 5.5 4.00003H10ZM5.5 5.00003C5.22386 5.00003 5 5.22389 5 5.50003V12.5C5.00002 12.7762 5.22387 13 5.5 13H12.5C12.7761 13 13 12.7762 13 12.5V5.50003C13 5.22389 12.7761 5.00003 12.5 5.00003H5.5ZM12.5 4.00003C13.3284 4.00003 14 4.6716 14 5.50003V12.5C14 13.3284 13.3284 14 12.5 14H5.5C4.67159 14 4.00002 13.3284 4 12.5V11H2.5C1.67157 11 1 10.3285 1 9.50003V2.50003C1 1.6716 1.67157 1.00003 2.5 1.00003H9.5C10.3284 1.00003 11 1.6716 11 2.50003V4.00003H12.5Z",fill:"currentColor"},child:[]}]})(e)}function rw(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877075C11.1566 0.877075 14.1218 3.84181 14.1222 7.49915C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1566 0.877075 7.49915C0.877487 3.84206 3.84206 0.877487 7.49915 0.877075ZM7.49915 1.82629C4.36674 1.82671 1.82671 4.36674 1.82629 7.49915C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49915C13.1716 4.36648 10.6319 1.82629 7.49915 1.82629Z",fill:"currentColor"},child:[]}]})(e)}function um(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10.6015 3.90815C10.7903 3.61941 11.1779 3.53792 11.4667 3.72651C11.7555 3.91533 11.837 4.30288 11.6484 4.59175L7.39837 11.0917C7.29822 11.2449 7.13558 11.3469 6.95404 11.3701C6.77251 11.3932 6.58945 11.3359 6.45404 11.2128L3.70404 8.71284L3.62005 8.61811C3.44857 8.38342 3.4589 8.05252 3.66205 7.82905C3.86511 7.60576 4.19344 7.56371 4.4433 7.71186L4.54584 7.78706L6.75287 9.79292L10.6015 3.90815Z",fill:"currentColor"},child:[]}]})(e)}function Sy(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877045C11.1566 0.877045 14.1218 3.84178 14.1222 7.49911C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1565 0.877075 7.49911C0.877486 3.84203 3.84206 0.877456 7.49915 0.877045ZM7.49915 1.82626C4.36673 1.82667 1.8267 4.3667 1.82629 7.49911C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49911C13.1716 4.36645 10.6319 1.82626 7.49915 1.82626ZM9.34094 4.96201C9.49988 4.73626 9.81241 4.68202 10.0382 4.84091C10.2639 4.99988 10.3182 5.31242 10.1593 5.53818L6.99231 10.0382C6.90692 10.1594 6.7719 10.236 6.62415 10.2481C6.47636 10.2602 6.33063 10.2064 6.22668 10.1007L4.64368 8.4874L5.00012 8.13779L5.35657 7.7872L6.51965 8.97079L9.34094 4.96201ZM4.64954 7.78036C4.84653 7.58696 5.16309 7.5903 5.35657 7.7872L4.64368 8.4874C4.45023 8.29035 4.4525 7.97382 4.64954 7.78036Z",fill:"currentColor"},child:[]}]})(e)}function Sb(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.22457 3.08224C6.41865 2.95407 6.68261 2.97583 6.85348 3.14669C7.02434 3.31756 7.04609 3.58152 6.91793 3.7756L6.85348 3.85372L3.70699 7.00021H12.5C12.7761 7.00021 13 7.22406 13 7.50021C13 7.77635 12.7761 8.00021 12.5 8.00021H3.70699L6.85348 11.1467L6.91793 11.2248C7.04609 11.4189 7.02434 11.6829 6.85348 11.8537C6.68261 12.0246 6.41865 12.0463 6.22457 11.9182L6.14645 11.8537L2.14645 7.85372C1.95118 7.65846 1.95118 7.34195 2.14645 7.14669L6.14645 3.14669L6.22457 3.08224Z",fill:"currentColor"},child:[]}]})(e)}function sa(e){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.6914 1C12.0699 1.00016 12.4156 1.21422 12.585 1.55273L13.9473 4.27637L13.9863 4.38477C13.9952 4.42241 14 4.46105 14 4.5V13C14 13.5523 13.5523 14 13 14H2C1.44772 14 1 13.5523 1 13V4.5C1 4.42238 1.01802 4.34579 1.05273 4.27637L2.41504 1.55273L2.48633 1.43164C2.6712 1.16394 2.97741 1.00014 3.30859 1H11.6914ZM2 13H13V5H2V13ZM9.5 7C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5C5 7.22386 5.22386 7 5.5 7H9.5ZM2.30859 4H7V2H3.30859L2.30859 4ZM8 4H12.6914L11.6914 2H8V4Z",fill:"currentColor"},child:[]}]})(e)}function Zu(e){const{flag:n}=e.frontmatter;return n===!0?{reason:null}:typeof n=="string"&&n.trim()?{reason:n.trim()}:null}function Gu(e){return Zu(e)!==null}const iw=40,lw=80,au={title:12,tags:6,body:3,updates:2};function aw(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ow(e,n){const i=aw(e).replace(/ /g,"\\s+"),l=n&&/^\w/.test(e)?"(?<!\\w)":"",o=n&&/\w$/.test(e)?"(?!\\w)":"";return new RegExp(`${l}${i}${o}`)}function sw(e,n){const i=[];for(const l of e.matchAll(/"([^"]*)"|([^\s"]+)/g)){const o=(l[1]??l[2]??"").toLowerCase().trim().replace(/\s+/g," ");o&&i.push({text:o,pattern:ow(o,n)})}return i}function wb(e){return e.replace(/\s+/g," ").trim()}function Cb(e,n){const i=e.toLowerCase();let l=-1,o=0;for(const d of n){const h=d.pattern.exec(i);h!==null&&(l===-1||h.index<l||h.index===l&&h[0].length>o)&&(l=h.index,o=h[0].length)}if(l===-1)return;const u=Math.max(0,l-iw),c=Math.min(e.length,l+o+lw),f=e.slice(u,c).trim();return`${u>0?"…":""}${f}${c<e.length?"…":""}`}function Eb(e,n,i={}){const l=sw(n,i.wholeWord??!1);if(l.length===0)return[];const o=[];for(const u of e){const c=u.frontmatter.title.toLowerCase(),f=(u.frontmatter.tags??[]).map(N=>N.toLowerCase()),d=wb(u.body),h=d.toLowerCase(),m=[...u.comments.map((N,M)=>({kind:"entry",index:M,timestamp:N.timestamp,text:N.text})),...u.unreadableUpdates?[{kind:"unreadable",text:u.unreadableUpdates.text}]:[]].map(N=>{const M=wb(N.text);return{...N,normalized:M,lowercase:M.toLowerCase()}}),y=N=>N.pattern.test(c)||f.some(M=>N.pattern.test(M))||N.pattern.test(h)||m.some(M=>N.pattern.test(M.lowercase));if(!l.every(y))continue;const v=l.filter(N=>N.pattern.test(c)).length,k=l.filter(N=>f.some(M=>N.pattern.test(M))).length,T=l.filter(N=>N.pattern.test(h)).length,C=l.filter(N=>m.some(M=>N.pattern.test(M.lowercase))).length,w=[];v>0&&w.push("title"),k>0&&w.push("tags");const A=Cb(d,l);A!==void 0&&w.push("body");const D=[];for(const N of m){if(!l.some(B=>B.pattern.test(N.lowercase)))continue;const M=Cb(N.normalized,l)??N.normalized;N.kind==="unreadable"?D.push({unreadable:!0,snippet:M}):D.push({index:N.index,timestamp:N.timestamp,snippet:M})}D.length>0&&w.push("updates");const R=l.length,_=(au.title*v+au.tags*k+au.body*T+au.updates*C)/R;o.push({match:{slug:u.slug,title:u.frontmatter.title,status:u.frontmatter.status,matched_fields:w,...A!==void 0?{snippet:A}:{},...D.length>0?{update_matches:D}:{}},score:_,updated:Date.parse(u.frontmatter.updated)||0})}return o.map((u,c)=>({...u,index:c})).sort((u,c)=>c.score-u.score||c.updated-u.updated||u.index-c.index).map(u=>u.match)}const uw=e=>{var i;const n=(i=Zu(e))==null?void 0:i.reason;return[e.slug,...n?[n]:[],...e.frontmatter.assignee?[e.frontmatter.assignee]:[],...e.frontmatter.tags??[]]},cw=new Map;function wy(e,n,i=uw){if(!n.trim())return{tasks:[...e],contextBySlug:cw};const l=new Map(Eb(e.map(f=>({...f,frontmatter:{...f.frontmatter,tags:[...f.frontmatter.tags??[],...i(f)]}})),n).map(f=>[f.slug,f])),o=e.filter(f=>l.has(f.slug)),u=new Set(Eb(o.map(f=>({slug:f.slug,frontmatter:{...f.frontmatter,tags:i(f)},body:"",comments:[]})),n).map(f=>f.slug)),c=new Map;for(const f of o){const d=l.get(f.slug);d&&!u.has(f.slug)&&c.set(f.slug,d)}return{tasks:o,contextBySlug:c}}const Hd=new Intl.RelativeTimeFormat("en",{numeric:"auto"});function Ru(e){const i=(typeof e=="string"?Date.parse(e):e)-Date.now(),l=Math.abs(i),o=6e4,u=o*60,c=u*24;return l<o?"just now":l<u?Hd.format(Math.round(i/o),"minute"):l<c?Hd.format(Math.round(i/u),"hour"):Hd.format(Math.round(i/c),"day")}function Cy(e){const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}function Ey({match:e}){const n=e.update_matches??[],[i,...l]=n;let o,u;if(e.snippet!==void 0)o={source:"description",text:e.snippet},u=n.length;else if(i!==void 0)o={source:"unreadable"in i?"unreadable Task Updates":x.jsxs(x.Fragment,{children:["Update ·"," ",x.jsx("time",{dateTime:i.timestamp,children:Cy(i.timestamp)})]}),text:i.snippet},u=l.length;else return null;return x.jsxs("div",{className:"mt-3 border-t border-sb-iron pt-2.5",children:[x.jsxs("p",{className:"font-mono text-[11px] text-sb-silver",children:["Found in ",o.source]}),x.jsx("p",{className:"mt-1 line-clamp-3 wrap-break-word text-[12px] leading-5 text-sb-frosted",children:o.text}),u>0?x.jsx("p",{className:"mt-1 font-mono text-[11px] text-sb-silver",children:`Also in ${u} ${e.snippet!==void 0?"":"more "}${u===1?"Task Update":"Task Updates"}`}):null]})}function fw(e){var l;const n=e.split(/\r?\n/);if(((l=n[0])==null?void 0:l.trim())!=="---")return e;const i=n.findIndex((o,u)=>u>0&&(o.trim()==="---"||o.trim()==="..."));return i<0?e:n.slice(0,i+1).join(`
50
+ `)}function ky({file:e}){return x.jsxs("article",{"aria-label":`Unreadable task file ${e.path}`,className:"rounded-md border border-sb-iron bg-sb-surface p-3",children:[x.jsxs("div",{className:"flex items-start gap-2",children:[x.jsx(Qr,{"aria-hidden":"true",className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-sb-warning"}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("h3",{className:"truncate font-mono text-[13px] text-sb-frosted",children:e.slug}),x.jsx("p",{className:"mt-0.5 truncate font-mono text-[11px] text-sb-silver",children:e.path})]})]}),x.jsxs("p",{className:"mt-3 font-mono text-[11px] leading-5 text-sb-warning",children:["Frontmatter does not parse: ",e.reason]}),x.jsx("pre",{className:"mt-2 max-h-64 overflow-auto rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] leading-relaxed text-sb-silver",children:fw(e.content)}),x.jsx("p",{className:"mt-2 text-[12px] text-sb-silver",children:"Fix it in the file to restore the task."})]})}const dw=e=>[e.slug,e.frontmatter.status,...e.frontmatter.assignee?[e.frontmatter.assignee]:[]];function hw(){const e=pe(T=>T.archivedTasks),n=pe(T=>T.archiveWarnings),i=pe(T=>T.archiveUnreadable),l=pe(T=>T.isArchiveLoading),o=pe(T=>T.archiveLoadError),u=pe(T=>T.searchQuery),c=pe(T=>T.loadArchivedTasks),f=pe(T=>T.unarchiveTask),[d,h]=E.useState(u),[b,m]=E.useState(()=>new Set),y=E.useMemo(()=>{const T=wy(e??[],d,dw);return{...T,tasks:T.tasks.sort((C,w)=>Date.parse(w.frontmatter.updated)-Date.parse(C.frontmatter.updated))}},[e,d]),v=y.tasks,k=async T=>{m(C=>new Set(C).add(T));try{await f(T)}finally{m(C=>{const w=new Set(C);return w.delete(T),w})}};return x.jsxs("section",{className:"mx-auto max-w-5xl rounded-md border border-sb-iron bg-sb-canvas",children:[x.jsxs("div",{className:"flex flex-col gap-4 border-b border-sb-iron px-4 py-4 sm:flex-row sm:items-center sm:justify-between",children:[x.jsxs("div",{className:"min-w-0",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(sa,{"aria-hidden":"true",className:"h-4 w-4 text-sb-silver"}),x.jsx("h1",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-sb-frosted",children:"Archive"}),e?x.jsx("span",{className:"rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:e.length}):null]}),x.jsx("p",{className:"mt-1.5 text-[13px] text-sb-silver",children:"Browse filed tasks and restore them to their saved status."})]}),x.jsxs("label",{className:"relative block min-w-0 sm:w-80",children:[x.jsx("span",{className:"sr-only",children:"Filter archived tasks"}),x.jsx(sm,{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-sb-silver"}),x.jsx("input",{"aria-label":"Filter archived tasks",className:"h-9 w-full rounded border border-sb-iron bg-sb-surface2 pl-9 pr-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Filter archive",value:d,onChange:T=>h(T.target.value)})]})]}),n.length>0?x.jsxs("p",{className:"border-b border-sb-iron px-4 py-2 font-mono text-[11px] text-sb-silver",children:[n.length," ",n.length===1?"archived task has":"archived tasks have"," ","validation warnings."]}):null,i.length>0?x.jsx("ul",{"aria-label":"Unreadable archived task files",className:"grid gap-3 border-b border-sb-iron p-4 sm:grid-cols-2",children:i.map(T=>x.jsx("li",{children:x.jsx(ky,{file:T})},T.path))}):null,x.jsx("div",{className:"p-4",children:l&&e===null?x.jsx(kb,{label:"Loading archived tasks..."}):o&&e===null?x.jsxs("div",{className:"rounded-md border border-dashed border-sb-iron px-4 py-10 text-center",children:[x.jsxs("p",{className:"font-mono text-[12px] text-sb-silver",children:["Archive unavailable: ",o]}),x.jsxs("button",{className:"mt-4 inline-flex h-9 items-center gap-2 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:()=>void c(),children:[x.jsx(xb,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Retry"]})]}):v.length===0?x.jsx(kb,{label:e!=null&&e.length?"No archived tasks match this filter.":"Archive is empty."}):x.jsx("ul",{"aria-label":"Archived tasks",className:"space-y-2",children:v.map(T=>{const C=b.has(T.slug),w=y.contextBySlug.get(T.slug);return x.jsxs("li",{className:"flex flex-col gap-3 rounded-md border border-sb-iron bg-sb-surface p-3 transition-colors hover:border-sb-silver sm:flex-row sm:items-center sm:justify-between",children:[x.jsxs("div",{className:"min-w-0",children:[x.jsx("p",{className:"truncate font-sans text-[14px] font-medium text-sb-frosted",children:T.frontmatter.title}),x.jsx("p",{className:"mt-0.5 truncate font-mono text-[11px] text-sb-silver",children:T.slug}),w?x.jsx(Ey,{match:w}):null]}),x.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:[x.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-sb-iron px-2 py-1 font-mono text-[11px] text-sb-silver",children:[x.jsx("span",{"aria-hidden":"true",className:"h-2 w-2 bg-sb-frosted"}),T.frontmatter.status]}),x.jsxs("time",{className:"font-mono text-[11px] text-sb-silver",dateTime:T.frontmatter.updated,title:T.frontmatter.updated,children:["Updated ",Ru(T.frontmatter.updated)]}),x.jsxs("button",{"aria-label":`Unarchive ${T.frontmatter.title}`,className:"inline-flex h-8 items-center gap-1.5 rounded border border-sb-iron bg-transparent px-2.5 text-[12px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2 disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:C,onClick:()=>void k(T.slug),children:[x.jsx(xb,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),C?"Restoring...":"Unarchive"]})]})]},T.slug)})})})]})}function kb({label:e}){return x.jsx("div",{className:"rounded-md border border-dashed border-sb-iron px-4 py-12 text-center font-mono text-[12px] text-sb-silver",children:e})}function Eh(e){const{related:n}=e.frontmatter;if(!Array.isArray(n))return[];const i=n.filter(l=>typeof l=="string").map(l=>l.trim()).filter(Boolean);return[...new Set(i)]}function mw(e){const n=e.archivedTasks??[],i=new Map(e.tasks.map(f=>[f.slug,f])),l=new Map(n.map(f=>[f.slug,f])),o=new Set([...e.archivedSlugs??[],...l.keys()]),u=new Map;for(const f of[...e.tasks,...n])for(const d of Eh(f)){if(d===f.slug)continue;const h=u.get(d)??[];h.includes(f.slug)||h.push(f.slug),u.set(d,h)}const c=(f,d)=>{const h=i.get(f),b=h?void 0:l.get(f),m=h??b;return{slug:f,direction:d,title:(m==null?void 0:m.frontmatter.title)??null,status:(m==null?void 0:m.frontmatter.status)??null,archived:!h&&o.has(f)}};return f=>{const d=Eh(f).filter(m=>m!==f.slug),h=u.get(f.slug)??[],b=new Set(d);return[...d.map(m=>c(m,h.includes(m)?"both":"outgoing")),...h.filter(m=>!b.has(m)).map(m=>c(m,"incoming"))]}}var pw=Object.defineProperty,ua=(e,n)=>pw(e,"name",{value:n,configurable:!0}),Ty=!!(typeof window<"u"&&window.document&&window.document.createElement);function wt(e,n,{checkForDefaultPrevented:i=!0}={}){return ua(function(o){if(e==null||e(o),i===!1||!o||!o.defaultPrevented)return n==null?void 0:n(o)},"handleEvent")}ua(wt,"composeEventHandlers");function gw(e){var n;if(!Ty)throw new Error("Cannot access window outside of the DOM");return((n=e==null?void 0:e.ownerDocument)==null?void 0:n.defaultView)??window}ua(gw,"getOwnerWindow");function kh(e){if(!Ty)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}ua(kh,"getOwnerDocument");function Ay(e,n=!1){const{activeElement:i}=kh(e);if(!(i!=null&&i.nodeName))return null;if(Dy(i)&&i.contentDocument)return Ay(i.contentDocument.body,n);if(n){const l=i.getAttribute("aria-activedescendant");if(l){const o=kh(i).getElementById(l);if(o)return o}}return i}ua(Ay,"getActiveElement");function Dy(e){return e.tagName==="IFRAME"}ua(Dy,"isFrame");var bw=Object.defineProperty,cm=(e,n)=>bw(e,"name",{value:n,configurable:!0});function Th(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}cm(Th,"setRef");function Ny(...e){return n=>{let i=!1;const l=e.map(o=>{const u=Th(o,n);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():Th(e[o],null)}}}}cm(Ny,"composeRefs");function At(...e){return E.useCallback(Ny(...e),e)}cm(At,"useComposedRefs");var vw=Object.defineProperty,er=(e,n)=>vw(e,"name",{value:n,configurable:!0});function yw(e,n){const i=E.createContext(n);i.displayName=e+"Context";const l=er(u=>{const{children:c,...f}=u,d=E.useMemo(()=>f,Object.values(f));return x.jsx(i.Provider,{value:d,children:c})},"Provider");l.displayName=e+"Provider";function o(u,c={}){const{optional:f=!1}=c,d=E.useContext(i);if(d)return d;if(n!==void 0)return n;if(!f)throw new Error(`\`${u}\` must be used within \`${e}\``)}return er(o,"useContext"),[l,o]}er(yw,"createContext");function ca(e,n=[]){let i=[];function l(u,c){const f=E.createContext(c);f.displayName=u+"Context";const d=i.length;i=[...i,c];const h=er(m=>{var w;const{scope:y,children:v,...k}=m,T=((w=y==null?void 0:y[e])==null?void 0:w[d])||f,C=E.useMemo(()=>k,Object.values(k));return x.jsx(T.Provider,{value:C,children:v})},"Provider");h.displayName=u+"Provider";function b(m,y,v={}){var w;const{optional:k=!1}=v,T=((w=y==null?void 0:y[e])==null?void 0:w[d])||f,C=E.useContext(T);if(C)return C;if(c!==void 0)return c;if(!k)throw new Error(`\`${m}\` must be used within \`${u}\``)}return er(b,"useContext"),[h,b]}er(l,"createContext");const o=er(()=>{const u=i.map(c=>E.createContext(c));return er(function(f){const d=(f==null?void 0:f[e])||u;return E.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])},"useScope")},"createScope");return o.scopeName=e,[l,Ry(o,...n)]}er(ca,"createContextScope");function Ry(...e){const n=e[0];if(e.length===1)return n;const i=er(()=>{const l=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return er(function(u){const c=l.reduce((f,{useScope:d,scopeName:h})=>{const m=d(u)[`__scope${h}`];return{...f,...m}},{});return E.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return i.scopeName=n.scopeName,i}er(Ry,"composeContextScopes");var tn=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},xw=Object.defineProperty,Sw=(e,n)=>xw(e,"name",{value:n,configurable:!0}),ww=_o[" useId ".trim().toString()]||(()=>{}),Cw=0;function ta(e){const[n,i]=E.useState(ww());return tn(()=>{e||i(l=>l??String(Cw++))},[e]),e||(n?`radix-${n}`:"")}Sw(ta,"useId");var Ew=Object.defineProperty,kw=(e,n)=>Ew(e,"name",{value:n,configurable:!0}),Tb=_o[" useEffectEvent ".trim().toString()],Ab=_o[" useInsertionEffect ".trim().toString()];function Oy(e){if(typeof Tb=="function")return Tb(e);const n=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ab=="function"?Ab(()=>{n.current=e}):tn(()=>{n.current=e}),E.useMemo(()=>((...i)=>{var l;return(l=n.current)==null?void 0:l.call(n,...i)}),[])}kw(Oy,"useEffectEvent");var Tw=Object.defineProperty,zo=(e,n)=>Tw(e,"name",{value:n,configurable:!0}),Aw=_o[" useInsertionEffect ".trim().toString()]||tn;function Ou({prop:e,defaultProp:n,onChange:i=zo(()=>{},"onChange"),caller:l}){const[o,u,c]=My({defaultProp:n,onChange:i}),f=e!==void 0,d=f?e:o,h=E.useCallback(b=>{var m;if(f){const y=jy(b)?b(e):b;y!==e&&((m=c.current)==null||m.call(c,y))}else u(b)},[f,e,u,c]);return[d,h]}zo(Ou,"useControllableState");function My({defaultProp:e,onChange:n}){const[i,l]=E.useState(e),o=E.useRef(i),u=E.useRef(n);return Aw(()=>{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,l,u]}zo(My,"useUncontrolledState");function jy(e){return typeof e=="function"}zo(jy,"isFunction");var Db=Symbol("RADIX:SYNC_STATE");function Dw(e,n,i,l){const{prop:o,defaultProp:u,onChange:c,caller:f}=n,d=o!==void 0,h=Oy(c),b=[{...i,state:u}];l&&b.push(l);const[m,y]=E.useReducer((C,w)=>{if(w.type===Db)return{...C,state:w.state};const A=e(C,w);return d&&!Object.is(A.state,C.state)&&h(A.state),A},...b),v=m.state,k=E.useRef(v);E.useEffect(()=>{k.current!==v&&(k.current=v,d||h(v))},[v,k,d]);const T=E.useMemo(()=>o!==void 0?{...m,state:o}:m,[m,o]);return E.useEffect(()=>{d&&!Object.is(o,m.state)&&y({type:Db,state:o})},[o,m.state,d]),[T,y]}zo(Dw,"useControllableStateReducer");var Nw=Object.defineProperty,cr=(e,n)=>Nw(e,"name",{value:n,configurable:!0});function Di(e){const n=E.forwardRef((i,l)=>{let{children:o,...u}=i,c=null,f=!1;const d=[];Ah(o)&&typeof ou=="function"&&(o=ou(o._payload)),E.Children.forEach(o,y=>{var v;if(By(y)){f=!0;const k=y;let T="child"in k.props?k.props.child:k.props.children;Ah(T)&&typeof ou=="function"&&(T=ou(T._payload)),c=Ow(k,T),d.push((v=c==null?void 0:c.props)==null?void 0:v.children)}else d.push(y)}),c?c=E.cloneElement(c,void 0,d):!f&&E.Children.count(o)===1&&E.isValidElement(o)&&(c=o);const h=c?zy(c):void 0,b=At(l,h);if(!c){if(o||o===0)throw new Error(f?_w(e):jw(e));return o}const m=Ly(u,c.props??{});return c.type!==E.Fragment&&(m.ref=l?b:h),E.cloneElement(c,m)});return n.displayName=`${e}.Slot`,n}cr(Di,"createSlot");var _y=Symbol.for("radix.slottable");function Rw(e){const n=cr(i=>"child"in i?i.children(i.child):i.children,"Slottable");return n.displayName=`${e}.Slottable`,n.__radixId=_y,n}cr(Rw,"createSlottable");var Ow=cr((e,n)=>{if("child"in e.props){const i=e.props.child;return E.isValidElement(i)?E.cloneElement(i,void 0,e.props.children(i.props.children)):null}return E.isValidElement(n)?n:null},"getSlottableElementFromSlottable");function Ly(e,n){const i={...n};for(const l in n){const o=e[l],u=n[l];/^on[A-Z]/.test(l)?o&&u?i[l]=(...f)=>{const d=u(...f);return o(...f),d}:o&&(i[l]=o):l==="style"?i[l]={...o,...u}:l==="className"&&(i[l]=[o,u].filter(Boolean).join(" "))}return{...e,...i}}cr(Ly,"mergeProps");function zy(e){var l,o;let n=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.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)}cr(zy,"getElementRef");function By(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_y}cr(By,"isSlottable");var Mw=Symbol.for("react.lazy");function Ah(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Mw&&"_payload"in e&&Hy(e._payload)}cr(Ah,"isLazyComponent");function Hy(e){return typeof e=="object"&&e!==null&&"then"in e}cr(Hy,"isPromiseLike");var jw=cr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),_w=cr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ou=_o[" use ".trim().toString()],Lw=Object.defineProperty,zw=(e,n)=>Lw(e,"name",{value:n,configurable:!0}),Bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ft=Bw.reduce((e,n)=>{const i=Di(`Primitive.${n}`),l=E.forwardRef((o,u)=>{const{asChild:c,...f}=o,d=c?i:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...f,ref:u})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});function Uy(e,n){e&&ar.flushSync(()=>e.dispatchEvent(n))}zw(Uy,"dispatchDiscreteCustomEvent");var Hw=Object.defineProperty,Uw=(e,n)=>Hw(e,"name",{value:n,configurable:!0});function wr(e){const n=E.useRef(e);return E.useEffect(()=>{n.current=e}),E.useMemo(()=>((...i)=>{var l;return(l=n.current)==null?void 0:l.call(n,...i)}),[])}Uw(wr,"useCallbackRef");var Iw=Object.defineProperty,$t=(e,n)=>Iw(e,"name",{value:n,configurable:!0}),Dh="dismissableLayer.update",Vw="dismissableLayer.pointerDownOutside",Pw="dismissableLayer.focusOutside",Nb,Iy=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Vy=E.forwardRef($t(function(n,i){const{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...b}=n,m=E.useContext(Iy),[y,v]=E.useState(null),k=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=E.useState({}),C=At(i,v),w=Array.from(m.layers),[A]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),D=A?w.indexOf(A):-1,R=y?w.indexOf(y):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,N=R>=D,M=E.useRef(!1),B=Fy(X=>{c==null||c(X),d==null||d(X),X.defaultPrevented||h==null||h()},{ownerDocument:k,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:E.useCallback(X=>{if(!(X instanceof Node))return!1;const U=[...m.branches].some(q=>q.contains(X));return N&&!U},[m.branches,N])}),F=qy(X=>{if(o&&M.current)return;const U=X.target;[...m.branches].some(J=>J.contains(U))||(f==null||f(X),d==null||d(X),X.defaultPrevented||h==null||h())},k),L=y?R===w.length-1:!1,P=wr(X=>{X.key==="Escape"&&(u==null||u(X),!X.defaultPrevented&&h&&(X.preventDefault(),h()))});return E.useEffect(()=>{if(L)return k.addEventListener("keydown",P,{capture:!0}),()=>k.removeEventListener("keydown",P,{capture:!0})},[k,L,P]),E.useEffect(()=>{if(y)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Nb=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Nh(),()=>{l&&(m.layersWithOutsidePointerEventsDisabled.delete(y),m.layersWithOutsidePointerEventsDisabled.size===0&&(k.body.style.pointerEvents=Nb))}},[y,k,l,m]),E.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Nh())},[y,m]),E.useEffect(()=>{const X=$t(()=>T({}),"handleUpdate");return document.addEventListener(Dh,X),()=>document.removeEventListener(Dh,X)},[]),x.jsx(Ft.div,{...b,ref:C,style:{pointerEvents:_?N?"auto":"none":void 0,...n.style},onFocusCapture:wt(n.onFocusCapture,F.onFocusCapture),onBlurCapture:wt(n.onBlurCapture,F.onBlurCapture),onPointerDownCapture:wt(n.onPointerDownCapture,B.onPointerDownCapture)})},"DismissableLayer"));function Py(){const e=E.useContext(Iy),[n,i]=E.useState(null);return E.useEffect(()=>{if(n)return e.dismissableSurfaces.add(n),()=>{e.dismissableSurfaces.delete(n)}},[n,e.dismissableSurfaces]),i}$t(Py,"useDismissableLayerSurface");var Fw=$t(()=>!0,"IS_TRUE");function Fy(e,n){const{ownerDocument:i=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:l=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:u,shouldHandlePointerDownOutside:c=Fw}=n,f=wr(e),d=E.useRef(!1),h=E.useRef(!1),b=E.useRef(new Map),m=E.useRef(()=>{});return E.useEffect(()=>{function y(){h.current=!1,o.current=!1,b.current.clear()}$t(y,"resetOutsideInteraction");function v(){return Array.from(b.current.values()).some(Boolean)}$t(v,"isOutsideInteractionIntercepted");function k(D){if(!h.current)return;const R=D.target;R instanceof Node&&[...u].some(N=>N.contains(R))||b.current.set(D.type,!0),D.type==="click"&&window.setTimeout(()=>{h.current&&m.current()},0)}$t(k,"handleInteractionCapture");function T(D){h.current&&b.current.set(D.type,!1)}$t(T,"handleInteractionBubble");const C=$t(D=>{if(D.target&&!d.current){let R=function(){i.removeEventListener("click",m.current);const N=v();y(),N||fm(Vw,f,_,{discrete:!0})};if($t(R,"handleAndDispatchPointerDownOutsideEvent"),!c(D.target)){i.removeEventListener("click",m.current),y(),d.current=!1;return}const _={originalEvent:D};h.current=!0,o.current=l&&D.button===0,b.current.clear(),!l||D.button!==0?R():(i.removeEventListener("click",m.current),m.current=R,i.addEventListener("click",m.current,{once:!0}))}else i.removeEventListener("click",m.current),y();d.current=!1},"handlePointerDown"),w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const D of w)i.addEventListener(D,k,!0),i.addEventListener(D,T);const A=window.setTimeout(()=>{i.addEventListener("pointerdown",C)},0);return()=>{window.clearTimeout(A),i.removeEventListener("pointerdown",C),i.removeEventListener("click",m.current);for(const D of w)i.removeEventListener(D,k,!0),i.removeEventListener(D,T)}},[i,f,l,o,u,c]),{onPointerDownCapture:$t(()=>d.current=!0,"onPointerDownCapture")}}$t(Fy,"usePointerDownOutside");function qy(e,n=globalThis==null?void 0:globalThis.document){const i=wr(e),l=E.useRef(!1);return E.useEffect(()=>{const o=$t(u=>{u.target&&!l.current&&fm(Pw,i,{originalEvent:u},{discrete:!1})},"handleFocus");return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,i]),{onFocusCapture:$t(()=>l.current=!0,"onFocusCapture"),onBlurCapture:$t(()=>l.current=!1,"onBlurCapture")}}$t(qy,"useFocusOutside");function Nh(){const e=new CustomEvent(Dh);document.dispatchEvent(e)}$t(Nh,"dispatchUpdate");function fm(e,n,i,{discrete:l}){const o=i.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});n&&o.addEventListener(e,n,{once:!0}),l?Uy(o,u):o.dispatchEvent(u)}$t(fm,"handleAndDispatchCustomEvent");var qw=Object.defineProperty,hn=(e,n)=>qw(e,"name",{value:n,configurable:!0}),Ud="focusScope.autoFocusOnMount",Id="focusScope.autoFocusOnUnmount",Rb={bubbles:!1,cancelable:!0},Yy=E.forwardRef(hn(function(n,i){const{loop:l=!1,trapped:o=!1,onMountAutoFocus:u,onUnmountAutoFocus:c,...f}=n,[d,h]=E.useState(null),b=wr(u),m=wr(c),y=E.useRef(null),v=At(i,h),k=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(o){let C=function(R){if(k.paused||!d)return;const _=R.target;d.contains(_)?y.current=_:Yr(y.current,{select:!0})},w=function(R){if(k.paused||!d)return;const _=R.relatedTarget;_!==null&&(d.contains(_)||Yr(y.current,{select:!0}))},A=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&Yr(d)};hn(C,"handleFocusIn"),hn(w,"handleFocusOut"),hn(A,"handleMutations"),document.addEventListener("focusin",C),document.addEventListener("focusout",w);const D=new MutationObserver(A);return d&&D.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",w),D.disconnect()}}},[o,d,k.paused]),E.useEffect(()=>{if(d){Ob.add(k);const C=document.activeElement;if(!d.contains(C)){const A=new CustomEvent(Ud,Rb);d.addEventListener(Ud,b),d.dispatchEvent(A),A.defaultPrevented||(Xy(Ky(dm(d)),{select:!0}),document.activeElement===C&&Yr(d))}return()=>{d.removeEventListener(Ud,b),setTimeout(()=>{const A=new CustomEvent(Id,Rb);d.addEventListener(Id,m),d.dispatchEvent(A),A.defaultPrevented||Yr(C??document.body,{select:!0}),d.removeEventListener(Id,m),Ob.remove(k)},0)}}},[d,b,m,k]);const T=E.useCallback(C=>{if(!l&&!o||k.paused)return;const w=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,A=document.activeElement;if(w&&A){const D=C.currentTarget,[R,_]=$y(D);R&&_?!C.shiftKey&&A===_?(C.preventDefault(),l&&Yr(R,{select:!0})):C.shiftKey&&A===R&&(C.preventDefault(),l&&Yr(_,{select:!0})):A===D&&C.preventDefault()}},[l,o,k.paused]);return x.jsx(Ft.div,{tabIndex:-1,...f,ref:v,onKeyDown:T})},"FocusScope"));function Xy(e,{select:n=!1}={}){const i=document.activeElement;for(const l of e)if(Yr(l,{select:n}),document.activeElement!==i)return}hn(Xy,"focusFirst");function $y(e){const n=dm(e),i=Rh(n,e),l=Rh(n.reverse(),e);return[i,l]}hn($y,"getTabbableEdges");function dm(e){const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:hn(l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;i.nextNode();)n.push(i.currentNode);return n}hn(dm,"getTabbableCandidates");function Rh(e,n){const i=typeof n.checkVisibility=="function"&&n.checkVisibility({checkVisibilityCSS:!0});for(const l of e)if(!(i?!l.checkVisibility({checkVisibilityCSS:!0}):Zy(l,{upTo:n})))return l}hn(Rh,"findVisible");function Zy(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}hn(Zy,"isHidden");function Gy(e){return e instanceof HTMLInputElement&&"select"in e}hn(Gy,"isSelectableInput");function Yr(e,{select:n=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&Gy(e)&&n&&e.select()}}hn(Yr,"focus");var Ob=Qy();function Qy(){let e=[];return{add(n){const i=e[0];n!==i&&(i==null||i.pause()),e=Oh(e,n),e.unshift(n)},remove(n){var i;e=Oh(e,n),(i=e[0])==null||i.resume()}}}hn(Qy,"createFocusScopesStack");function Oh(e,n){const i=[...e],l=i.indexOf(n);return l!==-1&&i.splice(l,1),i}hn(Oh,"arrayRemove");function Ky(e){return e.filter(n=>n.tagName!=="A")}hn(Ky,"removeLinks");var Yw=Object.defineProperty,Xw=(e,n)=>Yw(e,"name",{value:n,configurable:!0}),Jy=E.forwardRef(Xw(function(n,i){var d;const{container:l,...o}=n,[u,c]=E.useState(!1);tn(()=>c(!0),[]);const f=l||u&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return f?ar.createPortal(x.jsx(Ft.div,{...o,ref:i}),f):null},"Portal")),$w=Object.defineProperty,Zr=(e,n)=>$w(e,"name",{value:n,configurable:!0});function Wy(e,n){return E.useReducer((i,l)=>n[i][l]??i,e)}Zr(Wy,"useStateMachine");var Qu=Zr(e=>{const{present:n,children:i}=e,l=ex(n),o=typeof i=="function"?i({present:l.isPresent}):E.Children.only(i),u=tx(l.ref,nx(o));return typeof i=="function"||l.isPresent?E.cloneElement(o,{ref:u}):null},"Presence");function ex(e){const[n,i]=E.useState(),l=E.useRef(null),o=E.useRef(e),u=E.useRef("none"),c=E.useRef(void 0),f=e?"mounted":"unmounted",[d,h]=Wy(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{d==="mounted"?(u.current=c.current??Wl(l.current),c.current=void 0):u.current="none"},[d]),tn(()=>{const b=l.current,m=o.current;if(m!==e){const v=u.current,k=Wl(b);e?(c.current=k,h("MOUNT")):k==="none"||(b==null?void 0:b.display)==="none"?h("UNMOUNT"):h(m&&v!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),tn(()=>{if(n){let b;const m=n.ownerDocument.defaultView??window,y=Zr(k=>{const C=Wl(l.current).includes(CSS.escape(k.animationName));if(k.target===n&&C&&(h("ANIMATION_END"),!o.current)){const w=n.style.animationFillMode;n.style.animationFillMode="forwards",b=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=w)})}},"handleAnimationEnd"),v=Zr(k=>{k.target===n&&(u.current=Wl(l.current))},"handleAnimationStart");return n.addEventListener("animationstart",v),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(b),n.removeEventListener("animationstart",v),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:E.useCallback(b=>{if(b){const m=getComputedStyle(b);l.current=m,c.current=Wl(m)}else l.current=null;i(b)},[])}}Zr(ex,"usePresence");function Mh(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}Zr(Mh,"setRef");function tx(...e){const n=E.useRef(e);return n.current=e,E.useCallback(i=>{const l=n.current;let o=!1;const u=l.map(c=>{const f=Mh(c,i);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():Mh(l[c],null)}}},[])}Zr(tx,"useStableComposedRefs");function Wl(e){return(e==null?void 0:e.animationName)||"none"}Zr(Wl,"getAnimationName");function nx(e){var l,o;let n=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.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)}Zr(nx,"getElementRef");var Zw=Object.defineProperty,hm=(e,n)=>Zw(e,"name",{value:n,configurable:!0}),su=0,vr=null;function Gw(e){return Ku(),e.children}hm(Gw,"FocusGuards");function Ku(){E.useEffect(()=>{vr||(vr={start:jh(),end:jh()});const{start:e,end:n}=vr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==n&&document.body.insertAdjacentElement("beforeend",n),su++,()=>{su===1&&(vr==null||vr.start.remove(),vr==null||vr.end.remove(),vr=null),su=Math.max(0,su-1)}},[])}hm(Ku,"useFocusGuards");function jh(){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}hm(jh,"createFocusGuard");var xr=function(){return xr=Object.assign||function(n){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},xr.apply(this,arguments)};function rx(e,n){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o<l.length;o++)n.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(i[l[o]]=e[l[o]]);return i}function Qw(e,n,i){if(i||arguments.length===2)for(var l=0,o=n.length,u;l<o;l++)(u||!(l in n))&&(u||(u=Array.prototype.slice.call(n,0,l)),u[l]=n[l]);return e.concat(u||Array.prototype.slice.call(n))}var xu="right-scroll-bar-position",Su="width-before-scroll-bar",Kw="with-scroll-bars-hidden",Jw="--removed-body-scroll-bar-size";function Vd(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function Ww(e,n){var i=E.useState(function(){return{value:e,callback:n,facade:{get current(){return i.value},set current(l){var o=i.value;o!==l&&(i.value=l,i.callback(l,o))}}}})[0];return i.callback=n,i.facade}var eC=typeof window<"u"?E.useLayoutEffect:E.useEffect,Mb=new WeakMap;function tC(e,n){var i=Ww(null,function(l){return e.forEach(function(o){return Vd(o,l)})});return eC(function(){var l=Mb.get(i);if(l){var o=new Set(l),u=new Set(e),c=i.current;o.forEach(function(f){u.has(f)||Vd(f,null)}),u.forEach(function(f){o.has(f)||Vd(f,c)})}Mb.set(i,e)},[e]),i}function nC(e){return e}function rC(e,n){n===void 0&&(n=nC);var i=[],l=!1,o={read:function(){if(l)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,l);return i.push(c),function(){i=i.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(l=!0;i.length;){var c=i;i=[],c.forEach(u)}i={push:function(f){return u(f)},filter:function(){return i}}},assignMedium:function(u){l=!0;var c=[];if(i.length){var f=i;i=[],f.forEach(u),c=i}var d=function(){var b=c;c=[],b.forEach(u)},h=function(){return Promise.resolve().then(d)};h(),i={push:function(b){c.push(b),h()},filter:function(b){return c=c.filter(b),i}}}};return o}function iC(e){e===void 0&&(e={});var n=rC(null);return n.options=xr({async:!0,ssr:!1},e),n}var ix=function(e){var n=e.sideCar,i=rx(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=n.read();if(!l)throw new Error("Sidecar medium not found");return E.createElement(l,xr({},i))};ix.isSideCarExport=!0;function lC(e,n){return e.useMedium(n),ix}var lx=iC(),Pd=function(){},Ju=E.forwardRef(function(e,n){var i=E.useRef(null),l=E.useState({onScrollCapture:Pd,onWheelCapture:Pd,onTouchMoveCapture:Pd}),o=l[0],u=l[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,b=e.enabled,m=e.shards,y=e.sideCar,v=e.noRelative,k=e.noIsolation,T=e.inert,C=e.allowPinchZoom,w=e.as,A=w===void 0?"div":w,D=e.gapMode,R=rx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=y,N=tC([i,n]),M=xr(xr({},R),o);return E.createElement(E.Fragment,null,b&&E.createElement(_,{sideCar:lx,removeScrollBar:h,shards:m,noRelative:v,noIsolation:k,inert:T,setCallbacks:u,allowPinchZoom:!!C,lockRef:i,gapMode:D}),c?E.cloneElement(E.Children.only(f),xr(xr({},M),{ref:N})):E.createElement(A,xr({},M,{className:d,ref:N}),f))});Ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ju.classNames={fullWidth:Su,zeroRight:xu};var aC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=aC();return n&&e.setAttribute("nonce",n),e}function sC(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function uC(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var cC=function(){var e=0,n=null;return{add:function(i){e==0&&(n=oC())&&(sC(n,i),uC(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},fC=function(){var e=cC();return function(n,i){E.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},ax=function(){var e=fC(),n=function(i){var l=i.styles,o=i.dynamic;return e(l,o),null};return n},dC={left:0,top:0,right:0,gap:0},Fd=function(e){return parseInt(e||"",10)||0},hC=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],l=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[Fd(i),Fd(l),Fd(o)]},mC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dC;var n=hC(e),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,l-i+n[2]-n[0])}},pC=ax(),na="data-scroll-locked",gC=function(e,n,i,l){var o=e.left,u=e.top,c=e.right,f=e.gap;return i===void 0&&(i="margin"),`
51
+ .`.concat(Kw,` {
52
+ overflow: hidden `).concat(l,`;
53
+ padding-right: `).concat(f,"px ").concat(l,`;
54
+ }
55
+ body[`).concat(na,`] {
56
+ overflow: hidden `).concat(l,`;
57
+ overscroll-behavior: contain;
58
+ `).concat([n&&"position: relative ".concat(l,";"),i==="margin"&&`
59
+ padding-left: `.concat(o,`px;
60
+ padding-top: `).concat(u,`px;
61
+ padding-right: `).concat(c,`px;
62
+ margin-left:0;
63
+ margin-top:0;
64
+ margin-right: `).concat(f,"px ").concat(l,`;
65
+ `),i==="padding"&&"padding-right: ".concat(f,"px ").concat(l,";")].filter(Boolean).join(""),`
66
+ }
67
+
68
+ .`).concat(xu,` {
69
+ right: `).concat(f,"px ").concat(l,`;
70
+ }
71
+
72
+ .`).concat(Su,` {
73
+ margin-right: `).concat(f,"px ").concat(l,`;
74
+ }
75
+
76
+ .`).concat(xu," .").concat(xu,` {
77
+ right: 0 `).concat(l,`;
78
+ }
79
+
80
+ .`).concat(Su," .").concat(Su,` {
81
+ margin-right: 0 `).concat(l,`;
82
+ }
83
+
84
+ body[`).concat(na,`] {
85
+ `).concat(Jw,": ").concat(f,`px;
86
+ }
87
+ `)},jb=function(){var e=parseInt(document.body.getAttribute(na)||"0",10);return isFinite(e)?e:0},bC=function(){E.useEffect(function(){return document.body.setAttribute(na,(jb()+1).toString()),function(){var e=jb()-1;e<=0?document.body.removeAttribute(na):document.body.setAttribute(na,e.toString())}},[])},vC=function(e){var n=e.noRelative,i=e.noImportant,l=e.gapMode,o=l===void 0?"margin":l;bC();var u=E.useMemo(function(){return mC(o)},[o]);return E.createElement(pC,{styles:gC(u,!n,o,i?"":"!important")})},_h=!1;if(typeof window<"u")try{var uu=Object.defineProperty({},"passive",{get:function(){return _h=!0,!0}});window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{_h=!1}var Zl=_h?{passive:!1}:!1,yC=function(e){return e.tagName==="TEXTAREA"},ox=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!yC(e)&&i[n]==="visible")},xC=function(e){return ox(e,"overflowY")},SC=function(e){return ox(e,"overflowX")},_b=function(e,n){var i=n.ownerDocument,l=n;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=sx(e,l);if(o){var u=ux(e,l),c=u[1],f=u[2];if(c>f)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},wC=function(e){var n=e.scrollTop,i=e.scrollHeight,l=e.clientHeight;return[n,i,l]},CC=function(e){var n=e.scrollLeft,i=e.scrollWidth,l=e.clientWidth;return[n,i,l]},sx=function(e,n){return e==="v"?xC(n):SC(n)},ux=function(e,n){return e==="v"?wC(n):CC(n)},EC=function(e,n){return e==="h"&&n==="rtl"?-1:1},kC=function(e,n,i,l,o){var u=EC(e,window.getComputedStyle(n).direction),c=u*l,f=i.target,d=n.contains(f),h=!1,b=c>0,m=0,y=0;do{if(!f)break;var v=ux(e,f),k=v[0],T=v[1],C=v[2],w=T-C-u*k;(k||w)&&sx(e,f)&&(m+=w,y+=k);var A=f.parentNode;f=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!d&&f!==document.body||d&&(n.contains(f)||n===f));return(b&&Math.abs(m)<1||!b&&Math.abs(y)<1)&&(h=!0),h},cu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lb=function(e){return[e.deltaX,e.deltaY]},zb=function(e){return e&&"current"in e?e.current:e},TC=function(e,n){return e[0]===n[0]&&e[1]===n[1]},AC=function(e){return`
88
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
89
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
90
+ `)},DC=0,Gl=[];function NC(e){var n=E.useRef([]),i=E.useRef([0,0]),l=E.useRef(),o=E.useState(DC++)[0],u=E.useState(ax)[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 T=Qw([e.lockRef.current],(e.shards||[]).map(zb),!0).filter(Boolean);return T.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),T.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=E.useCallback(function(T,C){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!c.current.allowPinchZoom;var w=cu(T),A=i.current,D="deltaX"in T?T.deltaX:A[0]-w[0],R="deltaY"in T?T.deltaY:A[1]-w[1],_,N=T.target,M=Math.abs(D)>Math.abs(R)?"h":"v";if("touches"in T&&M==="h"&&N.type==="range")return!1;var B=window.getSelection(),F=B&&B.anchorNode,L=F?F===N||F.contains(N):!1;if(L)return!1;var P=_b(M,N);if(!P)return!0;if(P?_=M:(_=M==="v"?"h":"v",P=_b(M,N)),!P)return!1;if(!l.current&&"changedTouches"in T&&(D||R)&&(l.current=_),!_)return!0;var X=l.current||_;return kC(X,C,T,X==="h"?D:R)},[]),d=E.useCallback(function(T){var C=T;if(!(!Gl.length||Gl[Gl.length-1]!==u)){var w="deltaY"in C?Lb(C):cu(C),A=n.current.filter(function(_){return _.name===C.type&&(_.target===C.target||C.target===_.shadowParent)&&TC(_.delta,w)})[0];if(A&&A.should){C.cancelable&&C.preventDefault();return}if(!A){var D=(c.current.shards||[]).map(zb).filter(Boolean).filter(function(_){return _.contains(C.target)}),R=D.length>0?f(C,D[0]):!c.current.noIsolation;R&&C.cancelable&&C.preventDefault()}}},[]),h=E.useCallback(function(T,C,w,A){var D={name:T,delta:C,target:w,should:A,shadowParent:RC(w)};n.current.push(D),setTimeout(function(){n.current=n.current.filter(function(R){return R!==D})},1)},[]),b=E.useCallback(function(T){i.current=cu(T),l.current=void 0},[]),m=E.useCallback(function(T){h(T.type,Lb(T),T.target,f(T,e.lockRef.current))},[]),y=E.useCallback(function(T){h(T.type,cu(T),T.target,f(T,e.lockRef.current))},[]);E.useEffect(function(){return Gl.push(u),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",d,Zl),document.addEventListener("touchmove",d,Zl),document.addEventListener("touchstart",b,Zl),function(){Gl=Gl.filter(function(T){return T!==u}),document.removeEventListener("wheel",d,Zl),document.removeEventListener("touchmove",d,Zl),document.removeEventListener("touchstart",b,Zl)}},[]);var v=e.removeScrollBar,k=e.inert;return E.createElement(E.Fragment,null,k?E.createElement(u,{styles:AC(o)}):null,v?E.createElement(vC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RC(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const OC=lC(lx,NC);var mm=E.forwardRef(function(e,n){return E.createElement(Ju,xr({},e,{ref:n,sideCar:OC}))});mm.classNames=Ju.classNames;var MC=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ql=new WeakMap,fu=new WeakMap,du={},qd=0,cx=function(e){return e&&(e.host||cx(e.parentNode))},jC=function(e,n){return n.map(function(i){if(e.contains(i))return i;var l=cx(i);return l&&e.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},_C=function(e,n,i,l){var o=jC(n,Array.isArray(e)?e:[e]);du[i]||(du[i]=new WeakMap);var u=du[i],c=[],f=new Set,d=new Set(o),h=function(m){!m||f.has(m)||(f.add(m),h(m.parentNode))};o.forEach(h);var b=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(y){if(f.has(y))b(y);else try{var v=y.getAttribute(l),k=v!==null&&v!=="false",T=(Ql.get(y)||0)+1,C=(u.get(y)||0)+1;Ql.set(y,T),u.set(y,C),c.push(y),T===1&&k&&fu.set(y,!0),C===1&&y.setAttribute(i,"true"),k||y.setAttribute(l,"true")}catch(w){console.error("aria-hidden: cannot operate on ",y,w)}})};return b(n),f.clear(),qd++,function(){c.forEach(function(m){var y=Ql.get(m)-1,v=u.get(m)-1;Ql.set(m,y),u.set(m,v),y||(fu.has(m)||m.removeAttribute(l),fu.delete(m)),v||m.removeAttribute(i)}),qd--,qd||(Ql=new WeakMap,Ql=new WeakMap,fu=new WeakMap,du={})}},fx=function(e,n,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(e)?e:[e]),o=MC(e);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),_C(l,o,i,"aria-hidden")):function(){return null}},LC=Object.defineProperty,Un=(e,n)=>LC(e,"name",{value:n,configurable:!0}),pm="Dialog",[dx,HO]=ca(pm),[zC,fr]=dx(pm),gm=Un(e=>{const{__scopeDialog:n,children:i,open:l,defaultOpen:o,onOpenChange:u,modal:c=!0}=e,f=E.useRef(null),d=E.useRef(null),[h,b]=Ou({prop:l,defaultProp:o??!1,onChange:u,caller:pm}),[m,y]=E.useState(0),[v,k]=E.useState(0);return x.jsx(zC,{scope:n,triggerRef:f,contentRef:d,contentId:ta(),titleId:ta(),descriptionId:ta(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:y,setDescriptionCount:k,open:h,onOpenChange:b,onOpenToggle:E.useCallback(()=>b(T=>!T),[b]),modal:c,children:i})},"Dialog"),BC="DialogTrigger",HC=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,...o}=n,u=fr(BC,l),c=At(i,u.triggerRef);return x.jsx(Ft.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":Wu(u.open),...o,ref:c,onClick:wt(n.onClick,u.onOpenToggle)})},"DialogTrigger")),hx="DialogPortal",[UC,mx]=dx(hx,{forceMount:void 0}),bm=Un(e=>{const{__scopeDialog:n,forceMount:i,children:l,container:o}=e,u=fr(hx,n);return x.jsx(UC,{scope:n,forceMount:i,children:E.Children.map(l,c=>x.jsx(Qu,{present:i||u.open,children:x.jsx(Jy,{asChild:!0,container:o,children:c})}))})},"DialogPortal"),Lh="DialogOverlay",vm=E.forwardRef(Un(function(n,i){const l=mx(Lh,n.__scopeDialog),{forceMount:o=l.forceMount,...u}=n,c=fr(Lh,n.__scopeDialog);return c.modal?x.jsx(Qu,{present:o||c.open,children:x.jsx(VC,{...u,ref:i})}):null},"DialogOverlay")),IC=Di("DialogOverlay.RemoveScroll"),VC=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,...o}=n,u=fr(Lh,l),c=Py(),f=At(i,c);return x.jsx(mm,{as:IC,allowPinchZoom:!0,shards:[u.contentRef],children:x.jsx(Ft.div,{"data-state":Wu(u.open),...o,ref:f,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Co="DialogContent",ym=E.forwardRef(Un(function(n,i){const l=mx(Co,n.__scopeDialog),{forceMount:o=l.forceMount,...u}=n,c=fr(Co,n.__scopeDialog);return x.jsx(Qu,{present:o||c.open,children:c.modal?x.jsx(PC,{...u,ref:i}):x.jsx(FC,{...u,ref:i})})},"DialogContent")),PC=E.forwardRef(Un(function(n,i){const l=fr(Co,n.__scopeDialog),o=E.useRef(null),u=At(i,l.contentRef,o);return E.useEffect(()=>{const c=o.current;if(c)return fx(c)},[]),x.jsx(px,{...n,ref:u,trapFocus:l.open,disableOutsidePointerEvents:l.open,onCloseAutoFocus:wt(n.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=l.triggerRef.current)==null||f.focus()}),onPointerDownOutside:wt(n.onPointerDownOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&c.preventDefault()}),onFocusOutside:wt(n.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),FC=E.forwardRef(Un(function(n,i){const l=fr(Co,n.__scopeDialog),o=E.useRef(!1),u=E.useRef(!1);return x.jsx(px,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,d;(f=n.onCloseAutoFocus)==null||f.call(n,c),c.defaultPrevented||(o.current||(d=l.triggerRef.current)==null||d.focus(),c.preventDefault()),o.current=!1,u.current=!1},onInteractOutside:c=>{var h,b;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const f=c.target;((b=l.triggerRef.current)==null?void 0:b.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&u.current&&c.preventDefault()}})},"DialogContentNonModal")),px=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:c,...f}=n,d=fr(Co,l);return Ku(),x.jsx(x.Fragment,{children:x.jsx(Yy,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:u,onUnmountAutoFocus:c,children:x.jsx(Vy,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionPresent?d.descriptionId:void 0,"aria-labelledby":d.titlePresent?d.titleId:void 0,"data-state":Wu(d.open),...f,ref:i,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)})})})},"DialogContentImpl")),qC="DialogTitle",xm=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,...o}=n,u=fr(qC,l),{setTitleCount:c}=u;return tn(()=>(c(f=>f+1),()=>c(f=>f-1)),[c]),x.jsx(Ft.h2,{id:u.titleId,...o,ref:i})},"DialogTitle")),YC="DialogDescription",Sm=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,...o}=n,u=fr(YC,l),{setDescriptionCount:c}=u;return tn(()=>(c(f=>f+1),()=>c(f=>f-1)),[c]),x.jsx(Ft.p,{id:u.descriptionId,...o,ref:i})},"DialogDescription")),XC="DialogClose",Eo=E.forwardRef(Un(function(n,i){const{__scopeDialog:l,...o}=n,u=fr(XC,l);return x.jsx(Ft.button,{type:"button",...o,ref:i,onClick:wt(n.onClick,()=>u.onOpenChange(!1))})},"DialogClose"));function Wu(e){return e?"open":"closed"}Un(Wu,"getState");function $C({open:e,taskTitle:n,dependents:i,onOpenChange:l,onConfirm:o}){return x.jsx(gm,{open:e,onOpenChange:l,children:x.jsxs(bm,{children:[x.jsx(vm,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=open]:fade-in"}),x.jsxs(ym,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-md border border-sb-iron bg-sb-surface p-5 outline-none",children:[x.jsxs("div",{className:"flex items-start justify-between gap-3",children:[x.jsxs("div",{children:[x.jsx(xm,{className:"text-base font-semibold text-sb-frosted",children:"Archive task?"}),x.jsxs(Sm,{className:"mt-1 text-[13px] leading-relaxed text-sb-silver",children:["“",n,"” is not done, and these live tasks depend on it:"]})]}),x.jsx(Eo,{asChild:!0,children:x.jsx("button",{"aria-label":"Close",className:"rounded p-1 text-sb-silver transition-colors hover:text-sb-frosted",type:"button",children:x.jsx(oa,{"aria-hidden":"true",className:"h-4 w-4"})})})]}),x.jsx("ul",{"aria-label":"Tasks depending on this task",className:"mt-4 max-h-48 space-y-2 overflow-y-auto rounded border border-sb-iron bg-sb-surface2 p-3",children:i.map(u=>x.jsxs("li",{className:"min-w-0",children:[x.jsx("p",{className:"truncate text-[13px] text-sb-frosted",children:u.frontmatter.title}),x.jsx("p",{className:"truncate font-mono text-[11px] text-sb-silver",children:u.slug})]},u.slug))}),x.jsx("p",{className:"mt-3 text-[12px] leading-relaxed text-sb-silver",children:"Archive anyway only if you intend to treat this dependency as satisfied."}),x.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[x.jsx(Eo,{asChild:!0,children:x.jsx("button",{className:"h-9 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",children:"Cancel"})}),x.jsxs("button",{className:"inline-flex h-9 items-center gap-2 rounded bg-sb-accent px-4 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed",type:"button",onClick:()=>{l(!1),o()},children:[x.jsx(sa,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive anyway"]})]})]})]})})}const gx="sb-chev";function Bb(){return x.jsx("svg",{width:"0",height:"0",className:"absolute","aria-hidden":"true",children:x.jsx("defs",{children:x.jsx("symbol",{id:gx,viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M3 2.5 L15 12 L3 21.5 L8.6 21.5 L20.6 12 L8.6 2.5 Z"})})})})}function ko({className:e="h-2.5 w-2.5"}){return x.jsx("svg",{className:e,"aria-hidden":"true",children:x.jsx("use",{href:`#${gx}`})})}function ZC(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const GC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KC={};function Hb(e,n){return(KC.jsx?QC:GC).test(e)}const JC=/[ \t\n\f\r]/g;function WC(e){return typeof e=="object"?e.type==="text"?Ub(e.value):!1:Ub(e)}function Ub(e){return e.replace(JC,"")===""}class Bo{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}Bo.prototype.normal={};Bo.prototype.property={};Bo.prototype.space=void 0;function bx(e,n){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new Bo(i,l,n)}function zh(e){return e.toLowerCase()}class Tn{constructor(n,i){this.attribute=i,this.property=n}}Tn.prototype.attribute="";Tn.prototype.booleanish=!1;Tn.prototype.boolean=!1;Tn.prototype.commaOrSpaceSeparated=!1;Tn.prototype.commaSeparated=!1;Tn.prototype.defined=!1;Tn.prototype.mustUseProperty=!1;Tn.prototype.number=!1;Tn.prototype.overloadedBoolean=!1;Tn.prototype.property="";Tn.prototype.spaceSeparated=!1;Tn.prototype.space=void 0;let e9=0;const Ne=sl(),Ut=sl(),Bh=sl(),fe=sl(),at=sl(),nl=sl(),zn=sl();function sl(){return 2**++e9}const Hh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:Ut,commaOrSpaceSeparated:zn,commaSeparated:nl,number:fe,overloadedBoolean:Bh,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),Yd=Object.keys(Hh);class wm extends Tn{constructor(n,i,l,o){let u=-1;if(super(n,i),Ib(this,"space",o),typeof l=="number")for(;++u<Yd.length;){const c=Yd[u];Ib(this,Yd[u],(l&Hh[c])===Hh[c])}}}wm.prototype.defined=!0;function Ib(e,n,i){i&&(e[n]=i)}function fa(e){const n={},i={};for(const[l,o]of Object.entries(e.properties)){const u=new wm(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(u.mustUseProperty=!0),n[l]=u,i[zh(l)]=l,i[zh(u.attribute)]=l}return new Bo(n,i,e.space)}const vx=fa({properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:at,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:fe,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:at,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Ut,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function yx(e,n){return n in e?e[n]:n}function xx(e,n){return yx(e,n.toLowerCase())}const t9=fa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nl,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alpha:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:at,autoFocus:Ne,autoPlay:Ne,blocking:at,capture:null,charSet:null,checked:Ne,cite:null,className:at,closedBy:null,colorSpace:null,cols:fe,colSpan:fe,command:null,commandFor:null,content:null,contentEditable:Ut,controls:Ne,controlsList:at,coords:fe|nl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:Bh,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:at,height:fe,hidden:Bh,high:fe,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:at,itemRef:at,itemScope:Ne,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,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:Ne,optimum:fe,pattern:null,ping:at,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:at,required:Ne,reversed:Ne,rows:fe,rowSpan:fe,sandbox:at,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootCustomElementRegistry:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shadowRootSerializable:Ne,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:Ut,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ne,disablePictureInPicture:Ne,disableRemotePlayback:Ne,exportParts:nl,part:at,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:xx}),n9=fa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zn,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:at,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:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,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:nl,g2:nl,glyphName:nl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,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:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zn,rev:zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zn,requiredFeatures:zn,requiredFonts:zn,requiredFormats:zn,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:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yx}),Sx=fa({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()}}),wx=fa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xx}),Cx=fa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),r9={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"},i9=/[A-Z]/g,Vb=/-[a-z]/g,l9=/^data[-\w.:]+$/i;function a9(e,n){const i=zh(n);let l=n,o=Tn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&l9.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Vb,s9);l="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Vb.test(u)){let c=u.replace(i9,o9);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=wm}return new o(l,n)}function o9(e){return"-"+e.toLowerCase()}function s9(e){return e.charAt(1).toUpperCase()}const u9=bx([vx,t9,Sx,wx,Cx],"html"),Cm=bx([vx,n9,Sx,wx,Cx],"svg");function c9(e){return e.join(" ").trim()}var Kl={},Xd,Pb;function f9(){if(Pb)return Xd;Pb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
91
+ `,h="/",b="*",m="",y="comment",v="declaration";function k(C,w){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];w=w||{};var A=1,D=1;function R(q){var J=q.match(n);J&&(A+=J.length);var H=q.lastIndexOf(d);D=~H?q.length-H:D+q.length}function _(){var q={line:A,column:D};return function(J){return J.position=new N(q),F(),J}}function N(q){this.start=q,this.end={line:A,column:D},this.source=w.source}N.prototype.content=C;function M(q){var J=new Error(w.source+":"+A+":"+D+": "+q);if(J.reason=q,J.filename=w.source,J.line=A,J.column=D,J.source=C,!w.silent)throw J}function B(q){var J=q.exec(C);if(J){var H=J[0];return R(H),C=C.slice(H.length),J}}function F(){B(i)}function L(q){var J;for(q=q||[];J=P();)J!==!1&&q.push(J);return q}function P(){var q=_();if(!(h!=C.charAt(0)||b!=C.charAt(1))){for(var J=2;m!=C.charAt(J)&&(b!=C.charAt(J)||h!=C.charAt(J+1));)++J;if(J+=2,m===C.charAt(J-1))return M("End of comment missing");var H=C.slice(2,J-2);return D+=2,R(H),C=C.slice(J),D+=2,q({type:y,comment:H})}}function X(){var q=_(),J=B(l);if(J){if(P(),!B(o))return M("property missing ':'");var H=B(u),Z=q({type:v,property:T(J[0].replace(e,m)),value:H?T(H[0].replace(e,m)):m});return B(c),Z}}function U(){var q=[];L(q);for(var J;J=X();)J!==!1&&(q.push(J),L(q));return q}return F(),U()}function T(C){return C?C.replace(f,m):m}return Xd=k,Xd}var Fb;function d9(){if(Fb)return Kl;Fb=1;var e=Kl&&Kl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=i;const n=e(f9());function i(l,o){let u=null;if(!l||typeof l!="string")return u;const c=(0,n.default)(l),f=typeof o=="function";return c.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:b}=d;f?o(h,b,d):b&&(u=u||{},u[h]=b)}),u}return Kl}var fo={},qb;function h9(){if(qb)return fo;qb=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(h){return!h||i.test(h)||e.test(h)},c=function(h,b){return b.toUpperCase()},f=function(h,b){return"".concat(b,"-")},d=function(h,b){return b===void 0&&(b={}),u(h)?h:(h=h.toLowerCase(),b.reactCompat?h=h.replace(o,f):h=h.replace(l,f),h.replace(n,c))};return fo.camelCase=d,fo}var ho,Yb;function m9(){if(Yb)return ho;Yb=1;var e=ho&&ho.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(d9()),i=h9();function l(o,u){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,d){f&&d&&(c[(0,i.camelCase)(f,u)]=d)}),c}return l.default=l,ho=l,ho}var p9=m9();const g9=$u(p9),Ex=kx("end"),Em=kx("start");function kx(e){return n;function n(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function b9(e){const n=Em(e),i=Ex(e);if(n&&i)return{start:n,end:i}}function bo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xb(e.position):"start"in e||"end"in e?Xb(e):"line"in e||"column"in e?Uh(e):""}function Uh(e){return $b(e&&e.line)+":"+$b(e&&e.column)}function Xb(e){return Uh(e&&e.start)+"-"+Uh(e&&e.end)}function $b(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(n,i,l){super(),typeof i=="string"&&(l=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 l=="string"){const d=l.indexOf(":");d===-1?u.ruleId=l:(u.source=l.slice(0,d),u.ruleId=l.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.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=bo(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}}on.prototype.file="";on.prototype.name="";on.prototype.reason="";on.prototype.message="";on.prototype.stack="";on.prototype.column=void 0;on.prototype.line=void 0;on.prototype.ancestors=void 0;on.prototype.cause=void 0;on.prototype.fatal=void 0;on.prototype.place=void 0;on.prototype.ruleId=void 0;on.prototype.source=void 0;const km={}.hasOwnProperty,v9=new Map,y9=/[A-Z]/g,x9=new Set(["table","tbody","thead","tfoot","tr"]),S9=new Set(["td","th"]),Tx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function w9(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let l;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=R9(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");l=N9(i,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:l,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"?Cm:u9,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=Ax(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function Ax(e,n,i){if(n.type==="element")return C9(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return E9(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return T9(e,n,i);if(n.type==="mdxjsEsm")return k9(e,n);if(n.type==="root")return A9(e,n,i);if(n.type==="text")return D9(e,n)}function C9(e,n,i){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Cm,e.schema=o),e.ancestors.push(n);const u=Nx(e,n.tagName,!1),c=O9(e,n);let f=Am(e,n);return x9.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!WC(d):!0})),Dx(e,c,u,n),Tm(c,f),e.ancestors.pop(),e.schema=l,e.create(n,u,c,i)}function E9(e,n){if(n.data&&n.data.estree&&e.evaluater){const l=n.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}To(e,n.position)}function k9(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);To(e,n.position)}function T9(e,n,i){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=Cm,e.schema=o),e.ancestors.push(n);const u=n.name===null?e.Fragment:Nx(e,n.name,!0),c=M9(e,n),f=Am(e,n);return Dx(e,c,u,n),Tm(c,f),e.ancestors.pop(),e.schema=l,e.create(n,u,c,i)}function A9(e,n,i){const l={};return Tm(l,Am(e,n)),e.create(n,e.Fragment,l,i)}function D9(e,n){return n.value}function Dx(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function Tm(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function N9(e,n,i){return l;function l(o,u,c,f){const h=Array.isArray(c.children)?i:n;return f?h(u,c,f):h(u,c)}}function R9(e,n){return i;function i(l,o,u,c){const f=Array.isArray(u.children),d=Em(l);return n(o,u,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function O9(e,n){const i={};let l,o;for(o in n.properties)if(o!=="children"&&km.call(n.properties,o)){const u=j9(e,o,n.properties[o]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&S9.has(n.tagName)?l=f:i[c]=f}}if(l){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function M9(e,n){const i={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const u=l.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 To(e,n.position);else{const o=l.name;let u;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const f=l.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else To(e,n.position);else u=l.value===null?!0:l.value;i[o]=u}return i}function Am(e,n){const i=[];let l=-1;const o=e.passKeys?new Map:v9;for(;++l<n.children.length;){const u=n.children[l];let c;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const h=o.get(d)||0;c=d+"-"+h,o.set(d,h+1)}}const f=Ax(e,u,c);f!==void 0&&i.push(f)}return i}function j9(e,n,i){const l=a9(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?ZC(i):c9(i)),l.property==="style"){let o=typeof i=="object"?i:_9(e,String(i));return e.stylePropertyNameCase==="css"&&(o=L9(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?r9[l.property]||l.property:l.attribute,i]}}function _9(e,n){try{return g9(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Tx+"#cannot-parse-style-attribute",o}}function Nx(e,n,i){let l;if(!i)l={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let u=-1,c;for(;++u<o.length;){const f=Hb(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}l=c}else l=Hb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return km.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);To(e)}function To(e,n){const i=new on("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=Tx+"#cannot-handle-mdx-estrees-without-createevaluater",i}function L9(e){const n={};let i;for(i in e)km.call(e,i)&&(n[z9(i)]=e[i]);return n}function z9(e){let n=e.replace(y9,B9);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function B9(e){return"-"+e.toLowerCase()}const $d={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"]},H9={};function ec(e,n){const i=H9,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Rx(e,l,o)}function Rx(e,n,i){if(U9(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 Zb(e.children,n,i)}return Array.isArray(e)?Zb(e,n,i):""}function Zb(e,n,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=Rx(e[o],n,i);return l.join("")}function U9(e){return!!(e&&typeof e=="object")}const Gb=document.createElement("i");function Dm(e){const n="&"+e+";";Gb.innerHTML=n;const i=Gb.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function Hn(e,n,i,l){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,l.length<1e4)c=Array.from(l),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);u<l.length;)c=l.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Wn(e,n){return e.length>0?(Hn(e,e.length,0,n),e):n}const Qb={}.hasOwnProperty;function Ox(e){const n={};let i=-1;for(;++i<e.length;)I9(n,e[i]);return n}function I9(e,n){let i;for(i in n){const o=(Qb.call(e,i)?e[i]:void 0)||(e[i]={}),u=n[i];let c;if(u)for(c in u){Qb.call(o,c)||(o[c]=[]);const f=u[c];V9(o[c],Array.isArray(f)?f:f?[f]:[])}}}function V9(e,n){let i=-1;const l=[];for(;++i<n.length;)(n[i].add==="after"?e:l).push(n[i]);Hn(e,0,0,l)}function Mx(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 or(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn=Mi(/[A-Za-z]/),an=Mi(/[\dA-Za-z]/),P9=Mi(/[#-'*+\--9=?A-Z^-~]/);function Mu(e){return e!==null&&(e<32||e===127)}const Ih=Mi(/\d/),F9=Mi(/[\dA-Fa-f]/),q9=Mi(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function ot(e){return e!==null&&(e<0||e===32)}function ze(e){return e===-2||e===-1||e===32}const Ho=Mi(new RegExp("\\p{P}|\\p{S}","u")),il=Mi(/\s/);function Mi(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function da(e){const n=[];let i=-1,l=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&an(e.charCodeAt(i+1))&&an(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(l,i),encodeURIComponent(c)),l=i+o+1,c=""),o&&(i+=o,o=0)}return n.join("")+e.slice(l)}function Fe(e,n,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(d){return ze(d)?(e.enter(i),f(d)):n(d)}function f(d){return ze(d)&&u++<o?(e.consume(d),f):(e.exit(i),n(d))}}const Y9={tokenize:X9};function X9(e){const n=e.attempt(this.parser.constructs.contentInitial,l,o);let i;return n;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Fe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const d=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=d),i=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ee(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const $9={tokenize:Z9},Kb={tokenize:G9};function Z9(e){const n=this,i=[];let l=0,o,u,c;return f;function f(D){if(l<i.length){const R=i[l];return n.containerState=R[1],e.attempt(R[0].continuation,d,h)(D)}return h(D)}function d(D){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&A();const R=n.events.length;let _=R,N;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){N=n.events[_][1].end;break}w(l);let M=R;for(;M<n.events.length;)n.events[M][1].end={...N},M++;return Hn(n.events,_+1,0,n.events.slice(R)),n.events.length=M,h(D)}return f(D)}function h(D){if(l===i.length){if(!o)return y(D);if(o.currentConstruct&&o.currentConstruct.concrete)return k(D);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Kb,b,m)(D)}function b(D){return o&&A(),w(l),y(D)}function m(D){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,k(D)}function y(D){return n.containerState={},e.attempt(Kb,v,k)(D)}function v(D){return l++,i.push([n.currentConstruct,n.containerState]),y(D)}function k(D){if(D===null){o&&A(),w(0),e.consume(D);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),T(D)}function T(D){if(D===null){C(e.exit("chunkFlow"),!0),w(0),e.consume(D);return}return Ee(D)?(e.consume(D),C(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(D),T)}function C(D,R){const _=n.sliceStream(D);if(R&&_.push(null),D.previous=u,u&&(u.next=D),u=D,o.defineSkip(D.start),o.write(_),n.parser.lazy[D.start.line]){let N=o.events.length;for(;N--;)if(o.events[N][1].start.offset<c&&(!o.events[N][1].end||o.events[N][1].end.offset>c))return;const M=n.events.length;let B=M,F,L;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(F){L=n.events[B][1].end;break}F=!0}for(w(l),N=M;N<n.events.length;)n.events[N][1].end={...L},N++;Hn(n.events,B+1,0,n.events.slice(M)),n.events.length=N}}function w(D){let R=i.length;for(;R-- >D;){const _=i[R];n.containerState=_[1],_[0].exit.call(n,e)}i.length=D}function A(){o.write([null]),u=void 0,o=void 0,n.containerState._closeFlow=void 0}}function G9(e,n,i){return Fe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function la(e){if(e===null||ot(e)||il(e))return 1;if(Ho(e))return 2}function tc(e,n,i){const l=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!l.includes(u)&&(n=u(n,i),l.push(u))}return n}const Vh={name:"attention",resolveAll:Q9,tokenize:K9};function Q9(e,n){let i=-1,l,o,u,c,f,d,h,b;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&n.sliceSerialize(e[l][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;d=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const m={...e[l][1].end},y={...e[i][1].start};Jb(m,-d),Jb(y,d),c={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[l][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},u={type:d>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[l][1].end={...c.start},e[i][1].start={...f.end},h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=Wn(h,[["enter",e[l][1],n],["exit",e[l][1],n]])),h=Wn(h,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",u,n]]),h=Wn(h,tc(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),h=Wn(h,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(b=2,h=Wn(h,[["enter",e[i][1],n],["exit",e[i][1],n]])):b=0,Hn(e,l-1,i-l+3,h),i=l+h.length-b-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function K9(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=la(l);let u;return c;function c(d){return u=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===u)return e.consume(d),f;const h=e.exit("attentionSequence"),b=la(d),m=!b||b===2&&o||i.includes(d),y=!o||o===2&&b||i.includes(l);return h._open=!!(u===42?m:m&&(o||!y)),h._close=!!(u===42?y:y&&(b||!m)),n(d)}}function Jb(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const J9={name:"autolink",tokenize:W9};function W9(e,n,i){let l=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return dn(v)?(e.consume(v),c):v===64?i(v):h(v)}function c(v){return v===43||v===45||v===46||an(v)?(l=1,f(v)):h(v)}function f(v){return v===58?(e.consume(v),l=0,d):(v===43||v===45||v===46||an(v))&&l++<32?(e.consume(v),f):(l=0,h(v))}function d(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):v===null||v===32||v===60||Mu(v)?i(v):(e.consume(v),d)}function h(v){return v===64?(e.consume(v),b):P9(v)?(e.consume(v),h):i(v)}function b(v){return an(v)?m(v):i(v)}function m(v){return v===46?(e.consume(v),l=0,b):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):y(v)}function y(v){if((v===45||an(v))&&l++<63){const k=v===45?y:m;return e.consume(v),k}return i(v)}}const Uo={partial:!0,tokenize:e6};function e6(e,n,i){return l;function l(u){return ze(u)?Fe(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||Ee(u)?n(u):i(u)}}const jx={continuation:{tokenize:n6},exit:r6,name:"blockQuote",tokenize:t6};function t6(e,n,i){const l=this;return o;function o(c){if(c===62){const f=l.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 ze(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function n6(e,n,i){const l=this;return o;function o(c){return ze(c)?Fe(e,u,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(jx,n,i)(c)}}function r6(e){e.exit("blockQuote")}const _x={name:"characterEscape",tokenize:i6};function i6(e,n,i){return l;function l(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return q9(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(u)}}const Lx={name:"characterReference",tokenize:l6};function l6(e,n,i){const l=this;let o=0,u,c;return f;function f(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,c=an,b(m))}function h(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=F9,b):(e.enter("characterReferenceValue"),u=7,c=Ih,b(m))}function b(m){if(m===59&&o){const y=e.exit("characterReferenceValue");return c===an&&!Dm(l.sliceSerialize(y))?i(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(m)&&o++<u?(e.consume(m),b):i(m)}}const Wb={partial:!0,tokenize:o6},ev={concrete:!0,name:"codeFenced",tokenize:a6};function a6(e,n,i){const l=this,o={partial:!0,tokenize:_};let u=0,c=0,f;return d;function d(N){return h(N)}function h(N){const M=l.events[l.events.length-1];return u=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,f=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(N)}function b(N){return N===f?(c++,e.consume(N),b):c<3?i(N):(e.exit("codeFencedFenceSequence"),ze(N)?Fe(e,m,"whitespace")(N):m(N))}function m(N){return N===null||Ee(N)?(e.exit("codeFencedFence"),l.interrupt?n(N):e.check(Wb,T,R)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(N))}function y(N){return N===null||Ee(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(N)):ze(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fe(e,v,"whitespace")(N)):N===96&&N===f?i(N):(e.consume(N),y)}function v(N){return N===null||Ee(N)?m(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(N))}function k(N){return N===null||Ee(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(N)):N===96&&N===f?i(N):(e.consume(N),k)}function T(N){return e.attempt(o,R,C)(N)}function C(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),w}function w(N){return u>0&&ze(N)?Fe(e,A,"linePrefix",u+1)(N):A(N)}function A(N){return N===null||Ee(N)?e.check(Wb,T,R)(N):(e.enter("codeFlowValue"),D(N))}function D(N){return N===null||Ee(N)?(e.exit("codeFlowValue"),A(N)):(e.consume(N),D)}function R(N){return e.exit("codeFenced"),n(N)}function _(N,M,B){let F=0;return L;function L(J){return N.enter("lineEnding"),N.consume(J),N.exit("lineEnding"),P}function P(J){return N.enter("codeFencedFence"),ze(J)?Fe(N,X,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):X(J)}function X(J){return J===f?(N.enter("codeFencedFenceSequence"),U(J)):B(J)}function U(J){return J===f?(F++,N.consume(J),U):F>=c?(N.exit("codeFencedFenceSequence"),ze(J)?Fe(N,q,"whitespace")(J):q(J)):B(J)}function q(J){return J===null||Ee(J)?(N.exit("codeFencedFence"),M(J)):B(J)}}}function o6(e,n,i){const l=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 l.parser.lazy[l.now().line]?i(c):n(c)}}const Zd={name:"codeIndented",tokenize:u6},s6={partial:!0,tokenize:c6};function u6(e,n,i){const l=this;return o;function o(h){return e.enter("codeIndented"),Fe(e,u,"linePrefix",5)(h)}function u(h){const b=l.events[l.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(h):i(h)}function c(h){return h===null?d(h):Ee(h)?e.attempt(s6,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ee(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function c6(e,n,i){const l=this;return o;function o(c){return l.parser.lazy[l.now().line]?i(c):Ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Fe(e,u,"linePrefix",5)(c)}function u(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Ee(c)?o(c):i(c)}}const f6={name:"codeText",previous:h6,resolve:d6,tokenize:m6};function d6(e){let n=e.length-4,i=3,l,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(l=i;++l<n;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(l=i-1,n++;++l<=n;)o===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(o=l):(l===n||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),n-=l-o-2,l=o+2),o=void 0);return e}function h6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function m6(e,n,i){let l=0,o,u;return c;function c(m){return e.enter("codeText"),e.enter("codeTextSequence"),f(m)}function f(m){return m===96?(e.consume(m),l++,f):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?i(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(u=e.enter("codeTextSequence"),o=0,b(m)):Ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Ee(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),h)}function b(m){return m===96?(e.consume(m),o++,b):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(u.type="codeTextData",h(m))}}class p6{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 l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(n,l):n>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(n,i,l){const o=i||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&mo(this.left,l),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),mo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),mo(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);mo(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);mo(this.left,i.reverse())}}}function mo(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 zx(e){const n={};let i=-1,l,o,u,c,f,d,h;const b=new p6(e);for(;++i<b.length;){for(;i in n;)i=n[i];if(l=b.get(i),i&&l[1].type==="chunkFlow"&&b.get(i-1)[1].type==="listItemPrefix"&&(d=l[1]._tokenizer.events,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,g6(b,i)),i=n[i],h=!0);else if(l[1]._container){for(u=i,o=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(l[1].end={...b.get(o)[1].start},f=b.slice(o,i),f.unshift(l),b.splice(o,i-o+1,f))}}return Hn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!h}function g6(e,n){const i=e.get(n)[1],l=e.get(n)[2];let o=n-1;const u=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let b,m,y=-1,v=i,k=0,T=0;const C=[T];for(;v;){for(;e.get(++o)[1]!==v;);u.push(o),v._tokenizer||(b=l.sliceStream(v),v.next||b.push(null),m&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),m=v,v=v.next}for(v=i;++y<f.length;)f[y][0]==="exit"&&f[y-1][0]==="enter"&&f[y][1].type===f[y-1][1].type&&f[y][1].start.line!==f[y][1].end.line&&(T=y+1,C.push(T),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):C.pop(),y=C.length;y--;){const w=f.slice(C[y],C[y+1]),A=u.pop();d.push([A,A+w.length-1]),e.splice(A,2,w)}for(d.reverse(),y=-1;++y<d.length;)h[k+d[y][0]]=k+d[y][1],k+=d[y][1]-d[y][0]-1;return h}const b6={resolve:y6,tokenize:x6},v6={partial:!0,tokenize:S6};function y6(e){return zx(e),e}function x6(e,n){let i;return l;function l(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):Ee(f)?e.check(v6,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 S6(e,n,i){const l=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Fe(e,u,"linePrefix")}function u(c){if(c===null||Ee(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(l.parser.constructs.flow,i,n)(c)}}function Bx(e,n,i,l,o,u,c,f,d){const h=d||Number.POSITIVE_INFINITY;let b=0;return m;function m(w){return w===60?(e.enter(l),e.enter(o),e.enter(u),e.consume(w),e.exit(u),y):w===null||w===32||w===41||Mu(w)?i(w):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(w))}function y(w){return w===62?(e.enter(u),e.consume(w),e.exit(u),e.exit(o),e.exit(l),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===62?(e.exit("chunkString"),e.exit(f),y(w)):w===null||w===60||Ee(w)?i(w):(e.consume(w),w===92?k:v)}function k(w){return w===60||w===62||w===92?(e.consume(w),v):v(w)}function T(w){return!b&&(w===null||w===41||ot(w))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(w)):b<h&&w===40?(e.consume(w),b++,T):w===41?(e.consume(w),b--,T):w===null||w===32||w===40||Mu(w)?i(w):(e.consume(w),w===92?C:T)}function C(w){return w===40||w===41||w===92?(e.consume(w),T):T(w)}}function Hx(e,n,i,l,o,u){const c=this;let f=0,d;return h;function h(v){return e.enter(l),e.enter(o),e.consume(v),e.exit(o),e.enter(u),b}function b(v){return f>999||v===null||v===91||v===93&&!d||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(v):v===93?(e.exit(u),e.enter(o),e.consume(v),e.exit(o),e.exit(l),n):Ee(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===null||v===91||v===93||Ee(v)||f++>999?(e.exit("chunkString"),b(v)):(e.consume(v),d||(d=!ze(v)),v===92?y:m)}function y(v){return v===91||v===92||v===93?(e.consume(v),f++,m):m(v)}}function Ux(e,n,i,l,o,u){let c;return f;function f(y){return y===34||y===39||y===40?(e.enter(l),e.enter(o),e.consume(y),e.exit(o),c=y===40?41:y,d):i(y)}function d(y){return y===c?(e.enter(o),e.consume(y),e.exit(o),e.exit(l),n):(e.enter(u),h(y))}function h(y){return y===c?(e.exit(u),d(c)):y===null?i(y):Ee(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Fe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===c||y===null||Ee(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?m:b)}function m(y){return y===c||y===92?(e.consume(y),b):b(y)}}function vo(e,n){let i;return l;function l(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):ze(o)?Fe(e,l,i?"linePrefix":"lineSuffix")(o):n(o)}}const w6={name:"definition",tokenize:E6},C6={partial:!0,tokenize:k6};function E6(e,n,i){const l=this;let o;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return Hx.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return o=or(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),d):i(v)}function d(v){return ot(v)?vo(e,h)(v):h(v)}function h(v){return Bx(e,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return e.attempt(C6,m,m)(v)}function m(v){return ze(v)?Fe(e,y,"whitespace")(v):y(v)}function y(v){return v===null||Ee(v)?(e.exit("definition"),l.parser.defined.push(o),n(v)):i(v)}}function k6(e,n,i){return l;function l(f){return ot(f)?vo(e,o)(f):i(f)}function o(f){return Ux(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return ze(f)?Fe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ee(f)?n(f):i(f)}}const T6={name:"hardBreakEscape",tokenize:A6};function A6(e,n,i){return l;function l(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return Ee(u)?(e.exit("hardBreakEscape"),n(u)):i(u)}}const D6={name:"headingAtx",resolve:N6,tokenize:R6};function N6(e,n){let i=e.length-2,l=3,o,u;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},u={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Hn(e,l,i-l+1,[["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n]])),e}function R6(e,n,i){let l=0;return o;function o(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&l++<6?(e.consume(b),c):b===null||ot(b)?(e.exit("atxHeadingSequence"),f(b)):i(b)}function f(b){return b===35?(e.enter("atxHeadingSequence"),d(b)):b===null||Ee(b)?(e.exit("atxHeading"),n(b)):ze(b)?Fe(e,f,"whitespace")(b):(e.enter("atxHeadingText"),h(b))}function d(b){return b===35?(e.consume(b),d):(e.exit("atxHeadingSequence"),f(b))}function h(b){return b===null||b===35||ot(b)?(e.exit("atxHeadingText"),f(b)):(e.consume(b),h)}}const O6=["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"],tv=["pre","script","style","textarea"],M6={concrete:!0,name:"htmlFlow",resolveTo:L6,tokenize:z6},j6={partial:!0,tokenize:H6},_6={partial:!0,tokenize:B6};function L6(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 z6(e,n,i){const l=this;let o,u,c,f,d;return h;function h(j){return b(j)}function b(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),m}function m(j){return j===33?(e.consume(j),y):j===47?(e.consume(j),u=!0,T):j===63?(e.consume(j),o=3,l.interrupt?n:z):dn(j)?(e.consume(j),c=String.fromCharCode(j),C):i(j)}function y(j){return j===45?(e.consume(j),o=2,v):j===91?(e.consume(j),o=5,f=0,k):dn(j)?(e.consume(j),o=4,l.interrupt?n:z):i(j)}function v(j){return j===45?(e.consume(j),l.interrupt?n:z):i(j)}function k(j){const ie="CDATA[";return j===ie.charCodeAt(f++)?(e.consume(j),f===ie.length?l.interrupt?n:X:k):i(j)}function T(j){return dn(j)?(e.consume(j),c=String.fromCharCode(j),C):i(j)}function C(j){if(j===null||j===47||j===62||ot(j)){const ie=j===47,de=c.toLowerCase();return!ie&&!u&&tv.includes(de)?(o=1,l.interrupt?n(j):X(j)):O6.includes(c.toLowerCase())?(o=6,ie?(e.consume(j),w):l.interrupt?n(j):X(j)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(j):u?A(j):D(j))}return j===45||an(j)?(e.consume(j),c+=String.fromCharCode(j),C):i(j)}function w(j){return j===62?(e.consume(j),l.interrupt?n:X):i(j)}function A(j){return ze(j)?(e.consume(j),A):L(j)}function D(j){return j===47?(e.consume(j),L):j===58||j===95||dn(j)?(e.consume(j),R):ze(j)?(e.consume(j),D):L(j)}function R(j){return j===45||j===46||j===58||j===95||an(j)?(e.consume(j),R):_(j)}function _(j){return j===61?(e.consume(j),N):ze(j)?(e.consume(j),_):D(j)}function N(j){return j===null||j===60||j===61||j===62||j===96?i(j):j===34||j===39?(e.consume(j),d=j,M):ze(j)?(e.consume(j),N):B(j)}function M(j){return j===d?(e.consume(j),d=null,F):j===null||Ee(j)?i(j):(e.consume(j),M)}function B(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||ot(j)?_(j):(e.consume(j),B)}function F(j){return j===47||j===62||ze(j)?D(j):i(j)}function L(j){return j===62?(e.consume(j),P):i(j)}function P(j){return j===null||Ee(j)?X(j):ze(j)?(e.consume(j),P):i(j)}function X(j){return j===45&&o===2?(e.consume(j),H):j===60&&o===1?(e.consume(j),Z):j===62&&o===4?(e.consume(j),I):j===63&&o===3?(e.consume(j),z):j===93&&o===5?(e.consume(j),se):Ee(j)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(j6,G,U)(j)):j===null||Ee(j)?(e.exit("htmlFlowData"),U(j)):(e.consume(j),X)}function U(j){return e.check(_6,q,G)(j)}function q(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),J}function J(j){return j===null||Ee(j)?U(j):(e.enter("htmlFlowData"),X(j))}function H(j){return j===45?(e.consume(j),z):X(j)}function Z(j){return j===47?(e.consume(j),c="",te):X(j)}function te(j){if(j===62){const ie=c.toLowerCase();return tv.includes(ie)?(e.consume(j),I):X(j)}return dn(j)&&c.length<8?(e.consume(j),c+=String.fromCharCode(j),te):X(j)}function se(j){return j===93?(e.consume(j),z):X(j)}function z(j){return j===62?(e.consume(j),I):j===45&&o===2?(e.consume(j),z):X(j)}function I(j){return j===null||Ee(j)?(e.exit("htmlFlowData"),G(j)):(e.consume(j),I)}function G(j){return e.exit("htmlFlow"),n(j)}}function B6(e,n,i){const l=this;return o;function o(c){return Ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}function H6(e,n,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Uo,n,i)}}const U6={name:"htmlText",tokenize:I6};function I6(e,n,i){const l=this;let o,u,c;return f;function f(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),d}function d(z){return z===33?(e.consume(z),h):z===47?(e.consume(z),_):z===63?(e.consume(z),D):dn(z)?(e.consume(z),B):i(z)}function h(z){return z===45?(e.consume(z),b):z===91?(e.consume(z),u=0,k):dn(z)?(e.consume(z),A):i(z)}function b(z){return z===45?(e.consume(z),v):i(z)}function m(z){return z===null?i(z):z===45?(e.consume(z),y):Ee(z)?(c=m,Z(z)):(e.consume(z),m)}function y(z){return z===45?(e.consume(z),v):m(z)}function v(z){return z===62?H(z):z===45?y(z):m(z)}function k(z){const I="CDATA[";return z===I.charCodeAt(u++)?(e.consume(z),u===I.length?T:k):i(z)}function T(z){return z===null?i(z):z===93?(e.consume(z),C):Ee(z)?(c=T,Z(z)):(e.consume(z),T)}function C(z){return z===93?(e.consume(z),w):T(z)}function w(z){return z===62?H(z):z===93?(e.consume(z),w):T(z)}function A(z){return z===null||z===62?H(z):Ee(z)?(c=A,Z(z)):(e.consume(z),A)}function D(z){return z===null?i(z):z===63?(e.consume(z),R):Ee(z)?(c=D,Z(z)):(e.consume(z),D)}function R(z){return z===62?H(z):D(z)}function _(z){return dn(z)?(e.consume(z),N):i(z)}function N(z){return z===45||an(z)?(e.consume(z),N):M(z)}function M(z){return Ee(z)?(c=M,Z(z)):ze(z)?(e.consume(z),M):H(z)}function B(z){return z===45||an(z)?(e.consume(z),B):z===47||z===62||ot(z)?F(z):i(z)}function F(z){return z===47?(e.consume(z),H):z===58||z===95||dn(z)?(e.consume(z),L):Ee(z)?(c=F,Z(z)):ze(z)?(e.consume(z),F):H(z)}function L(z){return z===45||z===46||z===58||z===95||an(z)?(e.consume(z),L):P(z)}function P(z){return z===61?(e.consume(z),X):Ee(z)?(c=P,Z(z)):ze(z)?(e.consume(z),P):F(z)}function X(z){return z===null||z===60||z===61||z===62||z===96?i(z):z===34||z===39?(e.consume(z),o=z,U):Ee(z)?(c=X,Z(z)):ze(z)?(e.consume(z),X):(e.consume(z),q)}function U(z){return z===o?(e.consume(z),o=void 0,J):z===null?i(z):Ee(z)?(c=U,Z(z)):(e.consume(z),U)}function q(z){return z===null||z===34||z===39||z===60||z===61||z===96?i(z):z===47||z===62||ot(z)?F(z):(e.consume(z),q)}function J(z){return z===47||z===62||ot(z)?F(z):i(z)}function H(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),n):i(z)}function Z(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),te}function te(z){return ze(z)?Fe(e,se,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):se(z)}function se(z){return e.enter("htmlTextData"),c(z)}}const Nm={name:"labelEnd",resolveAll:q6,resolveTo:Y6,tokenize:X6},V6={tokenize:$6},P6={tokenize:Z6},F6={tokenize:G6};function q6(e){let n=-1;const i=[];for(;++n<e.length;){const l=e[n][1];if(i.push(e[n]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",n+=o}}return e.length!==i.length&&Hn(e,0,e.length,i),e}function Y6(e,n){let i=e.length,l=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")){l=2;break}}else o.type==="labelEnd"&&(c=i);const d={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Wn(f,e.slice(u+1,u+l+3)),f=Wn(f,[["enter",b,n]]),f=Wn(f,tc(n.parser.constructs.insideSpan.null,e.slice(u+l+4,c-3),n)),f=Wn(f,[["exit",b,n],e[c-2],e[c-1],["exit",h,n]]),f=Wn(f,e.slice(c+1)),f=Wn(f,[["exit",d,n]]),Hn(e,u,e.length,f),e}function X6(e,n,i){const l=this;let o=l.events.length,u,c;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){u=l.events[o][1];break}return f;function f(y){return u?u._inactive?m(y):(c=l.parser.defined.includes(or(l.sliceSerialize({start:u.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):i(y)}function d(y){return y===40?e.attempt(V6,b,c?b:m)(y):y===91?e.attempt(P6,b,c?h:m)(y):c?b(y):m(y)}function h(y){return e.attempt(F6,b,m)(y)}function b(y){return n(y)}function m(y){return u._balanced=!0,i(y)}}function $6(e,n,i){return l;function l(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),o}function o(m){return ot(m)?vo(e,u)(m):u(m)}function u(m){return m===41?b(m):Bx(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function c(m){return ot(m)?vo(e,d)(m):b(m)}function f(m){return i(m)}function d(m){return m===34||m===39||m===40?Ux(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):b(m)}function h(m){return ot(m)?vo(e,b)(m):b(m)}function b(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),n):i(m)}}function Z6(e,n,i){const l=this;return o;function o(f){return Hx.call(l,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return l.parser.defined.includes(or(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function G6(e,n,i){return l;function l(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 Q6={name:"labelStartImage",resolveAll:Nm.resolveAll,tokenize:K6};function K6(e,n,i){const l=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 l.parser.constructs?i(f):n(f)}}const J6={name:"labelStartLink",resolveAll:Nm.resolveAll,tokenize:W6};function W6(e,n,i){const l=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 l.parser.constructs?i(c):n(c)}}const Gd={name:"lineEnding",tokenize:e8};function e8(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Fe(e,n,"linePrefix")}}const wu={name:"thematicBreak",tokenize:t8};function t8(e,n,i){let l=0,o;return u;function u(h){return e.enter("thematicBreak"),c(h)}function c(h){return o=h,f(h)}function f(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):l>=3&&(h===null||Ee(h))?(e.exit("thematicBreak"),n(h)):i(h)}function d(h){return h===o?(e.consume(h),l++,d):(e.exit("thematicBreakSequence"),ze(h)?Fe(e,f,"whitespace")(h):f(h))}}const Cn={continuation:{tokenize:l8},exit:o8,name:"list",tokenize:i8},n8={partial:!0,tokenize:s8},r8={partial:!0,tokenize:a8};function i8(e,n,i){const l=this,o=l.events[l.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(v){const k=l.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!l.containerState.marker||v===l.containerState.marker:Ih(v)){if(l.containerState.type||(l.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(wu,i,h)(v):h(v);if(!l.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(v)}return i(v)}function d(v){return Ih(v)&&++c<10?(e.consume(v),d):(!l.interrupt||c<2)&&(l.containerState.marker?v===l.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):i(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||v,e.check(Uo,l.interrupt?i:b,e.attempt(n8,y,m))}function b(v){return l.containerState.initialBlankLine=!0,u++,y(v)}function m(v){return ze(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),y):i(v)}function y(v){return l.containerState.size=u+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function l8(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(Uo,o,u);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Fe(e,n,"listItemIndent",l.containerState.size+1)(f)}function u(f){return l.containerState.furtherBlankLines||!ze(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(r8,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Fe(e,e.attempt(Cn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function a8(e,n,i){const l=this;return Fe(e,o,"listItemIndent",l.containerState.size+1);function o(u){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?n(u):i(u)}}function o8(e){e.exit(this.containerState.type)}function s8(e,n,i){const l=this;return Fe(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=l.events[l.events.length-1];return!ze(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):i(u)}}const nv={name:"setextUnderline",resolveTo:u8,tokenize:c8};function u8(e,n){let i=e.length,l,o,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=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[l][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[l][1],n]),e[l][1].end={...e[u][1].end}):e[l][1]=c,e.push(["exit",c,n]),e}function c8(e,n,i){const l=this;let o;return u;function u(h){let b=l.events.length,m;for(;b--;)if(l.events[b][1].type!=="lineEnding"&&l.events[b][1].type!=="linePrefix"&&l.events[b][1].type!=="content"){m=l.events[b][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||m)?(e.enter("setextHeadingLine"),o=h,c(h)):i(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===o?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),ze(h)?Fe(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ee(h)?(e.exit("setextHeadingLine"),n(h)):i(h)}}const f8={tokenize:d8};function d8(e){const n=this,i=e.attempt(Uo,l,e.attempt(this.parser.constructs.flowInitial,o,Fe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(b6,o)),"linePrefix")));return i;function l(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 h8={resolveAll:Vx()},m8=Ix("string"),p8=Ix("text");function Ix(e){return{resolveAll:Vx(e==="text"?g8:void 0),tokenize:n};function n(i){const l=this,o=this.parser.constructs[e],u=i.attempt(o,c,f);return c;function c(b){return h(b)?u(b):f(b)}function f(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),d}function d(b){return h(b)?(i.exit("data"),u(b)):(i.consume(b),d)}function h(b){if(b===null)return!0;const m=o[b];let y=-1;if(m)for(;++y<m.length;){const v=m[y];if(!v.previous||v.previous.call(l,l.previous))return!0}return!1}}}function Vx(e){return n;function n(i,l){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,l):i}}function g8(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 l=e[i-1][1],o=n.sliceStream(l);let u=o.length,c=-1,f=0,d;for(;u--;){const h=o[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){u++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const h={type:i===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:l.start._bufferIndex+c,_index:l.start._index+u,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...h.start},l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(i,0,["enter",h,n],["exit",h,n]),i+=2)}i++}return e}const b8={42:Cn,43:Cn,45:Cn,48:Cn,49:Cn,50:Cn,51:Cn,52:Cn,53:Cn,54:Cn,55:Cn,56:Cn,57:Cn,62:jx},v8={91:w6},y8={[-2]:Zd,[-1]:Zd,32:Zd},x8={35:D6,42:wu,45:[nv,wu],60:M6,61:nv,95:wu,96:ev,126:ev},S8={38:Lx,92:_x},w8={[-5]:Gd,[-4]:Gd,[-3]:Gd,33:Q6,38:Lx,42:Vh,60:[J9,U6],91:J6,92:[T6,_x],93:Nm,95:Vh,96:f6},C8={null:[Vh,h8]},E8={null:[42,95]},k8={null:[]},T8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:E8,contentInitial:v8,disable:k8,document:b8,flow:x8,flowInitial:y8,insideSpan:C8,string:S8,text:w8},Symbol.toStringTag,{value:"Module"}));function A8(e,n,i){let l={_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 d={attempt:M(_),check:M(N),consume:A,enter:D,exit:R,interrupt:M(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:T,events:[],now:k,parser:e,previous:null,sliceSerialize:y,sliceStream:v,write:m};let b=n.tokenize.call(h,d);return n.resolveAll&&u.push(n),h;function m(P){return c=Wn(c,P),C(),c[c.length-1]!==null?[]:(B(n,0),h.events=tc(u,h.events,h),h.events)}function y(P,X){return N8(v(P),X)}function v(P){return D8(c,P)}function k(){const{_bufferIndex:P,_index:X,line:U,column:q,offset:J}=l;return{_bufferIndex:P,_index:X,line:U,column:q,offset:J}}function T(P){o[P.line]=P.column,L()}function C(){let P;for(;l._index<c.length;){const X=c[l._index];if(typeof X=="string")for(P=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===P&&l._bufferIndex<X.length;)w(X.charCodeAt(l._bufferIndex));else w(X)}}function w(P){b=b(P)}function A(P){Ee(P)?(l.line++,l.column=1,l.offset+=P===-3?2:1,L()):P!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=P}function D(P,X){const U=X||{};return U.type=P,U.start=k(),h.events.push(["enter",U,h]),f.push(U),U}function R(P){const X=f.pop();return X.end=k(),h.events.push(["exit",X,h]),X}function _(P,X){B(P,X.from)}function N(P,X){X.restore()}function M(P,X){return U;function U(q,J,H){let Z,te,se,z;return Array.isArray(q)?G(q):"tokenize"in q?G([q]):I(q);function I(ue){return ve;function ve(me){const he=me!==null&&ue[me],be=me!==null&&ue.null,Te=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(be)?be:be?[be]:[]];return G(Te)(me)}}function G(ue){return Z=ue,te=0,ue.length===0?H:j(ue[te])}function j(ue){return ve;function ve(me){return z=F(),se=ue,ue.partial||(h.currentConstruct=ue),ue.name&&h.parser.constructs.disable.null.includes(ue.name)?de():ue.tokenize.call(X?Object.assign(Object.create(h),X):h,d,ie,de)(me)}}function ie(ue){return P(se,z),J}function de(ue){return z.restore(),++te<Z.length?j(Z[te]):H}}}function B(P,X){P.resolveAll&&!u.includes(P)&&u.push(P),P.resolve&&Hn(h.events,X,h.events.length-X,P.resolve(h.events.slice(X),h)),P.resolveTo&&(h.events=P.resolveTo(h.events,h))}function F(){const P=k(),X=h.previous,U=h.currentConstruct,q=h.events.length,J=Array.from(f);return{from:q,restore:H};function H(){l=P,h.previous=X,h.currentConstruct=U,h.events.length=q,f=J,L()}}function L(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function D8(e,n){const i=n.start._index,l=n.start._bufferIndex,o=n.end._index,u=n.end._bufferIndex;let c;if(i===o)c=[e[i].slice(l,u)];else{if(c=e.slice(i,o),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function N8(e,n){let i=-1;const l=[];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=`
92
+ `;break}case-3:{c=`\r
93
+ `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,l.push(c)}return l.join("")}function R8(e){const l={constructs:Ox([T8,...(e||{}).extensions||[]]),content:o(Y9),defined:[],document:o($9),flow:o(f8),lazy:{},string:o(m8),text:o(p8)};return l;function o(u){return c;function c(f){return A8(l,u,f)}}}function O8(e){for(;!zx(e););return e}const rv=/[\0\t\n\r]/g;function M8(){let e=1,n="",i=!0,l;return o;function o(u,c,f){const d=[];let h,b,m,y,v;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),m=0,n="",i&&(u.charCodeAt(0)===65279&&m++,i=void 0);m<u.length;){if(rv.lastIndex=m,h=rv.exec(u),y=h&&h.index!==void 0?h.index:u.length,v=u.charCodeAt(y),!h){n=u.slice(m);break}if(v===10&&m===y&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),m<y&&(d.push(u.slice(m,y)),e+=y-m),v){case 0:{d.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,d.push(-2);e++<b;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:l=!0,e=1}m=y+1}return f&&(l&&d.push(-5),n&&d.push(n),d.push(null)),d}}const j8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _8(e){return e.replace(j8,L8)}function L8(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),u=o===120||o===88;return Mx(i.slice(u?2:1),u?16:10)}return Dm(i)||e}const Px={}.hasOwnProperty;function z8(e,n,i){return n&&typeof n=="object"&&(i=n,n=void 0),B8(i)(O8(R8(i).document().write(M8()(e,n,!0))))}function B8(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Et),autolinkProtocol:F,autolinkEmail:F,atxHeading:u(st),blockQuote:u(be),characterEscape:F,characterReference:F,codeFenced:u(Te),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Te,c),codeText:u(Ce,c),codeTextData:F,data:F,codeFlowValue:F,definition:u(Ae),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Pe),hardBreakEscape:u(pt),hardBreakTrailing:u(pt),htmlFlow:u(Ot,c),htmlFlowData:F,htmlText:u(Ot,c),htmlTextData:F,image:u(nn),label:c,link:u(Et),listItem:u(pn),listItemValue:y,listOrdered:u(It,m),listUnordered:u(It),paragraph:u(Ge),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(st),strong:u(Tr),thematicBreak:u(Li)},exit:{atxHeading:d(),atxHeadingSequence:_,autolink:d(),autolinkEmail:he,autolinkProtocol:me,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ue,characterReference:ve,codeFenced:d(C),codeFencedFence:T,codeFencedFenceInfo:v,codeFencedFenceMeta:k,codeFlowValue:L,codeIndented:d(w),codeText:d(J),codeTextData:L,data:L,definition:d(),definitionDestinationString:R,definitionLabelString:A,definitionTitleString:D,emphasis:d(),hardBreakEscape:d(X),hardBreakTrailing:d(X),htmlFlow:d(U),htmlFlowData:L,htmlText:d(q),htmlTextData:L,image:d(Z),label:se,labelText:te,lineEnding:P,link:d(H),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ie,resourceDestinationString:z,resourceTitleString:I,resource:G,setextHeading:d(B),setextHeadingLineSequence:M,setextHeadingText:N,strong:d(),thematicBreak:d()}};Fx(n,(e||{}).mdastExtensions||[]);const i={};return l;function l(re){let ce={type:"root",children:[]};const Se={stack:[ce],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:b,data:i},De=[];let je=-1;for(;++je<re.length;)if(re[je][1].type==="listOrdered"||re[je][1].type==="listUnordered")if(re[je][0]==="enter")De.push(je);else{const Qe=De.pop();je=o(re,Qe,je)}for(je=-1;++je<re.length;){const Qe=n[re[je][0]];Px.call(Qe,re[je][1].type)&&Qe[re[je][1].type].call(Object.assign({sliceSerialize:re[je][2].sliceSerialize},Se),re[je][1])}if(Se.tokenStack.length>0){const Qe=Se.tokenStack[Se.tokenStack.length-1];(Qe[1]||iv).call(Se,void 0,Qe[0])}for(ce.position={start:ki(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:ki(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<n.transforms.length;)ce=n.transforms[je](ce)||ce;return ce}function o(re,ce,Se){let De=ce-1,je=-1,Qe=!1,sn,gt,yt,Mt;for(;++De<=Se;){const qe=re[De];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?je++:je--,Mt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(sn&&!Mt&&!je&&!yt&&(yt=De),Mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mt=void 0}if(!je&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||je===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(sn){let An=De;for(gt=void 0;An--;){const ft=re[An];if(ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank"){if(ft[0]==="exit")continue;gt&&(re[gt][1].type="lineEndingBlank",Qe=!0),ft[1].type="lineEnding",gt=An}else if(!(ft[1].type==="linePrefix"||ft[1].type==="blockQuotePrefix"||ft[1].type==="blockQuotePrefixWhitespace"||ft[1].type==="blockQuoteMarker"||ft[1].type==="listItemIndent"))break}yt&&(!gt||yt<gt)&&(sn._spread=!0),sn.end=Object.assign({},gt?re[gt][1].start:qe[1].end),re.splice(gt||De,0,["exit",sn,qe[2]]),De++,Se++}if(qe[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};sn=An,re.splice(De,0,["enter",An,qe[2]]),De++,Se++,yt=void 0,Mt=!0}}}return re[ce][1]._spread=Qe,Se}function u(re,ce){return Se;function Se(De){f.call(this,re(De),De),ce&&ce.call(this,De)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(re,ce,Se){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([ce,Se||void 0]),re.position={start:ki(ce.start),end:void 0}}function d(re){return ce;function ce(Se){re&&re.call(this,Se),h.call(this,Se)}}function h(re,ce){const Se=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==re.type&&(ce?ce.call(this,re,De[0]):(De[1]||iv).call(this,re,De[0]));else throw new Error("Cannot close `"+re.type+"` ("+bo({start:re.start,end:re.end})+"): it’s not open");Se.position.end=ki(re.end)}function b(){return ec(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(re){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function v(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=re}function k(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=re}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.value=re.replace(/(\r?\n|\r)$/g,"")}function A(re){const ce=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ce,Se.identifier=or(this.sliceSerialize(re)).toLowerCase()}function D(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.title=re}function R(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.url=re}function _(re){const ce=this.stack[this.stack.length-1];if(!ce.depth){const Se=this.sliceSerialize(re).length;ce.depth=Se}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function M(re){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function F(re){const Se=this.stack[this.stack.length-1].children;let De=Se[Se.length-1];(!De||De.type!=="text")&&(De=ct(),De.position={start:ki(re.start),end:void 0},Se.push(De)),this.stack.push(De)}function L(re){const ce=this.stack.pop();ce.value+=this.sliceSerialize(re),ce.position.end=ki(re.end)}function P(re){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ce.children[ce.children.length-1];Se.position.end=ki(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ce.type)&&(F.call(this,re),L.call(this,re))}function X(){this.data.atHardBreak=!0}function U(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.value=re}function q(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.value=re}function J(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.value=re}function H(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=ce,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function Z(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=ce,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function te(re){const ce=this.sliceSerialize(re),Se=this.stack[this.stack.length-2];Se.label=_8(ce),Se.identifier=or(ce).toLowerCase()}function se(){const re=this.stack[this.stack.length-1],ce=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const De=re.children;Se.children=De}else Se.alt=ce}function z(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.url=re}function I(){const re=this.resume(),ce=this.stack[this.stack.length-1];ce.title=re}function G(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ie(re){const ce=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ce,Se.identifier=or(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function de(re){this.data.characterReferenceType=re.type}function ue(re){const ce=this.sliceSerialize(re),Se=this.data.characterReferenceType;let De;Se?(De=Mx(ce,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=Dm(ce);const je=this.stack[this.stack.length-1];je.value+=De}function ve(re){const ce=this.stack.pop();ce.position.end=ki(re.end)}function me(re){L.call(this,re);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(re)}function he(re){L.call(this,re);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(re)}function be(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function Ce(){return{type:"inlineCode",value:""}}function Ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function st(){return{type:"heading",depth:0,children:[]}}function pt(){return{type:"break"}}function Ot(){return{type:"html",value:""}}function nn(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function It(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function pn(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Ge(){return{type:"paragraph",children:[]}}function Tr(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function Li(){return{type:"thematicBreak"}}}function ki(e){return{line:e.line,column:e.column,offset:e.offset}}function Fx(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?Fx(e,l):H8(e,l)}}function H8(e,n){let i;for(i in n)if(Px.call(n,i))switch(i){case"canContainEols":{const l=n[i];l&&e[i].push(...l);break}case"transforms":{const l=n[i];l&&e[i].push(...l);break}case"enter":case"exit":{const l=n[i];l&&Object.assign(e[i],l);break}}}function iv(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+bo({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+bo({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+bo({start:n.start,end:n.end})+") is still open")}function U8(e){const n=this;n.parser=i;function i(l){return z8(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function I8(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 V8(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
94
+ `}]}function P8(e,n){const i=n.value?n.value+`
95
+ `:"",l={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:l,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 F8(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function q8(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function Y8(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=da(l.toLowerCase()),u=e.footnoteOrder.indexOf(l);let c,f=e.footnoteCounts.get(l);f===void 0?(f=0,e.footnoteOrder.push(l),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(l,f);const d={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,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function X8(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 $8(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function qx(e,n){const i=n.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+l}];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+=l:o.push({type:"text",value:l}),o}function Z8(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return qx(e,n);const o={src:da(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,u),e.applyData(n,u)}function G8(e,n){const i={src:da(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 l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Q8(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,l),e.applyData(n,l)}function K8(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return qx(e,n);const o={href:da(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const u={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function J8(e,n){const i={href:da(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function W8(e,n,i){const l=e.all(n),o=i?e7(i):Yx(n),u={},c=[];if(typeof n.checked=="boolean"){const b=l[0];let m;b&&b.type==="element"&&b.tagName==="p"?m=b:(m={type:"element",tagName:"p",properties:{},children:[]},l.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.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<l.length;){const b=l[f];(o||f!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
96
+ `}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const d=l[l.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
97
+ `});const h={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,h),e.applyData(n,h)}function e7(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let l=-1;for(;!n&&++l<i.length;)n=Yx(i[l])}return n}function Yx(e){const n=e.spread;return n??e.children.length>1}function t7(e,n){const i={},l=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++o<l.length;){const c=l[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(l,!0)};return e.patch(n,u),e.applyData(n,u)}function n7(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function r7(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function i7(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function l7(e,n){const i=e.all(n),l=i.shift(),o=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!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=Em(n.children[1]),d=Ex(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),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 a7(e,n,i){const l=i?i.children:void 0,u=(l?l.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const m=n.children[d],y={},v=c?c[d]:void 0;v&&(y.align=v);let k={type:"element",tagName:u,properties:y,children:[]};m&&(k.children=e.all(m),e.patch(m,k),k=e.applyData(m,k)),h.push(k)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,b),e.applyData(n,b)}function o7(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const lv=9,av=32;function s7(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),o=0;const u=[];for(;l;)u.push(ov(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(n);return u.push(ov(n.slice(o),o>0,!1)),u.join("")}function ov(e,n,i){let l=0,o=e.length;if(n){let u=e.codePointAt(l);for(;u===lv||u===av;)l++,u=e.codePointAt(l)}if(i){let u=e.codePointAt(o-1);for(;u===lv||u===av;)o--,u=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function u7(e,n){const i={type:"text",value:s7(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function c7(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const f7={blockquote:I8,break:V8,code:P8,delete:F8,emphasis:q8,footnoteReference:Y8,heading:X8,html:$8,imageReference:Z8,image:G8,inlineCode:Q8,linkReference:K8,link:J8,listItem:W8,list:t7,paragraph:n7,root:r7,strong:i7,table:l7,tableCell:o7,tableRow:a7,text:u7,thematicBreak:c7,toml:hu,yaml:hu,definition:hu,footnoteDefinition:hu};function hu(){}const Xx=-1,nc=0,yo=1,ju=2,Rm=3,Om=4,Mm=5,jm=6,$x=7,Zx=8,Gx=typeof self=="object"?self:globalThis,sv=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Gx[e](n)},d7=(e,n)=>{const i=(o,u)=>(e.set(u,o),o),l=o=>{if(e.has(o))return e.get(o);const[u,c]=n[o];switch(u){case nc:case Xx:return i(c,o);case yo:{const f=i([],o);for(const d of c)f.push(l(d));return f}case ju:{const f=i({},o);for(const[d,h]of c)f[l(d)]=l(h);return f}case Rm:return i(new Date(c),o);case Om:{const{source:f,flags:d}=c;return i(new RegExp(f,d),o)}case Mm:{const f=i(new Map,o);for(const[d,h]of c)f.set(l(d),l(h));return f}case jm:{const f=i(new Set,o);for(const d of c)f.add(l(d));return f}case $x:{const{name:f,message:d}=c;return i(typeof Gx[f]=="function"?sv(f,d):new Error(d),o)}case Zx: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(sv(u,c),o)};return l},uv=e=>d7(new Map,e)(0),tl="",{toString:h7}={},{keys:m7}=Object,po=e=>{const n=typeof e;if(n!=="object"||!e)return[nc,n];const i=h7.call(e).slice(8,-1);switch(i){case"Array":return[yo,tl];case"Object":return[ju,tl];case"Date":return[Rm,tl];case"RegExp":return[Om,tl];case"Map":return[Mm,tl];case"Set":return[jm,tl];case"DataView":return[yo,i]}return i.includes("Array")?[yo,i]:e instanceof Error?[$x,e.name||"Error"]:[ju,i]},mu=([e,n])=>e===nc&&(n==="function"||n==="symbol"),p7=(e,n,i,l)=>{const o=(c,f)=>{const d=l.push(c)-1;return i.set(f,d),d},u=c=>{if(i.has(c))return i.get(c);let[f,d]=po(c);switch(f){case nc:{let b=c;switch(d){case"bigint":f=Zx,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);b=null;break;case"undefined":return o([Xx],c)}return o([f,b],c)}case yo:{if(d){let y=c;return d==="DataView"?y=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(c)),o([d,[...y]],c)}const b=[],m=o([f,b],c);for(const y of c)b.push(u(y));return m}case ju:{if(d)switch(d){case"BigInt":return o([d,c.toString()],c);case"Boolean":case"Number":case"String":return o([d,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const b=[],m=o([f,b],c);for(const y of m7(c))(e||!mu(po(c[y])))&&b.push([u(y),u(c[y])]);return m}case Rm:return o([f,isNaN(c.getTime())?tl:c.toISOString()],c);case Om:{const{source:b,flags:m}=c;return o([f,{source:b,flags:m}],c)}case Mm:{const b=[],m=o([f,b],c);for(const[y,v]of c)(e||!(mu(po(y))||mu(po(v))))&&b.push([u(y),u(v)]);return m}case jm:{const b=[],m=o([f,b],c);for(const y of c)(e||!mu(po(y)))&&b.push(u(y));return m}}const{message:h}=c;return o([f,{name:d,message:h}],c)};return u},cv=(e,{json:n,lossy:i}={})=>{const l=[];return p7(!(n||i),!!n,new Map,l)(e),l},_u=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?uv(cv(e,n)):structuredClone(e):(e,n)=>uv(cv(e,n));function g7(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 b7(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function v7(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||g7,l=e.options.footnoteBackLabel||b7,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const b=e.all(h),m=String(h.identifier).toUpperCase(),y=da(m.toLowerCase());let v=0;const k=[],T=e.footnoteCounts.get(m);for(;T!==void 0&&++v<=T;){k.length>0&&k.push({type:"text",value:" "});let A=typeof i=="string"?i:i(d,v);typeof A=="string"&&(A={type:"text",value:A}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(d,v),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=b[b.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...k)}else b.push(...k);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(b,!0)};e.patch(h,w),f.push(w)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{..._u(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
98
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
99
+ `}]}}const Io=(function(e){if(e==null)return w7;if(typeof e=="function")return rc(e);if(typeof e=="object")return Array.isArray(e)?y7(e):x7(e);if(typeof e=="string")return S7(e);throw new Error("Expected function, string, or object as test")});function y7(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=Io(e[i]);return rc(l);function l(...o){let u=-1;for(;++u<n.length;)if(n[u].apply(this,o))return!0;return!1}}function x7(e){const n=e;return rc(i);function i(l){const o=l;let u;for(u in e)if(o[u]!==n[u])return!1;return!0}}function S7(e){return rc(n);function n(i){return i&&i.type===e}}function rc(e){return n;function n(i,l,o){return!!(C7(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function w7(){return!0}function C7(e){return e!==null&&typeof e=="object"&&"type"in e}const Qx=[],E7=!0,Lu=!1,k7="skip";function T7(e,n,i,l){let o;typeof n=="function"&&typeof i!="function"?(l=i,i=n):o=n;const u=Io(o),c=l?-1:1;f(e,void 0,[])();function f(d,h,b){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return y;function y(){let v=Qx,k,T,C;if((!n||u(d,h,b[b.length-1]||void 0))&&(v=A7(i(d,b)),v[0]===Lu))return v;if("children"in d&&d.children){const w=d;if(w.children&&v[0]!==k7)for(T=(l?w.children.length:-1)+c,C=b.concat(w);T>-1&&T<w.children.length;){const A=w.children[T];if(k=f(A,T,C)(),k[0]===Lu)return k;T=typeof k[1]=="number"?k[1]:T+c}}return v}}}function A7(e){return Array.isArray(e)?e:typeof e=="number"?[E7,e]:e==null?Qx:[e]}function ic(e,n,i,l){let o,u,c;typeof n=="function"&&typeof i!="function"?(u=void 0,c=n,o=i):(u=n,c=i,o=l),T7(e,u,f,o);function f(d,h){const b=h[h.length-1],m=b?b.children.indexOf(d):void 0;return c(d,m,b)}}const Ph={}.hasOwnProperty,D7={};function N7(e,n){const i=n||D7,l=new Map,o=new Map,u=new Map,c={...f7,...i.handlers},f={all:h,applyData:O7,definitionById:l,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:d,options:i,patch:R7,wrap:j7};return ic(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const m=b.type==="definition"?l:o,y=String(b.identifier).toUpperCase();m.has(y)||m.set(y,b)}}),f;function d(b,m){const y=b.type,v=f.handlers[y];if(Ph.call(f.handlers,y)&&v)return v(f,b,m);if(f.options.passThrough&&f.options.passThrough.includes(y)){if("children"in b){const{children:T,...C}=b,w=_u(C);return w.children=f.all(b),w}return _u(b)}return(f.options.unknownHandler||M7)(f,b,m)}function h(b){const m=[];if("children"in b){const y=b.children;let v=-1;for(;++v<y.length;){const k=f.one(y[v],b);if(k){if(v&&y[v-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=fv(k.value)),!Array.isArray(k)&&k.type==="element")){const T=k.children[0];T&&T.type==="text"&&(T.value=fv(T.value))}Array.isArray(k)?m.push(...k):m.push(k)}}}return m}}function R7(e,n){e.position&&(n.position=b9(e))}function O7(e,n){let i=n;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const c="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,_u(u)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function M7(e,n){const i=n.data||{},l="value"in n&&!(Ph.call(i,"hProperties")||Ph.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function j7(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
100
+ `});++l<e.length;)l&&i.push({type:"text",value:`
101
+ `}),i.push(e[l]);return n&&e.length>0&&i.push({type:"text",value:`
102
+ `}),i}function fv(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function dv(e,n){const i=N7(e,n),l=i.one(e,void 0),o=v7(i),u=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
103
+ `},o),u}function _7(e,n){return e&&"run"in e?async function(i,l){const o=dv(i,{file:l,...n});await e.run(o,l)}:function(i,l){return dv(i,{file:l,...e||n})}}function hv(e){if(e)throw e}var Qd,mv;function L7(){if(mv)return Qd;mv=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},u=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var b=e.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!m)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},c=function(h,b){i&&b.name==="__proto__"?i(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},f=function(h,b){if(b==="__proto__")if(e.call(h,b)){if(l)return l(h,b).value}else return;return h[b]};return Qd=function d(){var h,b,m,y,v,k,T=arguments[0],C=1,w=arguments.length,A=!1;for(typeof T=="boolean"&&(A=T,T=arguments[1]||{},C=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});C<w;++C)if(h=arguments[C],h!=null)for(b in h)m=f(T,b),y=f(h,b),T!==y&&(A&&y&&(u(y)||(v=o(y)))?(v?(v=!1,k=m&&o(m)?m:[]):k=m&&u(m)?m:{},c(T,{name:b,newValue:d(A,k,y)})):typeof y<"u"&&c(T,{name:b,newValue:y}));return T},Qd}var z7=L7();const Kd=$u(z7);function Fh(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 B7(){const e=[],n={run:i,use:l};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(d,...h){const b=e[++u];let m=-1;if(d){c(d);return}for(;++m<o.length;)(h[m]===null||h[m]===void 0)&&(h[m]=o[m]);o=h,b?H7(b,f)(...h):c(null,...h)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function H7(e,n){let i;return l;function l(...c){const f=e.length>c.length;let d;f&&c.push(o);try{d=e.apply(this,c)}catch(h){const b=h;if(f&&i)throw b;return o(b)}f||(d&&d.then&&typeof d.then=="function"?d.then(u,o):d instanceof Error?o(d):u(d))}function o(c,...f){i||(i=!0,n(c,...f))}function u(c){o(null,c)}}const yr={basename:U7,dirname:I7,extname:V7,join:P7,sep:"/"};function U7(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Vo(e);let i=0,l=-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 l<0&&(u=!0,l=o+1);return l<0?"":e.slice(i,l)}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&&(l=o):(f=-1,l=c));return i===l?l=c:l<0&&(l=e.length),e.slice(i,l)}function I7(e){if(Vo(e),e.length===0)return".";let n=-1,i=e.length,l;for(;--i;)if(e.codePointAt(i)===47){if(l){n=i;break}}else l||(l=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function V7(e){Vo(e);let n=e.length,i=-1,l=0,o=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){l=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===l+1?"":e.slice(o,i)}function P7(...e){let n=-1,i;for(;++n<e.length;)Vo(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":F7(i)}function F7(e){Vo(e);const n=e.codePointAt(0)===47;let i=q7(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function q7(e,n){let i="",l=0,o=-1,u=0,c=-1,f,d;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||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(d=i.lastIndexOf("/"),d!==i.length-1){d<0?(i="",l=0):(i=i.slice(0,d),l=i.length-1-i.lastIndexOf("/")),o=c,u=0;continue}}else if(i.length>0){i="",l=0,o=c,u=0;continue}}n&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),l=c-o-1;o=c,u=0}else f===46&&u>-1?u++:u=-1}return i}function Vo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Y7={cwd:X7};function X7(){return"/"}function qh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $7(e){if(typeof e=="string")e=new URL(e);else if(!qh(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 Z7(e)}function Z7(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const l=n.codePointAt(i+2);if(l===70||l===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 Jd=["history","path","basename","stem","extname","dirname"];class Kx{constructor(n){let i;n?qh(n)?i={path:n}:typeof n=="string"||G7(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":Y7.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Jd.length;){const u=Jd[l];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let o;for(o in i)Jd.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?yr.basename(this.path):void 0}set basename(n){eh(n,"basename"),Wd(n,"basename"),this.path=yr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?yr.dirname(this.path):void 0}set dirname(n){pv(this.basename,"dirname"),this.path=yr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?yr.extname(this.path):void 0}set extname(n){if(Wd(n,"extname"),pv(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=yr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){qh(n)&&(n=$7(n)),eh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?yr.basename(this.path,this.extname):void 0}set stem(n){eh(n,"stem"),Wd(n,"stem"),this.path=yr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,l){const o=this.message(n,i,l);throw o.fatal=!0,o}info(n,i,l){const o=this.message(n,i,l);return o.fatal=void 0,o}message(n,i,l){const o=new on(n,i,l);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 Wd(e,n){if(e&&e.includes(yr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+yr.sep+"`")}function eh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pv(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function G7(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Q7=(function(e){const l=this.constructor.prototype,o=l[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,l),u}),K7={}.hasOwnProperty;class _m extends Q7{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=B7()}copy(){const n=new _m;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(Kd(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(rh("data",this.frozen),this.namespace[n]=i,this):K7.call(this.namespace,n)&&this.namespace[n]||void 0:n?(rh("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,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=i.call(n,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=pu(n),l=this.parser||this.Parser;return th("parse",l),l(String(i),i)}process(n,i){const l=this;return this.freeze(),th("process",this.parser||this.Parser),nh("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,c){const f=pu(n),d=l.parse(f);l.run(d,f,function(b,m,y){if(b||!m||!y)return h(b);const v=m,k=l.stringify(v,y);eE(k)?y.value=k:y.result=k,h(b,y)});function h(b,m){b||!m?c(b):u?u(m):i(void 0,m)}}}processSync(n){let i=!1,l;return this.freeze(),th("processSync",this.parser||this.Parser),nh("processSync",this.compiler||this.Compiler),this.process(n,o),bv("processSync","process",i),l;function o(u,c){i=!0,hv(u),l=c}}run(n,i,l){gv(n),this.freeze();const o=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?u(void 0,l):new Promise(u);function u(c,f){const d=pu(i);o.run(n,d,h);function h(b,m,y){const v=m||n;b?f(b):c?c(v):l(void 0,v,y)}}}runSync(n,i){let l=!1,o;return this.run(n,i,u),bv("runSync","run",l),o;function u(c,f){hv(c),o=f,l=!0}}stringify(n,i){this.freeze();const l=pu(i),o=this.compiler||this.Compiler;return nh("stringify",o),gv(n),o(n,l)}use(n,...i){const l=this.attachers,o=this.namespace;if(rh("use",this.frozen),n!=null)if(typeof n=="function")d(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(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[b,...m]=h;d(b,m)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))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(h.plugins),h.settings&&(o.settings=Kd(!0,o.settings,h.settings))}function f(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const m=h[b];u(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,b){let m=-1,y=-1;for(;++m<l.length;)if(l[m][0]===h){y=m;break}if(y===-1)l.push([h,...b]);else if(b.length>0){let[v,...k]=b;const T=l[y][1];Fh(T)&&Fh(v)&&(v=Kd(!0,T,v)),l[y]=[h,v,...k]}}}}const J7=new _m().freeze();function th(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rh(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 gv(e){if(!Fh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function bv(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function pu(e){return W7(e)?e:new Kx(e)}function W7(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eE(e){return typeof e=="string"||tE(e)}function tE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vv=[],yv={allowDangerousHtml:!0},rE=/^(https?|ircs?|mailto|xmpp)$/i,iE=[{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 lE(e){const n=aE(e),i=oE(e);return sE(n.runSync(n.parse(i),i),e)}function aE(e){const n=e.rehypePlugins||vv,i=e.remarkPlugins||vv,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yv}:yv;return J7().use(U8).use(i).use(_7,l).use(n)}function oE(e){const n=e.children||"",i=new Kx;return typeof n=="string"&&(i.value=n),i}function sE(e,n){const i=n.allowedElements,l=n.allowElement,o=n.components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||Jx;for(const b of iE)Object.hasOwn(n,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+nE+b.id,void 0);return ic(e,h),w9(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function h(b,m,y){if(b.type==="raw"&&y&&typeof m=="number")return c?y.children.splice(m,1):y.children[m]={type:"text",value:b.value},m;if(b.type==="element"){let v;for(v in $d)if(Object.hasOwn($d,v)&&Object.hasOwn(b.properties,v)){const k=b.properties[v],T=$d[v];(T===null||T.includes(b.tagName))&&(b.properties[v]=d(String(k||""),v,b))}}if(b.type==="element"){let v=i?!i.includes(b.tagName):u?u.includes(b.tagName):!1;if(!v&&l&&typeof m=="number"&&(v=!l(b,m,y)),v&&y&&typeof m=="number")return f&&b.children?y.children.splice(m,1,...b.children):y.children.splice(m,1),m}}}function Jx(e){const n=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||l!==-1&&n>l||rE.test(e.slice(0,n))?e:""}function xv(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,o=i.indexOf(n);for(;o!==-1;)l++,o=i.indexOf(n,o+n.length);return l}function uE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Wx=[],cE=!0,ih=!1,Yh="skip";function fE(e,n,i,l){if(!e||typeof e!="object")throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let o,u,c,f;if(u=n,typeof u=="function")c=u;else if(u&&typeof u=="object"){if(!(u.enter===null||u.enter===void 0))if(typeof u.enter=="function")c=u.enter;else throw new Error("Unexpected value `"+u.enter+"` for `visitors.enter`, expected optional visitor");if(typeof u.exit=="function")f=u.exit;else throw new Error("Unexpected value `"+u.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw new Error("Unexpected value `"+u+"` for `enter` or `visitors`, expected visitor or object with visitors");Io(o);const d=1;h(e,void 0,[])();function h(b,m,y){const v=b&&typeof b=="object"?b:{};if(typeof v.type=="string"){const T=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(b.type+(T?"<"+T+">":""))+")"})}return k;function k(){const T=!o;let C=Wx;if(c&&T&&(C=Sv(c(b,y,m)),C[0]===ih))return C;if("children"in b&&b.children){const w=b;if(w.children&&C[0]!==Yh){let A=-1+d;const D=[...y,w];for(;A>-1&&A<w.children.length;){const R=w.children[A],_=h(R,A,D)();if(_[0]===ih)return _;A=typeof _[1]=="number"?_[1]:A+d}}}if(f&&T){const w=Sv(f(b,y,m));if(w[0]===Yh)throw new Error("Unexpected value `"+w[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(w[0]===ih||typeof w[1]=="number")return w}return C}}}function Sv(e){return Array.isArray(e)?e:typeof e=="number"?[cE,e]:e==null?Wx:[e]}function dE(e,n,i){const o=Io((i||{}).ignore||[]),u=hE(n);let c=-1;for(;++c<u.length;)fE(e,f);function f(h,b,m){if(h.type==="text"&&typeof m=="number")return d(h,b,m);if(o(h,m,b[b.length-1]))return Yh}function d(h,b,m){const y=b[b.length-1],v=u[c][0],k=u[c][1];let T=0,C=!1,w=[];v.lastIndex=0;let A=v.exec(h.value);for(;A;){const R=A.index,_={index:A.index,input:A.input,stack:[...b,h]};let N=k(...A,_);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N!==!1){if(T!==R&&D({type:"text",value:h.value.slice(T,R)}),Array.isArray(N))for(const M of N)D(M);else N&&D(N);T=R+A[0].length,C=!0}if(N===!1||A[0].length===0){const M=h.value.codePointAt(R)||0;v.lastIndex=R+(/[uv]/.test(v.flags)&&M>65535?2:1)}if(!v.global)break;A=v.exec(h.value)}return C?(T<h.value.length&&D({type:"text",value:h.value.slice(T)}),y.children.splice(m,1,...w)):w=[h],m+w.length;function D(R){const _=w[w.length-1];_&&_.type==="text"&&R.type==="text"?_.value+=R.value:w.push(R)}}}function hE(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=[],i=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<i.length;){const o=i[l];n.push([mE(o[0]),pE(o[1])])}return n}function mE(e){return typeof e=="string"?new RegExp(uE(e),"g"):e}function pE(e){return typeof e=="function"?e:function(){return e}}const lh="phrasing",ah=["autolink","link","image","label"];function gE(){return{transforms:[CE],enter:{literalAutolink:vE,literalAutolinkEmail:oh,literalAutolinkHttp:oh,literalAutolinkWww:oh},exit:{literalAutolink:wE,literalAutolinkEmail:SE,literalAutolinkHttp:yE,literalAutolinkWww:xE}}}function bE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:lh,notInConstruct:ah},{character:".",before:"[Ww]{3}",inConstruct:lh,notInConstruct:ah},{character:":",before:"[PSps]",after:"\\/",inConstruct:lh,notInConstruct:ah}]}}function vE(e){this.enter({type:"link",title:null,url:"",children:[],position:void 0},e)}function oh(e){this.config.enter.autolinkProtocol.call(this,e)}function yE(e){this.config.exit.autolinkProtocol.call(this,e)}function xE(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 SE(e){this.config.exit.autolinkEmail.call(this,e)}function wE(e){this.exit(e)}function CE(e){dE(e,[[new RegExp("(?<![\\da-z])(https?:\\/\\/|www(?=\\.))([\\w-]*\\.[\\w\\-.]*)([^\\t\\n\\r ]*)","gi"),EE],[new RegExp("(?<![\\w+\\-.@])xmpp:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)(\\/(?:[\\w\\-/]|\\.(?=[\\dA-Za-z]))*)?","g"),AE],[new RegExp("(?<![\\w+\\-.@])mailto:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),TE],[new RegExp("(?<![\\w+\\-.]|(?:^|[^\\d@A-Za-z])(?:mailto|xmpp):)([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),kE]],{ignore:["link","linkReference"]})}function EE(e,n,i,l,o){if(!RE(o))return!1;let u="";if(/^w/i.test(n)&&(i=n+i,n="",u="http://"),Ho(i.charCodeAt(0))||!DE(i))return!1;const c=NE(i+l),f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0],position:void 0}],position:void 0};return c[1]?[f,{type:"text",value:c[1],position:void 0}]:f}function kE(e,n,i){return/[\d\-_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i,position:void 0}],position:void 0}}function TE(e,n,i){if(/[\d\-_]$/.test(i))return!1;const l="mailto:"+n+"@"+i;return{type:"link",title:null,url:l,children:[{type:"text",value:l,position:void 0}],position:void 0}}function AE(e,n,i,l,o){if(/[\d\-_]$/.test(i)||l&&(!/[A-Za-z]$/.test(l)||o.input.charAt(o.index+e.length)==="@"))return!1;const u="xmpp:"+n+"@"+i+(l||"");return{type:"link",title:null,url:u,children:[{type:"text",value:u,position:void 0}],position:void 0}}function DE(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[\dA-Za-z]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[\dA-Za-z]/.test(n[n.length-2])))}function NE(e){let n=e.length;for(;n>0;){const c=e.charCodeAt(n-1);if(c===33||c===34||c===38||c===39||c===41||c===44||c===46||c===58||c===59||c===60||c===62||c===63||c===93||c===125)n--;else break}if(n===e.length)return[e,void 0];let i=e.slice(n);e=e.slice(0,n);let l=i.indexOf(")");const o=xv(e,"(");let u=xv(e,")");for(;l!==-1&&o>u;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),u++;return[e,i]}function RE(e){const n=e.input.charCodeAt(e.index-1);return e.index===0||il(n)||Ho(n)}e2.peek=UE;function OE(){this.buffer()}function ME(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function jE(){this.buffer()}function _E(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function LE(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=or(this.sliceSerialize(e)).toLowerCase(),i.label=n}function zE(e){this.exit(e)}function BE(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=or(this.sliceSerialize(e)).toLowerCase(),i.label=n}function HE(e){this.exit(e)}function UE(){return"["}function e2(e,n,i,l){const o=i.createTracker(l);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 IE(){return{enter:{gfmFootnoteCallString:OE,gfmFootnoteCall:ME,gfmFootnoteDefinitionLabelString:jE,gfmFootnoteDefinition:_E},exit:{gfmFootnoteCallString:LE,gfmFootnoteCall:zE,gfmFootnoteDefinitionLabelString:BE,gfmFootnoteDefinition:HE}}}function VE(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:e2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,u,c){const f=u.createTracker(c);let d=f.move("[^");const h=u.enter("footnoteDefinition"),b=u.enter("label");return d+=f.move(u.safe(u.associationId(l),{before:d,after:"]"})),b(),d+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),d+=f.move((n?`
104
+ `:" ")+u.indentLines(u.containerFlow(l,f.current()),n?t2:PE))),h(),d}}function PE(e,n,i){return n===0?e:t2(e,n,i)}function t2(e,n,i){return(i?"":" ")+e}const FE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Lm.attention=ZE;Lm.peek=GE;function qE(){return{canContainEols:["delete"],enter:{strikethrough:XE},exit:{strikethrough:$E}}}function YE(){return{handlers:{delete:Lm},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:FE}]}}function XE(e){this.enter({type:"delete",children:[],position:void 0},e)}function $E(e){this.exit(e)}function Lm(e,n,i,l){const o=i.createTracker(l),u=i.stack.includes("strikethrough")?"~":"~~",c=i.enter("strikethrough");let f=o.move(u);return f+=i.containerPhrasing(e,{...o.current(),before:f,after:"~"}),f+=o.move(u),c(),f}function ZE(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function GE(){return"~"}function QE(e){return e.length}function KE(e,n){const i=n||{},l=(i.align||[]).concat(),o=i.stringLength||QE,u=[],c=[],f=[],d=[];let h=0,b=-1;for(;++b<e.length;){const T=[],C=[];let w=-1;for(e[b].length>h&&(h=e[b].length);++w<e[b].length;){const A=JE(e[b][w]);if(i.alignDelimiters!==!1){const D=o(A);C[w]=D,(d[w]===void 0||D>d[w])&&(d[w]=D)}T.push(A)}c[b]=T,f[b]=C}let m=-1;if(typeof l=="object"&&"length"in l)for(;++m<h;)u[m]=wv(l[m]);else{const T=wv(l);for(;++m<h;)u[m]=T}m=-1;const y=[],v=[];for(;++m<h;){const T=u[m];let C="",w="";T===99?(C=":",w=":"):T===108?C=":":T===114&&(w=":");let A=i.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-w.length);const D=C+"-".repeat(A)+w;i.alignDelimiters!==!1&&(A=C.length+A+w.length,A>d[m]&&(d[m]=A),v[m]=A),y[m]=D}c.splice(1,0,y),f.splice(1,0,v),b=-1;const k=[];for(;++b<c.length;){const T=c[b],C=f[b],w=i.fillRows===!1?Math.max(1,c[b===1?0:b].length):h;m=-1;const A=[];for(;++m<w;){const D=T[m]||"";let R="",_="";if(i.alignDelimiters!==!1){const N=d[m]-(C[m]||0),M=u[m];if(M===114)R=" ".repeat(N);else if(M===99){const B=N/2;N%2?(R=" ".repeat(B+.5),_=" ".repeat(B-.5)):(R=" ".repeat(B),_=R)}else _=" ".repeat(N)}i.delimiterStart!==!1&&!m&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&D==="")&&(i.delimiterStart!==!1||m)&&A.push(" "),i.alignDelimiters!==!1&&A.push(R),A.push(D),i.alignDelimiters!==!1&&A.push(_),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||m!==w-1)&&A.push("|")}k.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return k.join(`
105
+ `)}function JE(e){return e==null?"":String(e)}function wv(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 WE(e,n,i,l){const o=i.enter("blockquote"),u=i.createTracker(l);u.move("> "),u.shift(2);const c=i.indentLines(i.containerFlow(e,u.current()),ek);return o(),c}function ek(e,n,i){return">"+(i?"":" ")+e}function tk(e,n){return Cv(e,n.inConstruct,!0)&&!Cv(e,n.notInConstruct,!1)}function Cv(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let l=-1;for(;++l<n.length;)if(e.includes(n[l]))return!0;return!1}function Ev(e,n,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
106
+ `&&tk(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
107
+ `}function nk(e,n){const i=String(e);let l=i.indexOf(n),o=l,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++u>c&&(c=u):u=1,o=l+n.length,l=i.indexOf(n,o);return c}function rk(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 ik(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 lk(e,n,i,l){const o=ik(i),u=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(rk(e,i)){const m=i.enter("codeIndented"),y=i.indentLines(u,ak);return m(),y}const f=i.createTracker(l),d=o.repeat(Math.max(nk(u,o)+1,3)),h=i.enter("codeFenced");let b=f.move(d);if(e.lang){const m=i.enter(`codeFencedLang${c}`);b+=f.move(i.safe(e.lang,{before:b,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=i.enter(`codeFencedMeta${c}`);b+=f.move(" "),b+=f.move(i.safe(e.meta,{before:b,after:`
108
+ `,encode:["`"],...f.current()})),m()}return b+=f.move(`
109
+ `),u&&(b+=f.move(u+`
110
+ `)),b+=f.move(d),h(),b}function ak(e,n,i){return(i?"":" ")+e}function zm(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 ok(e,n,i,l){const o=zm(i),u=o==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const d=i.createTracker(l);let h=d.move("[");return h+=d.move(i.safe(i.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(i.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=i.enter("destinationRaw"),h+=d.move(i.safe(e.url,{before:h,after:e.title?" ":`
111
+ `,...d.current()}))),f(),e.title&&(f=i.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(i.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),c(),h}function sk(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 Ao(e){return"&#x"+e.toString(16).toUpperCase()+";"}function zu(e,n,i){const l=la(e),o=la(n);return l===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===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}}n2.peek=uk;function n2(e,n,i,l){const o=sk(i),u=i.enter("emphasis"),c=i.createTracker(l),f=c.move(o);let d=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),b=zu(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(d=Ao(h)+d.slice(1));const m=d.charCodeAt(d.length-1),y=zu(l.after.charCodeAt(0),m,o);y.inside&&(d=d.slice(0,-1)+Ao(m));const v=c.move(o);return u(),i.attentionEncodeSurroundingInfo={after:y.outside,before:b.outside},f+d+v}function uk(e,n,i){return i.options.emphasis||"*"}function ck(e,n){let i=!1;return ic(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Lu}),!!((!e.depth||e.depth<3)&&ec(e)&&(n.options.setext||i))}function fk(e,n,i,l){const o=Math.max(Math.min(6,e.depth||1),1),u=i.createTracker(l);if(ck(e,i)){const b=i.enter("headingSetext"),m=i.enter("phrasing"),y=i.containerPhrasing(e,{...u.current(),before:`
112
+ `,after:`
113
+ `});return m(),b(),y+`
114
+ `+(o===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
115
+ `))+1))}const c="#".repeat(o),f=i.enter("headingAtx"),d=i.enter("phrasing");u.move(c+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
116
+ `,...u.current()});return/^[\t ]/.test(h)&&(h=Ao(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,i.options.closeAtx&&(h+=" "+c),d(),f(),h}r2.peek=dk;function r2(e){return e.value||""}function dk(){return"<"}i2.peek=hk;function i2(e,n,i,l){const o=zm(i),u=o==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const d=i.createTracker(l);let h=d.move("![");return h+=d.move(i.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(i.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=i.enter("destinationRaw"),h+=d.move(i.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=i.enter(`title${u}`),h+=d.move(" "+o),h+=d.move(i.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),h+=d.move(")"),c(),h}function hk(){return"!"}l2.peek=mk;function l2(e,n,i,l){const o=e.referenceType,u=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(l);let d=f.move("![");const h=i.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const b=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=b,u(),o==="full"||!h||h!==m?d+=f.move(m+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function mk(){return"!"}a2.peek=pk;function a2(e,n,i){let l=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++u<i.unsafe.length;){const c=i.unsafe[u],f=i.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(l);){let h=d.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(d.index+1)}}return o+l+o}function pk(){return"`"}function o2(e,n){const i=ec(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))}s2.peek=gk;function s2(e,n,i,l){const o=zm(i),u=o==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,d;if(o2(e,i)){const b=i.stack;i.stack=[],f=i.enter("autolink");let m=c.move("<");return m+=c.move(i.containerPhrasing(e,{before:m,after:">",...c.current()})),m+=c.move(">"),f(),i.stack=b,m}f=i.enter("link"),d=i.enter("label");let h=c.move("[");return h+=c.move(i.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(i.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=i.enter("destinationRaw"),h+=c.move(i.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=i.enter(`title${u}`),h+=c.move(" "+o),h+=c.move(i.safe(e.title,{before:h,after:o,...c.current()})),h+=c.move(o),d()),h+=c.move(")"),f(),h}function gk(e,n,i){return o2(e,i)?"<":"["}u2.peek=bk;function u2(e,n,i,l){const o=e.referenceType,u=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(l);let d=f.move("[");const h=i.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const b=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=b,u(),o==="full"||!h||h!==m?d+=f.move(m+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function bk(){return"["}function Bm(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 vk(e){const n=Bm(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 yk(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 c2(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 xk(e,n,i,l){const o=i.enter("list"),u=i.bulletCurrent;let c=e.ordered?yk(i):Bm(i);const f=e.ordered?c==="."?")":".":vk(i);let d=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.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&&(d=!0),c2(i)===c&&b){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),i.bulletCurrent=c;const h=i.containerFlow(e,l);return i.bulletLastUsed=c,i.bulletCurrent=u,o(),h}function Sk(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 wk(e,n,i,l){const o=Sk(i);let u=i.bulletCurrent||Bm(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(l);f.move(u+" ".repeat(c-u.length)),f.shift(c);const d=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,f.current()),b);return d(),h;function b(m,y,v){return y?(v?"":" ".repeat(c))+m:(v?u:u+" ".repeat(c-u.length))+m}}function Ck(e,n,i,l){const o=i.enter("paragraph"),u=i.enter("phrasing"),c=i.containerPhrasing(e,l);return u(),o(),c}const Ek=Io(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kk(e,n,i,l){return(e.children.some(function(c){return Ek(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function Tk(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}f2.peek=Ak;function f2(e,n,i,l){const o=Tk(i),u=i.enter("strong"),c=i.createTracker(l),f=c.move(o+o);let d=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),b=zu(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(d=Ao(h)+d.slice(1));const m=d.charCodeAt(d.length-1),y=zu(l.after.charCodeAt(0),m,o);y.inside&&(d=d.slice(0,-1)+Ao(m));const v=c.move(o+o);return u(),i.attentionEncodeSurroundingInfo={after:y.outside,before:b.outside},f+d+v}function Ak(e,n,i){return i.options.strong||"*"}function Dk(e,n,i,l){return i.safe(e.value,l)}function Nk(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 Rk(e,n,i){const l=(c2(i)+(i.options.ruleSpaces?" ":"")).repeat(Nk(i));return i.options.ruleSpaces?l.slice(0,-1):l}const Xh={blockquote:WE,break:Ev,code:lk,definition:ok,emphasis:n2,hardBreak:Ev,heading:fk,html:r2,image:i2,imageReference:l2,inlineCode:a2,link:s2,linkReference:u2,list:xk,listItem:wk,paragraph:Ck,root:kk,strong:f2,text:Dk,thematicBreak:Rk};function Ok(){return{enter:{table:Mk,tableData:kv,tableHeader:kv,tableRow:_k},exit:{codeText:Lk,table:jk,tableData:sh,tableHeader:sh,tableRow:sh}}}function Mk(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[],position:void 0},e),this.data.inTable=!0}function jk(e){this.exit(e),this.data.inTable=void 0}function _k(e){this.enter({type:"tableRow",children:[],position:void 0},e)}function sh(e){this.exit(e)}function kv(e){this.enter({type:"tableCell",children:[],position:void 0},e)}function Lk(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zk));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function zk(e,n){return n==="|"?n:e}function Bk(e){const n=e||{},{tableCellPadding:i,tablePipeAlign:l,stringLength:o}=n,u=i?" ":"|";return{handlers:{inlineCode:y,table:c,tableCell:d,tableRow:f},join:[Hk],unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
117
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}]};function c(v,k,T,C){const w=b(v,T,C),A=w[0];if(A){let D=v.align?v.align.length:0,R=-1;if(!D)for(;++R<w.length;)w[R].length>D&&(D=w[R].length);for(;A.length<D;)A.push("")}return h(w,v.align)}function f(v,k,T,C){const w=m(v,T,C),A=h([w]);return A.slice(0,A.indexOf(`
118
+ `))}function d(v,k,T,C){const w=T.enter("tableCell"),A=T.enter("phrasing"),D=T.containerPhrasing(v,{...C,before:u,after:u});return A(),w(),D}function h(v,k){return KE(v,{align:k,alignDelimiters:l,fillRows:!1,padding:i,stringLength:o})}function b(v,k,T){const{children:C}=v;let w=-1;const A=[],D=k.enter("table");for(;++w<C.length;)A[w]=m(C[w],k,T);return D(),A}function m(v,k,T){const{children:C}=v;let w=-1;const A=[],D=k.enter("tableRow");for(;++w<C.length;)A[w]=d(C[w],v,k,T);return D(),A}function y(v,k,T){const C=Xh.inlineCode(v,k,T);if(!T.stack.includes("tableCell"))return C;const w=[];let A=0,D=C.indexOf("|");for(;D!==-1;){let R=D;for(;R>A&&C.charCodeAt(R-1)===92;)R--;w.push(C.slice(A,D)),(D-R)%2===0&&w.push("\\"),A=D,D=C.indexOf("|",D+1)}return w.push(C.slice(A)),w.join("")}}function Hk(e,n,i,l){if(e.type==="table"&&i.type==="listItem"&&i.spread===!1&&(n.type==="definition"||n.type==="heading"&&Uk(n,l)||n.type==="paragraph"||n.type==="table"))return 1}function Uk(e,n){let i=!1;return ic(e,function(l){if(l.type==="break"||"value"in l&&/\r?\n|\r/.test(l.value))return i=!0,Lu}),!!((!e.depth||e.depth<3)&&ec(e)&&(n.options.setext||i))}function Ik(){return{exit:{taskListCheckValueChecked:Tv,taskListCheckValueUnchecked:Tv,paragraph:Pk}}}function Vk(){return{handlers:{paragraph:Fk},join:[qk]}}function Tv(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Pk(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 l=i.children[0];if(l&&l.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&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start={...l.position.start}))}}this.exit(e)}function Fk(e,n,i,l){if(!n||n.type!=="listItem"||d2(n)!==e)return Xh.paragraph(e,n,i,l);const o="["+(n.checked?"x":" ")+"] ",u=i.createTracker(l);u.move(o);const c=Xh.paragraph(e.children.length>0?e:{type:"paragraph",children:[{type:"text",value:" "}]},n,i,{...l,...u.current()});return o+c}function qk(e,n,i){if(!(e.type==="definition"&&i.type==="listItem"))return;const l=d2(i);if(l&&i.children.indexOf(e)<i.children.indexOf(l))return 0}function d2(e){if(typeof e.checked=="boolean")for(const n of e.children){if(n.type==="paragraph")return n;if(n.type!=="definition")return}}function Yk(){return[gE(),IE(),qE(),Ok(),Ik()]}function Xk(e){return{extensions:[bE(),VE(e),YE(),Bk(e),Vk()]}}const $k={tokenize:Wk,partial:!0},h2={tokenize:eT,partial:!0},m2={tokenize:tT,partial:!0},p2={tokenize:nT,partial:!0},Zk={tokenize:rT,partial:!0},g2={name:"wwwAutolink",tokenize:Kk,previous:v2},b2={name:"protocolAutolink",tokenize:Jk,previous:y2},Kr={name:"emailAutolink",tokenize:Qk,previous:x2},kr={};function Gk(){return{text:kr}}let Wi=48;for(;Wi<123;)kr[Wi]=Kr,Wi++,Wi===58?Wi=65:Wi===91&&(Wi=97);kr[43]=Kr;kr[45]=Kr;kr[46]=Kr;kr[95]=Kr;kr[72]=[Kr,b2];kr[104]=[Kr,b2];kr[87]=[Kr,g2];kr[119]=[Kr,g2];function Qk(e,n,i){const l=this;let o,u;return c;function c(m){return!$h(m)||!x2.call(l,l.previous)||Hm(l.events)?i(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return $h(m)?(e.consume(m),f):m===64?(e.consume(m),d):i(m)}function d(m){return m===46?e.check(Zk,b,h)(m):m===45||m===95||an(m)?(u=!0,e.consume(m),d):b(m)}function h(m){return e.consume(m),o=!0,d}function b(m){return u&&o&&dn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(m)):i(m)}}function Kk(e,n,i){const l=this;return o;function o(c){return c!==87&&c!==119||!v2.call(l,l.previous)||Hm(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($k,e.attempt(h2,e.attempt(m2,u),i),i)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function Jk(e,n,i){const l=this;let o="",u=!1;return c;function c(m){return(m===72||m===104)&&y2.call(l,l.previous)&&!Hm(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),f):i(m)}function f(m){if(dn(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),f;if(m===58){const y=o.toLowerCase();if(y==="http"||y==="https")return e.consume(m),d}return i(m)}function d(m){return m===47?(e.consume(m),u?h:(u=!0,d)):i(m)}function h(m){return m===null||Mu(m)||ot(m)||il(m)||Ho(m)?i(m):e.attempt(h2,e.attempt(m2,b),i)(m)}function b(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(m)}}function Wk(e,n,i){let l=0;return o;function o(c){return(c===87||c===119)&&l<3?(l++,e.consume(c),o):c===46&&l===3?(e.consume(c),u):i(c)}function u(c){return c===null?i(c):n(c)}}function eT(e,n,i){let l,o,u;return c;function c(h){return h===46||h===95?e.check(p2,d,f)(h):h===null||ot(h)||il(h)||h!==45&&Ho(h)?d(h):(u=!0,e.consume(h),c)}function f(h){return h===95?l=!0:(o=l,l=void 0),e.consume(h),c}function d(h){return o||l||!u?i(h):n(h)}}function tT(e,n){let i=0,l=0;return o;function o(c){return c===40?(i++,e.consume(c),o):c===41&&l<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(p2,n,u)(c):c===null||ot(c)||il(c)?n(c):(e.consume(c),o)}function u(c){return c===41&&l++,e.consume(c),o}}function nT(e,n,i){return l;function l(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),l):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||ot(f)||il(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||ot(f)||il(f)?n(f):l(f)}function u(f){return dn(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),l):dn(f)?(e.consume(f),c):i(f)}}function rT(e,n,i){return l;function l(u){return e.consume(u),o}function o(u){return an(u)?i(u):n(u)}}function v2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ot(e)}function y2(e){return!dn(e)}function x2(e){return!(e===47||$h(e))}function $h(e){return e===43||e===45||e===46||e===95||an(e)}function Hm(e){let n=e.length,i=!1;for(;n--;){const l=e[n][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const iT={tokenize:dT,partial:!0};function lT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:uT,continuation:{tokenize:cT},exit:fT}},text:{91:{name:"gfmFootnoteCall",tokenize:sT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aT,resolveTo:oT}}}}function aT(e,n,i){const l=this;let o=l.events.length;const u=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;o--;){const d=l.events[o][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return i(d);const h=or(l.sliceSerialize({start:c.end,end:l.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?i(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function oT(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 l={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",l,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",l,n]];return e.splice(i,e.length-i+1,...f),e}function sT(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u=0,c;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?i(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(m){if(u>999||m===93&&!c||m===null||m===91||ot(m))return i(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return o.includes(or(l.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(m)}return ot(m)||(c=!0),u++,e.consume(m),m===92?b:h}function b(m){return m===91||m===92||m===93?(e.consume(m),u++,h):h(m)}}function uT(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u,c=0,f;return d;function d(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):i(k)}function b(k){if(c>999||k===93&&!f||k===null||k===91||ot(k))return i(k);if(k===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return u=or(l.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return ot(k)||(f=!0),c++,e.consume(k),k===92?m:b}function m(k){return k===91||k===92||k===93?(e.consume(k),c++,b):b(k)}function y(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),o.includes(u)||o.push(u),Fe(e,v,"gfmFootnoteDefinitionWhitespace")):i(k)}function v(k){return n(k)}}function cT(e,n,i){return e.check(Uo,n,e.attempt(iT,n,i))}function fT(e){e.exit("gfmFootnoteDefinition")}function dT(e,n,i){const l=this;return Fe(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const c=l.events[l.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):i(u)}}function hT(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:u,resolveAll:o};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},m={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},y=[["enter",b,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",m,f]],v=f.parser.constructs.insideSpan.null;v&&Hn(y,y.length,0,tc(v,c.slice(h+1,d),f)),Hn(y,y.length,0,[["exit",m,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",b,f]]),Hn(c,h-1,d-h+3,y),d=h+y.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function u(c,f,d){const h=this.previous,b=this.events;let m=0;return y;function y(k){return h===126&&b[b.length-1][1].type!=="characterEscape"?d(k):(c.enter("strikethroughSequenceTemporary"),v(k))}function v(k){const T=la(h);if(k===126)return m>1?d(k):(c.consume(k),m++,v);if(m<2&&!i)return d(k);const C=c.exit("strikethroughSequenceTemporary"),w=la(k);return C._open=!w||w===2&&!!T,C._close=!T||T===2&&!!w,f(k)}}}class mT{constructor(){this.map=[],this.index=new Map}add(n,i,l){pT(this,n,i,l)}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 l=[];for(;i>0;)i-=1,l.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];l.push(n.slice()),n.length=0;let o=l.pop();for(;o;){for(const u of o)n.push(u);o=l.pop()}this.map.length=0,this.index.clear()}}function pT(e,n,i,l){if(i===0&&l.length===0)return;const o=e.index.get(n);if(o){o[1]+=i,o[2].push(...l);return}const u=[n,i,l];e.map.push(u),e.index.set(n,u)}function gT(e,n){let i=!1;const l=[];for(;n<e.length;){const o=e[n];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=l.length-1;l[u]=l[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return l}function bT(){return{flow:{null:{name:"table",tokenize:vT,resolveAll:yT}}}}function vT(e,n,i){const l=this;let o=0,u=0,c;return f;function f(L){let P=l.events.length-1;for(;P>-1;){const{type:q}=l.events[P][1];if(q==="lineEnding"||q==="linePrefix")P--;else break}const X=P>-1?l.events[P][1].type:null,U=X==="tableHead"||X==="tableRow"?N:d;return U===N&&l.parser.lazy[l.now().line]?i(L):U(L)}function d(L){return e.enter("tableHead"),e.enter("tableRow"),h(L)}function h(L){return L===124||(c=!0,u+=1),b(L)}function b(L){return L===null?i(L):Ee(L)?u>1?(u=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),v):i(L):ze(L)?Fe(e,b,"whitespace")(L):(u+=1,c&&(c=!1,o+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),m(L)))}function m(L){return L===null||L===124||ot(L)?(e.exit("data"),b(L)):(e.consume(L),L===92?y:m)}function y(L){return L===92||L===124?(e.consume(L),m):m(L)}function v(L){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(L):(e.enter("tableDelimiterRow"),c=!1,ze(L)?Fe(e,k,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L))}function k(L){return L===45||L===58?C(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),T):_(L)}function T(L){return ze(L)?Fe(e,C,"whitespace")(L):C(L)}function C(L){return L===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),w):L===45?(u+=1,w(L)):L===null||Ee(L)?R(L):_(L)}function w(L){return L===45?(e.enter("tableDelimiterFiller"),A(L)):_(L)}function A(L){return L===45?(e.consume(L),A):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(L))}function D(L){return ze(L)?Fe(e,R,"whitespace")(L):R(L)}function R(L){return L===124?k(L):L===null||Ee(L)?!c||o!==u?_(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):_(L)}function _(L){return i(L)}function N(L){return e.enter("tableRow"),M(L)}function M(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),M):L===null||Ee(L)?(e.exit("tableRow"),n(L)):ze(L)?Fe(e,M,"whitespace")(L):(e.enter("data"),B(L))}function B(L){return L===null||L===124||ot(L)?(e.exit("data"),M(L)):(e.consume(L),L===92?F:B)}function F(L){return L===92||L===124?(e.consume(L),B):B(L)}}function yT(e,n){let i=-1,l=!0,o=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,b,m;const y=new mT;for(;++i<e.length;){const v=e[i],k=v[1];v[0]==="enter"?k.type==="tableHead"?(f=!1,d!==0&&(Av(y,n,d,h,b),b=void 0,d=0),h={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(i,0,[["enter",h,n]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(l=!0,m=void 0,u=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,b={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},y.add(i,0,[["enter",b,n]])),o=k.type==="tableDelimiterRow"?2:b?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],m=gu(y,n,u,o,void 0,m),u=[0,0,0,0]),c[2]=i)):k.type==="tableCellDivider"&&(l?l=!1:(u[1]!==0&&(c[0]=c[1],m=gu(y,n,u,o,void 0,m)),u=c,c=[u[1],i,0,0])):k.type==="tableHead"?(f=!0,d=i):k.type==="tableRow"||k.type==="tableDelimiterRow"?(d=i,u[1]!==0?(c[0]=c[1],m=gu(y,n,u,o,i,m)):c[1]!==0&&(m=gu(y,n,c,o,i,m)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=i)}for(d!==0&&Av(y,n,d,h,b),y.consume(n.events),i=-1;++i<n.events.length;){const v=n.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=gT(n.events,i))}return e}function gu(e,n,i,l,o,u){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(u.end=Object.assign({},ea(n.events,i[0])),e.add(i[0],0,[["exit",u,n]]));const d=ea(n.events,i[1]);if(u={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(i[1],0,[["enter",u,n]]),i[2]!==0){const h=ea(n.events,i[2]),b=ea(n.events,i[3]),m={type:f,start:Object.assign({},h),end:Object.assign({},b)};if(e.add(i[2],0,[["enter",m,n]]),l!==2){const y=n.events[i[2]],v=n.events[i[3]];if(y[1].end=Object.assign({},v[1].end),y[1].type="chunkText",y[1].contentType="text",i[3]>i[2]+1){const k=i[2]+1,T=i[3]-i[2]-1;e.add(k,T,[])}}e.add(i[3]+1,0,[["exit",m,n]])}return o!==void 0&&(u.end=Object.assign({},ea(n.events,o)),e.add(o,0,[["exit",u,n]]),u=void 0),u}function Av(e,n,i,l,o){const u=[],c=ea(n.events,i);o&&(o.end=Object.assign({},c),u.push(["exit",o,n])),l.end=Object.assign({},c),u.push(["exit",l,n]),e.add(i+1,0,u)}function ea(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const xT={name:"tasklistCheck",tokenize:wT};function ST(){return{text:{91:xT}}}function wT(e,n,i){const l=this;return o;function o(d){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),u)}function u(d){return ot(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):i(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(d)}function f(d){return Ee(d)?n(d):ze(d)?e.check({tokenize:CT},n,i)(d):i(d)}}function CT(e,n,i){return Fe(e,l,"whitespace");function l(o){return o===null?i(o):n(o)}}function ET(e){return Ox([Gk(),lT(),hT(e),bT(),ST()])}const kT={};function TT(e){const n=this,i=e||kT,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),u=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(ET(i)),u.push(Yk()),c.push(Xk(i))}const AT=".shipbench/tasks/",uh="https://board.shipbench.invalid",DT=/^([a-z][a-z0-9+.-]*):/i,NT=/^\.shipbench\/tasks\/(?:archive\/)?([^/]+)\.md$/,RT=/^(?:archive\/)?([^/]+)\.md$/;function OT(e){try{return decodeURIComponent(e).replace(/^\/+/,"")}catch{return null}}function MT(e){const n=e.trim();if(!n||n.startsWith("#"))return{kind:"default"};if(n.startsWith("//"))return{kind:"external"};const i=DT.exec(n);if(i)return/^https?$/i.test(i[1])?{kind:"external"}:{kind:"default"};const l=n.startsWith("./")||n.startsWith("../"),o=l?`${uh}/${AT}`:`${uh}/`;let u;try{u=new URL(n,o)}catch{return{kind:"default"}}if(u.origin!==uh)return{kind:"external"};const c=OT(u.pathname);if(!c)return{kind:"default"};const f=NT.exec(c)??(l||n.startsWith("/")?null:RT.exec(c));return{kind:"repo",path:c,suffix:`${u.search}${u.hash}`,taskSlug:f?f[1]:null}}function S2({children:e}){const n=`sb-md-${E.useId().replace(/[^\w-]/g,"")}-`;return x.jsx(lE,{components:{a:LT,table:jT},remarkPlugins:[TT],remarkRehypeOptions:{clobberPrefix:n},children:e})}function jT({node:e,...n}){return x.jsx("div",{className:"sb-md-table",children:x.jsx("table",{...n})})}function _T(e){return e&&Jx(e)||null}function LT({href:e,children:n,node:i,...l}){const o=MT(e??""),u=pe(m=>m.followTaskLink),c=pe(m=>m.resolveRepoLink),f=o.kind==="repo"?o.taskSlug:null,d=pe(m=>f===null?null:m.tasks.some(y=>y.slug===f)?"live":m.archivedSlugs.includes(f)?"archived":null);if(!e)return x.jsx(x.Fragment,{children:n});if(o.kind==="default")return x.jsx("a",{href:e,...l,children:n});if(o.kind==="external")return x.jsx("a",{href:e,rel:"noopener noreferrer",target:"_blank",...l,children:n});if(d==="live"&&f)return x.jsx("a",{href:e,...l,onClick:m=>{m.preventDefault(),u(f)},children:n});const h=d==="archived"?`.shipbench/tasks/archive/${f}.md`:o.path,b=c?_T(c(h)):null;return b?x.jsx("a",{href:`${b}${o.suffix}`,rel:"noopener noreferrer",target:"_blank",...l,children:n}):x.jsx("span",{className:"sb-md-path",children:`${h}${o.suffix}`})}const Dv={ready:{label:"Ready",Icon:Sy},gating:{label:"Still gating",Icon:rw},missing:{label:"Missing",Icon:vy}};function zT({readOnly:e,tags:n,suggestions:i,onChange:l}){const o=E.useId(),u=`${o}-suggestions`,c=`${o}-help`,[f,d]=E.useState(""),[h,b]=E.useState(!1),[m,y]=E.useState(-1),[v,k]=E.useState(""),T=E.useMemo(()=>{const _=new Set(n.map(B=>B.toLocaleLowerCase())),N=new Map;for(const B of i){const F=B.trim(),L=F.toLocaleLowerCase();F&&!_.has(L)&&!N.has(L)&&N.set(L,F)}const M=f.trim().toLocaleLowerCase();return[...N.values()].filter(B=>M?B.toLocaleLowerCase().includes(M):!0).sort((B,F)=>B.localeCompare(F))},[f,i,n]),C=_=>{const N=_.trim();return N?n.some(M=>M.toLocaleLowerCase()===N.toLocaleLowerCase())?(k(`${N} is already selected.`),d(""),y(-1),!1):(l([...n,N]),d(""),b(!1),y(-1),k(`Added tag ${N}.`),!0):!1},w=_=>{const N=n[_];N&&(l(n.filter((M,B)=>B!==_)),y(-1),k(`Removed tag ${N}.`))},A=()=>C(m>=0&&h?T[m]??f:f),D=_=>{if(_.key==="ArrowDown"&&T.length){_.preventDefault(),b(!0),y(N=>(N+1)%T.length);return}if(_.key==="ArrowUp"&&T.length){_.preventDefault(),b(!0),y(N=>N<=0?T.length-1:N-1);return}if(_.key==="Escape"){b(!1),y(-1);return}if(_.key==="Backspace"&&!f&&n.length){_.preventDefault(),w(n.length-1);return}if(_.key==="Enter"||_.key===","){(f.trim()||m>=0)&&(_.preventDefault(),A());return}_.key==="Tab"&&(f.trim()||m>=0)&&A()};if(e)return x.jsx(UT,{label:"Tags",children:n.length?x.jsx("ul",{className:"flex min-h-9 flex-wrap items-center gap-1.5","aria-label":"Task tags",children:n.map(_=>x.jsx("li",{className:"sb-metadata-token",children:_},_))}):x.jsx(Um,{})});const R=m>=0?T[m]:void 0;return x.jsxs("div",{className:"relative grid gap-1.5",children:[x.jsx("label",{className:"sb-metadata-label",htmlFor:o,children:"Tags"}),x.jsx("span",{id:c,className:"font-mono text-[11px] text-sb-silver",children:"Enter, comma, or Tab adds a tag."}),x.jsxs("div",{className:"sb-form-control flex flex-wrap items-center gap-1.5 px-2 py-1.5",children:[n.map((_,N)=>x.jsxs("span",{className:"sb-metadata-token inline-flex items-center gap-1",children:[x.jsx("span",{children:_}),x.jsx("button",{className:"sb-token-action",type:"button","aria-label":`Remove tag ${_}`,onClick:()=>w(N),children:x.jsx(oa,{"aria-hidden":"true",className:"h-3 w-3"})})]},_)),x.jsx("input",{id:o,className:"min-w-20 flex-1 bg-transparent py-0.5 font-mono text-[12px] text-sb-frosted outline-none placeholder:text-sb-silver",role:"combobox","aria-autocomplete":"list","aria-controls":u,"aria-describedby":c,"aria-expanded":h&&T.length>0,"aria-activedescendant":R?`${u}-${m}`:void 0,autoComplete:"off",placeholder:n.length?"Add tag":"Add tags",value:f,onBlur:()=>b(!1),onChange:_=>{d(_.target.value.replaceAll(",","")),b(!0),y(-1)},onFocus:()=>b(!0),onKeyDown:D})]}),h&&T.length?x.jsx("div",{id:u,className:"sb-combobox-list",role:"listbox","aria-label":"Tag suggestions",children:T.map((_,N)=>x.jsx("button",{id:`${u}-${N}`,className:"sb-combobox-option block w-full text-left",role:"option","aria-selected":N===m,type:"button",tabIndex:-1,onMouseDown:M=>M.preventDefault(),onClick:()=>C(_),children:_},_))}):null,x.jsx(Im,{children:v})]})}function BT({readOnly:e,currentTaskSlug:n,dependencies:i,tasks:l,doneColumn:o,warnings:u,onChange:c}){const f=E.useId(),d=`${f}-tasks`,h=`${f}-help`,[b,m]=E.useState(""),[y,v]=E.useState(!1),[k,T]=E.useState(-1),[C,w]=E.useState(""),A=E.useMemo(()=>new Map(l.map(B=>[B.slug,B])),[l]),D=E.useMemo(()=>{const B=new Set(i),F=b.trim().toLocaleLowerCase();return F?l.filter(L=>L.slug!==n&&!B.has(L.slug)).filter(L=>`${L.slug} ${L.frontmatter.title}`.toLocaleLowerCase().includes(F)).sort((L,P)=>L.slug.localeCompare(P.slug)):[]},[n,i,b,l]),R=B=>{c([...i,B.slug]),m(""),v(!1),T(-1),w(`Added dependency ${B.slug}.`)},_=B=>{c(i.filter(F=>F!==B)),T(-1),w(`Removed dependency ${B}.`)},N=B=>{if(B.key==="ArrowDown"&&D.length){B.preventDefault(),v(!0),T(F=>(F+1)%D.length);return}if(B.key==="ArrowUp"&&D.length){B.preventDefault(),v(!0),T(F=>F<=0?D.length-1:F-1);return}if(B.key==="Enter"&&k>=0){const F=D[k];F&&(B.preventDefault(),R(F));return}if(B.key==="Escape"){v(!1),T(-1);return}if(B.key==="Backspace"&&!b&&i.length){B.preventDefault();const F=i.at(-1);F&&_(F)}},M=i.length?x.jsx("ul",{className:"grid gap-1.5","aria-label":"Selected dependencies",children:i.map(B=>{const F=A.get(B),L=Rv(F,o),{label:P,Icon:X}=Dv[L];return x.jsxs("li",{className:`sb-metadata-token flex min-w-0 items-center gap-2 ${L==="ready"?"":"border-sb-ironlit"}`,children:[x.jsx(X,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:B}),x.jsx("span",{className:"shrink-0 text-[11px]",children:P}),e?null:x.jsx("button",{className:"sb-token-action",type:"button","aria-label":`Remove dependency ${B}`,onClick:()=>_(B),children:x.jsx(oa,{"aria-hidden":"true",className:"h-3 w-3"})})]},B)})}):x.jsx(Um,{});return x.jsxs("div",{className:"relative grid gap-1.5",children:[e?x.jsx("span",{className:"sb-metadata-label",children:"Depends on"}):x.jsx("label",{className:"sb-metadata-label",htmlFor:f,children:"Depends on"}),e?null:x.jsxs(x.Fragment,{children:[x.jsx("span",{id:h,className:"font-mono text-[11px] text-sb-silver",children:"Search tasks, then use arrow keys and Enter to select."}),x.jsx("div",{className:"sb-form-control flex items-center gap-2 px-3 py-2",children:x.jsx("input",{id:f,className:"min-w-0 flex-1 bg-transparent font-mono text-[12px] text-sb-frosted outline-none placeholder:text-sb-silver",role:"combobox","aria-autocomplete":"list","aria-controls":d,"aria-describedby":h,"aria-expanded":y&&b.trim().length>0,"aria-activedescendant":k>=0?`${d}-${k}`:void 0,autoComplete:"off",placeholder:"Search tasks",value:b,onBlur:()=>v(!1),onChange:B=>{m(B.target.value),v(!0),T(-1)},onFocus:()=>v(!0),onKeyDown:N})}),y&&b.trim()?x.jsx("div",{className:"sb-combobox-list",id:d,role:"listbox","aria-label":"Task suggestions",children:D.length?D.map((B,F)=>{const L=Rv(B,o),{label:P,Icon:X}=Dv[L];return x.jsxs("button",{id:`${d}-${F}`,className:"sb-combobox-option grid w-full grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-0.5 text-left",role:"option","aria-selected":F===k,type:"button",tabIndex:-1,onMouseDown:U=>U.preventDefault(),onClick:()=>R(B),children:[x.jsx("span",{className:"truncate text-sb-frosted",children:B.slug}),x.jsxs("span",{className:"row-span-2 inline-flex items-center gap-1.5 text-[11px] text-sb-silver",children:[x.jsx(X,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),P]}),x.jsx("span",{className:"truncate text-[11px] text-sb-silver",children:B.frontmatter.title})]},B.slug)}):x.jsx("p",{className:"px-3 py-2 font-mono text-[11px] text-sb-silver",role:"status",children:"No matching tasks."})}):null]}),M,u.map(B=>x.jsx("p",{className:"font-mono text-[11px] leading-5 text-sb-frosted",role:"alert",children:B},B)),x.jsx(Im,{children:C})]})}function HT({readOnly:e,currentTaskSlug:n,related:i,entries:l,tasks:o,archivedSlugs:u,columns:c,warnings:f,onChange:d,onOpenTask:h}){const b=E.useId(),m=`${b}-tasks`,y=`${b}-help`,[v,k]=E.useState(""),[T,C]=E.useState(!1),[w,A]=E.useState(-1),[D,R]=E.useState(""),_=E.useMemo(()=>new Map(c.map(P=>[P.id,P.label])),[c]),N=E.useMemo(()=>{const P=new Set(l.map(U=>U.slug)),X=v.trim().toLocaleLowerCase();return X?o.filter(U=>U.slug!==n&&!P.has(U.slug)).filter(U=>`${U.slug} ${U.frontmatter.title}`.toLocaleLowerCase().includes(X)).sort((U,q)=>U.slug.localeCompare(q.slug)):[]},[n,l,v,o]),M=P=>{d([...i,P.slug]),k(""),C(!1),A(-1),R(`Added related task ${P.slug}.`)},B=P=>{d(i.filter(X=>X!==P)),A(-1),R(`Removed related task ${P}.`)},F=P=>{if(P.key==="ArrowDown"&&N.length){P.preventDefault(),C(!0),A(X=>(X+1)%N.length);return}if(P.key==="ArrowUp"&&N.length){P.preventDefault(),C(!0),A(X=>X<=0?N.length-1:X-1);return}if(P.key==="Enter"&&w>=0){const X=N[w];X&&(P.preventDefault(),M(X));return}if(P.key==="Escape"){C(!1),A(-1);return}if(P.key==="Backspace"&&!v&&i.length){P.preventDefault();const X=i.at(-1);X&&B(X)}},L=l.length?x.jsx("ul",{className:"grid gap-1.5","aria-label":"Related tasks",children:l.map(P=>{const{label:X,Icon:U}=Nv(P,_),q=P.direction==="incoming",J=P.title===null&&!P.archived,H=P.title!==null&&!P.archived;return x.jsxs("li",{className:`sb-metadata-token flex min-w-0 items-center gap-2 ${J?"border-sb-ironlit":""}`,children:[x.jsx(U,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0"}),x.jsxs("span",{className:"grid min-w-0 flex-1",children:[H?x.jsx("button",{className:"truncate text-left transition-colors hover:text-sb-frosted",type:"button",onClick:()=>h(P.slug),children:P.title}):x.jsx("span",{className:"truncate",children:P.title??P.slug}),x.jsx("span",{className:"truncate text-[11px] text-sb-silver",children:[P.title===null?null:P.slug,X,q?`recorded on ${P.slug}`:null].filter(Boolean).join(" · ")})]}),e||q?null:x.jsx("button",{className:"sb-token-action",type:"button","aria-label":`Remove related task ${P.slug}`,onClick:()=>B(P.slug),children:x.jsx(oa,{"aria-hidden":"true",className:"h-3 w-3"})})]},P.slug)})}):x.jsx(Um,{});return x.jsxs("div",{className:"relative grid gap-1.5",children:[e?x.jsx("span",{className:"sb-metadata-label",children:"Related"}):x.jsx("label",{className:"sb-metadata-label",htmlFor:b,children:"Related"}),e?null:x.jsxs(x.Fragment,{children:[x.jsx("span",{id:y,className:"font-mono text-[11px] text-sb-silver",children:"Points at other work without ordering it. Search tasks, then use arrow keys and Enter to select."}),x.jsx("div",{className:"sb-form-control flex items-center gap-2 px-3 py-2",children:x.jsx("input",{id:b,className:"min-w-0 flex-1 bg-transparent font-mono text-[12px] text-sb-frosted outline-none placeholder:text-sb-silver",role:"combobox","aria-autocomplete":"list","aria-controls":m,"aria-describedby":y,"aria-expanded":T&&v.trim().length>0,"aria-activedescendant":w>=0?`${m}-${w}`:void 0,autoComplete:"off",placeholder:"Search tasks",value:v,onBlur:()=>C(!1),onChange:P=>{k(P.target.value),C(!0),A(-1)},onFocus:()=>C(!0),onKeyDown:F})}),T&&v.trim()?x.jsx("div",{className:"sb-combobox-list",id:m,role:"listbox","aria-label":"Task suggestions",children:N.length?N.map((P,X)=>{const{label:U,Icon:q}=Nv({title:P.frontmatter.title,status:P.frontmatter.status,archived:u.has(P.slug)},_);return x.jsxs("button",{id:`${m}-${X}`,className:"sb-combobox-option grid w-full grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-0.5 text-left",role:"option","aria-selected":X===w,type:"button",tabIndex:-1,onMouseDown:J=>J.preventDefault(),onClick:()=>M(P),children:[x.jsx("span",{className:"truncate text-sb-frosted",children:P.slug}),x.jsxs("span",{className:"row-span-2 inline-flex items-center gap-1.5 text-[11px] text-sb-silver",children:[x.jsx(q,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),U]}),x.jsx("span",{className:"truncate text-[11px] text-sb-silver",children:P.frontmatter.title})]},P.slug)}):x.jsx("p",{className:"px-3 py-2 font-mono text-[11px] text-sb-silver",role:"status",children:"No matching tasks."})}):null]}),L,f.map(P=>x.jsx("p",{className:"font-mono text-[11px] leading-5 text-sb-frosted",role:"alert",children:P},P)),x.jsx(Im,{children:D})]})}function Nv(e,n){return e.archived?{label:"Archived",Icon:sa}:e.status===null?{label:"Unresolved",Icon:vy}:{label:n.get(e.status)??e.status,Icon:xy}}function Rv(e,n){return e?e.frontmatter.status===n?"ready":"gating":"missing"}function UT({label:e,children:n}){return x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("span",{className:"sb-metadata-label",children:e}),n]})}function Um(){return x.jsx("span",{className:"min-h-9 rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] text-sb-silver",children:"None"})}function Im({children:e}){return x.jsx("span",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:e})}var IT=Object.defineProperty,VT=(e,n)=>IT(e,"name",{value:n,configurable:!0});function Zh(e,[n,i]){return Math.min(i,Math.max(n,e))}VT(Zh,"clamp");var PT=Object.defineProperty,Zt=(e,n)=>PT(e,"name",{value:n,configurable:!0});function w2(e){const n=e+"CollectionProvider",[i,l]=ca(n),[o,u]=i(n,{collectionRef:{current:null},itemMap:new Map}),c=Zt(T=>{const{scope:C,children:w}=T,A=E.useRef(null),D=E.useRef(new Map).current;return x.jsx(o,{scope:C,itemMap:D,collectionRef:A,children:w})},"CollectionProvider");c.displayName=n;const f=e+"CollectionSlot",d=Di(f),h=E.forwardRef((T,C)=>{const{scope:w,children:A}=T,D=u(f,w),R=At(C,D.collectionRef);return x.jsx(d,{ref:R,children:A})});h.displayName=f;const b=e+"CollectionItemSlot",m="data-radix-collection-item",y=Di(b),v=E.forwardRef((T,C)=>{const{scope:w,children:A,...D}=T,R=E.useRef(null),_=At(C,R),N=u(b,w);return E.useEffect(()=>(N.itemMap.set(R,{ref:R,...D}),()=>void N.itemMap.delete(R))),x.jsx(y,{[m]:"",ref:_,children:A})});v.displayName=b;function k(T){const C=u(e+"CollectionConsumer",T);return E.useCallback(()=>{const A=C.collectionRef.current;if(!A)return[];const D=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((N,M)=>D.indexOf(N.ref.current)-D.indexOf(M.ref.current))},[C.collectionRef,C.itemMap])}return Zt(k,"useCollection"),[{Provider:c,Slot:h,ItemSlot:v},k,l]}Zt(w2,"createCollection");var Ov=new WeakMap,Ht,Bn,ch=(Bn=class extends Map{constructor(i){super(i);tb(this,Ht);Rd(this,Ht,[...super.keys()]),Ov.set(this,!0)}set(i,l){return Ov.get(this)&&(this.has(i)?rn(this,Ht)[rn(this,Ht).indexOf(i)]=i:rn(this,Ht).push(i)),super.set(i,l),this}insert(i,l,o){const u=this.has(l),c=rn(this,Ht).length,f=Vm(i);let d=f>=0?f:c+f;const h=d<0||d>=c?-1:d;if(h===this.size||u&&h===this.size-1||h===-1)return this.set(l,o),this;const b=this.size+(u?0:1);f<0&&d++;const m=[...rn(this,Ht)];let y,v=!1;for(let k=d;k<b;k++)if(d===k){let T=m[k];m[k]===l&&(T=m[k+1]),u&&this.delete(l),y=this.get(T),this.set(l,o)}else{!v&&m[k-1]===l&&(v=!0);const T=m[v?k:k-1],C=y;y=this.get(T),this.delete(T),this.set(T,C)}return this}with(i,l,o){const u=new Bn(this);return u.insert(i,l,o),u}before(i){const l=rn(this,Ht).indexOf(i)-1;if(!(l<0))return this.entryAt(l)}setBefore(i,l,o){const u=rn(this,Ht).indexOf(i);return u===-1?this:this.insert(u,l,o)}after(i){let l=rn(this,Ht).indexOf(i);if(l=l===-1||l===this.size-1?-1:l+1,l!==-1)return this.entryAt(l)}setAfter(i,l,o){const u=rn(this,Ht).indexOf(i);return u===-1?this:this.insert(u+1,l,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Rd(this,Ht,[]),super.clear()}delete(i){const l=super.delete(i);return l&&rn(this,Ht).splice(rn(this,Ht).indexOf(i),1),l}deleteAt(i){const l=this.keyAt(i);return l!==void 0?this.delete(l):!1}at(i){const l=Cu(rn(this,Ht),i);if(l!==void 0)return this.get(l)}entryAt(i){const l=Cu(rn(this,Ht),i);if(l!==void 0)return[l,this.get(l)]}indexOf(i){return rn(this,Ht).indexOf(i)}keyAt(i){return Cu(rn(this,Ht),i)}from(i,l){const o=this.indexOf(i);if(o===-1)return;let u=o+l;return u<0&&(u=0),u>=this.size&&(u=this.size-1),this.at(u)}keyFrom(i,l){const o=this.indexOf(i);if(o===-1)return;let u=o+l;return u<0&&(u=0),u>=this.size&&(u=this.size-1),this.keyAt(u)}find(i,l){let o=0;for(const u of this){if(Reflect.apply(i,l,[u,o,this]))return u;o++}}findIndex(i,l){let o=0;for(const u of this){if(Reflect.apply(i,l,[u,o,this]))return o;o++}return-1}filter(i,l){const o=[];let u=0;for(const c of this)Reflect.apply(i,l,[c,u,this])&&o.push(c),u++;return new Bn(o)}map(i,l){const o=[];let u=0;for(const c of this)o.push([c[0],Reflect.apply(i,l,[c,u,this])]),u++;return new Bn(o)}reduce(...i){const[l,o]=i;let u=0,c=o??this.at(0);for(const f of this)u===0&&i.length===1?c=f:c=Reflect.apply(l,this,[c,f,u,this]),u++;return c}reduceRight(...i){const[l,o]=i;let u=o??this.at(-1);for(let c=this.size-1;c>=0;c--){const f=this.at(c);c===this.size-1&&i.length===1?u=f:u=Reflect.apply(l,this,[u,f,c,this])}return u}toSorted(i){const l=[...this.entries()].sort(i);return new Bn(l)}toReversed(){const i=new Bn;for(let l=this.size-1;l>=0;l--){const o=this.keyAt(l),u=this.get(o);i.set(o,u)}return i}toSpliced(...i){const l=[...this.entries()];return l.splice(...i),new Bn(l)}slice(i,l){const o=new Bn;let u=this.size-1;if(i===void 0)return o;i<0&&(i=i+this.size),l!==void 0&&l>0&&(u=l-1);for(let c=i;c<=u;c++){const f=this.keyAt(c),d=this.get(f);o.set(f,d)}return o}every(i,l){let o=0;for(const u of this){if(!Reflect.apply(i,l,[u,o,this]))return!1;o++}return!0}some(i,l){let o=0;for(const u of this){if(Reflect.apply(i,l,[u,o,this]))return!0;o++}return!1}},Ht=new WeakMap,Zt(Bn,"OrderedDict"),Bn);function Cu(e,n){if("at"in Array.prototype)return Array.prototype.at.call(e,n);const i=C2(e,n);return i===-1?void 0:e[i]}Zt(Cu,"at");function C2(e,n){const i=e.length,l=Vm(n),o=l>=0?l:i+l;return o<0||o>=i?-1:o}Zt(C2,"toSafeIndex");function Vm(e){return e!==e||e===0?0:Math.trunc(e)}Zt(Vm,"toSafeInteger");function FT(e){const n=e+"CollectionProvider",[i,l]=ca(n),[o,u]=i(n,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ch,setItemMap:Zt(()=>{},"setItemMap")}),c=Zt(({state:D,...R})=>D?x.jsx(d,{...R,state:D}):x.jsx(f,{...R}),"CollectionProvider");c.displayName=n;const f=Zt(D=>{const R=C();return x.jsx(d,{...D,state:R})},"CollectionInit");f.displayName=n+"Init";const d=Zt(D=>{const{scope:R,children:_,state:N}=D,M=E.useRef(null),[B,F]=E.useState(null),L=At(M,F),[P,X]=N;return E.useEffect(()=>{if(!B)return;const U=T2(()=>{});return U.observe(B,{childList:!0,subtree:!0}),()=>{U.disconnect()}},[B]),x.jsx(o,{scope:R,itemMap:P,setItemMap:X,collectionRef:L,collectionRefObject:M,collectionElement:B,children:_})},"CollectionProviderImpl");d.displayName=n+"Impl";const h=e+"CollectionSlot",b=Di(h),m=E.forwardRef((D,R)=>{const{scope:_,children:N}=D,M=u(h,_),B=At(R,M.collectionRef);return x.jsx(b,{ref:B,children:N})});m.displayName=h;const y=e+"CollectionItemSlot",v="data-radix-collection-item",k=Di(y),T=E.forwardRef((D,R)=>{const{scope:_,children:N,...M}=D,B=E.useRef(null),[F,L]=E.useState(null),P=At(R,B,L),X=u(y,_),{setItemMap:U}=X,q=E.useRef(M);E2(q.current,M)||(q.current=M);const J=q.current;return E.useEffect(()=>{const H=J;return U(Z=>F?Z.has(F)?Z.set(F,{...H,element:F}).toSorted(Gh):(Z.set(F,{...H,element:F}),Z.toSorted(Gh)):Z),()=>{U(Z=>!F||!Z.has(F)?Z:(Z.delete(F),new ch(Z)))}},[F,J,U]),x.jsx(k,{[v]:"",ref:P,children:N})});T.displayName=y;function C(){return E.useState(new ch)}Zt(C,"useInitCollection");function w(D){const{itemMap:R}=u(e+"CollectionConsumer",D);return R}return Zt(w,"useCollection"),[{Provider:c,Slot:m,ItemSlot:T},{createCollectionScope:l,useCollection:w,useInitCollection:C}]}Zt(FT,"createCollection");function E2(e,n){if(e===n)return!0;if(typeof e!="object"||typeof n!="object"||e==null||n==null)return!1;const i=Object.keys(e),l=Object.keys(n);if(i.length!==l.length)return!1;for(const o of i)if(!Object.prototype.hasOwnProperty.call(n,o)||e[o]!==n[o])return!1;return!0}Zt(E2,"shallowEqual");function k2(e,n){return!!(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Zt(k2,"isElementPreceding");function Gh(e,n){return!e[1].element||!n[1].element?0:k2(e[1].element,n[1].element)?-1:1}Zt(Gh,"sortByDocumentPosition");function T2(e){return new MutationObserver(i=>{for(const l of i)if(l.type==="childList"){e();return}})}Zt(T2,"getChildListObserver");var qT=Object.defineProperty,YT=(e,n)=>qT(e,"name",{value:n,configurable:!0}),XT=E.createContext(void 0);function A2(e){const n=E.useContext(XT);return e||n||"ltr"}YT(A2,"useDirection");const $T=["top","right","bottom","left"],Ni=Math.min,Xr=Math.max,Bu=Math.round,bu=Math.floor,$r=e=>({x:e,y:e}),ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function D2(e,n,i){return Xr(e,Ni(n,i))}function Gr(e,n){return typeof e=="function"?e(n):e}function Ri(e){return e.split("-")[0]}function ha(e){return e.split("-")[1]}function Pm(e){return e==="x"?"y":"x"}function Fm(e){return e==="y"?"height":"width"}function Sr(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function qm(e){return Pm(Sr(e))}function GT(e,n,i){i===void 0&&(i=!1);const l=ha(e),o=qm(e),u=Fm(o);let c=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(c=Hu(c)),[c,Hu(c)]}function QT(e){const n=Hu(e);return[Qh(e),n,Qh(n)]}function Qh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mv=["left","right"],jv=["right","left"],KT=["top","bottom"],JT=["bottom","top"];function WT(e,n,i){switch(e){case"top":case"bottom":return i?n?jv:Mv:n?Mv:jv;case"left":case"right":return n?KT:JT;default:return[]}}function eA(e,n,i,l){const o=ha(e);let u=WT(Ri(e),i==="start",l);return o&&(u=u.map(c=>c+"-"+o),n&&(u=u.concat(u.map(Qh)))),u}function Hu(e){const n=Ri(e);return ZT[n]+e.slice(n.length)}function tA(e){var n,i,l,o;return{top:(n=e.top)!=null?n:0,right:(i=e.right)!=null?i:0,bottom:(l=e.bottom)!=null?l:0,left:(o=e.left)!=null?o:0}}function N2(e){return typeof e!="number"?tA(e):{top:e,right:e,bottom:e,left:e}}function Uu(e){const{x:n,y:i,width:l,height:o}=e;return{width:l,height:o,top:i,left:n,right:n+l,bottom:i+o,x:n,y:i}}function _v(e,n,i){let{reference:l,floating:o}=e;const u=Sr(n),c=qm(n),f=Fm(c),d=Ri(n),h=u==="y",b=l.x+l.width/2-o.width/2,m=l.y+l.height/2-o.height/2,y=l[f]/2-o[f]/2;let v;switch(d){case"top":v={x:b,y:l.y-o.height};break;case"bottom":v={x:b,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:m};break;case"left":v={x:l.x-o.width,y:m};break;default:v={x:l.x,y:l.y}}const k=ha(n);return k&&(v[c]+=y*(k==="end"?1:-1)*(i&&h?-1:1)),v}async function nA(e,n){var i;n===void 0&&(n={});const{x:l,y:o,platform:u,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Gr(n,e),k=N2(v),C=f[y?m==="floating"?"reference":"floating":m],w=Uu(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(C)))==null||i?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:h,rootBoundary:b,strategy:d})),A=m==="floating"?{x:l,y:o,width:c.floating.width,height:c.floating.height}:c.reference,D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),R=await(u.isElement==null?void 0:u.isElement(D))&&await(u.getScale==null?void 0:u.getScale(D))||{x:1,y:1},_=Uu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:A,offsetParent:D,strategy:d}):A);return{top:(w.top-_.top+k.top)/R.y,bottom:(_.bottom-w.bottom+k.bottom)/R.y,left:(w.left-_.left+k.left)/R.x,right:(_.right-w.right+k.right)/R.x}}const rA=50,iA=async(e,n,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:c}=i,f=c.detectOverflow?c:{...c,detectOverflow:nA},d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:b,y:m}=_v(h,l,d),y=l,v=0;const k={};for(let T=0;T<u.length;T++){const C=u[T];if(!C)continue;const{name:w,fn:A}=C,{x:D,y:R,data:_,reset:N}=await A({x:b,y:m,initialPlacement:l,placement:y,strategy:o,middlewareData:k,rects:h,platform:f,elements:{reference:e,floating:n}});b=D??b,m=R??m,k[w]={...k[w],..._},N&&v<rA&&(v++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(h=N.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):N.rects),{x:b,y:m}=_v(h,y,d)),T=-1)}return{x:b,y:m,placement:y,strategy:o,middlewareData:k}},lA=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:o,rects:u,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:b=0}=Gr(e,n)||{};if(h==null)return{};const m=N2(b),y={x:i,y:l},v=qm(o),k=Fm(v),T=await c.getDimensions(h),C=v==="y",w=C?"top":"left",A=C?"bottom":"right",D=C?"clientHeight":"clientWidth",R=u.reference[k]+u.reference[v]-y[v]-u.floating[k],_=y[v]-u.reference[v],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let M=N?N[D]:0;(!M||!await(c.isElement==null?void 0:c.isElement(N)))&&(M=f.floating[D]||u.floating[k]);const B=R/2-_/2,F=M/2-T[k]/2-1,L=Ni(m[w],F),P=Ni(m[A],F),X=M-T[k]-P,U=M/2-T[k]/2+B,q=D2(L,U,X),J=!d.arrow&&ha(o)!=null&&U!==q&&u.reference[k]/2-(U<L?L:P)-T[k]/2<0,H=J?U<L?U-L:U-X:0;return{[v]:y[v]+H,data:{[v]:q,centerOffset:U-q-H,...J&&{alignmentOffset:H}},reset:J}}}),aA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var i,l;const{placement:o,middlewareData:u,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:b=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:T=!0,...C}=Gr(e,n);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const w=Ri(o),A=Sr(f),D=Ri(f)===f,R=await(d.isRTL==null?void 0:d.isRTL(h.floating)),_=y||(D||!T?[Hu(f)]:QT(f)),N=k!=="none";!y&&N&&_.push(...eA(f,T,k,R));const M=[f,..._],B=await d.detectOverflow(n,C),F=[];let L=((l=u.flip)==null?void 0:l.overflows)||[];if(b&&F.push(B[w]),m){const q=GT(o,c,R);F.push(B[q[0]],B[q[1]])}if(L=[...L,{placement:o,overflows:F}],!F.every(q=>q<=0)){var P,X;const q=(((P=u.flip)==null?void 0:P.index)||0)+1,J=M[q];if(J&&(!(m==="alignment"?A!==Sr(J):!1)||L.every(te=>Sr(te.placement)===A?te.overflows[0]>0:!0)))return{data:{index:q,overflows:L},reset:{placement:J}};let H=(X=L.filter(Z=>Z.overflows[0]<=0).sort((Z,te)=>Z.overflows[1]-te.overflows[1])[0])==null?void 0:X.placement;if(!H)switch(v){case"bestFit":{var U;const Z=(U=L.filter(te=>{if(N){const se=Sr(te.placement);return se===A||se==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(se=>se>0).reduce((se,z)=>se+z,0)]).sort((te,se)=>te[1]-se[1])[0])==null?void 0:U[0];Z&&(H=Z);break}case"initialPlacement":H=f;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Lv(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function zv(e){return $T.some(n=>e[n]>=0)}const oA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:i,platform:l}=n,{strategy:o="referenceHidden",...u}=Gr(e,n);switch(o){case"referenceHidden":{const c=await l.detectOverflow(n,{...u,elementContext:"reference"}),f=Lv(c,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:zv(f)}}}case"escaped":{const c=await l.detectOverflow(n,{...u,altBoundary:!0}),f=Lv(c,i.floating);return{data:{escapedOffsets:f,escaped:zv(f)}}}default:return{}}}}},R2=new Set(["left","top"]);async function sA(e,n){const{placement:i,platform:l,elements:o}=e,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),c=Ri(i),f=ha(i),d=Sr(i)==="y",h=R2.has(c)?-1:1,b=u&&d?-1:1,m=Gr(n,e);let{mainAxis:y,crossAxis:v,alignmentAxis:k}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&typeof k=="number"&&(v=f==="end"?k*-1:k),d?{x:v*b,y:y*h}:{x:y*h,y:v*b}}const uA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var i,l;const{x:o,y:u,placement:c,middlewareData:f}=n,d=await sA(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+d.x,y:u+d.y,data:{...d,placement:c}}}}},cA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:i,y:l,placement:o,platform:u}=n,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:A=>{let{x:D,y:R}=A;return{x:D,y:R}}},...h}=Gr(e,n),b={x:i,y:l},m=await u.detectOverflow(n,h),y=Sr(o),v=Pm(y);let k=b[v],T=b[y];const C=(A,D)=>D2(D+m[A==="y"?"top":"left"],D,D-m[A==="y"?"bottom":"right"]);c&&(k=C(v,k)),f&&(T=C(y,T));const w=d.fn({...n,[v]:k,[y]:T});return{...w,data:{x:w.x-i,y:w.y-l,enabled:{[v]:c,[y]:f}}}}}},fA=function(e){return e===void 0&&(e={}),{options:e,fn(n){var i,l;const{x:o,y:u,placement:c,rects:f,middlewareData:d}=n,{offset:h=0,mainAxis:b=!0,crossAxis:m=!0}=Gr(e,n),y={x:o,y:u},v=Sr(c),k=Pm(v);let T=y[k],C=y[v];const w=Gr(h,n),A=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(i=w.mainAxis)!=null?i:0,crossAxis:(l=w.crossAxis)!=null?l:0};if(b){const _=k==="y"?"height":"width",N=f.reference[k]-f.floating[_]+A.mainAxis,M=f.reference[k]+f.reference[_]-A.mainAxis;T<N?T=N:T>M&&(T=M)}if(m){var D,R;const _=k==="y"?"width":"height",N=R2.has(Ri(c)),M=f.reference[v]-f.floating[_]+(N&&((D=d.offset)==null?void 0:D[v])||0)+(N?0:A.crossAxis),B=f.reference[v]+f.reference[_]+(N?0:((R=d.offset)==null?void 0:R[v])||0)-(N?A.crossAxis:0);C<M?C=M:C>B&&(C=B)}return{[k]:T,[v]:C}}}},dA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:i,rects:l,platform:o,elements:u}=n,{apply:c=()=>{},...f}=Gr(e,n),d=await o.detectOverflow(n,f),h=Ri(i),b=ha(i),m=Sr(i)==="y",{width:y,height:v}=l.floating;let k,T;h==="top"||h==="bottom"?(k=h,T=b===(await(o.isRTL==null?void 0:o.isRTL(u.floating))?"start":"end")?"left":"right"):(T=h,k=b==="end"?"top":"bottom");const C=v-d.top-d.bottom,w=y-d.left-d.right,A=Ni(v-d[k],C),D=Ni(y-d[T],w),R=n.middlewareData.shift,_=!R;let N=A,M=D;R!=null&&R.enabled.x&&(M=w),R!=null&&R.enabled.y&&(N=C),_&&!b&&(m?M=y-2*Xr(d.left,d.right):N=v-2*Xr(d.top,d.bottom)),await c({...n,availableWidth:M,availableHeight:N});const B=await o.getDimensions(u.floating);return y!==B.width||v!==B.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function ma(e){return O2(e)?(e.nodeName||"").toLowerCase():"#document"}function kn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Jr(e){var n;return(n=(O2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function O2(e){return lc()?e instanceof Node||e instanceof kn(e).Node:!1}function Cr(e){return lc()?e instanceof Element||e instanceof kn(e).Element:!1}function ji(e){return lc()?e instanceof HTMLElement||e instanceof kn(e).HTMLElement:!1}function Bv(e){return!lc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kn(e).ShadowRoot}function ac(e){const{overflow:n,overflowX:i,overflowY:l,display:o}=Er(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&o!=="inline"&&o!=="contents"}function hA(e){return/^(table|td|th)$/.test(ma(e))}function oc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const mA=/transform|translate|scale|rotate|perspective|filter/,pA=/paint|layout|strict|content/,el=e=>!!e&&e!=="none";let fh;function Ym(e){const n=Cr(e)?Er(e):e;return el(n.transform)||el(n.translate)||el(n.scale)||el(n.rotate)||el(n.perspective)||!Xm()&&(el(n.backdropFilter)||el(n.filter))||mA.test(n.willChange||"")||pA.test(n.contain||"")}function gA(e){let n=ll(e);for(;ji(n)&&!Do(n);){if(Ym(n))return n;if(oc(n))return null;n=ll(n)}return null}function Xm(){return fh==null&&(fh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fh}function Do(e){return/^(html|body|#document)$/.test(ma(e))}function Er(e){return kn(e).getComputedStyle(e)}function sc(e){return Cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ll(e){if(ma(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Bv(e)&&e.host||Jr(e);return Bv(n)?n.host:n}function M2(e){const n=ll(e);return Do(n)?(e.ownerDocument||e).body:ji(n)&&ac(n)?n:M2(n)}function No(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=M2(e),u=o===((l=e.ownerDocument)==null?void 0:l.body),c=kn(o);if(u){const f=Kh(c);return n.concat(c,c.visualViewport||[],ac(o)?o:[],f&&i?No(f):[])}else return n.concat(o,No(o,[],i))}function Kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function j2(e){const n=Er(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=ji(e),u=o?e.offsetWidth:i,c=o?e.offsetHeight:l,f=Bu(i)!==u||Bu(l)!==c;return f&&(i=u,l=c),{width:i,height:l,$:f}}function $m(e){return Cr(e)?e:e.contextElement}function ra(e){const n=$m(e);if(!ji(n))return $r(1);const i=n.getBoundingClientRect(),{width:l,height:o,$:u}=j2(n);let c=(u?Bu(i.width):i.width)/l,f=(u?Bu(i.height):i.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const bA=$r(0);function _2(e){const n=kn(e);return!Xm()||!n.visualViewport?bA:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function vA(e,n,i){return n===void 0&&(n=!1),!!i&&n&&i===kn(e)}function al(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),u=$m(e);let c=$r(1);n&&(l?Cr(l)&&(c=ra(l)):c=ra(e));const f=vA(u,i,l)?_2(u):$r(0);let d=(o.left+f.x)/c.x,h=(o.top+f.y)/c.y,b=o.width/c.x,m=o.height/c.y;if(u&&l){const y=kn(u),v=Cr(l)?kn(l):l;let k=y,T=Kh(k);for(;T&&v!==k;){const C=ra(T),w=T.getBoundingClientRect(),A=Er(T),D=w.left+(T.clientLeft+parseFloat(A.paddingLeft))*C.x,R=w.top+(T.clientTop+parseFloat(A.paddingTop))*C.y;d*=C.x,h*=C.y,b*=C.x,m*=C.y,d+=D,h+=R,k=kn(T),T=Kh(k)}}return Uu({width:b,height:m,x:d,y:h})}function uc(e,n){const i=sc(e).scrollLeft;return n?n.left+i:al(Jr(e)).left+i}function L2(e,n){const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-uc(e,i),o=i.top+n.scrollTop;return{x:l,y:o}}function yA(e){let{elements:n,rect:i,offsetParent:l,strategy:o}=e;const u=o==="fixed",c=Jr(l),f=n?oc(n.floating):!1;if(l===c||f&&u)return i;let d={scrollLeft:0,scrollTop:0},h=$r(1);const b=$r(0),m=ji(l);if((m||!u)&&((ma(l)!=="body"||ac(c))&&(d=sc(l)),m)){const v=al(l);h=ra(l),b.x=v.x+l.clientLeft,b.y=v.y+l.clientTop}const y=c&&!m&&!u?L2(c,d):$r(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-d.scrollLeft*h.x+b.x+y.x,y:i.y*h.y-d.scrollTop*h.y+b.y+y.y}}function xA(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function SA(e){const n=sc(e),i=e.ownerDocument.body,l=Xr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=Xr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+uc(e);const c=-n.scrollTop;return Er(i).direction==="rtl"&&(u+=Xr(e.clientWidth,i.clientWidth)-l),{width:l,height:o,x:u,y:c}}const wA=25;function CA(e,n,i){i===void 0&&(i="viewport");const l=i==="layoutViewport",o=kn(e),u=Jr(e),c=o.visualViewport;let f=u.clientWidth,d=u.clientHeight,h=0,b=0;if(c){const y=!Xm()||n==="fixed";l?y||(h=-c.offsetLeft,b=-c.offsetTop):(f=c.width,d=c.height,y&&(h=c.offsetLeft,b=c.offsetTop))}if(uc(u)<=0){const y=u.ownerDocument,v=y.body,k=getComputedStyle(v),T=y.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,C=Math.abs(u.clientWidth-v.clientWidth-T),w=getComputedStyle(u).scrollbarGutter==="stable both-edges"?C/2:C;w<=wA&&(f-=w)}return{width:f,height:d,x:h,y:b}}function EA(e,n){const i=al(e,!0,n==="fixed"),l=i.top+e.clientTop,o=i.left+e.clientLeft,u=ra(e),c=e.clientWidth*u.x,f=e.clientHeight*u.y,d=o*u.x,h=l*u.y;return{width:c,height:f,x:d,y:h}}function Hv(e,n,i){let l;if(n==="viewport"||n==="layoutViewport")l=CA(e,i,n);else if(n==="document")l=SA(Jr(e));else if(Cr(n))l=EA(n,i);else{const o=_2(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Uu(l)}function kA(e,n){const i=n.get(e);if(i)return i;let l=No(e,[],!1).filter(f=>Cr(f)&&ma(f)!=="body"),o=null;const u=Er(e).position==="fixed";let c=u?ll(e):e;for(;Cr(c)&&!Do(c);){const f=Er(c),d=Ym(c),h=o?o.position:u?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&f.position==="static")?l=l.filter(m=>m!==c):o=f,c=ll(c)}return n.set(e,l),l}function TA(e){let{element:n,boundary:i,rootBoundary:l,strategy:o}=e;const c=[...i==="clippingAncestors"?oc(n)?[]:kA(n,this._c):[].concat(i),l],f=Hv(n,c[0],o);let d=f.top,h=f.right,b=f.bottom,m=f.left;for(let y=1;y<c.length;y++){const v=Hv(n,c[y],o);d=Xr(v.top,d),h=Ni(v.right,h),b=Ni(v.bottom,b),m=Xr(v.left,m)}return{width:h-m,height:b-d,x:m,y:d}}function AA(e){const{width:n,height:i}=j2(e);return{width:n,height:i}}function DA(e,n,i){const l=ji(n),o=Jr(n),u=i==="fixed",c=al(e,!0,u,n);let f={scrollLeft:0,scrollTop:0};const d=$r(0);if((l||!u)&&((ma(n)!=="body"||ac(o))&&(f=sc(n)),l)){const y=al(n,!0,u,n);d.x=y.x+n.clientLeft,d.y=y.y+n.clientTop}!l&&o&&(d.x=uc(o));const h=o&&!l&&!u?L2(o,f):$r(0),b=c.left+f.scrollLeft-d.x-h.x,m=c.top+f.scrollTop-d.y-h.y;return{x:b,y:m,width:c.width,height:c.height}}function dh(e){return Er(e).position==="static"}function Uv(e,n){if(!ji(e)||Er(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return Jr(e)===i&&(i=i.ownerDocument.body),i}function z2(e,n){const i=kn(e);if(oc(e))return i;if(!ji(e)){let o=ll(e);for(;o&&!Do(o);){if(Cr(o)&&!dh(o))return o;o=ll(o)}return i}let l=Uv(e,n);for(;l&&hA(l)&&dh(l);)l=Uv(l,n);return l&&Do(l)&&dh(l)&&!Ym(l)?i:l||gA(e)||i}const NA=async function(e){const n=this.getOffsetParent||z2,i=this.getDimensions,l=await i(e.floating);return{reference:DA(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function RA(e){return Er(e).direction==="rtl"}const OA={convertOffsetParentRelativeRectToViewportRelativeRect:yA,getDocumentElement:Jr,getClippingRect:TA,getOffsetParent:z2,getElementRects:NA,getClientRects:xA,getDimensions:AA,getScale:ra,isElement:Cr,isRTL:RA};function B2(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function MA(e,n,i){let l=null,o;const u=Jr(e);function c(){var b;clearTimeout(o),(b=l)==null||b.disconnect(),l=null}function f(b,m){b===void 0&&(b=!1),m===void 0&&(m=1),c();const y=e.getBoundingClientRect(),{left:v,top:k,width:T,height:C}=y;if(b||n(),!T||!C)return;const w=bu(k),A=bu(u.clientWidth-(v+T)),D=bu(u.clientHeight-(k+C)),R=bu(v),N={rootMargin:-w+"px "+-A+"px "+-D+"px "+-R+"px",threshold:Xr(0,Ni(1,m))||1};let M=!0;function B(F){const L=F[0].intersectionRatio;if(!B2(y,e.getBoundingClientRect()))return f();if(L!==m){if(!M)return f();L?f(!1,L):o=setTimeout(()=>{f(!1,1e-7)},1e3)}M=!1}try{l=new IntersectionObserver(B,{...N,root:u.ownerDocument})}catch{l=new IntersectionObserver(B,N)}l.observe(e)}const d=kn(e),h=()=>f(i);return d.addEventListener("resize",h),f(!0),()=>{d.removeEventListener("resize",h),c()}}function jA(e,n,i,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=l,h=$m(e),b=o||u?[...h?No(h):[],...n?No(n):[]]:[];b.forEach(w=>{o&&w.addEventListener("scroll",i),u&&w.addEventListener("resize",i)});const m=h&&f?MA(h,i,u):null;let y=-1,v=null;c&&(v=new ResizeObserver(w=>{let[A]=w;A&&A.target===h&&v&&n&&(v.unobserve(n),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var D;(D=v)==null||D.observe(n)})),i()}),h&&!d&&v.observe(h),n&&v.observe(n));let k,T=d?al(e):null;d&&C();function C(){const w=al(e);T&&!B2(T,w)&&i(),T=w,k=requestAnimationFrame(C)}return i(),()=>{var w;b.forEach(A=>{o&&A.removeEventListener("scroll",i),u&&A.removeEventListener("resize",i)}),m==null||m(),(w=v)==null||w.disconnect(),v=null,d&&cancelAnimationFrame(k)}}const _A=uA,LA=cA,zA=aA,BA=dA,HA=oA,Iv=lA,UA=fA,IA=(e,n,i)=>{const l=new Map,o=i??{},u={...OA,...o.platform,_c:l};return iA(e,n,{...o,platform:u})};var VA=typeof document<"u",PA=function(){},Eu=VA?E.useLayoutEffect:PA;function Iu(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let i,l,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==n.length)return!1;for(l=i;l--!==0;)if(!Iu(e[l],n[l]))return!1;return!0}if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(n,o[l]))return!1;for(l=i;l--!==0;){const u=o[l];if(!(u==="_owner"&&e.$$typeof)&&!Iu(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function H2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vv(e,n){const i=H2(e);return Math.round(n*i)/i}function hh(e){const n=E.useRef(e);return Eu(()=>{n.current=e}),n}function FA(e){e===void 0&&(e={});const{placement:n="bottom",strategy:i="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[b,m]=E.useState({x:0,y:0,strategy:i,placement:n,middlewareData:{},isPositioned:!1}),[y,v]=E.useState(l);Iu(y,l)||v(l);const[k,T]=E.useState(null),[C,w]=E.useState(null),A=E.useCallback(te=>{te!==N.current&&(N.current=te,T(te))},[]),D=E.useCallback(te=>{te!==M.current&&(M.current=te,w(te))},[]),R=u||k,_=c||C,N=E.useRef(null),M=E.useRef(null),B=E.useRef(b),F=d!=null,L=hh(d),P=hh(o),X=hh(h),U=E.useCallback(()=>{if(!N.current||!M.current)return;const te={placement:n,strategy:i,middleware:y};P.current&&(te.platform=P.current),IA(N.current,M.current,te).then(se=>{const z={...se,isPositioned:X.current!==!1};q.current&&!Iu(B.current,z)&&(B.current=z,ar.flushSync(()=>{m(z)}))})},[y,n,i,P,X]);Eu(()=>{h===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,m(te=>({...te,isPositioned:!1})))},[h]);const q=E.useRef(!1);Eu(()=>(q.current=!0,()=>{q.current=!1}),[]),Eu(()=>{if(R&&(N.current=R),_&&(M.current=_),R&&_){if(L.current)return L.current(R,_,U);U()}},[R,_,U,L,F]);const J=E.useMemo(()=>({reference:N,floating:M,setReference:A,setFloating:D}),[A,D]),H=E.useMemo(()=>({reference:R,floating:_}),[R,_]),Z=E.useMemo(()=>{const te={position:i,left:0,top:0};if(!H.floating)return te;const se=Vv(H.floating,b.x),z=Vv(H.floating,b.y);return f?{...te,transform:"translate("+se+"px, "+z+"px)",...H2(H.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:se,top:z}},[i,f,H.floating,b.x,b.y]);return E.useMemo(()=>({...b,update:U,refs:J,elements:H,floatingStyles:Z}),[b,U,J,H,Z])}const qA=e=>{function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:l,padding:o}=typeof e=="function"?e(i):e;return l&&n(l)?l.current!=null?Iv({element:l.current,padding:o}).fn(i):{}:l?Iv({element:l,padding:o}).fn(i):{}}}},YA=(e,n)=>{const i=_A(e);return{name:i.name,fn:i.fn,options:[e,n]}},XA=(e,n)=>{const i=LA(e);return{name:i.name,fn:i.fn,options:[e,n]}},$A=(e,n)=>({fn:UA(e).fn,options:[e,n]}),ZA=(e,n)=>{const i=zA(e);return{name:i.name,fn:i.fn,options:[e,n]}},GA=(e,n)=>{const i=BA(e);return{name:i.name,fn:i.fn,options:[e,n]}},QA=(e,n)=>{const i=HA(e);return{name:i.name,fn:i.fn,options:[e,n]}},KA=(e,n)=>{const i=qA(e);return{name:i.name,fn:i.fn,options:[e,n]}};var JA=Object.defineProperty,WA=(e,n)=>JA(e,"name",{value:n,configurable:!0});function U2(e){const[n,i]=E.useState(void 0);return tn(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let c,f;if("borderBoxSize"in u){const d=u.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;i({width:c,height:f})});return l.observe(e,{box:"border-box"}),()=>l.unobserve(e)}else i(void 0)},[e]),n}WA(U2,"useSize");var eD=Object.defineProperty,Ai=(e,n)=>eD(e,"name",{value:n,configurable:!0}),I2="Popper",[V2,P2]=ca(I2),[tD,F2]=V2(I2),nD=Ai(e=>{const{__scopePopper:n,children:i}=e,[l,o]=E.useState(null),[u,c]=E.useState(void 0);return x.jsx(tD,{scope:n,anchor:l,onAnchorChange:o,placementState:u,setPlacementState:c,children:i})},"Popper"),rD="PopperAnchor",iD=E.forwardRef(Ai(function(n,i){const{__scopePopper:l,virtualRef:o,...u}=n,c=F2(rD,l),f=E.useRef(null),d=c.onAnchorChange,h=E.useCallback(T=>{f.current=T,T&&d(T)},[d]),b=At(i,h),m=E.useRef(null);E.useEffect(()=>{if(!o)return;const T=m.current;m.current=o.current,T!==m.current&&d(m.current)});const y=c.placementState&&cc(c.placementState),v=y==null?void 0:y[0],k=y==null?void 0:y[1];return o?null:x.jsx(Ft.div,{"data-radix-popper-side":v,"data-radix-popper-align":k,...u,ref:b})},"PopperAnchor")),q2="PopperContent",[lD,UO]=V2(q2),aD=E.forwardRef(Ai(function(n,i){var he,be,Te,Ce,Ae,Pe,st;const{__scopePopper:l,side:o="bottom",sideOffset:u=0,align:c="center",alignOffset:f=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:b=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:v=!1,updatePositionStrategy:k="optimized",onPlaced:T,...C}=n,w=F2(q2,l),[A,D]=E.useState(null),R=At(i,D),[_,N]=E.useState(null),M=U2(_),B=(M==null?void 0:M.width)??0,F=(M==null?void 0:M.height)??0,L=o+(c!=="center"?"-"+c:""),P=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},X=Array.isArray(b)?b:[b],U=X.length>0,q={padding:P,boundary:X.filter(Y2),altBoundary:U},{refs:J,floatingStyles:H,placement:Z,isPositioned:te,middlewareData:se}=FA({strategy:"fixed",placement:L,whileElementsMounted:Ai((...pt)=>jA(...pt,{animationFrame:k==="always"}),"whileElementsMounted"),elements:{reference:w.anchor},middleware:[YA({mainAxis:u+F,alignmentAxis:f}),h&&XA({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?$A():void 0,...q}),h&&ZA({...q}),GA({...q,apply:Ai(({elements:pt,rects:Ot,availableWidth:nn,availableHeight:Et})=>{const{width:It,height:pn}=Ot.reference,Ge=pt.floating.style;Ge.setProperty("--radix-popper-available-width",`${nn}px`),Ge.setProperty("--radix-popper-available-height",`${Et}px`),Ge.setProperty("--radix-popper-anchor-width",`${It}px`),Ge.setProperty("--radix-popper-anchor-height",`${pn}px`)},"apply")}),_&&KA({element:_,padding:d}),oD({arrowWidth:B,arrowHeight:F}),v&&QA({strategy:"referenceHidden",...q,boundary:U?q.boundary:void 0})]}),z=w.setPlacementState;tn(()=>(z(Z),()=>{z(void 0)}),[Z,z]);const[I,G]=cc(Z),j=wr(T);tn(()=>{te&&(j==null||j())},[te,j]);const ie=(he=se.arrow)==null?void 0:he.x,de=(be=se.arrow)==null?void 0:be.y,ue=((Te=se.arrow)==null?void 0:Te.centerOffset)!==0,[ve,me]=E.useState();return tn(()=>{A&&me(window.getComputedStyle(A).zIndex)},[A]),x.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:te?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(Ce=se.transformOrigin)==null?void 0:Ce.x,(Ae=se.transformOrigin)==null?void 0:Ae.y].join(" "),...((Pe=se.hide)==null?void 0:Pe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(lD,{scope:l,placedSide:I,placedAlign:G,onArrowChange:N,arrowX:ie,arrowY:de,shouldHideArrow:ue,children:x.jsx(Ft.div,{"data-side":I,"data-align":G,...C,ref:R,style:{...C.style,animation:te?(st=C.style)==null?void 0:st.animation:"none"}})})})},"PopperContent"));function Y2(e){return e!==null}Ai(Y2,"isNotNull");var oD=Ai(e=>({name:"transformOrigin",options:e,fn(n){var C,w,A;const{placement:i,rects:l,middlewareData:o}=n,c=((C=o.arrow)==null?void 0:C.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,b]=cc(i),m={start:"0%",center:"50%",end:"100%"}[b],y=(((w=o.arrow)==null?void 0:w.x)??0)+f/2,v=(((A=o.arrow)==null?void 0:A.y)??0)+d/2;let k="",T="";return h==="bottom"?(k=c?m:`${y}px`,T=`${-d}px`):h==="top"?(k=c?m:`${y}px`,T=`${l.floating.height+d}px`):h==="right"?(k=`${-d}px`,T=c?m:`${v}px`):h==="left"&&(k=`${l.floating.width+d}px`,T=c?m:`${v}px`),{data:{x:k,y:T}}}}),"transformOrigin");function cc(e){const[n,i="center"]=e.split("-");return[n,i]}Ai(cc,"getSideAndAlignFromPlacement");var sD=nD,uD=iD,cD=aD,fD=Object.defineProperty,dD=(e,n)=>fD(e,"name",{value:n,configurable:!0});function X2(e){const n=E.useRef({value:e,previous:e});return E.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}dD(X2,"usePrevious");var hD=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mD=Object.defineProperty,rt=(e,n)=>mD(e,"name",{value:n,configurable:!0}),pD=[" ","Enter","ArrowUp","ArrowDown"],gD=[" ","Enter"],aa="Select",[fc,Zm,bD]=w2(aa),[ul,IO]=ca(aa,[bD,P2]),Gm=P2(),[vD,_i]=ul(aa),[yD,xD]=ul(aa);function $2(e){const{__scopeSelect:n,children:i,open:l,defaultOpen:o,onOpenChange:u,value:c,defaultValue:f,onValueChange:d,dir:h,name:b,autoComplete:m,disabled:y,required:v,form:k,internal_do_not_use_render:T}=e,C=Gm(n),[w,A]=E.useState(null),[D,R]=E.useState(null),[_,N]=E.useState(!1),M=A2(h),[B,F]=Ou({prop:l,defaultProp:o??!1,onChange:u,caller:aa}),[L,P]=Ou({prop:c,defaultProp:f,onChange:d,caller:aa}),X=E.useRef(null),U=E.useRef(L);E.useEffect(()=>{const G=k?w==null?void 0:w.ownerDocument.getElementById(k):w==null?void 0:w.form;if(G instanceof HTMLFormElement){const j=rt(()=>P(U.current),"reset");return G.addEventListener("reset",j),()=>G.removeEventListener("reset",j)}},[k,w,P]);const q=w?!!k||!!w.closest("form"):!0,[J,H]=E.useState(new Set),Z=ta(),te=Array.from(J).map(G=>G.props.value).join(";"),se=E.useCallback(G=>{H(j=>new Set(j).add(G))},[]),z=E.useCallback(G=>{H(j=>{const ie=new Set(j);return ie.delete(G),ie})},[]),I={required:v,trigger:w,onTriggerChange:A,valueNode:D,onValueNodeChange:R,valueNodeHasChildren:_,onValueNodeHasChildrenChange:N,contentId:Z,value:L,onValueChange:P,open:B,onOpenChange:F,dir:M,triggerPointerDownPosRef:X,disabled:y,name:b,autoComplete:m,form:k,nativeOptions:J,nativeSelectKey:te,isFormControl:q};return x.jsx(sD,{...C,children:x.jsx(vD,{scope:n,...I,children:x.jsx(fc.Provider,{scope:n,children:x.jsx(yD,{scope:n,onNativeOptionAdd:se,onNativeOptionRemove:z,children:Q2(T)?T(I):i})})})})}rt($2,"SelectProvider");var SD=rt(e=>{const{__scopeSelect:n,children:i,...l}=e;return x.jsx($2,{__scopeSelect:n,...l,internal_do_not_use_render:({isFormControl:o})=>x.jsxs(x.Fragment,{children:[i,o?x.jsx(XD,{__scopeSelect:n}):null]})})},"Select"),wD="SelectTrigger",CD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,disabled:o=!1,...u}=n,c=Gm(l),f=_i(wD,l),d=f.disabled||o,h=At(i,f.onTriggerChange),b=Zm(l),m=E.useRef("touch"),[y,v,k]=Qm(C=>{const w=b().filter(R=>!R.disabled),A=w.find(R=>R.value===f.value),D=Km(w,C,A);D!==void 0&&f.onValueChange(D.value)}),T=rt(C=>{d||(f.onOpenChange(!0),k()),C&&(f.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})},"handleOpen");return x.jsx(uD,{asChild:!0,...c,children:x.jsx(Ft.button,{type:"button",role:"combobox","aria-controls":f.open?f.contentId:void 0,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":Po(f.value)?"":void 0,...u,ref:h,onClick:wt(u.onClick,C=>{C.currentTarget.focus(),m.current!=="mouse"&&T(C)}),onPointerDown:wt(u.onPointerDown,C=>{m.current=C.pointerType;const w=C.target;w.hasPointerCapture(C.pointerId)&&w.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(T(C),C.preventDefault())}),onKeyDown:wt(u.onKeyDown,C=>{const w=y.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&v(C.key),!(w&&C.key===" ")&&pD.includes(C.key)&&(T(),C.preventDefault())})})})},"SelectTrigger")),ED="SelectValue",kD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,className:o,style:u,children:c,placeholder:f="",...d}=n,h=_i(ED,l),{onValueNodeHasChildrenChange:b}=h,m=c!==void 0,y=At(i,h.onValueNodeChange);tn(()=>{b(m)},[b,m]);const v=Po(h.value);return x.jsx(Ft.span,{...d,asChild:v?!1:d.asChild,ref:y,style:{pointerEvents:"none"},children:x.jsx(E.Fragment,{children:v?f:c},v?"placeholder":"value")})},"SelectValue")),TD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,children:o,...u}=n;return x.jsx(Ft.span,{"aria-hidden":!0,...u,ref:i,children:o||"▼"})},"SelectIcon")),AD="SelectPortal",[DD,ND]=ul(AD,{forceMount:void 0}),RD=rt(e=>{const{__scopeSelect:n,forceMount:i,...l}=e;return x.jsx(DD,{scope:e.__scopeSelect,forceMount:i,children:x.jsx(Jy,{asChild:!0,...l})})},"SelectPortal"),ol="SelectContent",OD=E.forwardRef(rt(function(n,i){const l=ND(ol,n.__scopeSelect),{forceMount:o=l.forceMount,...u}=n,c=_i(ol,n.__scopeSelect),[f,d]=E.useState();return tn(()=>{d(new DocumentFragment)},[]),x.jsx(Qu,{present:o||c.open,children:({present:h})=>h?x.jsx(_D,{...u,ref:i}):x.jsx(MD,{...u,fragment:f})})},"SelectContent")),MD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,children:o,fragment:u}=n;return u?ar.createPortal(x.jsx(Z2,{scope:l,children:x.jsx(fc.Slot,{scope:l,children:x.jsx("div",{ref:i,children:o})})}),u):null},"SelectContentFragment")),lr=10,[Z2,dc]=ul(ol),jD=Di("SelectContent.RemoveScroll"),_D=E.forwardRef(rt(function(n,i){const{__scopeSelect:l}=n,{position:o="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:c,onPointerDownOutside:f,side:d,sideOffset:h,align:b,alignOffset:m,arrowPadding:y,collisionBoundary:v,collisionPadding:k,sticky:T,hideWhenDetached:C,avoidCollisions:w,...A}=n,D=_i(ol,l),[R,_]=E.useState(null),[N,M]=E.useState(null),B=At(i,_),[F,L]=E.useState(null),[P,X]=E.useState(null),U=Zm(l),[q,J]=E.useState(!1),H=E.useRef(!1);E.useEffect(()=>{if(R)return fx(R)},[R]),Ku();const Z=E.useCallback(me=>{const[he,...be]=U().map(Ae=>Ae.ref.current),[Te]=be.slice(-1),Ce=document.activeElement;for(const Ae of me)if(Ae===Ce||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===he&&N&&(N.scrollTop=0),Ae===Te&&N&&(N.scrollTop=N.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Ce))return},[U,N]),te=E.useCallback(()=>Z([F,R]),[Z,F,R]);E.useEffect(()=>{q&&te()},[q,te]);const{onOpenChange:se,triggerPointerDownPosRef:z}=D;E.useEffect(()=>{if(R){let me={x:0,y:0};const he=rt(Te=>{var Ce,Ae;me={x:Math.abs(Math.round(Te.pageX)-(((Ce=z.current)==null?void 0:Ce.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((Ae=z.current)==null?void 0:Ae.y)??0))}},"handlePointerMove"),be=rt(Te=>{me.x<=10&&me.y<=10?Te.preventDefault():Te.composedPath().includes(R)||se(!1),document.removeEventListener("pointermove",he),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",be,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",be,{capture:!0})}}},[R,se,z]),E.useEffect(()=>{const me=rt(()=>se(!1),"close");return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[se]);const[I,G]=Qm(me=>{const he=U().filter(Ce=>!Ce.disabled),be=he.find(Ce=>Ce.ref.current===document.activeElement),Te=Km(he,me,be);Te&&setTimeout(()=>{var Ce;return(Ce=Te.ref.current)==null?void 0:Ce.focus()})}),j=E.useCallback((me,he,be)=>{const Te=!H.current&&!be;(D.value!==void 0&&D.value===he||Te)&&(L(me),Te&&(H.current=!0))},[D.value]),ie=E.useCallback(()=>R==null?void 0:R.focus(),[R]),de=E.useCallback((me,he,be)=>{const Te=!H.current&&!be;(D.value!==void 0&&D.value===he||Te)&&X(me)},[D.value]),ue=o==="popper"?Pv:LD,ve=ue===Pv?{side:d,sideOffset:h,align:b,alignOffset:m,arrowPadding:y,collisionBoundary:v,collisionPadding:k,sticky:T,hideWhenDetached:C,avoidCollisions:w}:{};return x.jsx(Z2,{scope:l,content:R,viewport:N,onViewportChange:M,itemRefCallback:j,selectedItem:F,onItemLeave:ie,itemTextRefCallback:de,focusSelectedItem:te,selectedItemText:P,position:o,isPositioned:q,searchRef:I,children:x.jsx(mm,{as:jD,allowPinchZoom:!0,children:x.jsx(Yy,{asChild:!0,trapped:D.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:wt(u,me=>{var he;(he=D.trigger)==null||he.focus({preventScroll:!0}),me.preventDefault()}),children:x.jsx(Vy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:x.jsx(ue,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:me=>me.preventDefault(),...A,...ve,onPlaced:()=>J(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:wt(A.onKeyDown,me=>{const he=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!he&&me.key.length===1&&G(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let Te=U().filter(Ce=>!Ce.disabled).map(Ce=>Ce.ref.current);if(["ArrowUp","End"].includes(me.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const Ce=me.target,Ae=Te.indexOf(Ce);Te=Te.slice(Ae+1)}setTimeout(()=>Z(Te)),me.preventDefault()}})})})})})})},"SelectContentImpl")),LD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,onPlaced:o,...u}=n,c=_i(ol,l),f=dc(ol,l),[d,h]=E.useState(null),[b,m]=E.useState(null),y=At(i,m),v=Zm(l),k=E.useRef(!1),T=E.useRef(!0),{viewport:C,selectedItem:w,selectedItemText:A,focusSelectedItem:D}=f,R=E.useCallback(()=>{if(c.trigger&&c.valueNode&&d&&b&&C&&w&&A){const B=c.trigger.getBoundingClientRect(),F=b.getBoundingClientRect(),L=c.valueNode.getBoundingClientRect(),P=A.getBoundingClientRect();if(c.dir!=="rtl"){const Ce=P.left-F.left,Ae=L.left-Ce,Pe=B.left-Ae,st=B.width+Pe,pt=Math.max(st,F.width),Ot=window.innerWidth-lr,nn=Zh(Ae,[lr,Math.max(lr,Ot-pt)]);d.style.minWidth=st+"px",d.style.left=nn+"px"}else{const Ce=F.right-P.right,Ae=window.innerWidth-L.right-Ce,Pe=window.innerWidth-B.right-Ae,st=B.width+Pe,pt=Math.max(st,F.width),Ot=window.innerWidth-lr,nn=Zh(Ae,[lr,Math.max(lr,Ot-pt)]);d.style.minWidth=st+"px",d.style.right=nn+"px"}const X=v(),U=window.innerHeight-lr*2,q=C.scrollHeight,J=window.getComputedStyle(b),H=parseInt(J.borderTopWidth,10),Z=parseInt(J.paddingTop,10),te=parseInt(J.borderBottomWidth,10),se=parseInt(J.paddingBottom,10),z=H+Z+q+se+te,I=Math.min(w.offsetHeight*5,z),G=window.getComputedStyle(C),j=parseInt(G.paddingTop,10),ie=parseInt(G.paddingBottom,10),de=B.top+B.height/2-lr,ue=U-de,ve=w.offsetHeight/2,me=w.offsetTop+ve,he=H+Z+me,be=z-he;if(he<=de){const Ce=X.length>0&&w===X[X.length-1].ref.current;d.style.bottom="0px";const Ae=b.clientHeight-C.offsetTop-C.offsetHeight,Pe=Math.max(ue,ve+(Ce?ie:0)+Ae+te),st=he+Pe;d.style.height=st+"px"}else{const Ce=X.length>0&&w===X[0].ref.current;d.style.top="0px";const Pe=Math.max(de,H+C.offsetTop+(Ce?j:0)+ve)+be;d.style.height=Pe+"px",C.scrollTop=he-de+C.offsetTop}d.style.margin=`${lr}px 0`,d.style.minHeight=I+"px",d.style.maxHeight=U+"px",o==null||o(),requestAnimationFrame(()=>k.current=!0)}},[v,c.trigger,c.valueNode,d,b,C,w,A,c.dir,o]);tn(()=>R(),[R]);const[_,N]=E.useState();tn(()=>{b&&N(window.getComputedStyle(b).zIndex)},[b]);const M=E.useCallback(B=>{B&&T.current===!0&&(R(),D==null||D(),T.current=!1)},[R,D]);return x.jsx(zD,{scope:l,contentWrapper:d,shouldExpandOnScrollRef:k,onScrollButtonChange:M,children:x.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:x.jsx(Ft.div,{...u,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})},"SelectItemAlignedPosition")),Pv=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,align:o="start",collisionPadding:u=lr,...c}=n,f=Gm(l);return x.jsx(cD,{...f,...c,ref:i,align:o,collisionPadding:u,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[zD,BD]=ul(ol,{}),Fv="SelectViewport",HD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,nonce:o,...u}=n,c=dc(Fv,l),f=BD(Fv,l),d=At(i,c.onViewportChange),h=E.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),x.jsx(fc.Slot,{scope:l,children:x.jsx(Ft.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:wt(u.onScroll,b=>{const m=b.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:v}=f;if(v!=null&&v.current&&y){const k=Math.abs(h.current-m.scrollTop);if(k>0){const T=window.innerHeight-lr*2,C=parseFloat(y.style.minHeight),w=parseFloat(y.style.height),A=Math.max(C,w);if(A<T){const D=A+k,R=Math.min(T,D),_=D-R;y.style.height=R+"px",y.style.bottom==="0px"&&(m.scrollTop=_>0?_:0,y.style.justifyContent="flex-end")}}}h.current=m.scrollTop})})})]})},"SelectViewport")),UD="SelectGroup",[VO,PO]=ul(UD),Jh="SelectItem",[ID,G2]=ul(Jh),VD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,value:o,disabled:u=!1,textValue:c,...f}=n,d=_i(Jh,l),h=dc(Jh,l),b=d.value===o,[m,y]=E.useState(c??""),[v,k]=E.useState(!1),T=wr(R=>{var _;return(_=h.itemRefCallback)==null?void 0:_.call(h,R,o,u)}),C=At(i,T),w=ta(),A=E.useRef("touch"),D=rt(()=>{u||(d.onValueChange(o),d.onOpenChange(!1))},"handleSelect");return x.jsx(ID,{scope:l,value:o,disabled:u,textId:w,isSelected:b,onItemTextChange:E.useCallback(R=>{y(_=>_||((R==null?void 0:R.textContent)??"").trim())},[]),children:x.jsx(fc.ItemSlot,{scope:l,value:o,disabled:u,textValue:m,children:x.jsx(Ft.div,{role:"option","aria-labelledby":w,"data-highlighted":v?"":void 0,"aria-selected":b&&v,"data-state":b?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...f,ref:C,onFocus:wt(f.onFocus,()=>k(!0)),onBlur:wt(f.onBlur,()=>k(!1)),onClick:wt(f.onClick,()=>{A.current!=="mouse"&&D()}),onPointerUp:wt(f.onPointerUp,()=>{A.current==="mouse"&&D()}),onPointerDown:wt(f.onPointerDown,R=>{A.current=R.pointerType}),onPointerMove:wt(f.onPointerMove,R=>{var _;A.current=R.pointerType,u?(_=h.onItemLeave)==null||_.call(h):A.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:wt(f.onPointerLeave,R=>{var _;R.currentTarget===document.activeElement&&((_=h.onItemLeave)==null||_.call(h))}),onKeyDown:wt(f.onKeyDown,R=>{var N;u||R.target!==R.currentTarget||((N=h.searchRef)==null?void 0:N.current)!==""&&R.key===" "||(gD.includes(R.key)&&D(),R.key===" "&&R.preventDefault())})})})})},"SelectItem")),vu="SelectItemText",PD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,className:o,style:u,...c}=n,f=_i(vu,l),d=dc(vu,l),h=G2(vu,l),b=xD(vu,l),[m,y]=E.useState(null),v=wr(D=>{var R;return(R=d.itemTextRefCallback)==null?void 0:R.call(d,D,h.value,h.disabled)}),k=At(i,y,h.onItemTextChange,v),T=m==null?void 0:m.textContent,C=E.useMemo(()=>x.jsx("option",{value:h.value,disabled:h.disabled,children:T},h.value),[h.disabled,h.value,T]),{onNativeOptionAdd:w,onNativeOptionRemove:A}=b;return tn(()=>(w(C),()=>A(C)),[w,A,C]),x.jsxs(x.Fragment,{children:[x.jsx(Ft.span,{id:h.textId,...c,ref:k}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren&&!Po(f.value)?ar.createPortal(c.children,f.valueNode):null]})},"SelectItemText")),FD="SelectItemIndicator",qD=E.forwardRef(rt(function(n,i){const{__scopeSelect:l,...o}=n;return G2(FD,l).isSelected?x.jsx(Ft.span,{"aria-hidden":!0,...o,ref:i}):null},"SelectItemIndicator")),YD="SelectBubbleInput",XD=E.forwardRef(rt(function({__scopeSelect:n,...i},l){const o=_i(YD,n),{value:u,onValueChange:c,required:f,disabled:d,name:h,autoComplete:b,form:m}=o,{nativeOptions:y,nativeSelectKey:v}=o,k=E.useRef(null),T=At(l,k),C=u??"",w=X2(C),A=Array.from(y).some(D=>(D.props.value??"")==="");return E.useEffect(()=>{const D=k.current;if(!D)return;const R=window.HTMLSelectElement.prototype,N=Object.getOwnPropertyDescriptor(R,"value").set;if(w!==C&&N){const M=new Event("change",{bubbles:!0});N.call(D,C),D.dispatchEvent(M)}},[w,C]),x.jsxs(Ft.select,{"aria-hidden":!0,required:f,tabIndex:-1,name:h,autoComplete:b,disabled:d,form:m,onChange:D=>c(D.target.value),...i,style:{...hD,...i.style},ref:T,defaultValue:C,children:[Po(u)&&!A?x.jsx("option",{value:""}):null,Array.from(y)]},v)},"SelectBubbleInput"));function Q2(e){return typeof e=="function"}rt(Q2,"isFunction");function Po(e){return e===""||e===void 0}rt(Po,"shouldShowPlaceholder");function Qm(e){const n=wr(e),i=E.useRef(""),l=E.useRef(0),o=E.useCallback(c=>{const f=i.current+c;n(f),rt((function d(h){i.current=h,window.clearTimeout(l.current),h!==""&&(l.current=window.setTimeout(()=>d(""),1e3))}),"updateSearch")(f)},[n]),u=E.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,o,u]}rt(Qm,"useTypeaheadSearch");function Km(e,n,i){const o=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,u=i?e.indexOf(i):-1;let c=K2(e,Math.max(u,0));o.length===1&&(c=c.filter(h=>h!==i));const d=c.find(h=>h.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==i?d:void 0}rt(Km,"findNextItem");function K2(e,n){return e.map((i,l)=>e[(n+l)%e.length])}rt(K2,"wrapArray");function Wh({value:e,onValueChange:n,options:i,placeholder:l,ariaLabel:o,emptyOption:u,statusMarker:c=!1}){const f="__none__",d=e===""?f:e;return x.jsxs(SD,{value:d,onValueChange:h=>n(h===f?"":h),children:[x.jsxs(CD,{"aria-label":o,className:"flex h-9 w-full items-center justify-between gap-2 rounded border border-sb-iron bg-sb-surface2 px-3 text-left text-[13px] text-sb-frosted outline-none transition-colors hover:border-sb-silver focus:border-sb-silver data-placeholder:text-sb-silver",children:[x.jsxs("span",{className:"flex min-w-0 items-center gap-2 truncate",children:[c&&d!==f?x.jsx("span",{className:"h-2.5 w-2.5 shrink-0 bg-sb-frosted","aria-hidden":"true"}):null,x.jsx(kD,{placeholder:l})]}),x.jsx(TD,{className:"shrink-0 text-sb-silver",children:x.jsx(ko,{className:"h-2.5 w-2.5 rotate-90"})})]}),x.jsx(RD,{children:x.jsx(OD,{className:"z-50 overflow-hidden rounded border border-sb-iron bg-sb-surface text-[13px] text-sb-frosted",position:"popper",sideOffset:4,children:x.jsxs(HD,{className:"p-1",children:[u?x.jsx(qv,{value:f,children:u.label}):null,i.map(h=>x.jsx(qv,{value:h.value,children:h.label},h.value))]})})})]})}function qv({value:e,children:n}){return x.jsxs(VD,{className:"relative flex h-8 cursor-default select-none items-center rounded px-2 pr-8 text-sb-silver outline-none transition-colors data-highlighted:bg-sb-surface2 data-highlighted:text-sb-frosted data-[state=checked]:text-sb-frosted",value:e,children:[x.jsx(PD,{children:n}),x.jsx(qD,{className:"absolute right-2 inline-flex items-center",children:x.jsx(um,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})]})}function em(e){(e.ctrlKey||e.metaKey)&&e.key==="Enter"&&(e.preventDefault(),e.currentTarget.requestSubmit())}function $D(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("field-sizing","content")}function ZD(e){if($D()){e.style.height="";return}const n=[];for(let l=e.parentElement;l;l=l.parentElement)n.push({element:l,left:l.scrollLeft,top:l.scrollTop});const i={left:window.scrollX,top:window.scrollY};e.style.height="auto",e.style.height=`${e.scrollHeight}px`;for(const{element:l,left:o,top:u}of n)l.scrollLeft=o,l.scrollTop=u;(i.left!==0||i.top!==0)&&window.scrollTo(i.left,i.top)}function GD(e,n){const i=E.useRef(null);return E.useLayoutEffect(()=>{const l=i.current;n&&(l==null?void 0:l.value)===e&&ZD(l)},[n,e]),i}const J2=E.createContext(null);function W2(e){const n=E.useContext(J2),i=E.useRef(e);E.useLayoutEffect(()=>{i.current=e}),E.useEffect(()=>{const l=o=>{if(o.defaultPrevented||QD(o.target))return;const u=n==null?void 0:n.current;u&&!KD(u)||i.current(o)};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n])}function QD(e){return e instanceof HTMLElement?!!e.closest('input, textarea, select, [contenteditable="true"]'):!1}function KD(e){if(!e.isConnected)return!1;for(let n=e;n;n=n.parentElement)if(n.hidden||getComputedStyle(n).display==="none")return!1;return!0}function Jm(e){const[n,i]=E.useState({base:e,value:e});let{base:l,value:o}=n;return e!==l&&(o===l||o===e)&&(l=e,o=e,i({base:l,value:o})),{value:o,setValue:u=>i(c=>({...c,value:u})),dirty:o!==l,changedOnDisk:e!==l,reset:(u=e)=>i({base:u,value:u}),keepDraft:()=>i(u=>({...u,base:e}))}}function tm(e,n){const i=E.useId(),l=pe(o=>o.setDraftDirty);E.useEffect(()=>{l(i,n?e:null)},[i,e,n,l]),E.useEffect(()=>()=>l(i,null),[i,l])}function JD({slug:e}){var X;const n=pe(U=>U.config),i=pe(U=>U.tasks.find(q=>q.slug===e)),l=pe(U=>U.selectTask),o=pe(U=>U.followTaskLink),u=pe(U=>U.stepToTask),c=pe(U=>U.goBack),f=pe(U=>{const q=hy(U);return q<0?void 0:U.tasks.find(J=>J.slug===U.taskTrail[q])}),d=pe(U=>U.updateTask),h=pe(U=>U.addComment),b=pe(U=>U.editComment),m=pe(U=>U.deleteComment),y=pe(U=>U.archiveTask),v=pe(U=>U.deleteTask),k=pe(U=>U.readOnly),T=pe(U=>U.tasks),C=pe(U=>U.warnings),w=pe(U=>U.archivedTasks),A=pe(U=>U.archivedSlugs),[D,R]=E.useState(!1),_=E.useMemo(()=>T.flatMap(U=>U.frontmatter.tags??[]),[T]),N=E.useMemo(()=>i?T.filter(U=>{var q;return U.slug!==i.slug&&((q=U.frontmatter.depends_on)==null?void 0:q.includes(i.slug))}):[],[i,T]),M=E.useMemo(()=>new Set(A),[A]),B=E.useMemo(()=>i?mw({tasks:T,archivedTasks:w??[],archivedSlugs:A})(i):[],[A,w,i,T]),F=E.useMemo(()=>[...T,...w??[]],[w,T]),L=E.useMemo(()=>{var Z,te;if(!i||!n)return null;const U=new Set(n.columns.map(se=>se.id)),q=U.has(i.frontmatter.status)?i.frontmatter.status:rl,J=Au(T,n.layout,q,U,n.done_column),H=J.findIndex(se=>se.slug===i.slug);return J.length<=1||H===-1?null:{currentIndex:H,total:J.length,previousSlug:((Z=J[H-1])==null?void 0:Z.slug)??null,nextSlug:((te=J[H+1])==null?void 0:te.slug)??null}},[n,i,T]);if(W2(U=>{if(!L||U.altKey||U.ctrlKey||U.metaKey)return;const q=U.key.toLowerCase();(q==="k"||U.key==="ArrowUp")&&L.previousSlug&&(U.preventDefault(),u(L.previousSlug)),(q==="j"||U.key==="ArrowDown")&&L.nextSlug&&(U.preventDefault(),u(L.nextSlug))}),!i||!n)return x.jsxs("div",{className:"rounded-md border border-sb-iron bg-sb-surface p-6",children:[x.jsx("button",{className:"font-mono text-[12px] text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:()=>l(null),children:"Tasks"}),x.jsx("p",{className:"mt-4 font-mono text-[12px] text-sb-silver",children:"Task no longer exists."})]});const P=((X=n.columns.find(U=>U.id===i.frontmatter.status))==null?void 0:X.label)??i.frontmatter.status;return x.jsxs("section",{className:"mx-auto max-w-7xl",children:[x.jsxs("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,7fr)_minmax(18rem,3fr)]",children:[x.jsxs("article",{className:"min-w-0 rounded-md border border-sb-iron bg-sb-surface",children:[x.jsxs("div",{className:"border-b border-sb-iron p-5",children:[x.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[x.jsxs("button",{className:"inline-flex h-8 items-center gap-2 rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",type:"button",onClick:()=>l(null),children:[x.jsx(Sb,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Back to board"]}),f?x.jsxs("button",{className:"inline-flex h-8 min-w-0 max-w-full items-center gap-2 rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",type:"button",onClick:c,children:[x.jsx(Sb,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0"}),x.jsxs("span",{className:"truncate",children:["Back to ",f.frontmatter.title]})]}):null,L?x.jsx(WD,{currentIndex:L.currentIndex,total:L.total,previousSlug:L.previousSlug,nextSlug:L.nextSlug,onSelect:u}):null]}),x.jsx(iN,{readOnly:k,value:i.frontmatter.title,onChange:U=>void d(i.slug,{title:U})},i.slug),x.jsx(eN,{slug:i.slug})]}),x.jsx(tN,{readOnly:k,body:i.body,onSave:U=>void d(i.slug,{},U)},`body:${i.slug}`),x.jsx(nN,{readOnly:k,comments:i.comments??[],unreadableUpdates:i.unreadableUpdates,onAddComment:U=>h(i.slug,U),onEditComment:(U,q)=>b(i.slug,U,q),onDeleteComment:U=>m(i.slug,U)},`updates:${i.slug}`)]}),x.jsx("aside",{className:"h-fit rounded-md border border-sb-iron bg-sb-surface p-4 lg:sticky lg:top-[calc(var(--sb-sticky-top,0px)+var(--sb-header-h)+1.25rem)] lg:max-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] lg:self-start lg:overflow-y-auto",children:x.jsxs("div",{className:"space-y-4",children:[x.jsx(Ro,{label:"Status",children:x.jsx(Xv,{readOnly:k,value:i.frontmatter.status,ariaLabel:"Status",statusMarker:!0,options:n.columns.map(U=>({value:U.id,label:U.label})),readValue:P,onValueChange:U=>void d(i.slug,{status:U})})}),x.jsx(lN,{readOnly:k,flag:Zu(i),raised:i.frontmatter.status!==n.done_column,onChange:U=>void d(i.slug,{flag:U})},`flag:${i.slug}`),x.jsx(Ro,{label:"Priority",children:x.jsx(Xv,{readOnly:k,value:i.frontmatter.priority??"",ariaLabel:"Priority",emptyOption:{label:"None"},options:n.priority.values.map(U=>({value:U,label:U})),readValue:i.frontmatter.priority??"None",onValueChange:U=>void d(i.slug,{priority:U||void 0})})}),x.jsx(aN,{label:"Assignee",readOnly:k,value:i.frontmatter.assignee??"",readValue:i.frontmatter.assignee??"Unassigned",onChange:U=>void d(i.slug,{assignee:U||void 0})}),x.jsx(zT,{readOnly:k,tags:i.frontmatter.tags??[],suggestions:_,onChange:U=>void d(i.slug,{tags:U})}),x.jsx(BT,{readOnly:k,currentTaskSlug:i.slug,dependencies:i.frontmatter.depends_on??[],tasks:T,doneColumn:n.done_column,warnings:C.filter(U=>U.slug===i.slug&&U.field==="depends_on").map(U=>U.message),onChange:U=>void d(i.slug,{depends_on:U})}),x.jsx(HT,{readOnly:k,currentTaskSlug:i.slug,related:Eh(i),entries:B,tasks:F,archivedSlugs:M,columns:n.columns,warnings:C.filter(U=>U.slug===i.slug&&U.field==="related").map(U=>U.message),onChange:U=>void d(i.slug,{related:U}),onOpenTask:o}),x.jsxs("dl",{className:"space-y-1.5 border-t border-sb-iron pt-4 font-mono text-[11px] text-sb-silver",children:[x.jsxs("div",{className:"flex justify-between gap-3",children:[x.jsx("dt",{children:"created"}),x.jsx("dd",{className:"text-right text-sb-frosted",children:Ru(i.frontmatter.created)})]}),x.jsxs("div",{className:"flex justify-between gap-3",children:[x.jsx("dt",{children:"updated"}),x.jsx("dd",{className:"text-right text-sb-frosted",children:Ru(i.frontmatter.updated)})]})]}),k?null:x.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[x.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>{if(i.frontmatter.status!==n.done_column&&N.length>0){R(!0);return}y(i.slug)},children:[x.jsx(sa,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive task"]}),x.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>{window.confirm("Delete this task?")&&v(i.slug)},children:[x.jsx(Ch,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Delete task"]})]})]})})]}),k?null:x.jsx($C,{open:D,taskTitle:i.frontmatter.title,dependents:N,onOpenChange:R,onConfirm:()=>void y(i.slug,!0)})]})}function WD({currentIndex:e,total:n,previousSlug:i,nextSlug:l,onSelect:o}){return x.jsxs("div",{className:"ml-auto inline-flex items-center gap-2",children:[x.jsxs("span",{className:"min-w-10 text-right font-mono text-[11px] tabular-nums text-sb-silver",children:[e+1,"/",n]}),x.jsxs("div",{className:"inline-flex overflow-hidden rounded border border-sb-iron",children:[x.jsx("button",{className:"inline-flex h-8 w-8 items-center justify-center text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",type:"button","aria-label":"Previous task in column",disabled:!i,onClick:()=>{i&&o(i)},children:x.jsx(ko,{className:"h-2.5 w-2.5 -rotate-90"})}),x.jsx("button",{className:"inline-flex h-8 w-8 items-center justify-center border-l border-sb-iron text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",type:"button","aria-label":"Next task in column",disabled:!l,onClick:()=>{l&&o(l)},children:x.jsx(ko,{className:"h-2.5 w-2.5 rotate-90"})})]})]})}function eN({slug:e}){const[n,i]=E.useState(!1),l=E.useRef(null);E.useEffect(()=>()=>{l.current!==null&&window.clearTimeout(l.current)},[]);const o=async()=>{var u;if((u=navigator.clipboard)!=null&&u.writeText)try{await navigator.clipboard.writeText(e),i(!0),l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{i(!1),l.current=null},1e3)}catch{}};return x.jsxs("button",{className:"group mt-2 inline-flex max-w-full cursor-copy items-center gap-1.5 rounded border border-transparent py-0.5 pr-2 font-mono text-[11px] text-sb-silver transition-colors hover:border-sb-iron hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",type:"button","aria-label":n?"Copied task slug":`Copy task slug ${e}`,"aria-live":"polite",onClick:()=>void o(),children:[n?x.jsx(um,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-sb-frosted"}):x.jsx(nw,{"aria-hidden":"true",className:"h-3.5 w-3.5 opacity-60 transition-opacity group-hover:opacity-100"}),x.jsx("span",{className:"truncate",children:n?"Copied":e})]})}function tN({readOnly:e,body:n,onSave:i}){const[l,o]=E.useState(!1),{value:u,setValue:c,dirty:f,changedOnDisk:d,reset:h,keepDraft:b}=Jm(n),m=l&&!e;tm("description",m&&f);const y=GD(u,m),v=()=>{i(u),o(!1)},k=T=>{if(T.key!=="Tab")return;T.preventDefault();const C=T.currentTarget,w=C.selectionStart,A=C.selectionEnd,D=`${u.slice(0,w)} ${u.slice(A)}`;c(D),window.requestAnimationFrame(()=>{C.selectionStart=w+2,C.selectionEnd=w+2})};return x.jsxs("div",{className:"p-5",children:[x.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[x.jsx("h2",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-sb-silver",children:"Description"}),e?null:x.jsxs("button",{className:"inline-flex h-8 items-center gap-2 rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted",type:"button",onClick:()=>l?v():o(!0),children:[l?x.jsx(W4,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):x.jsx(yy,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),l?"Done":"Edit"]})]}),m&&d?x.jsx(Wm,{message:"The description changed on disk since you started editing. Saving replaces that change with your text.",loadLabel:"Load new version",onLoad:()=>h(),onKeep:b}):null,m?x.jsx("textarea",{"aria-label":"Task description",className:"sb-editor min-h-80 w-full resize-none bg-transparent font-sans text-[13px] leading-relaxed text-sb-silver outline-none field-sizing-content placeholder:text-sb-silver",spellCheck:!1,ref:y,value:u,onChange:T=>c(T.target.value),onKeyDown:k}):x.jsx("div",{className:"sb-markdown max-w-none",children:n.trim()?x.jsx(S2,{children:n}):x.jsx("p",{className:"font-mono text-[12px] text-sb-silver",children:"No description yet."})})]})}function nN({readOnly:e,comments:n,unreadableUpdates:i,onAddComment:l,onEditComment:o,onDeleteComment:u}){var P;const[c,f]=E.useState(""),[d,h]=E.useState(!1),[b,m]=E.useState(null),[y,v]=E.useState(!1),[k,T]=E.useState(null),C=c.trim().length>0&&!d,w=b?Yv(n,b):-1,A=Jm(w===-1?"":((P=n[w])==null?void 0:P.text)??""),D=b!==null&&w===-1;D&&!A.dirty&&m(null);const R=k?Yv(n,k):-1;if(tm("new-update",!e&&c.trim()!==""),tm("edited-update",!e&&A.dirty),n.length===0&&e&&!i)return null;const _=async X=>{if(X.preventDefault(),!C)return;const U=c;f(""),h(!0),await l(U)||f(U),h(!1)},N=X=>{var U;T(null),m(mh(n,X)),A.reset(((U=n[X])==null?void 0:U.text)??"")},M=()=>{m(null),A.reset("")},B=async X=>{if(X.preventDefault(),w===-1||!A.value.trim()||y)return;v(!0),await o(w,A.value)&&M(),v(!1)},F=async X=>{T(null),await u(X)},L=X=>x.jsxs("form",{className:"mt-2",onKeyDown:em,onSubmit:U=>void B(U),children:[D?x.jsx("p",{className:"mb-2 font-mono text-[11px] leading-5 text-sb-warning",role:"alert",children:"The update you were editing was deleted on disk, so this text can no longer be saved to it. Copy anything you want to keep before you discard it."}):A.changedOnDisk&&!y?x.jsx(Wm,{message:"This update changed on disk since you started editing. Saving replaces that change with your text.",loadLabel:"Load new version",onLoad:()=>A.reset(),onKeep:A.keepDraft}):null,x.jsx("textarea",{"aria-label":X,className:"min-h-24 w-full resize-y rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-sans text-[13px] leading-relaxed text-sb-frosted outline-none transition-colors hover:border-sb-ironlit focus-visible:border-sb-accent disabled:cursor-not-allowed disabled:opacity-40",disabled:y,value:A.value,onChange:U=>A.setValue(U.target.value)}),x.jsxs("div",{className:"mt-2 flex justify-end gap-2",children:[x.jsx("button",{className:"inline-flex min-h-9 items-center rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-ironlit hover:bg-sb-surface2 disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:y,onClick:M,children:D?"Discard":"Cancel"}),D?null:x.jsxs("button",{className:"inline-flex min-h-9 items-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",type:"submit",disabled:!A.value.trim()||y,children:[x.jsx(um,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),y?"Saving…":"Save update"]})]})]});return x.jsxs("section",{className:"border-t border-sb-divider p-5","aria-label":"Task Updates",children:[x.jsxs("div",{className:"mb-4 flex items-baseline gap-3",children:[x.jsx("h2",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-sb-silver",children:"Task Updates"}),x.jsx("span",{className:"h-px flex-1 bg-sb-divider","aria-hidden":"true"}),x.jsx("span",{className:`font-mono text-[11px] ${i?"text-sb-warning":"text-sb-silver"}`,children:i?"unreadable":n.length})]}),D?x.jsx("div",{className:"mb-5",children:L("Deleted task update text")}):null,i?x.jsxs("div",{className:"grid gap-3",children:[x.jsxs("p",{className:"font-mono text-[11px] leading-5 text-sb-warning",role:"alert",children:["This section could not be read: ",i.reason," It is kept exactly as written and is not part of the description. Fix it in the task file — updates cannot be added, edited, or deleted until it parses."]}),x.jsx("pre",{className:"overflow-x-auto rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] leading-relaxed text-sb-silver",children:i.text})]}):n.length>0?x.jsx("ol",{className:"grid gap-5",children:n.map((X,U)=>x.jsxs("li",{className:"border-t border-sb-divider pt-5 first:border-t-0 first:pt-0",children:[x.jsxs("div",{className:"flex min-h-9 items-center justify-between gap-3",children:[x.jsx("time",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-frosted",dateTime:X.timestamp,title:X.timestamp,children:Cy(X.timestamp)}),e||w===U?null:x.jsx("div",{className:"flex shrink-0 items-center gap-2",children:R===U?x.jsxs(x.Fragment,{children:[x.jsx("button",{className:"inline-flex min-h-9 items-center rounded px-2 text-[13px] font-medium text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:()=>T(null),children:"Cancel"}),x.jsxs("button",{"aria-label":`Confirm delete task update ${U+1}`,className:"inline-flex min-h-9 items-center gap-2 rounded border border-sb-danger px-2 text-[13px] font-medium text-sb-danger transition-colors hover:bg-sb-danger/10",type:"button",onClick:()=>void F(U),children:[x.jsx(Ch,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Delete"]})]}):x.jsxs(x.Fragment,{children:[x.jsx("button",{"aria-label":`Edit task update ${U+1}`,className:"inline-flex h-9 w-9 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>N(U),children:x.jsx(yy,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),x.jsx("button",{"aria-label":`Delete task update ${U+1}`,className:"inline-flex h-9 w-9 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-danger",type:"button",onClick:()=>{M(),T(mh(n,U))},children:x.jsx(Ch,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})]})})]}),w===U?L(`Task update ${U+1} text`):x.jsx("div",{className:"sb-markdown mt-2 max-w-none",children:x.jsx(S2,{children:X.text})})]},rN(mh(n,U))))}):x.jsx("p",{className:"font-mono text-[12px] text-sb-silver",children:"No task updates yet."}),e||i?null:x.jsxs("form",{className:"mt-5 border-t border-sb-iron pt-5",onKeyDown:em,onSubmit:X=>void _(X),children:[x.jsx("label",{className:"mb-2 block font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",htmlFor:"task-update-text",children:"Add a task update"}),x.jsx("textarea",{id:"task-update-text","aria-label":"Task update text",className:"min-h-20 w-full resize-y rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-sans text-[13px] leading-relaxed text-sb-frosted outline-none transition-colors placeholder:text-sb-silver/60 hover:border-sb-ironlit focus-visible:border-sb-accent disabled:cursor-not-allowed disabled:opacity-40",disabled:d,placeholder:"A decision, scope change, or why something changed",value:c,onChange:X=>f(X.target.value)}),x.jsxs("div",{className:"mt-2 flex flex-wrap items-center justify-between gap-3",children:[x.jsx("p",{className:"max-w-xl text-[13px] text-sb-silver",children:"Time-stamped by ShipBench. Keep timeless details in the description. Ctrl+Enter (⌘+Enter on Mac) adds it."}),x.jsxs("button",{className:"inline-flex h-9 items-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",type:"submit",disabled:!C,children:[x.jsx(Lo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),d?"Adding…":"Add task update"]})]})]})]})}function mh(e,n){var o;const i=((o=e[n])==null?void 0:o.timestamp)??"",l=e.slice(0,n).filter(u=>u.timestamp===i).length;return{timestamp:i,occurrence:l}}function Yv(e,n){let i=0;return e.findIndex(l=>l.timestamp===n.timestamp&&i++===n.occurrence)}function rN(e){return`${e.timestamp}#${e.occurrence}`}function Xv({readOnly:e,value:n,ariaLabel:i,options:l,emptyOption:o,statusMarker:u,readValue:c,onValueChange:f}){return e?x.jsx(e5,{children:c}):x.jsx(Wh,{value:n,ariaLabel:i,options:l,emptyOption:o,statusMarker:u,onValueChange:f})}function e5({children:e}){return x.jsx("span",{className:"min-h-9 rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] text-sb-frosted",children:e})}function Ro({label:e,children:n}){return x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:e}),n]})}function iN({readOnly:e,value:n,onChange:i}){const{value:l,setValue:o,changedOnDisk:u,reset:c,keepDraft:f}=Jm(n),d=E.useRef(null);return e?x.jsx("h1",{className:"font-sans text-xl font-semibold text-sb-frosted",children:n}):x.jsxs(x.Fragment,{children:[x.jsx("input",{className:"sb-editor w-full bg-transparent font-sans text-xl font-semibold text-sb-frosted outline-none placeholder:text-sb-silver","aria-label":"Task title",value:l,onBlur:h=>{var m;if(h.relatedTarget instanceof Node&&((m=d.current)!=null&&m.contains(h.relatedTarget)))return;const b=l.trim();b&&l!==n&&(i(b),c(b))},onChange:h=>o(h.target.value)}),u?x.jsx(Wm,{ref:d,className:"mt-3",message:`The title changed on disk to “${n}” while you were typing. Leaving the field saves yours.`,loadLabel:"Use new title",onLoad:()=>c(),onKeep:f}):null]})}function Wm({ref:e,className:n="mb-3",message:i,loadLabel:l,onLoad:o,onKeep:u}){const c="font-mono text-[12px] text-sb-silver transition-colors hover:text-sb-frosted focus-visible:text-sb-frosted",f=b=>b.preventDefault(),d=E.useRef(null),h=b=>()=>{var m;b(),(m=d.current)==null||m.focus()};return x.jsxs("div",{ref:e,role:"alert",onFocus:b=>{const m=b.relatedTarget;m instanceof HTMLElement&&!b.currentTarget.contains(m)&&(d.current=m)},className:`${n} flex flex-wrap items-start gap-x-3 gap-y-2 rounded-md border border-sb-iron border-l-2 border-l-sb-warning bg-sb-surface2 px-3.5 py-3`,children:[x.jsx(Qr,{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-sb-warning"}),x.jsx("p",{className:"min-w-0 flex-1 font-mono text-[12px] leading-5 text-sb-frosted",children:i}),x.jsxs("div",{className:"flex shrink-0 gap-3",children:[x.jsx("button",{className:c,type:"button",onMouseDown:f,onClick:h(o),children:l}),x.jsx("button",{className:c,type:"button",onMouseDown:f,onClick:h(u),children:"Keep mine"})]})]})}function lN({readOnly:e,flag:n,raised:i,onChange:l}){const o=(n==null?void 0:n.reason)??"",[u,c]=E.useState(o),f=E.useRef(null),d=E.useRef(!1),h=E.useId();if(E.useEffect(()=>{c(o)},[o]),E.useEffect(()=>{var m;n&&d.current&&(d.current=!1,(m=f.current)==null||m.focus())},[n]),e)return n?x.jsx(Ro,{label:"Flag",children:x.jsx($v,{raised:i,children:x.jsx("span",{className:"min-w-0 break-words px-3 py-2 text-[13px] text-sb-frosted",children:n.reason??"Flagged"})})}):null;if(!n)return x.jsx(Ro,{label:"Flag",children:x.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>{d.current=!0,l(!0)},children:[x.jsx(Qr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Flag for attention"]})});const b=()=>{const m=u.trim();m!==o&&l(m||!0)};return x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("label",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",htmlFor:h,children:"Flag"}),x.jsxs($v,{raised:i,children:[x.jsx("input",{ref:f,id:h,className:"h-9 min-w-0 flex-1 bg-transparent px-3 text-[13px] text-sb-frosted outline-none placeholder:text-sb-silver",placeholder:"Reason (optional)",value:u,onBlur:b,onChange:m=>c(m.target.value),onKeyDown:m=>{m.key==="Enter"&&m.currentTarget.blur(),m.key==="Escape"&&(m.stopPropagation(),c(o))}}),x.jsx("button",{className:"shrink-0 px-3 font-mono text-[12px] text-sb-silver transition-colors hover:text-sb-frosted focus-visible:text-sb-frosted",type:"button",onMouseDown:m=>m.preventDefault(),onClick:()=>l(void 0),children:"Clear"})]})]})}function $v({raised:e,children:n}){return x.jsxs("div",{className:`flex min-h-9 items-center rounded border border-sb-iron bg-sb-surface2 transition-colors focus-within:border-sb-silver ${e?"border-l-2 border-l-sb-warning focus-within:border-l-sb-warning":""}`,children:[x.jsx(Qr,{"aria-hidden":"true",className:`ml-3 h-3.5 w-3.5 shrink-0 ${e?"text-sb-warning":"text-sb-silver"}`}),n]})}function aN({label:e,readOnly:n,value:i,readValue:l,onChange:o}){const[u,c]=E.useState(i),f=E.useId();return E.useEffect(()=>{c(i)},[i]),n?x.jsx(Ro,{label:e,children:x.jsx(e5,{children:l})}):x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("label",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",htmlFor:f,children:e}),x.jsx("input",{id:f,className:"h-9 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors hover:border-sb-silver focus:border-sb-silver",value:u,onBlur:()=>o(u),onChange:d=>c(d.target.value)})]})}function oN(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return E.useMemo(()=>l=>{n.forEach(o=>o(l))},n)}const hc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pa(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function ep(e){return"nodeType"in e}function mn(e){var n,i;return e?pa(e)?e:ep(e)&&(n=(i=e.ownerDocument)==null?void 0:i.defaultView)!=null?n:window:window}function tp(e){const{Document:n}=mn(e);return e instanceof n}function Fo(e){return pa(e)?!1:e instanceof mn(e).HTMLElement}function t5(e){return e instanceof mn(e).SVGElement}function ga(e){return e?pa(e)?e.document:ep(e)?tp(e)?e:Fo(e)||t5(e)?e.ownerDocument:document:document:document}const sr=hc?E.useLayoutEffect:E.useEffect;function mc(e){const n=E.useRef(e);return sr(()=>{n.current=e}),E.useCallback(function(){for(var i=arguments.length,l=new Array(i),o=0;o<i;o++)l[o]=arguments[o];return n.current==null?void 0:n.current(...l)},[])}function sN(){const e=E.useRef(null),n=E.useCallback((l,o)=>{e.current=setInterval(l,o)},[]),i=E.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,i]}function Oo(e,n){n===void 0&&(n=[e]);const i=E.useRef(e);return sr(()=>{i.current!==e&&(i.current=e)},n),i}function qo(e,n){const i=E.useRef();return E.useMemo(()=>{const l=e(i.current);return i.current=l,l},[...n])}function Vu(e){const n=mc(e),i=E.useRef(null),l=E.useCallback(o=>{o!==i.current&&(n==null||n(o,i.current)),i.current=o},[]);return[i,l]}function Pu(e){const n=E.useRef();return E.useEffect(()=>{n.current=e},[e]),n.current}let ph={};function Yo(e,n){return E.useMemo(()=>{if(n)return n;const i=ph[e]==null?0:ph[e]+1;return ph[e]=i,e+"-"+i},[e,n])}function n5(e){return function(n){for(var i=arguments.length,l=new Array(i>1?i-1:0),o=1;o<i;o++)l[o-1]=arguments[o];return l.reduce((u,c)=>{const f=Object.entries(c);for(const[d,h]of f){const b=u[d];b!=null&&(u[d]=b+e*h)}return u},{...n})}}const ia=n5(1),Mo=n5(-1);function uN(e){return"clientX"in e&&"clientY"in e}function pc(e){if(!e)return!1;const{KeyboardEvent:n}=mn(e.target);return n&&e instanceof n}function cN(e){if(!e)return!1;const{TouchEvent:n}=mn(e.target);return n&&e instanceof n}function Fu(e){if(cN(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:i}=e.touches[0];return{x:n,y:i}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:i}=e.changedTouches[0];return{x:n,y:i}}}return uN(e)?{x:e.clientX,y:e.clientY}:null}const Oi=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:i}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(i?Math.round(i):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:i}=e;return"scaleX("+n+") scaleY("+i+")"}},Transform:{toString(e){if(e)return[Oi.Translate.toString(e),Oi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:i,easing:l}=e;return n+" "+i+"ms "+l}}}),Zv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fN(e){return e.matches(Zv)?e:e.querySelector(Zv)}const dN={display:"none"};function hN(e){let{id:n,value:i}=e;return ae.createElement("div",{id:n,style:dN},i)}function mN(e){let{id:n,announcement:i,ariaLiveType:l="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ae.createElement("div",{id:n,style:o,role:"status","aria-live":l,"aria-atomic":!0},i)}function pN(){const[e,n]=E.useState("");return{announce:E.useCallback(l=>{l!=null&&n(l)},[]),announcement:e}}const r5=E.createContext(null);function gN(e){const n=E.useContext(r5);E.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function bN(){const[e]=E.useState(()=>new Set),n=E.useCallback(l=>(e.add(l),()=>e.delete(l)),[e]);return[E.useCallback(l=>{let{type:o,event:u}=l;e.forEach(c=>{var f;return(f=c[o])==null?void 0:f.call(c,u)})},[e]),n]}const vN={draggable:`
119
+ To pick up a draggable item, press the space bar.
120
+ While dragging, use the arrow keys to move the item.
121
+ Press space again to drop the item in its new position, or press escape to cancel.
122
+ `},yN={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:i}=e;return i?"Draggable item "+n.id+" was moved over droppable area "+i.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:i}=e;return i?"Draggable item "+n.id+" was dropped over droppable area "+i.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function xN(e){let{announcements:n=yN,container:i,hiddenTextDescribedById:l,screenReaderInstructions:o=vN}=e;const{announce:u,announcement:c}=pN(),f=Yo("DndLiveRegion"),[d,h]=E.useState(!1);if(E.useEffect(()=>{h(!0)},[]),gN(E.useMemo(()=>({onDragStart(m){let{active:y}=m;u(n.onDragStart({active:y}))},onDragMove(m){let{active:y,over:v}=m;n.onDragMove&&u(n.onDragMove({active:y,over:v}))},onDragOver(m){let{active:y,over:v}=m;u(n.onDragOver({active:y,over:v}))},onDragEnd(m){let{active:y,over:v}=m;u(n.onDragEnd({active:y,over:v}))},onDragCancel(m){let{active:y,over:v}=m;u(n.onDragCancel({active:y,over:v}))}}),[u,n])),!d)return null;const b=ae.createElement(ae.Fragment,null,ae.createElement(hN,{id:l,value:o.draggable}),ae.createElement(mN,{id:f,announcement:c}));return i?ar.createPortal(b,i):b}var Pt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pt||(Pt={}));function qu(){}function Gv(e,n){return E.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function SN(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return E.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const ur=Object.freeze({x:0,y:0});function i5(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function wN(e,n){const i=Fu(e);if(!i)return"0 0";const l={x:(i.x-n.left)/n.width*100,y:(i.y-n.top)/n.height*100};return l.x+"% "+l.y+"%"}function l5(e,n){let{data:{value:i}}=e,{data:{value:l}}=n;return i-l}function CN(e,n){let{data:{value:i}}=e,{data:{value:l}}=n;return l-i}function nm(e){let{left:n,top:i,height:l,width:o}=e;return[{x:n,y:i},{x:n+o,y:i},{x:n,y:i+l},{x:n+o,y:i+l}]}function a5(e,n){if(!e||e.length===0)return null;const[i]=e;return i[n]}const EN=e=>{let{collisionRect:n,droppableRects:i,droppableContainers:l}=e;const o=nm(n),u=[];for(const c of l){const{id:f}=c,d=i.get(f);if(d){const h=nm(d),b=o.reduce((y,v,k)=>y+i5(h[k],v),0),m=Number((b/4).toFixed(4));u.push({id:f,data:{droppableContainer:c,value:m}})}}return u.sort(l5)};function kN(e,n){const i=Math.max(n.top,e.top),l=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),u=Math.min(n.top+n.height,e.top+e.height),c=o-l,f=u-i;if(l<o&&i<u){const d=n.width*n.height,h=e.width*e.height,b=c*f,m=b/(d+h-b);return Number(m.toFixed(4))}return 0}const TN=e=>{let{collisionRect:n,droppableRects:i,droppableContainers:l}=e;const o=[];for(const u of l){const{id:c}=u,f=i.get(c);if(f){const d=kN(f,n);d>0&&o.push({id:c,data:{droppableContainer:u,value:d}})}}return o.sort(CN)};function AN(e,n){const{top:i,left:l,bottom:o,right:u}=n;return i<=e.y&&e.y<=o&&l<=e.x&&e.x<=u}const DN=e=>{let{droppableContainers:n,droppableRects:i,pointerCoordinates:l}=e;if(!l)return[];const o=[];for(const u of n){const{id:c}=u,f=i.get(c);if(f&&AN(l,f)){const h=nm(f).reduce((m,y)=>m+i5(l,y),0),b=Number((h/4).toFixed(4));o.push({id:c,data:{droppableContainer:u,value:b}})}}return o.sort(l5)};function NN(e,n,i){return{...e,scaleX:n&&i?n.width/i.width:1,scaleY:n&&i?n.height/i.height:1}}function o5(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:ur}function RN(e){return function(i){for(var l=arguments.length,o=new Array(l>1?l-1:0),u=1;u<l;u++)o[u-1]=arguments[u];return o.reduce((c,f)=>({...c,top:c.top+e*f.y,bottom:c.bottom+e*f.y,left:c.left+e*f.x,right:c.right+e*f.x}),{...i})}}const ON=RN(1);function s5(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function MN(e,n,i){const l=s5(n);if(!l)return e;const{scaleX:o,scaleY:u,x:c,y:f}=l,d=e.left-c-(1-o)*parseFloat(i),h=e.top-f-(1-u)*parseFloat(i.slice(i.indexOf(" ")+1)),b=o?e.width/o:e.width,m=u?e.height/u:e.height;return{width:b,height:m,top:h,right:d+b,bottom:h+m,left:d}}const jN={ignoreTransform:!1};function ba(e,n){n===void 0&&(n=jN);let i=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:h,transformOrigin:b}=mn(e).getComputedStyle(e);h&&(i=MN(i,h,b))}const{top:l,left:o,width:u,height:c,bottom:f,right:d}=i;return{top:l,left:o,width:u,height:c,bottom:f,right:d}}function Qv(e){return ba(e,{ignoreTransform:!0})}function _N(e){const n=e.innerWidth,i=e.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}}function LN(e,n){return n===void 0&&(n=mn(e).getComputedStyle(e)),n.position==="fixed"}function zN(e,n){n===void 0&&(n=mn(e).getComputedStyle(e));const i=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const u=n[o];return typeof u=="string"?i.test(u):!1})}function gc(e,n){const i=[];function l(o){if(n!=null&&i.length>=n||!o)return i;if(tp(o)&&o.scrollingElement!=null&&!i.includes(o.scrollingElement))return i.push(o.scrollingElement),i;if(!Fo(o)||t5(o)||i.includes(o))return i;const u=mn(e).getComputedStyle(o);return o!==e&&zN(o,u)&&i.push(o),LN(o,u)?i:l(o.parentNode)}return e?l(e):i}function u5(e){const[n]=gc(e,1);return n??null}function gh(e){return!hc||!e?null:pa(e)?e:ep(e)?tp(e)||e===ga(e).scrollingElement?window:Fo(e)?e:null:null}function c5(e){return pa(e)?e.scrollX:e.scrollLeft}function f5(e){return pa(e)?e.scrollY:e.scrollTop}function rm(e){return{x:c5(e),y:f5(e)}}var Xt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xt||(Xt={}));function d5(e){return!hc||!e?!1:e===document.scrollingElement}function h5(e){const n={x:0,y:0},i=d5(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},l={x:e.scrollWidth-i.width,y:e.scrollHeight-i.height},o=e.scrollTop<=n.y,u=e.scrollLeft<=n.x,c=e.scrollTop>=l.y,f=e.scrollLeft>=l.x;return{isTop:o,isLeft:u,isBottom:c,isRight:f,maxScroll:l,minScroll:n}}const BN={x:.2,y:.2};function HN(e,n,i,l,o){let{top:u,left:c,right:f,bottom:d}=i;l===void 0&&(l=10),o===void 0&&(o=BN);const{isTop:h,isBottom:b,isLeft:m,isRight:y}=h5(e),v={x:0,y:0},k={x:0,y:0},T={height:n.height*o.y,width:n.width*o.x};return!h&&u<=n.top+T.height?(v.y=Xt.Backward,k.y=l*Math.abs((n.top+T.height-u)/T.height)):!b&&d>=n.bottom-T.height&&(v.y=Xt.Forward,k.y=l*Math.abs((n.bottom-T.height-d)/T.height)),!y&&f>=n.right-T.width?(v.x=Xt.Forward,k.x=l*Math.abs((n.right-T.width-f)/T.width)):!m&&c<=n.left+T.width&&(v.x=Xt.Backward,k.x=l*Math.abs((n.left+T.width-c)/T.width)),{direction:v,speed:k}}function UN(e){if(e===document.scrollingElement){const{innerWidth:u,innerHeight:c}=window;return{top:0,left:0,right:u,bottom:c,width:u,height:c}}const{top:n,left:i,right:l,bottom:o}=e.getBoundingClientRect();return{top:n,left:i,right:l,bottom:o,width:e.clientWidth,height:e.clientHeight}}function m5(e){return e.reduce((n,i)=>ia(n,rm(i)),ur)}function IN(e){return e.reduce((n,i)=>n+c5(i),0)}function VN(e){return e.reduce((n,i)=>n+f5(i),0)}function p5(e,n){if(n===void 0&&(n=ba),!e)return;const{top:i,left:l,bottom:o,right:u}=n(e);u5(e)&&(o<=0||u<=0||i>=window.innerHeight||l>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const PN=[["x",["left","right"],IN],["y",["top","bottom"],VN]];class np{constructor(n,i){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=gc(i),o=m5(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[u,c,f]of PN)for(const d of c)Object.defineProperty(this,d,{get:()=>{const h=f(l),b=o[u]-h;return this.rect[d]+b},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xo{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(i=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...i)})},this.target=n}add(n,i,l){var o;(o=this.target)==null||o.addEventListener(n,i,l),this.listeners.push([n,i,l])}}function FN(e){const{EventTarget:n}=mn(e);return e instanceof n?e:ga(e)}function bh(e,n){const i=Math.abs(e.x),l=Math.abs(e.y);return typeof n=="number"?Math.sqrt(i**2+l**2)>n:"x"in n&&"y"in n?i>n.x&&l>n.y:"x"in n?i>n.x:"y"in n?l>n.y:!1}var Jn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Jn||(Jn={}));function Kv(e){e.preventDefault()}function qN(e){e.stopPropagation()}var Ve;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ve||(Ve={}));const g5={start:[Ve.Space,Ve.Enter],cancel:[Ve.Esc],end:[Ve.Space,Ve.Enter,Ve.Tab]},YN=(e,n)=>{let{currentCoordinates:i}=n;switch(e.code){case Ve.Right:return{...i,x:i.x+25};case Ve.Left:return{...i,x:i.x-25};case Ve.Down:return{...i,y:i.y+25};case Ve.Up:return{...i,y:i.y-25}}};class rp{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:i}}=n;this.props=n,this.listeners=new xo(ga(i)),this.windowListeners=new xo(mn(i)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Jn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:i}=this.props,l=n.node.current;l&&p5(l),i(ur)}handleKeyDown(n){if(pc(n)){const{active:i,context:l,options:o}=this.props,{keyboardCodes:u=g5,coordinateGetter:c=YN,scrollBehavior:f="smooth"}=o,{code:d}=n;if(u.end.includes(d)){this.handleEnd(n);return}if(u.cancel.includes(d)){this.handleCancel(n);return}const{collisionRect:h}=l.current,b=h?{x:h.left,y:h.top}:ur;this.referenceCoordinates||(this.referenceCoordinates=b);const m=c(n,{active:i,context:l.current,currentCoordinates:b});if(m){const y=Mo(m,b),v={x:0,y:0},{scrollableAncestors:k}=l.current;for(const T of k){const C=n.code,{isTop:w,isRight:A,isLeft:D,isBottom:R,maxScroll:_,minScroll:N}=h5(T),M=UN(T),B={x:Math.min(C===Ve.Right?M.right-M.width/2:M.right,Math.max(C===Ve.Right?M.left:M.left+M.width/2,m.x)),y:Math.min(C===Ve.Down?M.bottom-M.height/2:M.bottom,Math.max(C===Ve.Down?M.top:M.top+M.height/2,m.y))},F=C===Ve.Right&&!A||C===Ve.Left&&!D,L=C===Ve.Down&&!R||C===Ve.Up&&!w;if(F&&B.x!==m.x){const P=T.scrollLeft+y.x,X=C===Ve.Right&&P<=_.x||C===Ve.Left&&P>=N.x;if(X&&!y.y){T.scrollTo({left:P,behavior:f});return}X?v.x=T.scrollLeft-P:v.x=C===Ve.Right?T.scrollLeft-_.x:T.scrollLeft-N.x,v.x&&T.scrollBy({left:-v.x,behavior:f});break}else if(L&&B.y!==m.y){const P=T.scrollTop+y.y,X=C===Ve.Down&&P<=_.y||C===Ve.Up&&P>=N.y;if(X&&!y.x){T.scrollTo({top:P,behavior:f});return}X?v.y=T.scrollTop-P:v.y=C===Ve.Down?T.scrollTop-_.y:T.scrollTop-N.y,v.y&&T.scrollBy({top:-v.y,behavior:f});break}}this.handleMove(n,ia(Mo(m,this.referenceCoordinates),v))}}}handleMove(n,i){const{onMove:l}=this.props;n.preventDefault(),l(i)}handleEnd(n){const{onEnd:i}=this.props;n.preventDefault(),this.detach(),i()}handleCancel(n){const{onCancel:i}=this.props;n.preventDefault(),this.detach(),i()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rp.activators=[{eventName:"onKeyDown",handler:(e,n,i)=>{let{keyboardCodes:l=g5,onActivation:o}=n,{active:u}=i;const{code:c}=e.nativeEvent;if(l.start.includes(c)){const f=u.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Jv(e){return!!(e&&"distance"in e)}function Wv(e){return!!(e&&"delay"in e)}class ip{constructor(n,i,l){var o;l===void 0&&(l=FN(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=i;const{event:u}=n,{target:c}=u;this.props=n,this.events=i,this.document=ga(c),this.documentListeners=new xo(this.document),this.listeners=new xo(l),this.windowListeners=new xo(mn(c)),this.initialCoordinates=(o=Fu(u))!=null?o:ur,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:i,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(Jn.Resize,this.handleCancel),this.windowListeners.add(Jn.DragStart,Kv),this.windowListeners.add(Jn.VisibilityChange,this.handleCancel),this.windowListeners.add(Jn.ContextMenu,Kv),this.documentListeners.add(Jn.Keydown,this.handleKeydown),i){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Wv(i)){this.timeoutId=setTimeout(this.handleStart,i.delay),this.handlePending(i);return}if(Jv(i)){this.handlePending(i);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,i){const{active:l,onPending:o}=this.props;o(l,n,this.initialCoordinates,i)}handleStart(){const{initialCoordinates:n}=this,{onStart:i}=this.props;n&&(this.activated=!0,this.documentListeners.add(Jn.Click,qN,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Jn.SelectionChange,this.removeTextSelection),i(n))}handleMove(n){var i;const{activated:l,initialCoordinates:o,props:u}=this,{onMove:c,options:{activationConstraint:f}}=u;if(!o)return;const d=(i=Fu(n))!=null?i:ur,h=Mo(o,d);if(!l&&f){if(Jv(f)){if(f.tolerance!=null&&bh(h,f.tolerance))return this.handleCancel();if(bh(h,f.distance))return this.handleStart()}if(Wv(f)&&bh(h,f.tolerance))return this.handleCancel();this.handlePending(f,h);return}n.cancelable&&n.preventDefault(),c(d)}handleEnd(){const{onAbort:n,onEnd:i}=this.props;this.detach(),this.activated||n(this.props.active),i()}handleCancel(){const{onAbort:n,onCancel:i}=this.props;this.detach(),this.activated||n(this.props.active),i()}handleKeydown(n){n.code===Ve.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const XN={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class lp extends ip{constructor(n){const{event:i}=n,l=ga(i.target);super(n,XN,l)}}lp.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:i}=e,{onActivation:l}=n;return!i.isPrimary||i.button!==0?!1:(l==null||l({event:i}),!0)}}];const $N={move:{name:"mousemove"},end:{name:"mouseup"}};var im;(function(e){e[e.RightClick=2]="RightClick"})(im||(im={}));class ZN extends ip{constructor(n){super(n,$N,ga(n.event.target))}}ZN.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:i}=e,{onActivation:l}=n;return i.button===im.RightClick?!1:(l==null||l({event:i}),!0)}}];const vh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class GN extends ip{constructor(n){super(n,vh)}static setup(){return window.addEventListener(vh.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(vh.move.name,n)};function n(){}}}GN.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:i}=e,{onActivation:l}=n;const{touches:o}=i;return o.length>1?!1:(l==null||l({event:i}),!0)}}];var So;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(So||(So={}));var Yu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Yu||(Yu={}));function QN(e){let{acceleration:n,activator:i=So.Pointer,canScroll:l,draggingRect:o,enabled:u,interval:c=5,order:f=Yu.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:b,delta:m,threshold:y}=e;const v=JN({delta:m,disabled:!u}),[k,T]=sN(),C=E.useRef({x:0,y:0}),w=E.useRef({x:0,y:0}),A=E.useMemo(()=>{switch(i){case So.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case So.DraggableRect:return o}},[i,o,d]),D=E.useRef(null),R=E.useCallback(()=>{const N=D.current;if(!N)return;const M=C.current.x*w.current.x,B=C.current.y*w.current.y;N.scrollBy(M,B)},[]),_=E.useMemo(()=>f===Yu.TreeOrder?[...h].reverse():h,[f,h]);E.useEffect(()=>{if(!u||!h.length||!A){T();return}for(const N of _){if((l==null?void 0:l(N))===!1)continue;const M=h.indexOf(N),B=b[M];if(!B)continue;const{direction:F,speed:L}=HN(N,B,A,n,y);for(const P of["x","y"])v[P][F[P]]||(L[P]=0,F[P]=0);if(L.x>0||L.y>0){T(),D.current=N,k(R,c),C.current=L,w.current=F;return}}C.current={x:0,y:0},w.current={x:0,y:0},T()},[n,R,l,T,u,c,JSON.stringify(A),JSON.stringify(v),k,h,_,b,JSON.stringify(y)])}const KN={x:{[Xt.Backward]:!1,[Xt.Forward]:!1},y:{[Xt.Backward]:!1,[Xt.Forward]:!1}};function JN(e){let{delta:n,disabled:i}=e;const l=Pu(n);return qo(o=>{if(i||!l||!o)return KN;const u={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[Xt.Backward]:o.x[Xt.Backward]||u.x===-1,[Xt.Forward]:o.x[Xt.Forward]||u.x===1},y:{[Xt.Backward]:o.y[Xt.Backward]||u.y===-1,[Xt.Forward]:o.y[Xt.Forward]||u.y===1}}},[i,n,l])}function WN(e,n){const i=n!=null?e.get(n):void 0,l=i?i.node.current:null;return qo(o=>{var u;return n==null?null:(u=l??o)!=null?u:null},[l,n])}function eR(e,n){return E.useMemo(()=>e.reduce((i,l)=>{const{sensor:o}=l,u=o.activators.map(c=>({eventName:c.eventName,handler:n(c.handler,l)}));return[...i,...u]},[]),[e,n])}var jo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jo||(jo={}));var lm;(function(e){e.Optimized="optimized"})(lm||(lm={}));const ey=new Map;function tR(e,n){let{dragging:i,dependencies:l,config:o}=n;const[u,c]=E.useState(null),{frequency:f,measure:d,strategy:h}=o,b=E.useRef(e),m=C(),y=Oo(m),v=E.useCallback(function(w){w===void 0&&(w=[]),!y.current&&c(A=>A===null?w:A.concat(w.filter(D=>!A.includes(D))))},[y]),k=E.useRef(null),T=qo(w=>{if(m&&!i)return ey;if(!w||w===ey||b.current!==e||u!=null){const A=new Map;for(let D of e){if(!D)continue;if(u&&u.length>0&&!u.includes(D.id)&&D.rect.current){A.set(D.id,D.rect.current);continue}const R=D.node.current,_=R?new np(d(R),R):null;D.rect.current=_,_&&A.set(D.id,_)}return A}return w},[e,u,i,m,d]);return E.useEffect(()=>{b.current=e},[e]),E.useEffect(()=>{m||v()},[i,m]),E.useEffect(()=>{u&&u.length>0&&c(null)},[JSON.stringify(u)]),E.useEffect(()=>{m||typeof f!="number"||k.current!==null||(k.current=setTimeout(()=>{v(),k.current=null},f))},[f,m,v,...l]),{droppableRects:T,measureDroppableContainers:v,measuringScheduled:u!=null};function C(){switch(h){case jo.Always:return!1;case jo.BeforeDragging:return i;default:return!i}}}function ap(e,n){return qo(i=>e?i||(typeof n=="function"?n(e):e):null,[n,e])}function nR(e,n){return ap(e,n)}function rR(e){let{callback:n,disabled:i}=e;const l=mc(n),o=E.useMemo(()=>{if(i||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:u}=window;return new u(l)},[l,i]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function bc(e){let{callback:n,disabled:i}=e;const l=mc(n),o=E.useMemo(()=>{if(i||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:u}=window;return new u(l)},[i]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function iR(e){return new np(ba(e),e)}function ty(e,n,i){n===void 0&&(n=iR);const[l,o]=E.useState(null);function u(){o(d=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=d??i)!=null?h:null}const b=n(e);return JSON.stringify(d)===JSON.stringify(b)?d:b})}const c=rR({callback(d){if(e)for(const h of d){const{type:b,target:m}=h;if(b==="childList"&&m instanceof HTMLElement&&m.contains(e)){u();break}}}}),f=bc({callback:u});return sr(()=>{u(),e?(f==null||f.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),c==null||c.disconnect())},[e]),l}function lR(e){const n=ap(e);return o5(e,n)}const ny=[];function aR(e){const n=E.useRef(e),i=qo(l=>e?l&&l!==ny&&e&&n.current&&e.parentNode===n.current.parentNode?l:gc(e):ny,[e]);return E.useEffect(()=>{n.current=e},[e]),i}function oR(e){const[n,i]=E.useState(null),l=E.useRef(e),o=E.useCallback(u=>{const c=gh(u.target);c&&i(f=>f?(f.set(c,rm(c)),new Map(f)):null)},[]);return E.useEffect(()=>{const u=l.current;if(e!==u){c(u);const f=e.map(d=>{const h=gh(d);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,rm(h)]):null}).filter(d=>d!=null);i(f.length?new Map(f):null),l.current=e}return()=>{c(e),c(u)};function c(f){f.forEach(d=>{const h=gh(d);h==null||h.removeEventListener("scroll",o)})}},[o,e]),E.useMemo(()=>e.length?n?Array.from(n.values()).reduce((u,c)=>ia(u,c),ur):m5(e):ur,[e,n])}function ry(e,n){n===void 0&&(n=[]);const i=E.useRef(null);return E.useEffect(()=>{i.current=null},n),E.useEffect(()=>{const l=e!==ur;l&&!i.current&&(i.current=e),!l&&i.current&&(i.current=null)},[e]),i.current?Mo(e,i.current):ur}function sR(e){E.useEffect(()=>{if(!hc)return;const n=e.map(i=>{let{sensor:l}=i;return l.setup==null?void 0:l.setup()});return()=>{for(const i of n)i==null||i()}},e.map(n=>{let{sensor:i}=n;return i}))}function uR(e,n){return E.useMemo(()=>e.reduce((i,l)=>{let{eventName:o,handler:u}=l;return i[o]=c=>{u(c,n)},i},{}),[e,n])}function b5(e){return E.useMemo(()=>e?_N(e):null,[e])}const iy=[];function cR(e,n){n===void 0&&(n=ba);const[i]=e,l=b5(i?mn(i):null),[o,u]=E.useState(iy);function c(){u(()=>e.length?e.map(d=>d5(d)?l:new np(n(d),d)):iy)}const f=bc({callback:c});return sr(()=>{f==null||f.disconnect(),c(),e.forEach(d=>f==null?void 0:f.observe(d))},[e]),o}function v5(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return Fo(n)?n:e}function fR(e){let{measure:n}=e;const[i,l]=E.useState(null),o=E.useCallback(h=>{for(const{target:b}of h)if(Fo(b)){l(m=>{const y=n(b);return m?{...m,width:y.width,height:y.height}:y});break}},[n]),u=bc({callback:o}),c=E.useCallback(h=>{const b=v5(h);u==null||u.disconnect(),b&&(u==null||u.observe(b)),l(b?n(b):null)},[n,u]),[f,d]=Vu(c);return E.useMemo(()=>({nodeRef:f,rect:i,setRef:d}),[i,f,d])}const dR=[{sensor:lp,options:{}},{sensor:rp,options:{}}],hR={current:{}},ku={draggable:{measure:Qv},droppable:{measure:Qv,strategy:jo.WhileDragging,frequency:lm.Optimized},dragOverlay:{measure:ba}};class wo extends Map{get(n){var i;return n!=null&&(i=super.get(n))!=null?i:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:i}=n;return!i})}getNodeFor(n){var i,l;return(i=(l=this.get(n))==null?void 0:l.node.current)!=null?i:void 0}}const mR={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new wo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:qu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ku,measureDroppableContainers:qu,windowRect:null,measuringScheduled:!1},y5={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:qu,draggableNodes:new Map,over:null,measureDroppableContainers:qu},Xo=E.createContext(y5),x5=E.createContext(mR);function pR(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new wo}}}function gR(e,n){switch(n.type){case Pt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case Pt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case Pt.DragEnd:case Pt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pt.RegisterDroppable:{const{element:i}=n,{id:l}=i,o=new wo(e.droppable.containers);return o.set(l,i),{...e,droppable:{...e.droppable,containers:o}}}case Pt.SetDroppableDisabled:{const{id:i,key:l,disabled:o}=n,u=e.droppable.containers.get(i);if(!u||l!==u.key)return e;const c=new wo(e.droppable.containers);return c.set(i,{...u,disabled:o}),{...e,droppable:{...e.droppable,containers:c}}}case Pt.UnregisterDroppable:{const{id:i,key:l}=n,o=e.droppable.containers.get(i);if(!o||l!==o.key)return e;const u=new wo(e.droppable.containers);return u.delete(i),{...e,droppable:{...e.droppable,containers:u}}}default:return e}}function bR(e){let{disabled:n}=e;const{active:i,activatorEvent:l,draggableNodes:o}=E.useContext(Xo),u=Pu(l),c=Pu(i==null?void 0:i.id);return E.useEffect(()=>{if(!n&&!l&&u&&c!=null){if(!pc(u)||document.activeElement===u.target)return;const f=o.get(c);if(!f)return;const{activatorNode:d,node:h}=f;if(!d.current&&!h.current)return;requestAnimationFrame(()=>{for(const b of[d.current,h.current]){if(!b)continue;const m=fN(b);if(m){m.focus();break}}})}},[l,n,o,c,u]),null}function S5(e,n){let{transform:i,...l}=n;return e!=null&&e.length?e.reduce((o,u)=>u({transform:o,...l}),i):i}function vR(e){return E.useMemo(()=>({draggable:{...ku.draggable,...e==null?void 0:e.draggable},droppable:{...ku.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ku.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function yR(e){let{activeNode:n,measure:i,initialRect:l,config:o=!0}=e;const u=E.useRef(!1),{x:c,y:f}=typeof o=="boolean"?{x:o,y:o}:o;sr(()=>{if(!c&&!f||!n){u.current=!1;return}if(u.current||!l)return;const h=n==null?void 0:n.node.current;if(!h||h.isConnected===!1)return;const b=i(h),m=o5(b,l);if(c||(m.x=0),f||(m.y=0),u.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const y=u5(h);y&&y.scrollBy({top:m.y,left:m.x})}},[n,c,f,l,i])}const vc=E.createContext({...ur,scaleX:1,scaleY:1});var Ti;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ti||(Ti={}));const xR=E.memo(function(n){var i,l,o,u;let{id:c,accessibility:f,autoScroll:d=!0,children:h,sensors:b=dR,collisionDetection:m=TN,measuring:y,modifiers:v,...k}=n;const T=E.useReducer(gR,void 0,pR),[C,w]=T,[A,D]=bN(),[R,_]=E.useState(Ti.Uninitialized),N=R===Ti.Initialized,{draggable:{active:M,nodes:B,translate:F},droppable:{containers:L}}=C,P=M!=null?B.get(M):null,X=E.useRef({initial:null,translated:null}),U=E.useMemo(()=>{var bt;return M!=null?{id:M,data:(bt=P==null?void 0:P.data)!=null?bt:hR,rect:X}:null},[M,P]),q=E.useRef(null),[J,H]=E.useState(null),[Z,te]=E.useState(null),se=Oo(k,Object.values(k)),z=Yo("DndDescribedBy",c),I=E.useMemo(()=>L.getEnabled(),[L]),G=vR(y),{droppableRects:j,measureDroppableContainers:ie,measuringScheduled:de}=tR(I,{dragging:N,dependencies:[F.x,F.y],config:G.droppable}),ue=WN(B,M),ve=E.useMemo(()=>Z?Fu(Z):null,[Z]),me=un(),he=nR(ue,G.draggable.measure);yR({activeNode:M!=null?B.get(M):null,config:me.layoutShiftCompensation,initialRect:he,measure:G.draggable.measure});const be=ty(ue,G.draggable.measure,he),Te=ty(ue?ue.parentElement:null),Ce=E.useRef({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ae=L.getNodeFor((i=Ce.current.over)==null?void 0:i.id),Pe=fR({measure:G.dragOverlay.measure}),st=(l=Pe.nodeRef.current)!=null?l:ue,pt=N?(o=Pe.rect)!=null?o:be:null,Ot=!!(Pe.nodeRef.current&&Pe.rect),nn=lR(Ot?null:be),Et=b5(st?mn(st):null),It=aR(N?Ae??ue:null),pn=cR(It),Ge=S5(v,{transform:{x:F.x-nn.x,y:F.y-nn.y,scaleX:1,scaleY:1},activatorEvent:Z,active:U,activeNodeRect:be,containerNodeRect:Te,draggingNodeRect:pt,over:Ce.current.over,overlayNodeRect:Pe.rect,scrollableAncestors:It,scrollableAncestorRects:pn,windowRect:Et}),Tr=ve?ia(ve,F):null,ct=oR(It),Li=ry(ct),re=ry(ct,[be]),ce=ia(Ge,Li),Se=pt?ON(pt,Ge):null,De=U&&Se?m({active:U,collisionRect:Se,droppableRects:j,droppableContainers:I,pointerCoordinates:Tr}):null,je=a5(De,"id"),[Qe,sn]=E.useState(null),gt=Ot?Ge:ia(Ge,re),yt=NN(gt,(u=Qe==null?void 0:Qe.rect)!=null?u:null,be),Mt=E.useRef(null),qe=E.useCallback((bt,xt)=>{let{sensor:Dt,options:Gt}=xt;if(q.current==null)return;const xe=B.get(q.current);if(!xe)return;const Ue=bt.nativeEvent,$e=new Dt({active:q.current,activeNode:xe,event:Ue,options:Gt,context:Ce,onAbort(dt){if(!B.get(dt))return;const{onDragAbort:ut}=se.current,St={id:dt};ut==null||ut(St),A({type:"onDragAbort",event:St})},onPending(dt,Ke,ut,St){if(!B.get(dt))return;const{onDragPending:jt}=se.current,cn={id:dt,constraint:Ke,initialCoordinates:ut,offset:St};jt==null||jt(cn),A({type:"onDragPending",event:cn})},onStart(dt){const Ke=q.current;if(Ke==null)return;const ut=B.get(Ke);if(!ut)return;const{onDragStart:St}=se.current,Dn={activatorEvent:Ue,active:{id:Ke,data:ut.data,rect:X}};ar.unstable_batchedUpdates(()=>{St==null||St(Dn),_(Ti.Initializing),w({type:Pt.DragStart,initialCoordinates:dt,active:Ke}),A({type:"onDragStart",event:Dn}),H(Mt.current),te(Ue)})},onMove(dt){w({type:Pt.DragMove,coordinates:dt})},onEnd:it(Pt.DragEnd),onCancel:it(Pt.DragCancel)});Mt.current=$e;function it(dt){return async function(){const{active:ut,collisions:St,over:Dn,scrollAdjustedTranslate:jt}=Ce.current;let cn=null;if(ut&&jt){const{cancelDrop:Wr}=se.current;cn={activatorEvent:Ue,active:ut,collisions:St,delta:jt,over:Dn},dt===Pt.DragEnd&&typeof Wr=="function"&&await Promise.resolve(Wr(cn))&&(dt=Pt.DragCancel)}q.current=null,ar.unstable_batchedUpdates(()=>{w({type:dt}),_(Ti.Uninitialized),sn(null),H(null),te(null),Mt.current=null;const Wr=dt===Pt.DragEnd?"onDragEnd":"onDragCancel";if(cn){const In=se.current[Wr];In==null||In(cn),A({type:Wr,event:cn})}})}}},[B]),An=E.useCallback((bt,xt)=>(Dt,Gt)=>{const xe=Dt.nativeEvent,Ue=B.get(Gt);if(q.current!==null||!Ue||xe.dndKit||xe.defaultPrevented)return;const $e={active:Ue};bt(Dt,xt.options,$e)===!0&&(xe.dndKit={capturedBy:xt.sensor},q.current=Gt,qe(Dt,xt))},[B,qe]),ft=eR(b,An);sR(b),sr(()=>{be&&R===Ti.Initializing&&_(Ti.Initialized)},[be,R]),E.useEffect(()=>{const{onDragMove:bt}=se.current,{active:xt,activatorEvent:Dt,collisions:Gt,over:xe}=Ce.current;if(!xt||!Dt)return;const Ue={active:xt,activatorEvent:Dt,collisions:Gt,delta:{x:ce.x,y:ce.y},over:xe};ar.unstable_batchedUpdates(()=>{bt==null||bt(Ue),A({type:"onDragMove",event:Ue})})},[ce.x,ce.y]),E.useEffect(()=>{const{active:bt,activatorEvent:xt,collisions:Dt,droppableContainers:Gt,scrollAdjustedTranslate:xe}=Ce.current;if(!bt||q.current==null||!xt||!xe)return;const{onDragOver:Ue}=se.current,$e=Gt.get(je),it=$e&&$e.rect.current?{id:$e.id,rect:$e.rect.current,data:$e.data,disabled:$e.disabled}:null,dt={active:bt,activatorEvent:xt,collisions:Dt,delta:{x:xe.x,y:xe.y},over:it};ar.unstable_batchedUpdates(()=>{sn(it),Ue==null||Ue(dt),A({type:"onDragOver",event:dt})})},[je]),sr(()=>{Ce.current={activatorEvent:Z,active:U,activeNode:ue,collisionRect:Se,collisions:De,droppableRects:j,draggableNodes:B,draggingNode:st,draggingNodeRect:pt,droppableContainers:L,over:Qe,scrollableAncestors:It,scrollAdjustedTranslate:ce},X.current={initial:pt,translated:Se}},[U,ue,De,Se,B,st,pt,j,L,Qe,It,ce]),QN({...me,delta:F,draggingRect:Se,pointerCoordinates:Tr,scrollableAncestors:It,scrollableAncestorRects:pn});const va=E.useMemo(()=>({active:U,activeNode:ue,activeNodeRect:be,activatorEvent:Z,collisions:De,containerNodeRect:Te,dragOverlay:Pe,draggableNodes:B,droppableContainers:L,droppableRects:j,over:Qe,measureDroppableContainers:ie,scrollableAncestors:It,scrollableAncestorRects:pn,measuringConfiguration:G,measuringScheduled:de,windowRect:Et}),[U,ue,be,Z,De,Te,Pe,B,L,j,Qe,ie,It,pn,G,de,Et]),dr=E.useMemo(()=>({activatorEvent:Z,activators:ft,active:U,activeNodeRect:be,ariaDescribedById:{draggable:z},dispatch:w,draggableNodes:B,over:Qe,measureDroppableContainers:ie}),[Z,ft,U,be,w,z,B,Qe,ie]);return ae.createElement(r5.Provider,{value:D},ae.createElement(Xo.Provider,{value:dr},ae.createElement(x5.Provider,{value:va},ae.createElement(vc.Provider,{value:yt},h)),ae.createElement(bR,{disabled:(f==null?void 0:f.restoreFocus)===!1})),ae.createElement(xN,{...f,hiddenTextDescribedById:z}));function un(){const bt=(J==null?void 0:J.autoScrollEnabled)===!1,xt=typeof d=="object"?d.enabled===!1:d===!1,Dt=N&&!bt&&!xt;return typeof d=="object"?{...d,enabled:Dt}:{enabled:Dt}}}),SR=E.createContext(null),ly="button",wR="Draggable";function CR(e){let{id:n,data:i,disabled:l=!1,attributes:o}=e;const u=Yo(wR),{activators:c,activatorEvent:f,active:d,activeNodeRect:h,ariaDescribedById:b,draggableNodes:m,over:y}=E.useContext(Xo),{role:v=ly,roleDescription:k="draggable",tabIndex:T=0}=o??{},C=(d==null?void 0:d.id)===n,w=E.useContext(C?vc:SR),[A,D]=Vu(),[R,_]=Vu(),N=uR(c,n),M=Oo(i);sr(()=>(m.set(n,{id:n,key:u,node:A,activatorNode:R,data:M}),()=>{const F=m.get(n);F&&F.key===u&&m.delete(n)}),[m,n]);const B=E.useMemo(()=>({role:v,tabIndex:T,"aria-disabled":l,"aria-pressed":C&&v===ly?!0:void 0,"aria-roledescription":k,"aria-describedby":b.draggable}),[l,v,T,C,k,b.draggable]);return{active:d,activatorEvent:f,activeNodeRect:h,attributes:B,isDragging:C,listeners:l?void 0:N,node:A,over:y,setNodeRef:D,setActivatorNodeRef:_,transform:w}}function w5(){return E.useContext(x5)}const ER="Droppable",kR={timeout:25};function C5(e){let{data:n,disabled:i=!1,id:l,resizeObserverConfig:o}=e;const u=Yo(ER),{active:c,dispatch:f,over:d,measureDroppableContainers:h}=E.useContext(Xo),b=E.useRef({disabled:i}),m=E.useRef(!1),y=E.useRef(null),v=E.useRef(null),{disabled:k,updateMeasurementsFor:T,timeout:C}={...kR,...o},w=Oo(T??l),A=E.useCallback(()=>{if(!m.current){m.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{h(Array.isArray(w.current)?w.current:[w.current]),v.current=null},C)},[C]),D=bc({callback:A,disabled:k||!c}),R=E.useCallback((B,F)=>{D&&(F&&(D.unobserve(F),m.current=!1),B&&D.observe(B))},[D]),[_,N]=Vu(R),M=Oo(n);return E.useEffect(()=>{!D||!_.current||(D.disconnect(),m.current=!1,D.observe(_.current))},[_,D]),E.useEffect(()=>(f({type:Pt.RegisterDroppable,element:{id:l,key:u,disabled:i,node:_,rect:y,data:M}}),()=>f({type:Pt.UnregisterDroppable,key:u,id:l})),[l]),E.useEffect(()=>{i!==b.current.disabled&&(f({type:Pt.SetDroppableDisabled,id:l,key:u,disabled:i}),b.current.disabled=i)},[l,u,i,f]),{active:c,rect:y,isOver:(d==null?void 0:d.id)===l,node:_,over:d,setNodeRef:N}}function TR(e){let{animation:n,children:i}=e;const[l,o]=E.useState(null),[u,c]=E.useState(null),f=Pu(i);return!i&&!l&&f&&o(f),sr(()=>{if(!u)return;const d=l==null?void 0:l.key,h=l==null?void 0:l.props.id;if(d==null||h==null){o(null);return}Promise.resolve(n(h,u)).then(()=>{o(null)})},[n,l,u]),ae.createElement(ae.Fragment,null,i,l?E.cloneElement(l,{ref:c}):null)}const AR={x:0,y:0,scaleX:1,scaleY:1};function DR(e){let{children:n}=e;return ae.createElement(Xo.Provider,{value:y5},ae.createElement(vc.Provider,{value:AR},n))}const NR={position:"fixed",touchAction:"none"},RR=e=>pc(e)?"transform 250ms ease":void 0,OR=E.forwardRef((e,n)=>{let{as:i,activatorEvent:l,adjustScale:o,children:u,className:c,rect:f,style:d,transform:h,transition:b=RR}=e;if(!f)return null;const m=o?h:{...h,scaleX:1,scaleY:1},y={...NR,width:f.width,height:f.height,top:f.top,left:f.left,transform:Oi.Transform.toString(m),transformOrigin:o&&l?wN(l,f):void 0,transition:typeof b=="function"?b(l):b,...d};return ae.createElement(i,{className:c,style:y,ref:n},u)}),MR=e=>n=>{let{active:i,dragOverlay:l}=n;const o={},{styles:u,className:c}=e;if(u!=null&&u.active)for(const[f,d]of Object.entries(u.active))d!==void 0&&(o[f]=i.node.style.getPropertyValue(f),i.node.style.setProperty(f,d));if(u!=null&&u.dragOverlay)for(const[f,d]of Object.entries(u.dragOverlay))d!==void 0&&l.node.style.setProperty(f,d);return c!=null&&c.active&&i.node.classList.add(c.active),c!=null&&c.dragOverlay&&l.node.classList.add(c.dragOverlay),function(){for(const[d,h]of Object.entries(o))i.node.style.setProperty(d,h);c!=null&&c.active&&i.node.classList.remove(c.active)}},jR=e=>{let{transform:{initial:n,final:i}}=e;return[{transform:Oi.Transform.toString(n)},{transform:Oi.Transform.toString(i)}]},_R={duration:250,easing:"ease",keyframes:jR,sideEffects:MR({styles:{active:{opacity:"0"}}})};function LR(e){let{config:n,draggableNodes:i,droppableContainers:l,measuringConfiguration:o}=e;return mc((u,c)=>{if(n===null)return;const f=i.get(u);if(!f)return;const d=f.node.current;if(!d)return;const h=v5(c);if(!h)return;const{transform:b}=mn(c).getComputedStyle(c),m=s5(b);if(!m)return;const y=typeof n=="function"?n:zR(n);return p5(d,o.draggable.measure),y({active:{id:u,data:f.data,node:d,rect:o.draggable.measure(d)},draggableNodes:i,dragOverlay:{node:c,rect:o.dragOverlay.measure(h)},droppableContainers:l,measuringConfiguration:o,transform:m})})}function zR(e){const{duration:n,easing:i,sideEffects:l,keyframes:o}={..._R,...e};return u=>{let{active:c,dragOverlay:f,transform:d,...h}=u;if(!n)return;const b={x:f.rect.left-c.rect.left,y:f.rect.top-c.rect.top},m={scaleX:d.scaleX!==1?c.rect.width*d.scaleX/f.rect.width:1,scaleY:d.scaleY!==1?c.rect.height*d.scaleY/f.rect.height:1},y={x:d.x-b.x,y:d.y-b.y,...m},v=o({...h,active:c,dragOverlay:f,transform:{initial:d,final:y}}),[k]=v,T=v[v.length-1];if(JSON.stringify(k)===JSON.stringify(T))return;const C=l==null?void 0:l({active:c,dragOverlay:f,...h}),w=f.node.animate(v,{duration:n,easing:i,fill:"forwards"});return new Promise(A=>{w.onfinish=()=>{C==null||C(),A()}})}}let ay=0;function BR(e){return E.useMemo(()=>{if(e!=null)return ay++,ay},[e])}const HR=ae.memo(e=>{let{adjustScale:n=!1,children:i,dropAnimation:l,style:o,transition:u,modifiers:c,wrapperElement:f="div",className:d,zIndex:h=999}=e;const{activatorEvent:b,active:m,activeNodeRect:y,containerNodeRect:v,draggableNodes:k,droppableContainers:T,dragOverlay:C,over:w,measuringConfiguration:A,scrollableAncestors:D,scrollableAncestorRects:R,windowRect:_}=w5(),N=E.useContext(vc),M=BR(m==null?void 0:m.id),B=S5(c,{activatorEvent:b,active:m,activeNodeRect:y,containerNodeRect:v,draggingNodeRect:C.rect,over:w,overlayNodeRect:C.rect,scrollableAncestors:D,scrollableAncestorRects:R,transform:N,windowRect:_}),F=ap(y),L=LR({config:l,draggableNodes:k,droppableContainers:T,measuringConfiguration:A}),P=F?C.setRef:void 0;return ae.createElement(DR,null,ae.createElement(TR,{animation:L},m&&M?ae.createElement(OR,{key:M,id:m.id,ref:P,as:f,activatorEvent:b,adjustScale:n,className:d,transition:u,rect:F,style:{zIndex:h,...o},transform:B},i):null))});function E5(e,n,i){const l=e.slice();return l.splice(i<0?l.length+i:i,0,l.splice(n,1)[0]),l}function UR(e,n){return e.reduce((i,l,o)=>{const u=n.get(l);return u&&(i[o]=u),i},Array(e.length))}function yu(e){return e!==null&&e>=0}function IR(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function VR(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const k5=e=>{let{rects:n,activeIndex:i,overIndex:l,index:o}=e;const u=E5(n,l,i),c=n[o],f=u[o];return!f||!c?null:{x:f.left-c.left,y:f.top-c.top,scaleX:f.width/c.width,scaleY:f.height/c.height}},T5="Sortable",A5=ae.createContext({activeIndex:-1,containerId:T5,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:k5,disabled:{draggable:!1,droppable:!1}});function PR(e){let{children:n,id:i,items:l,strategy:o=k5,disabled:u=!1}=e;const{active:c,dragOverlay:f,droppableRects:d,over:h,measureDroppableContainers:b}=w5(),m=Yo(T5,i),y=f.rect!==null,v=E.useMemo(()=>l.map(N=>typeof N=="object"&&"id"in N?N.id:N),[l]),k=c!=null,T=c?v.indexOf(c.id):-1,C=h?v.indexOf(h.id):-1,w=E.useRef(v),A=!IR(v,w.current),D=C!==-1&&T===-1||A,R=VR(u);sr(()=>{A&&k&&b(v)},[A,v,k,b]),E.useEffect(()=>{w.current=v},[v]);const _=E.useMemo(()=>({activeIndex:T,containerId:m,disabled:R,disableTransforms:D,items:v,overIndex:C,useDragOverlay:y,sortedRects:UR(v,d),strategy:o}),[T,m,R.draggable,R.droppable,D,v,C,d,y,o]);return ae.createElement(A5.Provider,{value:_},n)}const FR=e=>{let{id:n,items:i,activeIndex:l,overIndex:o}=e;return E5(i,l,o).indexOf(n)},qR=e=>{let{containerId:n,isSorting:i,wasDragging:l,index:o,items:u,newIndex:c,previousItems:f,previousContainerId:d,transition:h}=e;return!h||!l||f!==u&&o===c?!1:i?!0:c!==o&&n===d},YR={duration:200,easing:"ease"},D5="transform",XR=Oi.Transition.toString({property:D5,duration:0,easing:"linear"}),$R={roleDescription:"sortable"};function ZR(e){let{disabled:n,index:i,node:l,rect:o}=e;const[u,c]=E.useState(null),f=E.useRef(i);return sr(()=>{if(!n&&i!==f.current&&l.current){const d=o.current;if(d){const h=ba(l.current,{ignoreTransform:!0}),b={x:d.left-h.left,y:d.top-h.top,scaleX:d.width/h.width,scaleY:d.height/h.height};(b.x||b.y)&&c(b)}}i!==f.current&&(f.current=i)},[n,i,l,o]),E.useEffect(()=>{u&&c(null)},[u]),u}function GR(e){let{animateLayoutChanges:n=qR,attributes:i,disabled:l,data:o,getNewIndex:u=FR,id:c,strategy:f,resizeObserverConfig:d,transition:h=YR}=e;const{items:b,containerId:m,activeIndex:y,disabled:v,disableTransforms:k,sortedRects:T,overIndex:C,useDragOverlay:w,strategy:A}=E.useContext(A5),D=QR(l,v),R=b.indexOf(c),_=E.useMemo(()=>({sortable:{containerId:m,index:R,items:b},...o}),[m,o,R,b]),N=E.useMemo(()=>b.slice(b.indexOf(c)),[b,c]),{rect:M,node:B,isOver:F,setNodeRef:L}=C5({id:c,data:_,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...d}}),{active:P,activatorEvent:X,activeNodeRect:U,attributes:q,setNodeRef:J,listeners:H,isDragging:Z,over:te,setActivatorNodeRef:se,transform:z}=CR({id:c,data:_,attributes:{...$R,...i},disabled:D.draggable}),I=oN(L,J),G=!!P,j=G&&!k&&yu(y)&&yu(C),ie=!w&&Z,de=ie&&j?z:null,ve=j?de??(f??A)({rects:T,activeNodeRect:U,activeIndex:y,overIndex:C,index:R}):null,me=yu(y)&&yu(C)?u({id:c,items:b,activeIndex:y,overIndex:C}):R,he=P==null?void 0:P.id,be=E.useRef({activeId:he,items:b,newIndex:me,containerId:m}),Te=b!==be.current.items,Ce=n({active:P,containerId:m,isDragging:Z,isSorting:G,id:c,index:R,items:b,newIndex:be.current.newIndex,previousItems:be.current.items,previousContainerId:be.current.containerId,transition:h,wasDragging:be.current.activeId!=null}),Ae=ZR({disabled:!Ce,index:R,node:B,rect:M});return E.useEffect(()=>{G&&be.current.newIndex!==me&&(be.current.newIndex=me),m!==be.current.containerId&&(be.current.containerId=m),b!==be.current.items&&(be.current.items=b)},[G,me,m,b]),E.useEffect(()=>{if(he===be.current.activeId)return;if(he&&!be.current.activeId){be.current.activeId=he;return}const st=setTimeout(()=>{be.current.activeId=he},50);return()=>clearTimeout(st)},[he]),{active:P,activeIndex:y,attributes:q,data:_,rect:M,index:R,newIndex:me,items:b,isOver:F,isSorting:G,isDragging:Z,listeners:H,node:B,overIndex:C,over:te,setNodeRef:I,setActivatorNodeRef:se,setDroppableNodeRef:L,setDraggableNodeRef:J,transform:Ae??ve,transition:Pe()};function Pe(){if(Ae||Te&&be.current.newIndex===R)return XR;if(!(ie&&!pc(X)||!h)&&(G||Ce))return Oi.Transition.toString({...h,property:D5})}}function QR(e,n){var i,l;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(i=e==null?void 0:e.draggable)!=null?i:n.draggable,droppable:(l=e==null?void 0:e.droppable)!=null?l:n.droppable}}function Xu(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const KR=[Ve.Down,Ve.Right,Ve.Up,Ve.Left],JR=(e,n)=>{let{context:{active:i,collisionRect:l,droppableRects:o,droppableContainers:u,over:c,scrollableAncestors:f}}=n;if(KR.includes(e.code)){if(e.preventDefault(),!i||!l)return;const d=[];u.getEnabled().forEach(m=>{if(!m||m!=null&&m.disabled)return;const y=o.get(m.id);if(y)switch(e.code){case Ve.Down:l.top<y.top&&d.push(m);break;case Ve.Up:l.top>y.top&&d.push(m);break;case Ve.Left:l.left>y.left&&d.push(m);break;case Ve.Right:l.left<y.left&&d.push(m);break}});const h=EN({collisionRect:l,droppableRects:o,droppableContainers:d});let b=a5(h,"id");if(b===(c==null?void 0:c.id)&&h.length>1&&(b=h[1].id),b!=null){const m=u.get(i.id),y=u.get(b),v=y?o.get(y.id):null,k=y==null?void 0:y.node.current;if(k&&v&&m&&y){const C=gc(k).some((N,M)=>f[M]!==N),w=N5(m,y),A=WR(m,y),D=C||!w?{x:0,y:0}:{x:A?l.width-v.width:0,y:A?l.height-v.height:0},R={x:v.left,y:v.top};return D.x&&D.y?R:Mo(R,D)}}}};function N5(e,n){return!Xu(e)||!Xu(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function WR(e,n){return!Xu(e)||!Xu(n)||!N5(e,n)?!1:e.data.current.sortable.index<n.data.current.sortable.index}function yc({initialStatus:e,trigger:n}={}){var _,N,M;const i=pe(B=>B.config),l=pe(B=>B.createTask),[o,u]=E.useState(!1),[c,f]=E.useState(""),[d,h]=E.useState(""),[b,m]=E.useState(""),[y,v]=E.useState(!1),k=E.useRef(null),C=!!(e&&(i!=null&&i.columns.some(B=>B.id===e)))&&e?e:(i==null?void 0:i.default_column)??((_=i==null?void 0:i.columns.at(0))==null?void 0:_.id)??"",w=d||C,A=()=>{f(""),h(""),m(""),v(!1)},D=B=>{u(B),B||A()},R=B=>{B.preventDefault();const F=c.trim();if(F){if(l(F,{status:w||void 0,priority:b||void 0}),y){f(""),window.requestAnimationFrame(()=>{var L;return(L=k.current)==null?void 0:L.focus()});return}u(!1),A()}};return x.jsxs(gm,{open:o,onOpenChange:D,children:[x.jsx(HC,{asChild:!0,children:n??x.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed",type:"button",children:[x.jsx(Lo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"New task"]})}),x.jsxs(bm,{children:[x.jsx(vm,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=open]:fade-in"}),x.jsxs(ym,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-md border border-sb-iron bg-sb-surface p-5 outline-none",onOpenAutoFocus:B=>{var F;B.preventDefault(),(F=k.current)==null||F.focus()},children:[x.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3",children:[x.jsxs("div",{children:[x.jsx(xm,{className:"text-base font-semibold text-sb-frosted",children:"New task"}),x.jsx(Sm,{className:"mt-1 text-[13px] text-sb-silver",children:"Add a task to the board. You can edit details after creating."})]}),x.jsx(Eo,{asChild:!0,children:x.jsx("button",{"aria-label":"Close",className:"rounded p-1 text-sb-silver transition-colors hover:text-sb-frosted",type:"button",children:x.jsx(oa,{"aria-hidden":"true",className:"h-4 w-4"})})})]}),x.jsxs("form",{className:"grid gap-4",onKeyDown:em,onSubmit:R,children:[x.jsxs("label",{className:"grid gap-1.5",children:[x.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Title"}),x.jsx("input",{ref:k,className:"h-9 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Setup auth",value:c,onChange:B=>f(B.target.value)})]}),x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Status"}),x.jsx(Wh,{value:w,ariaLabel:"Status",statusMarker:!0,placeholder:((N=i==null?void 0:i.columns.find(B=>B.id===i.default_column))==null?void 0:N.label)??((M=i==null?void 0:i.columns.at(0))==null?void 0:M.label)??"—",options:(i==null?void 0:i.columns.map(B=>({value:B.id,label:B.label})))??[],onValueChange:h})]}),x.jsxs("div",{className:"grid gap-1.5",children:[x.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Priority"}),x.jsx(Wh,{value:b,ariaLabel:"Priority",placeholder:(i==null?void 0:i.priority.default)??"—",options:(i==null?void 0:i.priority.values.map(B=>({value:B,label:B})))??[],onValueChange:m})]}),x.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[x.jsxs("label",{className:"mr-auto inline-flex h-9 items-center gap-2 text-[13px] text-sb-silver",children:[x.jsx("input",{className:"h-4 w-4 accent-sb-silver",type:"checkbox",checked:y,onChange:B=>v(B.target.checked)}),"Add another"]}),x.jsx(Eo,{asChild:!0,children:x.jsx("button",{className:"h-9 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",children:"Cancel"})}),x.jsx("button",{className:"h-9 rounded bg-sb-accent px-4 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",disabled:!c.trim(),type:"submit",children:"Create task"})]})]})]})]})]})}function eO({value:e,values:n}){const i=n.indexOf(e)+1;return i>0&&n.length>=2&&n.length<=5?x.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-sb-iron px-1.5 py-0.5",title:`Priority: ${e}`,children:[x.jsx("span",{className:"flex items-center gap-[1px]","aria-hidden":"true",children:n.map((o,u)=>x.jsx(ko,{className:`h-2.5 w-2.5 ${u<i?"text-sb-frosted":"text-sb-iron"}`},o))}),x.jsx("span",{className:"font-mono text-[11px] text-sb-silver",children:e})]}):x.jsx("span",{className:"max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:e})}const tO=[];function op({task:e,status:n,draggable:i=!1,isPlaceholder:l=!1,searchMatch:o}){return i?x.jsx(nO,{task:e,status:n,isPlaceholder:l,searchMatch:o}):x.jsx(R5,{task:e,searchMatch:o})}function nO({task:e,status:n,isPlaceholder:i,searchMatch:l}){const{attributes:o,listeners:u,setNodeRef:c,transform:f,transition:d}=GR({id:e.slug,data:{status:n}}),h={transform:Oi.Transform.toString(f),transition:d};return x.jsx("div",{ref:c,style:h,...o,...u,children:x.jsx(R5,{task:e,dimmed:i,searchMatch:l})})}function R5({task:e,dimmed:n=!1,searchMatch:i}){const l=pe(b=>b.selectTask),o=pe(b=>b.errorAtBySlug[e.slug]),u=pe(b=>{var m;return((m=b.config)==null?void 0:m.priority.values)??tO}),c=pe(b=>{var m;return((m=b.config)==null?void 0:m.done_column)===e.frontmatter.status}),f=Zu(e),d=f!==null&&!c,h=pe(b=>{const m=e.frontmatter.depends_on??[];return!m.length||!b.config?0:m.filter(y=>{var k;const v=b.tasks.find(T=>T.slug===y);return!v||v.frontmatter.status!==((k=b.config)==null?void 0:k.done_column)}).length});return x.jsx("article",{className:`rounded-md border border-sb-iron bg-sb-surface p-3 outline-none transition-colors hover:border-sb-silver ${d?"border-l-2 border-l-sb-warning hover:border-l-sb-warning":""} ${n?"opacity-40":""} ${o?"sb-error-shake":""}`,children:x.jsxs("button",{className:"block w-full text-left",type:"button",onClick:()=>l(e.slug),children:[x.jsx("h3",{className:"line-clamp-2 font-sans text-[14px] font-medium leading-5 text-sb-frosted",children:e.frontmatter.title}),x.jsx("p",{className:"mt-1 truncate font-mono text-[11px] text-sb-silver",children:e.slug}),f?x.jsx(rO,{flag:f,raised:d}):null,x.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[e.frontmatter.priority?x.jsx(eO,{value:e.frontmatter.priority,values:u}):null,e.frontmatter.assignee?x.jsx(oy,{label:e.frontmatter.assignee}):null,(e.frontmatter.tags??[]).slice(0,3).map(b=>x.jsx(oy,{label:b},b)),h?x.jsxs("span",{className:"inline-flex items-center gap-1 rounded border border-sb-ironlit px-1.5 py-0.5 font-mono text-[11px] text-sb-silver","aria-label":`${h} unfinished ${h===1?"dependency":"dependencies"}`,title:`${h} unfinished ${h===1?"dependency":"dependencies"}`,children:[x.jsx(xy,{"aria-hidden":"true",className:"h-3 w-3"}),h]}):null]}),i?x.jsx(Ey,{match:i}):null]})},o??"stable")}function rO({flag:e,raised:n}){return x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-[12px] leading-4 text-sb-silver",title:e.reason??void 0,children:[x.jsx(Qr,{"aria-hidden":"true",className:`mt-0.5 h-3 w-3 shrink-0 ${n?"text-sb-warning":""}`}),e.reason?x.jsxs("span",{className:"line-clamp-2 min-w-0 break-words",children:[x.jsx("span",{className:"sr-only",children:"Flagged: "}),e.reason]}):x.jsx("span",{children:"Flagged"})]})}function oy({label:e}){return x.jsx("span",{className:"max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:e})}function iO(e,n,i){const l=Au(n,e.layout,rl,i,e.done_column);return[...e.columns.map(o=>({id:o.id,label:o.label,tasks:Au(n,e.layout,o.id,i,e.done_column),isDone:o.id===e.done_column})),...l.length>0?[{id:rl,label:"Uncategorized",tasks:l,isDone:!1}]:[]]}function lO(e,n,i){const l=e.findIndex(c=>c.slug===n),o=l>=0?e.length-1:e.length,u=i<0||i>o?o:i;return l<0||u<l?u:u+1}const aO=e=>{var h,b,m,y,v;const{droppableContainers:n,droppableRects:i,pointerCoordinates:l}=e,o=DN(e);if(!l||o.length===0)return o;const u=o.find(k=>{var T,C,w,A;return((A=(w=(C=(T=k.data)==null?void 0:T.droppableContainer)==null?void 0:C.data)==null?void 0:w.current)==null?void 0:A.isColumn)!==!0});if(u)return[u];const c=(v=(y=(m=(b=(h=o[0])==null?void 0:h.data)==null?void 0:b.droppableContainer)==null?void 0:m.data)==null?void 0:y.current)==null?void 0:v.status;if(typeof c!="string")return o;const d=n.filter(k=>{var T,C;return((T=k.data.current)==null?void 0:T.isColumn)!==!0&&((C=k.data.current)==null?void 0:C.status)===c}).map(k=>({id:k.id,rect:i.get(k.id)})).filter(k=>k.rect!==void 0).sort((k,T)=>k.rect.top-T.rect.top).find(k=>l.y<=k.rect.top+k.rect.height);return d?[{id:d.id}]:o},oO=()=>null;function sO(){var U;const e=pe(q=>q.config),n=pe(q=>q.tasks),i=pe(q=>q.unreadable),l=pe(q=>q.searchQuery),o=pe(q=>q.flaggedOnly),u=pe(q=>q.setFlaggedOnly),c=pe(q=>q.reorderTask),f=pe(q=>q.readOnly),d=pe(q=>q.openArchive),h=E.useMemo(()=>wy(n,l),[n,l]),b=E.useMemo(()=>o?h.tasks.filter(Gu):h.tasks,[h.tasks,o]),m=!!l.trim()||o,[y,v]=E.useState(null),[k,T]=E.useState(null),[C,w]=E.useState(-1),A=SN(Gv(lp,{activationConstraint:{distance:6}}),Gv(rp,{coordinateGetter:JR})),D=E.useMemo(()=>new Set((e==null?void 0:e.columns.map(q=>q.id))??[]),[e]),R=E.useMemo(()=>e?iO(e,b,D):[],[e,b,D]),_=y?b.find(q=>q.slug===y)??null:null,N=_?((U=R.find(q=>q.id===_.frontmatter.status))==null?void 0:U.tasks.findIndex(q=>q.slug===_.slug))??-1:-1,M=_!==null&&k===_.frontmatter.status&&C===N,B=()=>{v(null),T(null),w(-1)},F=q=>{const J=String(q.active.id);v(J);const H=b.find(te=>te.slug===J);H&&D.has(H.frontmatter.status)?T(H.frontmatter.status):T(null);const Z=R.find(te=>te.id===(H==null?void 0:H.frontmatter.status));w(Z?Z.tasks.findIndex(te=>te.slug===J):-1)},L=q=>{var H,Z,te,se;const J=mO({overId:q.over?String(q.over.id):null,overStatus:(Z=(H=q.over)==null?void 0:H.data.current)==null?void 0:Z.status,overIsColumn:((se=(te=q.over)==null?void 0:te.data.current)==null?void 0:se.isColumn)===!0,activeSlug:y,activeStatus:_==null?void 0:_.frontmatter.status,originIndex:N,columns:R});T((J==null?void 0:J.status)??null),w((J==null?void 0:J.position)??-1)},P=q=>{var Z,te,se,z;const J=String(q.active.id),H=pO({activeSlug:J,activeStatus:_==null?void 0:_.frontmatter.status,overId:q.over?String(q.over.id):null,overStatus:(te=(Z=q.over)==null?void 0:Z.data.current)==null?void 0:te.status,overIsColumn:((z=(se=q.over)==null?void 0:se.data.current)==null?void 0:z.isColumn)===!0,previewStatus:k,previewPosition:C,columns:R});B(),H&&c(J,H.status,H.position)};if(!e)return x.jsx(gO,{});const X=y!==null;return o&&!l.trim()&&b.length===0?x.jsx("div",{className:"flex min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] items-center justify-center",children:x.jsxs("div",{className:"w-full max-w-md rounded-md border border-dashed border-sb-iron px-5 py-12 text-center",children:[x.jsx(Qr,{"aria-hidden":"true",className:"mx-auto h-5 w-5 text-sb-silver"}),x.jsx("p",{className:"mt-3 font-mono text-[13px] text-sb-frosted",children:"No live tasks are flagged."}),x.jsx("button",{className:"mt-4 inline-flex h-9 items-center gap-2 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:()=>u(!1),children:"Show all tasks"})]})}):l.trim()&&b.length===0?x.jsx("div",{className:"flex min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] items-center justify-center",children:x.jsxs("div",{className:"w-full max-w-md rounded-md border border-dashed border-sb-iron px-5 py-12 text-center",children:[x.jsx(sm,{"aria-hidden":"true",className:"mx-auto h-5 w-5 text-sb-silver"}),x.jsx("p",{className:"mt-3 font-mono text-[13px] text-sb-frosted",children:o?`No flagged tasks match “${l.trim()}”.`:`No live tasks match “${l.trim()}”.`}),x.jsx("p",{className:"mt-2 text-[12px] text-sb-silver",children:"Search looks in titles, descriptions, Task Updates, tags, slugs, assignees, and flags."}),f?null:x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"mt-2 text-[12px] text-sb-silver",children:"Archived tasks aren’t searched."}),x.jsxs("button",{className:"mt-4 inline-flex h-9 items-center gap-2 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:d,children:[x.jsx(sa,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Search archive"]})]})]})}):f?x.jsxs("div",{className:"flex min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] gap-4 overflow-x-auto pb-4",children:[x.jsx(sy,{files:i}),R.map(q=>{var J;return x.jsx(uO,{id:q.id,label:q.label,tasks:q.tasks,searchContext:h.contextBySlug,isDone:q.isDone,capMax:q.isDone&&!m?((J=e.done_display)==null?void 0:J.max)??0:0},q.id)})]}):x.jsxs(xR,{id:"shipbench-board-dnd",collisionDetection:aO,sensors:A,onDragStart:F,onDragOver:L,onDragCancel:B,onDragEnd:P,children:[x.jsxs("div",{className:"flex min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] gap-4 overflow-x-auto pb-4",children:[x.jsx(sy,{files:i}),R.map(q=>{var H;const J=q.id===rl;return x.jsx(cO,{id:q.id,label:q.label,tasks:q.tasks,searchContext:h.contextBySlug,activeSlug:y,indicatorIndex:y&&!M&&!J&&!q.isDone&&k===q.id?lO(q.tasks,y,C):null,sortable:!J&&!q.isDone,isActive:!J&&k===q.id,isDisabledTarget:J&&X,canCreate:!J&&!q.isDone,isDone:q.isDone,capMax:q.isDone&&!m?((H=e.done_display)==null?void 0:H.max)??0:0},q.id)})]}),x.jsx(HR,{dropAnimation:null,children:_?x.jsx(op,{task:_,status:_.frontmatter.status,searchMatch:h.contextBySlug.get(_.slug)}):null})]})}function uO({id:e,label:n,tasks:i,searchContext:l,isDone:o,capMax:u}){const[c,f]=E.useState(!1),d=u>0?u:1/0,b=Number.isFinite(d)&&!c&&i.length>d?i.slice(0,d):i,m=i.length-b.length,y=i.length>0?b.map(v=>x.jsx(op,{task:v,status:e,draggable:!1,searchMatch:l.get(v.slug)},v.slug)):x.jsx(M5,{});return x.jsxs("section",{className:"flex w-[20rem] shrink-0 flex-col rounded-md border border-sb-iron transition-colors",children:[x.jsx(sp,{label:n,count:i.length,flagged:o?0:i.filter(Gu).length}),x.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-3",children:[y,(m>0||c&&Number.isFinite(d))&&x.jsx(O5,{hidden:m,expanded:c,onToggle:()=>f(v=>!v)})]})]})}function sy({files:e}){return e.length===0?null:x.jsxs("section",{"aria-label":"Unreadable task files",className:"flex w-[20rem] shrink-0 flex-col rounded-md border border-sb-iron",children:[x.jsx(sp,{label:"Unreadable",count:e.length}),x.jsx("div",{className:"flex flex-1 flex-col gap-3 p-3",children:e.map(n=>x.jsx(ky,{file:n},n.path))})]})}function O5({hidden:e,expanded:n,onToggle:i}){return x.jsx("button",{type:"button",onClick:i,className:"rounded-md border border-dashed border-sb-iron px-3 py-2 text-center font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted",children:n?"Show recent":`Show ${e} more`})}function sp({label:e,count:n,flagged:i=0,children:l}){return x.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-2 border-b border-sb-iron px-3",children:[x.jsxs("h2",{className:"flex min-w-0 items-center gap-2",children:[x.jsx("span",{className:"h-2.5 w-2.5 shrink-0 bg-sb-frosted","aria-hidden":"true"}),x.jsx("span",{className:"truncate font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:e})]}),x.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[i>0?x.jsxs("span",{className:"inline-flex items-center gap-1 rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver","aria-label":`${i} flagged`,title:`${i} flagged`,children:[x.jsx(Qr,{"aria-hidden":"true",className:"h-3 w-3 text-sb-warning"}),i]}):null,x.jsx("span",{className:"rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:n}),l]})]})}function M5(){return x.jsx("div",{className:"rounded-md border border-dashed border-sb-iron px-3 py-8 text-center font-mono text-[12px] text-sb-silver",children:"Empty"})}function yh({tail:e=!1}){return x.jsx("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-x-0 z-10 h-0.5 rounded-full bg-sb-frosted ${e?"-bottom-1.5":"-top-1.5"}`})}function cO({id:e,label:n,tasks:i,searchContext:l,activeSlug:o,indicatorIndex:u,sortable:c,isActive:f,isDisabledTarget:d,canCreate:h,isDone:b,capMax:m}){const{setNodeRef:y}=C5({id:`column-${e}`,data:{status:e,isColumn:!0}}),[v,k]=E.useState(!1),T=m>0?m:1/0,w=Number.isFinite(T)&&!v&&i.length>T?i.slice(0,T):i,A=i.length-w.length,D=u===null?null:Math.min(u,w.length),R=i.length>0?w.map((N,M)=>x.jsxs("div",{className:"relative",children:[D===M?x.jsx(yh,{}):null,x.jsx(op,{task:N,status:e,draggable:c,isPlaceholder:o===N.slug,searchMatch:l.get(N.slug)}),D===w.length&&M===w.length-1?x.jsx(yh,{tail:!0}):null]},N.slug)):h?x.jsxs("div",{className:"relative flex flex-col",children:[D===null?null:x.jsx(yh,{}),x.jsx(dO,{status:e,label:n})]}):x.jsx(M5,{}),_=f?"border-sb-silver":d?"border-dashed border-sb-iron":"border-sb-iron";return x.jsxs("section",{className:`flex w-[20rem] shrink-0 flex-col rounded-md border transition-colors ${_} ${d?"pointer-events-none opacity-40":""}`,ref:y,children:[x.jsx(sp,{label:n,count:i.length,flagged:b?0:i.filter(Gu).length,children:h?x.jsx(fO,{status:e,label:n}):null}),x.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-3",children:[c?x.jsx(PR,{items:w.map(N=>N.slug),strategy:oO,children:R}):R,(A>0||v&&Number.isFinite(T))&&x.jsx(O5,{hidden:A,expanded:v,onToggle:()=>k(N=>!N)}),h&&i.length>0?x.jsx(hO,{status:e,label:n}):null]})]})}function fO({status:e,label:n}){return x.jsx(yc,{initialStatus:e,trigger:x.jsx("button",{type:"button","aria-label":`Add task to ${n}`,className:"inline-flex h-6 w-6 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted",children:x.jsx(Lo,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})})}function dO({status:e,label:n}){return x.jsx(yc,{initialStatus:e,trigger:x.jsxs("button",{type:"button","aria-label":`Add first task to ${n}`,className:"group flex min-h-28 flex-col items-center justify-center gap-2 rounded-md border border-dashed border-sb-iron px-3 py-8 text-center font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:bg-sb-surface focus-visible:text-sb-frosted",children:[x.jsx("span",{className:"inline-flex h-7 w-7 items-center justify-center rounded border border-sb-iron bg-sb-surface2 text-sb-silver transition-colors group-hover:text-sb-frosted",children:x.jsx(Lo,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),"Add task"]})})}function hO({status:e,label:n}){return x.jsx(yc,{initialStatus:e,trigger:x.jsxs("button",{type:"button","aria-label":`Add task to ${n} from column bottom`,className:"flex w-full items-center justify-center gap-1.5 rounded-md border border-dashed border-sb-iron px-3 py-2 font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",children:[x.jsx(Lo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Add task"]})})}function mO({overId:e,overStatus:n,overIsColumn:i,activeSlug:l,activeStatus:o,originIndex:u,columns:c}){if(!e)return null;if(e===l)return o?{status:o,position:u}:null;if(!n||n===rl)return null;if(i)return{status:n,position:-1};const f=c.find(d=>d.id===n);return f?{status:n,position:j5({tasks:f.tasks,overSlug:e,activeSlug:l,sameColumn:o===n})}:{status:n,position:-1}}function pO({activeSlug:e,activeStatus:n,overId:i,overStatus:l,overIsColumn:o,previewStatus:u,previewPosition:c,columns:f}){const d=l&&l!==rl?l:u;if(!d)return null;let h=c;if(i&&i!==e&&!o){const y=f.find(v=>v.id===d);y&&(h=j5({tasks:y.tasks,overSlug:i,activeSlug:e,sameColumn:n===d}))}else o&&(h=-1);const b=f.find(y=>y.id===n),m=b?b.tasks.findIndex(y=>y.slug===e):-1;return d===n&&h===m?null:{status:d,position:h}}function j5({tasks:e,overSlug:n,activeSlug:i,sameColumn:l}){const u=e.filter(c=>c.slug!==i).findIndex(c=>c.slug===n);if(u<0)return-1;if(l&&i){const c=e.findIndex(d=>d.slug===i),f=e.findIndex(d=>d.slug===n);if(c>=0&&f>=0)return c<f?u+1:u}return u}function gO(){return x.jsx("div",{className:"grid min-h-[70vh] place-items-center font-mono text-[12px] text-sb-silver",children:"Loading board..."})}function bO(){const e=pe(o=>o.selectedTaskSlug),n=pe(o=>o.archiveViewOpen),i=pe(o=>o.selectTask),l=pe(o=>o.closeArchive);return W2(o=>{o.key==="Escape"&&(n?l():i(null))}),x.jsx("main",{className:"min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h))] px-5 py-5",children:n?x.jsx(hw,{}):e?x.jsx(JD,{slug:e}):x.jsx(sO,{})})}const am="sb-theme",vO=[{value:"system",label:"System theme",Icon:ew},{value:"light",label:"Light theme",Icon:G4},{value:"dark",label:"Dark theme",Icon:Q4}];function _5(){try{const e=localStorage.getItem(am);return e==="light"||e==="dark"?e:"system"}catch{return"system"}}function yO(){const e=document.documentElement,n=_5();n==="system"?e.removeAttribute("data-theme"):e.dataset.theme=n}function xO(e){const n=document.documentElement;try{e==="system"?(n.removeAttribute("data-theme"),localStorage.removeItem(am)):(n.dataset.theme=e,localStorage.setItem(am,e))}catch{e==="system"?n.removeAttribute("data-theme"):n.dataset.theme=e}}function SO(){const[e,n]=E.useState(_5);return x.jsx("div",{className:"inline-flex h-9 items-center gap-0.5 rounded border border-sb-iron px-0.5",children:vO.map(({value:i,label:l,Icon:o})=>{const u=e===i;return x.jsx("button",{type:"button","aria-label":l,"aria-pressed":u,title:l,onClick:()=>{n(i),xO(i)},className:`rounded p-1.5 transition-colors ${u?"bg-sb-accent/15 text-sb-accent":"text-sb-silver hover:text-sb-frosted"}`,children:x.jsx(o,{className:"h-3.5 w-3.5","aria-hidden":!0})},i)})})}const wO=200;function CO({themeControl:e=!1}){const n=E.useRef(null),i=E.useRef(null),l=pe(M=>M.config),o=pe(M=>M.selectedTaskSlug),u=pe(M=>M.archiveViewOpen),c=pe(M=>M.selectedTaskSlug?M.tasks.find(B=>B.slug===M.selectedTaskSlug):null),f=pe(M=>M.selectTask),d=pe(M=>M.openArchive),h=pe(M=>M.closeArchive),b=pe(M=>M.refresh),m=pe(M=>M.isSyncing),y=pe(M=>M.lastSyncedAt),v=pe(M=>M.setSearchQuery),k=pe(M=>M.readOnly),T=pe(M=>M.flaggedOnly),C=pe(M=>M.setFlaggedOnly),w=pe(M=>M.tasks.filter(B=>{var F;return B.frontmatter.status!==((F=M.config)==null?void 0:F.done_column)&&Gu(B)}).length),[A,D]=E.useState("");E.useLayoutEffect(()=>{const M=n.current,B=M==null?void 0:M.parentElement;if(!M||!B)return;const F=()=>{const P=M.getBoundingClientRect().height;P>0&&B.style.setProperty("--sb-header-h",`${P}px`)};F();const L=typeof ResizeObserver>"u"?null:new ResizeObserver(F);return L==null||L.observe(M),window.addEventListener("resize",F),()=>{L==null||L.disconnect(),window.removeEventListener("resize",F),B.style.removeProperty("--sb-header-h")}},[]),E.useEffect(()=>{const M=window.setTimeout(()=>{v(A)},wO);return()=>window.clearTimeout(M)},[A,v]);const R=()=>{var M;D(""),v(""),(M=i.current)==null||M.focus()},_=M=>{M.key==="Escape"&&(A!==""?R():f(null))},N=(l==null?void 0:l.name)??"";return x.jsx("header",{ref:n,className:"sticky top-[var(--sb-sticky-top,0px)] z-10 border-b border-sb-iron bg-sb-canvas/95 px-5 py-3",children:x.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[x.jsxs("nav",{"aria-label":"Breadcrumb",className:"flex min-w-0 items-center gap-2 font-mono text-[12px]",children:[N?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"truncate text-sb-silver",children:N}),x.jsx(xh,{})]}):null,x.jsx(EO,{label:"Tasks",isCurrent:!o&&!u,onClick:()=>{h(),f(null)}}),u?x.jsxs(x.Fragment,{children:[x.jsx(xh,{}),x.jsx("span",{"aria-current":"page",className:"truncate text-sb-frosted",children:"Archive"})]}):o?x.jsxs(x.Fragment,{children:[x.jsx(xh,{}),x.jsx("span",{className:"truncate text-sb-frosted",children:(c==null?void 0:c.frontmatter.title)??o})]}):null]}),x.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[u?null:x.jsxs("div",{className:"relative min-w-0 sm:w-80",children:[x.jsx(sm,{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-sb-silver"}),x.jsx("input",{ref:i,"aria-label":"Search tasks",className:"h-9 w-full rounded border border-sb-iron bg-sb-surface2 pl-9 pr-9 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Search tasks",value:A,onChange:M=>D(M.target.value),onKeyDown:_}),A?x.jsx("button",{"aria-label":"Clear search",className:"absolute right-1 top-1/2 inline-flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded text-sb-silver transition-colors hover:text-sb-frosted focus-visible:text-sb-frosted",type:"button",onClick:R,children:x.jsx(oa,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}):null]}),u||w===0&&!T?null:x.jsxs("button",{"aria-pressed":T,className:`inline-flex h-9 items-center justify-center gap-2 rounded border px-3 font-mono text-[11px] transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted ${T?"border-sb-silver bg-sb-surface2 text-sb-frosted":"border-sb-iron bg-transparent text-sb-silver"}`,type:"button",onClick:()=>C(!T),children:[x.jsx(Qr,{"aria-hidden":"true",className:`h-3.5 w-3.5 ${w>0?"text-sb-warning":""}`}),"Flagged",x.jsx("span",{className:"tabular-nums",children:w})]}),k?x.jsxs("span",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[11px] uppercase tracking-[0.12em] text-sb-silver",children:[x.jsx(K4,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Read only"]}):x.jsxs("button",{"aria-pressed":u,className:`inline-flex h-9 items-center justify-center gap-2 rounded border px-3 font-mono text-[11px] transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted ${u?"border-sb-silver bg-sb-surface2 text-sb-frosted":"border-sb-iron bg-transparent text-sb-silver"}`,type:"button",onClick:d,children:[x.jsx(sa,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive"]}),x.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron bg-transparent px-3 font-mono text-[11px] text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:m,onClick:()=>void b(),children:[x.jsx(by,{"aria-hidden":"true",className:`h-3.5 w-3.5 ${m?"animate-spin":""}`}),y?`Synced ${Ru(y)}`:"Sync"]}),k?null:x.jsx(yc,{}),e?x.jsx(SO,{}):null]})]})})}function EO({label:e,isCurrent:n,onClick:i}){return n?x.jsx("span",{"aria-current":"page",className:"text-sb-frosted",children:e}):x.jsx("button",{className:"text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:i,children:e})}function xh(){return x.jsx(ko,{className:"h-2.5 w-2.5 shrink-0 text-sb-iron"})}const kO=x.jsx(J4,{className:"h-4 w-4 shrink-0 text-sb-silver","aria-hidden":!0}),TO=x.jsx(by,{className:"h-4 w-4 shrink-0 text-sb-silver","aria-hidden":!0});function uy(){return x.jsx(H4,{position:"bottom-right",gap:8,icons:{success:x.jsx(Sy,{className:"h-4 w-4 text-sb-success","aria-hidden":!0}),error:x.jsx(tw,{className:"h-4 w-4 text-sb-danger","aria-hidden":!0}),warning:x.jsx(Qr,{className:"h-4 w-4 text-sb-warning","aria-hidden":!0}),info:kO,loading:TO},toastOptions:{unstyled:!0,classNames:{toast:"flex w-[356px] items-center gap-3 rounded-md border border-sb-iron bg-sb-surface2 px-3.5 py-3",success:"border-l-2 border-l-sb-success",error:"border-l-2 border-l-sb-danger",warning:"border-l-2 border-l-sb-warning",content:"min-w-0 flex-1",title:"font-mono text-[13px] text-sb-frosted",description:"font-mono text-[11px] text-sb-silver",actionButton:"rounded border border-sb-iron px-2.5 py-1.5 font-mono text-[11px] text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface"}}})}const AO=6e4;function DO({api:e}){const n=pe(i=>i.refresh);return E.useEffect(()=>{const i=()=>{document.visibilityState==="visible"&&n()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[n]),E.useEffect(()=>{if(e.onTasksChanged)return e.onTasksChanged(()=>void n());const i=window.setInterval(()=>{document.visibilityState==="visible"&&n()},AO);return()=>window.clearInterval(i)},[e,n]),null}const cy={description:"the description","new-update":"a new task update","edited-update":"an edited task update"};function NO(){const e=pe(d=>d.pendingNavigation),n=pe(d=>d.dirtyDrafts),i=pe(d=>d.discardAndNavigate),l=pe(d=>d.keepEditing),o=E.useRef(null),u=Object.keys(n).length>0;E.useEffect(()=>{if(!u)return;const d=h=>{h.preventDefault(),h.returnValue=""};return window.addEventListener("beforeunload",d),()=>window.removeEventListener("beforeunload",d)},[u]);const c=new Set(Object.values(n)),f=Object.keys(cy).filter(d=>c.has(d)).map(d=>cy[d]);return x.jsx(gm,{open:e!==null,onOpenChange:d=>{d||l()},children:x.jsxs(bm,{children:[x.jsx(vm,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=open]:fade-in"}),x.jsxs(ym,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-md border border-sb-iron bg-sb-surface p-5 outline-none",onOpenAutoFocus:d=>{var h;d.preventDefault(),(h=o.current)==null||h.focus()},children:[x.jsx(xm,{className:"text-base font-semibold text-sb-frosted",children:"Discard unsaved changes?"}),x.jsxs(Sm,{className:"mt-1 text-[13px] leading-relaxed text-sb-silver",children:["You have unsaved changes to ",RO(f),". Leaving this task discards them."]}),x.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[x.jsx(Eo,{asChild:!0,children:x.jsx("button",{ref:o,className:"h-9 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-ironlit hover:bg-sb-surface2",type:"button",children:"Keep editing"})}),x.jsx("button",{className:"h-9 rounded bg-sb-danger px-4 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-danger/90",type:"button",onClick:i,children:"Discard"})]})]})]})})}function RO(e){return e.length<=1?e[0]??"this task":`${e.slice(0,-1).join(", ")} and ${e.at(-1)}`}const fy="ShipBench Board";function OO(e){const n=pe(i=>{var l;return(l=i.config)==null?void 0:l.name});E.useEffect(()=>{if(!e)return;const i=document.title,l=n==null?void 0:n.trim();return document.title=l?`${l} — ${fy}`:fy,()=>{document.title=i}},[e,n])}function MO({api:e,themeControl:n,documentTitle:i,navigation:l}){return x.jsx(V4,{api:e,navigation:l,children:x.jsx(jO,{api:e,themeControl:n,documentTitle:i})})}function jO({api:e,themeControl:n,documentTitle:i}){const l=pe(h=>h.refresh),o=pe(h=>h.hasLoaded),u=pe(h=>h.initialLoadError),c=pe(h=>h.isSyncing),f=E.useRef(null);OO(i),E.useEffect(()=>{l()},[l]);const d=E.useMemo(()=>c?"Retrying...":"Retry",[c]);return!o&&u?x.jsxs("div",{className:"sb-canvas-grid min-h-[var(--sb-viewport-h,100vh)] p-6 font-sans text-sb-frosted",children:[x.jsx(Bb,{}),x.jsxs("div",{className:"mx-auto flex min-h-[70vh] max-w-xl flex-col justify-center",children:[x.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-sb-silver",children:"ShipBench could not load"}),x.jsx("h1",{className:"mt-3 text-2xl font-semibold text-sb-frosted",children:"Board unavailable"}),x.jsx("p",{className:"mt-3 text-[13px] leading-relaxed text-sb-silver",children:u}),x.jsx("button",{className:"mt-6 w-fit rounded border border-sb-iron bg-transparent px-4 py-2 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:()=>void l(),children:d})]}),x.jsx(uy,{})]}):x.jsx(J2.Provider,{value:f,children:x.jsxs("div",{ref:f,className:"sb-board-root sb-canvas-grid min-h-[var(--sb-viewport-h,100vh)] font-sans text-sb-frosted",children:[x.jsx(Bb,{}),x.jsx(DO,{api:e}),x.jsx(CO,{themeControl:n}),x.jsx(bO,{}),x.jsx(NO,{}),x.jsx(uy,{})]})})}function _O(e,n){const i=i4.createRoot(e);return i.render(x.jsx(MO,{api:n.api,themeControl:n.themeControl,documentTitle:n.documentTitle,navigation:n.navigation})),i}function LO(e){return Object.fromEntries(Object.entries(e).map(([n,i])=>[n,i===void 0?null:i]))}async function Kn(e,n){const i=await fetch(e,n);if(!i.ok){let l=`${i.status} ${i.statusText}`;try{const o=await i.json();typeof o.error=="string"&&(l=o.error)}catch{const o=await i.text();o&&(l=o)}throw new Error(l)}if(i.status!==204)return await i.json()}function Jl(e){return{headers:{"content-type":"application/json"},body:JSON.stringify(e)}}const zO={getConfig:()=>Kn("/api/config"),listTasks:()=>Kn("/api/tasks"),listArchivedTasks:()=>Kn("/api/tasks/archived"),createTask:(e,n)=>Kn("/api/tasks",{method:"POST",...Jl({title:e,fields:n})}),updateTask:(e,n,i)=>Kn(`/api/tasks/${encodeURIComponent(e)}`,{method:"PATCH",...Jl({fields:LO(n),body:i})}),addComment:(e,n)=>Kn(`/api/tasks/${encodeURIComponent(e)}/comments`,{method:"POST",...Jl({text:n})}),editComment:(e,n,i)=>Kn(`/api/tasks/${encodeURIComponent(e)}/comments/${encodeURIComponent(n)}`,{method:"PATCH",...Jl({text:i})}),deleteComment:(e,n)=>Kn(`/api/tasks/${encodeURIComponent(e)}/comments/${encodeURIComponent(n)}`,{method:"DELETE"}),async moveTask(e,n){return(await this.reorderTask(e,n,-1)).task},reorderTask:(e,n,i)=>Kn(`/api/tasks/${encodeURIComponent(e)}/reorder`,{method:"POST",...Jl({toStatus:n,position:i})}),archiveTask:(e,n)=>Kn(`/api/tasks/${encodeURIComponent(e)}/archive`,{method:"POST",...Jl(n??{})}),unarchiveTask:e=>Kn(`/api/tasks/${encodeURIComponent(e)}/unarchive`,{method:"POST"}),deleteTask:e=>Kn(`/api/tasks/${encodeURIComponent(e)}`,{method:"DELETE"}),onTasksChanged(e){const n=new EventSource("/api/events");return n.addEventListener("tasks-changed",e),()=>n.close()}},L5=document.getElementById("root");if(!L5)throw new Error("No #root element found in index.html.");yO();_O(L5,{api:zO,themeControl:!0,documentTitle:!0,navigation:GS()});