opsx-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/cli/index.js +69 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/archive-source.js +2 -0
- package/dist/core/archive-source.js.map +1 -0
- package/dist/core/cli-openspec-source.js +75 -0
- package/dist/core/cli-openspec-source.js.map +1 -0
- package/dist/core/cli-runner.js +29 -0
- package/dist/core/cli-runner.js.map +1 -0
- package/dist/core/errors.js +30 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/filesystem-source.js +107 -0
- package/dist/core/filesystem-source.js.map +1 -0
- package/dist/core/index.js +9 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/mappers.js +129 -0
- package/dist/core/mappers.js.map +1 -0
- package/dist/core/openspec-source.js +2 -0
- package/dist/core/openspec-source.js.map +1 -0
- package/dist/core/snapshot-service.js +36 -0
- package/dist/core/snapshot-service.js.map +1 -0
- package/dist/server/project-resolver.js +66 -0
- package/dist/server/project-resolver.js.map +1 -0
- package/dist/server/session.js +75 -0
- package/dist/server/session.js.map +1 -0
- package/dist/server/viewer-server.js +207 -0
- package/dist/server/viewer-server.js.map +1 -0
- package/dist/server/watcher.js +119 -0
- package/dist/server/watcher.js.map +1 -0
- package/dist/shared/contracts.js +7 -0
- package/dist/shared/contracts.js.map +1 -0
- package/dist/web/assets/index-BMLiBs2s.js +252 -0
- package/dist/web/assets/index-CVejAWk_.css +1 -0
- package/dist/web/index.html +32 -0
- package/package.json +84 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
var Nb=Object.defineProperty;var _b=(n,i,r)=>i in n?Nb(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r;var ji=(n,i,r)=>_b(n,typeof i!="symbol"?i+"":i,r);function By(n,i){for(var r=0;r<i.length;r++){const u=i[r];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in n)){const s=Object.getOwnPropertyDescriptor(u,o);s&&Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&u(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function Oo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Wc={exports:{}},Da={};/**
|
|
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 og;function Ob(){if(og)return Da;og=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var h in o)h!=="key"&&(s[h]=o[h])}else s=o;return o=s.ref,{$$typeof:n,type:u,key:c,ref:o!==void 0?o:null,props:s}}return Da.Fragment=i,Da.jsx=r,Da.jsxs=r,Da}var sg;function jb(){return sg||(sg=1,Wc.exports=Ob()),Wc.exports}var E=jb(),ef={exports:{}},_e={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var cg;function Lb(){if(cg)return _e;cg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,_={};function R(z,F,w){this.props=z,this.context=F,this.refs=_,this.updater=w||k}R.prototype.isReactComponent={},R.prototype.setState=function(z,F){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,F,"setState")},R.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function U(){}U.prototype=R.prototype;function Y(z,F,w){this.props=z,this.context=F,this.refs=_,this.updater=w||k}var te=Y.prototype=new U;te.constructor=Y,M(te,R.prototype),te.isPureReactComponent=!0;var oe=Array.isArray;function G(){}var N={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function me(z,F,w){var ce=w.ref;return{$$typeof:n,type:z,key:F,ref:ce!==void 0?ce:null,props:w}}function O(z,F){return me(z.type,F,z.props)}function ie(z){return typeof z=="object"&&z!==null&&z.$$typeof===n}function P(z){var F={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(w){return F[w]})}var ke=/\/+/g;function se(z,F){return typeof z=="object"&&z!==null&&z.key!=null?P(""+z.key):F.toString(36)}function le(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(G,G):(z.status="pending",z.then(function(F){z.status==="pending"&&(z.status="fulfilled",z.value=F)},function(F){z.status==="pending"&&(z.status="rejected",z.reason=F)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,F,w,ce,be){var ve=typeof z;(ve==="undefined"||ve==="boolean")&&(z=null);var Ne=!1;if(z===null)Ne=!0;else switch(ve){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(z.$$typeof){case n:case i:Ne=!0;break;case y:return Ne=z._init,B(Ne(z._payload),F,w,ce,be)}}if(Ne)return be=be(z),Ne=ce===""?"."+se(z,0):ce,oe(be)?(w="",Ne!=null&&(w=Ne.replace(ke,"$&/")+"/"),B(be,F,w,"",function($t){return $t})):be!=null&&(ie(be)&&(be=O(be,w+(be.key==null||z&&z.key===be.key?"":(""+be.key).replace(ke,"$&/")+"/")+Ne)),F.push(be)),1;Ne=0;var et=ce===""?".":ce+":";if(oe(z))for(var $e=0;$e<z.length;$e++)ce=z[$e],ve=et+se(ce,$e),Ne+=B(ce,F,w,ve,be);else if($e=b(z),typeof $e=="function")for(z=$e.call(z),$e=0;!(ce=z.next()).done;)ce=ce.value,ve=et+se(ce,$e++),Ne+=B(ce,F,w,ve,be);else if(ve==="object"){if(typeof z.then=="function")return B(le(z),F,w,ce,be);throw F=String(z),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function ee(z,F,w){if(z==null)return z;var ce=[],be=0;return B(z,ce,"","",function(ve){return F.call(w,ve,be++)}),ce}function ue(z){if(z._status===-1){var F=z._result;F=F(),F.then(function(w){(z._status===0||z._status===-1)&&(z._status=1,z._result=w)},function(w){(z._status===0||z._status===-1)&&(z._status=2,z._result=w)}),z._status===-1&&(z._status=0,z._result=F)}if(z._status===1)return z._result.default;throw z._result}var ze=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},C={map:ee,forEach:function(z,F,w){ee(z,function(){F.apply(this,arguments)},w)},count:function(z){var F=0;return ee(z,function(){F++}),F},toArray:function(z){return ee(z,function(F){return F})||[]},only:function(z){if(!ie(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return _e.Activity=g,_e.Children=C,_e.Component=R,_e.Fragment=r,_e.Profiler=o,_e.PureComponent=Y,_e.StrictMode=u,_e.Suspense=p,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,_e.__COMPILER_RUNTIME={__proto__:null,c:function(z){return N.H.useMemoCache(z)}},_e.cache=function(z){return function(){return z.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(z,F,w){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ce=M({},z.props),be=z.key;if(F!=null)for(ve in F.key!==void 0&&(be=""+F.key),F)!ne.call(F,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&F.ref===void 0||(ce[ve]=F[ve]);var ve=arguments.length-2;if(ve===1)ce.children=w;else if(1<ve){for(var Ne=Array(ve),et=0;et<ve;et++)Ne[et]=arguments[et+2];ce.children=Ne}return me(z.type,be,ce)},_e.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},_e.createElement=function(z,F,w){var ce,be={},ve=null;if(F!=null)for(ce in F.key!==void 0&&(ve=""+F.key),F)ne.call(F,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(be[ce]=F[ce]);var Ne=arguments.length-2;if(Ne===1)be.children=w;else if(1<Ne){for(var et=Array(Ne),$e=0;$e<Ne;$e++)et[$e]=arguments[$e+2];be.children=et}if(z&&z.defaultProps)for(ce in Ne=z.defaultProps,Ne)be[ce]===void 0&&(be[ce]=Ne[ce]);return me(z,ve,be)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(z){return{$$typeof:h,render:z}},_e.isValidElement=ie,_e.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:ue}},_e.memo=function(z,F){return{$$typeof:m,type:z,compare:F===void 0?null:F}},_e.startTransition=function(z){var F=N.T,w={};N.T=w;try{var ce=z(),be=N.S;be!==null&&be(w,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(G,ze)}catch(ve){ze(ve)}finally{F!==null&&w.types!==null&&(F.types=w.types),N.T=F}},_e.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},_e.use=function(z){return N.H.use(z)},_e.useActionState=function(z,F,w){return N.H.useActionState(z,F,w)},_e.useCallback=function(z,F){return N.H.useCallback(z,F)},_e.useContext=function(z){return N.H.useContext(z)},_e.useDebugValue=function(){},_e.useDeferredValue=function(z,F){return N.H.useDeferredValue(z,F)},_e.useEffect=function(z,F){return N.H.useEffect(z,F)},_e.useEffectEvent=function(z){return N.H.useEffectEvent(z)},_e.useId=function(){return N.H.useId()},_e.useImperativeHandle=function(z,F,w){return N.H.useImperativeHandle(z,F,w)},_e.useInsertionEffect=function(z,F){return N.H.useInsertionEffect(z,F)},_e.useLayoutEffect=function(z,F){return N.H.useLayoutEffect(z,F)},_e.useMemo=function(z,F){return N.H.useMemo(z,F)},_e.useOptimistic=function(z,F){return N.H.useOptimistic(z,F)},_e.useReducer=function(z,F,w){return N.H.useReducer(z,F,w)},_e.useRef=function(z){return N.H.useRef(z)},_e.useState=function(z){return N.H.useState(z)},_e.useSyncExternalStore=function(z,F,w){return N.H.useSyncExternalStore(z,F,w)},_e.useTransition=function(){return N.H.useTransition()},_e.version="19.2.7",_e}var fg;function Qf(){return fg||(fg=1,ef.exports=Lb()),ef.exports}var I=Qf();const Ub=Oo(I),Bb=By({__proto__:null,default:Ub},[I]);var tf={exports:{}},Ra={},nf={exports:{}},lf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var dg;function Hb(){return dg||(dg=1,(function(n){function i(B,ee){var ue=B.length;B.push(ee);e:for(;0<ue;){var ze=ue-1>>>1,C=B[ze];if(0<o(C,ee))B[ze]=ee,B[ue]=C,ue=ze;else break e}}function r(B){return B.length===0?null:B[0]}function u(B){if(B.length===0)return null;var ee=B[0],ue=B.pop();if(ue!==ee){B[0]=ue;e:for(var ze=0,C=B.length,z=C>>>1;ze<z;){var F=2*(ze+1)-1,w=B[F],ce=F+1,be=B[ce];if(0>o(w,ue))ce<C&&0>o(be,w)?(B[ze]=be,B[ce]=ue,ze=ce):(B[ze]=w,B[F]=ue,ze=F);else if(ce<C&&0>o(be,ue))B[ze]=be,B[ce]=ue,ze=ce;else break e}}return ee}function o(B,ee){var ue=B.sortIndex-ee.sortIndex;return ue!==0?ue:B.id-ee.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var p=[],m=[],y=1,g=null,x=3,b=!1,k=!1,M=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function te(B){for(var ee=r(m);ee!==null;){if(ee.callback===null)u(m);else if(ee.startTime<=B)u(m),ee.sortIndex=ee.expirationTime,i(p,ee);else break;ee=r(m)}}function oe(B){if(M=!1,te(B),!k)if(r(p)!==null)k=!0,G||(G=!0,P());else{var ee=r(m);ee!==null&&le(oe,ee.startTime-B)}}var G=!1,N=-1,ne=5,me=-1;function O(){return _?!0:!(n.unstable_now()-me<ne)}function ie(){if(_=!1,G){var B=n.unstable_now();me=B;var ee=!0;try{e:{k=!1,M&&(M=!1,U(N),N=-1),b=!0;var ue=x;try{t:{for(te(B),g=r(p);g!==null&&!(g.expirationTime>B&&O());){var ze=g.callback;if(typeof ze=="function"){g.callback=null,x=g.priorityLevel;var C=ze(g.expirationTime<=B);if(B=n.unstable_now(),typeof C=="function"){g.callback=C,te(B),ee=!0;break t}g===r(p)&&u(p),te(B)}else u(p);g=r(p)}if(g!==null)ee=!0;else{var z=r(m);z!==null&&le(oe,z.startTime-B),ee=!1}}break e}finally{g=null,x=ue,b=!1}ee=void 0}}finally{ee?P():G=!1}}}var P;if(typeof Y=="function")P=function(){Y(ie)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,se=ke.port2;ke.port1.onmessage=ie,P=function(){se.postMessage(null)}}else P=function(){R(ie,0)};function le(B,ee){N=R(function(){B(n.unstable_now())},ee)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(B){switch(x){case 1:case 2:case 3:var ee=3;break;default:ee=x}var ue=x;x=ee;try{return B()}finally{x=ue}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(B,ee){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ue=x;x=B;try{return ee()}finally{x=ue}},n.unstable_scheduleCallback=function(B,ee,ue){var ze=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?ze+ue:ze):ue=ze,B){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ue+C,B={id:y++,callback:ee,priorityLevel:B,startTime:ue,expirationTime:C,sortIndex:-1},ue>ze?(B.sortIndex=ue,i(m,B),r(p)===null&&B===r(m)&&(M?(U(N),N=-1):M=!0,le(oe,ue-ze))):(B.sortIndex=C,i(p,B),k||b||(k=!0,G||(G=!0,P()))),B},n.unstable_shouldYield=O,n.unstable_wrapCallback=function(B){var ee=x;return function(){var ue=x;x=ee;try{return B.apply(this,arguments)}finally{x=ue}}}})(lf)),lf}var hg;function qb(){return hg||(hg=1,nf.exports=Hb()),nf.exports}var rf={exports:{}},Ft={};/**
|
|
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 mg;function Vb(){if(mg)return Ft;mg=1;var n=Qf();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Ft.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return s(p,m,null,y)},Ft.flushSync=function(p){var m=c.T,y=u.p;try{if(c.T=null,u.p=2,p)return p()}finally{c.T=m,u.p=y,u.d.f()}},Ft.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},Ft.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},Ft.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=h(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:b}):y==="script"&&u.d.X(p,{crossOrigin:g,integrity:x,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ft.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},Ft.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=h(y,m.crossOrigin);u.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ft.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},Ft.requestFormReset=function(p){u.d.r(p)},Ft.unstable_batchedUpdates=function(p,m){return p(m)},Ft.useFormState=function(p,m,y){return c.H.useFormState(p,m,y)},Ft.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ft.version="19.2.7",Ft}var pg;function Hy(){if(pg)return rf.exports;pg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),rf.exports=Vb(),rf.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 gg;function Yb(){if(gg)return Ra;gg=1;var n=qb(),i=Qf(),r=Hy();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(s(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,a=t;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(a=f.return,a!==null){l=a;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return p(f),e;if(d===a)return p(f),t;d=d.sibling}throw Error(u(188))}if(l.return!==a.return)l=f,a=d;else{for(var v=!1,S=f.child;S;){if(S===l){v=!0,l=f,a=d;break}if(S===a){v=!0,a=f,l=d;break}S=S.sibling}if(!v){for(S=d.child;S;){if(S===l){v=!0,l=d,a=f;break}if(S===a){v=!0,a=d,l=f;break}S=S.sibling}if(!v)throw Error(u(189))}}if(l.alternate!==a)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case R:return"Profiler";case _:return"StrictMode";case oe:return"Suspense";case G:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case Y:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var le=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},ze=[],C=-1;function z(e){return{current:e}}function F(e){0>C||(e.current=ze[C],ze[C]=null,C--)}function w(e,t){C++,ze[C]=e.current,e.current=t}var ce=z(null),be=z(null),ve=z(null),Ne=z(null);function et(e,t){switch(w(ve,t),w(be,e),w(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rp(t),e=Np(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(ce),w(ce,e)}function $e(){F(ce),F(be),F(ve)}function $t(e){e.memoizedState!==null&&w(Ne,e);var t=ce.current,l=Np(t,e.type);t!==l&&(w(be,e),w(ce,l))}function Un(e){be.current===e&&(F(ce),F(be)),Ne.current===e&&(F(Ne),Ta._currentValue=ue)}var zt,Bn;function wn(e){if(zt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);zt=t&&t[1]||"",Bn=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+zt+e+Bn}var Al=!1;function Wt(e,t){if(!e||Al)return"";Al=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(Q){var V=Q}Reflect.construct(e,[],$)}else{try{$.call()}catch(Q){V=Q}e.call($.prototype)}}else{try{throw Error()}catch(Q){V=Q}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(Q){if(Q&&V&&typeof Q.stack=="string")return[Q.stack,V.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=a.DetermineComponentFrameRoot(),v=d[0],S=d[1];if(v&&S){var T=v.split(`
|
|
44
|
+
`),q=S.split(`
|
|
45
|
+
`);for(f=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(a===T.length||f===q.length)for(a=T.length-1,f=q.length-1;1<=a&&0<=f&&T[a]!==q[f];)f--;for(;1<=a&&0<=f;a--,f--)if(T[a]!==q[f]){if(a!==1||f!==1)do if(a--,f--,0>f||T[a]!==q[f]){var Z=`
|
|
46
|
+
`+T[a].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=a&&0<=f);break}}}finally{Al=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wn(l):""}function Zi(e,t){switch(e.tag){case 26:case 27:case 5:return wn(e.type);case 16:return wn("Lazy");case 13:return e.child!==t&&t!==null?wn("Suspense Fallback"):wn("Suspense");case 19:return wn("SuspenseList");case 0:case 15:return Wt(e.type,!1);case 11:return Wt(e.type.render,!1);case 1:return Wt(e.type,!0);case 31:return wn("Activity");default:return""}}function Ki(e){try{var t="",l=null;do t+=Zi(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var nl=Object.prototype.hasOwnProperty,Ml=n.unstable_scheduleCallback,di=n.unstable_cancelCallback,Vr=n.unstable_shouldYield,Yr=n.unstable_requestPaint,Et=n.unstable_now,ll=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,ae=n.unstable_UserBlockingPriority,Se=n.unstable_NormalPriority,Me=n.unstable_LowPriority,Ke=n.unstable_IdlePriority,Bt=n.log,Hn=n.unstable_setDisableYieldValue,bt=null,wt=null;function qt(e){if(typeof Bt=="function"&&Hn(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(bt,e)}catch{}}var We=Math.clz32?Math.clz32:Ii,Zn=Math.log,en=Math.LN2;function Ii(e){return e>>>=0,e===0?32:31-(Zn(e)/en|0)|0}var hi=256,Dl=262144,Rl=4194304;function il(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var f=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=a&134217727;return S!==0?(a=S&~d,a!==0?f=il(a):(v&=S,v!==0?f=il(v):l||(l=S&~e,l!==0&&(f=il(l))))):(S=a&~d,S!==0?f=il(S):v!==0?f=il(v):l||(l=a&~e,l!==0&&(f=il(l)))),f===0?0:t!==0&&t!==f&&(t&d)===0&&(d=f&-f,l=t&-t,d>=l||d===32&&(l&4194048)!==0)?t:f}function pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nu(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gi(){var e=Rl;return Rl<<=1,(Rl&62914560)===0&&(Rl=4194304),e}function Nl(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qo(e,t,l,a,f,d){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,T=e.expirationTimes,q=e.hiddenUpdates;for(l=v&~l;0<l;){var Z=31-We(l),$=1<<Z;S[Z]=0,T[Z]=-1;var V=q[Z];if(V!==null)for(q[Z]=null,Z=0;Z<V.length;Z++){var Q=V[Z];Q!==null&&(Q.lane&=-536870913)}l&=~$}a!==0&&A(e,a,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function A(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-We(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function L(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-We(l),f=1<<a;f&t|e[a]&t&&(e[a]|=t),l&=~f}}function X(e,t){var l=t&-t;return l=(l&42)!==0?1:W(l),(l&(e.suspendedLanes|t))!==0?0:l}function W(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function fe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ee(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:tg(e.type))}function Ae(e,t){var l=ee.p;try{return ee.p=e,t()}finally{ee.p=l}}var pe=Math.random().toString(36).slice(2),he="__reactFiber$"+pe,de="__reactProps$"+pe,ye="__reactContainer$"+pe,De="__reactEvents$"+pe,Ye="__reactListeners$"+pe,Lt="__reactHandles$"+pe,tt="__reactResources$"+pe,Be="__reactMarker$"+pe;function dt(e){delete e[he],delete e[de],delete e[De],delete e[Ye],delete e[Lt]}function dn(e){var t=e[he];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ye]||l[he]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Hp(e);e!==null;){if(l=e[he])return l;e=Hp(e)}return t}e=l,l=e.parentNode}return null}function kn(e){if(e=e[he]||e[ye]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function It(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Vt(e){var t=e[tt];return t||(t=e[tt]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[Be]=!0}var _l=new Set,Kn={};function Cn(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(Kn[e]=t,e=0;e<t.length;e++)_l.add(t[e])}var Fe=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]*$"),ht={},rl={};function vi(e){return nl.call(rl,e)?!0:nl.call(ht,e)?!1:Fe.test(e)?rl[e]=!0:(ht[e]=!0,!1)}function mt(e,t,l){if(vi(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Vn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Tn(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function C1(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,d=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fo(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=C1(e,t,""+e[t])}}function kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=wd(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function lu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var T1=/[\n"\\]/g;function zn(e){return e.replace(T1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zo(e,t,l,a,f,d,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Ko(e,v,tn(t)):l!=null?Ko(e,v,tn(l)):a!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+tn(S):e.removeAttribute("name")}function Cd(e,t,l,a,f,d,v,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Fo(e);return}l=l!=null?""+tn(l):"",t=t!=null?""+tn(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}a=a??f,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=S?e.checked:!!a,e.defaultChecked=!!a,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Fo(e)}function Ko(e,t,l){t==="number"&&lu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ji(e,t,l,a){if(e=e.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=t.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&a&&(e[l].defaultSelected=!0)}else{for(l=""+tn(l),t=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,a&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Td(e,t,l){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+tn(l):""}function zd(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(le(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=tn(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Fo(e)}function Pi(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var z1=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 Ad(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||z1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Md(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var f in t)a=t[f],t.hasOwnProperty(f)&&l[f]!==a&&Ad(e,f,a)}else for(var d in t)t.hasOwnProperty(d)&&Ad(e,d,t[d])}function Io(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A1=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"]]),M1=/^[\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 iu(e){return M1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function al(){}var Jo=null;function Po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $i=null,Wi=null;function Dd(e){var t=kn(e);if(t&&(e=t.stateNode)){var l=e[de]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zo(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var f=a[de]||null;if(!f)throw Error(u(90));Zo(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&kd(a)}break e;case"textarea":Td(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ji(e,!!l.multiple,t,!1)}}}var $o=!1;function Rd(e,t,l){if($o)return e(t,l);$o=!0;try{var a=e(t);return a}finally{if($o=!1,($i!==null||Wi!==null)&&(Qu(),$i&&(t=$i,e=Wi,Wi=$i=null,Dd(t),e)))for(t=0;t<e.length;t++)Dd(e[t])}}function Gr(e,t){var l=e.stateNode;if(l===null)return null;var a=l[de]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var ul=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(ul)try{var Xr={};Object.defineProperty(Xr,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{Wo=!1}var Ol=null,es=null,ru=null;function Nd(){if(ru)return ru;var e,t=es,l=t.length,a,f="value"in Ol?Ol.value:Ol.textContent,d=f.length;for(e=0;e<l&&t[e]===f[e];e++);var v=l-e;for(a=1;a<=v&&t[l-a]===f[d-a];a++);return ru=f.slice(e,1<a?1-a:void 0)}function au(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uu(){return!0}function _d(){return!1}function nn(e){function t(l,a,f,d,v){this._reactName=l,this._targetInst=f,this.type=a,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?uu:_d,this.isPropagationStopped=_d,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),t}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ou=nn(bi),Qr=g({},bi,{view:0,detail:0}),D1=nn(Qr),ts,ns,Fr,su=g({},Qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:is,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fr&&(Fr&&e.type==="mousemove"?(ts=e.screenX-Fr.screenX,ns=e.screenY-Fr.screenY):ns=ts=0,Fr=e),ts)},movementY:function(e){return"movementY"in e?e.movementY:ns}}),Od=nn(su),R1=g({},su,{dataTransfer:0}),N1=nn(R1),_1=g({},Qr,{relatedTarget:0}),ls=nn(_1),O1=g({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),j1=nn(O1),L1=g({},bi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U1=nn(L1),B1=g({},bi,{data:0}),jd=nn(B1),H1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q1={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"},V1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V1[e])?!!t[e]:!1}function is(){return Y1}var G1=g({},Qr,{key:function(e){if(e.key){var t=H1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:is,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X1=nn(G1),Q1=g({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ld=nn(Q1),F1=g({},Qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:is}),Z1=nn(F1),K1=g({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),I1=nn(K1),J1=g({},su,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),P1=nn(J1),$1=g({},bi,{newState:0,oldState:0}),W1=nn($1),e0=[9,13,27,32],rs=ul&&"CompositionEvent"in window,Zr=null;ul&&"documentMode"in document&&(Zr=document.documentMode);var t0=ul&&"TextEvent"in window&&!Zr,Ud=ul&&(!rs||Zr&&8<Zr&&11>=Zr),Bd=" ",Hd=!1;function qd(e,t){switch(e){case"keyup":return e0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function n0(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Hd=!0,Bd);case"textInput":return e=t.data,e===Bd&&Hd?null:e;default:return null}}function l0(e,t){if(er)return e==="compositionend"||!rs&&qd(e,t)?(e=Nd(),ru=es=Ol=null,er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ud&&t.locale!=="ko"?null:t.data;default:return null}}var i0={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!i0[e.type]:t==="textarea"}function Gd(e,t,l,a){$i?Wi?Wi.push(a):Wi=[a]:$i=a,t=$u(t,"onChange"),0<t.length&&(l=new ou("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Kr=null,Ir=null;function r0(e){Cp(e,0)}function cu(e){var t=It(e);if(kd(t))return e}function Xd(e,t){if(e==="change")return t}var Qd=!1;if(ul){var as;if(ul){var us="oninput"in document;if(!us){var Fd=document.createElement("div");Fd.setAttribute("oninput","return;"),us=typeof Fd.oninput=="function"}as=us}else as=!1;Qd=as&&(!document.documentMode||9<document.documentMode)}function Zd(){Kr&&(Kr.detachEvent("onpropertychange",Kd),Ir=Kr=null)}function Kd(e){if(e.propertyName==="value"&&cu(Ir)){var t=[];Gd(t,Ir,e,Po(e)),Rd(r0,t)}}function a0(e,t,l){e==="focusin"?(Zd(),Kr=t,Ir=l,Kr.attachEvent("onpropertychange",Kd)):e==="focusout"&&Zd()}function u0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cu(Ir)}function o0(e,t){if(e==="click")return cu(t)}function s0(e,t){if(e==="input"||e==="change")return cu(t)}function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hn=typeof Object.is=="function"?Object.is:c0;function Jr(e,t){if(hn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var f=l[a];if(!nl.call(t,f)||!hn(e[f],t[f]))return!1}return!0}function Id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jd(e,t){var l=Id(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Id(l)}}function Pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $d(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=lu(e.document)}return t}function os(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var f0=ul&&"documentMode"in document&&11>=document.documentMode,tr=null,ss=null,Pr=null,cs=!1;function Wd(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;cs||tr==null||tr!==lu(a)||(a=tr,"selectionStart"in a&&os(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pr&&Jr(Pr,a)||(Pr=a,a=$u(ss,"onSelect"),0<a.length&&(t=new ou("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=tr)))}function xi(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var nr={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},fs={},eh={};ul&&(eh=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function Si(e){if(fs[e])return fs[e];if(!nr[e])return e;var t=nr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in eh)return fs[e]=t[l];return e}var th=Si("animationend"),nh=Si("animationiteration"),lh=Si("animationstart"),d0=Si("transitionrun"),h0=Si("transitionstart"),m0=Si("transitioncancel"),ih=Si("transitionend"),rh=new Map,ds="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(" ");ds.push("scrollEnd");function Yn(e,t){rh.set(e,t),Cn(t,[e])}var fu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},An=[],lr=0,hs=0;function du(){for(var e=lr,t=hs=lr=0;t<e;){var l=An[t];An[t++]=null;var a=An[t];An[t++]=null;var f=An[t];An[t++]=null;var d=An[t];if(An[t++]=null,a!==null&&f!==null){var v=a.pending;v===null?f.next=f:(f.next=v.next,v.next=f),a.pending=f}d!==0&&ah(l,f,d)}}function hu(e,t,l,a){An[lr++]=e,An[lr++]=t,An[lr++]=l,An[lr++]=a,hs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ms(e,t,l,a){return hu(e,t,l,a),mu(e)}function Ei(e,t){return hu(e,null,null,t),mu(e)}function ah(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,a=d.alternate,a!==null&&(a.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&t!==null&&(f=31-We(l),e=d.hiddenUpdates,a=e[f],a===null?e[f]=[t]:a.push(t),t.lane=l|536870912),d):null}function mu(e){if(50<ba)throw ba=0,wc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ir={};function p0(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,l,a){return new p0(e,t,l,a)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ol(e,t){var l=e.alternate;return l===null?(l=mn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function uh(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pu(e,t,l,a,f,d){var v=0;if(a=e,typeof e=="function")ps(e)&&(v=1);else if(typeof e=="string")v=xb(e,l,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=mn(31,l,t,f),e.elementType=me,e.lanes=d,e;case M:return wi(l.children,f,d,t);case _:v=8,f|=24;break;case R:return e=mn(12,l,t,f|2),e.elementType=R,e.lanes=d,e;case oe:return e=mn(13,l,t,f),e.elementType=oe,e.lanes=d,e;case G:return e=mn(19,l,t,f),e.elementType=G,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:v=10;break e;case U:v=9;break e;case te:v=11;break e;case N:v=14;break e;case ne:v=16,a=null;break e}v=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=mn(v,l,t,f),t.elementType=e,t.type=a,t.lanes=d,t}function wi(e,t,l,a){return e=mn(7,e,a,t),e.lanes=l,e}function gs(e,t,l){return e=mn(6,e,null,t),e.lanes=l,e}function oh(e){var t=mn(18,null,null,0);return t.stateNode=e,t}function ys(e,t,l){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sh=new WeakMap;function Mn(e,t){if(typeof e=="object"&&e!==null){var l=sh.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ki(t)},sh.set(e,t),t)}return{value:e,source:t,stack:Ki(t)}}var rr=[],ar=0,gu=null,$r=0,Dn=[],Rn=0,jl=null,In=1,Jn="";function sl(e,t){rr[ar++]=$r,rr[ar++]=gu,gu=e,$r=t}function ch(e,t,l){Dn[Rn++]=In,Dn[Rn++]=Jn,Dn[Rn++]=jl,jl=e;var a=In;e=Jn;var f=32-We(a)-1;a&=~(1<<f),l+=1;var d=32-We(t)+f;if(30<d){var v=f-f%5;d=(a&(1<<v)-1).toString(32),a>>=v,f-=v,In=1<<32-We(t)+f|l<<f|a,Jn=d+e}else In=1<<d|l<<f|a,Jn=e}function vs(e){e.return!==null&&(sl(e,1),ch(e,1,0))}function bs(e){for(;e===gu;)gu=rr[--ar],rr[ar]=null,$r=rr[--ar],rr[ar]=null;for(;e===jl;)jl=Dn[--Rn],Dn[Rn]=null,Jn=Dn[--Rn],Dn[Rn]=null,In=Dn[--Rn],Dn[Rn]=null}function fh(e,t){Dn[Rn++]=In,Dn[Rn++]=Jn,Dn[Rn++]=jl,In=t.id,Jn=t.overflow,jl=e}var Yt=null,pt=null,Qe=!1,Ll=null,Nn=!1,xs=Error(u(519));function Ul(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wr(Mn(t,e)),xs}function dh(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[he]=e,t[de]=a,l){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(l=0;l<Sa.length;l++)qe(Sa[l],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),Cd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),zd(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Mp(t.textContent,l)?(a.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),a.onScroll!=null&&qe("scroll",t),a.onScrollEnd!=null&&qe("scrollend",t),a.onClick!=null&&(t.onclick=al),t=!0):t=!1,t||Ul(e,!0)}function hh(e){for(Yt=e.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:Nn=!1;return;case 27:case 3:Nn=!0;return;default:Yt=Yt.return}}function ur(e){if(e!==Yt)return!1;if(!Qe)return hh(e),Qe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Bc(e.type,e.memoizedProps)),l=!l),l&&pt&&Ul(e),hh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));pt=Bp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));pt=Bp(e)}else t===27?(t=pt,Pl(e.type)?(e=Gc,Gc=null,pt=e):pt=t):pt=Yt?On(e.stateNode.nextSibling):null;return!0}function ki(){pt=Yt=null,Qe=!1}function Ss(){var e=Ll;return e!==null&&(un===null?un=e:un.push.apply(un,e),Ll=null),e}function Wr(e){Ll===null?Ll=[e]:Ll.push(e)}var Es=z(null),Ci=null,cl=null;function Bl(e,t,l){w(Es,t._currentValue),t._currentValue=l}function fl(e){e._currentValue=Es.current,F(Es)}function ws(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ks(e,t,l,a){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var v=f.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=f;for(var T=0;T<t.length;T++)if(S.context===t[T]){d.lanes|=l,S=d.alternate,S!==null&&(S.lanes|=l),ws(d.return,l,e),a||(v=null);break e}d=S.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(u(341));v.lanes|=l,d=v.alternate,d!==null&&(d.lanes|=l),ws(v,l,e),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===e){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function or(e,t,l,a){e=null;for(var f=t,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(u(387));if(v=v.memoizedProps,v!==null){var S=f.type;hn(f.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}else if(f===Ne.current){if(v=f.alternate,v===null)throw Error(u(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ta):e=[Ta])}f=f.return}e!==null&&ks(t,e,l,a),t.flags|=262144}function yu(e){for(e=e.firstContext;e!==null;){if(!hn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ti(e){Ci=e,cl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gt(e){return mh(Ci,e)}function vu(e,t){return Ci===null&&Ti(e),mh(e,t)}function mh(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},cl===null){if(e===null)throw Error(u(308));cl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cl=cl.next=t;return l}var g0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},y0=n.unstable_scheduleCallback,v0=n.unstable_NormalPriority,Dt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cs(){return{controller:new g0,data:new Map,refCount:0}}function ea(e){e.refCount--,e.refCount===0&&y0(v0,function(){e.controller.abort()})}var ta=null,Ts=0,sr=0,cr=null;function b0(e,t){if(ta===null){var l=ta=[];Ts=0,sr=Mc(),cr={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ts++,t.then(ph,ph),t}function ph(){if(--Ts===0&&ta!==null){cr!==null&&(cr.status="fulfilled");var e=ta;ta=null,sr=0,cr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function x0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(a.status="rejected",a.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),a}var gh=B.S;B.S=function(e,t){Wm=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&b0(e,t),gh!==null&&gh(e,t)};var zi=z(null);function zs(){var e=zi.current;return e!==null?e:ot.pooledCache}function bu(e,t){t===null?w(zi,zi.current):w(zi,t.pool)}function yh(){var e=zs();return e===null?null:{parent:Dt._currentValue,pool:e}}var fr=Error(u(460)),As=Error(u(474)),xu=Error(u(542)),Su={then:function(){}};function vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(al,al),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sh(e),e;default:if(typeof t.status=="string")t.then(al,al);else{if(e=ot,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=a}},function(a){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sh(e),e}throw Mi=t,fr}}function Ai(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Mi=l,fr):l}}var Mi=null;function xh(){if(Mi===null)throw Error(u(459));var e=Mi;return Mi=null,e}function Sh(e){if(e===fr||e===xu)throw Error(u(483))}var dr=null,na=0;function Eu(e){var t=na;return na+=1,dr===null&&(dr=[]),bh(dr,e,t)}function la(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wu(e,t){throw t.$$typeof===x?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Eh(e){function t(j,D){if(e){var H=j.deletions;H===null?(j.deletions=[D],j.flags|=16):H.push(D)}}function l(j,D){if(!e)return null;for(;D!==null;)t(j,D),D=D.sibling;return null}function a(j){for(var D=new Map;j!==null;)j.key!==null?D.set(j.key,j):D.set(j.index,j),j=j.sibling;return D}function f(j,D){return j=ol(j,D),j.index=0,j.sibling=null,j}function d(j,D,H){return j.index=H,e?(H=j.alternate,H!==null?(H=H.index,H<D?(j.flags|=67108866,D):H):(j.flags|=67108866,D)):(j.flags|=1048576,D)}function v(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function S(j,D,H,J){return D===null||D.tag!==6?(D=gs(H,j.mode,J),D.return=j,D):(D=f(D,H),D.return=j,D)}function T(j,D,H,J){var we=H.type;return we===M?Z(j,D,H.props.children,J,H.key):D!==null&&(D.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ne&&Ai(we)===D.type)?(D=f(D,H.props),la(D,H),D.return=j,D):(D=pu(H.type,H.key,H.props,null,j.mode,J),la(D,H),D.return=j,D)}function q(j,D,H,J){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=ys(H,j.mode,J),D.return=j,D):(D=f(D,H.children||[]),D.return=j,D)}function Z(j,D,H,J,we){return D===null||D.tag!==7?(D=wi(H,j.mode,J,we),D.return=j,D):(D=f(D,H),D.return=j,D)}function $(j,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=gs(""+D,j.mode,H),D.return=j,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case b:return H=pu(D.type,D.key,D.props,null,j.mode,H),la(H,D),H.return=j,H;case k:return D=ys(D,j.mode,H),D.return=j,D;case ne:return D=Ai(D),$(j,D,H)}if(le(D)||P(D))return D=wi(D,j.mode,H,null),D.return=j,D;if(typeof D.then=="function")return $(j,Eu(D),H);if(D.$$typeof===Y)return $(j,vu(j,D),H);wu(j,D)}return null}function V(j,D,H,J){var we=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return we!==null?null:S(j,D,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===we?T(j,D,H,J):null;case k:return H.key===we?q(j,D,H,J):null;case ne:return H=Ai(H),V(j,D,H,J)}if(le(H)||P(H))return we!==null?null:Z(j,D,H,J,null);if(typeof H.then=="function")return V(j,D,Eu(H),J);if(H.$$typeof===Y)return V(j,D,vu(j,H),J);wu(j,H)}return null}function Q(j,D,H,J,we){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return j=j.get(H)||null,S(D,j,""+J,we);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return j=j.get(J.key===null?H:J.key)||null,T(D,j,J,we);case k:return j=j.get(J.key===null?H:J.key)||null,q(D,j,J,we);case ne:return J=Ai(J),Q(j,D,H,J,we)}if(le(J)||P(J))return j=j.get(H)||null,Z(D,j,J,we,null);if(typeof J.then=="function")return Q(j,D,H,Eu(J),we);if(J.$$typeof===Y)return Q(j,D,H,vu(D,J),we);wu(D,J)}return null}function ge(j,D,H,J){for(var we=null,Ie=null,xe=D,je=D=0,Xe=null;xe!==null&&je<H.length;je++){xe.index>je?(Xe=xe,xe=null):Xe=xe.sibling;var Je=V(j,xe,H[je],J);if(Je===null){xe===null&&(xe=Xe);break}e&&xe&&Je.alternate===null&&t(j,xe),D=d(Je,D,je),Ie===null?we=Je:Ie.sibling=Je,Ie=Je,xe=Xe}if(je===H.length)return l(j,xe),Qe&&sl(j,je),we;if(xe===null){for(;je<H.length;je++)xe=$(j,H[je],J),xe!==null&&(D=d(xe,D,je),Ie===null?we=xe:Ie.sibling=xe,Ie=xe);return Qe&&sl(j,je),we}for(xe=a(xe);je<H.length;je++)Xe=Q(xe,j,je,H[je],J),Xe!==null&&(e&&Xe.alternate!==null&&xe.delete(Xe.key===null?je:Xe.key),D=d(Xe,D,je),Ie===null?we=Xe:Ie.sibling=Xe,Ie=Xe);return e&&xe.forEach(function(ni){return t(j,ni)}),Qe&&sl(j,je),we}function Te(j,D,H,J){if(H==null)throw Error(u(151));for(var we=null,Ie=null,xe=D,je=D=0,Xe=null,Je=H.next();xe!==null&&!Je.done;je++,Je=H.next()){xe.index>je?(Xe=xe,xe=null):Xe=xe.sibling;var ni=V(j,xe,Je.value,J);if(ni===null){xe===null&&(xe=Xe);break}e&&xe&&ni.alternate===null&&t(j,xe),D=d(ni,D,je),Ie===null?we=ni:Ie.sibling=ni,Ie=ni,xe=Xe}if(Je.done)return l(j,xe),Qe&&sl(j,je),we;if(xe===null){for(;!Je.done;je++,Je=H.next())Je=$(j,Je.value,J),Je!==null&&(D=d(Je,D,je),Ie===null?we=Je:Ie.sibling=Je,Ie=Je);return Qe&&sl(j,je),we}for(xe=a(xe);!Je.done;je++,Je=H.next())Je=Q(xe,j,je,Je.value,J),Je!==null&&(e&&Je.alternate!==null&&xe.delete(Je.key===null?je:Je.key),D=d(Je,D,je),Ie===null?we=Je:Ie.sibling=Je,Ie=Je);return e&&xe.forEach(function(Rb){return t(j,Rb)}),Qe&&sl(j,je),we}function ut(j,D,H,J){if(typeof H=="object"&&H!==null&&H.type===M&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var we=H.key;D!==null;){if(D.key===we){if(we=H.type,we===M){if(D.tag===7){l(j,D.sibling),J=f(D,H.props.children),J.return=j,j=J;break e}}else if(D.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ne&&Ai(we)===D.type){l(j,D.sibling),J=f(D,H.props),la(J,H),J.return=j,j=J;break e}l(j,D);break}else t(j,D);D=D.sibling}H.type===M?(J=wi(H.props.children,j.mode,J,H.key),J.return=j,j=J):(J=pu(H.type,H.key,H.props,null,j.mode,J),la(J,H),J.return=j,j=J)}return v(j);case k:e:{for(we=H.key;D!==null;){if(D.key===we)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){l(j,D.sibling),J=f(D,H.children||[]),J.return=j,j=J;break e}else{l(j,D);break}else t(j,D);D=D.sibling}J=ys(H,j.mode,J),J.return=j,j=J}return v(j);case ne:return H=Ai(H),ut(j,D,H,J)}if(le(H))return ge(j,D,H,J);if(P(H)){if(we=P(H),typeof we!="function")throw Error(u(150));return H=we.call(H),Te(j,D,H,J)}if(typeof H.then=="function")return ut(j,D,Eu(H),J);if(H.$$typeof===Y)return ut(j,D,vu(j,H),J);wu(j,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(l(j,D.sibling),J=f(D,H),J.return=j,j=J):(l(j,D),J=gs(H,j.mode,J),J.return=j,j=J),v(j)):l(j,D)}return function(j,D,H,J){try{na=0;var we=ut(j,D,H,J);return dr=null,we}catch(xe){if(xe===fr||xe===xu)throw xe;var Ie=mn(29,xe,null,j.mode);return Ie.lanes=J,Ie.return=j,Ie}finally{}}}var Di=Eh(!0),wh=Eh(!1),Hl=!1;function Ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ds(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Pe&2)!==0){var f=a.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),a.pending=t,t=mu(e),ah(e,null,l),t}return hu(e,a,t,l),mu(e)}function ia(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,L(e,l)}}function Rs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=v:d=d.next=v,l=l.next}while(l!==null);d===null?f=d=t:d=d.next=t}else f=d=t;l={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ns=!1;function ra(){if(Ns){var e=cr;if(e!==null)throw e}}function aa(e,t,l,a){Ns=!1;var f=e.updateQueue;Hl=!1;var d=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var T=S,q=T.next;T.next=null,v===null?d=q:v.next=q,v=T;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,S=Z.lastBaseUpdate,S!==v&&(S===null?Z.firstBaseUpdate=q:S.next=q,Z.lastBaseUpdate=T))}if(d!==null){var $=f.baseState;v=0,Z=q=T=null,S=d;do{var V=S.lane&-536870913,Q=V!==S.lane;if(Q?(Ge&V)===V:(a&V)===V){V!==0&&V===sr&&(Ns=!0),Z!==null&&(Z=Z.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ge=e,Te=S;V=t;var ut=l;switch(Te.tag){case 1:if(ge=Te.payload,typeof ge=="function"){$=ge.call(ut,$,V);break e}$=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Te.payload,V=typeof ge=="function"?ge.call(ut,$,V):ge,V==null)break e;$=g({},$,V);break e;case 2:Hl=!0}}V=S.callback,V!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=f.callbacks,Q===null?f.callbacks=[V]:Q.push(V))}else Q={lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Z===null?(q=Z=Q,T=$):Z=Z.next=Q,v|=V;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;Q=S,S=Q.next,Q.next=null,f.lastBaseUpdate=Q,f.shared.pending=null}}while(!0);Z===null&&(T=$),f.baseState=T,f.firstBaseUpdate=q,f.lastBaseUpdate=Z,d===null&&(f.shared.lanes=0),Fl|=v,e.lanes=v,e.memoizedState=$}}function kh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ch(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)kh(l[e],t)}var hr=z(null),ku=z(0);function Th(e,t){e=xl,w(ku,e),w(hr,t),xl=e|t.baseLanes}function _s(){w(ku,xl),w(hr,hr.current)}function Os(){xl=ku.current,F(hr),F(ku)}var pn=z(null),_n=null;function Yl(e){var t=e.alternate;w(At,At.current&1),w(pn,e),_n===null&&(t===null||hr.current!==null||t.memoizedState!==null)&&(_n=e)}function js(e){w(At,At.current),w(pn,e),_n===null&&(_n=e)}function zh(e){e.tag===22?(w(At,At.current),w(pn,e),_n===null&&(_n=e)):Gl()}function Gl(){w(At,At.current),w(pn,pn.current)}function gn(e){F(pn),_n===e&&(_n=null),F(At)}var At=z(0);function Cu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Vc(l)||Yc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dl=0,Oe=null,rt=null,Rt=null,Tu=!1,mr=!1,Ri=!1,zu=0,ua=0,pr=null,S0=0;function Ct(){throw Error(u(321))}function Ls(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!hn(e[l],t[l]))return!1;return!0}function Us(e,t,l,a,f,d){return dl=d,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?cm:$s,Ri=!1,d=l(a,f),Ri=!1,mr&&(d=Mh(t,l,a,f)),Ah(e),d}function Ah(e){B.H=ca;var t=rt!==null&&rt.next!==null;if(dl=0,Rt=rt=Oe=null,Tu=!1,ua=0,pr=null,t)throw Error(u(300));e===null||Nt||(e=e.dependencies,e!==null&&yu(e)&&(Nt=!0))}function Mh(e,t,l,a){Oe=e;var f=0;do{if(mr&&(pr=null),ua=0,mr=!1,25<=f)throw Error(u(301));if(f+=1,Rt=rt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}B.H=fm,d=t(l,a)}while(mr);return d}function E0(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?oa(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(Oe.flags|=1024),t}function Bs(){var e=zu!==0;return zu=0,e}function Hs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function qs(e){if(Tu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Tu=!1}dl=0,Rt=rt=Oe=null,mr=!1,ua=zu=0,pr=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Oe.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Mt(){if(rt===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=Rt===null?Oe.memoizedState:Rt.next;if(t!==null)Rt=t,rt=e;else{if(e===null)throw Oe.alternate===null?Error(u(467)):Error(u(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Rt===null?Oe.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function Au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oa(e){var t=ua;return ua+=1,pr===null&&(pr=[]),e=bh(pr,e,t),t=Oe,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?cm:$s),e}function Mu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oa(e);if(e.$$typeof===Y)return Gt(e)}throw Error(u(438,String(e)))}function Vs(e){var t=null,l=Oe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=Oe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Au(),Oe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=O;return t.index++,l}function hl(e,t){return typeof t=="function"?t(e):t}function Du(e){var t=Mt();return Ys(t,rt,e)}function Ys(e,t,l){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var f=e.baseQueue,d=a.pending;if(d!==null){if(f!==null){var v=f.next;f.next=d.next,d.next=v}t.baseQueue=f=d,a.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{t=f.next;var S=v=null,T=null,q=t,Z=!1;do{var $=q.lane&-536870913;if($!==q.lane?(Ge&$)===$:(dl&$)===$){var V=q.revertLane;if(V===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),$===sr&&(Z=!0);else if((dl&V)===V){q=q.next,V===sr&&(Z=!0);continue}else $={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(S=T=$,v=d):T=T.next=$,Oe.lanes|=V,Fl|=V;$=q.action,Ri&&l(d,$),d=q.hasEagerState?q.eagerState:l(d,$)}else V={lane:$,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(S=T=V,v=d):T=T.next=V,Oe.lanes|=$,Fl|=$;q=q.next}while(q!==null&&q!==t);if(T===null?v=d:T.next=S,!hn(d,e.memoizedState)&&(Nt=!0,Z&&(l=cr,l!==null)))throw l;e.memoizedState=d,e.baseState=v,e.baseQueue=T,a.lastRenderedState=d}return f===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Gs(e){var t=Mt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=l.dispatch,f=l.pending,d=t.memoizedState;if(f!==null){l.pending=null;var v=f=f.next;do d=e(d,v.action),v=v.next;while(v!==f);hn(d,t.memoizedState)||(Nt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),l.lastRenderedState=d}return[d,a]}function Dh(e,t,l){var a=Oe,f=Mt(),d=Qe;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=t();var v=!hn((rt||f).memoizedState,l);if(v&&(f.memoizedState=l,Nt=!0),f=f.queue,Fs(_h.bind(null,a,f,e),[e]),f.getSnapshot!==t||v||Rt!==null&&Rt.memoizedState.tag&1){if(a.flags|=2048,gr(9,{destroy:void 0},Nh.bind(null,a,f,l,t),null),ot===null)throw Error(u(349));d||(dl&127)!==0||Rh(a,t,l)}return l}function Rh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Oe.updateQueue,t===null?(t=Au(),Oe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Nh(e,t,l,a){t.value=l,t.getSnapshot=a,Oh(t)&&jh(e)}function _h(e,t,l){return l(function(){Oh(t)&&jh(e)})}function Oh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!hn(e,l)}catch{return!0}}function jh(e){var t=Ei(e,2);t!==null&&on(t,e,2)}function Xs(e){var t=Jt();if(typeof e=="function"){var l=e;if(e=l(),Ri){qt(!0);try{l()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e},t}function Lh(e,t,l,a){return e.baseState=l,Ys(e,rt,typeof a=="function"?a:hl)}function w0(e,t,l,a,f){if(_u(e))throw Error(u(485));if(e=t.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};B.T!==null?l(!0):d.isTransition=!1,a(d),l=t.pending,l===null?(d.next=t.pending=d,Uh(t,d)):(d.next=l.next,t.pending=l.next=d)}}function Uh(e,t){var l=t.action,a=t.payload,f=e.state;if(t.isTransition){var d=B.T,v={};B.T=v;try{var S=l(f,a),T=B.S;T!==null&&T(v,S),Bh(e,t,S)}catch(q){Qs(e,t,q)}finally{d!==null&&v.types!==null&&(d.types=v.types),B.T=d}}else try{d=l(f,a),Bh(e,t,d)}catch(q){Qs(e,t,q)}}function Bh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Hh(e,t,a)},function(a){return Qs(e,t,a)}):Hh(e,t,l)}function Hh(e,t,l){t.status="fulfilled",t.value=l,qh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Uh(e,l)))}function Qs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,qh(t),t=t.next;while(t!==a)}e.action=null}function qh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vh(e,t){return t}function Yh(e,t){if(Qe){var l=ot.formState;if(l!==null){e:{var a=Oe;if(Qe){if(pt){t:{for(var f=pt,d=Nn;f.nodeType!==8;){if(!d){f=null;break t}if(f=On(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){pt=On(f.nextSibling),a=f.data==="F!";break e}}Ul(a)}a=!1}a&&(t=l[0])}}return l=Jt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:t},l.queue=a,l=um.bind(null,Oe,a),a.dispatch=l,a=Xs(!1),d=Ps.bind(null,Oe,!1,a.queue),a=Jt(),f={state:t,dispatch:null,action:e,pending:null},a.queue=f,l=w0.bind(null,Oe,f,d,l),f.dispatch=l,a.memoizedState=e,[t,l,!1]}function Gh(e){var t=Mt();return Xh(t,rt,e)}function Xh(e,t,l){if(t=Ys(e,t,Vh)[0],e=Du(hl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=oa(t)}catch(v){throw v===fr?xu:v}else a=t;t=Mt();var f=t.queue,d=f.dispatch;return l!==t.memoizedState&&(Oe.flags|=2048,gr(9,{destroy:void 0},k0.bind(null,f,l),null)),[a,d,e]}function k0(e,t){e.action=t}function Qh(e){var t=Mt(),l=rt;if(l!==null)return Xh(t,l,e);Mt(),t=t.memoizedState,l=Mt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function gr(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=Au(),Oe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Fh(){return Mt().memoizedState}function Ru(e,t,l,a){var f=Jt();Oe.flags|=e,f.memoizedState=gr(1|t,{destroy:void 0},l,a===void 0?null:a)}function Nu(e,t,l,a){var f=Mt();a=a===void 0?null:a;var d=f.memoizedState.inst;rt!==null&&a!==null&&Ls(a,rt.memoizedState.deps)?f.memoizedState=gr(t,d,l,a):(Oe.flags|=e,f.memoizedState=gr(1|t,d,l,a))}function Zh(e,t){Ru(8390656,8,e,t)}function Fs(e,t){Nu(2048,8,e,t)}function C0(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=Au(),Oe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Kh(e){var t=Mt().memoizedState;return C0({ref:t,nextImpl:e}),function(){if((Pe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Ih(e,t){return Nu(4,2,e,t)}function Jh(e,t){return Nu(4,4,e,t)}function Ph(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $h(e,t,l){l=l!=null?l.concat([e]):null,Nu(4,4,Ph.bind(null,t,e),l)}function Zs(){}function Wh(e,t){var l=Mt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ls(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function em(e,t){var l=Mt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ls(t,a[1]))return a[0];if(a=e(),Ri){qt(!0);try{e()}finally{qt(!1)}}return l.memoizedState=[a,t],a}function Ks(e,t,l){return l===void 0||(dl&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=tp(),Oe.lanes|=e,Fl|=e,l)}function tm(e,t,l,a){return hn(l,t)?l:hr.current!==null?(e=Ks(e,l,a),hn(e,t)||(Nt=!0),e):(dl&42)===0||(dl&1073741824)!==0&&(Ge&261930)===0?(Nt=!0,e.memoizedState=l):(e=tp(),Oe.lanes|=e,Fl|=e,t)}function nm(e,t,l,a,f){var d=ee.p;ee.p=d!==0&&8>d?d:8;var v=B.T,S={};B.T=S,Ps(e,!1,t,l);try{var T=f(),q=B.S;if(q!==null&&q(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Z=x0(T,a);sa(e,t,Z,bn(e))}else sa(e,t,a,bn(e))}catch($){sa(e,t,{then:function(){},status:"rejected",reason:$},bn())}finally{ee.p=d,v!==null&&S.types!==null&&(v.types=S.types),B.T=v}}function T0(){}function Is(e,t,l,a){if(e.tag!==5)throw Error(u(476));var f=lm(e).queue;nm(e,f,t,ue,l===null?T0:function(){return im(e),l(a)})}function lm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:ue},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function im(e){var t=lm(e);t.next===null&&(t=e.alternate.memoizedState),sa(e,t.next.queue,{},bn())}function Js(){return Gt(Ta)}function rm(){return Mt().memoizedState}function am(){return Mt().memoizedState}function z0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bn();e=ql(l);var a=Vl(t,e,l);a!==null&&(on(a,t,l),ia(a,t,l)),t={cache:Cs()},e.payload=t;return}t=t.return}}function A0(e,t,l){var a=bn();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(e)?om(t,l):(l=ms(e,t,l,a),l!==null&&(on(l,e,a),sm(l,t,a)))}function um(e,t,l){var a=bn();sa(e,t,l,a)}function sa(e,t,l,a){var f={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_u(e))om(t,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var v=t.lastRenderedState,S=d(v,l);if(f.hasEagerState=!0,f.eagerState=S,hn(S,v))return hu(e,t,f,0),ot===null&&du(),!1}catch{}finally{}if(l=ms(e,t,f,a),l!==null)return on(l,e,a),sm(l,t,a),!0}return!1}function Ps(e,t,l,a){if(a={lane:2,revertLane:Mc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_u(e)){if(t)throw Error(u(479))}else t=ms(e,l,a,2),t!==null&&on(t,e,2)}function _u(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function om(e,t){mr=Tu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function sm(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,L(e,l)}}var ca={readContext:Gt,use:Mu,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};ca.useEffectEvent=Ct;var cm={readContext:Gt,use:Mu,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Zh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ru(4194308,4,Ph.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ru(4194308,4,e,t)},useInsertionEffect:function(e,t){Ru(4,2,e,t)},useMemo:function(e,t){var l=Jt();t=t===void 0?null:t;var a=e();if(Ri){qt(!0);try{e()}finally{qt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Jt();if(l!==void 0){var f=l(t);if(Ri){qt(!0);try{l(t)}finally{qt(!1)}}}else f=t;return a.memoizedState=a.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},a.queue=e,e=e.dispatch=A0.bind(null,Oe,e),[a.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xs(e);var t=e.queue,l=um.bind(null,Oe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Zs,useDeferredValue:function(e,t){var l=Jt();return Ks(l,e,t)},useTransition:function(){var e=Xs(!1);return e=nm.bind(null,Oe,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=Oe,f=Jt();if(Qe){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),ot===null)throw Error(u(349));(Ge&127)!==0||Rh(a,t,l)}f.memoizedState=l;var d={value:l,getSnapshot:t};return f.queue=d,Zh(_h.bind(null,a,d,e),[e]),a.flags|=2048,gr(9,{destroy:void 0},Nh.bind(null,a,d,l,t),null),l},useId:function(){var e=Jt(),t=ot.identifierPrefix;if(Qe){var l=Jn,a=In;l=(a&~(1<<32-We(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=S0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Js,useFormState:Yh,useActionState:Yh,useOptimistic:function(e){var t=Jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ps.bind(null,Oe,!0,l),l.dispatch=t,[e,t]},useMemoCache:Vs,useCacheRefresh:function(){return Jt().memoizedState=z0.bind(null,Oe)},useEffectEvent:function(e){var t=Jt(),l={impl:e};return t.memoizedState=l,function(){if((Pe&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},$s={readContext:Gt,use:Mu,useCallback:Wh,useContext:Gt,useEffect:Fs,useImperativeHandle:$h,useInsertionEffect:Ih,useLayoutEffect:Jh,useMemo:em,useReducer:Du,useRef:Fh,useState:function(){return Du(hl)},useDebugValue:Zs,useDeferredValue:function(e,t){var l=Mt();return tm(l,rt.memoizedState,e,t)},useTransition:function(){var e=Du(hl)[0],t=Mt().memoizedState;return[typeof e=="boolean"?e:oa(e),t]},useSyncExternalStore:Dh,useId:rm,useHostTransitionStatus:Js,useFormState:Gh,useActionState:Gh,useOptimistic:function(e,t){var l=Mt();return Lh(l,rt,e,t)},useMemoCache:Vs,useCacheRefresh:am};$s.useEffectEvent=Kh;var fm={readContext:Gt,use:Mu,useCallback:Wh,useContext:Gt,useEffect:Fs,useImperativeHandle:$h,useInsertionEffect:Ih,useLayoutEffect:Jh,useMemo:em,useReducer:Gs,useRef:Fh,useState:function(){return Gs(hl)},useDebugValue:Zs,useDeferredValue:function(e,t){var l=Mt();return rt===null?Ks(l,e,t):tm(l,rt.memoizedState,e,t)},useTransition:function(){var e=Gs(hl)[0],t=Mt().memoizedState;return[typeof e=="boolean"?e:oa(e),t]},useSyncExternalStore:Dh,useId:rm,useHostTransitionStatus:Js,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var l=Mt();return rt!==null?Lh(l,rt,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Vs,useCacheRefresh:am};fm.useEffectEvent=Kh;function Ws(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ec={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bn(),f=ql(a);f.payload=t,l!=null&&(f.callback=l),t=Vl(e,f,a),t!==null&&(on(t,e,a),ia(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bn(),f=ql(a);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=Vl(e,f,a),t!==null&&(on(t,e,a),ia(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bn(),a=ql(l);a.tag=2,t!=null&&(a.callback=t),t=Vl(e,a,l),t!==null&&(on(t,e,l),ia(t,e,l))}};function dm(e,t,l,a,f,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,d,v):t.prototype&&t.prototype.isPureReactComponent?!Jr(l,a)||!Jr(f,d):!0}function hm(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function Ni(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function mm(e){fu(e)}function pm(e){console.error(e)}function gm(e){fu(e)}function Ou(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ym(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function tc(e,t,l){return l=ql(l),l.tag=3,l.payload={element:null},l.callback=function(){Ou(e,t)},l}function vm(e){return e=ql(e),e.tag=3,e}function bm(e,t,l,a){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=a.value;e.payload=function(){return f(d)},e.callback=function(){ym(t,l,a)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){ym(t,l,a),typeof f!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var S=a.stack;this.componentDidCatch(a.value,{componentStack:S!==null?S:""})})}function M0(e,t,l,a,f){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&or(t,l,f,!0),l=pn.current,l!==null){switch(l.tag){case 31:case 13:return _n===null?Fu():l.alternate===null&&Tt===0&&(Tt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Tc(e,a,f)),!1;case 22:return l.flags|=65536,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Tc(e,a,f)),!1}throw Error(u(435,l.tag))}return Tc(e,a,f),Fu(),!1}if(Qe)return t=pn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,a!==xs&&(e=Error(u(422),{cause:a}),Wr(Mn(e,l)))):(a!==xs&&(t=Error(u(423),{cause:a}),Wr(Mn(t,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,a=Mn(a,l),f=tc(e.stateNode,a,f),Rs(e,f),Tt!==4&&(Tt=2)),!1;var d=Error(u(520),{cause:a});if(d=Mn(d,l),va===null?va=[d]:va.push(d),Tt!==4&&(Tt=2),t===null)return!0;a=Mn(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=tc(l.stateNode,a,e),Rs(l,e),!1;case 1:if(t=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Zl===null||!Zl.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=vm(f),bm(f,e,l,a),Rs(l,f),!1}l=l.return}while(l!==null);return!1}var nc=Error(u(461)),Nt=!1;function Xt(e,t,l,a){t.child=e===null?wh(t,null,l,a):Di(t,e.child,l,a)}function xm(e,t,l,a,f){l=l.render;var d=t.ref;if("ref"in a){var v={};for(var S in a)S!=="ref"&&(v[S]=a[S])}else v=a;return Ti(t),a=Us(e,t,l,v,d,f),S=Bs(),e!==null&&!Nt?(Hs(e,t,f),ml(e,t,f)):(Qe&&S&&vs(t),t.flags|=1,Xt(e,t,a,f),t.child)}function Sm(e,t,l,a,f){if(e===null){var d=l.type;return typeof d=="function"&&!ps(d)&&d.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=d,Em(e,t,d,a,f)):(e=pu(l.type,null,a,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!cc(e,f)){var v=d.memoizedProps;if(l=l.compare,l=l!==null?l:Jr,l(v,a)&&e.ref===t.ref)return ml(e,t,f)}return t.flags|=1,e=ol(d,a),e.ref=t.ref,e.return=t,t.child=e}function Em(e,t,l,a,f){if(e!==null){var d=e.memoizedProps;if(Jr(d,a)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=a=d,cc(e,f))(e.flags&131072)!==0&&(Nt=!0);else return t.lanes=e.lanes,ml(e,t,f)}return lc(e,t,l,a,f)}function wm(e,t,l,a){var f=a.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(a=t.child=e.child,f=0;a!==null;)f=f|a.lanes|a.childLanes,a=a.sibling;a=f&~d}else a=0,t.child=null;return km(e,t,d,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bu(t,d!==null?d.cachePool:null),d!==null?Th(t,d):_s(),zh(t);else return a=t.lanes=536870912,km(e,t,d!==null?d.baseLanes|l:l,l,a)}else d!==null?(bu(t,d.cachePool),Th(t,d),Gl(),t.memoizedState=null):(e!==null&&bu(t,null),_s(),Gl());return Xt(e,t,f,l),t.child}function fa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function km(e,t,l,a,f){var d=zs();return d=d===null?null:{parent:Dt._currentValue,pool:d},t.memoizedState={baseLanes:l,cachePool:d},e!==null&&bu(t,null),_s(),zh(t),e!==null&&or(e,t,a,!0),t.childLanes=f,null}function ju(e,t){return t=Uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cm(e,t,l){return Di(t,e.child,null,l),e=ju(t,t.pendingProps),e.flags|=2,gn(t),t.memoizedState=null,e}function D0(e,t,l){var a=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Qe){if(a.mode==="hidden")return e=ju(t,a),t.lanes=536870912,fa(null,e);if(js(t),(e=pt)?(e=Up(e,Nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:In,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},l=oh(e),l.return=t,t.child=l,Yt=t,pt=null)):e=null,e===null)throw Ul(t);return t.lanes=536870912,null}return ju(t,a)}var d=e.memoizedState;if(d!==null){var v=d.dehydrated;if(js(t),f)if(t.flags&256)t.flags&=-257,t=Cm(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Nt||or(e,t,l,!1),f=(l&e.childLanes)!==0,Nt||f){if(a=ot,a!==null&&(v=X(a,l),v!==0&&v!==d.retryLane))throw d.retryLane=v,Ei(e,v),on(a,e,v),nc;Fu(),t=Cm(e,t,l)}else e=d.treeContext,pt=On(v.nextSibling),Yt=t,Qe=!0,Ll=null,Nn=!1,e!==null&&fh(t,e),t=ju(t,a),t.flags|=4096;return t}return e=ol(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Lu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function lc(e,t,l,a,f){return Ti(t),l=Us(e,t,l,a,void 0,f),a=Bs(),e!==null&&!Nt?(Hs(e,t,f),ml(e,t,f)):(Qe&&a&&vs(t),t.flags|=1,Xt(e,t,l,f),t.child)}function Tm(e,t,l,a,f,d){return Ti(t),t.updateQueue=null,l=Mh(t,a,l,f),Ah(e),a=Bs(),e!==null&&!Nt?(Hs(e,t,d),ml(e,t,d)):(Qe&&a&&vs(t),t.flags|=1,Xt(e,t,l,d),t.child)}function zm(e,t,l,a,f){if(Ti(t),t.stateNode===null){var d=ir,v=l.contextType;typeof v=="object"&&v!==null&&(d=Gt(v)),d=new l(a,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ec,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=a,d.state=t.memoizedState,d.refs={},Ms(t),v=l.contextType,d.context=typeof v=="object"&&v!==null?Gt(v):ir,d.state=t.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(Ws(t,l,v,a),d.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&ec.enqueueReplaceState(d,d.state,null),aa(t,a,d,f),ra(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,T=Ni(l,S);d.props=T;var q=d.context,Z=l.contextType;v=ir,typeof Z=="object"&&Z!==null&&(v=Gt(Z));var $=l.getDerivedStateFromProps;Z=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Z||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||q!==v)&&hm(t,d,a,v),Hl=!1;var V=t.memoizedState;d.state=V,aa(t,a,d,f),ra(),q=t.memoizedState,S||V!==q||Hl?(typeof $=="function"&&(Ws(t,l,$,a),q=t.memoizedState),(T=Hl||dm(t,l,T,a,V,q,v))?(Z||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=q),d.props=a,d.state=q,d.context=v,a=T):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{d=t.stateNode,Ds(e,t),v=t.memoizedProps,Z=Ni(l,v),d.props=Z,$=t.pendingProps,V=d.context,q=l.contextType,T=ir,typeof q=="object"&&q!==null&&(T=Gt(q)),S=l.getDerivedStateFromProps,(q=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==$||V!==T)&&hm(t,d,a,T),Hl=!1,V=t.memoizedState,d.state=V,aa(t,a,d,f),ra();var Q=t.memoizedState;v!==$||V!==Q||Hl||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof S=="function"&&(Ws(t,l,S,a),Q=t.memoizedState),(Z=Hl||dm(t,l,Z,a,V,Q,T)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(a,Q,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(a,Q,T)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Q),d.props=a,d.state=Q,d.context=T,a=Z):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),a=!1)}return d=a,Lu(e,t),a=(t.flags&128)!==0,d||a?(d=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&a?(t.child=Di(t,e.child,null,f),t.child=Di(t,null,l,f)):Xt(e,t,l,f),t.memoizedState=d.state,e=t.child):e=ml(e,t,f),e}function Am(e,t,l,a){return ki(),t.flags|=256,Xt(e,t,l,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rc(e){return{baseLanes:e,cachePool:yh()}}function ac(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=vn),e}function Mm(e,t,l){var a=t.pendingProps,f=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(At.current&2)!==0),v&&(f=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Qe){if(f?Yl(t):Gl(),(e=pt)?(e=Up(e,Nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:In,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},l=oh(e),l.return=t,t.child=l,Yt=t,pt=null)):e=null,e===null)throw Ul(t);return Yc(e)?t.lanes=32:t.lanes=536870912,null}var S=a.children;return a=a.fallback,f?(Gl(),f=t.mode,S=Uu({mode:"hidden",children:S},f),a=wi(a,f,l,null),S.return=t,a.return=t,S.sibling=a,t.child=S,a=t.child,a.memoizedState=rc(l),a.childLanes=ac(e,v,l),t.memoizedState=ic,fa(null,a)):(Yl(t),uc(t,S))}var T=e.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(d)t.flags&256?(Yl(t),t.flags&=-257,t=oc(e,t,l)):t.memoizedState!==null?(Gl(),t.child=e.child,t.flags|=128,t=null):(Gl(),S=a.fallback,f=t.mode,a=Uu({mode:"visible",children:a.children},f),S=wi(S,f,l,null),S.flags|=2,a.return=t,S.return=t,a.sibling=S,t.child=a,Di(t,e.child,null,l),a=t.child,a.memoizedState=rc(l),a.childLanes=ac(e,v,l),t.memoizedState=ic,t=fa(null,a));else if(Yl(t),Yc(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var q=v.dgst;v=q,a=Error(u(419)),a.stack="",a.digest=v,Wr({value:a,source:null,stack:null}),t=oc(e,t,l)}else if(Nt||or(e,t,l,!1),v=(l&e.childLanes)!==0,Nt||v){if(v=ot,v!==null&&(a=X(v,l),a!==0&&a!==T.retryLane))throw T.retryLane=a,Ei(e,a),on(v,e,a),nc;Vc(S)||Fu(),t=oc(e,t,l)}else Vc(S)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,pt=On(S.nextSibling),Yt=t,Qe=!0,Ll=null,Nn=!1,e!==null&&fh(t,e),t=uc(t,a.children),t.flags|=4096);return t}return f?(Gl(),S=a.fallback,f=t.mode,T=e.child,q=T.sibling,a=ol(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,q!==null?S=ol(q,S):(S=wi(S,f,l,null),S.flags|=2),S.return=t,a.return=t,a.sibling=S,t.child=a,fa(null,a),a=t.child,S=e.child.memoizedState,S===null?S=rc(l):(f=S.cachePool,f!==null?(T=Dt._currentValue,f=f.parent!==T?{parent:T,pool:T}:f):f=yh(),S={baseLanes:S.baseLanes|l,cachePool:f}),a.memoizedState=S,a.childLanes=ac(e,v,l),t.memoizedState=ic,fa(e.child,a)):(Yl(t),l=e.child,e=l.sibling,l=ol(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=l,t.memoizedState=null,l)}function uc(e,t){return t=Uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uu(e,t){return e=mn(22,e,null,t),e.lanes=0,e}function oc(e,t,l){return Di(t,e.child,null,l),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dm(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ws(e.return,t,l)}function sc(e,t,l,a,f,d){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:f,treeForkCount:d}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=a,v.tail=l,v.tailMode=f,v.treeForkCount=d)}function Rm(e,t,l){var a=t.pendingProps,f=a.revealOrder,d=a.tail;a=a.children;var v=At.current,S=(v&2)!==0;if(S?(v=v&1|2,t.flags|=128):v&=1,w(At,v),Xt(e,t,a,l),a=Qe?$r:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dm(e,l,t);else if(e.tag===19)Dm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)e=l.alternate,e!==null&&Cu(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),sc(t,!1,f,l,d,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&Cu(e)===null){t.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}sc(t,!0,l,null,d,a);break;case"together":sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ml(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(or(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=ol(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ol(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function R0(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Bl(t,Dt,e.memoizedState.cache),ki();break;case 27:case 5:$t(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,js(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Yl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Mm(e,t,l):(Yl(t),e=ml(e,t,l),e!==null?e.sibling:null);Yl(t);break;case 19:var f=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(or(e,t,l,!1),a=(l&t.childLanes)!==0),f){if(a)return Rm(e,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),w(At,At.current),a)break;return null;case 22:return t.lanes=0,wm(e,t,l,t.pendingProps);case 24:Bl(t,Dt,e.memoizedState.cache)}return ml(e,t,l)}function Nm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Nt=!0;else{if(!cc(e,l)&&(t.flags&128)===0)return Nt=!1,R0(e,t,l);Nt=(e.flags&131072)!==0}else Nt=!1,Qe&&(t.flags&1048576)!==0&&ch(t,$r,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ai(t.elementType),t.type=e,typeof e=="function")ps(e)?(a=Ni(e,a),t.tag=1,t=zm(null,t,e,a,l)):(t.tag=0,t=lc(null,t,e,a,l));else{if(e!=null){var f=e.$$typeof;if(f===te){t.tag=11,t=xm(null,t,e,a,l);break e}else if(f===N){t.tag=14,t=Sm(null,t,e,a,l);break e}}throw t=se(e)||e,Error(u(306,t,""))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,f=Ni(a,t.pendingProps),zm(e,t,a,f,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var d=t.memoizedState;f=d.element,Ds(e,t),aa(t,a,null,l);var v=t.memoizedState;if(a=v.cache,Bl(t,Dt,a),a!==d.cache&&ks(t,[Dt],l,!0),ra(),a=v.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Am(e,t,a,l);break e}else if(a!==f){f=Mn(Error(u(424)),t),Wr(f),t=Am(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=On(e.firstChild),Yt=t,Qe=!0,Ll=null,Nn=!0,l=wh(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ki(),a===f){t=ml(e,t,l);break e}Xt(e,t,a,l)}t=t.child}return t;case 26:return Lu(e,t),e===null?(l=Gp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Qe||(l=t.type,e=t.pendingProps,a=Wu(ve.current).createElement(l),a[he]=t,a[de]=e,Qt(a,l,e),kt(a),t.stateNode=a):t.memoizedState=Gp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Qe&&(a=t.stateNode=qp(t.type,t.pendingProps,ve.current),Yt=t,Nn=!0,f=pt,Pl(t.type)?(Gc=f,pt=On(a.firstChild)):pt=f),Xt(e,t,t.pendingProps.children,l),Lu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qe&&((f=a=pt)&&(a=ub(a,t.type,t.pendingProps,Nn),a!==null?(t.stateNode=a,Yt=t,pt=On(a.firstChild),Nn=!1,f=!0):f=!1),f||Ul(t)),$t(t),f=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,a=d.children,Bc(f,d)?a=null:v!==null&&Bc(f,v)&&(t.flags|=32),t.memoizedState!==null&&(f=Us(e,t,E0,null,null,l),Ta._currentValue=f),Lu(e,t),Xt(e,t,a,l),t.child;case 6:return e===null&&Qe&&((e=l=pt)&&(l=ob(l,t.pendingProps,Nn),l!==null?(t.stateNode=l,Yt=t,pt=null,e=!0):e=!1),e||Ul(t)),null;case 13:return Mm(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Di(t,null,a,l):Xt(e,t,a,l),t.child;case 11:return xm(e,t,t.type,t.pendingProps,l);case 7:return Xt(e,t,t.pendingProps,l),t.child;case 8:return Xt(e,t,t.pendingProps.children,l),t.child;case 12:return Xt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Bl(t,t.type,a.value),Xt(e,t,a.children,l),t.child;case 9:return f=t.type._context,a=t.pendingProps.children,Ti(t),f=Gt(f),a=a(f),t.flags|=1,Xt(e,t,a,l),t.child;case 14:return Sm(e,t,t.type,t.pendingProps,l);case 15:return Em(e,t,t.type,t.pendingProps,l);case 19:return Rm(e,t,l);case 31:return D0(e,t,l);case 22:return wm(e,t,l,t.pendingProps);case 24:return Ti(t),a=Gt(Dt),e===null?(f=zs(),f===null&&(f=ot,d=Cs(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),t.memoizedState={parent:a,cache:f},Ms(t),Bl(t,Dt,f)):((e.lanes&l)!==0&&(Ds(e,t),aa(t,null,null,l),ra()),f=e.memoizedState,d=t.memoizedState,f.parent!==a?(f={parent:a,cache:a},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),Bl(t,Dt,a)):(a=d.cache,Bl(t,Dt,a),a!==f.cache&&ks(t,[Dt],l,!0))),Xt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function pl(e){e.flags|=4}function fc(e,t,l,a,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(rp())e.flags|=8192;else throw Mi=Su,As}else e.flags&=-16777217}function _m(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kp(t))if(rp())e.flags|=8192;else throw Mi=Su,As}function Bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gi():536870912,e.lanes|=t,xr|=t)}function da(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags&65011712,a|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function N0(e,t,l){var a=t.pendingProps;switch(bs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return gt(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fl(Dt),$e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ur(t)?pl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ss())),gt(t),null;case 26:var f=t.type,d=t.memoizedState;return e===null?(pl(t),d!==null?(gt(t),_m(t,d)):(gt(t),fc(t,f,null,a,l))):d?d!==e.memoizedState?(pl(t),gt(t),_m(t,d)):(gt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&pl(t),gt(t),fc(t,f,e,a,l)),null;case 27:if(Un(t),l=ve.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return gt(t),null}e=ce.current,ur(t)?dh(t):(e=qp(f,a,l),t.stateNode=e,pl(t))}return gt(t),null;case 5:if(Un(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return gt(t),null}if(d=ce.current,ur(t))dh(t);else{var v=Wu(ve.current);switch(d){case 1:d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=v.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof a.is=="string"?v.createElement("select",{is:a.is}):v.createElement("select"),a.multiple?d.multiple=!0:a.size&&(d.size=a.size);break;default:d=typeof a.is=="string"?v.createElement(f,{is:a.is}):v.createElement(f)}}d[he]=t,d[de]=a;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)d.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=d;e:switch(Qt(d,f,a),f){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&pl(t)}}return gt(t),fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ve.current,ur(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,f=Yt,f!==null)switch(f.tag){case 27:case 5:a=f.memoizedProps}e[he]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Mp(e.nodeValue,l)),e||Ul(t,!0)}else e=Wu(e).createTextNode(a),e[he]=t,t.stateNode=e}return gt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ur(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[he]=t}else ki(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;gt(t),e=!1}else l=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(gn(t),t):(gn(t),null);if((t.flags&128)!==0)throw Error(u(558))}return gt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=ur(t),a!==null&&a.dehydrated!==null){if(e===null){if(!f)throw Error(u(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(u(317));f[he]=t}else ki(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;gt(t),f=!1}else f=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(gn(t),t):(gn(t),null)}return gn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,f=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(f=a.alternate.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==f&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Bu(t,t.updateQueue),gt(t),null);case 4:return $e(),e===null&&_c(t.stateNode.containerInfo),gt(t),null;case 10:return fl(t.type),gt(t),null;case 19:if(F(At),a=t.memoizedState,a===null)return gt(t),null;if(f=(t.flags&128)!==0,d=a.rendering,d===null)if(f)da(a,!1);else{if(Tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Cu(e),d!==null){for(t.flags|=128,da(a,!1),e=d.updateQueue,t.updateQueue=e,Bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)uh(l,e),l=l.sibling;return w(At,At.current&1|2),Qe&&sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>Gu&&(t.flags|=128,f=!0,da(a,!1),t.lanes=4194304)}else{if(!f)if(e=Cu(d),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,Bu(t,e),da(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!Qe)return gt(t),null}else 2*Et()-a.renderingStartTime>Gu&&l!==536870912&&(t.flags|=128,f=!0,da(a,!1),t.lanes=4194304);a.isBackwards?(d.sibling=t.child,t.child=d):(e=a.last,e!==null?e.sibling=d:t.child=d,a.last=d)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,l=At.current,w(At,f?l&1|2:l&1),Qe&&sl(t,a.treeForkCount),e):(gt(t),null);case 22:case 23:return gn(t),Os(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(gt(t),t.subtreeFlags&6&&(t.flags|=8192)):gt(t),l=t.updateQueue,l!==null&&Bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&F(zi),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fl(Dt),gt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function _0(e,t){switch(bs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fl(Dt),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Un(t),null;case 31:if(t.memoizedState!==null){if(gn(t),t.alternate===null)throw Error(u(340));ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(At),null;case 4:return $e(),null;case 10:return fl(t.type),null;case 22:case 23:return gn(t),Os(),e!==null&&F(zi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fl(Dt),null;case 25:return null;default:return null}}function Om(e,t){switch(bs(t),t.tag){case 3:fl(Dt),$e();break;case 26:case 27:case 5:Un(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&gn(t);break;case 13:gn(t);break;case 19:F(At);break;case 10:fl(t.type);break;case 22:case 23:gn(t),Os(),e!==null&&F(zi);break;case 24:fl(Dt)}}function ha(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var f=a.next;l=f;do{if((l.tag&e)===e){a=void 0;var d=l.create,v=l.inst;a=d(),v.destroy=a}l=l.next}while(l!==f)}}catch(S){lt(t,t.return,S)}}function Xl(e,t,l){try{var a=t.updateQueue,f=a!==null?a.lastEffect:null;if(f!==null){var d=f.next;a=d;do{if((a.tag&e)===e){var v=a.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,f=t;var T=l,q=S;try{q()}catch(Z){lt(f,T,Z)}}}a=a.next}while(a!==d)}}catch(Z){lt(t,t.return,Z)}}function jm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ch(t,l)}catch(a){lt(e,e.return,a)}}}function Lm(e,t,l){l.props=Ni(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){lt(e,t,a)}}function ma(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(f){lt(e,t,f)}}function Pn(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(f){lt(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){lt(e,t,f)}else l.current=null}function Um(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(f){lt(e,e.return,f)}}function dc(e,t,l){try{var a=e.stateNode;tb(a,e.type,l,t),a[de]=t}catch(f){lt(e,e.return,f)}}function Bm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pl(e.type)||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=al));else if(a!==4&&(a===27&&Pl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(mc(e,t,l),e=e.sibling;e!==null;)mc(e,t,l),e=e.sibling}function Hu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Pl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hu(e,t,l),e=e.sibling;e!==null;)Hu(e,t,l),e=e.sibling}function Hm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);Qt(t,a,l),t[he]=e,t[de]=l}catch(d){lt(e,e.return,d)}}var gl=!1,_t=!1,pc=!1,qm=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function O0(e,t){if(e=e.containerInfo,Lc=ao,e=$d(e),os(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var f=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var v=0,S=-1,T=-1,q=0,Z=0,$=e,V=null;t:for(;;){for(var Q;$!==l||f!==0&&$.nodeType!==3||(S=v+f),$!==d||a!==0&&$.nodeType!==3||(T=v+a),$.nodeType===3&&(v+=$.nodeValue.length),(Q=$.firstChild)!==null;)V=$,$=Q;for(;;){if($===e)break t;if(V===l&&++q===f&&(S=v),V===d&&++Z===a&&(T=v),(Q=$.nextSibling)!==null)break;$=V,V=$.parentNode}$=Q}l=S===-1||T===-1?null:{start:S,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(Uc={focusedElem:e,selectionRange:l},ao=!1,Ht=t;Ht!==null;)if(t=Ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ht=e;else for(;Ht!==null;){switch(t=Ht,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=t,f=d.memoizedProps,d=d.memoizedState,a=l.stateNode;try{var ge=Ni(l.type,f);e=a.getSnapshotBeforeUpdate(ge,d),a.__reactInternalSnapshotBeforeUpdate=e}catch(Te){lt(l,l.return,Te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)qc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Ht=e;break}Ht=t.return}}function Vm(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:vl(e,l),a&4&&ha(5,l);break;case 1:if(vl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(v){lt(l,l.return,v)}else{var f=Ni(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){lt(l,l.return,v)}}a&64&&jm(l),a&512&&ma(l,l.return);break;case 3:if(vl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ch(e,t)}catch(v){lt(l,l.return,v)}}break;case 27:t===null&&a&4&&Hm(l);case 26:case 5:vl(e,l),t===null&&a&4&&Um(l),a&512&&ma(l,l.return);break;case 12:vl(e,l);break;case 31:vl(e,l),a&4&&Xm(e,l);break;case 13:vl(e,l),a&4&&Qm(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=G0.bind(null,l),sb(e,l))));break;case 22:if(a=l.memoizedState!==null||gl,!a){t=t!==null&&t.memoizedState!==null||_t,f=gl;var d=_t;gl=a,(_t=t)&&!d?bl(e,l,(l.subtreeFlags&8772)!==0):vl(e,l),gl=f,_t=d}break;case 30:break;default:vl(e,l)}}function Ym(e){var t=e.alternate;t!==null&&(e.alternate=null,Ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xt=null,ln=!1;function yl(e,t,l){for(l=l.child;l!==null;)Gm(e,t,l),l=l.sibling}function Gm(e,t,l){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(bt,l)}catch{}switch(l.tag){case 26:_t||Pn(l,t),yl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:_t||Pn(l,t);var a=xt,f=ln;Pl(l.type)&&(xt=l.stateNode,ln=!1),yl(e,t,l),wa(l.stateNode),xt=a,ln=f;break;case 5:_t||Pn(l,t);case 6:if(a=xt,f=ln,xt=null,yl(e,t,l),xt=a,ln=f,xt!==null)if(ln)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(d){lt(l,t,d)}else try{xt.removeChild(l.stateNode)}catch(d){lt(l,t,d)}break;case 18:xt!==null&&(ln?(e=xt,jp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ar(e)):jp(xt,l.stateNode));break;case 4:a=xt,f=ln,xt=l.stateNode.containerInfo,ln=!0,yl(e,t,l),xt=a,ln=f;break;case 0:case 11:case 14:case 15:Xl(2,l,t),_t||Xl(4,l,t),yl(e,t,l);break;case 1:_t||(Pn(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Lm(l,t,a)),yl(e,t,l);break;case 21:yl(e,t,l);break;case 22:_t=(a=_t)||l.memoizedState!==null,yl(e,t,l),_t=a;break;default:yl(e,t,l)}}function Xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ar(e)}catch(l){lt(t,t.return,l)}}}function Qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ar(e)}catch(l){lt(t,t.return,l)}}function j0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qm),t;default:throw Error(u(435,e.tag))}}function qu(e,t){var l=j0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var f=X0.bind(null,e,a);a.then(f,f)}})}function rn(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var f=l[a],d=e,v=t,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Pl(S.type)){xt=S.stateNode,ln=!1;break e}break;case 5:xt=S.stateNode,ln=!1;break e;case 3:case 4:xt=S.stateNode.containerInfo,ln=!0;break e}S=S.return}if(xt===null)throw Error(u(160));Gm(d,v,f),xt=null,ln=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Fm(t,e),t=t.sibling}var Gn=null;function Fm(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),an(e),a&4&&(Xl(3,e,e.return),ha(3,e),Xl(5,e,e.return));break;case 1:rn(t,e),an(e),a&512&&(_t||l===null||Pn(l,l.return)),a&64&&gl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var f=Gn;if(rn(t,e),an(e),a&512&&(_t||l===null||Pn(l,l.return)),a&4){var d=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(a){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Be]||d[he]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(a),f.head.insertBefore(d,f.querySelector("head > title"))),Qt(d,a,l),d[he]=e,kt(d),a=d;break e;case"link":var v=Fp("link","href",f).get(a+(l.href||""));if(v){for(var S=0;S<v.length;S++)if(d=v[S],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(S,1);break t}}d=f.createElement(a),Qt(d,a,l),f.head.appendChild(d);break;case"meta":if(v=Fp("meta","content",f).get(a+(l.content||""))){for(S=0;S<v.length;S++)if(d=v[S],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(S,1);break t}}d=f.createElement(a),Qt(d,a,l),f.head.appendChild(d);break;default:throw Error(u(468,a))}d[he]=e,kt(d),a=d}e.stateNode=a}else Zp(f,e.type,e.stateNode);else e.stateNode=Qp(f,a,e.memoizedProps);else d!==a?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,a===null?Zp(f,e.type,e.stateNode):Qp(f,a,e.memoizedProps)):a===null&&e.stateNode!==null&&dc(e,e.memoizedProps,l.memoizedProps)}break;case 27:rn(t,e),an(e),a&512&&(_t||l===null||Pn(l,l.return)),l!==null&&a&4&&dc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rn(t,e),an(e),a&512&&(_t||l===null||Pn(l,l.return)),e.flags&32){f=e.stateNode;try{Pi(f,"")}catch(ge){lt(e,e.return,ge)}}a&4&&e.stateNode!=null&&(f=e.memoizedProps,dc(e,f,l!==null?l.memoizedProps:f)),a&1024&&(pc=!0);break;case 6:if(rn(t,e),an(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(ge){lt(e,e.return,ge)}}break;case 3:if(no=null,f=Gn,Gn=eo(t.containerInfo),rn(t,e),Gn=f,an(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(ge){lt(e,e.return,ge)}pc&&(pc=!1,Zm(e));break;case 4:a=Gn,Gn=eo(e.stateNode.containerInfo),rn(t,e),an(e),Gn=a;break;case 12:rn(t,e),an(e);break;case 31:rn(t,e),an(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 13:rn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yu=Et()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 22:f=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,q=gl,Z=_t;if(gl=q||f,_t=Z||T,rn(t,e),_t=Z,gl=q,an(e),a&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||T||gl||_t||_i(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(d=T.stateNode,f)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=T.stateNode;var $=T.memoizedProps.style,V=$!=null&&$.hasOwnProperty("display")?$.display:null;S.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ge){lt(T,T.return,ge)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=f?"":T.memoizedProps}catch(ge){lt(T,T.return,ge)}}}else if(t.tag===18){if(l===null){T=t;try{var Q=T.stateNode;f?Lp(Q,!0):Lp(T.stateNode,!1)}catch(ge){lt(T,T.return,ge)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qu(e,l))));break;case 19:rn(t,e),an(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 30:break;case 21:break;default:rn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Bm(a)){l=a;break}a=a.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var f=l.stateNode,d=hc(e);Hu(e,d,f);break;case 5:var v=l.stateNode;l.flags&32&&(Pi(v,""),l.flags&=-33);var S=hc(e);Hu(e,S,v);break;case 3:case 4:var T=l.stateNode.containerInfo,q=hc(e);mc(e,q,T);break;default:throw Error(u(161))}}catch(Z){lt(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Zm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vm(e,t.alternate,t),t=t.sibling}function _i(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xl(4,t,t.return),_i(t);break;case 1:Pn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Lm(t,t.return,l),_i(t);break;case 27:wa(t.stateNode);case 26:case 5:Pn(t,t.return),_i(t);break;case 22:t.memoizedState===null&&_i(t);break;case 30:_i(t);break;default:_i(t)}e=e.sibling}}function bl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,f=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:bl(f,d,l),ha(4,d);break;case 1:if(bl(f,d,l),a=d,f=a.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(q){lt(a,a.return,q)}if(a=d,f=a.updateQueue,f!==null){var S=a.stateNode;try{var T=f.shared.hiddenCallbacks;if(T!==null)for(f.shared.hiddenCallbacks=null,f=0;f<T.length;f++)kh(T[f],S)}catch(q){lt(a,a.return,q)}}l&&v&64&&jm(d),ma(d,d.return);break;case 27:Hm(d);case 26:case 5:bl(f,d,l),l&&a===null&&v&4&&Um(d),ma(d,d.return);break;case 12:bl(f,d,l);break;case 31:bl(f,d,l),l&&v&4&&Xm(f,d);break;case 13:bl(f,d,l),l&&v&4&&Qm(f,d);break;case 22:d.memoizedState===null&&bl(f,d,l),ma(d,d.return);break;case 30:break;default:bl(f,d,l)}t=t.sibling}}function gc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ea(l))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e))}function Xn(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Km(e,t,l,a),t=t.sibling}function Km(e,t,l,a){var f=t.flags;switch(t.tag){case 0:case 11:case 15:Xn(e,t,l,a),f&2048&&ha(9,t);break;case 1:Xn(e,t,l,a);break;case 3:Xn(e,t,l,a),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e)));break;case 12:if(f&2048){Xn(e,t,l,a),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,S=d.onPostCommit;typeof S=="function"&&S(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){lt(t,t.return,T)}}else Xn(e,t,l,a);break;case 31:Xn(e,t,l,a);break;case 13:Xn(e,t,l,a);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?Xn(e,t,l,a):pa(e,t):d._visibility&2?Xn(e,t,l,a):(d._visibility|=2,yr(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),f&2048&&gc(v,t);break;case 24:Xn(e,t,l,a),f&2048&&yc(t.alternate,t);break;default:Xn(e,t,l,a)}}function yr(e,t,l,a,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,v=t,S=l,T=a,q=v.flags;switch(v.tag){case 0:case 11:case 15:yr(d,v,S,T,f),ha(8,v);break;case 23:break;case 22:var Z=v.stateNode;v.memoizedState!==null?Z._visibility&2?yr(d,v,S,T,f):pa(d,v):(Z._visibility|=2,yr(d,v,S,T,f)),f&&q&2048&&gc(v.alternate,v);break;case 24:yr(d,v,S,T,f),f&&q&2048&&yc(v.alternate,v);break;default:yr(d,v,S,T,f)}t=t.sibling}}function pa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,f=a.flags;switch(a.tag){case 22:pa(l,a),f&2048&&gc(a.alternate,a);break;case 24:pa(l,a),f&2048&&yc(a.alternate,a);break;default:pa(l,a)}t=t.sibling}}var ga=8192;function vr(e,t,l){if(e.subtreeFlags&ga)for(e=e.child;e!==null;)Im(e,t,l),e=e.sibling}function Im(e,t,l){switch(e.tag){case 26:vr(e,t,l),e.flags&ga&&e.memoizedState!==null&&Sb(l,Gn,e.memoizedState,e.memoizedProps);break;case 5:vr(e,t,l);break;case 3:case 4:var a=Gn;Gn=eo(e.stateNode.containerInfo),vr(e,t,l),Gn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ga,ga=16777216,vr(e,t,l),ga=a):vr(e,t,l));break;default:vr(e,t,l)}}function Jm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ya(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ht=a,$m(a,e)}Jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pm(e),e=e.sibling}function Pm(e){switch(e.tag){case 0:case 11:case 15:ya(e),e.flags&2048&&Xl(9,e,e.return);break;case 3:ya(e);break;case 12:ya(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vu(e)):ya(e);break;default:ya(e)}}function Vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ht=a,$m(a,e)}Jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xl(8,t,t.return),Vu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Vu(t));break;default:Vu(t)}e=e.sibling}}function $m(e,t){for(;Ht!==null;){var l=Ht;switch(l.tag){case 0:case 11:case 15:Xl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ea(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ht=a;else e:for(l=e;Ht!==null;){a=Ht;var f=a.sibling,d=a.return;if(Ym(a),a===l){Ht=null;break e}if(f!==null){f.return=d,Ht=f;break e}Ht=d}}}var L0={getCacheForType:function(e){var t=Gt(Dt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Gt(Dt).controller.signal}},U0=typeof WeakMap=="function"?WeakMap:Map,Pe=0,ot=null,He=null,Ge=0,nt=0,yn=null,Ql=!1,br=!1,vc=!1,xl=0,Tt=0,Fl=0,Oi=0,bc=0,vn=0,xr=0,va=null,un=null,xc=!1,Yu=0,Wm=0,Gu=1/0,Xu=null,Zl=null,Ut=0,Kl=null,Sr=null,Sl=0,Sc=0,Ec=null,ep=null,ba=0,wc=null;function bn(){return(Pe&2)!==0&&Ge!==0?Ge&-Ge:B.T!==null?Mc():Ee()}function tp(){if(vn===0)if((Ge&536870912)===0||Qe){var e=Dl;Dl<<=1,(Dl&3932160)===0&&(Dl=262144),vn=e}else vn=536870912;return e=pn.current,e!==null&&(e.flags|=32),vn}function on(e,t,l){(e===ot&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(Er(e,0),Il(e,Ge,vn,!1)),yi(e,l),((Pe&2)===0||e!==ot)&&(e===ot&&((Pe&2)===0&&(Oi|=l),Tt===4&&Il(e,Ge,vn,!1)),$n(e))}function np(e,t,l){if((Pe&6)!==0)throw Error(u(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||pi(e,t),f=a?q0(e,t):Cc(e,t,!0),d=a;do{if(f===0){br&&!a&&Il(e,t,0,!1);break}else{if(l=e.current.alternate,d&&!B0(l)){f=Cc(e,t,!1),d=!1;continue}if(f===2){if(d=t,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var S=e;f=va;var T=S.current.memoizedState.isDehydrated;if(T&&(Er(S,v).flags|=256),v=Cc(S,v,!1),v!==2){if(vc&&!T){S.errorRecoveryDisabledLanes|=d,Oi|=d,f=4;break e}d=un,un=f,d!==null&&(un===null?un=d:un.push.apply(un,d))}f=v}if(d=!1,f!==2)continue}}if(f===1){Er(e,0),Il(e,t,0,!0);break}e:{switch(a=e,d=f,d){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Il(a,t,vn,!Ql);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(f=Yu+300-Et(),10<f)){if(Il(a,t,vn,!Ql),mi(a,0,!0)!==0)break e;Sl=t,a.timeoutHandle=_p(lp.bind(null,a,l,un,Xu,xc,t,vn,Oi,xr,Ql,d,"Throttled",-0,0),f);break e}lp(a,l,un,Xu,xc,t,vn,Oi,xr,Ql,d,null,-0,0)}}break}while(!0);$n(e)}function lp(e,t,l,a,f,d,v,S,T,q,Z,$,V,Q){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:al},Im(t,d,$);var ge=(d&62914560)===d?Yu-Et():(d&4194048)===d?Wm-Et():0;if(ge=Eb($,ge),ge!==null){Sl=d,e.cancelPendingCommit=ge(fp.bind(null,e,t,d,l,a,f,v,S,T,Z,$,null,V,Q)),Il(e,d,v,!q);return}}fp(e,t,d,l,a,f,v,S,T)}function B0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var f=l[a],d=f.getSnapshot;f=f.value;try{if(!hn(d(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Il(e,t,l,a){t&=~bc,t&=~Oi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var f=t;0<f;){var d=31-We(f),v=1<<d;a[d]=-1,f&=~v}l!==0&&A(e,l,t)}function Qu(){return(Pe&6)===0?(xa(0),!1):!0}function kc(){if(He!==null){if(nt===0)var e=He.return;else e=He,cl=Ci=null,qs(e),dr=null,na=0,e=He;for(;e!==null;)Om(e.alternate,e),e=e.return;He=null}}function Er(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ib(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Sl=0,kc(),ot=e,He=l=ol(e.current,null),Ge=t,nt=0,yn=null,Ql=!1,br=pi(e,t),vc=!1,xr=vn=bc=Oi=Fl=Tt=0,un=va=null,xc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var f=31-We(a),d=1<<f;t|=e[f],a&=~d}return xl=t,du(),l}function ip(e,t){Oe=null,B.H=ca,t===fr||t===xu?(t=xh(),nt=3):t===As?(t=xh(),nt=4):nt=t===nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yn=t,He===null&&(Tt=1,Ou(e,Mn(t,e.current)))}function rp(){var e=pn.current;return e===null?!0:(Ge&4194048)===Ge?_n===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===_n:!1}function ap(){var e=B.H;return B.H=ca,e===null?ca:e}function up(){var e=B.A;return B.A=L0,e}function Fu(){Tt=4,Ql||(Ge&4194048)!==Ge&&pn.current!==null||(br=!0),(Fl&134217727)===0&&(Oi&134217727)===0||ot===null||Il(ot,Ge,vn,!1)}function Cc(e,t,l){var a=Pe;Pe|=2;var f=ap(),d=up();(ot!==e||Ge!==t)&&(Xu=null,Er(e,t)),t=!1;var v=Tt;e:do try{if(nt!==0&&He!==null){var S=He,T=yn;switch(nt){case 8:kc(),v=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(t=!0);var q=nt;if(nt=0,yn=null,wr(e,S,T,q),l&&br){v=0;break e}break;default:q=nt,nt=0,yn=null,wr(e,S,T,q)}}H0(),v=Tt;break}catch(Z){ip(e,Z)}while(!0);return t&&e.shellSuspendCounter++,cl=Ci=null,Pe=a,B.H=f,B.A=d,He===null&&(ot=null,Ge=0,du()),v}function H0(){for(;He!==null;)op(He)}function q0(e,t){var l=Pe;Pe|=2;var a=ap(),f=up();ot!==e||Ge!==t?(Xu=null,Gu=Et()+500,Er(e,t)):br=pi(e,t);e:do try{if(nt!==0&&He!==null){t=He;var d=yn;t:switch(nt){case 1:nt=0,yn=null,wr(e,t,d,1);break;case 2:case 9:if(vh(d)){nt=0,yn=null,sp(t);break}t=function(){nt!==2&&nt!==9||ot!==e||(nt=7),$n(e)},d.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:vh(d)?(nt=0,yn=null,sp(t)):(nt=0,yn=null,wr(e,t,d,7));break;case 5:var v=null;switch(He.tag){case 26:v=He.memoizedState;case 5:case 27:var S=He;if(v?Kp(v):S.stateNode.complete){nt=0,yn=null;var T=S.sibling;if(T!==null)He=T;else{var q=S.return;q!==null?(He=q,Zu(q)):He=null}break t}}nt=0,yn=null,wr(e,t,d,5);break;case 6:nt=0,yn=null,wr(e,t,d,6);break;case 8:kc(),Tt=6;break e;default:throw Error(u(462))}}V0();break}catch(Z){ip(e,Z)}while(!0);return cl=Ci=null,B.H=a,B.A=f,Pe=l,He!==null?0:(ot=null,Ge=0,du(),Tt)}function V0(){for(;He!==null&&!Vr();)op(He)}function op(e){var t=Nm(e.alternate,e,xl);e.memoizedProps=e.pendingProps,t===null?Zu(e):He=t}function sp(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Tm(l,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Tm(l,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:qs(t);default:Om(l,t),t=He=uh(t,xl),t=Nm(l,t,xl)}e.memoizedProps=e.pendingProps,t===null?Zu(e):He=t}function wr(e,t,l,a){cl=Ci=null,qs(t),dr=null,na=0;var f=t.return;try{if(M0(e,f,t,l,Ge)){Tt=1,Ou(e,Mn(l,e.current)),He=null;return}}catch(d){if(f!==null)throw He=f,d;Tt=1,Ou(e,Mn(l,e.current)),He=null;return}t.flags&32768?(Qe||a===1?e=!0:br||(Ge&536870912)!==0?e=!1:(Ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=pn.current,a!==null&&a.tag===13&&(a.flags|=16384))),cp(t,e)):Zu(t)}function Zu(e){var t=e;do{if((t.flags&32768)!==0){cp(t,Ql);return}e=t.return;var l=N0(t.alternate,t,xl);if(l!==null){He=l;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Tt===0&&(Tt=5)}function cp(e,t){do{var l=_0(e.alternate,e);if(l!==null){l.flags&=32767,He=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=l}while(e!==null);Tt=6,He=null}function fp(e,t,l,a,f,d,v,S,T){e.cancelPendingCommit=null;do Ku();while(Ut!==0);if((Pe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(d=t.lanes|t.childLanes,d|=hs,Qo(e,l,d,v,S,T),e===ot&&(He=ot=null,Ge=0),Sr=t,Kl=e,Sl=l,Sc=d,Ec=f,ep=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Q0(Se,function(){return gp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,f=ee.p,ee.p=2,v=Pe,Pe|=4;try{O0(e,t,l)}finally{Pe=v,ee.p=f,B.T=a}}Ut=1,dp(),hp(),mp()}}function dp(){if(Ut===1){Ut=0;var e=Kl,t=Sr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=ee.p;ee.p=2;var f=Pe;Pe|=4;try{Fm(t,e);var d=Uc,v=$d(e.containerInfo),S=d.focusedElem,T=d.selectionRange;if(v!==S&&S&&S.ownerDocument&&Pd(S.ownerDocument.documentElement,S)){if(T!==null&&os(S)){var q=T.start,Z=T.end;if(Z===void 0&&(Z=q),"selectionStart"in S)S.selectionStart=q,S.selectionEnd=Math.min(Z,S.value.length);else{var $=S.ownerDocument||document,V=$&&$.defaultView||window;if(V.getSelection){var Q=V.getSelection(),ge=S.textContent.length,Te=Math.min(T.start,ge),ut=T.end===void 0?Te:Math.min(T.end,ge);!Q.extend&&Te>ut&&(v=ut,ut=Te,Te=v);var j=Jd(S,Te),D=Jd(S,ut);if(j&&D&&(Q.rangeCount!==1||Q.anchorNode!==j.node||Q.anchorOffset!==j.offset||Q.focusNode!==D.node||Q.focusOffset!==D.offset)){var H=$.createRange();H.setStart(j.node,j.offset),Q.removeAllRanges(),Te>ut?(Q.addRange(H),Q.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),Q.addRange(H))}}}}for($=[],Q=S;Q=Q.parentNode;)Q.nodeType===1&&$.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<$.length;S++){var J=$[S];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}ao=!!Lc,Uc=Lc=null}finally{Pe=f,ee.p=a,B.T=l}}e.current=t,Ut=2}}function hp(){if(Ut===2){Ut=0;var e=Kl,t=Sr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=ee.p;ee.p=2;var f=Pe;Pe|=4;try{Vm(e,t.alternate,t)}finally{Pe=f,ee.p=a,B.T=l}}Ut=3}}function mp(){if(Ut===4||Ut===3){Ut=0,Yr();var e=Kl,t=Sr,l=Sl,a=ep;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ut=5:(Ut=0,Sr=Kl=null,pp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Zl=null),fe(l),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(bt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,f=ee.p,ee.p=2,B.T=null;try{for(var d=e.onRecoverableError,v=0;v<a.length;v++){var S=a[v];d(S.value,{componentStack:S.stack})}}finally{B.T=t,ee.p=f}}(Sl&3)!==0&&Ku(),$n(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===wc?ba++:(ba=0,wc=e):ba=0,xa(0)}}function pp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ea(t)))}function Ku(){return dp(),hp(),mp(),gp()}function gp(){if(Ut!==5)return!1;var e=Kl,t=Sc;Sc=0;var l=fe(Sl),a=B.T,f=ee.p;try{ee.p=32>l?32:l,B.T=null,l=Ec,Ec=null;var d=Kl,v=Sl;if(Ut=0,Sr=Kl=null,Sl=0,(Pe&6)!==0)throw Error(u(331));var S=Pe;if(Pe|=4,Pm(d.current),Km(d,d.current,v,l),Pe=S,xa(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(bt,d)}catch{}return!0}finally{ee.p=f,B.T=a,pp(e,t)}}function yp(e,t,l){t=Mn(l,t),t=tc(e.stateNode,t,2),e=Vl(e,t,2),e!==null&&(yi(e,2),$n(e))}function lt(e,t,l){if(e.tag===3)yp(e,e,l);else for(;t!==null;){if(t.tag===3){yp(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Zl===null||!Zl.has(a))){e=Mn(l,e),l=vm(2),a=Vl(t,l,2),a!==null&&(bm(l,a,t,e),yi(a,2),$n(a));break}}t=t.return}}function Tc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new U0;var f=new Set;a.set(t,f)}else f=a.get(t),f===void 0&&(f=new Set,a.set(t,f));f.has(l)||(vc=!0,f.add(l),e=Y0.bind(null,e,t,l),t.then(e,e))}function Y0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ot===e&&(Ge&l)===l&&(Tt===4||Tt===3&&(Ge&62914560)===Ge&&300>Et()-Yu?(Pe&2)===0&&Er(e,0):bc|=l,xr===Ge&&(xr=0)),$n(e)}function vp(e,t){t===0&&(t=gi()),e=Ei(e,t),e!==null&&(yi(e,t),$n(e))}function G0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),vp(e,l)}function X0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),vp(e,l)}function Q0(e,t){return Ml(e,t)}var Iu=null,kr=null,zc=!1,Ju=!1,Ac=!1,Jl=0;function $n(e){e!==kr&&e.next===null&&(kr===null?Iu=kr=e:kr=kr.next=e),Ju=!0,zc||(zc=!0,Z0())}function xa(e,t){if(!Ac&&Ju){Ac=!0;do for(var l=!1,a=Iu;a!==null;){if(e!==0){var f=a.pendingLanes;if(f===0)var d=0;else{var v=a.suspendedLanes,S=a.pingedLanes;d=(1<<31-We(42|e)+1)-1,d&=f&~(v&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Ep(a,d))}else d=Ge,d=mi(a,a===ot?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(d&3)===0||pi(a,d)||(l=!0,Ep(a,d));a=a.next}while(l);Ac=!1}}function F0(){bp()}function bp(){Ju=zc=!1;var e=0;Jl!==0&&lb()&&(e=Jl);for(var t=Et(),l=null,a=Iu;a!==null;){var f=a.next,d=xp(a,t);d===0?(a.next=null,l===null?Iu=f:l.next=f,f===null&&(kr=l)):(l=a,(e!==0||(d&3)!==0)&&(Ju=!0)),a=f}Ut!==0&&Ut!==5||xa(e),Jl!==0&&(Jl=0)}function xp(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-We(d),S=1<<v,T=f[v];T===-1?((S&l)===0||(S&a)!==0)&&(f[v]=nu(S,t)):T<=t&&(e.expiredLanes|=S),d&=~S}if(t=ot,l=Ge,l=mi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&di(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&di(a),fe(l)){case 2:case 8:l=ae;break;case 32:l=Se;break;case 268435456:l=Ke;break;default:l=Se}return a=Sp.bind(null,e),l=Ml(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&di(a),e.callbackPriority=2,e.callbackNode=null,2}function Sp(e,t){if(Ut!==0&&Ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=Ge;return a=mi(e,e===ot?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(np(e,a,t),xp(e,Et()),e.callbackNode!=null&&e.callbackNode===l?Sp.bind(null,e):null)}function Ep(e,t){if(Ku())return null;np(e,t,!0)}function Z0(){rb(function(){(Pe&6)!==0?Ml(K,F0):bp()})}function Mc(){if(Jl===0){var e=sr;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Jl=e}return Jl}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:iu(""+e)}function kp(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function K0(e,t,l,a,f){if(t==="submit"&&l&&l.stateNode===f){var d=wp((f[de]||null).action),v=a.submitter;v&&(t=(t=v[de]||null)?wp(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var S=new ou("action","action",null,a,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Jl!==0){var T=v?kp(f,v):new FormData(f);Is(l,{pending:!0,data:T,method:f.method,action:d},null,T)}}else typeof d=="function"&&(S.preventDefault(),T=v?kp(f,v):new FormData(f),Is(l,{pending:!0,data:T,method:f.method,action:d},d,T))},currentTarget:f}]})}}for(var Dc=0;Dc<ds.length;Dc++){var Rc=ds[Dc],I0=Rc.toLowerCase(),J0=Rc[0].toUpperCase()+Rc.slice(1);Yn(I0,"on"+J0)}Yn(th,"onAnimationEnd"),Yn(nh,"onAnimationIteration"),Yn(lh,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(d0,"onTransitionRun"),Yn(h0,"onTransitionStart"),Yn(m0,"onTransitionCancel"),Yn(ih,"onTransitionEnd"),qn("onMouseEnter",["mouseout","mouseover"]),qn("onMouseLeave",["mouseout","mouseover"]),qn("onPointerEnter",["pointerout","pointerover"]),qn("onPointerLeave",["pointerout","pointerover"]),Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sa="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(" "),P0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sa));function Cp(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],f=a.event;a=a.listeners;e:{var d=void 0;if(t)for(var v=a.length-1;0<=v;v--){var S=a[v],T=S.instance,q=S.currentTarget;if(S=S.listener,T!==d&&f.isPropagationStopped())break e;d=S,f.currentTarget=q;try{d(f)}catch(Z){fu(Z)}f.currentTarget=null,d=T}else for(v=0;v<a.length;v++){if(S=a[v],T=S.instance,q=S.currentTarget,S=S.listener,T!==d&&f.isPropagationStopped())break e;d=S,f.currentTarget=q;try{d(f)}catch(Z){fu(Z)}f.currentTarget=null,d=T}}}}function qe(e,t){var l=t[De];l===void 0&&(l=t[De]=new Set);var a=e+"__bubble";l.has(a)||(Tp(t,e,2,!1),l.add(a))}function Nc(e,t,l){var a=0;t&&(a|=4),Tp(l,e,a,t)}var Pu="_reactListening"+Math.random().toString(36).slice(2);function _c(e){if(!e[Pu]){e[Pu]=!0,_l.forEach(function(l){l!=="selectionchange"&&(P0.has(l)||Nc(l,!1,e),Nc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pu]||(t[Pu]=!0,Nc("selectionchange",!1,t))}}function Tp(e,t,l,a){switch(tg(t)){case 2:var f=Cb;break;case 8:f=Tb;break;default:f=Kc}l=f.bind(null,t,l,e),f=void 0,!Wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),a?f!==void 0?e.addEventListener(t,l,{capture:!0,passive:f}):e.addEventListener(t,l,!0):f!==void 0?e.addEventListener(t,l,{passive:f}):e.addEventListener(t,l,!1)}function Oc(e,t,l,a,f){var d=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var v=a.tag;if(v===3||v===4){var S=a.stateNode.containerInfo;if(S===f)break;if(v===4)for(v=a.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;S!==null;){if(v=dn(S),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){a=d=v;continue e}S=S.parentNode}}a=a.return}Rd(function(){var q=d,Z=Po(l),$=[];e:{var V=rh.get(e);if(V!==void 0){var Q=ou,ge=e;switch(e){case"keypress":if(au(l)===0)break e;case"keydown":case"keyup":Q=X1;break;case"focusin":ge="focus",Q=ls;break;case"focusout":ge="blur",Q=ls;break;case"beforeblur":case"afterblur":Q=ls;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=N1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Z1;break;case th:case nh:case lh:Q=j1;break;case ih:Q=I1;break;case"scroll":case"scrollend":Q=D1;break;case"wheel":Q=P1;break;case"copy":case"cut":case"paste":Q=U1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Ld;break;case"toggle":case"beforetoggle":Q=W1}var Te=(t&4)!==0,ut=!Te&&(e==="scroll"||e==="scrollend"),j=Te?V!==null?V+"Capture":null:V;Te=[];for(var D=q,H;D!==null;){var J=D;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||j===null||(J=Gr(D,j),J!=null&&Te.push(Ea(D,J,H))),ut)break;D=D.return}0<Te.length&&(V=new Q(V,ge,null,l,Z),$.push({event:V,listeners:Te}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",V&&l!==Jo&&(ge=l.relatedTarget||l.fromElement)&&(dn(ge)||ge[ye]))break e;if((Q||V)&&(V=Z.window===Z?Z:(V=Z.ownerDocument)?V.defaultView||V.parentWindow:window,Q?(ge=l.relatedTarget||l.toElement,Q=q,ge=ge?dn(ge):null,ge!==null&&(ut=s(ge),Te=ge.tag,ge!==ut||Te!==5&&Te!==27&&Te!==6)&&(ge=null)):(Q=null,ge=q),Q!==ge)){if(Te=Od,J="onMouseLeave",j="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Te=Ld,J="onPointerLeave",j="onPointerEnter",D="pointer"),ut=Q==null?V:It(Q),H=ge==null?V:It(ge),V=new Te(J,D+"leave",Q,l,Z),V.target=ut,V.relatedTarget=H,J=null,dn(Z)===q&&(Te=new Te(j,D+"enter",ge,l,Z),Te.target=H,Te.relatedTarget=ut,J=Te),ut=J,Q&&ge)t:{for(Te=$0,j=Q,D=ge,H=0,J=j;J;J=Te(J))H++;J=0;for(var we=D;we;we=Te(we))J++;for(;0<H-J;)j=Te(j),H--;for(;0<J-H;)D=Te(D),J--;for(;H--;){if(j===D||D!==null&&j===D.alternate){Te=j;break t}j=Te(j),D=Te(D)}Te=null}else Te=null;Q!==null&&zp($,V,Q,Te,!1),ge!==null&&ut!==null&&zp($,ut,ge,Te,!0)}}e:{if(V=q?It(q):window,Q=V.nodeName&&V.nodeName.toLowerCase(),Q==="select"||Q==="input"&&V.type==="file")var Ie=Xd;else if(Yd(V))if(Qd)Ie=s0;else{Ie=u0;var xe=a0}else Q=V.nodeName,!Q||Q.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?q&&Io(q.elementType)&&(Ie=Xd):Ie=o0;if(Ie&&(Ie=Ie(e,q))){Gd($,Ie,l,Z);break e}xe&&xe(e,V,q),e==="focusout"&&q&&V.type==="number"&&q.memoizedProps.value!=null&&Ko(V,"number",V.value)}switch(xe=q?It(q):window,e){case"focusin":(Yd(xe)||xe.contentEditable==="true")&&(tr=xe,ss=q,Pr=null);break;case"focusout":Pr=ss=tr=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,Wd($,l,Z);break;case"selectionchange":if(f0)break;case"keydown":case"keyup":Wd($,l,Z)}var je;if(rs)e:{switch(e){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else er?qd(e,l)&&(Xe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(Ud&&l.locale!=="ko"&&(er||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&er&&(je=Nd()):(Ol=Z,es="value"in Ol?Ol.value:Ol.textContent,er=!0)),xe=$u(q,Xe),0<xe.length&&(Xe=new jd(Xe,e,null,l,Z),$.push({event:Xe,listeners:xe}),je?Xe.data=je:(je=Vd(l),je!==null&&(Xe.data=je)))),(je=t0?n0(e,l):l0(e,l))&&(Xe=$u(q,"onBeforeInput"),0<Xe.length&&(xe=new jd("onBeforeInput","beforeinput",null,l,Z),$.push({event:xe,listeners:Xe}),xe.data=je)),K0($,e,q,l,Z)}Cp($,t)})}function Ea(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $u(e,t){for(var l=t+"Capture",a=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Gr(e,l),f!=null&&a.unshift(Ea(e,f,d)),f=Gr(e,t),f!=null&&a.push(Ea(e,f,d))),e.tag===3)return a;e=e.return}return[]}function $0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zp(e,t,l,a,f){for(var d=t._reactName,v=[];l!==null&&l!==a;){var S=l,T=S.alternate,q=S.stateNode;if(S=S.tag,T!==null&&T===a)break;S!==5&&S!==26&&S!==27||q===null||(T=q,f?(q=Gr(l,d),q!=null&&v.unshift(Ea(l,q,T))):f||(q=Gr(l,d),q!=null&&v.push(Ea(l,q,T)))),l=l.return}v.length!==0&&e.push({event:t,listeners:v})}var W0=/\r\n?/g,eb=/\u0000|\uFFFD/g;function Ap(e){return(typeof e=="string"?e:""+e).replace(W0,`
|
|
49
|
+
`).replace(eb,"")}function Mp(e,t){return t=Ap(t),Ap(e)===t}function at(e,t,l,a,f,d){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Pi(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Pi(e,""+a);break;case"className":Vn(e,"class",a);break;case"tabIndex":Vn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vn(e,l,a);break;case"style":Md(e,a,d);break;case"data":if(t!=="object"){Vn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=iu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(t!=="input"&&at(e,t,"name",f.name,f,null),at(e,t,"formEncType",f.formEncType,f,null),at(e,t,"formMethod",f.formMethod,f,null),at(e,t,"formTarget",f.formTarget,f,null)):(at(e,t,"encType",f.encType,f,null),at(e,t,"method",f.method,f,null),at(e,t,"target",f.target,f,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=iu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=al);break;case"onScroll":a!=null&&qe("scroll",e);break;case"onScrollEnd":a!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(f.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=iu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":qe("beforetoggle",e),qe("toggle",e),mt(e,"popover",a);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":mt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=A1.get(l)||l,mt(e,l,a))}}function jc(e,t,l,a,f,d){switch(l){case"style":Md(e,a,d);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(f.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Pi(e,a):(typeof a=="number"||typeof a=="bigint")&&Pi(e,""+a);break;case"onScroll":a!=null&&qe("scroll",e);break;case"onScrollEnd":a!=null&&qe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=al);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kn.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),d=e[de]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(t,d,f),typeof a=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,f);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):mt(e,l,a)}}}function Qt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var a=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var v=l[d];if(v!=null)switch(d){case"src":a=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:at(e,t,d,v,l,null)}}f&&at(e,t,"srcSet",l.srcSet,l,null),a&&at(e,t,"src",l.src,l,null);return;case"input":qe("invalid",e);var S=d=v=f=null,T=null,q=null;for(a in l)if(l.hasOwnProperty(a)){var Z=l[a];if(Z!=null)switch(a){case"name":f=Z;break;case"type":v=Z;break;case"checked":T=Z;break;case"defaultChecked":q=Z;break;case"value":d=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(u(137,t));break;default:at(e,t,a,Z,l,null)}}Cd(e,d,S,T,q,v,f,!1);return;case"select":qe("invalid",e),a=v=d=null;for(f in l)if(l.hasOwnProperty(f)&&(S=l[f],S!=null))switch(f){case"value":d=S;break;case"defaultValue":v=S;break;case"multiple":a=S;default:at(e,t,f,S,l,null)}t=d,l=v,e.multiple=!!a,t!=null?Ji(e,!!a,t,!1):l!=null&&Ji(e,!!a,l,!0);return;case"textarea":qe("invalid",e),d=f=a=null;for(v in l)if(l.hasOwnProperty(v)&&(S=l[v],S!=null))switch(v){case"value":a=S;break;case"defaultValue":f=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:at(e,t,v,S,l,null)}zd(e,a,f,d);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:at(e,t,T,a,l,null)}return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(a=0;a<Sa.length;a++)qe(Sa[a],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(a=l[q],a!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:at(e,t,q,a,l,null)}return;default:if(Io(t)){for(Z in l)l.hasOwnProperty(Z)&&(a=l[Z],a!==void 0&&jc(e,t,Z,a,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(a=l[S],a!=null&&at(e,t,S,a,l,null))}function tb(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,v=null,S=null,T=null,q=null,Z=null;for(Q in l){var $=l[Q];if(l.hasOwnProperty(Q)&&$!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":T=$;default:a.hasOwnProperty(Q)||at(e,t,Q,null,a,$)}}for(var V in a){var Q=a[V];if($=l[V],a.hasOwnProperty(V)&&(Q!=null||$!=null))switch(V){case"type":d=Q;break;case"name":f=Q;break;case"checked":q=Q;break;case"defaultChecked":Z=Q;break;case"value":v=Q;break;case"defaultValue":S=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(u(137,t));break;default:Q!==$&&at(e,t,V,Q,a,$)}}Zo(e,v,S,T,q,Z,d,f);return;case"select":Q=v=S=V=null;for(d in l)if(T=l[d],l.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":Q=T;default:a.hasOwnProperty(d)||at(e,t,d,null,a,T)}for(f in a)if(d=a[f],T=l[f],a.hasOwnProperty(f)&&(d!=null||T!=null))switch(f){case"value":V=d;break;case"defaultValue":S=d;break;case"multiple":v=d;default:d!==T&&at(e,t,f,d,a,T)}t=S,l=v,a=Q,V!=null?Ji(e,!!l,V,!1):!!a!=!!l&&(t!=null?Ji(e,!!l,t,!0):Ji(e,!!l,l?[]:"",!1));return;case"textarea":Q=V=null;for(S in l)if(f=l[S],l.hasOwnProperty(S)&&f!=null&&!a.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:at(e,t,S,null,a,f)}for(v in a)if(f=a[v],d=l[v],a.hasOwnProperty(v)&&(f!=null||d!=null))switch(v){case"value":V=f;break;case"defaultValue":Q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:f!==d&&at(e,t,v,f,a,d)}Td(e,V,Q);return;case"option":for(var ge in l)if(V=l[ge],l.hasOwnProperty(ge)&&V!=null&&!a.hasOwnProperty(ge))switch(ge){case"selected":e.selected=!1;break;default:at(e,t,ge,null,a,V)}for(T in a)if(V=a[T],Q=l[T],a.hasOwnProperty(T)&&V!==Q&&(V!=null||Q!=null))switch(T){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:at(e,t,T,V,a,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in l)V=l[Te],l.hasOwnProperty(Te)&&V!=null&&!a.hasOwnProperty(Te)&&at(e,t,Te,null,a,V);for(q in a)if(V=a[q],Q=l[q],a.hasOwnProperty(q)&&V!==Q&&(V!=null||Q!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:at(e,t,q,V,a,Q)}return;default:if(Io(t)){for(var ut in l)V=l[ut],l.hasOwnProperty(ut)&&V!==void 0&&!a.hasOwnProperty(ut)&&jc(e,t,ut,void 0,a,V);for(Z in a)V=a[Z],Q=l[Z],!a.hasOwnProperty(Z)||V===Q||V===void 0&&Q===void 0||jc(e,t,Z,V,a,Q);return}}for(var j in l)V=l[j],l.hasOwnProperty(j)&&V!=null&&!a.hasOwnProperty(j)&&at(e,t,j,null,a,V);for($ in a)V=a[$],Q=l[$],!a.hasOwnProperty($)||V===Q||V==null&&Q==null||at(e,t,$,V,a,Q)}function Dp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var f=l[a],d=f.transferSize,v=f.initiatorType,S=f.duration;if(d&&S&&Dp(v)){for(v=0,S=f.responseEnd,a+=1;a<l.length;a++){var T=l[a],q=T.startTime;if(q>S)break;var Z=T.transferSize,$=T.initiatorType;Z&&Dp($)&&(T=T.responseEnd,v+=Z*(T<S?1:(S-q)/(T-q)))}if(--a,t+=8*(d+v)/(f.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lc=null,Uc=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Rp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Np(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=null;function lb(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var _p=typeof setTimeout=="function"?setTimeout:void 0,ib=typeof clearTimeout=="function"?clearTimeout:void 0,Op=typeof Promise=="function"?Promise:void 0,rb=typeof queueMicrotask=="function"?queueMicrotask:typeof Op<"u"?function(e){return Op.resolve(null).then(e).catch(ab)}:_p;function ab(e){setTimeout(function(){throw e})}function Pl(e){return e==="head"}function jp(e,t){var l=t,a=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(f),Ar(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")wa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wa(l);for(var d=l.firstChild;d;){var v=d.nextSibling,S=d.nodeName;d[Be]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=v}}else l==="body"&&wa(e.ownerDocument.body);l=f}while(l);Ar(t)}function Lp(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function qc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":qc(l),dt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ub(e,t,l,a){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Be])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=On(e.nextSibling),e===null)break}return null}function ob(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=On(e.nextSibling),e===null))return null;return e}function Up(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=On(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function Yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sb(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function On(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gc=null;function Bp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return On(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function qp(e,t,l){switch(t=Wu(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function wa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var jn=new Map,Vp=new Set;function eo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var El=ee.d;ee.d={f:cb,r:fb,D:db,C:hb,L:mb,m:pb,X:yb,S:gb,M:vb};function cb(){var e=El.f(),t=Qu();return e||t}function fb(e){var t=kn(e);t!==null&&t.tag===5&&t.type==="form"?im(t):El.r(e)}var Cr=typeof document>"u"?null:document;function Yp(e,t,l){var a=Cr;if(a&&typeof t=="string"&&t){var f=zn(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),Vp.has(f)||(Vp.add(f),e={rel:e,crossOrigin:l,href:t},a.querySelector(f)===null&&(t=a.createElement("link"),Qt(t,"link",e),kt(t),a.head.appendChild(t)))}}function db(e){El.D(e),Yp("dns-prefetch",e,null)}function hb(e,t){El.C(e,t),Yp("preconnect",e,t)}function mb(e,t,l){El.L(e,t,l);var a=Cr;if(a&&e&&t){var f='link[rel="preload"][as="'+zn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+zn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+zn(l.imageSizes)+'"]')):f+='[href="'+zn(e)+'"]';var d=f;switch(t){case"style":d=Tr(e);break;case"script":d=zr(e)}jn.has(d)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),jn.set(d,e),a.querySelector(f)!==null||t==="style"&&a.querySelector(ka(d))||t==="script"&&a.querySelector(Ca(d))||(t=a.createElement("link"),Qt(t,"link",e),kt(t),a.head.appendChild(t)))}}function pb(e,t){El.m(e,t);var l=Cr;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+zn(a)+'"][href="'+zn(e)+'"]',d=f;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=zr(e)}if(!jn.has(d)&&(e=g({rel:"modulepreload",href:e},t),jn.set(d,e),l.querySelector(f)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ca(d)))return}a=l.createElement("link"),Qt(a,"link",e),kt(a),l.head.appendChild(a)}}}function gb(e,t,l){El.S(e,t,l);var a=Cr;if(a&&e){var f=Vt(a).hoistableStyles,d=Tr(e);t=t||"default";var v=f.get(d);if(!v){var S={loading:0,preload:null};if(v=a.querySelector(ka(d)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=jn.get(d))&&Xc(e,l);var T=v=a.createElement("link");kt(T),Qt(T,"link",e),T._p=new Promise(function(q,Z){T.onload=q,T.onerror=Z}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,to(v,t,a)}v={type:"stylesheet",instance:v,count:1,state:S},f.set(d,v)}}}function yb(e,t){El.X(e,t);var l=Cr;if(l&&e){var a=Vt(l).hoistableScripts,f=zr(e),d=a.get(f);d||(d=l.querySelector(Ca(f)),d||(e=g({src:e,async:!0},t),(t=jn.get(f))&&Qc(e,t),d=l.createElement("script"),kt(d),Qt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(f,d))}}function vb(e,t){El.M(e,t);var l=Cr;if(l&&e){var a=Vt(l).hoistableScripts,f=zr(e),d=a.get(f);d||(d=l.querySelector(Ca(f)),d||(e=g({src:e,async:!0,type:"module"},t),(t=jn.get(f))&&Qc(e,t),d=l.createElement("script"),kt(d),Qt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(f,d))}}function Gp(e,t,l,a){var f=(f=ve.current)?eo(f):null;if(!f)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Tr(l.href),l=Vt(f).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Tr(l.href);var d=Vt(f).hoistableStyles,v=d.get(e);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=f.querySelector(ka(e)))&&!d._p&&(v.instance=d,v.state.loading=5),jn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},jn.set(e,l),d||bb(f,e,l,v.state))),t&&a===null)throw Error(u(528,""));return v}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zr(l),l=Vt(f).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Tr(e){return'href="'+zn(e)+'"'}function ka(e){return'link[rel="stylesheet"]['+e+"]"}function Xp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function bb(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Qt(t,"link",l),kt(t),e.head.appendChild(t))}function zr(e){return'[src="'+zn(e)+'"]'}function Ca(e){return"script[async]"+e}function Qp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zn(l.href)+'"]');if(a)return t.instance=a,kt(a),a;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),kt(a),Qt(a,"style",f),to(a,l.precedence,e),t.instance=a;case"stylesheet":f=Tr(l.href);var d=e.querySelector(ka(f));if(d)return t.state.loading|=4,t.instance=d,kt(d),d;a=Xp(l),(f=jn.get(f))&&Xc(a,f),d=(e.ownerDocument||e).createElement("link"),kt(d);var v=d;return v._p=new Promise(function(S,T){v.onload=S,v.onerror=T}),Qt(d,"link",a),t.state.loading|=4,to(d,l.precedence,e),t.instance=d;case"script":return d=zr(l.src),(f=e.querySelector(Ca(d)))?(t.instance=f,kt(f),f):(a=l,(f=jn.get(d))&&(a=g({},l),Qc(a,f)),e=e.ownerDocument||e,f=e.createElement("script"),kt(f),Qt(f,"link",a),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,to(a,l.precedence,e));return t.instance}function to(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=a.length?a[a.length-1]:null,d=f,v=0;v<a.length;v++){var S=a[v];if(S.dataset.precedence===t)d=S;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var no=null;function Fp(e,t,l){if(no===null){var a=new Map,f=no=new Map;f.set(l,a)}else f=no,a=f.get(l),a||(a=new Map,f.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[Be]||d[he]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(t)||"";v=e+v;var S=a.get(v);S?S.push(d):a.set(v,[d])}}return a}function Zp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function xb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Kp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sb(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Tr(a.href),d=t.querySelector(ka(f));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lo.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=d,kt(d);return}d=t.ownerDocument||t,a=Xp(a),(f=jn.get(f))&&Xc(a,f),d=d.createElement("link"),kt(d);var v=d;v._p=new Promise(function(S,T){v.onload=S,v.onerror=T}),Qt(d,"link",a),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lo.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Fc=0;function Eb(e,t){return e.stylesheets&&e.count===0&&ro(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ro(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Fc===0&&(Fc=62500*nb());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ro(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Fc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(f)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ro(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var io=null;function ro(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,io=new Map,t.forEach(wb,e),io=null,lo.call(e))}function wb(e,t){if(!(t.state.loading&4)){var l=io.get(e);if(l)var a=l.get(null);else{l=new Map,io.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var v=f[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),a=v)}a&&l.set(null,a)}f=t.instance,v=f.getAttribute("data-precedence"),d=l.get(v)||a,d===a&&l.set(null,f),l.set(v,f),this.count++,a=lo.bind(this),f.addEventListener("load",a),f.addEventListener("error",a),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var Ta={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function kb(e,t,l,a,f,d,v,S,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Nl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.hiddenUpdates=Nl(null),this.identifierPrefix=a,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ip(e,t,l,a,f,d,v,S,T,q,Z,$){return e=new kb(e,t,l,v,T,q,Z,$,S),t=1,d===!0&&(t|=24),d=mn(3,null,null,t),e.current=d,d.stateNode=e,t=Cs(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:a,isDehydrated:l,cache:t},Ms(d),e}function Jp(e){return e?(e=ir,e):ir}function Pp(e,t,l,a,f,d){f=Jp(f),a.context===null?a.context=f:a.pendingContext=f,a=ql(t),a.payload={element:l},d=d===void 0?null:d,d!==null&&(a.callback=d),l=Vl(e,a,t),l!==null&&(on(l,e,t),ia(l,e,t))}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Zc(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function Wp(e){if(e.tag===13||e.tag===31){var t=Ei(e,67108864);t!==null&&on(t,e,67108864),Zc(e,67108864)}}function eg(e){if(e.tag===13||e.tag===31){var t=bn();t=W(t);var l=Ei(e,t);l!==null&&on(l,e,t),Zc(e,t)}}var ao=!0;function Cb(e,t,l,a){var f=B.T;B.T=null;var d=ee.p;try{ee.p=2,Kc(e,t,l,a)}finally{ee.p=d,B.T=f}}function Tb(e,t,l,a){var f=B.T;B.T=null;var d=ee.p;try{ee.p=8,Kc(e,t,l,a)}finally{ee.p=d,B.T=f}}function Kc(e,t,l,a){if(ao){var f=Ic(a);if(f===null)Oc(e,t,a,uo,l),ng(e,a);else if(Ab(f,e,t,l,a))a.stopPropagation();else if(ng(e,a),t&4&&-1<zb.indexOf(e)){for(;f!==null;){var d=kn(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=il(d.pendingLanes);if(v!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var T=1<<31-We(v);S.entanglements[1]|=T,v&=~T}$n(d),(Pe&6)===0&&(Gu=Et()+500,xa(0))}}break;case 31:case 13:S=Ei(d,2),S!==null&&on(S,d,2),Qu(),Zc(d,2)}if(d=Ic(a),d===null&&Oc(e,t,a,uo,l),d===f)break;f=d}f!==null&&a.stopPropagation()}else Oc(e,t,a,null,l)}}function Ic(e){return e=Po(e),Jc(e)}var uo=null;function Jc(e){if(uo=null,e=dn(e),e!==null){var t=s(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=c(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uo=e,null}function tg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ll()){case K:return 2;case ae:return 8;case Se:case Me:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Pc=!1,$l=null,Wl=null,ei=null,za=new Map,Aa=new Map,ti=[],zb="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 ng(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":za.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Aa.delete(t.pointerId)}}function Ma(e,t,l,a,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:d,targetContainers:[f]},t!==null&&(t=kn(t),t!==null&&Wp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function Ab(e,t,l,a,f){switch(t){case"focusin":return $l=Ma($l,e,t,l,a,f),!0;case"dragenter":return Wl=Ma(Wl,e,t,l,a,f),!0;case"mouseover":return ei=Ma(ei,e,t,l,a,f),!0;case"pointerover":var d=f.pointerId;return za.set(d,Ma(za.get(d)||null,e,t,l,a,f)),!0;case"gotpointercapture":return d=f.pointerId,Aa.set(d,Ma(Aa.get(d)||null,e,t,l,a,f)),!0}return!1}function lg(e){var t=dn(e.target);if(t!==null){var l=s(t);if(l!==null){if(t=l.tag,t===13){if(t=c(l),t!==null){e.blockedOn=t,Ae(e.priority,function(){eg(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,Ae(e.priority,function(){eg(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ic(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Jo=a,l.target.dispatchEvent(a),Jo=null}else return t=kn(l),t!==null&&Wp(t),e.blockedOn=l,!1;t.shift()}return!0}function ig(e,t,l){oo(e)&&l.delete(t)}function Mb(){Pc=!1,$l!==null&&oo($l)&&($l=null),Wl!==null&&oo(Wl)&&(Wl=null),ei!==null&&oo(ei)&&(ei=null),za.forEach(ig),Aa.forEach(ig)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Mb)))}var co=null;function rg(e){co!==e&&(co=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){co===e&&(co=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],f=e[t+2];if(typeof a!="function"){if(Jc(a||l)===null)continue;break}var d=kn(l);d!==null&&(e.splice(t,3),t-=3,Is(d,{pending:!0,data:f,method:l.method,action:a},a,f))}}))}function Ar(e){function t(T){return so(T,e)}$l!==null&&so($l,e),Wl!==null&&so(Wl,e),ei!==null&&so(ei,e),za.forEach(t),Aa.forEach(t);for(var l=0;l<ti.length;l++){var a=ti[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ti.length&&(l=ti[0],l.blockedOn===null);)lg(l),l.blockedOn===null&&ti.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var f=l[a],d=l[a+1],v=f[de]||null;if(typeof d=="function")v||rg(l);else if(v){var S=null;if(d&&d.hasAttribute("formAction")){if(f=d,v=d[de]||null)S=v.formAction;else if(Jc(f)!==null)continue}else S=v.action;typeof S=="function"?l[a+1]=S:(l.splice(a,3),a-=3),rg(l)}}}function ag(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function $c(e){this._internalRoot=e}fo.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,a=bn();Pp(l,a,e,t,null,null)},fo.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pp(e.current,2,null,e,null,null),Qu(),t[ye]=null}};function fo(e){this._internalRoot=e}fo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ee();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ti.length&&t!==0&&t<ti[l].priority;l++);ti.splice(l,0,e),l===0&&lg(e)}};var ug=i.version;if(ug!=="19.2.7")throw Error(u(527,ug,"19.2.7"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Db={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{bt=ho.inject(Db),wt=ho}catch{}}return Ra.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,a="",f=mm,d=pm,v=gm;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Ip(e,1,!1,null,null,l,a,null,f,d,v,ag),e[ye]=t.current,_c(e),new $c(t)},Ra.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var a=!1,f="",d=mm,v=pm,S=gm,T=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=Ip(e,1,!0,t,l??null,a,f,T,d,v,S,ag),t.context=Jp(null),l=t.current,a=bn(),a=W(a),f=ql(a),f.callback=null,Vl(l,f,a),l=a,t.current.lanes=l,yi(t,l),$n(t),e[ye]=t.current,_c(e),new fo(t)},Ra.version="19.2.7",Ra}var yg;function Gb(){if(yg)return tf.exports;yg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),tf.exports=Yb(),tf.exports}var Xb=Gb(),qy=Hy();const Qb=Oo(qy),Fb=By({__proto__:null,default:Qb},[qy]);/**
|
|
50
|
+
* @remix-run/router v1.23.3
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function St(){return St=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var u in r)({}).hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},St.apply(null,arguments)}var jt;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(jt||(jt={}));const vg="popstate";function Zb(n){n===void 0&&(n={});function i(u,o){let{pathname:s,search:c,hash:h}=u.location;return Qa("",{pathname:s,search:c,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(u,o){return typeof o=="string"?o:Gi(o)}return Ib(i,r,null,n)}function Ue(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Yi(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Kb(){return Math.random().toString(36).substr(2,8)}function bg(n,i){return{usr:n.state,key:n.key,idx:i}}function Qa(n,i,r,u){return r===void 0&&(r=null),St({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof i=="string"?ci(i):i,{state:r,key:i&&i.key||u||Kb()})}function Gi(n){let{pathname:i="/",search:r="",hash:u=""}=n;return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),u&&u!=="#"&&(i+=u.charAt(0)==="#"?u:"#"+u),i}function ci(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substr(r),n=n.substr(0,r));let u=n.indexOf("?");u>=0&&(i.search=n.substr(u),n=n.substr(0,u)),n&&(i.pathname=n)}return i}function Ib(n,i,r,u){u===void 0&&(u={});let{window:o=document.defaultView,v5Compat:s=!1}=u,c=o.history,h=jt.Pop,p=null,m=y();m==null&&(m=0,c.replaceState(St({},c.state,{idx:m}),""));function y(){return(c.state||{idx:null}).idx}function g(){h=jt.Pop;let _=y(),R=_==null?null:_-m;m=_,p&&p({action:h,location:M.location,delta:R})}function x(_,R){h=jt.Push;let U=Qa(M.location,_,R);m=y()+1;let Y=bg(U,m),te=M.createHref(U);try{c.pushState(Y,"",te)}catch(oe){if(oe instanceof DOMException&&oe.name==="DataCloneError")throw oe;o.location.assign(te)}s&&p&&p({action:h,location:M.location,delta:1})}function b(_,R){h=jt.Replace;let U=Qa(M.location,_,R);m=y();let Y=bg(U,m),te=M.createHref(U);c.replaceState(Y,"",te),s&&p&&p({action:h,location:M.location,delta:0})}function k(_){let R=o.location.origin!=="null"?o.location.origin:o.location.href,U=typeof _=="string"?_:Gi(_);return U=U.replace(/ $/,"%20"),Ue(R,"No window.location.(origin|href) available to create URL for href: "+U),new URL(U,R)}let M={get action(){return h},get location(){return n(o,c)},listen(_){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(vg,g),p=_,()=>{o.removeEventListener(vg,g),p=null}},createHref(_){return i(o,_)},createURL:k,encodeLocation(_){let R=k(_);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:x,replace:b,go(_){return c.go(_)}};return M}var it;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(it||(it={}));const Jb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Pb(n){return n.index===!0}function wo(n,i,r,u){return r===void 0&&(r=[]),u===void 0&&(u={}),n.map((o,s)=>{let c=[...r,String(s)],h=typeof o.id=="string"?o.id:c.join("-");if(Ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ue(!u[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),Pb(o)){let p=St({},o,i(o),{id:h});return u[h]=p,p}else{let p=St({},o,i(o),{id:h,children:void 0});return u[h]=p,o.children&&(p.children=wo(o.children,i,c,u)),p}})}function Bi(n,i,r){return r===void 0&&(r="/"),xo(n,i,r,!1)}function xo(n,i,r,u){let o=typeof i=="string"?ci(i):i,s=Cl(o.pathname||"/",r);if(s==null)return null;let c=Vy(n);Wb(c);let h=null,p=cx(s);for(let m=0;h==null&&m<c.length;++m)h=ox(c[m],p,u);return h}function $b(n,i){let{route:r,pathname:u,params:o}=n;return{id:r.id,pathname:u,params:o,data:i[r.id],handle:r.handle}}function Vy(n,i,r,u){i===void 0&&(i=[]),r===void 0&&(r=[]),u===void 0&&(u="");let o=(s,c,h)=>{let p={relativePath:h===void 0?s.path||"":h,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};p.relativePath.startsWith("/")&&(Ue(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let m=kl([u,p.relativePath]),y=r.concat(p);s.children&&s.children.length>0&&(Ue(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),Vy(s.children,i,y,m)),!(s.path==null&&!s.index)&&i.push({path:m,score:ax(m,s.index),routesMeta:y})};return n.forEach((s,c)=>{var h;if(s.path===""||!((h=s.path)!=null&&h.includes("?")))o(s,c);else for(let p of Yy(s.path))o(s,c,p)}),i}function Yy(n){let i=n.split("/");if(i.length===0)return[];let[r,...u]=i,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(u.length===0)return o?[s,""]:[s];let c=Yy(u.join("/")),h=[];return h.push(...c.map(p=>p===""?s:[s,p].join("/"))),o&&h.push(...c),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function Wb(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:ux(i.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}const ex=/^:[\w-]+$/,tx=3,nx=2,lx=1,ix=10,rx=-2,xg=n=>n==="*";function ax(n,i){let r=n.split("/"),u=r.length;return r.some(xg)&&(u+=rx),i&&(u+=nx),r.filter(o=>!xg(o)).reduce((o,s)=>o+(ex.test(s)?tx:s===""?lx:ix),u)}function ux(n,i){return n.length===i.length&&n.slice(0,-1).every((u,o)=>u===i[o])?n[n.length-1]-i[i.length-1]:0}function ox(n,i,r){r===void 0&&(r=!1);let{routesMeta:u}=n,o={},s="/",c=[];for(let h=0;h<u.length;++h){let p=u[h],m=h===u.length-1,y=s==="/"?i:i.slice(s.length)||"/",g=ko({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),x=p.route;if(!g&&m&&r&&!u[u.length-1].route.index&&(g=ko({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:kl([s,g.pathname]),pathnameBase:mx(kl([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=kl([s,g.pathnameBase]))}return c}function ko(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=sx(n.path,n.caseSensitive,n.end),o=i.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:u.reduce((m,y,g)=>{let{paramName:x,isOptional:b}=y;if(x==="*"){let M=h[g]||"";c=s.slice(0,s.length-M.length).replace(/(.)\/+$/,"$1")}const k=h[g];return b&&!k?m[x]=void 0:m[x]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:c,pattern:n}}function sx(n,i,r){i===void 0&&(i=!1),r===void 0&&(r=!0),Yi(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let u=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,p)=>(u.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(u.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),u]}function cx(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Yi(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),n}}function Cl(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}const fx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dx=n=>fx.test(n);function hx(n,i){i===void 0&&(i="/");let{pathname:r,search:u="",hash:o=""}=typeof n=="string"?ci(n):n,s;if(r)if(dx(r))s=r;else{if(r.includes("//")){let c=r;r=Ff(r),Yi(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+r))}r.startsWith("/")?s=Sg(r.substring(1),"/"):s=Sg(r,i)}else s=i;return{pathname:s,search:px(u),hash:gx(o)}}function Sg(n,i){let r=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function af(n,i,r,u){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Gy(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function jo(n,i){let r=Gy(n);return i?r.map((u,o)=>o===r.length-1?u.pathname:u.pathnameBase):r.map(u=>u.pathnameBase)}function Lo(n,i,r,u){u===void 0&&(u=!1);let o;typeof n=="string"?o=ci(n):(o=St({},n),Ue(!o.pathname||!o.pathname.includes("?"),af("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),af("#","pathname","hash",o)),Ue(!o.search||!o.search.includes("#"),af("#","search","hash",o)));let s=n===""||o.pathname==="",c=s?"/":o.pathname,h;if(c==null)h=r;else{let g=i.length-1;if(!u&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;o.pathname=x.join("/")}h=g>=0?i[g]:"/"}let p=hx(o,h),m=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}const Ff=n=>n.replace(/\/\/+/g,"/"),kl=n=>Ff(n.join("/")),mx=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),px=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,gx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class Co{constructor(i,r,u,o){o===void 0&&(o=!1),this.status=i,this.statusText=r||"",this.internal=o,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}}function Fa(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const Xy=["post","put","patch","delete"],yx=new Set(Xy),vx=["get",...Xy],bx=new Set(vx),xx=new Set([301,302,303,307,308]),Sx=new Set([307,308]),uf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ex={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Na={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Zf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wx=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Qy="remix-router-transitions";function kx(n){const i=n.window?n.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u",u=!r;Ue(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(n.mapRouteProperties)o=n.mapRouteProperties;else if(n.detectErrorBoundary){let A=n.detectErrorBoundary;o=L=>({hasErrorBoundary:A(L)})}else o=wx;let s={},c=wo(n.routes,o,void 0,s),h,p=n.basename||"/",m=n.dataStrategy||Ax,y=n.patchRoutesOnNavigation,g=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},n.future),x=null,b=new Set,k=null,M=null,_=null,R=n.hydrationData!=null,U=Bi(c,n.history.location,p),Y=!1,te=null;if(U==null&&!y){let A=cn(404,{pathname:n.history.location.pathname}),{matches:L,route:X}=Ng(c);U=L,te={[X.id]:A}}U&&!n.hydrationData&&gi(U,c,n.history.location.pathname).active&&(U=null);let oe;if(U)if(U.some(A=>A.route.lazy))oe=!1;else if(!U.some(A=>A.route.loader))oe=!0;else if(g.v7_partialHydration){let A=n.hydrationData?n.hydrationData.loaderData:null,L=n.hydrationData?n.hydrationData.errors:null;if(L){let X=U.findIndex(W=>L[W.route.id]!==void 0);oe=U.slice(0,X+1).every(W=>!Mf(W.route,A,L))}else oe=U.every(X=>!Mf(X.route,A,L))}else oe=n.hydrationData!=null;else if(oe=!1,U=[],g.v7_partialHydration){let A=gi(null,c,n.history.location.pathname);A.active&&A.matches&&(Y=!0,U=A.matches)}let G,N={historyAction:n.history.action,location:n.history.location,matches:U,initialized:oe,navigation:uf,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||te,fetchers:new Map,blockers:new Map},ne=jt.Pop,me=!1,O,ie=!1,P=new Map,ke=null,se=!1,le=!1,B=[],ee=new Set,ue=new Map,ze=0,C=-1,z=new Map,F=new Set,w=new Map,ce=new Map,be=new Set,ve=new Map,Ne=new Map,et;function $e(){if(x=n.history.listen(A=>{let{action:L,location:X,delta:W}=A;if(et){et(),et=void 0;return}Yi(Ne.size===0||W!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let fe=hi({currentLocation:N.location,nextLocation:X,historyAction:L});if(fe&&W!=null){let Ee=new Promise(Ae=>{et=Ae});n.history.go(W*-1),Ii(fe,{state:"blocked",location:X,proceed(){Ii(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),Ee.then(()=>n.history.go(W))},reset(){let Ae=new Map(N.blockers);Ae.set(fe,Na),zt({blockers:Ae})}});return}return Wt(L,X)}),r){Yx(i,P);let A=()=>Gx(i,P);i.addEventListener("pagehide",A),ke=()=>i.removeEventListener("pagehide",A)}return N.initialized||Wt(jt.Pop,N.location,{initialHydration:!0}),G}function $t(){x&&x(),ke&&ke(),b.clear(),O&&O.abort(),N.fetchers.forEach((A,L)=>Bt(L)),N.blockers.forEach((A,L)=>en(L))}function Un(A){return b.add(A),()=>b.delete(A)}function zt(A,L){L===void 0&&(L={}),N=St({},N,A);let X=[],W=[];g.v7_fetcherPersist&&N.fetchers.forEach((fe,Ee)=>{fe.state==="idle"&&(be.has(Ee)?W.push(Ee):X.push(Ee))}),be.forEach(fe=>{!N.fetchers.has(fe)&&!ue.has(fe)&&W.push(fe)}),[...b].forEach(fe=>fe(N,{deletedFetchers:W,viewTransitionOpts:L.viewTransitionOpts,flushSync:L.flushSync===!0})),g.v7_fetcherPersist?(X.forEach(fe=>N.fetchers.delete(fe)),W.forEach(fe=>Bt(fe))):W.forEach(fe=>be.delete(fe))}function Bn(A,L,X){var W,fe;let{flushSync:Ee}=X===void 0?{}:X,Ae=N.actionData!=null&&N.navigation.formMethod!=null&&Qn(N.navigation.formMethod)&&N.navigation.state==="loading"&&((W=A.state)==null?void 0:W._isRedirect)!==!0,pe;L.actionData?Object.keys(L.actionData).length>0?pe=L.actionData:pe=null:Ae?pe=N.actionData:pe=null;let he=L.loaderData?Dg(N.loaderData,L.loaderData,L.matches||[],L.errors):N.loaderData,de=N.blockers;de.size>0&&(de=new Map(de),de.forEach((Ye,Lt)=>de.set(Lt,Na)));let ye=me===!0||N.navigation.formMethod!=null&&Qn(N.navigation.formMethod)&&((fe=A.state)==null?void 0:fe._isRedirect)!==!0;h&&(c=h,h=void 0),se||ne===jt.Pop||(ne===jt.Push?n.history.push(A,A.state):ne===jt.Replace&&n.history.replace(A,A.state));let De;if(ne===jt.Pop){let Ye=P.get(N.location.pathname);Ye&&Ye.has(A.pathname)?De={currentLocation:N.location,nextLocation:A}:P.has(A.pathname)&&(De={currentLocation:A,nextLocation:N.location})}else if(ie){let Ye=P.get(N.location.pathname);Ye?Ye.add(A.pathname):(Ye=new Set([A.pathname]),P.set(N.location.pathname,Ye)),De={currentLocation:N.location,nextLocation:A}}zt(St({},L,{actionData:pe,loaderData:he,historyAction:ne,location:A,initialized:!0,navigation:uf,revalidation:"idle",restoreScrollPosition:nu(A,L.matches||N.matches),preventScrollReset:ye,blockers:de}),{viewTransitionOpts:De,flushSync:Ee===!0}),ne=jt.Pop,me=!1,ie=!1,se=!1,le=!1,B=[]}async function wn(A,L){if(typeof A=="number"){n.history.go(A);return}let X=Af(N.location,N.matches,p,g.v7_prependBasename,A,g.v7_relativeSplatPath,L==null?void 0:L.fromRouteId,L==null?void 0:L.relative),{path:W,submission:fe,error:Ee}=Eg(g.v7_normalizeFormMethod,!1,X,L),Ae=N.location,pe=Qa(N.location,W,L&&L.state);pe=St({},pe,n.history.encodeLocation(pe));let he=L&&L.replace!=null?L.replace:void 0,de=jt.Push;he===!0?de=jt.Replace:he===!1||fe!=null&&Qn(fe.formMethod)&&fe.formAction===N.location.pathname+N.location.search&&(de=jt.Replace);let ye=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,De=(L&&L.flushSync)===!0,Ye=hi({currentLocation:Ae,nextLocation:pe,historyAction:de});if(Ye){Ii(Ye,{state:"blocked",location:pe,proceed(){Ii(Ye,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),wn(A,L)},reset(){let Lt=new Map(N.blockers);Lt.set(Ye,Na),zt({blockers:Lt})}});return}return await Wt(de,pe,{submission:fe,pendingError:Ee,preventScrollReset:ye,replace:L&&L.replace,enableViewTransition:L&&L.viewTransition,flushSync:De})}function Al(){if(ae(),zt({revalidation:"loading"}),N.navigation.state!=="submitting"){if(N.navigation.state==="idle"){Wt(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}Wt(ne||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:ie===!0})}}async function Wt(A,L,X){O&&O.abort(),O=null,ne=A,se=(X&&X.startUninterruptedRevalidation)===!0,pi(N.location,N.matches),me=(X&&X.preventScrollReset)===!0,ie=(X&&X.enableViewTransition)===!0;let W=h||c,fe=X&&X.overrideNavigation,Ee=X!=null&&X.initialHydration&&N.matches&&N.matches.length>0&&!Y?N.matches:Bi(W,L,p),Ae=(X&&X.flushSync)===!0;if(Ee&&N.initialized&&!le&&Ox(N.location,L)&&!(X&&X.submission&&Qn(X.submission.formMethod))){Bn(L,{matches:Ee},{flushSync:Ae});return}let pe=gi(Ee,W,L.pathname);if(pe.active&&pe.matches&&(Ee=pe.matches),!Ee){let{error:tt,notFoundMatches:Be,route:dt}=Dl(L.pathname);Bn(L,{matches:Be,loaderData:{},errors:{[dt.id]:tt}},{flushSync:Ae});return}O=new AbortController;let he=Mr(n.history,L,O.signal,X&&X.submission),de;if(X&&X.pendingError)de=[Hi(Ee).route.id,{type:it.error,error:X.pendingError}];else if(X&&X.submission&&Qn(X.submission.formMethod)){let tt=await Zi(he,L,X.submission,Ee,pe.active,{replace:X.replace,flushSync:Ae});if(tt.shortCircuited)return;if(tt.pendingActionResult){let[Be,dt]=tt.pendingActionResult;if(Sn(dt)&&Fa(dt.error)&&dt.error.status===404){O=null,Bn(L,{matches:tt.matches,loaderData:{},errors:{[Be]:dt.error}});return}}Ee=tt.matches||Ee,de=tt.pendingActionResult,fe=of(L,X.submission),Ae=!1,pe.active=!1,he=Mr(n.history,he.url,he.signal)}let{shortCircuited:ye,matches:De,loaderData:Ye,errors:Lt}=await Ki(he,L,Ee,pe.active,fe,X&&X.submission,X&&X.fetcherSubmission,X&&X.replace,X&&X.initialHydration===!0,Ae,de);ye||(O=null,Bn(L,St({matches:De||Ee},Rg(de),{loaderData:Ye,errors:Lt})))}async function Zi(A,L,X,W,fe,Ee){Ee===void 0&&(Ee={}),ae();let Ae=qx(L,X);if(zt({navigation:Ae},{flushSync:Ee.flushSync===!0}),fe){let de=await Nl(W,L.pathname,A.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){let ye=Hi(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[ye,{type:it.error,error:de.error}]}}else if(de.matches)W=de.matches;else{let{notFoundMatches:ye,error:De,route:Ye}=Dl(L.pathname);return{matches:ye,pendingActionResult:[Ye.id,{type:it.error,error:De}]}}}let pe,he=Va(W,L);if(!he.route.action&&!he.route.lazy)pe={type:it.error,error:cn(405,{method:A.method,pathname:L.pathname,routeId:he.route.id})};else if(pe=(await ll("action",N,A,[he],W,null))[he.route.id],A.signal.aborted)return{shortCircuited:!0};if(qi(pe)){let de;return Ee&&Ee.replace!=null?de=Ee.replace:de=zg(pe.response.headers.get("Location"),new URL(A.url),p,n.history)===N.location.pathname+N.location.search,await Et(A,pe,!0,{submission:X,replace:de}),{shortCircuited:!0}}if(oi(pe))throw cn(400,{type:"defer-action"});if(Sn(pe)){let de=Hi(W,he.route.id);return(Ee&&Ee.replace)!==!0&&(ne=jt.Push),{matches:W,pendingActionResult:[de.route.id,pe]}}return{matches:W,pendingActionResult:[he.route.id,pe]}}async function Ki(A,L,X,W,fe,Ee,Ae,pe,he,de,ye){let De=fe||of(L,Ee),Ye=Ee||Ae||Og(De),Lt=!se&&(!g.v7_partialHydration||!he);if(W){if(Lt){let ht=nl(ye);zt(St({navigation:De},ht!==void 0?{actionData:ht}:{}),{flushSync:de})}let Fe=await Nl(X,L.pathname,A.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){let ht=Hi(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,loaderData:{},errors:{[ht]:Fe.error}}}else if(Fe.matches)X=Fe.matches;else{let{error:ht,notFoundMatches:rl,route:vi}=Dl(L.pathname);return{matches:rl,loaderData:{},errors:{[vi.id]:ht}}}}let tt=h||c,[Be,dt]=kg(n.history,N,X,Ye,L,g.v7_partialHydration&&he===!0,g.v7_skipActionErrorRevalidation,le,B,ee,be,w,F,tt,p,ye);if(Rl(Fe=>!(X&&X.some(ht=>ht.route.id===Fe))||Be&&Be.some(ht=>ht.route.id===Fe)),C=++ze,Be.length===0&&dt.length===0){let Fe=qt();return Bn(L,St({matches:X,loaderData:{},errors:ye&&Sn(ye[1])?{[ye[0]]:ye[1].error}:null},Rg(ye),Fe?{fetchers:new Map(N.fetchers)}:{}),{flushSync:de}),{shortCircuited:!0}}if(Lt){let Fe={};if(!W){Fe.navigation=De;let ht=nl(ye);ht!==void 0&&(Fe.actionData=ht)}dt.length>0&&(Fe.fetchers=Ml(dt)),zt(Fe,{flushSync:de})}dt.forEach(Fe=>{bt(Fe.key),Fe.controller&&ue.set(Fe.key,Fe.controller)});let dn=()=>dt.forEach(Fe=>bt(Fe.key));O&&O.signal.addEventListener("abort",dn);let{loaderResults:kn,fetcherResults:It}=await K(N,X,Be,dt,A);if(A.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",dn),dt.forEach(Fe=>ue.delete(Fe.key));let Vt=mo(kn);if(Vt)return await Et(A,Vt.result,!0,{replace:pe}),{shortCircuited:!0};if(Vt=mo(It),Vt)return F.add(Vt.key),await Et(A,Vt.result,!0,{replace:pe}),{shortCircuited:!0};let{loaderData:kt,errors:_l}=Mg(N,X,kn,ye,dt,It,ve);ve.forEach((Fe,ht)=>{Fe.subscribe(rl=>{(rl||Fe.done)&&ve.delete(ht)})}),g.v7_partialHydration&&he&&N.errors&&(_l=St({},N.errors,_l));let Kn=qt(),Cn=We(C),qn=Kn||Cn||dt.length>0;return St({matches:X,loaderData:kt,errors:_l},qn?{fetchers:new Map(N.fetchers)}:{})}function nl(A){if(A&&!Sn(A[1]))return{[A[0]]:A[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Ml(A){return A.forEach(L=>{let X=N.fetchers.get(L.key),W=_a(void 0,X?X.data:void 0);N.fetchers.set(L.key,W)}),new Map(N.fetchers)}function di(A,L,X,W){if(u)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");bt(A);let fe=(W&&W.flushSync)===!0,Ee=h||c,Ae=Af(N.location,N.matches,p,g.v7_prependBasename,X,g.v7_relativeSplatPath,L,W==null?void 0:W.relative),pe=Bi(Ee,Ae,p),he=gi(pe,Ee,Ae);if(he.active&&he.matches&&(pe=he.matches),!pe){Me(A,L,cn(404,{pathname:Ae}),{flushSync:fe});return}let{path:de,submission:ye,error:De}=Eg(g.v7_normalizeFormMethod,!0,Ae,W);if(De){Me(A,L,De,{flushSync:fe});return}let Ye=Va(pe,de),Lt=(W&&W.preventScrollReset)===!0;if(ye&&Qn(ye.formMethod)){Vr(A,L,de,Ye,pe,he.active,fe,Lt,ye);return}w.set(A,{routeId:L,path:de}),Yr(A,L,de,Ye,pe,he.active,fe,Lt,ye)}async function Vr(A,L,X,W,fe,Ee,Ae,pe,he){ae(),w.delete(A);function de(mt){if(!mt.route.action&&!mt.route.lazy){let Vn=cn(405,{method:he.formMethod,pathname:X,routeId:L});return Me(A,L,Vn,{flushSync:Ae}),!0}return!1}if(!Ee&&de(W))return;let ye=N.fetchers.get(A);Se(A,Vx(he,ye),{flushSync:Ae});let De=new AbortController,Ye=Mr(n.history,X,De.signal,he);if(Ee){let mt=await Nl(fe,new URL(Ye.url).pathname,Ye.signal,A);if(mt.type==="aborted")return;if(mt.type==="error"){Me(A,L,mt.error,{flushSync:Ae});return}else if(mt.matches){if(fe=mt.matches,W=Va(fe,X),de(W))return}else{Me(A,L,cn(404,{pathname:X}),{flushSync:Ae});return}}ue.set(A,De);let Lt=ze,Be=(await ll("action",N,Ye,[W],fe,A))[W.route.id];if(Ye.signal.aborted){ue.get(A)===De&&ue.delete(A);return}if(g.v7_fetcherPersist&&be.has(A)){if(qi(Be)||Sn(Be)){Se(A,ui(void 0));return}}else{if(qi(Be))if(ue.delete(A),C>Lt){Se(A,ui(void 0));return}else return F.add(A),Se(A,_a(he)),Et(Ye,Be,!1,{fetcherSubmission:he,preventScrollReset:pe});if(Sn(Be)){Me(A,L,Be.error);return}}if(oi(Be))throw cn(400,{type:"defer-action"});let dt=N.navigation.location||N.location,dn=Mr(n.history,dt,De.signal),kn=h||c,It=N.navigation.state!=="idle"?Bi(kn,N.navigation.location,p):N.matches;Ue(It,"Didn't find any matches after fetcher action");let Vt=++ze;z.set(A,Vt);let kt=_a(he,Be.data);N.fetchers.set(A,kt);let[_l,Kn]=kg(n.history,N,It,he,dt,!1,g.v7_skipActionErrorRevalidation,le,B,ee,be,w,F,kn,p,[W.route.id,Be]);Kn.filter(mt=>mt.key!==A).forEach(mt=>{let Vn=mt.key,Tn=N.fetchers.get(Vn),tn=_a(void 0,Tn?Tn.data:void 0);N.fetchers.set(Vn,tn),bt(Vn),mt.controller&&ue.set(Vn,mt.controller)}),zt({fetchers:new Map(N.fetchers)});let Cn=()=>Kn.forEach(mt=>bt(mt.key));De.signal.addEventListener("abort",Cn);let{loaderResults:qn,fetcherResults:Fe}=await K(N,It,_l,Kn,dn);if(De.signal.aborted)return;De.signal.removeEventListener("abort",Cn),z.delete(A),ue.delete(A),Kn.forEach(mt=>ue.delete(mt.key));let ht=mo(qn);if(ht)return Et(dn,ht.result,!1,{preventScrollReset:pe});if(ht=mo(Fe),ht)return F.add(ht.key),Et(dn,ht.result,!1,{preventScrollReset:pe});let{loaderData:rl,errors:vi}=Mg(N,It,qn,void 0,Kn,Fe,ve);if(N.fetchers.has(A)){let mt=ui(Be.data);N.fetchers.set(A,mt)}We(Vt),N.navigation.state==="loading"&&Vt>C?(Ue(ne,"Expected pending action"),O&&O.abort(),Bn(N.navigation.location,{matches:It,loaderData:rl,errors:vi,fetchers:new Map(N.fetchers)})):(zt({errors:vi,loaderData:Dg(N.loaderData,rl,It,vi),fetchers:new Map(N.fetchers)}),le=!1)}async function Yr(A,L,X,W,fe,Ee,Ae,pe,he){let de=N.fetchers.get(A);Se(A,_a(he,de?de.data:void 0),{flushSync:Ae});let ye=new AbortController,De=Mr(n.history,X,ye.signal);if(Ee){let Be=await Nl(fe,new URL(De.url).pathname,De.signal,A);if(Be.type==="aborted")return;if(Be.type==="error"){Me(A,L,Be.error,{flushSync:Ae});return}else if(Be.matches)fe=Be.matches,W=Va(fe,X);else{Me(A,L,cn(404,{pathname:X}),{flushSync:Ae});return}}ue.set(A,ye);let Ye=ze,tt=(await ll("loader",N,De,[W],fe,A))[W.route.id];if(oi(tt)&&(tt=await Kf(tt,De.signal,!0)||tt),ue.get(A)===ye&&ue.delete(A),!De.signal.aborted){if(be.has(A)){Se(A,ui(void 0));return}if(qi(tt))if(C>Ye){Se(A,ui(void 0));return}else{F.add(A),await Et(De,tt,!1,{preventScrollReset:pe});return}if(Sn(tt)){Me(A,L,tt.error);return}Ue(!oi(tt),"Unhandled fetcher deferred data"),Se(A,ui(tt.data))}}async function Et(A,L,X,W){let{submission:fe,fetcherSubmission:Ee,preventScrollReset:Ae,replace:pe}=W===void 0?{}:W;L.response.headers.has("X-Remix-Revalidate")&&(le=!0);let he=L.response.headers.get("Location");Ue(he,"Expected a Location header on the redirect Response"),he=zg(he,new URL(A.url),p,n.history);let de=Qa(N.location,he,{_isRedirect:!0});if(r){let Be=!1;if(L.response.headers.has("X-Remix-Reload-Document"))Be=!0;else if(Zf.test(he)){const dt=n.history.createURL(he);Be=dt.origin!==i.location.origin||Cl(dt.pathname,p)==null}if(Be){pe?i.location.replace(he):i.location.assign(he);return}}O=null;let ye=pe===!0||L.response.headers.has("X-Remix-Replace")?jt.Replace:jt.Push,{formMethod:De,formAction:Ye,formEncType:Lt}=N.navigation;!fe&&!Ee&&De&&Ye&&Lt&&(fe=Og(N.navigation));let tt=fe||Ee;if(Sx.has(L.response.status)&&tt&&Qn(tt.formMethod))await Wt(ye,de,{submission:St({},tt,{formAction:he}),preventScrollReset:Ae||me,enableViewTransition:X?ie:void 0});else{let Be=of(de,fe);await Wt(ye,de,{overrideNavigation:Be,fetcherSubmission:Ee,preventScrollReset:Ae||me,enableViewTransition:X?ie:void 0})}}async function ll(A,L,X,W,fe,Ee){let Ae,pe={};try{Ae=await Mx(m,A,L,X,W,fe,Ee,s,o)}catch(he){return W.forEach(de=>{pe[de.route.id]={type:it.error,error:he}}),pe}for(let[he,de]of Object.entries(Ae))if(jx(de)){let ye=de.result;pe[he]={type:it.redirect,response:Nx(ye,X,he,fe,p,g.v7_relativeSplatPath)}}else pe[he]=await Rx(de);return pe}async function K(A,L,X,W,fe){let Ee=A.matches,Ae=ll("loader",A,fe,X,L,null),pe=Promise.all(W.map(async ye=>{if(ye.matches&&ye.match&&ye.controller){let Ye=(await ll("loader",A,Mr(n.history,ye.path,ye.controller.signal),[ye.match],ye.matches,ye.key))[ye.match.route.id];return{[ye.key]:Ye}}else return Promise.resolve({[ye.key]:{type:it.error,error:cn(404,{pathname:ye.path})}})})),he=await Ae,de=(await pe).reduce((ye,De)=>Object.assign(ye,De),{});return await Promise.all([Bx(L,he,fe.signal,Ee,A.loaderData),Hx(L,de,W)]),{loaderResults:he,fetcherResults:de}}function ae(){le=!0,B.push(...Rl()),w.forEach((A,L)=>{ue.has(L)&&ee.add(L),bt(L)})}function Se(A,L,X){X===void 0&&(X={}),N.fetchers.set(A,L),zt({fetchers:new Map(N.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Me(A,L,X,W){W===void 0&&(W={});let fe=Hi(N.matches,L);Bt(A),zt({errors:{[fe.route.id]:X},fetchers:new Map(N.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function Ke(A){return ce.set(A,(ce.get(A)||0)+1),be.has(A)&&be.delete(A),N.fetchers.get(A)||Ex}function Bt(A){let L=N.fetchers.get(A);ue.has(A)&&!(L&&L.state==="loading"&&z.has(A))&&bt(A),w.delete(A),z.delete(A),F.delete(A),g.v7_fetcherPersist&&be.delete(A),ee.delete(A),N.fetchers.delete(A)}function Hn(A){let L=(ce.get(A)||0)-1;L<=0?(ce.delete(A),be.add(A),g.v7_fetcherPersist||Bt(A)):ce.set(A,L),zt({fetchers:new Map(N.fetchers)})}function bt(A){let L=ue.get(A);L&&(L.abort(),ue.delete(A))}function wt(A){for(let L of A){let X=Ke(L),W=ui(X.data);N.fetchers.set(L,W)}}function qt(){let A=[],L=!1;for(let X of F){let W=N.fetchers.get(X);Ue(W,"Expected fetcher: "+X),W.state==="loading"&&(F.delete(X),A.push(X),L=!0)}return wt(A),L}function We(A){let L=[];for(let[X,W]of z)if(W<A){let fe=N.fetchers.get(X);Ue(fe,"Expected fetcher: "+X),fe.state==="loading"&&(bt(X),z.delete(X),L.push(X))}return wt(L),L.length>0}function Zn(A,L){let X=N.blockers.get(A)||Na;return Ne.get(A)!==L&&Ne.set(A,L),X}function en(A){N.blockers.delete(A),Ne.delete(A)}function Ii(A,L){let X=N.blockers.get(A)||Na;Ue(X.state==="unblocked"&&L.state==="blocked"||X.state==="blocked"&&L.state==="blocked"||X.state==="blocked"&&L.state==="proceeding"||X.state==="blocked"&&L.state==="unblocked"||X.state==="proceeding"&&L.state==="unblocked","Invalid blocker state transition: "+X.state+" -> "+L.state);let W=new Map(N.blockers);W.set(A,L),zt({blockers:W})}function hi(A){let{currentLocation:L,nextLocation:X,historyAction:W}=A;if(Ne.size===0)return;Ne.size>1&&Yi(!1,"A router only supports one blocker at a time");let fe=Array.from(Ne.entries()),[Ee,Ae]=fe[fe.length-1],pe=N.blockers.get(Ee);if(!(pe&&pe.state==="proceeding")&&Ae({currentLocation:L,nextLocation:X,historyAction:W}))return Ee}function Dl(A){let L=cn(404,{pathname:A}),X=h||c,{matches:W,route:fe}=Ng(X);return Rl(),{notFoundMatches:W,route:fe,error:L}}function Rl(A){let L=[];return ve.forEach((X,W)=>{(!A||A(W))&&(X.cancel(),L.push(W),ve.delete(W))}),L}function il(A,L,X){if(k=A,_=L,M=X||null,!R&&N.navigation===uf){R=!0;let W=nu(N.location,N.matches);W!=null&&zt({restoreScrollPosition:W})}return()=>{k=null,_=null,M=null}}function mi(A,L){return M&&M(A,L.map(W=>$b(W,N.loaderData)))||A.key}function pi(A,L){if(k&&_){let X=mi(A,L);k[X]=_()}}function nu(A,L){if(k){let X=mi(A,L),W=k[X];if(typeof W=="number")return W}return null}function gi(A,L,X){if(y)if(A){if(Object.keys(A[0].params).length>0)return{active:!0,matches:xo(L,X,p,!0)}}else return{active:!0,matches:xo(L,X,p,!0)||[]};return{active:!1,matches:null}}async function Nl(A,L,X,W){if(!y)return{type:"success",matches:A};let fe=A;for(;;){let Ee=h==null,Ae=h||c,pe=s;try{await y({signal:X,path:L,matches:fe,fetcherKey:W,patch:(ye,De)=>{X.aborted||Tg(ye,De,Ae,pe,o)}})}catch(ye){return{type:"error",error:ye,partialMatches:fe}}finally{Ee&&!X.aborted&&(c=[...c])}if(X.aborted)return{type:"aborted"};let he=Bi(Ae,L,p);if(he)return{type:"success",matches:he};let de=xo(Ae,L,p,!0);if(!de||fe.length===de.length&&fe.every((ye,De)=>ye.route.id===de[De].route.id))return{type:"success",matches:null};fe=de}}function yi(A){s={},h=wo(A,o,void 0,s)}function Qo(A,L){let X=h==null;Tg(A,L,h||c,s,o),X&&(c=[...c],zt({}))}return G={get basename(){return p},get future(){return g},get state(){return N},get routes(){return c},get window(){return i},initialize:$e,subscribe:Un,enableScrollRestoration:il,navigate:wn,fetch:di,revalidate:Al,createHref:A=>n.history.createHref(A),encodeLocation:A=>n.history.encodeLocation(A),getFetcher:Ke,deleteFetcher:Hn,dispose:$t,getBlocker:Zn,deleteBlocker:en,patchRoutes:Qo,_internalFetchControllers:ue,_internalActiveDeferreds:ve,_internalSetRoutes:yi},G}function Cx(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Af(n,i,r,u,o,s,c,h){let p,m;if(c){p=[];for(let g of i)if(p.push(g),g.route.id===c){m=g;break}}else p=i,m=i[i.length-1];let y=Lo(o||".",jo(p,s),Cl(n.pathname,r)||n.pathname,h==="path");if(o==null&&(y.search=n.search,y.hash=n.hash),(o==null||o===""||o===".")&&m){let g=If(y.search);if(m.route.index&&!g)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&g){let x=new URLSearchParams(y.search),b=x.getAll("index");x.delete("index"),b.filter(M=>M).forEach(M=>x.append("index",M));let k=x.toString();y.search=k?"?"+k:""}}return u&&r!=="/"&&(y.pathname=y.pathname==="/"?r:kl([r,y.pathname])),Gi(y)}function Eg(n,i,r,u){if(!u||!Cx(u))return{path:r};if(u.formMethod&&!Ux(u.formMethod))return{path:r,error:cn(405,{method:u.formMethod})};let o=()=>({path:r,error:cn(400,{type:"invalid-body"})}),s=u.formMethod||"get",c=n?s.toUpperCase():s.toLowerCase(),h=Ky(r);if(u.body!==void 0){if(u.formEncType==="text/plain"){if(!Qn(c))return o();let x=typeof u.body=="string"?u.body:u.body instanceof FormData||u.body instanceof URLSearchParams?Array.from(u.body.entries()).reduce((b,k)=>{let[M,_]=k;return""+b+M+"="+_+`
|
|
59
|
+
`},""):String(u.body);return{path:r,submission:{formMethod:c,formAction:h,formEncType:u.formEncType,formData:void 0,json:void 0,text:x}}}else if(u.formEncType==="application/json"){if(!Qn(c))return o();try{let x=typeof u.body=="string"?JSON.parse(u.body):u.body;return{path:r,submission:{formMethod:c,formAction:h,formEncType:u.formEncType,formData:void 0,json:x,text:void 0}}}catch{return o()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let p,m;if(u.formData)p=Df(u.formData),m=u.formData;else if(u.body instanceof FormData)p=Df(u.body),m=u.body;else if(u.body instanceof URLSearchParams)p=u.body,m=Ag(p);else if(u.body==null)p=new URLSearchParams,m=new FormData;else try{p=new URLSearchParams(u.body),m=Ag(p)}catch{return o()}let y={formMethod:c,formAction:h,formEncType:u&&u.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(Qn(y.formMethod))return{path:r,submission:y};let g=ci(r);return i&&g.search&&If(g.search)&&p.append("index",""),g.search="?"+p,{path:Gi(g),submission:y}}function wg(n,i,r){r===void 0&&(r=!1);let u=n.findIndex(o=>o.route.id===i);return u>=0?n.slice(0,r?u+1:u):n}function kg(n,i,r,u,o,s,c,h,p,m,y,g,x,b,k,M){let _=M?Sn(M[1])?M[1].error:M[1].data:void 0,R=n.createURL(i.location),U=n.createURL(o),Y=r;s&&i.errors?Y=wg(r,Object.keys(i.errors)[0],!0):M&&Sn(M[1])&&(Y=wg(r,M[0]));let te=M?M[1].statusCode:void 0,oe=c&&te&&te>=400,G=Y.filter((ne,me)=>{let{route:O}=ne;if(O.lazy)return!0;if(O.loader==null)return!1;if(s)return Mf(O,i.loaderData,i.errors);if(Tx(i.loaderData,i.matches[me],ne)||p.some(ke=>ke===ne.route.id))return!0;let ie=i.matches[me],P=ne;return Cg(ne,St({currentUrl:R,currentParams:ie.params,nextUrl:U,nextParams:P.params},u,{actionResult:_,actionStatus:te,defaultShouldRevalidate:oe?!1:h||R.pathname+R.search===U.pathname+U.search||R.search!==U.search||Fy(ie,P)}))}),N=[];return g.forEach((ne,me)=>{if(s||!r.some(se=>se.route.id===ne.routeId)||y.has(me))return;let O=Bi(b,ne.path,k);if(!O){N.push({key:me,routeId:ne.routeId,path:ne.path,matches:null,match:null,controller:null});return}let ie=i.fetchers.get(me),P=Va(O,ne.path),ke=!1;x.has(me)?ke=!1:m.has(me)?(m.delete(me),ke=!0):ie&&ie.state!=="idle"&&ie.data===void 0?ke=h:ke=Cg(P,St({currentUrl:R,currentParams:i.matches[i.matches.length-1].params,nextUrl:U,nextParams:r[r.length-1].params},u,{actionResult:_,actionStatus:te,defaultShouldRevalidate:oe?!1:h})),ke&&N.push({key:me,routeId:ne.routeId,path:ne.path,matches:O,match:P,controller:new AbortController})}),[G,N]}function Mf(n,i,r){if(n.lazy)return!0;if(!n.loader)return!1;let u=i!=null&&i[n.id]!==void 0,o=r!=null&&r[n.id]!==void 0;return!u&&o?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!u&&!o}function Tx(n,i,r){let u=!i||r.route.id!==i.route.id,o=n[r.route.id]===void 0;return u||o}function Fy(n,i){let r=n.route.path;return n.pathname!==i.pathname||r!=null&&r.endsWith("*")&&n.params["*"]!==i.params["*"]}function Cg(n,i){if(n.route.shouldRevalidate){let r=n.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function Tg(n,i,r,u,o){var s;let c;if(n){let m=u[n];Ue(m,"No route found to patch children into: routeId = "+n),m.children||(m.children=[]),c=m.children}else c=r;let h=i.filter(m=>!c.some(y=>Zy(m,y))),p=wo(h,o,[n||"_","patch",String(((s=c)==null?void 0:s.length)||"0")],u);c.push(...p)}function Zy(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((r,u)=>{var o;return(o=i.children)==null?void 0:o.some(s=>Zy(r,s))}):!1}async function zx(n,i,r){if(!n.lazy)return;let u=await n.lazy();if(!n.lazy)return;let o=r[n.id];Ue(o,"No route found in manifest");let s={};for(let c in u){let p=o[c]!==void 0&&c!=="hasErrorBoundary";Yi(!p,'Route "'+o.id+'" has a static property "'+c+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+c+'" will be ignored.')),!p&&!Jb.has(c)&&(s[c]=u[c])}Object.assign(o,s),Object.assign(o,St({},i(o),{lazy:void 0}))}async function Ax(n){let{matches:i}=n,r=i.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,s,c)=>Object.assign(o,{[r[c].route.id]:s}),{})}async function Mx(n,i,r,u,o,s,c,h,p,m){let y=s.map(b=>b.route.lazy?zx(b.route,p,h):void 0),g=s.map((b,k)=>{let M=y[k],_=o.some(U=>U.route.id===b.route.id);return St({},b,{shouldLoad:_,resolve:async U=>(U&&u.method==="GET"&&(b.route.lazy||b.route.loader)&&(_=!0),_?Dx(i,u,b,M,U,m):Promise.resolve({type:it.data,result:void 0}))})}),x=await n({matches:g,request:u,params:s[0].params,fetcherKey:c,context:m});try{await Promise.all(y)}catch{}return x}async function Dx(n,i,r,u,o,s){let c,h,p=m=>{let y,g=new Promise((k,M)=>y=M);h=()=>y(),i.signal.addEventListener("abort",h);let x=k=>typeof m!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+n+'" [routeId: '+r.route.id+"]"))):m({request:i,params:r.params,context:s},...k!==void 0?[k]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(M=>x(M)):x())}}catch(k){return{type:"error",result:k}}})();return Promise.race([b,g])};try{let m=r.route[n];if(u)if(m){let y,[g]=await Promise.all([p(m).catch(x=>{y=x}),u]);if(y!==void 0)throw y;c=g}else if(await u,m=r.route[n],m)c=await p(m);else if(n==="action"){let y=new URL(i.url),g=y.pathname+y.search;throw cn(405,{method:i.method,pathname:g,routeId:r.route.id})}else return{type:it.data,result:void 0};else if(m)c=await p(m);else{let y=new URL(i.url),g=y.pathname+y.search;throw cn(404,{pathname:g})}Ue(c.result!==void 0,"You defined "+(n==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+n+"` ")+"function. Please return a value or `null`.")}catch(m){return{type:it.error,result:m}}finally{h&&i.signal.removeEventListener("abort",h)}return c}async function Rx(n){let{result:i,type:r}=n;if(Iy(i)){let g;try{let x=i.headers.get("Content-Type");x&&/\bapplication\/json\b/.test(x)?i.body==null?g=null:g=await i.json():g=await i.text()}catch(x){return{type:it.error,error:x}}return r===it.error?{type:it.error,error:new Co(i.status,i.statusText,g),statusCode:i.status,headers:i.headers}:{type:it.data,data:g,statusCode:i.status,headers:i.headers}}if(r===it.error){if(_g(i)){var u,o;if(i.data instanceof Error){var s,c;return{type:it.error,error:i.data,statusCode:(s=i.init)==null?void 0:s.status,headers:(c=i.init)!=null&&c.headers?new Headers(i.init.headers):void 0}}return{type:it.error,error:new Co(((u=i.init)==null?void 0:u.status)||500,void 0,i.data),statusCode:Fa(i)?i.status:void 0,headers:(o=i.init)!=null&&o.headers?new Headers(i.init.headers):void 0}}return{type:it.error,error:i,statusCode:Fa(i)?i.status:void 0}}if(Lx(i)){var h,p;return{type:it.deferred,deferredData:i,statusCode:(h=i.init)==null?void 0:h.status,headers:((p=i.init)==null?void 0:p.headers)&&new Headers(i.init.headers)}}if(_g(i)){var m,y;return{type:it.data,data:i.data,statusCode:(m=i.init)==null?void 0:m.status,headers:(y=i.init)!=null&&y.headers?new Headers(i.init.headers):void 0}}return{type:it.data,data:i}}function Nx(n,i,r,u,o,s){let c=n.headers.get("Location");if(Ue(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!Zf.test(c)){let h=u.slice(0,u.findIndex(p=>p.route.id===r)+1);c=Af(new URL(i.url),h,o,!0,c,s),n.headers.set("Location",c)}return n}function zg(n,i,r,u){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Zf.test(n)){let s=n,c=s.startsWith("//")?new URL(i.protocol+s):new URL(s);if(o.includes(c.protocol))throw new Error("Invalid redirect location");let h=Cl(c.pathname,r)!=null;if(c.origin===i.origin&&h)return Ff(c.pathname)+c.search+c.hash}try{let s=u.createURL(n);if(o.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Mr(n,i,r,u){let o=n.createURL(Ky(i)).toString(),s={signal:r};if(u&&Qn(u.formMethod)){let{formMethod:c,formEncType:h}=u;s.method=c.toUpperCase(),h==="application/json"?(s.headers=new Headers({"Content-Type":h}),s.body=JSON.stringify(u.json)):h==="text/plain"?s.body=u.text:h==="application/x-www-form-urlencoded"&&u.formData?s.body=Df(u.formData):s.body=u.formData}return new Request(o,s)}function Df(n){let i=new URLSearchParams;for(let[r,u]of n.entries())i.append(r,typeof u=="string"?u:u.name);return i}function Ag(n){let i=new FormData;for(let[r,u]of n.entries())i.append(r,u);return i}function _x(n,i,r,u,o){let s={},c=null,h,p=!1,m={},y=r&&Sn(r[1])?r[1].error:void 0;return n.forEach(g=>{if(!(g.route.id in i))return;let x=g.route.id,b=i[x];if(Ue(!qi(b),"Cannot handle redirect results in processLoaderData"),Sn(b)){let k=b.error;y!==void 0&&(k=y,y=void 0),c=c||{};{let M=Hi(n,x);c[M.route.id]==null&&(c[M.route.id]=k)}s[x]=void 0,p||(p=!0,h=Fa(b.error)?b.error.status:500),b.headers&&(m[x]=b.headers)}else oi(b)?(u.set(x,b.deferredData),s[x]=b.deferredData.data,b.statusCode!=null&&b.statusCode!==200&&!p&&(h=b.statusCode),b.headers&&(m[x]=b.headers)):(s[x]=b.data,b.statusCode&&b.statusCode!==200&&!p&&(h=b.statusCode),b.headers&&(m[x]=b.headers))}),y!==void 0&&r&&(c={[r[0]]:y},s[r[0]]=void 0),{loaderData:s,errors:c,statusCode:h||200,loaderHeaders:m}}function Mg(n,i,r,u,o,s,c){let{loaderData:h,errors:p}=_x(i,r,u,c);return o.forEach(m=>{let{key:y,match:g,controller:x}=m,b=s[y];if(Ue(b,"Did not find corresponding fetcher result"),!(x&&x.signal.aborted))if(Sn(b)){let k=Hi(n.matches,g==null?void 0:g.route.id);p&&p[k.route.id]||(p=St({},p,{[k.route.id]:b.error})),n.fetchers.delete(y)}else if(qi(b))Ue(!1,"Unhandled fetcher revalidation redirect");else if(oi(b))Ue(!1,"Unhandled fetcher deferred data");else{let k=ui(b.data);n.fetchers.set(y,k)}}),{loaderData:h,errors:p}}function Dg(n,i,r,u){let o=St({},i);for(let s of r){let c=s.route.id;if(i.hasOwnProperty(c)?i[c]!==void 0&&(o[c]=i[c]):n[c]!==void 0&&s.route.loader&&(o[c]=n[c]),u&&u.hasOwnProperty(c))break}return o}function Rg(n){return n?Sn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function Hi(n,i){return(i?n.slice(0,n.findIndex(u=>u.route.id===i)+1):[...n]).reverse().find(u=>u.route.hasErrorBoundary===!0)||n[0]}function Ng(n){let i=n.length===1?n[0]:n.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function cn(n,i){let{pathname:r,routeId:u,method:o,type:s,message:c}=i===void 0?{}:i,h="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(h="Bad Request",o&&r&&u?p="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+u+'", ')+"so there is no way to handle the request.":s==="defer-action"?p="defer() is not supported in actions":s==="invalid-body"&&(p="Unable to encode submission body")):n===403?(h="Forbidden",p='Route "'+u+'" does not match URL "'+r+'"'):n===404?(h="Not Found",p='No route matches URL "'+r+'"'):n===405&&(h="Method Not Allowed",o&&r&&u?p="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+u+'", ')+"so there is no way to handle the request.":o&&(p='Invalid request method "'+o.toUpperCase()+'"')),new Co(n||500,h,new Error(p),!0)}function mo(n){let i=Object.entries(n);for(let r=i.length-1;r>=0;r--){let[u,o]=i[r];if(qi(o))return{key:u,result:o}}}function Ky(n){let i=typeof n=="string"?ci(n):n;return Gi(St({},i,{hash:""}))}function Ox(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function jx(n){return Iy(n.result)&&xx.has(n.result.status)}function oi(n){return n.type===it.deferred}function Sn(n){return n.type===it.error}function qi(n){return(n&&n.type)===it.redirect}function _g(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Lx(n){let i=n;return i&&typeof i=="object"&&typeof i.data=="object"&&typeof i.subscribe=="function"&&typeof i.cancel=="function"&&typeof i.resolveData=="function"}function Iy(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function Ux(n){return bx.has(n.toLowerCase())}function Qn(n){return yx.has(n.toLowerCase())}async function Bx(n,i,r,u,o){let s=Object.entries(i);for(let c=0;c<s.length;c++){let[h,p]=s[c],m=n.find(x=>(x==null?void 0:x.route.id)===h);if(!m)continue;let y=u.find(x=>x.route.id===m.route.id),g=y!=null&&!Fy(y,m)&&(o&&o[m.route.id])!==void 0;oi(p)&&g&&await Kf(p,r,!1).then(x=>{x&&(i[h]=x)})}}async function Hx(n,i,r){for(let u=0;u<r.length;u++){let{key:o,routeId:s,controller:c}=r[u],h=i[o];n.find(m=>(m==null?void 0:m.route.id)===s)&&oi(h)&&(Ue(c,"Expected an AbortController for revalidating fetcher deferred result"),await Kf(h,c.signal,!0).then(m=>{m&&(i[o]=m)}))}}async function Kf(n,i,r){if(r===void 0&&(r=!1),!await n.deferredData.resolveData(i)){if(r)try{return{type:it.data,data:n.deferredData.unwrappedData}}catch(o){return{type:it.error,error:o}}return{type:it.data,data:n.deferredData.data}}}function If(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function Va(n,i){let r=typeof i=="string"?ci(i).search:i.search;if(n[n.length-1].route.index&&If(r||""))return n[n.length-1];let u=Gy(n);return u[u.length-1]}function Og(n){let{formMethod:i,formAction:r,formEncType:u,text:o,formData:s,json:c}=n;if(!(!i||!r||!u)){if(o!=null)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:i,formAction:r,formEncType:u,formData:s,json:void 0,text:void 0};if(c!==void 0)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:c,text:void 0}}}function of(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qx(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function _a(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function Vx(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function ui(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Yx(n,i){try{let r=n.sessionStorage.getItem(Qy);if(r){let u=JSON.parse(r);for(let[o,s]of Object.entries(u||{}))s&&Array.isArray(s)&&i.set(o,new Set(s||[]))}}catch{}}function Gx(n,i){if(i.size>0){let r={};for(let[u,o]of i)r[u]=[...o];try{n.sessionStorage.setItem(Qy,JSON.stringify(r))}catch(u){Yi(!1,"Failed to save applied view transitions in sessionStorage ("+u+").")}}}/**
|
|
60
|
+
* React Router v6.30.4
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/function To(){return To=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var u in r)({}).hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},To.apply(null,arguments)}const Pa=I.createContext(null),Jf=I.createContext(null),Tl=I.createContext(null),Pf=I.createContext(null),el=I.createContext({outlet:null,matches:[],isDataRoute:!1}),Jy=I.createContext(null);function Xx(n,i){let{relative:r}=i===void 0?{}:i;Lr()||Ue(!1);let{basename:u,navigator:o}=I.useContext(Tl),{hash:s,pathname:c,search:h}=Bo(n,{relative:r}),p=c;return u!=="/"&&(p=c==="/"?u:kl([u,c])),o.createHref({pathname:p,search:h,hash:s})}function Lr(){return I.useContext(Pf)!=null}function Ur(){return Lr()||Ue(!1),I.useContext(Pf).location}function Py(n){I.useContext(Tl).static||I.useLayoutEffect(n)}function Uo(){let{isDataRoute:n}=I.useContext(el);return n?iS():Qx()}function Qx(){Lr()||Ue(!1);let n=I.useContext(Pa),{basename:i,future:r,navigator:u}=I.useContext(Tl),{matches:o}=I.useContext(el),{pathname:s}=Ur(),c=JSON.stringify(jo(o,r.v7_relativeSplatPath)),h=I.useRef(!1);return Py(()=>{h.current=!0}),I.useCallback(function(m,y){if(y===void 0&&(y={}),!h.current)return;if(typeof m=="number"){u.go(m);return}let g=Lo(m,JSON.parse(c),s,y.relative==="path");n==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:kl([i,g.pathname])),(y.replace?u.replace:u.push)(g,y.state,y)},[i,u,c,s,n])}const Fx=I.createContext(null);function Zx(n){let i=I.useContext(el).outlet;return i&&I.createElement(Fx.Provider,{value:n},i)}function $f(){let{matches:n}=I.useContext(el),i=n[n.length-1];return i?i.params:{}}function Bo(n,i){let{relative:r}=i===void 0?{}:i,{future:u}=I.useContext(Tl),{matches:o}=I.useContext(el),{pathname:s}=Ur(),c=JSON.stringify(jo(o,u.v7_relativeSplatPath));return I.useMemo(()=>Lo(n,JSON.parse(c),s,r==="path"),[n,c,s,r])}function Kx(n,i,r,u){Lr()||Ue(!1);let{navigator:o}=I.useContext(Tl),{matches:s}=I.useContext(el),c=s[s.length-1],h=c?c.params:{};c&&c.pathname;let p=c?c.pathnameBase:"/";c&&c.route;let m=Ur(),y;y=m;let g=y.pathname||"/",x=g;if(p!=="/"){let M=p.replace(/^\//,"").split("/");x="/"+g.replace(/^\//,"").split("/").slice(M.length).join("/")}let b=Bi(n,{pathname:x});return Wx(b&&b.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:kl([p,o.encodeLocation?o.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?p:kl([p,o.encodeLocation?o.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),s,r,u)}function Ix(){let n=lS(),i=Fa(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},i),r?I.createElement("pre",{style:o},r):null,null)}const Jx=I.createElement(Ix,null);class Px extends I.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){console.error("React Router caught the following error during render",i,r)}render(){return this.state.error!==void 0?I.createElement(el.Provider,{value:this.props.routeContext},I.createElement(Jy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $x(n){let{routeContext:i,match:r,children:u}=n,o=I.useContext(Pa);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement(el.Provider,{value:i},u)}function Wx(n,i,r,u){var o;if(i===void 0&&(i=[]),r===void 0&&(r=null),u===void 0&&(u=null),n==null){var s;if(!r)return null;if(r.errors)n=r.matches;else if((s=u)!=null&&s.v7_partialHydration&&i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let c=n,h=(o=r)==null?void 0:o.errors;if(h!=null){let y=c.findIndex(g=>g.route.id&&(h==null?void 0:h[g.route.id])!==void 0);y>=0||Ue(!1),c=c.slice(0,Math.min(c.length,y+1))}let p=!1,m=-1;if(r&&u&&u.v7_partialHydration)for(let y=0;y<c.length;y++){let g=c[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=y),g.route.id){let{loaderData:x,errors:b}=r,k=g.route.loader&&x[g.route.id]===void 0&&(!b||b[g.route.id]===void 0);if(g.route.lazy||k){p=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((y,g,x)=>{let b,k=!1,M=null,_=null;r&&(b=h&&g.route.id?h[g.route.id]:void 0,M=g.route.errorElement||Jx,p&&(m<0&&x===0?(rS("route-fallback"),k=!0,_=null):m===x&&(k=!0,_=g.route.hydrateFallbackElement||null)));let R=i.concat(c.slice(0,x+1)),U=()=>{let Y;return b?Y=M:k?Y=_:g.route.Component?Y=I.createElement(g.route.Component,null):g.route.element?Y=g.route.element:Y=y,I.createElement($x,{match:g,routeContext:{outlet:y,matches:R,isDataRoute:r!=null},children:Y})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?I.createElement(Px,{location:r.location,revalidation:r.revalidation,component:M,error:b,children:U(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):U()},null)}var $y=(function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n})($y||{}),Wy=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(Wy||{});function eS(n){let i=I.useContext(Pa);return i||Ue(!1),i}function tS(n){let i=I.useContext(Jf);return i||Ue(!1),i}function nS(n){let i=I.useContext(el);return i||Ue(!1),i}function ev(n){let i=nS(),r=i.matches[i.matches.length-1];return r.route.id||Ue(!1),r.route.id}function lS(){var n;let i=I.useContext(Jy),r=tS(Wy.UseRouteError),u=ev();return i!==void 0?i:(n=r.errors)==null?void 0:n[u]}function iS(){let{router:n}=eS($y.UseNavigateStable),i=ev(),r=I.useRef(!1);return Py(()=>{r.current=!0}),I.useCallback(function(o,s){s===void 0&&(s={}),r.current&&(typeof o=="number"?n.navigate(o):n.navigate(o,To({fromRouteId:i},s)))},[n,i])}const jg={};function rS(n,i,r){jg[n]||(jg[n]=!0)}function aS(n,i){n==null||n.v7_startTransition,(n==null?void 0:n.v7_relativeSplatPath)===void 0&&(!i||i.v7_relativeSplatPath),i&&(i.v7_fetcherPersist,i.v7_normalizeFormMethod,i.v7_partialHydration,i.v7_skipActionErrorRevalidation)}function Wf(n){let{to:i,replace:r,state:u,relative:o}=n;Lr()||Ue(!1);let{future:s,static:c}=I.useContext(Tl),{matches:h}=I.useContext(el),{pathname:p}=Ur(),m=Uo(),y=Lo(i,jo(h,s.v7_relativeSplatPath),p,o==="path"),g=JSON.stringify(y);return I.useEffect(()=>m(JSON.parse(g),{replace:r,state:u,relative:o}),[m,g,o,r,u]),null}function uS(n){return Zx(n.context)}function oS(n){let{basename:i="/",children:r=null,location:u,navigationType:o=jt.Pop,navigator:s,static:c=!1,future:h}=n;Lr()&&Ue(!1);let p=i.replace(/^\/*/,"/"),m=I.useMemo(()=>({basename:p,navigator:s,static:c,future:To({v7_relativeSplatPath:!1},h)}),[p,h,s,c]);typeof u=="string"&&(u=ci(u));let{pathname:y="/",search:g="",hash:x="",state:b=null,key:k="default"}=u,M=I.useMemo(()=>{let _=Cl(y,p);return _==null?null:{location:{pathname:_,search:g,hash:x,state:b,key:k},navigationType:o}},[p,y,g,x,b,k,o]);return M==null?null:I.createElement(Tl.Provider,{value:m},I.createElement(Pf.Provider,{children:r,value:M}))}new Promise(()=>{});function sS(n){let i={hasErrorBoundary:n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&Object.assign(i,{element:I.createElement(n.Component),Component:void 0}),n.HydrateFallback&&Object.assign(i,{hydrateFallbackElement:I.createElement(n.HydrateFallback),HydrateFallback:void 0}),n.ErrorBoundary&&Object.assign(i,{errorElement:I.createElement(n.ErrorBoundary),ErrorBoundary:void 0}),i}/**
|
|
69
|
+
* React Router DOM v6.30.4
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Remix Software Inc.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
75
|
+
*
|
|
76
|
+
* @license MIT
|
|
77
|
+
*/function _r(){return _r=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var u in r)({}).hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},_r.apply(null,arguments)}function tv(n,i){if(n==null)return{};var r={};for(var u in n)if({}.hasOwnProperty.call(n,u)){if(i.indexOf(u)!==-1)continue;r[u]=n[u]}return r}function cS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function fS(n,i){return n.button===0&&(!i||i==="_self")&&!cS(n)}const dS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hS=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],mS="6";try{window.__reactRouterVersion=mS}catch{}function pS(n,i){return kx({basename:void 0,future:_r({},void 0,{v7_prependBasename:!0}),history:Zb({window:void 0}),hydrationData:gS(),routes:n,mapRouteProperties:sS,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function gS(){var n;let i=(n=window)==null?void 0:n.__staticRouterHydrationData;return i&&i.errors&&(i=_r({},i,{errors:yS(i.errors)})),i}function yS(n){if(!n)return null;let i=Object.entries(n),r={};for(let[u,o]of i)if(o&&o.__type==="RouteErrorResponse")r[u]=new Co(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let c=new s(o.message);c.stack="",r[u]=c}catch{}}if(r[u]==null){let s=new Error(o.message);s.stack="",r[u]=s}}else r[u]=o;return r}const nv=I.createContext({isTransitioning:!1}),vS=I.createContext(new Map),bS="startTransition",Lg=Bb[bS],xS="flushSync",Ug=Fb[xS];function SS(n){Lg?Lg(n):n()}function Oa(n){Ug?Ug(n):n()}class ES{constructor(){this.status="pending",this.promise=new Promise((i,r)=>{this.resolve=u=>{this.status==="pending"&&(this.status="resolved",i(u))},this.reject=u=>{this.status==="pending"&&(this.status="rejected",r(u))}})}}function wS(n){let{fallbackElement:i,router:r,future:u}=n,[o,s]=I.useState(r.state),[c,h]=I.useState(),[p,m]=I.useState({isTransitioning:!1}),[y,g]=I.useState(),[x,b]=I.useState(),[k,M]=I.useState(),_=I.useRef(new Map),{v7_startTransition:R}=u||{},U=I.useCallback(ne=>{R?SS(ne):ne()},[R]),Y=I.useCallback((ne,me)=>{let{deletedFetchers:O,flushSync:ie,viewTransitionOpts:P}=me;ne.fetchers.forEach((se,le)=>{se.data!==void 0&&_.current.set(le,se.data)}),O.forEach(se=>_.current.delete(se));let ke=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!P||ke){ie?Oa(()=>s(ne)):U(()=>s(ne));return}if(ie){Oa(()=>{x&&(y&&y.resolve(),x.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let se=r.window.document.startViewTransition(()=>{Oa(()=>s(ne))});se.finished.finally(()=>{Oa(()=>{g(void 0),b(void 0),h(void 0),m({isTransitioning:!1})})}),Oa(()=>b(se));return}x?(y&&y.resolve(),x.skipTransition(),M({state:ne,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(h(ne),m({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[r.window,x,y,_,U]);I.useLayoutEffect(()=>r.subscribe(Y),[r,Y]),I.useEffect(()=>{p.isTransitioning&&!p.flushSync&&g(new ES)},[p]),I.useEffect(()=>{if(y&&c&&r.window){let ne=c,me=y.promise,O=r.window.document.startViewTransition(async()=>{U(()=>s(ne)),await me});O.finished.finally(()=>{g(void 0),b(void 0),h(void 0),m({isTransitioning:!1})}),b(O)}},[U,c,y,r.window]),I.useEffect(()=>{y&&c&&o.location.key===c.location.key&&y.resolve()},[y,x,o.location,c]),I.useEffect(()=>{!p.isTransitioning&&k&&(h(k.state),m({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),M(void 0))},[p.isTransitioning,k]),I.useEffect(()=>{},[]);let te=I.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:ne=>r.navigate(ne),push:(ne,me,O)=>r.navigate(ne,{state:me,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(ne,me,O)=>r.navigate(ne,{replace:!0,state:me,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),oe=r.basename||"/",G=I.useMemo(()=>({router:r,navigator:te,static:!1,basename:oe}),[r,te,oe]),N=I.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return I.useEffect(()=>aS(u,r.future),[u,r.future]),I.createElement(I.Fragment,null,I.createElement(Pa.Provider,{value:G},I.createElement(Jf.Provider,{value:o},I.createElement(vS.Provider,{value:_.current},I.createElement(nv.Provider,{value:p},I.createElement(oS,{basename:oe,location:o.location,navigationType:o.historyAction,navigator:te,future:N},o.initialized||r.future.v7_partialHydration?I.createElement(kS,{routes:r.routes,future:r.future,state:o}):i))))),null)}const kS=I.memo(CS);function CS(n){let{routes:i,future:r,state:u}=n;return Kx(i,void 0,u,r)}const TS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lv=I.forwardRef(function(i,r){let{onClick:u,relative:o,reloadDocument:s,replace:c,state:h,target:p,to:m,preventScrollReset:y,viewTransition:g}=i,x=tv(i,dS),{basename:b}=I.useContext(Tl),k,M=!1;if(typeof m=="string"&&zS.test(m)&&(k=m,TS))try{let Y=new URL(window.location.href),te=m.startsWith("//")?new URL(Y.protocol+m):new URL(m),oe=Cl(te.pathname,b);te.origin===Y.origin&&oe!=null?m=oe+te.search+te.hash:M=!0}catch{}let _=Xx(m,{relative:o}),R=MS(m,{replace:c,state:h,target:p,preventScrollReset:y,relative:o,viewTransition:g});function U(Y){u&&u(Y),Y.defaultPrevented||R(Y)}return I.createElement("a",_r({},x,{href:k||_,onClick:M||s?u:U,ref:r,target:p}))}),So=I.forwardRef(function(i,r){let{"aria-current":u="page",caseSensitive:o=!1,className:s="",end:c=!1,style:h,to:p,viewTransition:m,children:y}=i,g=tv(i,hS),x=Bo(p,{relative:g.relative}),b=Ur(),k=I.useContext(Jf),{navigator:M,basename:_}=I.useContext(Tl),R=k!=null&&DS(x)&&m===!0,U=M.encodeLocation?M.encodeLocation(x).pathname:x.pathname,Y=b.pathname,te=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;o||(Y=Y.toLowerCase(),te=te?te.toLowerCase():null,U=U.toLowerCase()),te&&_&&(te=Cl(te,_)||te);const oe=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let G=Y===U||!c&&Y.startsWith(U)&&Y.charAt(oe)==="/",N=te!=null&&(te===U||!c&&te.startsWith(U)&&te.charAt(U.length)==="/"),ne={isActive:G,isPending:N,isTransitioning:R},me=G?u:void 0,O;typeof s=="function"?O=s(ne):O=[s,G?"active":null,N?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let ie=typeof h=="function"?h(ne):h;return I.createElement(lv,_r({},g,{"aria-current":me,className:O,ref:r,style:ie,to:p,viewTransition:m}),typeof y=="function"?y(ne):y)});var Rf;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(Rf||(Rf={}));var Bg;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(Bg||(Bg={}));function AS(n){let i=I.useContext(Pa);return i||Ue(!1),i}function MS(n,i){let{target:r,replace:u,state:o,preventScrollReset:s,relative:c,viewTransition:h}=i===void 0?{}:i,p=Uo(),m=Ur(),y=Bo(n,{relative:c});return I.useCallback(g=>{if(fS(g,r)){g.preventDefault();let x=u!==void 0?u:Gi(m)===Gi(y);p(n,{replace:x,state:o,preventScrollReset:s,relative:c,viewTransition:h})}},[m,p,y,u,o,r,n,s,c,h])}function DS(n,i){i===void 0&&(i={});let r=I.useContext(nv);r==null&&Ue(!1);let{basename:u}=AS(Rf.useViewTransitionState),o=Bo(n,{relative:i.relative});if(!r.isTransitioning)return!1;let s=Cl(r.currentLocation.pathname,u)||r.currentLocation.pathname,c=Cl(r.nextLocation.pathname,u)||r.nextLocation.pathname;return ko(o.pathname,c)!=null||ko(o.pathname,s)!=null}async function li(n){if(!n.ok){const i=await n.json().catch(()=>({}));throw new Error(i.error??`Request failed (${n.status})`)}return n.json()}const si={bootstrap:()=>fetch("/api/bootstrap").then(li),open:n=>fetch("/api/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(li),refresh:()=>fetch("/api/refresh",{method:"POST"}).then(li),spec:n=>fetch(`/api/specs/${encodeURIComponent(n)}`).then(li),document:n=>fetch(`/api/document?path=${encodeURIComponent(n)}`).then(li),deltas:n=>fetch(`/api/changes/${encodeURIComponent(n)}/deltas`).then(li),status:n=>fetch(`/api/changes/${encodeURIComponent(n)}/status`).then(li),archived:n=>fetch(`/api/archive/${encodeURIComponent(n)}`).then(li)},RS=200;class NS{constructor(){ji(this,"state",{snapshot:null,activity:[],connection:"connecting",pulse:0});ji(this,"listeners",new Set);ji(this,"socket",null);ji(this,"reconnectTimer",null);ji(this,"subscribe",i=>(this.listeners.add(i),()=>this.listeners.delete(i)));ji(this,"getSnapshot",()=>this.state)}connect(){this.socket||this.open()}open(){const i=location.protocol==="https:"?"wss":"ws",r=new WebSocket(`${i}://${location.host}/ws`);this.socket=r,this.patch({connection:"connecting"}),r.onopen=()=>this.patch({connection:"open"}),r.onmessage=u=>{try{this.ingest(JSON.parse(u.data))}catch{}},r.onclose=()=>{this.socket=null,this.patch({connection:"closed"}),this.scheduleReconnect()},r.onerror=()=>r.close()}scheduleReconnect(){this.reconnectTimer===null&&(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.open()},1500))}ingest(i){switch(i.type){case"snapshot":this.patch({snapshot:i.payload,pulse:this.state.pulse+1});break;case"activity":this.patch({activity:[i.payload,...this.state.activity].slice(0,RS),pulse:this.state.pulse+1});break}}seed(i){i&&this.patch({snapshot:i})}patch(i){this.state={...this.state,...i};for(const r of this.listeners)r()}}const zo=new NS;function Qi(){return I.useSyncExternalStore(zo.subscribe,zo.getSnapshot)}const Nf="opsx-activity-open";function _S(){return localStorage.getItem(Nf)==="1"}function OS(){const[n,i]=I.useState(()=>typeof window>"u"?!1:_S()),r=I.useCallback(()=>{i(o=>{const s=!o;return localStorage.setItem(Nf,s?"1":"0"),s})},[]),u=I.useCallback(()=>{localStorage.setItem(Nf,"0"),i(!1)},[]);return{open:n,toggle:r,close:u}}function iv(n){var i,r,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(i=0;i<o;i++)n[i]&&(r=iv(n[i]))&&(u&&(u+=" "),u+=r)}else for(r in n)n[r]&&(u&&(u+=" "),u+=r);return u}function rv(){for(var n,i,r=0,u="",o=arguments.length;r<o;r++)(n=arguments[r])&&(i=iv(n))&&(u&&(u+=" "),u+=i);return u}const ed="-",jS=n=>{const i=US(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=n;return{getClassGroupId:c=>{const h=c.split(ed);return h[0]===""&&h.length!==1&&h.shift(),av(h,i)||LS(c)},getConflictingClassGroupIds:(c,h)=>{const p=r[c]||[];return h&&u[c]?[...p,...u[c]]:p}}},av=(n,i)=>{var c;if(n.length===0)return i.classGroupId;const r=n[0],u=i.nextPart.get(r),o=u?av(n.slice(1),u):void 0;if(o)return o;if(i.validators.length===0)return;const s=n.join(ed);return(c=i.validators.find(({validator:h})=>h(s)))==null?void 0:c.classGroupId},Hg=/^\[(.+)\]$/,LS=n=>{if(Hg.test(n)){const i=Hg.exec(n)[1],r=i==null?void 0:i.substring(0,i.indexOf(":"));if(r)return"arbitrary.."+r}},US=n=>{const{theme:i,prefix:r}=n,u={nextPart:new Map,validators:[]};return HS(Object.entries(n.classGroups),r).forEach(([s,c])=>{_f(c,u,s,i)}),u},_f=(n,i,r,u)=>{n.forEach(o=>{if(typeof o=="string"){const s=o===""?i:qg(i,o);s.classGroupId=r;return}if(typeof o=="function"){if(BS(o)){_f(o(u),i,r,u);return}i.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,c])=>{_f(c,qg(i,s),r,u)})})},qg=(n,i)=>{let r=n;return i.split(ed).forEach(u=>{r.nextPart.has(u)||r.nextPart.set(u,{nextPart:new Map,validators:[]}),r=r.nextPart.get(u)}),r},BS=n=>n.isThemeGetter,HS=(n,i)=>i?n.map(([r,u])=>{const o=u.map(s=>typeof s=="string"?i+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,h])=>[i+c,h])):s);return[r,o]}):n,qS=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=new Map,u=new Map;const o=(s,c)=>{r.set(s,c),i++,i>n&&(i=0,u=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=u.get(s))!==void 0)return o(s,c),c},set(s,c){r.has(s)?r.set(s,c):o(s,c)}}},uv="!",VS=n=>{const{separator:i,experimentalParseClassName:r}=n,u=i.length===1,o=i[0],s=i.length,c=h=>{const p=[];let m=0,y=0,g;for(let _=0;_<h.length;_++){let R=h[_];if(m===0){if(R===o&&(u||h.slice(_,_+s)===i)){p.push(h.slice(y,_)),y=_+s;continue}if(R==="/"){g=_;continue}}R==="["?m++:R==="]"&&m--}const x=p.length===0?h:h.substring(y),b=x.startsWith(uv),k=b?x.substring(1):x,M=g&&g>y?g-y:void 0;return{modifiers:p,hasImportantModifier:b,baseClassName:k,maybePostfixModifierPosition:M}};return r?h=>r({className:h,parseClassName:c}):c},YS=n=>{if(n.length<=1)return n;const i=[];let r=[];return n.forEach(u=>{u[0]==="["?(i.push(...r.sort(),u),r=[]):r.push(u)}),i.push(...r.sort()),i},GS=n=>({cache:qS(n.cacheSize),parseClassName:VS(n),...jS(n)}),XS=/\s+/,QS=(n,i)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:o}=i,s=[],c=n.trim().split(XS);let h="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:y,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:b}=r(m);let k=!!b,M=u(k?x.substring(0,b):x);if(!M){if(!k){h=m+(h.length>0?" "+h:h);continue}if(M=u(x),!M){h=m+(h.length>0?" "+h:h);continue}k=!1}const _=YS(y).join(":"),R=g?_+uv:_,U=R+M;if(s.includes(U))continue;s.push(U);const Y=o(M,k);for(let te=0;te<Y.length;++te){const oe=Y[te];s.push(R+oe)}h=m+(h.length>0?" "+h:h)}return h};function FS(){let n=0,i,r,u="";for(;n<arguments.length;)(i=arguments[n++])&&(r=ov(i))&&(u&&(u+=" "),u+=r);return u}const ov=n=>{if(typeof n=="string")return n;let i,r="";for(let u=0;u<n.length;u++)n[u]&&(i=ov(n[u]))&&(r&&(r+=" "),r+=i);return r};function ZS(n,...i){let r,u,o,s=c;function c(p){const m=i.reduce((y,g)=>g(y),n());return r=GS(m),u=r.cache.get,o=r.cache.set,s=h,h(p)}function h(p){const m=u(p);if(m)return m;const y=QS(p,r);return o(p,y),y}return function(){return s(FS.apply(null,arguments))}}const yt=n=>{const i=r=>r[n]||[];return i.isThemeGetter=!0,i},sv=/^\[(?:([a-z-]+):)?(.+)\]$/i,KS=/^\d+\/\d+$/,IS=new Set(["px","full","screen"]),JS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,e2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wl=n=>Nr(n)||IS.has(n)||KS.test(n),ii=n=>Br(n,"length",o2),Nr=n=>!!n&&!Number.isNaN(Number(n)),sf=n=>Br(n,"number",Nr),ja=n=>!!n&&Number.isInteger(Number(n)),t2=n=>n.endsWith("%")&&Nr(n.slice(0,-1)),Le=n=>sv.test(n),ri=n=>JS.test(n),n2=new Set(["length","size","percentage"]),l2=n=>Br(n,n2,cv),i2=n=>Br(n,"position",cv),r2=new Set(["image","url"]),a2=n=>Br(n,r2,c2),u2=n=>Br(n,"",s2),La=()=>!0,Br=(n,i,r)=>{const u=sv.exec(n);return u?u[1]?typeof i=="string"?u[1]===i:i.has(u[1]):r(u[2]):!1},o2=n=>PS.test(n)&&!$S.test(n),cv=()=>!1,s2=n=>WS.test(n),c2=n=>e2.test(n),f2=()=>{const n=yt("colors"),i=yt("spacing"),r=yt("blur"),u=yt("brightness"),o=yt("borderColor"),s=yt("borderRadius"),c=yt("borderSpacing"),h=yt("borderWidth"),p=yt("contrast"),m=yt("grayscale"),y=yt("hueRotate"),g=yt("invert"),x=yt("gap"),b=yt("gradientColorStops"),k=yt("gradientColorStopPositions"),M=yt("inset"),_=yt("margin"),R=yt("opacity"),U=yt("padding"),Y=yt("saturate"),te=yt("scale"),oe=yt("sepia"),G=yt("skew"),N=yt("space"),ne=yt("translate"),me=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",Le,i],P=()=>[Le,i],ke=()=>["",wl,ii],se=()=>["auto",Nr,Le],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],ze=()=>["","0",Le],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Nr,Le];return{cacheSize:500,separator:":",theme:{colors:[La],spacing:[wl,ii],blur:["none","",ri,Le],brightness:z(),borderColor:[n],borderRadius:["none","","full",ri,Le],borderSpacing:P(),borderWidth:ke(),contrast:z(),grayscale:ze(),hueRotate:z(),invert:ze(),gap:P(),gradientColorStops:[n],gradientColorStopPositions:[t2,ii],inset:ie(),margin:ie(),opacity:z(),padding:P(),saturate:z(),scale:z(),sepia:ze(),skew:z(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[ri]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),Le]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ja,Le]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ze()}],shrink:[{shrink:ze()}],order:[{order:["first","last","none",ja,Le]}],"grid-cols":[{"grid-cols":[La]}],"col-start-end":[{col:["auto",{span:["full",ja,Le]},Le]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[La]}],"row-start-end":[{row:["auto",{span:[ja,Le]},Le]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,i]}],"min-w":[{"min-w":[Le,i,"min","max","fit"]}],"max-w":[{"max-w":[Le,i,"none","full","min","max","fit","prose",{screen:[ri]},ri]}],h:[{h:[Le,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,i,"auto","min","max","fit"]}],"font-size":[{text:["base",ri,ii]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sf]}],"font-family":[{font:[La]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Nr,sf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wl,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wl,ii]}],"underline-offset":[{"underline-offset":["auto",wl,Le]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),i2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",l2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},a2]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[wl,Le]}],"outline-w":[{outline:[wl,ii]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[wl,ii]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",ri,u2]}],"shadow-color":[{shadow:[La]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[u]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",ri,Le]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[g]}],saturate:[{saturate:[Y]}],sepia:[{sepia:[oe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[Y]}],"backdrop-sepia":[{"backdrop-sepia":[oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[te]}],"scale-x":[{"scale-x":[te]}],"scale-y":[{"scale-y":[te]}],rotate:[{rotate:[ja,Le]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[wl,ii,sf]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},d2=ZS(f2);function ct(...n){return d2(rv(n))}function h2(n){if(!n)return"—";const i=new Date(n).getTime();if(Number.isNaN(i))return"—";const r=Date.now()-i,u=Math.round(r/1e3);if(u<45)return"just now";const o=Math.round(u/60);if(o<60)return`${o}m ago`;const s=Math.round(o/60);if(s<24)return`${s}h ago`;const c=Math.round(s/24);return c<30?`${c}d ago`:new Date(n).toLocaleDateString()}function m2(n){return new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}/**
|
|
78
|
+
* @license lucide-react v0.469.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const p2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fv=(...n)=>n.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===r).join(" ").trim();/**
|
|
83
|
+
* @license lucide-react v0.469.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/var g2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
88
|
+
* @license lucide-react v0.469.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const y2=I.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:o="",children:s,iconNode:c,...h},p)=>I.createElement("svg",{ref:p,...g2,width:i,height:i,stroke:n,strokeWidth:u?Number(r)*24/Number(i):r,className:fv("lucide",o),...h},[...c.map(([m,y])=>I.createElement(m,y)),...Array.isArray(s)?s:[s]]));/**
|
|
93
|
+
* @license lucide-react v0.469.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const vt=(n,i)=>{const r=I.forwardRef(({className:u,...o},s)=>I.createElement(y2,{ref:s,iconNode:i,className:fv(`lucide-${p2(n)}`,u),...o}));return r.displayName=`${n}`,r};/**
|
|
98
|
+
* @license lucide-react v0.469.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const v2=vt("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
103
|
+
* @license lucide-react v0.469.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const Ao=vt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
|
108
|
+
* @license lucide-react v0.469.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const b2=vt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
113
|
+
* @license lucide-react v0.469.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const dv=vt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
118
|
+
* @license lucide-react v0.469.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const x2=vt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
123
|
+
* @license lucide-react v0.469.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const S2=vt("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
128
|
+
* @license lucide-react v0.469.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const E2=vt("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
133
|
+
* @license lucide-react v0.469.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const w2=vt("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/**
|
|
138
|
+
* @license lucide-react v0.469.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const k2=vt("FilePlus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]);/**
|
|
143
|
+
* @license lucide-react v0.469.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const C2=vt("FileQuestion",[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]);/**
|
|
148
|
+
* @license lucide-react v0.469.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const T2=vt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
153
|
+
* @license lucide-react v0.469.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const z2=vt("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]]);/**
|
|
158
|
+
* @license lucide-react v0.469.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const A2=vt("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
|
|
163
|
+
* @license lucide-react v0.469.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const M2=vt("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
168
|
+
* @license lucide-react v0.469.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const D2=vt("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
|
|
173
|
+
* @license lucide-react v0.469.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const R2=vt("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
178
|
+
* @license lucide-react v0.469.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const $a=vt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
183
|
+
* @license lucide-react v0.469.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const N2=vt("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
188
|
+
* @license lucide-react v0.469.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const _2=vt("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
193
|
+
* @license lucide-react v0.469.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const O2=vt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
198
|
+
* @license lucide-react v0.469.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const j2=vt("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
203
|
+
* @license lucide-react v0.469.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const hv=vt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
208
|
+
* @license lucide-react v0.469.0 - ISC
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the ISC license.
|
|
211
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/const L2=vt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
213
|
+
* @license lucide-react v0.469.0 - ISC
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the ISC license.
|
|
216
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/const U2=vt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
218
|
+
* @license lucide-react v0.469.0 - ISC
|
|
219
|
+
*
|
|
220
|
+
* This source code is licensed under the ISC license.
|
|
221
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
+
*/const B2=vt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),H2={created:{color:"text-op-added",Icon:k2},modified:{color:"text-op-modified",Icon:w2},removed:{color:"text-op-removed",Icon:z2}};function q2({entries:n,live:i}){return E.jsxs("aside",{className:"flex h-full flex-col",children:[E.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[E.jsx(j2,{className:ct("size-4",i?"text-op-added":"text-muted-foreground")}),E.jsx("h2",{className:"text-sm font-semibold",children:"Activity"}),E.jsx("span",{className:ct("ml-auto size-2 rounded-full transition-colors",i?"bg-op-added animate-pulse":"bg-muted-foreground/40"),title:i?"live":"reconnecting…"})]}),E.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto pr-1",children:n.length===0?E.jsx("p",{className:"text-muted-foreground py-8 text-center text-xs",children:"Waiting for changes… edits by an agent show up here instantly."}):E.jsx("ol",{className:"flex flex-col gap-0.5",children:n.map(r=>{const u=H2[r.kind];return E.jsxs("li",{className:"hover:bg-accent/40 flex items-start gap-2.5 rounded-md px-2 py-1.5",children:[E.jsx(u.Icon,{className:ct("mt-0.5 size-3.5 shrink-0",u.color)}),E.jsxs("div",{className:"min-w-0 flex-1",children:[E.jsxs("p",{className:"truncate text-xs",children:[E.jsx("span",{className:"text-muted-foreground",children:r.targetType})," ",E.jsx("span",{className:"font-mono",children:r.targetId})]}),E.jsx("p",{className:"text-muted-foreground truncate text-[0.7rem]",children:r.detail})]}),E.jsx("time",{className:"text-muted-foreground/70 shrink-0 font-mono text-[0.65rem] tabular-nums",children:m2(r.timestamp)})]},r.id)})})})]})}const Vg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Yg=rv,mv=(n,i)=>r=>{var u;if((i==null?void 0:i.variants)==null)return Yg(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=i,c=Object.keys(o).map(m=>{const y=r==null?void 0:r[m],g=s==null?void 0:s[m];if(y===null)return null;const x=Vg(y)||Vg(g);return o[m][x]}),h=r&&Object.entries(r).reduce((m,y)=>{let[g,x]=y;return x===void 0||(m[g]=x),m},{}),p=i==null||(u=i.compoundVariants)===null||u===void 0?void 0:u.reduce((m,y)=>{let{class:g,className:x,...b}=y;return Object.entries(b).every(k=>{let[M,_]=k;return Array.isArray(_)?_.includes({...s,...h}[M]):{...s,...h}[M]===_})?[...m,g,x]:m},[]);return Yg(n,c,p,r==null?void 0:r.class,r==null?void 0:r.className)},V2=mv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-border bg-transparent hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Or({className:n,variant:i,size:r,...u}){return E.jsx("button",{className:ct(V2({variant:i,size:r}),n),...u})}function Y2({open:n,onClose:i,entries:r,live:u}){return E.jsxs(E.Fragment,{children:[E.jsx("div",{"aria-hidden":!n,onClick:i,className:ct("fixed inset-0 z-20 bg-black/30 transition-opacity",n?"opacity-100":"pointer-events-none opacity-0")}),E.jsxs("aside",{role:"dialog","aria-label":"Activity","aria-hidden":!n,className:ct("bg-background border-border fixed inset-y-0 right-0 z-30 flex w-full max-w-sm flex-col border-l shadow-xl transition-transform duration-200",n?"translate-x-0":"translate-x-full"),children:[E.jsx("div",{className:"flex justify-end px-2 pt-2",children:E.jsx(Or,{variant:"ghost",size:"icon",onClick:i,title:"Close activity",children:E.jsx(B2,{})})}),E.jsx("div",{className:"min-h-0 flex-1 px-4 pb-4",children:E.jsx(q2,{entries:r,live:u})})]})]})}function Za({className:n,...i}){return E.jsx("div",{"data-slot":"card",className:ct("bg-card text-card-foreground flex flex-col rounded-xl border shadow-sm",n),...i})}function G2({className:n,...i}){return E.jsx("div",{"data-slot":"card-header",className:ct("flex flex-col gap-1 px-5 pt-5",n),...i})}function X2({className:n,...i}){return E.jsx("div",{"data-slot":"card-title",className:ct("font-display leading-none font-semibold",n),...i})}function Ka({className:n,...i}){return E.jsx("div",{"data-slot":"card-content",className:ct("px-5 py-4",n),...i})}function Q2({bootstrap:n,onOpened:i}){const[r,u]=I.useState(n.cwd),[o,s]=I.useState(null),[c,h]=I.useState(!1);async function p(m){h(!0),s(null);try{await si.open(m),i()}catch(y){s(y.message)}finally{h(!1)}}return E.jsxs("div",{className:"mx-auto flex min-h-dvh max-w-lg flex-col justify-center gap-6 px-6 py-16",children:[E.jsxs("div",{className:"text-center",children:[E.jsx("h1",{className:"font-display text-2xl font-bold tracking-tight",children:"opsx-ui"}),E.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"Open an OpenSpec project to view its specs and changes."})]}),n.cwdHasOpenSpec?E.jsx(Za,{children:E.jsxs(Ka,{className:"flex items-center justify-between gap-4",children:[E.jsxs("div",{className:"min-w-0",children:[E.jsx("p",{className:"text-sm font-medium",children:"Current directory"}),E.jsx("p",{className:"text-muted-foreground truncate font-mono text-xs",children:n.cwd})]}),E.jsxs(Or,{onClick:()=>p({dir:n.cwd}),disabled:c,children:[E.jsx(M2,{})," Open"]})]})}):E.jsx(Za,{children:E.jsxs(Ka,{className:"flex items-start gap-3",children:[E.jsx(U2,{className:"text-op-modified mt-0.5 size-4 shrink-0"}),E.jsxs("div",{className:"min-w-0 text-sm",children:[E.jsx("p",{className:"font-medium",children:"No OpenSpec here"}),E.jsx("p",{className:"text-muted-foreground truncate font-mono text-xs",children:n.cwd}),E.jsxs("p",{className:"text-muted-foreground mt-1 text-xs",children:["Run ",E.jsx("code",{className:"font-mono",children:"openspec init"})," there, or open another project below."]})]})]})}),n.stores.length>0&&E.jsxs("div",{className:"flex flex-col gap-2",children:[E.jsxs("p",{className:"text-muted-foreground flex items-center gap-1.5 text-xs font-medium",children:[E.jsx(E2,{className:"size-3.5"})," Registered stores"]}),n.stores.map(m=>E.jsxs("button",{onClick:()=>p({storeId:m.id}),disabled:c,className:"border-border hover:border-ring/60 hover:bg-accent/40 flex items-center justify-between rounded-lg border px-4 py-2.5 text-left transition-colors disabled:opacity-50",children:[E.jsx("span",{className:"text-sm font-medium",children:m.name}),E.jsx("span",{className:"text-muted-foreground truncate font-mono text-xs",children:m.id})]},m.id))]}),E.jsxs("div",{className:"flex flex-col gap-2",children:[E.jsxs("p",{className:"text-muted-foreground flex items-center gap-1.5 text-xs font-medium",children:[E.jsx(A2,{className:"size-3.5"})," Open a path"]}),E.jsxs("div",{className:"flex gap-2",children:[E.jsx("input",{value:r,onChange:m=>u(m.target.value),spellCheck:!1,className:"border-input bg-background focus-visible:ring-ring h-9 flex-1 rounded-md border px-3 font-mono text-xs outline-none focus-visible:ring-2",placeholder:"/path/to/project"}),E.jsx(Or,{variant:"outline",onClick:()=>p({dir:r}),disabled:c,children:"Open"})]})]}),o&&E.jsx("p",{className:"text-op-removed text-center text-xs",children:o})]})}const pv="opsx-theme",gv="(prefers-color-scheme: dark)";function F2(){return window.matchMedia(gv).matches}function Z2(n){return n==="dark"||n==="system"&&F2()}function K2(){const n=localStorage.getItem(pv);return n==="light"||n==="dark"||n==="system"?n:"system"}function I2(){const[n,i]=I.useState(()=>typeof window>"u"?"system":K2()),r=I.useCallback(o=>{document.documentElement.classList.toggle("dark",Z2(o))},[]),u=I.useCallback(o=>{localStorage.setItem(pv,o),i(o),r(o)},[r]);return I.useEffect(()=>{if(n!=="system")return;const o=window.matchMedia(gv),s=()=>r("system");return o.addEventListener("change",s),()=>o.removeEventListener("change",s)},[n,r]),{theme:n,setTheme:u}}const J2=[{value:"light",Icon:L2,label:"Light"},{value:"system",Icon:_2,label:"System"},{value:"dark",Icon:O2,label:"Dark"}];function P2(){const{theme:n,setTheme:i}=I2();return E.jsx("div",{className:"bg-secondary inline-flex items-center gap-0.5 rounded-lg p-0.5",role:"group","aria-label":"Theme",children:J2.map(({value:r,Icon:u,label:o})=>E.jsx("button",{onClick:()=>i(r),title:o,"aria-pressed":n===r,className:ct("flex size-6 items-center justify-center rounded-md transition-colors",n===r?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:E.jsx(u,{className:"size-3.5"})},r))})}function $2(){var p;const[n,i]=I.useState({status:"loading"}),r=Qi(),u=OS(),o=I.useCallback(async()=>{i({status:"loading"});try{const m=await si.bootstrap();if(m.project){const y=await si.refresh().catch(()=>null);zo.seed(y),zo.connect()}i({status:"ready",bootstrap:m})}catch(m){i({status:"error",message:m instanceof Error?m.message:String(m)})}},[]);if(I.useEffect(()=>{o()},[o]),n.status==="loading")return E.jsx("div",{className:"text-muted-foreground flex min-h-dvh items-center justify-center",children:E.jsx($a,{className:"size-5 animate-spin"})});if(n.status==="error")return E.jsx(eE,{message:n.message,onRetry:()=>void o()});const s=n.bootstrap;if(!s.project)return E.jsx(Q2,{bootstrap:s,onOpened:()=>void o()});const c=r.connection==="open",h=((p=r.snapshot)==null?void 0:p.archived.length)??0;return E.jsxs("div",{className:"min-h-dvh",children:[E.jsx(W2,{projectName:s.project.name,version:s.version,live:c,archivedCount:h,activityOpen:u.open,onToggleActivity:u.toggle,onRefresh:()=>void si.refresh()}),E.jsx("div",{className:"mx-auto max-w-[1400px] px-6 py-8",children:E.jsx(uS,{})}),E.jsx(Y2,{open:u.open,onClose:u.close,entries:r.activity,live:c})]})}const Gg=({isActive:n})=>ct("rounded-md px-2.5 py-1 text-sm font-medium transition-colors",n?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/40 hover:text-foreground");function W2({projectName:n,version:i,live:r,archivedCount:u,activityOpen:o,onToggleActivity:s,onRefresh:c}){return E.jsx("header",{className:"border-border bg-background/80 sticky top-0 z-10 border-b backdrop-blur",children:E.jsxs("div",{className:"mx-auto flex max-w-[1400px] items-center gap-3 px-6 py-3",children:[E.jsx("span",{className:"font-display text-base font-semibold tracking-tight",children:"opsx-ui"}),E.jsxs("nav",{className:"ml-2 flex items-center gap-1",children:[E.jsx(So,{to:"/board",className:Gg,children:"Board"}),E.jsx(So,{to:"/specs",className:Gg,children:"Specs"})]}),E.jsxs("div",{className:"ml-1 flex items-baseline gap-2",children:[E.jsx("span",{className:"font-mono text-sm",children:n}),i&&E.jsxs("span",{className:"text-muted-foreground text-xs",children:["openspec ",i]})]}),E.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[E.jsxs(So,{to:"/archive",className:({isActive:h})=>ct("inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium transition-colors",h?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/40 hover:text-foreground"),children:[E.jsx(Ao,{className:"size-4"})," Archive",u>0&&E.jsx("span",{className:"tabular-nums",children:u})]}),E.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 text-xs",children:[E.jsx("span",{className:ct("size-2 rounded-full",r?"bg-op-added":"bg-op-modified animate-pulse")}),r?"live":"reconnecting"]}),E.jsx(Or,{variant:o?"secondary":"ghost",size:"icon",onClick:s,title:"Activity","aria-pressed":o,children:E.jsx(v2,{})}),E.jsx(P2,{}),E.jsx(Or,{variant:"ghost",size:"icon",onClick:c,title:"Refresh",children:E.jsx(hv,{})})]})]})})}function eE({message:n,onRetry:i}){return E.jsx("div",{className:"flex min-h-dvh items-center justify-center px-6",children:E.jsxs("div",{className:"border-border flex max-w-md flex-col items-center gap-3 rounded-xl border p-8 text-center",children:[E.jsx(dv,{className:"text-op-removed size-6"}),E.jsx("h1",{className:"font-display text-lg font-semibold",children:"Couldn't reach the opsx-ui server"}),E.jsxs("p",{className:"text-muted-foreground text-sm",children:["The viewer server isn't responding. In dev, make sure both processes are running — start them together with"," ",E.jsx("code",{className:"font-mono text-xs",children:"npm run dev"}),"."]}),E.jsx("p",{className:"text-muted-foreground/80 font-mono text-xs break-all",children:n}),E.jsxs(Or,{variant:"secondary",size:"sm",onClick:i,className:"mt-1",children:[E.jsx(hv,{})," Retry"]})]})})}function td({value:n,max:i,className:r}){const u=i>0?Math.round(n/i*100):0;return E.jsx("div",{className:ct("bg-secondary h-1.5 w-full overflow-hidden rounded-full",r),role:"progressbar","aria-valuenow":n,"aria-valuemax":i,children:E.jsx("div",{className:"bg-primary h-full rounded-full transition-[width] duration-500",style:{width:`${u}%`}})})}const tE=["ADDED","MODIFIED","REMOVED","RENAMED"];function nE(n){switch(n){case"ADDED":return"added";case"REMOVED":return"removed";default:return"modified"}}function Xg(n){switch(n){case"ADDED":return"var(--op-added)";case"REMOVED":return"var(--op-removed)";default:return"var(--op-modified)"}}function lE(n){switch(n){case"valid":return"valid";case"invalid":return"invalid";default:return"unchecked"}}const Qg={valid:{color:"text-op-added",Icon:x2},invalid:{color:"text-op-removed",Icon:dv},unknown:{color:"text-muted-foreground",Icon:S2}};function cf({change:n,onOpen:i}){const r=Qg[n.validation]??Qg.unknown,{completed:u,total:o}=n.tasks,s=o>0&&u===o;return E.jsxs(Za,{role:"button",tabIndex:0,onClick:()=>i(n.name),onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),i(n.name))},className:"hover:border-ring/60 cursor-pointer transition-colors hover:shadow-md",children:[E.jsx(G2,{children:E.jsxs("div",{className:"flex items-start justify-between gap-3",children:[E.jsx(X2,{className:"font-mono text-[0.95rem] tracking-tight",children:n.name}),E.jsx("span",{className:ct("flex items-center gap-1 text-xs",r.color),title:`validation: ${lE(n.validation)}`,children:E.jsx(r.Icon,{className:"size-4"})})]})}),E.jsxs(Ka,{className:"flex flex-col gap-3",children:[E.jsxs("div",{className:"flex items-center justify-between text-xs",children:[E.jsx("span",{className:"text-muted-foreground capitalize",children:n.status}),E.jsxs("span",{className:ct("tabular-nums",s?"text-op-added":"text-muted-foreground"),children:[u,"/",o," tasks"]})]}),E.jsx(td,{value:u,max:o}),E.jsxs("div",{className:"text-muted-foreground text-xs",children:["updated ",h2(n.lastModified)]})]})]})}function iE(n){const{completed:i,total:r}=n.tasks;return r>0&&i>=r?"ready":i>0?"in-progress":"proposed"}function rE(n){const i=[],r=[],u=[];for(const o of n.changes)switch(iE(o)){case"ready":u.push(o);break;case"in-progress":r.push(o);break;default:i.push(o)}return{proposed:i,inProgress:r,ready:u,archived:[...n.archived]}}function aE({changes:n,archived:i,onOpenChange:r,onOpenArchived:u}){const o=rE({changes:n,archived:i});return E.jsx("div",{className:"flex flex-col gap-10",children:E.jsxs("section",{children:[E.jsxs("div",{className:"mb-3 flex items-baseline justify-between",children:[E.jsx("h2",{className:"text-lg font-semibold",children:"Board"}),E.jsxs("span",{className:"text-muted-foreground text-sm tabular-nums",children:[n.length," active"]})]}),E.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-4",children:[E.jsx(po,{title:"Proposed",accent:"bg-muted-foreground/50",count:o.proposed.length,empty:"No proposed changes",children:o.proposed.map(s=>E.jsx(cf,{change:s,onOpen:r},s.name))}),E.jsx(po,{title:"In progress",accent:"bg-op-modified",count:o.inProgress.length,empty:"Nothing in progress",children:o.inProgress.map(s=>E.jsx(cf,{change:s,onOpen:r},s.name))}),E.jsx(po,{title:"Ready to archive",accent:"bg-op-added",count:o.ready.length,empty:"Nothing ready yet",children:o.ready.map(s=>E.jsx(cf,{change:s,onOpen:r},s.name))}),E.jsx(po,{title:"Archived",accent:"bg-border",count:o.archived.length,empty:"Nothing archived",children:o.archived.map(s=>E.jsx(uE,{change:s,onOpen:u},s.id))})]})]})})}function po({title:n,accent:i,count:r,empty:u,children:o}){return E.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("span",{className:`size-2 rounded-full ${i}`}),E.jsx("h3",{className:"text-foreground text-sm font-semibold",children:n}),E.jsx("span",{className:"text-muted-foreground text-xs tabular-nums",children:r})]}),E.jsx("div",{className:"flex flex-col gap-3",children:r===0?E.jsx("div",{className:"border-border text-muted-foreground rounded-lg border border-dashed px-3 py-6 text-center text-xs",children:u}):o})]})}function uE({change:n,onOpen:i}){return E.jsx(Za,{role:"button",tabIndex:0,onClick:()=>i(n.id),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),i(n.id))},className:"hover:border-ring/60 cursor-pointer transition-colors hover:shadow-md",children:E.jsxs(Ka,{className:"flex flex-col gap-3 py-4",children:[E.jsxs("div",{className:"flex items-start justify-between gap-2",children:[E.jsx("span",{className:"font-mono text-sm",children:n.name}),E.jsx(Ao,{className:"text-muted-foreground size-4 shrink-0"})]}),E.jsxs("div",{className:"flex items-center justify-between text-xs",children:[E.jsx("span",{className:"text-muted-foreground",children:n.archivedDate??"—"}),E.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[n.tasks.completed,"/",n.tasks.total," tasks"]})]}),E.jsx(td,{value:n.tasks.completed,max:n.tasks.total})]})})}function nd(){return E.jsx("div",{className:"text-muted-foreground flex justify-center py-24",children:E.jsx($a,{className:"size-5 animate-spin"})})}function ld({to:n,label:i="Back"}){return E.jsxs(lv,{to:n,className:"text-muted-foreground hover:text-foreground mb-4 -ml-1 inline-flex items-center gap-1.5 text-sm transition-colors",children:[E.jsx(b2,{className:"size-4"})," ",i]})}function oE(){const n=Uo(),{snapshot:i}=Qi();return i?E.jsx(aE,{changes:i.changes,archived:i.archived,onOpenChange:r=>n(`/changes/${encodeURIComponent(r)}`),onOpenArchived:r=>n(`/archive/${encodeURIComponent(r)}`)}):E.jsx(nd,{})}function Ho(n,i){const[r,u]=I.useState({data:null,error:null,loading:!0});return I.useEffect(()=>{let o=!0;return u(s=>({...s,loading:!0,error:null})),n().then(s=>{o&&u({data:s,error:null,loading:!1})}).catch(s=>{o&&u({data:null,error:s.message,loading:!1})}),()=>{o=!1}},i),r}function sE(n,i){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const cE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dE={};function Fg(n,i){return(dE.jsx?fE:cE).test(n)}const hE=/[ \t\n\f\r]/g;function mE(n){return typeof n=="object"?n.type==="text"?Zg(n.value):!1:Zg(n)}function Zg(n){return n.replace(hE,"")===""}class Wa{constructor(i,r,u){this.normal=r,this.property=i,u&&(this.space=u)}}Wa.prototype.normal={};Wa.prototype.property={};Wa.prototype.space=void 0;function yv(n,i){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new Wa(r,u,i)}function Of(n){return n.toLowerCase()}class fn{constructor(i,r){this.attribute=r,this.property=i}}fn.prototype.attribute="";fn.prototype.booleanish=!1;fn.prototype.boolean=!1;fn.prototype.commaOrSpaceSeparated=!1;fn.prototype.commaSeparated=!1;fn.prototype.defined=!1;fn.prototype.mustUseProperty=!1;fn.prototype.number=!1;fn.prototype.overloadedBoolean=!1;fn.prototype.property="";fn.prototype.spaceSeparated=!1;fn.prototype.space=void 0;let pE=0;const Re=Fi(),Ot=Fi(),jf=Fi(),re=Fi(),st=Fi(),Vi=Fi(),xn=Fi();function Fi(){return 2**++pE}const Lf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:Ot,commaOrSpaceSeparated:xn,commaSeparated:Vi,number:re,overloadedBoolean:jf,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),ff=Object.keys(Lf);class id extends fn{constructor(i,r,u,o){let s=-1;if(super(i,r),Kg(this,"space",o),typeof u=="number")for(;++s<ff.length;){const c=ff[s];Kg(this,ff[s],(u&Lf[c])===Lf[c])}}}id.prototype.defined=!0;function Kg(n,i,r){r&&(n[i]=r)}function Hr(n){const i={},r={};for(const[u,o]of Object.entries(n.properties)){const s=new id(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(s.mustUseProperty=!0),i[u]=s,r[Of(u)]=u,r[Of(s.attribute)]=u}return new Wa(i,r,n.space)}const vv=Hr({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:st,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:re,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:st,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:Ot,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(n,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function bv(n,i){return i in n?n[i]:i}function xv(n,i){return bv(n,i.toLowerCase())}const gE=Hr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vi,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alpha:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:st,autoFocus:Re,autoPlay:Re,blocking:st,capture:null,charSet:null,checked:Re,cite:null,className:st,closedBy:null,colorSpace:null,cols:re,colSpan:re,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Re,controlsList:st,coords:re|Vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:jf,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:st,height:re,hidden:jf,high:re,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:st,itemRef:st,itemScope:Re,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:re,pattern:null,ping:st,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:st,required:Re,reversed:Re,rows:re,rowSpan:re,sandbox:st,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootCustomElementRegistry:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shadowRootSerializable:Re,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:Ot,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Re,disablePictureInPicture:Re,disableRemotePlayback:Re,exportParts:Vi,part:st,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:xv}),yE=Hr({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:xn,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:st,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vi,g2:Vi,glyphName:Vi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bv}),Sv=Hr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,i){return"xlink:"+i.slice(5).toLowerCase()}}),Ev=Hr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xv}),wv=Hr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,i){return"xml:"+i.slice(3).toLowerCase()}}),vE={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"},bE=/[A-Z]/g,Ig=/-[a-z]/g,xE=/^data[-\w.:]+$/i;function SE(n,i){const r=Of(i);let u=i,o=fn;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&xE.test(i)){if(i.charAt(4)==="-"){const s=i.slice(5).replace(Ig,wE);u="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=i.slice(4);if(!Ig.test(s)){let c=s.replace(bE,EE);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}o=id}return new o(u,i)}function EE(n){return"-"+n.toLowerCase()}function wE(n){return n.charAt(1).toUpperCase()}const kE=yv([vv,gE,Sv,Ev,wv],"html"),rd=yv([vv,yE,Sv,Ev,wv],"svg");function CE(n){return n.join(" ").trim()}var Dr={},df,Jg;function TE(){if(Jg)return df;Jg=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,p=`
|
|
223
|
+
`,m="/",y="*",g="",x="comment",b="declaration";function k(_,R){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];R=R||{};var U=1,Y=1;function te(se){var le=se.match(i);le&&(U+=le.length);var B=se.lastIndexOf(p);Y=~B?se.length-B:Y+se.length}function oe(){var se={line:U,column:Y};return function(le){return le.position=new G(se),me(),le}}function G(se){this.start=se,this.end={line:U,column:Y},this.source=R.source}G.prototype.content=_;function N(se){var le=new Error(R.source+":"+U+":"+Y+": "+se);if(le.reason=se,le.filename=R.source,le.line=U,le.column=Y,le.source=_,!R.silent)throw le}function ne(se){var le=se.exec(_);if(le){var B=le[0];return te(B),_=_.slice(B.length),le}}function me(){ne(r)}function O(se){var le;for(se=se||[];le=ie();)le!==!1&&se.push(le);return se}function ie(){var se=oe();if(!(m!=_.charAt(0)||y!=_.charAt(1))){for(var le=2;g!=_.charAt(le)&&(y!=_.charAt(le)||m!=_.charAt(le+1));)++le;if(le+=2,g===_.charAt(le-1))return N("End of comment missing");var B=_.slice(2,le-2);return Y+=2,te(B),_=_.slice(le),Y+=2,se({type:x,comment:B})}}function P(){var se=oe(),le=ne(u);if(le){if(ie(),!ne(o))return N("property missing ':'");var B=ne(s),ee=se({type:b,property:M(le[0].replace(n,g)),value:B?M(B[0].replace(n,g)):g});return ne(c),ee}}function ke(){var se=[];O(se);for(var le;le=P();)le!==!1&&(se.push(le),O(se));return se}return me(),ke()}function M(_){return _?_.replace(h,g):g}return df=k,df}var Pg;function zE(){if(Pg)return Dr;Pg=1;var n=Dr&&Dr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=r;const i=n(TE());function r(u,o){let s=null;if(!u||typeof u!="string")return s;const c=(0,i.default)(u),h=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;h?o(m,y,p):y&&(s=s||{},s[m]=y)}),s}return Dr}var Ua={},$g;function AE(){if($g)return Ua;$g=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(m){return!m||r.test(m)||n.test(m)},c=function(m,y){return y.toUpperCase()},h=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),s(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,h):m=m.replace(u,h),m.replace(i,c))};return Ua.camelCase=p,Ua}var Ba,Wg;function ME(){if(Wg)return Ba;Wg=1;var n=Ba&&Ba.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},i=n(zE()),r=AE();function u(o,s){var c={};return!o||typeof o!="string"||(0,i.default)(o,function(h,p){h&&p&&(c[(0,r.camelCase)(h,s)]=p)}),c}return u.default=u,Ba=u,Ba}var DE=ME();const RE=Oo(DE),kv=Cv("end"),ad=Cv("start");function Cv(n){return i;function i(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function NE(n){const i=ad(n),r=kv(n);if(i&&r)return{start:i,end:r}}function Ya(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ey(n.position):"start"in n||"end"in n?ey(n):"line"in n||"column"in n?Uf(n):""}function Uf(n){return ty(n&&n.line)+":"+ty(n&&n.column)}function ey(n){return Uf(n&&n.start)+"-"+Uf(n&&n.end)}function ty(n){return n&&typeof n=="number"?n:1}class Kt extends Error{constructor(i,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof i=="string"?o=i:!s.cause&&i&&(c=!0,o=i.message,s.cause=i),!s.ruleId&&!s.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?s.ruleId=u:(s.source=u.slice(0,p),s.ruleId=u.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const h=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=h?h.line:void 0,this.name=Ya(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kt.prototype.file="";Kt.prototype.name="";Kt.prototype.reason="";Kt.prototype.message="";Kt.prototype.stack="";Kt.prototype.column=void 0;Kt.prototype.line=void 0;Kt.prototype.ancestors=void 0;Kt.prototype.cause=void 0;Kt.prototype.fatal=void 0;Kt.prototype.place=void 0;Kt.prototype.ruleId=void 0;Kt.prototype.source=void 0;const ud={}.hasOwnProperty,_E=new Map,OE=/[A-Z]/g,jE=new Set(["table","tbody","thead","tfoot","tr"]),LE=new Set(["td","th"]),Tv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UE(n,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let u;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=QE(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=XE(r,i.jsx,i.jsxs)}const o={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:u,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?rd:kE,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},s=zv(o,n,void 0);return s&&typeof s!="string"?s:o.create(n,o.Fragment,{children:s||void 0},void 0)}function zv(n,i,r){if(i.type==="element")return BE(n,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return HE(n,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return VE(n,i,r);if(i.type==="mdxjsEsm")return qE(n,i);if(i.type==="root")return YE(n,i,r);if(i.type==="text")return GE(n,i)}function BE(n,i,r){const u=n.schema;let o=u;i.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=rd,n.schema=o),n.ancestors.push(i);const s=Mv(n,i.tagName,!1),c=FE(n,i);let h=sd(n,i);return jE.has(i.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!mE(p):!0})),Av(n,c,s,i),od(c,h),n.ancestors.pop(),n.schema=u,n.create(i,s,c,r)}function HE(n,i){if(i.data&&i.data.estree&&n.evaluater){const u=i.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Ia(n,i.position)}function qE(n,i){if(i.data&&i.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(i.data.estree);Ia(n,i.position)}function VE(n,i,r){const u=n.schema;let o=u;i.name==="svg"&&u.space==="html"&&(o=rd,n.schema=o),n.ancestors.push(i);const s=i.name===null?n.Fragment:Mv(n,i.name,!0),c=ZE(n,i),h=sd(n,i);return Av(n,c,s,i),od(c,h),n.ancestors.pop(),n.schema=u,n.create(i,s,c,r)}function YE(n,i,r){const u={};return od(u,sd(n,i)),n.create(i,n.Fragment,u,r)}function GE(n,i){return i.value}function Av(n,i,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(i.node=u)}function od(n,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(n.children=r)}}function XE(n,i,r){return u;function u(o,s,c,h){const m=Array.isArray(c.children)?r:i;return h?m(s,c,h):m(s,c)}}function QE(n,i){return r;function r(u,o,s,c){const h=Array.isArray(s.children),p=ad(u);return i(o,s,c,h,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function FE(n,i){const r={};let u,o;for(o in i.properties)if(o!=="children"&&ud.call(i.properties,o)){const s=KE(n,o,i.properties[o]);if(s){const[c,h]=s;n.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&LE.has(i.tagName)?u=h:r[c]=h}}if(u){const s=r.style||(r.style={});s[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function ZE(n,i){const r={};for(const u of i.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const s=u.data.estree.body[0];s.type;const c=s.expression;c.type;const h=c.properties[0];h.type,Object.assign(r,n.evaluater.evaluateExpression(h.argument))}else Ia(n,i.position);else{const o=u.name;let s;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const h=u.value.data.estree.body[0];h.type,s=n.evaluater.evaluateExpression(h.expression)}else Ia(n,i.position);else s=u.value===null?!0:u.value;r[o]=s}return r}function sd(n,i){const r=[];let u=-1;const o=n.passKeys?new Map:_E;for(;++u<i.children.length;){const s=i.children[u];let c;if(n.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=o.get(p)||0;c=p+"-"+m,o.set(p,m+1)}}const h=zv(n,s,c);h!==void 0&&r.push(h)}return r}function KE(n,i,r){const u=SE(n.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?sE(r):CE(r)),u.property==="style"){let o=typeof r=="object"?r:IE(n,String(r));return n.stylePropertyNameCase==="css"&&(o=JE(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?vE[u.property]||u.property:u.attribute,r]}}function IE(n,i){try{return RE(i,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,o=new Kt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Tv+"#cannot-parse-style-attribute",o}}function Mv(n,i,r){let u;if(!r)u={type:"Literal",value:i};else if(i.includes(".")){const o=i.split(".");let s=-1,c;for(;++s<o.length;){const h=Fg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(s&&h.type==="Literal"),optional:!1}:h}u=c}else u=Fg(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(u.type==="Literal"){const o=u.value;return ud.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ia(n)}function Ia(n,i){const r=new Kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Tv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function JE(n){const i={};let r;for(r in n)ud.call(n,r)&&(i[PE(r)]=n[r]);return i}function PE(n){let i=n.replace(OE,$E);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function $E(n){return"-"+n.toLowerCase()}const hf={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"]},WE={};function cd(n,i){const r=WE,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Dv(n,u,o)}function Dv(n,i,r){if(ew(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(i&&"alt"in n&&n.alt)return n.alt;if("children"in n)return ny(n.children,i,r)}return Array.isArray(n)?ny(n,i,r):""}function ny(n,i,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=Dv(n[o],i,r);return u.join("")}function ew(n){return!!(n&&typeof n=="object")}const ly=document.createElement("i");function fd(n){const i="&"+n+";";ly.innerHTML=i;const r=ly.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===i?!1:r}function En(n,i,r,u){const o=n.length;let s=0,c;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,r=r>0?r:0,u.length<1e4)c=Array.from(u),c.unshift(i,r),n.splice(...c);else for(r&&n.splice(i,r);s<u.length;)c=u.slice(s,s+1e4),c.unshift(i,0),n.splice(...c),s+=1e4,i+=1e4}function Ln(n,i){return n.length>0?(En(n,n.length,0,i),n):i}const iy={}.hasOwnProperty;function Rv(n){const i={};let r=-1;for(;++r<n.length;)tw(i,n[r]);return i}function tw(n,i){let r;for(r in i){const o=(iy.call(n,r)?n[r]:void 0)||(n[r]={}),s=i[r];let c;if(s)for(c in s){iy.call(o,c)||(o[c]=[]);const h=s[c];nw(o[c],Array.isArray(h)?h:h?[h]:[])}}}function nw(n,i){let r=-1;const u=[];for(;++r<i.length;)(i[r].add==="after"?n:u).push(i[r]);En(n,0,0,u)}function Nv(n,i){const r=Number.parseInt(n,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Fn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pt=fi(/[A-Za-z]/),Zt=fi(/[\dA-Za-z]/),lw=fi(/[#-'*+\--9=?A-Z^-~]/);function Mo(n){return n!==null&&(n<32||n===127)}const Bf=fi(/\d/),iw=fi(/[\dA-Fa-f]/),rw=fi(/[!-/:-@[-`{-~]/);function Ce(n){return n!==null&&n<-2}function ft(n){return n!==null&&(n<0||n===32)}function Ve(n){return n===-2||n===-1||n===32}const qo=fi(new RegExp("\\p{P}|\\p{S}","u")),Xi=fi(/\s/);function fi(n){return i;function i(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function qr(n){const i=[];let r=-1,u=0,o=0;for(;++r<n.length;){const s=n.charCodeAt(r);let c="";if(s===37&&Zt(n.charCodeAt(r+1))&&Zt(n.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const h=n.charCodeAt(r+1);s<56320&&h>56319&&h<57344?(c=String.fromCharCode(s,h),o=1):c="�"}else c=String.fromCharCode(s);c&&(i.push(n.slice(u,r),encodeURIComponent(c)),u=r+o+1,c=""),o&&(r+=o,o=0)}return i.join("")+n.slice(u)}function Ze(n,i,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Ve(p)?(n.enter(r),h(p)):i(p)}function h(p){return Ve(p)&&s++<o?(n.consume(p),h):(n.exit(r),i(p))}}const aw={tokenize:uw};function uw(n){const i=n.attempt(this.parser.constructs.contentInitial,u,o);let r;return i;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),Ze(n,i,"linePrefix")}function o(h){return n.enter("paragraph"),s(h)}function s(h){const p=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(h)}function c(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return Ce(h)?(n.consume(h),n.exit("chunkText"),s):(n.consume(h),c)}}const ow={tokenize:sw},ry={tokenize:cw};function sw(n){const i=this,r=[];let u=0,o,s,c;return h;function h(Y){if(u<r.length){const te=r[u];return i.containerState=te[1],n.attempt(te[0].continuation,p,m)(Y)}return m(Y)}function p(Y){if(u++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&U();const te=i.events.length;let oe=te,G;for(;oe--;)if(i.events[oe][0]==="exit"&&i.events[oe][1].type==="chunkFlow"){G=i.events[oe][1].end;break}R(u);let N=te;for(;N<i.events.length;)i.events[N][1].end={...G},N++;return En(i.events,oe+1,0,i.events.slice(te)),i.events.length=N,m(Y)}return h(Y)}function m(Y){if(u===r.length){if(!o)return x(Y);if(o.currentConstruct&&o.currentConstruct.concrete)return k(Y);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},n.check(ry,y,g)(Y)}function y(Y){return o&&U(),R(u),x(Y)}function g(Y){return i.parser.lazy[i.now().line]=u!==r.length,c=i.now().offset,k(Y)}function x(Y){return i.containerState={},n.attempt(ry,b,k)(Y)}function b(Y){return u++,r.push([i.currentConstruct,i.containerState]),x(Y)}function k(Y){if(Y===null){o&&U(),R(0),n.consume(Y);return}return o=o||i.parser.flow(i.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),M(Y)}function M(Y){if(Y===null){_(n.exit("chunkFlow"),!0),R(0),n.consume(Y);return}return Ce(Y)?(n.consume(Y),_(n.exit("chunkFlow")),u=0,i.interrupt=void 0,h):(n.consume(Y),M)}function _(Y,te){const oe=i.sliceStream(Y);if(te&&oe.push(null),Y.previous=s,s&&(s.next=Y),s=Y,o.defineSkip(Y.start),o.write(oe),i.parser.lazy[Y.start.line]){let G=o.events.length;for(;G--;)if(o.events[G][1].start.offset<c&&(!o.events[G][1].end||o.events[G][1].end.offset>c))return;const N=i.events.length;let ne=N,me,O;for(;ne--;)if(i.events[ne][0]==="exit"&&i.events[ne][1].type==="chunkFlow"){if(me){O=i.events[ne][1].end;break}me=!0}for(R(u),G=N;G<i.events.length;)i.events[G][1].end={...O},G++;En(i.events,ne+1,0,i.events.slice(N)),i.events.length=G}}function R(Y){let te=r.length;for(;te-- >Y;){const oe=r[te];i.containerState=oe[1],oe[0].exit.call(i,n)}r.length=Y}function U(){o.write([null]),s=void 0,o=void 0,i.containerState._closeFlow=void 0}}function cw(n,i,r){return Ze(n,n.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jr(n){if(n===null||ft(n)||Xi(n))return 1;if(qo(n))return 2}function Vo(n,i,r){const u=[];let o=-1;for(;++o<n.length;){const s=n[o].resolveAll;s&&!u.includes(s)&&(i=s(i,r),u.push(s))}return i}const Hf={name:"attention",resolveAll:fw,tokenize:dw};function fw(n,i){let r=-1,u,o,s,c,h,p,m,y;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&i.sliceSerialize(n[u][1]).charCodeAt(0)===i.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const g={...n[u][1].end},x={...n[r][1].start};ay(g,-p),ay(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...n[u][1].end}},h={type:p>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:x},s={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},n[u][1].end={...c.start},n[r][1].start={...h.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=Ln(m,[["enter",n[u][1],i],["exit",n[u][1],i]])),m=Ln(m,[["enter",o,i],["enter",c,i],["exit",c,i],["enter",s,i]]),m=Ln(m,Vo(i.parser.constructs.insideSpan.null,n.slice(u+1,r),i)),m=Ln(m,[["exit",s,i],["enter",h,i],["exit",h,i],["exit",o,i]]),n[r][1].end.offset-n[r][1].start.offset?(y=2,m=Ln(m,[["enter",n[r][1],i],["exit",n[r][1],i]])):y=0,En(n,u-1,r-u+3,m),r=u+m.length-y-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function dw(n,i){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=jr(u);let s;return c;function c(p){return s=p,n.enter("attentionSequence"),h(p)}function h(p){if(p===s)return n.consume(p),h;const m=n.exit("attentionSequence"),y=jr(p),g=!y||y===2&&o||r.includes(p),x=!o||o===2&&y||r.includes(u);return m._open=!!(s===42?g:g&&(o||!x)),m._close=!!(s===42?x:x&&(y||!g)),i(p)}}function ay(n,i){n.column+=i,n.offset+=i,n._bufferIndex+=i}const hw={name:"autolink",tokenize:mw};function mw(n,i,r){let u=0;return o;function o(b){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),s}function s(b){return Pt(b)?(n.consume(b),c):b===64?r(b):m(b)}function c(b){return b===43||b===45||b===46||Zt(b)?(u=1,h(b)):m(b)}function h(b){return b===58?(n.consume(b),u=0,p):(b===43||b===45||b===46||Zt(b))&&u++<32?(n.consume(b),h):(u=0,m(b))}function p(b){return b===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),i):b===null||b===32||b===60||Mo(b)?r(b):(n.consume(b),p)}function m(b){return b===64?(n.consume(b),y):lw(b)?(n.consume(b),m):r(b)}function y(b){return Zt(b)?g(b):r(b)}function g(b){return b===46?(n.consume(b),u=0,y):b===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),i):x(b)}function x(b){if((b===45||Zt(b))&&u++<63){const k=b===45?x:g;return n.consume(b),k}return r(b)}}const eu={partial:!0,tokenize:pw};function pw(n,i,r){return u;function u(s){return Ve(s)?Ze(n,o,"linePrefix")(s):o(s)}function o(s){return s===null||Ce(s)?i(s):r(s)}}const _v={continuation:{tokenize:yw},exit:vw,name:"blockQuote",tokenize:gw};function gw(n,i,r){const u=this;return o;function o(c){if(c===62){const h=u.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Ve(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),i):(n.exit("blockQuotePrefix"),i(c))}}function yw(n,i,r){const u=this;return o;function o(c){return Ve(c)?Ze(n,s,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return n.attempt(_v,i,r)(c)}}function vw(n){n.exit("blockQuote")}const Ov={name:"characterEscape",tokenize:bw};function bw(n,i,r){return u;function u(s){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(s),n.exit("escapeMarker"),o}function o(s){return rw(s)?(n.enter("characterEscapeValue"),n.consume(s),n.exit("characterEscapeValue"),n.exit("characterEscape"),i):r(s)}}const jv={name:"characterReference",tokenize:xw};function xw(n,i,r){const u=this;let o=0,s,c;return h;function h(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),p}function p(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),s=31,c=Zt,y(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),s=6,c=iw,y):(n.enter("characterReferenceValue"),s=7,c=Bf,y(g))}function y(g){if(g===59&&o){const x=n.exit("characterReferenceValue");return c===Zt&&!fd(u.sliceSerialize(x))?r(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),i)}return c(g)&&o++<s?(n.consume(g),y):r(g)}}const uy={partial:!0,tokenize:Ew},oy={concrete:!0,name:"codeFenced",tokenize:Sw};function Sw(n,i,r){const u=this,o={partial:!0,tokenize:oe};let s=0,c=0,h;return p;function p(G){return m(G)}function m(G){const N=u.events[u.events.length-1];return s=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,h=G,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),y(G)}function y(G){return G===h?(c++,n.consume(G),y):c<3?r(G):(n.exit("codeFencedFenceSequence"),Ve(G)?Ze(n,g,"whitespace")(G):g(G))}function g(G){return G===null||Ce(G)?(n.exit("codeFencedFence"),u.interrupt?i(G):n.check(uy,M,te)(G)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(G))}function x(G){return G===null||Ce(G)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(G)):Ve(G)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ze(n,b,"whitespace")(G)):G===96&&G===h?r(G):(n.consume(G),x)}function b(G){return G===null||Ce(G)?g(G):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),k(G))}function k(G){return G===null||Ce(G)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(G)):G===96&&G===h?r(G):(n.consume(G),k)}function M(G){return n.attempt(o,te,_)(G)}function _(G){return n.enter("lineEnding"),n.consume(G),n.exit("lineEnding"),R}function R(G){return s>0&&Ve(G)?Ze(n,U,"linePrefix",s+1)(G):U(G)}function U(G){return G===null||Ce(G)?n.check(uy,M,te)(G):(n.enter("codeFlowValue"),Y(G))}function Y(G){return G===null||Ce(G)?(n.exit("codeFlowValue"),U(G)):(n.consume(G),Y)}function te(G){return n.exit("codeFenced"),i(G)}function oe(G,N,ne){let me=0;return O;function O(le){return G.enter("lineEnding"),G.consume(le),G.exit("lineEnding"),ie}function ie(le){return G.enter("codeFencedFence"),Ve(le)?Ze(G,P,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):P(le)}function P(le){return le===h?(G.enter("codeFencedFenceSequence"),ke(le)):ne(le)}function ke(le){return le===h?(me++,G.consume(le),ke):me>=c?(G.exit("codeFencedFenceSequence"),Ve(le)?Ze(G,se,"whitespace")(le):se(le)):ne(le)}function se(le){return le===null||Ce(le)?(G.exit("codeFencedFence"),N(le)):ne(le)}}}function Ew(n,i,r){const u=this;return o;function o(c){return c===null?r(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s)}function s(c){return u.parser.lazy[u.now().line]?r(c):i(c)}}const mf={name:"codeIndented",tokenize:kw},ww={partial:!0,tokenize:Cw};function kw(n,i,r){const u=this;return o;function o(m){return n.enter("codeIndented"),Ze(n,s,"linePrefix",5)(m)}function s(m){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):Ce(m)?n.attempt(ww,c,p)(m):(n.enter("codeFlowValue"),h(m))}function h(m){return m===null||Ce(m)?(n.exit("codeFlowValue"),c(m)):(n.consume(m),h)}function p(m){return n.exit("codeIndented"),i(m)}}function Cw(n,i,r){const u=this;return o;function o(c){return u.parser.lazy[u.now().line]?r(c):Ce(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):Ze(n,s,"linePrefix",5)(c)}function s(c){const h=u.events[u.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(c):Ce(c)?o(c):r(c)}}const Tw={name:"codeText",previous:Aw,resolve:zw,tokenize:Mw};function zw(n){let i=n.length-4,r=3,u,o;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(u=r;++u<i;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(u=r-1,i++;++u<=i;)o===void 0?u!==i&&n[u][1].type!=="lineEnding"&&(o=u):(u===i||n[u][1].type==="lineEnding")&&(n[o][1].type="codeTextData",u!==o+2&&(n[o][1].end=n[u-1][1].end,n.splice(o+2,u-o-2),i-=u-o-2,u=o+2),o=void 0);return n}function Aw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mw(n,i,r){let u=0,o,s;return c;function c(g){return n.enter("codeText"),n.enter("codeTextSequence"),h(g)}function h(g){return g===96?(n.consume(g),u++,h):(n.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),p):g===96?(s=n.enter("codeTextSequence"),o=0,y(g)):Ce(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||Ce(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function y(g){return g===96?(n.consume(g),o++,y):o===u?(n.exit("codeTextSequence"),n.exit("codeText"),i(g)):(s.type="codeTextData",m(g))}}class Dw{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(i,u):i>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(i,r,u){const o=r||0;this.setCursor(Math.trunc(i));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&Ha(this.left,u),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),Ha(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),Ha(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);Ha(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);Ha(this.left,r.reverse())}}}function Ha(n,i){let r=0;if(i.length<1e4)n.push(...i);else for(;r<i.length;)n.push(...i.slice(r,r+1e4)),r+=1e4}function Lv(n){const i={};let r=-1,u,o,s,c,h,p,m;const y=new Dw(n);for(;++r<y.length;){for(;r in i;)r=i[r];if(u=y.get(r),r&&u[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(u[0]==="enter")u[1].contentType&&(Object.assign(i,Rw(y,r)),r=i[r],m=!0);else if(u[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(u[1].end={...y.get(o)[1].start},h=y.slice(o,r),h.unshift(u),y.splice(o,r-o+1,h))}}return En(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Rw(n,i){const r=n.get(i)[1],u=n.get(i)[2];let o=i-1;const s=[];let c=r._tokenizer;c||(c=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,p=[],m={};let y,g,x=-1,b=r,k=0,M=0;const _=[M];for(;b;){for(;n.get(++o)[1]!==b;);s.push(o),b._tokenizer||(y=u.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=r;++x<h.length;)h[x][0]==="exit"&&h[x-1][0]==="enter"&&h[x][1].type===h[x-1][1].type&&h[x][1].start.line!==h[x][1].end.line&&(M=x+1,_.push(M),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):_.pop(),x=_.length;x--;){const R=h.slice(_[x],_[x+1]),U=s.pop();p.push([U,U+R.length-1]),n.splice(U,2,R)}for(p.reverse(),x=-1;++x<p.length;)m[k+p[x][0]]=k+p[x][1],k+=p[x][1]-p[x][0]-1;return m}const Nw={resolve:Ow,tokenize:jw},_w={partial:!0,tokenize:Lw};function Ow(n){return Lv(n),n}function jw(n,i){let r;return u;function u(h){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),o(h)}function o(h){return h===null?s(h):Ce(h)?n.check(_w,c,s)(h):(n.consume(h),o)}function s(h){return n.exit("chunkContent"),n.exit("content"),i(h)}function c(h){return n.consume(h),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function Lw(n,i,r){const u=this;return o;function o(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Ze(n,s,"linePrefix")}function s(c){if(c===null||Ce(c))return r(c);const h=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(c):n.interrupt(u.parser.constructs.flow,r,i)(c)}}function Uv(n,i,r,u,o,s,c,h,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(R){return R===60?(n.enter(u),n.enter(o),n.enter(s),n.consume(R),n.exit(s),x):R===null||R===32||R===41||Mo(R)?r(R):(n.enter(u),n.enter(c),n.enter(h),n.enter("chunkString",{contentType:"string"}),M(R))}function x(R){return R===62?(n.enter(s),n.consume(R),n.exit(s),n.exit(o),n.exit(u),i):(n.enter(h),n.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===62?(n.exit("chunkString"),n.exit(h),x(R)):R===null||R===60||Ce(R)?r(R):(n.consume(R),R===92?k:b)}function k(R){return R===60||R===62||R===92?(n.consume(R),b):b(R)}function M(R){return!y&&(R===null||R===41||ft(R))?(n.exit("chunkString"),n.exit(h),n.exit(c),n.exit(u),i(R)):y<m&&R===40?(n.consume(R),y++,M):R===41?(n.consume(R),y--,M):R===null||R===32||R===40||Mo(R)?r(R):(n.consume(R),R===92?_:M)}function _(R){return R===40||R===41||R===92?(n.consume(R),M):M(R)}}function Bv(n,i,r,u,o,s){const c=this;let h=0,p;return m;function m(b){return n.enter(u),n.enter(o),n.consume(b),n.exit(o),n.enter(s),y}function y(b){return h>999||b===null||b===91||b===93&&!p||b===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?r(b):b===93?(n.exit(s),n.enter(o),n.consume(b),n.exit(o),n.exit(u),i):Ce(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),y):(n.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Ce(b)||h++>999?(n.exit("chunkString"),y(b)):(n.consume(b),p||(p=!Ve(b)),b===92?x:g)}function x(b){return b===91||b===92||b===93?(n.consume(b),h++,g):g(b)}}function Hv(n,i,r,u,o,s){let c;return h;function h(x){return x===34||x===39||x===40?(n.enter(u),n.enter(o),n.consume(x),n.exit(o),c=x===40?41:x,p):r(x)}function p(x){return x===c?(n.enter(o),n.consume(x),n.exit(o),n.exit(u),i):(n.enter(s),m(x))}function m(x){return x===c?(n.exit(s),p(c)):x===null?r(x):Ce(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),Ze(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||Ce(x)?(n.exit("chunkString"),m(x)):(n.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(n.consume(x),y):y(x)}}function Ga(n,i){let r;return u;function u(o){return Ce(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),r=!0,u):Ve(o)?Ze(n,u,r?"linePrefix":"lineSuffix")(o):i(o)}}const Uw={name:"definition",tokenize:Hw},Bw={partial:!0,tokenize:qw};function Hw(n,i,r){const u=this;let o;return s;function s(b){return n.enter("definition"),c(b)}function c(b){return Bv.call(u,n,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function h(b){return o=Fn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(n.enter("definitionMarker"),n.consume(b),n.exit("definitionMarker"),p):r(b)}function p(b){return ft(b)?Ga(n,m)(b):m(b)}function m(b){return Uv(n,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return n.attempt(Bw,g,g)(b)}function g(b){return Ve(b)?Ze(n,x,"whitespace")(b):x(b)}function x(b){return b===null||Ce(b)?(n.exit("definition"),u.parser.defined.push(o),i(b)):r(b)}}function qw(n,i,r){return u;function u(h){return ft(h)?Ga(n,o)(h):r(h)}function o(h){return Hv(n,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function s(h){return Ve(h)?Ze(n,c,"whitespace")(h):c(h)}function c(h){return h===null||Ce(h)?i(h):r(h)}}const Vw={name:"hardBreakEscape",tokenize:Yw};function Yw(n,i,r){return u;function u(s){return n.enter("hardBreakEscape"),n.consume(s),o}function o(s){return Ce(s)?(n.exit("hardBreakEscape"),i(s)):r(s)}}const Gw={name:"headingAtx",resolve:Xw,tokenize:Qw};function Xw(n,i){let r=n.length-2,u=3,o,s;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},s={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},En(n,u,r-u+1,[["enter",o,i],["enter",s,i],["exit",s,i],["exit",o,i]])),n}function Qw(n,i,r){let u=0;return o;function o(y){return n.enter("atxHeading"),s(y)}function s(y){return n.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&u++<6?(n.consume(y),c):y===null||ft(y)?(n.exit("atxHeadingSequence"),h(y)):r(y)}function h(y){return y===35?(n.enter("atxHeadingSequence"),p(y)):y===null||Ce(y)?(n.exit("atxHeading"),i(y)):Ve(y)?Ze(n,h,"whitespace")(y):(n.enter("atxHeadingText"),m(y))}function p(y){return y===35?(n.consume(y),p):(n.exit("atxHeadingSequence"),h(y))}function m(y){return y===null||y===35||ft(y)?(n.exit("atxHeadingText"),h(y)):(n.consume(y),m)}}const Fw=["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"],sy=["pre","script","style","textarea"],Zw={concrete:!0,name:"htmlFlow",resolveTo:Jw,tokenize:Pw},Kw={partial:!0,tokenize:Ww},Iw={partial:!0,tokenize:$w};function Jw(n){let i=n.length;for(;i--&&!(n[i][0]==="enter"&&n[i][1].type==="htmlFlow"););return i>1&&n[i-2][1].type==="linePrefix"&&(n[i][1].start=n[i-2][1].start,n[i+1][1].start=n[i-2][1].start,n.splice(i-2,2)),n}function Pw(n,i,r){const u=this;let o,s,c,h,p;return m;function m(w){return y(w)}function y(w){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(w),g}function g(w){return w===33?(n.consume(w),x):w===47?(n.consume(w),s=!0,M):w===63?(n.consume(w),o=3,u.interrupt?i:C):Pt(w)?(n.consume(w),c=String.fromCharCode(w),_):r(w)}function x(w){return w===45?(n.consume(w),o=2,b):w===91?(n.consume(w),o=5,h=0,k):Pt(w)?(n.consume(w),o=4,u.interrupt?i:C):r(w)}function b(w){return w===45?(n.consume(w),u.interrupt?i:C):r(w)}function k(w){const ce="CDATA[";return w===ce.charCodeAt(h++)?(n.consume(w),h===ce.length?u.interrupt?i:P:k):r(w)}function M(w){return Pt(w)?(n.consume(w),c=String.fromCharCode(w),_):r(w)}function _(w){if(w===null||w===47||w===62||ft(w)){const ce=w===47,be=c.toLowerCase();return!ce&&!s&&sy.includes(be)?(o=1,u.interrupt?i(w):P(w)):Fw.includes(c.toLowerCase())?(o=6,ce?(n.consume(w),R):u.interrupt?i(w):P(w)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(w):s?U(w):Y(w))}return w===45||Zt(w)?(n.consume(w),c+=String.fromCharCode(w),_):r(w)}function R(w){return w===62?(n.consume(w),u.interrupt?i:P):r(w)}function U(w){return Ve(w)?(n.consume(w),U):O(w)}function Y(w){return w===47?(n.consume(w),O):w===58||w===95||Pt(w)?(n.consume(w),te):Ve(w)?(n.consume(w),Y):O(w)}function te(w){return w===45||w===46||w===58||w===95||Zt(w)?(n.consume(w),te):oe(w)}function oe(w){return w===61?(n.consume(w),G):Ve(w)?(n.consume(w),oe):Y(w)}function G(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(n.consume(w),p=w,N):Ve(w)?(n.consume(w),G):ne(w)}function N(w){return w===p?(n.consume(w),p=null,me):w===null||Ce(w)?r(w):(n.consume(w),N)}function ne(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||ft(w)?oe(w):(n.consume(w),ne)}function me(w){return w===47||w===62||Ve(w)?Y(w):r(w)}function O(w){return w===62?(n.consume(w),ie):r(w)}function ie(w){return w===null||Ce(w)?P(w):Ve(w)?(n.consume(w),ie):r(w)}function P(w){return w===45&&o===2?(n.consume(w),B):w===60&&o===1?(n.consume(w),ee):w===62&&o===4?(n.consume(w),z):w===63&&o===3?(n.consume(w),C):w===93&&o===5?(n.consume(w),ze):Ce(w)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(Kw,F,ke)(w)):w===null||Ce(w)?(n.exit("htmlFlowData"),ke(w)):(n.consume(w),P)}function ke(w){return n.check(Iw,se,F)(w)}function se(w){return n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),le}function le(w){return w===null||Ce(w)?ke(w):(n.enter("htmlFlowData"),P(w))}function B(w){return w===45?(n.consume(w),C):P(w)}function ee(w){return w===47?(n.consume(w),c="",ue):P(w)}function ue(w){if(w===62){const ce=c.toLowerCase();return sy.includes(ce)?(n.consume(w),z):P(w)}return Pt(w)&&c.length<8?(n.consume(w),c+=String.fromCharCode(w),ue):P(w)}function ze(w){return w===93?(n.consume(w),C):P(w)}function C(w){return w===62?(n.consume(w),z):w===45&&o===2?(n.consume(w),C):P(w)}function z(w){return w===null||Ce(w)?(n.exit("htmlFlowData"),F(w)):(n.consume(w),z)}function F(w){return n.exit("htmlFlow"),i(w)}}function $w(n,i,r){const u=this;return o;function o(c){return Ce(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s):r(c)}function s(c){return u.parser.lazy[u.now().line]?r(c):i(c)}}function Ww(n,i,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(eu,i,r)}}const ek={name:"htmlText",tokenize:tk};function tk(n,i,r){const u=this;let o,s,c;return h;function h(C){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(C),p}function p(C){return C===33?(n.consume(C),m):C===47?(n.consume(C),oe):C===63?(n.consume(C),Y):Pt(C)?(n.consume(C),ne):r(C)}function m(C){return C===45?(n.consume(C),y):C===91?(n.consume(C),s=0,k):Pt(C)?(n.consume(C),U):r(C)}function y(C){return C===45?(n.consume(C),b):r(C)}function g(C){return C===null?r(C):C===45?(n.consume(C),x):Ce(C)?(c=g,ee(C)):(n.consume(C),g)}function x(C){return C===45?(n.consume(C),b):g(C)}function b(C){return C===62?B(C):C===45?x(C):g(C)}function k(C){const z="CDATA[";return C===z.charCodeAt(s++)?(n.consume(C),s===z.length?M:k):r(C)}function M(C){return C===null?r(C):C===93?(n.consume(C),_):Ce(C)?(c=M,ee(C)):(n.consume(C),M)}function _(C){return C===93?(n.consume(C),R):M(C)}function R(C){return C===62?B(C):C===93?(n.consume(C),R):M(C)}function U(C){return C===null||C===62?B(C):Ce(C)?(c=U,ee(C)):(n.consume(C),U)}function Y(C){return C===null?r(C):C===63?(n.consume(C),te):Ce(C)?(c=Y,ee(C)):(n.consume(C),Y)}function te(C){return C===62?B(C):Y(C)}function oe(C){return Pt(C)?(n.consume(C),G):r(C)}function G(C){return C===45||Zt(C)?(n.consume(C),G):N(C)}function N(C){return Ce(C)?(c=N,ee(C)):Ve(C)?(n.consume(C),N):B(C)}function ne(C){return C===45||Zt(C)?(n.consume(C),ne):C===47||C===62||ft(C)?me(C):r(C)}function me(C){return C===47?(n.consume(C),B):C===58||C===95||Pt(C)?(n.consume(C),O):Ce(C)?(c=me,ee(C)):Ve(C)?(n.consume(C),me):B(C)}function O(C){return C===45||C===46||C===58||C===95||Zt(C)?(n.consume(C),O):ie(C)}function ie(C){return C===61?(n.consume(C),P):Ce(C)?(c=ie,ee(C)):Ve(C)?(n.consume(C),ie):me(C)}function P(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(n.consume(C),o=C,ke):Ce(C)?(c=P,ee(C)):Ve(C)?(n.consume(C),P):(n.consume(C),se)}function ke(C){return C===o?(n.consume(C),o=void 0,le):C===null?r(C):Ce(C)?(c=ke,ee(C)):(n.consume(C),ke)}function se(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||ft(C)?me(C):(n.consume(C),se)}function le(C){return C===47||C===62||ft(C)?me(C):r(C)}function B(C){return C===62?(n.consume(C),n.exit("htmlTextData"),n.exit("htmlText"),i):r(C)}function ee(C){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(C),n.exit("lineEnding"),ue}function ue(C){return Ve(C)?Ze(n,ze,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):ze(C)}function ze(C){return n.enter("htmlTextData"),c(C)}}const dd={name:"labelEnd",resolveAll:rk,resolveTo:ak,tokenize:uk},nk={tokenize:ok},lk={tokenize:sk},ik={tokenize:ck};function rk(n){let i=-1;const r=[];for(;++i<n.length;){const u=n[i][1];if(r.push(n[i]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",i+=o}}return n.length!==r.length&&En(n,0,n.length,r),n}function ak(n,i){let r=n.length,u=0,o,s,c,h;for(;r--;)if(o=n[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(n[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(c=r);const p={type:n[s][1].type==="labelLink"?"link":"image",start:{...n[s][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[s][1].start},end:{...n[c][1].end}},y={type:"labelText",start:{...n[s+u+2][1].end},end:{...n[c-2][1].start}};return h=[["enter",p,i],["enter",m,i]],h=Ln(h,n.slice(s+1,s+u+3)),h=Ln(h,[["enter",y,i]]),h=Ln(h,Vo(i.parser.constructs.insideSpan.null,n.slice(s+u+4,c-3),i)),h=Ln(h,[["exit",y,i],n[c-2],n[c-1],["exit",m,i]]),h=Ln(h,n.slice(c+1)),h=Ln(h,[["exit",p,i]]),En(n,s,n.length,h),n}function uk(n,i,r){const u=this;let o=u.events.length,s,c;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){s=u.events[o][1];break}return h;function h(x){return s?s._inactive?g(x):(c=u.parser.defined.includes(Fn(u.sliceSerialize({start:s.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),p):r(x)}function p(x){return x===40?n.attempt(nk,y,c?y:g)(x):x===91?n.attempt(lk,y,c?m:g)(x):c?y(x):g(x)}function m(x){return n.attempt(ik,y,g)(x)}function y(x){return i(x)}function g(x){return s._balanced=!0,r(x)}}function ok(n,i,r){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),o}function o(g){return ft(g)?Ga(n,s)(g):s(g)}function s(g){return g===41?y(g):Uv(n,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return ft(g)?Ga(n,p)(g):y(g)}function h(g){return r(g)}function p(g){return g===34||g===39||g===40?Hv(n,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return ft(g)?Ga(n,y)(g):y(g)}function y(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),i):r(g)}}function sk(n,i,r){const u=this;return o;function o(h){return Bv.call(u,n,s,c,"reference","referenceMarker","referenceString")(h)}function s(h){return u.parser.defined.includes(Fn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?i(h):r(h)}function c(h){return r(h)}}function ck(n,i,r){return u;function u(s){return n.enter("reference"),n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),o}function o(s){return s===93?(n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),n.exit("reference"),i):r(s)}}const fk={name:"labelStartImage",resolveAll:dd.resolveAll,tokenize:dk};function dk(n,i,r){const u=this;return o;function o(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),s}function s(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),c):r(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(h):i(h)}}const hk={name:"labelStartLink",resolveAll:dd.resolveAll,tokenize:mk};function mk(n,i,r){const u=this;return o;function o(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):i(c)}}const pf={name:"lineEnding",tokenize:pk};function pk(n,i){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ze(n,i,"linePrefix")}}const Eo={name:"thematicBreak",tokenize:gk};function gk(n,i,r){let u=0,o;return s;function s(m){return n.enter("thematicBreak"),c(m)}function c(m){return o=m,h(m)}function h(m){return m===o?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||Ce(m))?(n.exit("thematicBreak"),i(m)):r(m)}function p(m){return m===o?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ve(m)?Ze(n,h,"whitespace")(m):h(m))}}const sn={continuation:{tokenize:xk},exit:Ek,name:"list",tokenize:bk},yk={partial:!0,tokenize:wk},vk={partial:!0,tokenize:Sk};function bk(n,i,r){const u=this,o=u.events[u.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return h;function h(b){const k=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:Bf(b)){if(u.containerState.type||(u.containerState.type=k,n.enter(k,{_container:!0})),k==="listUnordered")return n.enter("listItemPrefix"),b===42||b===45?n.check(Eo,r,m)(b):m(b);if(!u.interrupt||b===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(b)}return r(b)}function p(b){return Bf(b)&&++c<10?(n.consume(b),p):(!u.interrupt||c<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(n.exit("listItemValue"),m(b)):r(b)}function m(b){return n.enter("listItemMarker"),n.consume(b),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,n.check(eu,u.interrupt?r:y,n.attempt(yk,x,g))}function y(b){return u.containerState.initialBlankLine=!0,s++,x(b)}function g(b){return Ve(b)?(n.enter("listItemPrefixWhitespace"),n.consume(b),n.exit("listItemPrefixWhitespace"),x):r(b)}function x(b){return u.containerState.size=s+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,i(b)}}function xk(n,i,r){const u=this;return u.containerState._closeFlow=void 0,n.check(eu,o,s);function o(h){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ze(n,i,"listItemIndent",u.containerState.size+1)(h)}function s(h){return u.containerState.furtherBlankLines||!Ve(h)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,c(h)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(vk,i,c)(h))}function c(h){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ze(n,n.attempt(sn,i,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function Sk(n,i,r){const u=this;return Ze(n,o,"listItemIndent",u.containerState.size+1);function o(s){const c=u.events[u.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===u.containerState.size?i(s):r(s)}}function Ek(n){n.exit(this.containerState.type)}function wk(n,i,r){const u=this;return Ze(n,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=u.events[u.events.length-1];return!Ve(s)&&c&&c[1].type==="listItemPrefixWhitespace"?i(s):r(s)}}const cy={name:"setextUnderline",resolveTo:kk,tokenize:Ck};function kk(n,i){let r=n.length,u,o,s;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(o=r)}else n[r][1].type==="content"&&n.splice(r,1),!s&&n[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",s?(n.splice(o,0,["enter",c,i]),n.splice(s+1,0,["exit",n[u][1],i]),n[u][1].end={...n[s][1].end}):n[u][1]=c,n.push(["exit",c,i]),n}function Ck(n,i,r){const u=this;let o;return s;function s(m){let y=u.events.length,g;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){g=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(n.enter("setextHeadingLine"),o=m,c(m)):r(m)}function c(m){return n.enter("setextHeadingLineSequence"),h(m)}function h(m){return m===o?(n.consume(m),h):(n.exit("setextHeadingLineSequence"),Ve(m)?Ze(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ce(m)?(n.exit("setextHeadingLine"),i(m)):r(m)}}const Tk={tokenize:zk};function zk(n){const i=this,r=n.attempt(eu,u,n.attempt(this.parser.constructs.flowInitial,o,Ze(n,n.attempt(this.parser.constructs.flow,o,n.attempt(Nw,o)),"linePrefix")));return r;function u(s){if(s===null){n.consume(s);return}return n.enter("lineEndingBlank"),n.consume(s),n.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function o(s){if(s===null){n.consume(s);return}return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i.currentConstruct=void 0,r}}const Ak={resolveAll:Vv()},Mk=qv("string"),Dk=qv("text");function qv(n){return{resolveAll:Vv(n==="text"?Rk:void 0),tokenize:i};function i(r){const u=this,o=this.parser.constructs[n],s=r.attempt(o,c,h);return c;function c(y){return m(y)?s(y):h(y)}function h(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return m(y)?(r.exit("data"),s(y)):(r.consume(y),p)}function m(y){if(y===null)return!0;const g=o[y];let x=-1;if(g)for(;++x<g.length;){const b=g[x];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function Vv(n){return i;function i(r,u){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return n?n(r,u):r}}function Rk(n,i){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],o=i.sliceStream(u);let s=o.length,c=-1,h=0,p;for(;s--;){const m=o[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(m===-2)p=!0,h++;else if(m!==-1){s++;break}}if(i._contentTypeTextTrailing&&r===n.length&&(h=0),h){const m={type:r===n.length||p||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:u.start._bufferIndex+c,_index:u.start._index+s,line:u.end.line,column:u.end.column-h,offset:u.end.offset-h},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return n}const Nk={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:_v},_k={91:Uw},Ok={[-2]:mf,[-1]:mf,32:mf},jk={35:Gw,42:Eo,45:[cy,Eo],60:Zw,61:cy,95:Eo,96:oy,126:oy},Lk={38:jv,92:Ov},Uk={[-5]:pf,[-4]:pf,[-3]:pf,33:fk,38:jv,42:Hf,60:[hw,ek],91:hk,92:[Vw,Ov],93:dd,95:Hf,96:Tw},Bk={null:[Hf,Ak]},Hk={null:[42,95]},qk={null:[]},Vk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Hk,contentInitial:_k,disable:qk,document:Nk,flow:jk,flowInitial:Ok,insideSpan:Bk,string:Lk,text:Uk},Symbol.toStringTag,{value:"Module"}));function Yk(n,i,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],h=[];const p={attempt:N(oe),check:N(G),consume:U,enter:Y,exit:te,interrupt:N(G,{interrupt:!0})},m={code:null,containerState:{},defineSkip:M,events:[],now:k,parser:n,previous:null,sliceSerialize:x,sliceStream:b,write:g};let y=i.tokenize.call(m,p);return i.resolveAll&&s.push(i),m;function g(ie){return c=Ln(c,ie),_(),c[c.length-1]!==null?[]:(ne(i,0),m.events=Vo(s,m.events,m),m.events)}function x(ie,P){return Xk(b(ie),P)}function b(ie){return Gk(c,ie)}function k(){const{_bufferIndex:ie,_index:P,line:ke,column:se,offset:le}=u;return{_bufferIndex:ie,_index:P,line:ke,column:se,offset:le}}function M(ie){o[ie.line]=ie.column,O()}function _(){let ie;for(;u._index<c.length;){const P=c[u._index];if(typeof P=="string")for(ie=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ie&&u._bufferIndex<P.length;)R(P.charCodeAt(u._bufferIndex));else R(P)}}function R(ie){y=y(ie)}function U(ie){Ce(ie)?(u.line++,u.column=1,u.offset+=ie===-3?2:1,O()):ie!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===c[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ie}function Y(ie,P){const ke=P||{};return ke.type=ie,ke.start=k(),m.events.push(["enter",ke,m]),h.push(ke),ke}function te(ie){const P=h.pop();return P.end=k(),m.events.push(["exit",P,m]),P}function oe(ie,P){ne(ie,P.from)}function G(ie,P){P.restore()}function N(ie,P){return ke;function ke(se,le,B){let ee,ue,ze,C;return Array.isArray(se)?F(se):"tokenize"in se?F([se]):z(se);function z(ve){return Ne;function Ne(et){const $e=et!==null&&ve[et],$t=et!==null&&ve.null,Un=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray($t)?$t:$t?[$t]:[]];return F(Un)(et)}}function F(ve){return ee=ve,ue=0,ve.length===0?B:w(ve[ue])}function w(ve){return Ne;function Ne(et){return C=me(),ze=ve,ve.partial||(m.currentConstruct=ve),ve.name&&m.parser.constructs.disable.null.includes(ve.name)?be():ve.tokenize.call(P?Object.assign(Object.create(m),P):m,p,ce,be)(et)}}function ce(ve){return ie(ze,C),le}function be(ve){return C.restore(),++ue<ee.length?w(ee[ue]):B}}}function ne(ie,P){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&En(m.events,P,m.events.length-P,ie.resolve(m.events.slice(P),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function me(){const ie=k(),P=m.previous,ke=m.currentConstruct,se=m.events.length,le=Array.from(h);return{from:se,restore:B};function B(){u=ie,m.previous=P,m.currentConstruct=ke,m.events.length=se,h=le,O()}}function O(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function Gk(n,i){const r=i.start._index,u=i.start._bufferIndex,o=i.end._index,s=i.end._bufferIndex;let c;if(r===o)c=[n[r].slice(u,s)];else{if(c=n.slice(r,o),u>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(u):c.shift()}s>0&&c.push(n[o].slice(0,s))}return c}function Xk(n,i){let r=-1;const u=[];let o;for(;++r<n.length;){const s=n[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
224
|
+
`;break}case-3:{c=`\r
|
|
225
|
+
`;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,u.push(c)}return u.join("")}function Qk(n){const u={constructs:Rv([Vk,...(n||{}).extensions||[]]),content:o(aw),defined:[],document:o(ow),flow:o(Tk),lazy:{},string:o(Mk),text:o(Dk)};return u;function o(s){return c;function c(h){return Yk(u,s,h)}}}function Fk(n){for(;!Lv(n););return n}const fy=/[\0\t\n\r]/g;function Zk(){let n=1,i="",r=!0,u;return o;function o(s,c,h){const p=[];let m,y,g,x,b;for(s=i+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,i="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(fy.lastIndex=g,m=fy.exec(s),x=m&&m.index!==void 0?m.index:s.length,b=s.charCodeAt(x),!m){i=s.slice(g);break}if(b===10&&g===x&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<x&&(p.push(s.slice(g,x)),n+=x-g),b){case 0:{p.push(65533),n++;break}case 9:{for(y=Math.ceil(n/4)*4,p.push(-2);n++<y;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=x+1}return h&&(u&&p.push(-5),i&&p.push(i),p.push(null)),p}}const Kk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ik(n){return n.replace(Kk,Jk)}function Jk(n,i,r){if(i)return i;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return Nv(r.slice(s?2:1),s?16:10)}return fd(r)||n}const Yv={}.hasOwnProperty;function Pk(n,i,r){return i&&typeof i=="object"&&(r=i,i=void 0),$k(r)(Fk(Qk(r).document().write(Zk()(n,i,!0))))}function $k(n){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(nl),autolinkProtocol:me,autolinkEmail:me,atxHeading:s(Al),blockQuote:s($t),characterEscape:me,characterReference:me,codeFenced:s(Un),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Un,c),codeText:s(zt,c),codeTextData:me,data:me,codeFlowValue:me,definition:s(Bn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(wn),hardBreakEscape:s(Wt),hardBreakTrailing:s(Wt),htmlFlow:s(Zi,c),htmlFlowData:me,htmlText:s(Zi,c),htmlTextData:me,image:s(Ki),label:c,link:s(nl),listItem:s(di),listItemValue:x,listOrdered:s(Ml,g),listUnordered:s(Ml),paragraph:s(Vr),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Al),strong:s(Yr),thematicBreak:s(ll)},exit:{atxHeading:p(),atxHeadingSequence:oe,autolink:p(),autolinkEmail:$e,autolinkProtocol:et,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:ve,characterReference:Ne,codeFenced:p(_),codeFencedFence:M,codeFencedFenceInfo:b,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:p(R),codeText:p(le),codeTextData:O,data:O,definition:p(),definitionDestinationString:te,definitionLabelString:U,definitionTitleString:Y,emphasis:p(),hardBreakEscape:p(P),hardBreakTrailing:p(P),htmlFlow:p(ke),htmlFlowData:O,htmlText:p(se),htmlTextData:O,image:p(ee),label:ze,labelText:ue,lineEnding:ie,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ce,resourceDestinationString:C,resourceTitleString:z,resource:F,setextHeading:p(ne),setextHeadingLineSequence:N,setextHeadingText:G,strong:p(),thematicBreak:p()}};Gv(i,(n||{}).mdastExtensions||[]);const r={};return u;function u(K){let ae={type:"root",children:[]};const Se={stack:[ae],tokenStack:[],config:i,enter:h,exit:m,buffer:c,resume:y,data:r},Me=[];let Ke=-1;for(;++Ke<K.length;)if(K[Ke][1].type==="listOrdered"||K[Ke][1].type==="listUnordered")if(K[Ke][0]==="enter")Me.push(Ke);else{const Bt=Me.pop();Ke=o(K,Bt,Ke)}for(Ke=-1;++Ke<K.length;){const Bt=i[K[Ke][0]];Yv.call(Bt,K[Ke][1].type)&&Bt[K[Ke][1].type].call(Object.assign({sliceSerialize:K[Ke][2].sliceSerialize},Se),K[Ke][1])}if(Se.tokenStack.length>0){const Bt=Se.tokenStack[Se.tokenStack.length-1];(Bt[1]||dy).call(Se,void 0,Bt[0])}for(ae.position={start:ai(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:ai(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<i.transforms.length;)ae=i.transforms[Ke](ae)||ae;return ae}function o(K,ae,Se){let Me=ae-1,Ke=-1,Bt=!1,Hn,bt,wt,qt;for(;++Me<=Se;){const We=K[Me];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ke++:Ke--,qt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Hn&&!qt&&!Ke&&!wt&&(wt=Me),qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qt=void 0}if(!Ke&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ke===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Hn){let Zn=Me;for(bt=void 0;Zn--;){const en=K[Zn];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;bt&&(K[bt][1].type="lineEndingBlank",Bt=!0),en[1].type="lineEnding",bt=Zn}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}wt&&(!bt||wt<bt)&&(Hn._spread=!0),Hn.end=Object.assign({},bt?K[bt][1].start:We[1].end),K.splice(bt||Me,0,["exit",Hn,We[2]]),Me++,Se++}if(We[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Hn=Zn,K.splice(Me,0,["enter",Zn,We[2]]),Me++,Se++,wt=void 0,qt=!0}}}return K[ae][1]._spread=Bt,Se}function s(K,ae){return Se;function Se(Me){h.call(this,K(Me),Me),ae&&ae.call(this,Me)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(K,ae,Se){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ae,Se||void 0]),K.position={start:ai(ae.start),end:void 0}}function p(K){return ae;function ae(Se){K&&K.call(this,Se),m.call(this,Se)}}function m(K,ae){const Se=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==K.type&&(ae?ae.call(this,K,Me[0]):(Me[1]||dy).call(this,K,Me[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ya({start:K.start,end:K.end})+"): it’s not open");Se.position.end=ai(K.end)}function y(){return cd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(K){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function b(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=K}function k(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=K}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.value=K.replace(/(\r?\n|\r)$/g,"")}function U(K){const ae=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ae,Se.identifier=Fn(this.sliceSerialize(K)).toLowerCase()}function Y(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.title=K}function te(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.url=K}function oe(K){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Se=this.sliceSerialize(K).length;ae.depth=Se}}function G(){this.data.setextHeadingSlurpLineEnding=!0}function N(K){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function me(K){const Se=this.stack[this.stack.length-1].children;let Me=Se[Se.length-1];(!Me||Me.type!=="text")&&(Me=Et(),Me.position={start:ai(K.start),end:void 0},Se.push(Me)),this.stack.push(Me)}function O(K){const ae=this.stack.pop();ae.value+=this.sliceSerialize(K),ae.position.end=ai(K.end)}function ie(K){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ae.children[ae.children.length-1];Se.position.end=ai(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(ae.type)&&(me.call(this,K),O.call(this,K))}function P(){this.data.atHardBreak=!0}function ke(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.value=K}function se(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.value=K}function le(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.value=K}function B(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ae,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ee(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ae,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ue(K){const ae=this.sliceSerialize(K),Se=this.stack[this.stack.length-2];Se.label=Ik(ae),Se.identifier=Fn(ae).toLowerCase()}function ze(){const K=this.stack[this.stack.length-1],ae=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Me=K.children;Se.children=Me}else Se.alt=ae}function C(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.url=K}function z(){const K=this.resume(),ae=this.stack[this.stack.length-1];ae.title=K}function F(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ce(K){const ae=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ae,Se.identifier=Fn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function be(K){this.data.characterReferenceType=K.type}function ve(K){const ae=this.sliceSerialize(K),Se=this.data.characterReferenceType;let Me;Se?(Me=Nv(ae,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=fd(ae);const Ke=this.stack[this.stack.length-1];Ke.value+=Me}function Ne(K){const ae=this.stack.pop();ae.position.end=ai(K.end)}function et(K){O.call(this,K);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(K)}function $e(K){O.call(this,K);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(K)}function $t(){return{type:"blockquote",children:[]}}function Un(){return{type:"code",lang:null,meta:null,value:""}}function zt(){return{type:"inlineCode",value:""}}function Bn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wn(){return{type:"emphasis",children:[]}}function Al(){return{type:"heading",depth:0,children:[]}}function Wt(){return{type:"break"}}function Zi(){return{type:"html",value:""}}function Ki(){return{type:"image",title:null,url:"",alt:null}}function nl(){return{type:"link",title:null,url:"",children:[]}}function Ml(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function di(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Vr(){return{type:"paragraph",children:[]}}function Yr(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function ll(){return{type:"thematicBreak"}}}function ai(n){return{line:n.line,column:n.column,offset:n.offset}}function Gv(n,i){let r=-1;for(;++r<i.length;){const u=i[r];Array.isArray(u)?Gv(n,u):Wk(n,u)}}function Wk(n,i){let r;for(r in i)if(Yv.call(i,r))switch(r){case"canContainEols":{const u=i[r];u&&n[r].push(...u);break}case"transforms":{const u=i[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=i[r];u&&Object.assign(n[r],u);break}}}function dy(n,i){throw n?new Error("Cannot close `"+n.type+"` ("+Ya({start:n.start,end:n.end})+"): a different token (`"+i.type+"`, "+Ya({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+Ya({start:i.start,end:i.end})+") is still open")}function eC(n){const i=this;i.parser=r;function r(u){return Pk(u,{...i.data("settings"),...n,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function tC(n,i){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(i),!0)};return n.patch(i,r),n.applyData(i,r)}function nC(n,i){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(i,r),[n.applyData(i,r),{type:"text",value:`
|
|
226
|
+
`}]}function lC(n,i){const r=i.value?i.value+`
|
|
227
|
+
`:"",u={},o=i.lang?i.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return i.meta&&(s.data={meta:i.meta}),n.patch(i,s),s=n.applyData(i,s),s={type:"element",tagName:"pre",properties:{},children:[s]},n.patch(i,s),s}function iC(n,i){const r={type:"element",tagName:"del",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function rC(n,i){const r={type:"element",tagName:"em",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function aC(n,i){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(i.identifier).toUpperCase(),o=qr(u.toLowerCase()),s=n.footnoteOrder.indexOf(u);let c,h=n.footnoteCounts.get(u);h===void 0?(h=0,n.footnoteOrder.push(u),c=n.footnoteOrder.length):c=s+1,h+=1,n.footnoteCounts.set(u,h);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(i,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(i,m),n.applyData(i,m)}function uC(n,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function oC(n,i){if(n.options.allowDangerousHtml){const r={type:"raw",value:i.value};return n.patch(i,r),n.applyData(i,r)}}function Xv(n,i){const r=i.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+u}];const o=n.all(i),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=u:o.push({type:"text",value:u}),o}function sC(n,i){const r=String(i.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Xv(n,i);const o={src:qr(u.url||""),alt:i.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const s={type:"element",tagName:"img",properties:o,children:[]};return n.patch(i,s),n.applyData(i,s)}function cC(n,i){const r={src:qr(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(i,u),n.applyData(i,u)}function fC(n,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};n.patch(i,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(i,u),n.applyData(i,u)}function dC(n,i){const r=String(i.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Xv(n,i);const o={href:qr(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const s={type:"element",tagName:"a",properties:o,children:n.all(i)};return n.patch(i,s),n.applyData(i,s)}function hC(n,i){const r={href:qr(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"a",properties:r,children:n.all(i)};return n.patch(i,u),n.applyData(i,u)}function mC(n,i,r){const u=n.all(i),o=r?pC(r):Qv(i),s={},c=[];if(typeof i.checked=="boolean"){const y=u[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let h=-1;for(;++h<u.length;){const y=u[h];(o||h!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
228
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const p=u[u.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
229
|
+
`});const m={type:"element",tagName:"li",properties:s,children:c};return n.patch(i,m),n.applyData(i,m)}function pC(n){let i=!1;if(n.type==="list"){i=n.spread||!1;const r=n.children;let u=-1;for(;!i&&++u<r.length;)i=Qv(r[u])}return i}function Qv(n){const i=n.spread;return i??n.children.length>1}function gC(n,i){const r={},u=n.all(i);let o=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++o<u.length;){const c=u[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(i,s),n.applyData(i,s)}function yC(n,i){const r={type:"element",tagName:"p",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function vC(n,i){const r={type:"root",children:n.wrap(n.all(i))};return n.patch(i,r),n.applyData(i,r)}function bC(n,i){const r={type:"element",tagName:"strong",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function xC(n,i){const r=n.all(i),u=r.shift(),o=[];if(u){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(i.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},h=ad(i.children[1]),p=kv(i.children[i.children.length-1]);h&&p&&(c.position={start:h,end:p}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(i,s),n.applyData(i,s)}function SC(n,i,r){const u=r?r.children:void 0,s=(u?u.indexOf(i):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,h=c?c.length:i.children.length;let p=-1;const m=[];for(;++p<h;){const g=i.children[p],x={},b=c?c[p]:void 0;b&&(x.align=b);let k={type:"element",tagName:s,properties:x,children:[]};g&&(k.children=n.all(g),n.patch(g,k),k=n.applyData(g,k)),m.push(k)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(i,y),n.applyData(i,y)}function EC(n,i){const r={type:"element",tagName:"td",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}const hy=9,my=32;function wC(n){const i=String(n),r=/\r?\n|\r/g;let u=r.exec(i),o=0;const s=[];for(;u;)s.push(py(i.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(i);return s.push(py(i.slice(o),o>0,!1)),s.join("")}function py(n,i,r){let u=0,o=n.length;if(i){let s=n.codePointAt(u);for(;s===hy||s===my;)u++,s=n.codePointAt(u)}if(r){let s=n.codePointAt(o-1);for(;s===hy||s===my;)o--,s=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function kC(n,i){const r={type:"text",value:wC(String(i.value))};return n.patch(i,r),n.applyData(i,r)}function CC(n,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(i,r),n.applyData(i,r)}const TC={blockquote:tC,break:nC,code:lC,delete:iC,emphasis:rC,footnoteReference:aC,heading:uC,html:oC,imageReference:sC,image:cC,inlineCode:fC,linkReference:dC,link:hC,listItem:mC,list:gC,paragraph:yC,root:vC,strong:bC,table:xC,tableCell:EC,tableRow:SC,text:kC,thematicBreak:CC,toml:go,yaml:go,definition:go,footnoteDefinition:go};function go(){}const Fv=-1,Yo=0,Xa=1,Do=2,hd=3,md=4,pd=5,gd=6,Zv=7,Kv=8,Iv=typeof self=="object"?self:globalThis,gy=(n,i)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new Iv[n](i)},zC=(n,i)=>{const r=(o,s)=>(n.set(s,o),o),u=o=>{if(n.has(o))return n.get(o);const[s,c]=i[o];switch(s){case Yo:case Fv:return r(c,o);case Xa:{const h=r([],o);for(const p of c)h.push(u(p));return h}case Do:{const h=r({},o);for(const[p,m]of c)h[u(p)]=u(m);return h}case hd:return r(new Date(c),o);case md:{const{source:h,flags:p}=c;return r(new RegExp(h,p),o)}case pd:{const h=r(new Map,o);for(const[p,m]of c)h.set(u(p),u(m));return h}case gd:{const h=r(new Set,o);for(const p of c)h.add(u(p));return h}case Zv:{const{name:h,message:p}=c;return r(typeof Iv[h]=="function"?gy(h,p):new Error(p),o)}case Kv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return r(new DataView(h),c)}}return r(gy(s,c),o)};return u},yy=n=>zC(new Map,n)(0),Ui="",{toString:AC}={},{keys:MC}=Object,qa=n=>{const i=typeof n;if(i!=="object"||!n)return[Yo,i];const r=AC.call(n).slice(8,-1);switch(r){case"Array":return[Xa,Ui];case"Object":return[Do,Ui];case"Date":return[hd,Ui];case"RegExp":return[md,Ui];case"Map":return[pd,Ui];case"Set":return[gd,Ui];case"DataView":return[Xa,r]}return r.includes("Array")?[Xa,r]:n instanceof Error?[Zv,n.name||"Error"]:[Do,r]},yo=([n,i])=>n===Yo&&(i==="function"||i==="symbol"),DC=(n,i,r,u)=>{const o=(c,h)=>{const p=u.push(c)-1;return r.set(h,p),p},s=c=>{if(r.has(c))return r.get(c);let[h,p]=qa(c);switch(h){case Yo:{let y=c;switch(p){case"bigint":h=Kv,y=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return o([Fv],c)}return o([h,y],c)}case Xa:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),o([p,[...x]],c)}const y=[],g=o([h,y],c);for(const x of c)y.push(s(x));return g}case Do:{if(p)switch(p){case"BigInt":return o([p,c.toString()],c);case"Boolean":case"Number":case"String":return o([p,c.valueOf()],c)}if(i&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([h,y],c);for(const x of MC(c))(n||!yo(qa(c[x])))&&y.push([s(x),s(c[x])]);return g}case hd:return o([h,isNaN(c.getTime())?Ui:c.toISOString()],c);case md:{const{source:y,flags:g}=c;return o([h,{source:y,flags:g}],c)}case pd:{const y=[],g=o([h,y],c);for(const[x,b]of c)(n||!(yo(qa(x))||yo(qa(b))))&&y.push([s(x),s(b)]);return g}case gd:{const y=[],g=o([h,y],c);for(const x of c)(n||!yo(qa(x)))&&y.push(s(x));return g}}const{message:m}=c;return o([h,{name:p,message:m}],c)};return s},vy=(n,{json:i,lossy:r}={})=>{const u=[];return DC(!(i||r),!!i,new Map,u)(n),u},Ro=typeof structuredClone=="function"?(n,i)=>i&&("json"in i||"lossy"in i)?yy(vy(n,i)):structuredClone(n):(n,i)=>yy(vy(n,i));function RC(n,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function NC(n,i){return"Back to reference "+(n+1)+(i>1?"-"+i:"")}function _C(n){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||RC,u=n.options.footnoteBackLabel||NC,o=n.options.footnoteLabel||"Footnotes",s=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const y=n.all(m),g=String(m.identifier).toUpperCase(),x=qr(g.toLowerCase());let b=0;const k=[],M=n.footnoteCounts.get(g);for(;M!==void 0&&++b<=M;){k.length>0&&k.push({type:"text",value:" "});let U=typeof r=="string"?r:r(p,b);typeof U=="string"&&(U={type:"text",value:U}),k.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,b),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const _=y[y.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const U=_.children[_.children.length-1];U&&U.type==="text"?U.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...k)}else y.push(...k);const R={type:"element",tagName:"li",properties:{id:i+"fn-"+x},children:n.wrap(y,!0)};n.patch(m,R),h.push(R)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Ro(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
230
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
|
|
231
|
+
`}]}}const Go=(function(n){if(n==null)return UC;if(typeof n=="function")return Xo(n);if(typeof n=="object")return Array.isArray(n)?OC(n):jC(n);if(typeof n=="string")return LC(n);throw new Error("Expected function, string, or object as test")});function OC(n){const i=[];let r=-1;for(;++r<n.length;)i[r]=Go(n[r]);return Xo(u);function u(...o){let s=-1;for(;++s<i.length;)if(i[s].apply(this,o))return!0;return!1}}function jC(n){const i=n;return Xo(r);function r(u){const o=u;let s;for(s in n)if(o[s]!==i[s])return!1;return!0}}function LC(n){return Xo(i);function i(r){return r&&r.type===n}}function Xo(n){return i;function i(r,u,o){return!!(BC(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function UC(){return!0}function BC(n){return n!==null&&typeof n=="object"&&"type"in n}const Jv=[],HC=!0,qf=!1,qC="skip";function Pv(n,i,r,u){let o;typeof i=="function"&&typeof r!="function"?(u=r,r=i):o=i;const s=Go(o),c=u?-1:1;h(n,void 0,[])();function h(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=Jv,k,M,_;if((!i||s(p,m,y[y.length-1]||void 0))&&(b=VC(r(p,y)),b[0]===qf))return b;if("children"in p&&p.children){const R=p;if(R.children&&b[0]!==qC)for(M=(u?R.children.length:-1)+c,_=y.concat(R);M>-1&&M<R.children.length;){const U=R.children[M];if(k=h(U,M,_)(),k[0]===qf)return k;M=typeof k[1]=="number"?k[1]:M+c}}return b}}}function VC(n){return Array.isArray(n)?n:typeof n=="number"?[HC,n]:n==null?Jv:[n]}function yd(n,i,r,u){let o,s,c;typeof i=="function"&&typeof r!="function"?(s=void 0,c=i,o=r):(s=i,c=r,o=u),Pv(n,s,h,o);function h(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return c(p,g,y)}}const Vf={}.hasOwnProperty,YC={};function GC(n,i){const r=i||YC,u=new Map,o=new Map,s=new Map,c={...TC,...r.handlers},h={all:m,applyData:QC,definitionById:u,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:XC,wrap:ZC};return yd(n,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?u:o,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),h;function p(y,g){const x=y.type,b=h.handlers[x];if(Vf.call(h.handlers,x)&&b)return b(h,y,g);if(h.options.passThrough&&h.options.passThrough.includes(x)){if("children"in y){const{children:M,..._}=y,R=Ro(_);return R.children=h.all(y),R}return Ro(y)}return(h.options.unknownHandler||FC)(h,y,g)}function m(y){const g=[];if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const k=h.one(x[b],y);if(k){if(b&&x[b-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=by(k.value)),!Array.isArray(k)&&k.type==="element")){const M=k.children[0];M&&M.type==="text"&&(M.value=by(M.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function XC(n,i){n.position&&(i.position=NE(n))}function QC(n,i){let r=i;if(n&&n.data){const u=n.data.hName,o=n.data.hChildren,s=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const c="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Ro(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function FC(n,i){const r=i.data||{},u="value"in i&&!(Vf.call(r,"hProperties")||Vf.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:n.all(i)};return n.patch(i,u),n.applyData(i,u)}function ZC(n,i){const r=[];let u=-1;for(i&&r.push({type:"text",value:`
|
|
232
|
+
`});++u<n.length;)u&&r.push({type:"text",value:`
|
|
233
|
+
`}),r.push(n[u]);return i&&n.length>0&&r.push({type:"text",value:`
|
|
234
|
+
`}),r}function by(n){let i=0,r=n.charCodeAt(i);for(;r===9||r===32;)i++,r=n.charCodeAt(i);return n.slice(i)}function xy(n,i){const r=GC(n,i),u=r.one(n,void 0),o=_C(r),s=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
235
|
+
`},o),s}function KC(n,i){return n&&"run"in n?async function(r,u){const o=xy(r,{file:u,...i});await n.run(o,u)}:function(r,u){return xy(r,{file:u,...n||i})}}function Sy(n){if(n)throw n}var gf,Ey;function IC(){if(Ey)return gf;Ey=1;var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},s=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var x;for(x in m);return typeof x>"u"||n.call(m,x)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},h=function(m,y){if(y==="__proto__")if(n.call(m,y)){if(u)return u(m,y).value}else return;return m[y]};return gf=function p(){var m,y,g,x,b,k,M=arguments[0],_=1,R=arguments.length,U=!1;for(typeof M=="boolean"&&(U=M,M=arguments[1]||{},_=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});_<R;++_)if(m=arguments[_],m!=null)for(y in m)g=h(M,y),x=h(m,y),M!==x&&(U&&x&&(s(x)||(b=o(x)))?(b?(b=!1,k=g&&o(g)?g:[]):k=g&&s(g)?g:{},c(M,{name:y,newValue:p(U,k,x)})):typeof x<"u"&&c(M,{name:y,newValue:x}));return M},gf}var JC=IC();const yf=Oo(JC);function Yf(n){if(typeof n!="object"||n===null)return!1;const i=Object.getPrototypeOf(n);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function PC(){const n=[],i={run:r,use:u};return i;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...o);function h(p,...m){const y=n[++s];let g=-1;if(p){c(p);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?$C(y,h)(...m):c(null,...m)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),i}}function $C(n,i){let r;return u;function u(...c){const h=n.length>c.length;let p;h&&c.push(o);try{p=n.apply(this,c)}catch(m){const y=m;if(h&&r)throw y;return o(y)}h||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(c,...h){r||(r=!0,i(c,...h))}function s(c){o(null,c)}}const Wn={basename:WC,dirname:eT,extname:tT,join:nT,sep:"/"};function WC(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');tu(n);let r=0,u=-1,o=n.length,s;if(i===void 0||i.length===0||i.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(s){r=o+1;break}}else u<0&&(s=!0,u=o+1);return u<0?"":n.slice(r,u)}if(i===n)return"";let c=-1,h=i.length-1;for(;o--;)if(n.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),h>-1&&(n.codePointAt(o)===i.codePointAt(h--)?h<0&&(u=o):(h=-1,u=c));return r===u?u=c:u<0&&(u=n.length),n.slice(r,u)}function eT(n){if(tu(n),n.length===0)return".";let i=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){i=r;break}}else u||(u=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function tT(n){tu(n);let i=n.length,r=-1,u=0,o=-1,s=0,c;for(;i--;){const h=n.codePointAt(i);if(h===47){if(c){u=i+1;break}continue}r<0&&(c=!0,r=i+1),h===46?o<0?o=i:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===u+1?"":n.slice(o,r)}function nT(...n){let i=-1,r;for(;++i<n.length;)tu(n[i]),n[i]&&(r=r===void 0?n[i]:r+"/"+n[i]);return r===void 0?".":lT(r)}function lT(n){tu(n);const i=n.codePointAt(0)===47;let r=iT(n,!i);return r.length===0&&!i&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),i?"/"+r:r}function iT(n,i){let r="",u=0,o=-1,s=0,c=-1,h,p;for(;++c<=n.length;){if(c<n.length)h=n.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",u=0,o=c,s=0;continue}}i&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(o+1,c):r=n.slice(o+1,c),u=c-o-1;o=c,s=0}else h===46&&s>-1?s++:s=-1}return r}function tu(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const rT={cwd:aT};function aT(){return"/"}function Gf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function uT(n){if(typeof n=="string")n=new URL(n);else if(!Gf(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return oT(n)}function oT(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const i=n.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const u=i.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(i)}const vf=["history","path","basename","stem","extname","dirname"];class $v{constructor(i){let r;i?Gf(i)?r={path:i}:typeof i=="string"||sT(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":rT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<vf.length;){const s=vf[u];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)vf.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(i){xf(i,"basename"),bf(i,"basename"),this.path=Wn.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(i){wy(this.basename,"dirname"),this.path=Wn.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(i){if(bf(i,"extname"),wy(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wn.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Gf(i)&&(i=uT(i)),xf(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(i){xf(i,"stem"),bf(i,"stem"),this.path=Wn.join(this.dirname||"",i+(this.extname||""))}fail(i,r,u){const o=this.message(i,r,u);throw o.fatal=!0,o}info(i,r,u){const o=this.message(i,r,u);return o.fatal=void 0,o}message(i,r,u){const o=new Kt(i,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function bf(n,i){if(n&&n.includes(Wn.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Wn.sep+"`")}function xf(n,i){if(!n)throw new Error("`"+i+"` cannot be empty")}function wy(n,i){if(!n)throw new Error("Setting `"+i+"` requires `path` to be set too")}function sT(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const cT=(function(n){const u=this.constructor.prototype,o=u[n],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,u),s}),fT={}.hasOwnProperty;class vd extends cT{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=PC()}copy(){const i=new vd;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];i.use(...u)}return i.data(yf(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(wf("data",this.frozen),this.namespace[i]=r,this):fT.call(this.namespace,i)&&this.namespace[i]||void 0:i?(wf("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(i,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=vo(i),u=this.parser||this.Parser;return Sf("parse",u),u(String(r),r)}process(i,r){const u=this;return this.freeze(),Sf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const h=vo(i),p=u.parse(h);u.run(p,h,function(y,g,x){if(y||!g||!x)return m(y);const b=g,k=u.stringify(b,x);mT(k)?x.value=k:x.result=k,m(y,x)});function m(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(i){let r=!1,u;return this.freeze(),Sf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(i,o),Cy("processSync","process",r),u;function o(s,c){r=!0,Sy(s),u=c}}run(i,r,u){ky(i),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?s(void 0,u):new Promise(s);function s(c,h){const p=vo(r);o.run(i,p,m);function m(y,g,x){const b=g||i;y?h(y):c?c(b):u(void 0,b,x)}}}runSync(i,r){let u=!1,o;return this.run(i,r,s),Cy("runSync","run",u),o;function s(c,h){Sy(c),o=h,u=!0}}stringify(i,r){this.freeze();const u=vo(r),o=this.compiler||this.Compiler;return Ef("stringify",o),ky(i),o(i,u)}use(i,...r){const u=this.attachers,o=this.namespace;if(wf("use",this.frozen),i!=null)if(typeof i=="function")p(i,r);else if(typeof i=="object")Array.isArray(i)?h(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");h(m.plugins),m.settings&&(o.settings=yf(!0,o.settings,m.settings))}function h(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,x=-1;for(;++g<u.length;)if(u[g][0]===m){x=g;break}if(x===-1)u.push([m,...y]);else if(y.length>0){let[b,...k]=y;const M=u[x][1];Yf(M)&&Yf(b)&&(b=yf(!0,M,b)),u[x]=[m,b,...k]}}}}const dT=new vd().freeze();function Sf(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ef(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function wf(n,i){if(i)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ky(n){if(!Yf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Cy(n,i,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+i+"` instead")}function vo(n){return hT(n)?n:new $v(n)}function hT(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function mT(n){return typeof n=="string"||pT(n)}function pT(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const gT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ty=[],zy={allowDangerousHtml:!0},yT=/^(https?|ircs?|mailto|xmpp)$/i,vT=[{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:"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 bT(n){const i=xT(n),r=ST(n);return ET(i.runSync(i.parse(r),r),n)}function xT(n){const i=n.rehypePlugins||Ty,r=n.remarkPlugins||Ty,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...zy}:zy;return dT().use(eC).use(r).use(KC,u).use(i)}function ST(n){const i=n.children||"",r=new $v;return typeof i=="string"&&(r.value=i),r}function ET(n,i){const r=i.allowedElements,u=i.allowElement,o=i.components,s=i.disallowedElements,c=i.skipHtml,h=i.unwrapDisallowed,p=i.urlTransform||wT;for(const y of vT)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+gT+y.id,void 0);return i.className&&(n={type:"element",tagName:"div",properties:{className:i.className},children:n.type==="root"?n.children:[n]}),yd(n,m),UE(n,{Fragment:E.Fragment,components:o,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in hf)if(Object.hasOwn(hf,b)&&Object.hasOwn(y.properties,b)){const k=y.properties[b],M=hf[b];(M===null||M.includes(y.tagName))&&(y.properties[b]=p(String(k||""),b,y))}}if(y.type==="element"){let b=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!b&&u&&typeof g=="number"&&(b=!u(y,g,x)),b&&x&&typeof g=="number")return h&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function wT(n){const i=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),o=n.indexOf("/");return i===-1||o!==-1&&i>o||r!==-1&&i>r||u!==-1&&i>u||yT.test(n.slice(0,i))?n:""}function Ay(n,i){const r=String(n);if(typeof i!="string")throw new TypeError("Expected character");let u=0,o=r.indexOf(i);for(;o!==-1;)u++,o=r.indexOf(i,o+i.length);return u}function kT(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function CT(n,i,r){const o=Go((r||{}).ignore||[]),s=TT(i);let c=-1;for(;++c<s.length;)Pv(n,"text",h);function h(m,y){let g=-1,x;for(;++g<y.length;){const b=y[g],k=x?x.children:void 0;if(o(b,k?k.indexOf(b):void 0,x))return;x=b}if(x)return p(m,y)}function p(m,y){const g=y[y.length-1],x=s[c][0],b=s[c][1];let k=0;const _=g.children.indexOf(m);let R=!1,U=[];x.lastIndex=0;let Y=x.exec(m.value);for(;Y;){const te=Y.index,oe={index:Y.index,input:Y.input,stack:[...y,m]};let G=b(...Y,oe);if(typeof G=="string"&&(G=G.length>0?{type:"text",value:G}:void 0),G===!1?x.lastIndex=te+1:(k!==te&&U.push({type:"text",value:m.value.slice(k,te)}),Array.isArray(G)?U.push(...G):G&&U.push(G),k=te+Y[0].length,R=!0),!x.global)break;Y=x.exec(m.value)}return R?(k<m.value.length&&U.push({type:"text",value:m.value.slice(k)}),g.children.splice(_,1,...U)):U=[m],_+U.length}}function TT(n){const i=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const o=r[u];i.push([zT(o[0]),AT(o[1])])}return i}function zT(n){return typeof n=="string"?new RegExp(kT(n),"g"):n}function AT(n){return typeof n=="function"?n:function(){return n}}const kf="phrasing",Cf=["autolink","link","image","label"];function MT(){return{transforms:[LT],enter:{literalAutolink:RT,literalAutolinkEmail:Tf,literalAutolinkHttp:Tf,literalAutolinkWww:Tf},exit:{literalAutolink:jT,literalAutolinkEmail:OT,literalAutolinkHttp:NT,literalAutolinkWww:_T}}}function DT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:kf,notInConstruct:Cf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:kf,notInConstruct:Cf},{character:":",before:"[ps]",after:"\\/",inConstruct:kf,notInConstruct:Cf}]}}function RT(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Tf(n){this.config.enter.autolinkProtocol.call(this,n)}function NT(n){this.config.exit.autolinkProtocol.call(this,n)}function _T(n){this.config.exit.data.call(this,n);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(n)}function OT(n){this.config.exit.autolinkEmail.call(this,n)}function jT(n){this.exit(n)}function LT(n){CT(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,UT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),BT]],{ignore:["link","linkReference"]})}function UT(n,i,r,u,o){let s="";if(!Wv(o)||(/^w/i.test(i)&&(r=i+r,i="",s="http://"),!HT(r)))return!1;const c=qT(r+u);if(!c[0])return!1;const h={type:"link",title:null,url:s+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function BT(n,i,r,u){return!Wv(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function HT(n){const i=n.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function qT(n){const i=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!i)return[n,void 0];n=n.slice(0,i.index);let r=i[0],u=r.indexOf(")");const o=Ay(n,"(");let s=Ay(n,")");for(;u!==-1&&o>s;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),s++;return[n,r]}function Wv(n,i){const r=n.input.charCodeAt(n.index-1);return(n.index===0||Xi(r)||qo(r))&&(!i||r!==47)}e1.peek=IT;function VT(){this.buffer()}function YT(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function GT(){this.buffer()}function XT(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function QT(n){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Fn(this.sliceSerialize(n)).toLowerCase(),r.label=i}function FT(n){this.exit(n)}function ZT(n){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Fn(this.sliceSerialize(n)).toLowerCase(),r.label=i}function KT(n){this.exit(n)}function IT(){return"["}function e1(n,i,r,u){const o=r.createTracker(u);let s=o.move("[^");const c=r.enter("footnoteReference"),h=r.enter("reference");return s+=o.move(r.safe(r.associationId(n),{after:"]",before:s})),h(),c(),s+=o.move("]"),s}function JT(){return{enter:{gfmFootnoteCallString:VT,gfmFootnoteCall:YT,gfmFootnoteDefinitionLabelString:GT,gfmFootnoteDefinition:XT},exit:{gfmFootnoteCallString:QT,gfmFootnoteCall:FT,gfmFootnoteDefinitionLabelString:ZT,gfmFootnoteDefinition:KT}}}function PT(n){let i=!1;return n&&n.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:e1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,o,s,c){const h=s.createTracker(c);let p=h.move("[^");const m=s.enter("footnoteDefinition"),y=s.enter("label");return p+=h.move(s.safe(s.associationId(u),{before:p,after:"]"})),y(),p+=h.move("]:"),u.children&&u.children.length>0&&(h.shift(4),p+=h.move((i?`
|
|
236
|
+
`:" ")+s.indentLines(s.containerFlow(u,h.current()),i?t1:$T))),m(),p}}function $T(n,i,r){return i===0?n:t1(n,i,r)}function t1(n,i,r){return(r?"":" ")+n}const WT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];n1.peek=iz;function ez(){return{canContainEols:["delete"],enter:{strikethrough:nz},exit:{strikethrough:lz}}}function tz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:WT}],handlers:{delete:n1}}}function nz(n){this.enter({type:"delete",children:[]},n)}function lz(n){this.exit(n)}function n1(n,i,r,u){const o=r.createTracker(u),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(n,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function iz(){return"~"}function rz(n){return n.length}function az(n,i){const r=i||{},u=(r.align||[]).concat(),o=r.stringLength||rz,s=[],c=[],h=[],p=[];let m=0,y=-1;for(;++y<n.length;){const M=[],_=[];let R=-1;for(n[y].length>m&&(m=n[y].length);++R<n[y].length;){const U=uz(n[y][R]);if(r.alignDelimiters!==!1){const Y=o(U);_[R]=Y,(p[R]===void 0||Y>p[R])&&(p[R]=Y)}M.push(U)}c[y]=M,h[y]=_}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)s[g]=My(u[g]);else{const M=My(u);for(;++g<m;)s[g]=M}g=-1;const x=[],b=[];for(;++g<m;){const M=s[g];let _="",R="";M===99?(_=":",R=":"):M===108?_=":":M===114&&(R=":");let U=r.alignDelimiters===!1?1:Math.max(1,p[g]-_.length-R.length);const Y=_+"-".repeat(U)+R;r.alignDelimiters!==!1&&(U=_.length+U+R.length,U>p[g]&&(p[g]=U),b[g]=U),x[g]=Y}c.splice(1,0,x),h.splice(1,0,b),y=-1;const k=[];for(;++y<c.length;){const M=c[y],_=h[y];g=-1;const R=[];for(;++g<m;){const U=M[g]||"";let Y="",te="";if(r.alignDelimiters!==!1){const oe=p[g]-(_[g]||0),G=s[g];G===114?Y=" ".repeat(oe):G===99?oe%2?(Y=" ".repeat(oe/2+.5),te=" ".repeat(oe/2-.5)):(Y=" ".repeat(oe/2),te=Y):te=" ".repeat(oe)}r.delimiterStart!==!1&&!g&&R.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&U==="")&&(r.delimiterStart!==!1||g)&&R.push(" "),r.alignDelimiters!==!1&&R.push(Y),R.push(U),r.alignDelimiters!==!1&&R.push(te),r.padding!==!1&&R.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&R.push("|")}k.push(r.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return k.join(`
|
|
237
|
+
`)}function uz(n){return n==null?"":String(n)}function My(n){const i=typeof n=="string"?n.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function oz(n,i,r,u){const o=r.enter("blockquote"),s=r.createTracker(u);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(n,s.current()),sz);return o(),c}function sz(n,i,r){return">"+(r?"":" ")+n}function cz(n,i){return Dy(n,i.inConstruct,!0)&&!Dy(n,i.notInConstruct,!1)}function Dy(n,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let u=-1;for(;++u<i.length;)if(n.includes(i[u]))return!0;return!1}function Ry(n,i,r,u){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
238
|
+
`&&cz(r.stack,r.unsafe[o]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
239
|
+
`}function fz(n,i){const r=String(n);let u=r.indexOf(i),o=u,s=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===o?++s>c&&(c=s):s=1,o=u+i.length,u=r.indexOf(i,o);return c}function dz(n,i){return!!(i.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function hz(n){const i=n.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function mz(n,i,r,u){const o=hz(r),s=n.value||"",c=o==="`"?"GraveAccent":"Tilde";if(dz(n,r)){const g=r.enter("codeIndented"),x=r.indentLines(s,pz);return g(),x}const h=r.createTracker(u),p=o.repeat(Math.max(fz(s,o)+1,3)),m=r.enter("codeFenced");let y=h.move(p);if(n.lang){const g=r.enter(`codeFencedLang${c}`);y+=h.move(r.safe(n.lang,{before:y,after:" ",encode:["`"],...h.current()})),g()}if(n.lang&&n.meta){const g=r.enter(`codeFencedMeta${c}`);y+=h.move(" "),y+=h.move(r.safe(n.meta,{before:y,after:`
|
|
240
|
+
`,encode:["`"],...h.current()})),g()}return y+=h.move(`
|
|
241
|
+
`),s&&(y+=h.move(s+`
|
|
242
|
+
`)),y+=h.move(p),m(),y}function pz(n,i,r){return(r?"":" ")+n}function bd(n){const i=n.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function gz(n,i,r,u){const o=bd(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("[");return m+=p.move(r.safe(r.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":`
|
|
243
|
+
`,...p.current()}))),h(),n.title&&(h=r.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(r.safe(n.title,{before:m,after:o,...p.current()})),m+=p.move(o),h()),c(),m}function yz(n){const i=n.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function Ja(n){return"&#x"+n.toString(16).toUpperCase()+";"}function No(n,i,r){const u=jr(n),o=jr(i);return u===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}l1.peek=vz;function l1(n,i,r,u){const o=yz(r),s=r.enter("emphasis"),c=r.createTracker(u),h=c.move(o);let p=c.move(r.containerPhrasing(n,{after:o,before:h,...c.current()}));const m=p.charCodeAt(0),y=No(u.before.charCodeAt(u.before.length-1),m,o);y.inside&&(p=Ja(m)+p.slice(1));const g=p.charCodeAt(p.length-1),x=No(u.after.charCodeAt(0),g,o);x.inside&&(p=p.slice(0,-1)+Ja(g));const b=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},h+p+b}function vz(n,i,r){return r.options.emphasis||"*"}function bz(n,i){let r=!1;return yd(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,qf}),!!((!n.depth||n.depth<3)&&cd(n)&&(i.options.setext||r))}function xz(n,i,r,u){const o=Math.max(Math.min(6,n.depth||1),1),s=r.createTracker(u);if(bz(n,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),x=r.containerPhrasing(n,{...s.current(),before:`
|
|
244
|
+
`,after:`
|
|
245
|
+
`});return g(),y(),x+`
|
|
246
|
+
`+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
247
|
+
`))+1))}const c="#".repeat(o),h=r.enter("headingAtx"),p=r.enter("phrasing");s.move(c+" ");let m=r.containerPhrasing(n,{before:"# ",after:`
|
|
248
|
+
`,...s.current()});return/^[\t ]/.test(m)&&(m=Ja(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),p(),h(),m}i1.peek=Sz;function i1(n){return n.value||""}function Sz(){return"<"}r1.peek=Ez;function r1(n,i,r,u){const o=bd(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("![");return m+=p.move(r.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),h(),n.title&&(h=r.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(r.safe(n.title,{before:m,after:o,...p.current()})),m+=p.move(o),h()),m+=p.move(")"),c(),m}function Ez(){return"!"}a1.peek=wz;function a1(n,i,r,u){const o=n.referenceType,s=r.enter("imageReference");let c=r.enter("label");const h=r.createTracker(u);let p=h.move("![");const m=r.safe(n.alt,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return c(),r.stack=y,s(),o==="full"||!m||m!==g?p+=h.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function wz(){return"!"}u1.peek=kz;function u1(n,i,r){let u=n.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(u);)o+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++s<r.unsafe.length;){const c=r.unsafe[s],h=r.compilePattern(c);let p;if(c.atBreak)for(;p=h.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return o+u+o}function kz(){return"`"}function o1(n,i){const r=cd(n);return!!(!i.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}s1.peek=Cz;function s1(n,i,r,u){const o=bd(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(u);let h,p;if(o1(n,r)){const y=r.stack;r.stack=[],h=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(n,{before:g,after:">",...c.current()})),g+=c.move(">"),h(),r.stack=y,g}h=r.enter("link"),p=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(n,{before:m,after:"](",...c.current()})),m+=c.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(n.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(p=r.enter("destinationRaw"),m+=c.move(r.safe(n.url,{before:m,after:n.title?" ":")",...c.current()}))),p(),n.title&&(p=r.enter(`title${s}`),m+=c.move(" "+o),m+=c.move(r.safe(n.title,{before:m,after:o,...c.current()})),m+=c.move(o),p()),m+=c.move(")"),h(),m}function Cz(n,i,r){return o1(n,r)?"<":"["}c1.peek=Tz;function c1(n,i,r,u){const o=n.referenceType,s=r.enter("linkReference");let c=r.enter("label");const h=r.createTracker(u);let p=h.move("[");const m=r.containerPhrasing(n,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return c(),r.stack=y,s(),o==="full"||!m||m!==g?p+=h.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function Tz(){return"["}function xd(n){const i=n.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function zz(n){const i=xd(n),r=n.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Az(n){const i=n.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function f1(n){const i=n.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function Mz(n,i,r,u){const o=r.enter("list"),s=r.bulletCurrent;let c=n.ordered?Az(r):xd(r);const h=n.ordered?c==="."?")":".":zz(r);let p=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!n.ordered){const y=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),f1(r)===c&&y){let g=-1;for(;++g<n.children.length;){const x=n.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=h),r.bulletCurrent=c;const m=r.containerFlow(n,u);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),m}function Dz(n){const i=n.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function Rz(n,i,r,u){const o=Dz(r);let s=r.bulletCurrent||xd(r);i&&i.type==="list"&&i.ordered&&(s=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(n))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(i&&i.type==="list"&&i.spread||n.spread))&&(c=Math.ceil(c/4)*4);const h=r.createTracker(u);h.move(s+" ".repeat(c-s.length)),h.shift(c);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(n,h.current()),y);return p(),m;function y(g,x,b){return x?(b?"":" ".repeat(c))+g:(b?s:s+" ".repeat(c-s.length))+g}}function Nz(n,i,r,u){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(n,u);return s(),o(),c}const _z=Go(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Oz(n,i,r,u){return(n.children.some(function(c){return _z(c)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function jz(n){const i=n.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}d1.peek=Lz;function d1(n,i,r,u){const o=jz(r),s=r.enter("strong"),c=r.createTracker(u),h=c.move(o+o);let p=c.move(r.containerPhrasing(n,{after:o,before:h,...c.current()}));const m=p.charCodeAt(0),y=No(u.before.charCodeAt(u.before.length-1),m,o);y.inside&&(p=Ja(m)+p.slice(1));const g=p.charCodeAt(p.length-1),x=No(u.after.charCodeAt(0),g,o);x.inside&&(p=p.slice(0,-1)+Ja(g));const b=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},h+p+b}function Lz(n,i,r){return r.options.strong||"*"}function Uz(n,i,r,u){return r.safe(n.value,u)}function Bz(n){const i=n.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function Hz(n,i,r){const u=(f1(r)+(r.options.ruleSpaces?" ":"")).repeat(Bz(r));return r.options.ruleSpaces?u.slice(0,-1):u}const h1={blockquote:oz,break:Ry,code:mz,definition:gz,emphasis:l1,hardBreak:Ry,heading:xz,html:i1,image:r1,imageReference:a1,inlineCode:u1,link:s1,linkReference:c1,list:Mz,listItem:Rz,paragraph:Nz,root:Oz,strong:d1,text:Uz,thematicBreak:Hz};function qz(){return{enter:{table:Vz,tableData:Ny,tableHeader:Ny,tableRow:Gz},exit:{codeText:Xz,table:Yz,tableData:zf,tableHeader:zf,tableRow:zf}}}function Vz(n){const i=n._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function Yz(n){this.exit(n),this.data.inTable=void 0}function Gz(n){this.enter({type:"tableRow",children:[]},n)}function zf(n){this.exit(n)}function Ny(n){this.enter({type:"tableCell",children:[]},n)}function Xz(n){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,Qz));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(n)}function Qz(n,i){return i==="|"?i:n}function Fz(n){const i=n||{},r=i.tableCellPadding,u=i.tablePipeAlign,o=i.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
249
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:p,tableRow:h}};function c(b,k,M,_){return m(y(b,M,_),b.align)}function h(b,k,M,_){const R=g(b,M,_),U=m([R]);return U.slice(0,U.indexOf(`
|
|
250
|
+
`))}function p(b,k,M,_){const R=M.enter("tableCell"),U=M.enter("phrasing"),Y=M.containerPhrasing(b,{..._,before:s,after:s});return U(),R(),Y}function m(b,k){return az(b,{align:k,alignDelimiters:u,padding:r,stringLength:o})}function y(b,k,M){const _=b.children;let R=-1;const U=[],Y=k.enter("table");for(;++R<_.length;)U[R]=g(_[R],k,M);return Y(),U}function g(b,k,M){const _=b.children;let R=-1;const U=[],Y=k.enter("tableRow");for(;++R<_.length;)U[R]=p(_[R],b,k,M);return Y(),U}function x(b,k,M){let _=h1.inlineCode(b,k,M);return M.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function Zz(){return{exit:{taskListCheckValueChecked:_y,taskListCheckValueUnchecked:_y,paragraph:Iz}}}function Kz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Jz}}}function _y(n){const i=this.stack[this.stack.length-2];i.type,i.checked=n.type==="taskListCheckValueChecked"}function Iz(n){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const o=i.children;let s=-1,c;for(;++s<o.length;){const h=o[s];if(h.type==="paragraph"){c=h;break}}c===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function Jz(n,i,r,u){const o=n.children[0],s=typeof n.checked=="boolean"&&o&&o.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",h=r.createTracker(u);s&&h.move(c);let p=h1.listItem(n,i,r,{...u,...h.current()});return s&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+c}}function Pz(){return[MT(),JT(),ez(),qz(),Zz()]}function $z(n){return{extensions:[DT(),PT(n),tz(),Fz(n),Kz()]}}const Wz={tokenize:rA,partial:!0},m1={tokenize:aA,partial:!0},p1={tokenize:uA,partial:!0},g1={tokenize:oA,partial:!0},eA={tokenize:sA,partial:!0},y1={name:"wwwAutolink",tokenize:lA,previous:b1},v1={name:"protocolAutolink",tokenize:iA,previous:x1},zl={name:"emailAutolink",tokenize:nA,previous:S1},tl={};function tA(){return{text:tl}}let Li=48;for(;Li<123;)tl[Li]=zl,Li++,Li===58?Li=65:Li===91&&(Li=97);tl[43]=zl;tl[45]=zl;tl[46]=zl;tl[95]=zl;tl[72]=[zl,v1];tl[104]=[zl,v1];tl[87]=[zl,y1];tl[119]=[zl,y1];function nA(n,i,r){const u=this;let o,s;return c;function c(g){return!Xf(g)||!S1.call(u,u.previous)||Sd(u.events)?r(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(g))}function h(g){return Xf(g)?(n.consume(g),h):g===64?(n.consume(g),p):r(g)}function p(g){return g===46?n.check(eA,y,m)(g):g===45||g===95||Zt(g)?(s=!0,n.consume(g),p):y(g)}function m(g){return n.consume(g),o=!0,p}function y(g){return s&&o&&Pt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),i(g)):r(g)}}function lA(n,i,r){const u=this;return o;function o(c){return c!==87&&c!==119||!b1.call(u,u.previous)||Sd(u.events)?r(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Wz,n.attempt(m1,n.attempt(p1,s),r),r)(c))}function s(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),i(c)}}function iA(n,i,r){const u=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&x1.call(u,u.previous)&&!Sd(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),n.consume(g),h):r(g)}function h(g){if(Pt(g)&&o.length<5)return o+=String.fromCodePoint(g),n.consume(g),h;if(g===58){const x=o.toLowerCase();if(x==="http"||x==="https")return n.consume(g),p}return r(g)}function p(g){return g===47?(n.consume(g),s?m:(s=!0,p)):r(g)}function m(g){return g===null||Mo(g)||ft(g)||Xi(g)||qo(g)?r(g):n.attempt(m1,n.attempt(p1,y),r)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(g)}}function rA(n,i,r){let u=0;return o;function o(c){return(c===87||c===119)&&u<3?(u++,n.consume(c),o):c===46&&u===3?(n.consume(c),s):r(c)}function s(c){return c===null?r(c):i(c)}}function aA(n,i,r){let u,o,s;return c;function c(m){return m===46||m===95?n.check(g1,p,h)(m):m===null||ft(m)||Xi(m)||m!==45&&qo(m)?p(m):(s=!0,n.consume(m),c)}function h(m){return m===95?u=!0:(o=u,u=void 0),n.consume(m),c}function p(m){return o||u||!s?r(m):i(m)}}function uA(n,i){let r=0,u=0;return o;function o(c){return c===40?(r++,n.consume(c),o):c===41&&u<r?s(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?n.check(g1,i,s)(c):c===null||ft(c)||Xi(c)?i(c):(n.consume(c),o)}function s(c){return c===41&&u++,n.consume(c),o}}function oA(n,i,r){return u;function u(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),u):h===38?(n.consume(h),s):h===93?(n.consume(h),o):h===60||h===null||ft(h)||Xi(h)?i(h):r(h)}function o(h){return h===null||h===40||h===91||ft(h)||Xi(h)?i(h):u(h)}function s(h){return Pt(h)?c(h):r(h)}function c(h){return h===59?(n.consume(h),u):Pt(h)?(n.consume(h),c):r(h)}}function sA(n,i,r){return u;function u(s){return n.consume(s),o}function o(s){return Zt(s)?r(s):i(s)}}function b1(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||ft(n)}function x1(n){return!Pt(n)}function S1(n){return!(n===47||Xf(n))}function Xf(n){return n===43||n===45||n===46||n===95||Zt(n)}function Sd(n){let i=n.length,r=!1;for(;i--;){const u=n[i][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const cA={tokenize:vA,partial:!0};function fA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pA,continuation:{tokenize:gA},exit:yA}},text:{91:{name:"gfmFootnoteCall",tokenize:mA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dA,resolveTo:hA}}}}function dA(n,i,r){const u=this;let o=u.events.length;const s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c;for(;o--;){const p=u.events[o][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!c||!c._balanced)return r(p);const m=Fn(u.sliceSerialize({start:c.end,end:u.now()}));return m.codePointAt(0)!==94||!s.includes(m.slice(1))?r(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),i(p))}}function hA(n,i){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},h=[n[r+1],n[r+2],["enter",u,i],n[r+3],n[r+4],["enter",o,i],["exit",o,i],["enter",s,i],["enter",c,i],["exit",c,i],["exit",s,i],n[n.length-2],n[n.length-1],["exit",u,i]];return n.splice(r,n.length-r+1,...h),n}function mA(n,i,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let s=0,c;return h;function h(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(g){if(s>999||g===93&&!c||g===null||g===91||ft(g))return r(g);if(g===93){n.exit("chunkString");const x=n.exit("gfmFootnoteCallString");return o.includes(Fn(u.sliceSerialize(x)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),i):r(g)}return ft(g)||(c=!0),s++,n.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(n.consume(g),s++,m):m(g)}}function pA(n,i,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let s,c=0,h;return p;function p(k){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",y):r(k)}function y(k){if(c>999||k===93&&!h||k===null||k===91||ft(k))return r(k);if(k===93){n.exit("chunkString");const M=n.exit("gfmFootnoteDefinitionLabelString");return s=Fn(u.sliceSerialize(M)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),x}return ft(k)||(h=!0),c++,n.consume(k),k===92?g:y}function g(k){return k===91||k===92||k===93?(n.consume(k),c++,y):y(k)}function x(k){return k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),o.includes(s)||o.push(s),Ze(n,b,"gfmFootnoteDefinitionWhitespace")):r(k)}function b(k){return i(k)}}function gA(n,i,r){return n.check(eu,i,n.attempt(cA,i,r))}function yA(n){n.exit("gfmFootnoteDefinition")}function vA(n,i,r){const u=this;return Ze(n,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=u.events[u.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(s):r(s)}}function bA(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function o(c,h){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let m=p;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[p][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",y,h],["enter",c[m][1],h],["exit",c[m][1],h],["enter",g,h]],b=h.parser.constructs.insideSpan.null;b&&En(x,x.length,0,Vo(b,c.slice(m+1,p),h)),En(x,x.length,0,[["exit",g,h],["enter",c[p][1],h],["exit",c[p][1],h],["exit",y,h]]),En(c,m-1,p-m+3,x),p=m+x.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function s(c,h,p){const m=this.previous,y=this.events;let g=0;return x;function x(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(c.enter("strikethroughSequenceTemporary"),b(k))}function b(k){const M=jr(m);if(k===126)return g>1?p(k):(c.consume(k),g++,b);if(g<2&&!r)return p(k);const _=c.exit("strikethroughSequenceTemporary"),R=jr(k);return _._open=!R||R===2&&!!M,_._close=!M||M===2&&!!R,h(k)}}}class xA{constructor(){this.map=[]}add(i,r,u){SA(this,i,r,u)}consume(i){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];u.push(i.slice()),i.length=0;let o=u.pop();for(;o;){for(const s of o)i.push(s);o=u.pop()}this.map.length=0}}function SA(n,i,r,u){let o=0;if(!(r===0&&u.length===0)){for(;o<n.map.length;){if(n.map[o][0]===i){n.map[o][1]+=r,n.map[o][2].push(...u);return}o+=1}n.map.push([i,r,u])}}function EA(n,i){let r=!1;const u=[];for(;i<n.length;){const o=n[i];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&u.push(n[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[i-1][1].type==="tableDelimiterMarker"){const s=u.length-1;u[s]=u[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return u}function wA(){return{flow:{null:{name:"table",tokenize:kA,resolveAll:CA}}}}function kA(n,i,r){const u=this;let o=0,s=0,c;return h;function h(O){let ie=u.events.length-1;for(;ie>-1;){const se=u.events[ie][1].type;if(se==="lineEnding"||se==="linePrefix")ie--;else break}const P=ie>-1?u.events[ie][1].type:null,ke=P==="tableHead"||P==="tableRow"?G:p;return ke===G&&u.parser.lazy[u.now().line]?r(O):ke(O)}function p(O){return n.enter("tableHead"),n.enter("tableRow"),m(O)}function m(O){return O===124||(c=!0,s+=1),y(O)}function y(O){return O===null?r(O):Ce(O)?s>1?(s=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),b):r(O):Ve(O)?Ze(n,y,"whitespace")(O):(s+=1,c&&(c=!1,o+=1),O===124?(n.enter("tableCellDivider"),n.consume(O),n.exit("tableCellDivider"),c=!0,y):(n.enter("data"),g(O)))}function g(O){return O===null||O===124||ft(O)?(n.exit("data"),y(O)):(n.consume(O),O===92?x:g)}function x(O){return O===92||O===124?(n.consume(O),g):g(O)}function b(O){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(O):(n.enter("tableDelimiterRow"),c=!1,Ve(O)?Ze(n,k,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):k(O))}function k(O){return O===45||O===58?_(O):O===124?(c=!0,n.enter("tableCellDivider"),n.consume(O),n.exit("tableCellDivider"),M):oe(O)}function M(O){return Ve(O)?Ze(n,_,"whitespace")(O):_(O)}function _(O){return O===58?(s+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(O),n.exit("tableDelimiterMarker"),R):O===45?(s+=1,R(O)):O===null||Ce(O)?te(O):oe(O)}function R(O){return O===45?(n.enter("tableDelimiterFiller"),U(O)):oe(O)}function U(O){return O===45?(n.consume(O),U):O===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(O),n.exit("tableDelimiterMarker"),Y):(n.exit("tableDelimiterFiller"),Y(O))}function Y(O){return Ve(O)?Ze(n,te,"whitespace")(O):te(O)}function te(O){return O===124?k(O):O===null||Ce(O)?!c||o!==s?oe(O):(n.exit("tableDelimiterRow"),n.exit("tableHead"),i(O)):oe(O)}function oe(O){return r(O)}function G(O){return n.enter("tableRow"),N(O)}function N(O){return O===124?(n.enter("tableCellDivider"),n.consume(O),n.exit("tableCellDivider"),N):O===null||Ce(O)?(n.exit("tableRow"),i(O)):Ve(O)?Ze(n,N,"whitespace")(O):(n.enter("data"),ne(O))}function ne(O){return O===null||O===124||ft(O)?(n.exit("data"),N(O)):(n.consume(O),O===92?me:ne)}function me(O){return O===92||O===124?(n.consume(O),ne):ne(O)}}function CA(n,i){let r=-1,u=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],h=!1,p=0,m,y,g;const x=new xA;for(;++r<n.length;){const b=n[r],k=b[1];b[0]==="enter"?k.type==="tableHead"?(h=!1,p!==0&&(Oy(x,i,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},x.add(r,0,[["enter",m,i]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(u=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],h&&(h=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},x.add(r,0,[["enter",y,i]])),o=k.type==="tableDelimiterRow"?2:y?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(u=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=bo(x,i,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):k.type==="tableCellDivider"&&(u?u=!1:(s[1]!==0&&(c[0]=c[1],g=bo(x,i,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):k.type==="tableHead"?(h=!0,p=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=r,s[1]!==0?(c[0]=c[1],g=bo(x,i,s,o,r,g)):c[1]!==0&&(g=bo(x,i,c,o,r,g)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Oy(x,i,p,m,y),x.consume(i.events),r=-1;++r<i.events.length;){const b=i.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=EA(i.events,r))}return n}function bo(n,i,r,u,o,s){const c=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",h="tableContent";r[0]!==0&&(s.end=Object.assign({},Rr(i.events,r[0])),n.add(r[0],0,[["exit",s,i]]));const p=Rr(i.events,r[1]);if(s={type:c,start:Object.assign({},p),end:Object.assign({},p)},n.add(r[1],0,[["enter",s,i]]),r[2]!==0){const m=Rr(i.events,r[2]),y=Rr(i.events,r[3]),g={type:h,start:Object.assign({},m),end:Object.assign({},y)};if(n.add(r[2],0,[["enter",g,i]]),u!==2){const x=i.events[r[2]],b=i.events[r[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,M=r[3]-r[2]-1;n.add(k,M,[])}}n.add(r[3]+1,0,[["exit",g,i]])}return o!==void 0&&(s.end=Object.assign({},Rr(i.events,o)),n.add(o,0,[["exit",s,i]]),s=void 0),s}function Oy(n,i,r,u,o){const s=[],c=Rr(i.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,i])),u.end=Object.assign({},c),s.push(["exit",u,i]),n.add(r+1,0,s)}function Rr(n,i){const r=n[i],u=r[0]==="enter"?"start":"end";return r[1][u]}const TA={name:"tasklistCheck",tokenize:AA};function zA(){return{text:{91:TA}}}function AA(n,i,r){const u=this;return o;function o(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),s)}function s(p){return ft(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):r(p)}function h(p){return Ce(p)?i(p):Ve(p)?n.check({tokenize:MA},i,r)(p):r(p)}}function MA(n,i,r){return Ze(n,u,"whitespace");function u(o){return o===null?r(o):i(o)}}function DA(n){return Rv([tA(),fA(),bA(n),wA(),zA()])}const RA={};function NA(n){const i=this,r=n||RA,u=i.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),s=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),c=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(DA(r)),s.push(Pz()),c.push($z(r))}function _o({children:n,className:i}){return E.jsx("div",{className:ct("md-prose",i),children:E.jsx(bT,{remarkPlugins:[NA],children:n})})}function jy(){const{capability:n}=$f(),{snapshot:i}=Qi(),r=(i==null?void 0:i.specs)??[];return E.jsxs("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-[220px_1fr]",children:[E.jsxs("nav",{className:"lg:sticky lg:top-20 lg:self-start",children:[E.jsx("h2",{className:"text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase",children:"Specifications"}),r.length===0?E.jsx("p",{className:"text-muted-foreground text-xs",children:"No specifications yet."}):E.jsx("ul",{className:"flex flex-col gap-0.5",children:r.map(u=>E.jsx("li",{children:E.jsx(So,{to:`/specs/${encodeURIComponent(u.id)}`,className:({isActive:o})=>ct("block rounded-md px-2.5 py-1.5 font-mono text-sm transition-colors",o?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/40"),children:u.title})},u.id))})]}),E.jsx("main",{className:"min-w-0",children:n?E.jsx(_A,{capability:n}):E.jsx(OA,{hasSpecs:r.length>0})})]})}function _A({capability:n}){const{pulse:i}=Qi(),{data:r,error:u,loading:o}=Ho(()=>si.document(`specs/${n}/spec.md`),[n,i]);return o&&!r?E.jsx(nd,{}):u?E.jsx("div",{className:"text-op-removed py-16 text-center text-sm",children:u}):r?E.jsx(_o,{className:"max-w-3xl",children:r.content}):null}function OA({hasSpecs:n}){return E.jsx("div",{className:"border-border text-muted-foreground flex flex-col items-center gap-2 rounded-xl border border-dashed py-24 text-center",children:n?E.jsxs(E.Fragment,{children:[E.jsx(T2,{className:"size-5"}),E.jsx("p",{className:"text-foreground text-sm font-medium",children:"Select a capability"}),E.jsx("p",{className:"max-w-xs text-xs",children:"Choose a specification from the sidebar to read it here."})]}):E.jsxs(E.Fragment,{children:[E.jsx(R2,{className:"size-5"}),E.jsx("p",{className:"text-foreground text-sm font-medium",children:"No specifications yet"}),E.jsx("p",{className:"max-w-xs text-xs",children:"Specs are the living truth. They'll show once a change is archived."})]})})}function jA(n){const i=[];n.name&&i.push(`#### ${n.name}`),n.text&&i.push(n.text);for(const r of n.scenarios)r.rawText.trim()&&i.push(r.rawText.trim());return i.join(`
|
|
251
|
+
|
|
252
|
+
`)}function E1({requirement:n,accent:i,className:r}){return E.jsx("div",{className:ct("py-1",i?"pl-4":void 0,r),style:i?{borderLeft:`2px solid ${i}`}:void 0,children:E.jsx(_o,{children:jA(n)})})}const LA=mv("inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground border-border",added:"border-transparent bg-op-added-soft text-op-added [--tw-text-opacity:1]",modified:"border-transparent bg-op-modified-soft text-op-modified",removed:"border-transparent bg-op-removed-soft text-op-removed"}},defaultVariants:{variant:"default"}});function w1({className:n,variant:i,...r}){return E.jsx("span",{className:ct(LA({variant:i}),n),...r})}function UA({value:n,options:i,onChange:r,className:u}){return E.jsx("div",{role:"tablist",className:ct("bg-secondary inline-flex items-center gap-0.5 rounded-lg p-0.5",u),children:i.map(o=>{const s=o.value===n;return E.jsx("button",{role:"tab","aria-selected":s,onClick:()=>r(o.value),className:ct("rounded-md px-3 py-1 text-xs font-medium transition-colors",s?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:o.label},o.value)})})}const BA=[{value:"current",label:"Current"},{value:"proposed",label:"Proposed"},{value:"sidebyside",label:"Side-by-side"}];function HA({changeId:n,revision:i}){const r=Ho(()=>si.deltas(n),[n,i]),[u,o]=I.useState("sidebyside"),s=I.useMemo(()=>{var g;return[...new Set((((g=r.data)==null?void 0:g.deltas)??[]).map(x=>x.spec))]},[r.data]),[c,h]=I.useState(null),p=c&&s.includes(c)?c:s[0]??null;if(r.loading&&!r.data)return E.jsx(Ly,{children:E.jsx($a,{className:"size-5 animate-spin"})});if(r.error)return E.jsx(Ly,{children:E.jsx("span",{className:"text-op-removed text-sm",children:r.error})});const m=r.data;return!m||m.deltas.length===0?E.jsx(Ed,{title:"No proposed spec changes",hint:"This change doesn't alter any specification."}):E.jsxs("div",{className:"flex flex-col gap-4",children:[E.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[E.jsx(D2,{className:"text-muted-foreground size-4"}),E.jsx("h1",{className:"font-display text-xl font-semibold",children:m.title}),E.jsxs("span",{className:"text-muted-foreground text-sm tabular-nums",children:["· ",m.deltaCount," delta",m.deltaCount===1?"":"s"]}),E.jsx(UA,{className:"ml-auto",value:u,options:BA,onChange:o})]}),s.length>1&&E.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.map(y=>E.jsx("button",{onClick:()=>h(y),className:ct("rounded-md border px-2.5 py-1 font-mono text-xs transition-colors",y===p?"border-ring bg-accent":"border-border text-muted-foreground hover:bg-accent/40"),children:y},y))}),p&&E.jsx(qA,{specId:p,revision:i,mode:u,deltas:m.deltas.filter(y=>y.spec===p)})]})}function qA({specId:n,revision:i,mode:r,deltas:u}){const o=r==="current"||r==="sidebyside",s=r==="proposed"||r==="sidebyside";return E.jsxs("div",{className:ct("grid grid-cols-1 gap-6",r==="sidebyside"&&"lg:grid-cols-2"),children:[o&&E.jsx(VA,{specId:n,revision:i}),s&&E.jsx(YA,{specId:n,deltas:u})]})}function VA({specId:n,revision:i}){const r=Ho(()=>si.spec(n),[n,i]);return E.jsx(k1,{title:"Current spec",subtitle:n,badge:r.data?`${r.data.requirements.length} req`:void 0,children:r.loading&&!r.data?E.jsx($a,{className:"text-muted-foreground size-4 animate-spin"}):r.error||!r.data?E.jsx(Ed,{title:"New capability",hint:`No current spec for “${n}” — this change introduces it.`,compact:!0}):r.data.requirements.map((u,o)=>E.jsx(E1,{requirement:u},o))})}function YA({specId:n,deltas:i}){const r=tE.map(u=>({op:u,items:i.filter(o=>o.operation===u)})).filter(u=>u.items.length>0);return E.jsx(k1,{title:"Proposed changes",subtitle:n,badge:`${i.length}`,children:r.length===0?E.jsx(Ed,{title:"No deltas for this spec",hint:"This change leaves this spec unchanged.",compact:!0}):r.map(u=>E.jsxs("div",{className:"flex flex-col gap-1",children:[E.jsx(w1,{variant:nE(u.op),children:u.op}),u.items.map((o,s)=>o.requirement?E.jsx(E1,{requirement:o.requirement,accent:Xg(u.op)},s):E.jsx("p",{className:"text-muted-foreground border-l-2 pl-4 text-sm",style:{borderColor:Xg(u.op)},children:o.description},s))]},u.op))})}function k1({title:n,subtitle:i,badge:r,children:u}){return E.jsxs("div",{className:"flex flex-col gap-3",children:[E.jsxs("div",{className:"flex items-baseline gap-2",children:[E.jsx("h2",{className:"text-sm font-semibold",children:n}),E.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:i}),r&&E.jsx("span",{className:"text-muted-foreground ml-auto text-xs tabular-nums",children:r})]}),E.jsx("div",{className:"flex flex-col gap-4",children:u})]})}function Ly({children:n}){return E.jsx("div",{className:"text-muted-foreground flex justify-center py-16",children:n})}function Ed({title:n,hint:i,compact:r}){return E.jsxs("div",{className:ct("border-border text-muted-foreground flex flex-col items-center gap-2 rounded-xl border border-dashed text-center",r?"py-8":"py-16"),children:[E.jsx(C2,{className:"size-5"}),E.jsx("p",{className:"text-foreground text-sm font-medium",children:n}),E.jsx("p",{className:"max-w-xs text-xs",children:i})]})}function GA(){const{name:n}=$f(),{pulse:i}=Qi();return n?E.jsxs("div",{children:[E.jsx(ld,{to:"/board"}),E.jsx(HA,{changeId:n,revision:i})]}):E.jsx(Wf,{to:"/board",replace:!0})}function XA({archived:n,onOpen:i}){return E.jsxs("div",{className:"flex flex-col gap-4",children:[E.jsxs("div",{className:"flex items-baseline justify-between",children:[E.jsx("h1",{className:"font-display text-xl font-semibold",children:"Archive"}),E.jsx("span",{className:"text-muted-foreground text-sm tabular-nums",children:n.length})]}),n.length===0?E.jsxs("div",{className:"border-border text-muted-foreground flex flex-col items-center gap-2 rounded-xl border border-dashed py-16 text-center",children:[E.jsx(Ao,{className:"size-5"}),E.jsx("p",{className:"text-foreground text-sm font-medium",children:"Nothing archived yet"}),E.jsxs("p",{className:"max-w-xs text-xs",children:["Completed changes moved to"," ",E.jsx("code",{className:"font-mono",children:"changes/archive/"})," appear here."]})]}):E.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",children:n.map(r=>E.jsx(Za,{role:"button",tabIndex:0,onClick:()=>i(r.id),onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),i(r.id))},className:"hover:border-ring/60 cursor-pointer transition-colors hover:shadow-md",children:E.jsxs(Ka,{className:"flex flex-col gap-3 py-4",children:[E.jsxs("div",{className:"flex items-start justify-between gap-2",children:[E.jsx("span",{className:"font-mono text-sm",children:r.name}),E.jsx(Ao,{className:"text-muted-foreground size-4 shrink-0"})]}),E.jsxs("div",{className:"flex items-center justify-between text-xs",children:[E.jsx("span",{className:"text-muted-foreground",children:r.archivedDate??"—"}),E.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[r.tasks.completed,"/",r.tasks.total," tasks"]})]}),E.jsx(td,{value:r.tasks.completed,max:r.tasks.total})]})},r.id))})]})}function QA(){const n=Uo(),{snapshot:i}=Qi();return i?E.jsxs("div",{children:[E.jsx(ld,{to:"/board"}),E.jsx(XA,{archived:i.archived,onOpen:r=>n(`/archive/${encodeURIComponent(r)}`)})]}):E.jsx(nd,{})}const FA={proposal:"Proposal",design:"Design",tasks:"Tasks"};function ZA({id:n,revision:i}){const{data:r,error:u,loading:o}=Ho(()=>si.archived(n),[n,i]);return o&&!r?E.jsx("div",{className:"text-muted-foreground flex justify-center py-16",children:E.jsx($a,{className:"size-5 animate-spin"})}):u?E.jsx("div",{className:"text-op-removed py-16 text-center text-sm",children:u}):r?E.jsxs("div",{className:"mx-auto flex max-w-3xl flex-col gap-8",children:[E.jsxs("header",{className:"flex flex-col gap-2",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("h1",{className:"font-display text-2xl font-semibold",children:r.name}),E.jsxs(w1,{variant:"secondary",className:"gap-1",children:[E.jsx(N2,{className:"size-3"})," archived"]})]}),E.jsxs("p",{className:"text-muted-foreground text-xs",children:[r.archivedDate??"—"," · ",r.tasks.completed,"/",r.tasks.total," ","tasks"]})]}),r.artifacts.map(s=>E.jsx(Uy,{title:FA[s.id]??s.id,children:E.jsx(_o,{children:s.content})},s.id)),r.deltas.length>0&&E.jsx(Uy,{title:"Delta specs",children:E.jsx("div",{className:"flex flex-col gap-6",children:r.deltas.map(s=>E.jsxs("div",{children:[E.jsx("p",{className:"text-muted-foreground mb-1 font-mono text-xs",children:s.spec}),E.jsx(_o,{children:s.content})]},s.spec))})})]}):null}function Uy({title:n,children:i,className:r}){return E.jsxs("section",{className:ct("flex flex-col gap-2",r),children:[E.jsx("h2",{className:"text-muted-foreground border-border border-b pb-1 text-xs font-semibold tracking-wide uppercase",children:n}),i]})}function KA(){const{id:n}=$f(),{pulse:i}=Qi();return n?E.jsxs("div",{children:[E.jsx(ld,{to:"/archive",label:"Archive"}),E.jsx(ZA,{id:n,revision:i})]}):E.jsx(Wf,{to:"/archive",replace:!0})}const IA=pS([{path:"/",element:E.jsx($2,{}),children:[{index:!0,element:E.jsx(Wf,{to:"/board",replace:!0})},{path:"board",element:E.jsx(oE,{})},{path:"specs",element:E.jsx(jy,{})},{path:"specs/:capability",element:E.jsx(jy,{})},{path:"changes/:name",element:E.jsx(GA,{})},{path:"archive",element:E.jsx(QA,{})},{path:"archive/:id",element:E.jsx(KA,{})}]}]);function JA(){return E.jsx(wS,{router:IA})}Xb.createRoot(document.getElementById("root")).render(E.jsx(I.StrictMode,{children:E.jsx(JA,{})}));
|