@coralai/sps-cli 0.46.1 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,290 +0,0 @@
1
- var Y_=Object.defineProperty;var Ub=e=>{throw TypeError(e)};var Q_=(e,a,i)=>a in e?Y_(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i;var Bb=(e,a,i)=>Q_(e,typeof a!="symbol"?a+"":a,i),dd=(e,a,i)=>a.has(e)||Ub("Cannot "+i);var U=(e,a,i)=>(dd(e,a,"read from private field"),i?i.call(e):a.get(e)),Ce=(e,a,i)=>a.has(e)?Ub("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(e):a.set(e,i),pe=(e,a,i,l)=>(dd(e,a,"write to private field"),l?l.call(e,i):a.set(e,i),i),Ye=(e,a,i)=>(dd(e,a,"access private method"),i);var Ac=(e,a,i,l)=>({set _(o){pe(e,a,o,i)},get _(){return U(e,a,l)}});(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hd={exports:{}},Ls={};/**
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 jb;function V_(){if(jb)return Ls;jb=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:e,type:l,key:u,ref:o!==void 0?o:null,props:c}}return Ls.Fragment=a,Ls.jsx=i,Ls.jsxs=i,Ls}var Hb;function X_(){return Hb||(Hb=1,hd.exports=V_()),hd.exports}var y=X_(),md={exports:{}},De={};/**
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 Fb;function Z_(){if(Fb)return De;Fb=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function N(O,Q,k){this.props=O,this.context=Q,this.refs=T,this.updater=k||S}N.prototype.isReactComponent={},N.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Q,"setState")},N.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function z(){}z.prototype=N.prototype;function M(O,Q,k){this.props=O,this.context=Q,this.refs=T,this.updater=k||S}var H=M.prototype=new z;H.constructor=M,w(H,N.prototype),H.isPureReactComponent=!0;var K=Array.isArray;function L(){}var G={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function V(O,Q,k){var de=k.ref;return{$$typeof:e,type:O,key:Q,ref:de!==void 0?de:null,props:k}}function C(O,Q){return V(O.type,Q,O.props)}function ae(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function ie(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(k){return Q[k]})}var ge=/\/+/g;function le(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?ie(""+O.key):Q.toString(36)}function te(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(L,L):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function F(O,Q,k,de,we){var ve=typeof O;(ve==="undefined"||ve==="boolean")&&(O=null);var Be=!1;if(O===null)Be=!0;else switch(ve){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(O.$$typeof){case e:case a:Be=!0;break;case b:return Be=O._init,F(Be(O._payload),Q,k,de,we)}}if(Be)return we=we(O),Be=de===""?"."+le(O,0):de,K(we)?(k="",Be!=null&&(k=Be.replace(ge,"$&/")+"/"),F(we,Q,k,"",function(Gt){return Gt})):we!=null&&(ae(we)&&(we=C(we,k+(we.key==null||O&&O.key===we.key?"":(""+we.key).replace(ge,"$&/")+"/")+Be)),Q.push(we)),1;Be=0;var rt=de===""?".":de+":";if(K(O))for(var nt=0;nt<O.length;nt++)de=O[nt],ve=rt+le(de,nt),Be+=F(de,Q,k,ve,we);else if(nt=x(O),typeof nt=="function")for(O=nt.call(O),nt=0;!(de=O.next()).done;)de=de.value,ve=rt+le(de,nt++),Be+=F(de,Q,k,ve,we);else if(ve==="object"){if(typeof O.then=="function")return F(te(O),Q,k,de,we);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Be}function re(O,Q,k){if(O==null)return O;var de=[],we=0;return F(O,de,"","",function(ve){return Q.call(k,ve,we++)}),de}function oe(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(k){(O._status===0||O._status===-1)&&(O._status=1,O._result=k)},function(k){(O._status===0||O._status===-1)&&(O._status=2,O._result=k)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var _e=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},A={map:re,forEach:function(O,Q,k){re(O,function(){Q.apply(this,arguments)},k)},count:function(O){var Q=0;return re(O,function(){Q++}),Q},toArray:function(O){return re(O,function(Q){return Q})||[]},only:function(O){if(!ae(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return De.Activity=g,De.Children=A,De.Component=N,De.Fragment=i,De.Profiler=o,De.PureComponent=M,De.StrictMode=l,De.Suspense=p,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,De.__COMPILER_RUNTIME={__proto__:null,c:function(O){return G.H.useMemoCache(O)}},De.cache=function(O){return function(){return O.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(O,Q,k){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var de=w({},O.props),we=O.key;if(Q!=null)for(ve in Q.key!==void 0&&(we=""+Q.key),Q)!X.call(Q,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Q.ref===void 0||(de[ve]=Q[ve]);var ve=arguments.length-2;if(ve===1)de.children=k;else if(1<ve){for(var Be=Array(ve),rt=0;rt<ve;rt++)Be[rt]=arguments[rt+2];de.children=Be}return V(O.type,we,de)},De.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},De.createElement=function(O,Q,k){var de,we={},ve=null;if(Q!=null)for(de in Q.key!==void 0&&(ve=""+Q.key),Q)X.call(Q,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(we[de]=Q[de]);var Be=arguments.length-2;if(Be===1)we.children=k;else if(1<Be){for(var rt=Array(Be),nt=0;nt<Be;nt++)rt[nt]=arguments[nt+2];we.children=rt}if(O&&O.defaultProps)for(de in Be=O.defaultProps,Be)we[de]===void 0&&(we[de]=Be[de]);return V(O,ve,we)},De.createRef=function(){return{current:null}},De.forwardRef=function(O){return{$$typeof:d,render:O}},De.isValidElement=ae,De.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:oe}},De.memo=function(O,Q){return{$$typeof:h,type:O,compare:Q===void 0?null:Q}},De.startTransition=function(O){var Q=G.T,k={};G.T=k;try{var de=O(),we=G.S;we!==null&&we(k,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(L,_e)}catch(ve){_e(ve)}finally{Q!==null&&k.types!==null&&(Q.types=k.types),G.T=Q}},De.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},De.use=function(O){return G.H.use(O)},De.useActionState=function(O,Q,k){return G.H.useActionState(O,Q,k)},De.useCallback=function(O,Q){return G.H.useCallback(O,Q)},De.useContext=function(O){return G.H.useContext(O)},De.useDebugValue=function(){},De.useDeferredValue=function(O,Q){return G.H.useDeferredValue(O,Q)},De.useEffect=function(O,Q){return G.H.useEffect(O,Q)},De.useEffectEvent=function(O){return G.H.useEffectEvent(O)},De.useId=function(){return G.H.useId()},De.useImperativeHandle=function(O,Q,k){return G.H.useImperativeHandle(O,Q,k)},De.useInsertionEffect=function(O,Q){return G.H.useInsertionEffect(O,Q)},De.useLayoutEffect=function(O,Q){return G.H.useLayoutEffect(O,Q)},De.useMemo=function(O,Q){return G.H.useMemo(O,Q)},De.useOptimistic=function(O,Q){return G.H.useOptimistic(O,Q)},De.useReducer=function(O,Q,k){return G.H.useReducer(O,Q,k)},De.useRef=function(O){return G.H.useRef(O)},De.useState=function(O){return G.H.useState(O)},De.useSyncExternalStore=function(O,Q,k){return G.H.useSyncExternalStore(O,Q,k)},De.useTransition=function(){return G.H.useTransition()},De.version="19.2.5",De}var qb;function xh(){return qb||(qb=1,md.exports=Z_()),md.exports}var B=xh(),pd={exports:{}},zs={},gd={exports:{}},bd={};/**
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 Pb;function W_(){return Pb||(Pb=1,(function(e){function a(F,re){var oe=F.length;F.push(re);e:for(;0<oe;){var _e=oe-1>>>1,A=F[_e];if(0<o(A,re))F[_e]=re,F[oe]=A,oe=_e;else break e}}function i(F){return F.length===0?null:F[0]}function l(F){if(F.length===0)return null;var re=F[0],oe=F.pop();if(oe!==re){F[0]=oe;e:for(var _e=0,A=F.length,O=A>>>1;_e<O;){var Q=2*(_e+1)-1,k=F[Q],de=Q+1,we=F[de];if(0>o(k,oe))de<A&&0>o(we,k)?(F[_e]=we,F[de]=oe,_e=de):(F[_e]=k,F[Q]=oe,_e=Q);else if(de<A&&0>o(we,oe))F[_e]=we,F[de]=oe,_e=de;else break e}}return re}function o(F,re){var oe=F.sortIndex-re.sortIndex;return oe!==0?oe:F.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var p=[],h=[],b=1,g=null,E=3,x=!1,S=!1,w=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function H(F){for(var re=i(h);re!==null;){if(re.callback===null)l(h);else if(re.startTime<=F)l(h),re.sortIndex=re.expirationTime,a(p,re);else break;re=i(h)}}function K(F){if(w=!1,H(F),!S)if(i(p)!==null)S=!0,L||(L=!0,ie());else{var re=i(h);re!==null&&te(K,re.startTime-F)}}var L=!1,G=-1,X=5,V=-1;function C(){return T?!0:!(e.unstable_now()-V<X)}function ae(){if(T=!1,L){var F=e.unstable_now();V=F;var re=!0;try{e:{S=!1,w&&(w=!1,z(G),G=-1),x=!0;var oe=E;try{t:{for(H(F),g=i(p);g!==null&&!(g.expirationTime>F&&C());){var _e=g.callback;if(typeof _e=="function"){g.callback=null,E=g.priorityLevel;var A=_e(g.expirationTime<=F);if(F=e.unstable_now(),typeof A=="function"){g.callback=A,H(F),re=!0;break t}g===i(p)&&l(p),H(F)}else l(p);g=i(p)}if(g!==null)re=!0;else{var O=i(h);O!==null&&te(K,O.startTime-F),re=!1}}break e}finally{g=null,E=oe,x=!1}re=void 0}}finally{re?ie():L=!1}}}var ie;if(typeof M=="function")ie=function(){M(ae)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,le=ge.port2;ge.port1.onmessage=ae,ie=function(){le.postMessage(null)}}else ie=function(){N(ae,0)};function te(F,re){G=N(function(){F(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(F){switch(E){case 1:case 2:case 3:var re=3;break;default:re=E}var oe=E;E=re;try{return F()}finally{E=oe}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(F,re){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var oe=E;E=F;try{return re()}finally{E=oe}},e.unstable_scheduleCallback=function(F,re,oe){var _e=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?_e+oe:_e):oe=_e,F){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=oe+A,F={id:b++,callback:re,priorityLevel:F,startTime:oe,expirationTime:A,sortIndex:-1},oe>_e?(F.sortIndex=oe,a(h,F),i(p)===null&&F===i(h)&&(w?(z(G),G=-1):w=!0,te(K,oe-_e))):(F.sortIndex=A,a(p,F),S||x||(S=!0,L||(L=!0,ie()))),F},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(F){var re=E;return function(){var oe=E;E=re;try{return F.apply(this,arguments)}finally{E=oe}}}})(bd)),bd}var Gb;function J_(){return Gb||(Gb=1,gd.exports=W_()),gd.exports}var yd={exports:{}},ln={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Kb;function eS(){if(Kb)return ln;Kb=1;var e=xh();function a(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,h,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:p,containerInfo:h,implementation:b}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ln.createPortal=function(p,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return c(p,h,null,b)},ln.flushSync=function(p){var h=u.T,b=l.p;try{if(u.T=null,l.p=2,p)return p()}finally{u.T=h,l.p=b,l.d.f()}},ln.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(p,h))},ln.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},ln.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var b=h.as,g=d(b,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:x}):b==="script"&&l.d.X(p,{crossOrigin:g,integrity:E,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ln.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=d(h.as,h.crossOrigin);l.d.M(p,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(p)},ln.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,g=d(b,h.crossOrigin);l.d.L(p,b,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ln.preloadModule=function(p,h){if(typeof p=="string")if(h){var b=d(h.as,h.crossOrigin);l.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(p)},ln.requestFormReset=function(p){l.d.r(p)},ln.unstable_batchedUpdates=function(p,h){return p(h)},ln.useFormState=function(p,h,b){return u.H.useFormState(p,h,b)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.5",ln}var $b;function tS(){if($b)return yd.exports;$b=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),yd.exports=eS(),yd.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 Yb;function nS(){if(Yb)return zs;Yb=1;var e=J_(),a=xh(),i=tS();function l(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var n=t,r=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(r=n.return),t=n.return;while(t)}return n.tag===3?r:null}function u(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function d(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function p(t){if(c(t)!==t)throw Error(l(188))}function h(t){var n=t.alternate;if(!n){if(n=c(t),n===null)throw Error(l(188));return n!==t?null:t}for(var r=t,s=n;;){var f=r.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){r=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===r)return p(f),t;if(m===s)return p(f),n;m=m.sibling}throw Error(l(188))}if(r.return!==s.return)r=f,s=m;else{for(var v=!1,_=f.child;_;){if(_===r){v=!0,r=f,s=m;break}if(_===s){v=!0,s=f,r=m;break}_=_.sibling}if(!v){for(_=m.child;_;){if(_===r){v=!0,r=m,s=f;break}if(_===s){v=!0,s=m,r=f;break}_=_.sibling}if(!v)throw Error(l(189))}}if(r.alternate!==s)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?t:n}function b(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=b(t),n!==null)return n;t=t.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function ie(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ge?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case K:return"Suspense";case L:return"SuspenseList";case V:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case M:return t.displayName||"Context";case z:return(t._context.displayName||"Context")+".Consumer";case H:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return n=t.displayName||null,n!==null?n:le(t.type)||"Memo";case X:n=t._payload,t=t._init;try{return le(t(n))}catch{}}return null}var te=Array.isArray,F=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},_e=[],A=-1;function O(t){return{current:t}}function Q(t){0>A||(t.current=_e[A],_e[A]=null,A--)}function k(t,n){A++,_e[A]=t.current,t.current=n}var de=O(null),we=O(null),ve=O(null),Be=O(null);function rt(t,n){switch(k(ve,n),k(we,t),k(de,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?lb(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=lb(n),t=sb(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(de),k(de,t)}function nt(){Q(de),Q(we),Q(ve)}function Gt(t){t.memoizedState!==null&&k(Be,t);var n=de.current,r=sb(n,t.type);n!==r&&(k(we,t),k(de,r))}function Rn(t){we.current===t&&(Q(de),Q(we)),Be.current===t&&(Q(Be),Rs._currentValue=oe)}var Oa,ii;function On(t){if(Oa===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Oa=n&&n[1]||"",ii=-1<r.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Oa+t+ii}var ba=!1;function Qe(t,n){if(!t||ba)return"";ba=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Y){var $=Y}Reflect.construct(t,[],ne)}else{try{ne.call()}catch(Y){$=Y}t.call(ne.prototype)}}else{try{throw Error()}catch(Y){$=Y}(ne=t())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(Y){if(Y&&$&&typeof Y.stack=="string")return[Y.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),v=m[0],_=m[1];if(v&&_){var R=v.split(`
44
- `),P=_.split(`
45
- `);for(f=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;if(s===R.length||f===P.length)for(s=R.length-1,f=P.length-1;1<=s&&0<=f&&R[s]!==P[f];)f--;for(;1<=s&&0<=f;s--,f--)if(R[s]!==P[f]){if(s!==1||f!==1)do if(s--,f--,0>f||R[s]!==P[f]){var W=`
46
- `+R[s].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),W}while(1<=s&&0<=f);break}}}finally{ba=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?On(r):""}function oa(t,n){switch(t.tag){case 26:case 27:case 5:return On(t.type);case 16:return On("Lazy");case 13:return t.child!==n&&n!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return Qe(t.type,!1);case 11:return Qe(t.type.render,!1);case 1:return Qe(t.type,!0);case 31:return On("Activity");default:return""}}function $n(t){try{var n="",r=null;do n+=oa(t,r),r=t,t=t.return;while(t);return n}catch(s){return`
47
- Error generating stack: `+s.message+`
48
- `+s.stack}}var ya=Object.prototype.hasOwnProperty,Ma=e.unstable_scheduleCallback,Ki=e.unstable_cancelCallback,Hl=e.unstable_shouldYield,Ar=e.unstable_requestPaint,kt=e.unstable_now,Cr=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,Te=e.unstable_NormalPriority,je=e.unstable_LowPriority,Je=e.unstable_IdlePriority,un=e.log,ca=e.unstable_setDisableYieldValue,Qt=null,At=null;function nn(t){if(typeof un=="function"&&ca(t),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Qt,t)}catch{}}var lt=Math.clz32?Math.clz32:fo,va=Math.log,fn=Math.LN2;function fo(t){return t>>>=0,t===0?32:31-(va(t)/fn|0)|0}var $i=256,Rr=262144,Yi=4194304;function bn(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function D(t,n,r){var s=t.pendingLanes;if(s===0)return 0;var f=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var _=s&134217727;return _!==0?(s=_&~m,s!==0?f=bn(s):(v&=_,v!==0?f=bn(v):r||(r=_&~t,r!==0&&(f=bn(r))))):(_=s&~m,_!==0?f=bn(_):v!==0?f=bn(v):r||(r=s&~t,r!==0&&(f=bn(r)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,r=n&-n,m>=r||m===32&&(r&4194048)!==0)?n:f}function J(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function he(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Me(){var t=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),t}function xt(t){for(var n=[],r=0;31>r;r++)n.push(t);return n}function pt(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ye(t,n,r,s,f,m){var v=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var _=t.entanglements,R=t.expirationTimes,P=t.hiddenUpdates;for(r=v&~r;0<r;){var W=31-lt(r),ne=1<<W;_[W]=0,R[W]=-1;var $=P[W];if($!==null)for(P[W]=null,W=0;W<$.length;W++){var Y=$[W];Y!==null&&(Y.lane&=-536870913)}r&=~ne}s!==0&&me(t,s,0),m!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~n))}function me(t,n,r){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-lt(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|r&261930}function Oe(t,n){var r=t.entangledLanes|=n;for(t=t.entanglements;r;){var s=31-lt(r),f=1<<s;f&n|t[s]&n&&(t[s]|=n),r&=~f}}function Mt(t,n){var r=n&-n;return r=(r&42)!==0?1:St(r),(r&(t.suspendedLanes|n))!==0?0:r}function St(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Da(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Or(){var t=re.p;return t!==0?t:(t=window.event,t===void 0?32:Rb(t.type))}function Mr(t,n){var r=re.p;try{return re.p=t,n()}finally{re.p=r}}var xa=Math.random().toString(36).slice(2),Dt="__reactFiber$"+xa,an="__reactProps$"+xa,ri="__reactContainer$"+xa,Fl="__reactEvents$"+xa,ho="__reactListeners$"+xa,Dr="__reactHandles$"+xa,mo="__reactResources$"+xa,Qi="__reactMarker$"+xa;function ql(t){delete t[Dt],delete t[an],delete t[Fl],delete t[ho],delete t[Dr]}function dn(t){var n=t[Dt];if(n)return n;for(var r=t.parentNode;r;){if(n=r[ri]||r[Dt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(t=mb(t);t!==null;){if(r=t[Dt])return r;t=mb(t)}return n}t=r,r=t.parentNode}return null}function La(t){if(t=t[Dt]||t[ri]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function li(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function si(t){var n=t[mo];return n||(n=t[mo]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ut(t){t[Qi]=!0}var po=new Set,Vi={};function za(t,n){se(t,n),se(t+"Capture",n)}function se(t,n){for(Vi[t]=n,t=0;t<n.length;t++)po.add(n[t])}var Se=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]*$"),He={},st={};function Lt(t){return ya.call(st,t)?!0:ya.call(He,t)?!1:Se.test(t)?st[t]=!0:(He[t]=!0,!1)}function rn(t,n,r){if(Lt(n))if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+r)}}function Mn(t,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+r)}}function yn(t,n,r,s){if(s===null)t.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttributeNS(n,r,""+s)}}function yt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dn(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function go(t,n,r){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,m=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(v){r=""+v,m.call(this,v)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(v){r=""+v},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Lr(t){if(!t._valueTracker){var n=Dn(t)?"checked":"value";t._valueTracker=go(t,n,""+t[n])}}function Pl(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var r=n.getValue(),s="";return t&&(s=Dn(t)?t.checked?"true":"false":t.value),t=s,t!==r?(n.setValue(t),!0):!1}function zr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var uu=/[\n"\\]/g;function vn(t){return t.replace(uu,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Gl(t,n,r,s,f,m,v,_){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),n!=null?v==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+yt(n)):t.value!==""+yt(n)&&(t.value=""+yt(n)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),n!=null?Ir(t,v,yt(n)):r!=null?Ir(t,v,yt(r)):s!=null&&t.removeAttribute("value"),f==null&&m!=null&&(t.defaultChecked=!!m),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+yt(_):t.removeAttribute("name")}function Xi(t,n,r,s,f,m,v,_){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),n!=null||r!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){Lr(t);return}r=r!=null?""+yt(r):"",n=n!=null?""+yt(n):r,_||n===t.value||(t.value=n),t.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=_?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Lr(t)}function Ir(t,n,r){n==="number"&&zr(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function Vt(t,n,r,s){if(t=t.options,n){n={};for(var f=0;f<r.length;f++)n["$"+r[f]]=!0;for(r=0;r<t.length;r++)f=n.hasOwnProperty("$"+t[r].value),t[r].selected!==f&&(t[r].selected=f),f&&s&&(t[r].defaultSelected=!0)}else{for(r=""+yt(r),n=null,f=0;f<t.length;f++){if(t[f].value===r){t[f].selected=!0,s&&(t[f].defaultSelected=!0);return}n!==null||t[f].disabled||(n=t[f])}n!==null&&(n.selected=!0)}}function bo(t,n,r){if(n!=null&&(n=""+yt(n),n!==t.value&&(t.value=n),r==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=r!=null?""+yt(r):""}function Ur(t,n,r,s){if(n==null){if(s!=null){if(r!=null)throw Error(l(92));if(te(s)){if(1<s.length)throw Error(l(93));s=s[0]}r=s}r==null&&(r=""),n=r}r=yt(n),t.defaultValue=r,s=t.textContent,s===r&&s!==""&&s!==null&&(t.value=s),Lr(t)}function Re(t,n){if(n){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=n;return}}t.textContent=n}var yo=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 Bt(t,n,r){var s=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,r):typeof r!="number"||r===0||yo.has(n)?n==="float"?t.cssFloat=r:t[n]=(""+r).trim():t[n]=r+"px"}function ot(t,n,r){if(n!=null&&typeof n!="object")throw Error(l(62));if(t=t.style,r!=null){for(var s in r)!r.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&r[f]!==s&&Bt(t,f,s)}else for(var m in n)n.hasOwnProperty(m)&&Bt(t,m,n[m])}function oi(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ia=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"]]),Kl=/^[\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 ci(t){return Kl.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fe(){}var xe=null;function Le(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ge=null,Tt=null;function Yn(t){var n=La(t);if(n&&(t=n.stateNode)){var r=t[an]||null;e:switch(t=n.stateNode,n.type){case"input":if(Gl(t,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+vn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var s=r[n];if(s!==t&&s.form===t.form){var f=s[an]||null;if(!f)throw Error(l(90));Gl(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<r.length;n++)s=r[n],s.form===t.form&&Pl(s)}break e;case"textarea":bo(t,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&Vt(t,!!r.multiple,n,!1)}}}var $l=!1;function vo(t,n,r){if($l)return t(n,r);$l=!0;try{var s=t(n);return s}finally{if($l=!1,(Ge!==null||Tt!==null)&&(lc(),Ge&&(n=Ge,t=Tt,Tt=Ge=null,Yn(n),t)))for(n=0;n<t.length;n++)Yn(t[n])}}function Yl(t,n){var r=t.stateNode;if(r===null)return null;var s=r[an]||null;if(s===null)return null;r=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(l(231,n,typeof r));return r}var Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(Ua)try{var Ql={};Object.defineProperty(Ql,"passive",{get:function(){fu=!0}}),window.addEventListener("test",Ql,Ql),window.removeEventListener("test",Ql,Ql)}catch{fu=!1}var ui=null,du=null,xo=null;function sm(){if(xo)return xo;var t,n=du,r=n.length,s,f="value"in ui?ui.value:ui.textContent,m=f.length;for(t=0;t<r&&n[t]===f[t];t++);var v=r-t;for(s=1;s<=v&&n[r-s]===f[m-s];s++);return xo=f.slice(t,1<s?1-s:void 0)}function Eo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function _o(){return!0}function om(){return!1}function xn(t){function n(r,s,f,m,v){this._reactName=r,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(r=t[_],this[_]=r?r(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?_o:om,this.isPropagationStopped=om,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),n}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},So=xn(Zi),Vl=g({},Zi,{view:0,detail:0}),KE=xn(Vl),hu,mu,Xl,wo=g({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Xl&&(Xl&&t.type==="mousemove"?(hu=t.screenX-Xl.screenX,mu=t.screenY-Xl.screenY):mu=hu=0,Xl=t),hu)},movementY:function(t){return"movementY"in t?t.movementY:mu}}),cm=xn(wo),$E=g({},wo,{dataTransfer:0}),YE=xn($E),QE=g({},Vl,{relatedTarget:0}),pu=xn(QE),VE=g({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),XE=xn(VE),ZE=g({},Zi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),WE=xn(ZE),JE=g({},Zi,{data:0}),um=xn(JE),e0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t0={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"},n0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a0(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=n0[t])?!!n[t]:!1}function gu(){return a0}var i0=g({},Vl,{key:function(t){if(t.key){var n=e0[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Eo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?t0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(t){return t.type==="keypress"?Eo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Eo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),r0=xn(i0),l0=g({},wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fm=xn(l0),s0=g({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),o0=xn(s0),c0=g({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),u0=xn(c0),f0=g({},wo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),d0=xn(f0),h0=g({},Zi,{newState:0,oldState:0}),m0=xn(h0),p0=[9,13,27,32],bu=Ua&&"CompositionEvent"in window,Zl=null;Ua&&"documentMode"in document&&(Zl=document.documentMode);var g0=Ua&&"TextEvent"in window&&!Zl,dm=Ua&&(!bu||Zl&&8<Zl&&11>=Zl),hm=" ",mm=!1;function pm(t,n){switch(t){case"keyup":return p0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Br=!1;function b0(t,n){switch(t){case"compositionend":return gm(n);case"keypress":return n.which!==32?null:(mm=!0,hm);case"textInput":return t=n.data,t===hm&&mm?null:t;default:return null}}function y0(t,n){if(Br)return t==="compositionend"||!bu&&pm(t,n)?(t=sm(),xo=du=ui=null,Br=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return dm&&n.locale!=="ko"?null:n.data;default:return null}}var v0={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 bm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!v0[t.type]:n==="textarea"}function ym(t,n,r,s){Ge?Tt?Tt.push(s):Tt=[s]:Ge=s,n=hc(n,"onChange"),0<n.length&&(r=new So("onChange","change",null,r,s),t.push({event:r,listeners:n}))}var Wl=null,Jl=null;function x0(t){eb(t,0)}function No(t){var n=li(t);if(Pl(n))return t}function vm(t,n){if(t==="change")return n}var xm=!1;if(Ua){var yu;if(Ua){var vu="oninput"in document;if(!vu){var Em=document.createElement("div");Em.setAttribute("oninput","return;"),vu=typeof Em.oninput=="function"}yu=vu}else yu=!1;xm=yu&&(!document.documentMode||9<document.documentMode)}function _m(){Wl&&(Wl.detachEvent("onpropertychange",Sm),Jl=Wl=null)}function Sm(t){if(t.propertyName==="value"&&No(Jl)){var n=[];ym(n,Jl,t,Le(t)),vo(x0,n)}}function E0(t,n,r){t==="focusin"?(_m(),Wl=n,Jl=r,Wl.attachEvent("onpropertychange",Sm)):t==="focusout"&&_m()}function _0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return No(Jl)}function S0(t,n){if(t==="click")return No(n)}function w0(t,n){if(t==="input"||t==="change")return No(n)}function N0(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Ln=typeof Object.is=="function"?Object.is:N0;function es(t,n){if(Ln(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var r=Object.keys(t),s=Object.keys(n);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var f=r[s];if(!ya.call(n,f)||!Ln(t[f],n[f]))return!1}return!0}function wm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nm(t,n){var r=wm(t);t=0;for(var s;r;){if(r.nodeType===3){if(s=t+r.textContent.length,t<=n&&s>=n)return{node:r,offset:n-t};t=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wm(r)}}function km(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?km(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Tm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=zr(t.document);n instanceof t.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)t=n.contentWindow;else break;n=zr(t.document)}return n}function xu(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var k0=Ua&&"documentMode"in document&&11>=document.documentMode,jr=null,Eu=null,ts=null,_u=!1;function Am(t,n,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;_u||jr==null||jr!==zr(s)||(s=jr,"selectionStart"in s&&xu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ts&&es(ts,s)||(ts=s,s=hc(Eu,"onSelect"),0<s.length&&(n=new So("onSelect","select",null,n,r),t.push({event:n,listeners:s}),n.target=jr)))}function Wi(t,n){var r={};return r[t.toLowerCase()]=n.toLowerCase(),r["Webkit"+t]="webkit"+n,r["Moz"+t]="moz"+n,r}var Hr={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},Su={},Cm={};Ua&&(Cm=document.createElement("div").style,"AnimationEvent"in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),"TransitionEvent"in window||delete Hr.transitionend.transition);function Ji(t){if(Su[t])return Su[t];if(!Hr[t])return t;var n=Hr[t],r;for(r in n)if(n.hasOwnProperty(r)&&r in Cm)return Su[t]=n[r];return t}var Rm=Ji("animationend"),Om=Ji("animationiteration"),Mm=Ji("animationstart"),T0=Ji("transitionrun"),A0=Ji("transitionstart"),C0=Ji("transitioncancel"),Dm=Ji("transitionend"),Lm=new Map,wu="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(" ");wu.push("scrollEnd");function ua(t,n){Lm.set(t,n),za(n,[t])}var ko=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Qn=[],Fr=0,Nu=0;function To(){for(var t=Fr,n=Nu=Fr=0;n<t;){var r=Qn[n];Qn[n++]=null;var s=Qn[n];Qn[n++]=null;var f=Qn[n];Qn[n++]=null;var m=Qn[n];if(Qn[n++]=null,s!==null&&f!==null){var v=s.pending;v===null?f.next=f:(f.next=v.next,v.next=f),s.pending=f}m!==0&&zm(r,f,m)}}function Ao(t,n,r,s){Qn[Fr++]=t,Qn[Fr++]=n,Qn[Fr++]=r,Qn[Fr++]=s,Nu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function ku(t,n,r,s){return Ao(t,n,r,s),Co(t)}function er(t,n){return Ao(t,null,null,n),Co(t)}function zm(t,n,r){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r);for(var f=!1,m=t.return;m!==null;)m.childLanes|=r,s=m.alternate,s!==null&&(s.childLanes|=r),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(f=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,f&&n!==null&&(f=31-lt(r),t=m.hiddenUpdates,s=t[f],s===null?t[f]=[n]:s.push(n),n.lane=r|536870912),m):null}function Co(t){if(50<Ss)throw Ss=0,If=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var qr={};function R0(t,n,r,s){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zn(t,n,r,s){return new R0(t,n,r,s)}function Tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ba(t,n){var r=t.alternate;return r===null?(r=zn(t.tag,n,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=n,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&65011712,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,n=t.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r.refCleanup=t.refCleanup,r}function Im(t,n){t.flags&=65011714;var r=t.alternate;return r===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,t.type=r.type,n=r.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Ro(t,n,r,s,f,m){var v=0;if(s=t,typeof t=="function")Tu(t)&&(v=1);else if(typeof t=="string")v=z_(t,r,de.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case V:return t=zn(31,r,n,f),t.elementType=V,t.lanes=m,t;case w:return tr(r.children,f,m,n);case T:v=8,f|=24;break;case N:return t=zn(12,r,n,f|2),t.elementType=N,t.lanes=m,t;case K:return t=zn(13,r,n,f),t.elementType=K,t.lanes=m,t;case L:return t=zn(19,r,n,f),t.elementType=L,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case M:v=10;break e;case z:v=9;break e;case H:v=11;break e;case G:v=14;break e;case X:v=16,s=null;break e}v=29,r=Error(l(130,t===null?"null":typeof t,"")),s=null}return n=zn(v,r,n,f),n.elementType=t,n.type=s,n.lanes=m,n}function tr(t,n,r,s){return t=zn(7,t,s,n),t.lanes=r,t}function Au(t,n,r){return t=zn(6,t,null,n),t.lanes=r,t}function Um(t){var n=zn(18,null,null,0);return n.stateNode=t,n}function Cu(t,n,r){return n=zn(4,t.children!==null?t.children:[],t.key,n),n.lanes=r,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Bm=new WeakMap;function Vn(t,n){if(typeof t=="object"&&t!==null){var r=Bm.get(t);return r!==void 0?r:(n={value:t,source:n,stack:$n(n)},Bm.set(t,n),n)}return{value:t,source:n,stack:$n(n)}}var Pr=[],Gr=0,Oo=null,ns=0,Xn=[],Zn=0,fi=null,Ea=1,_a="";function ja(t,n){Pr[Gr++]=ns,Pr[Gr++]=Oo,Oo=t,ns=n}function jm(t,n,r){Xn[Zn++]=Ea,Xn[Zn++]=_a,Xn[Zn++]=fi,fi=t;var s=Ea;t=_a;var f=32-lt(s)-1;s&=~(1<<f),r+=1;var m=32-lt(n)+f;if(30<m){var v=f-f%5;m=(s&(1<<v)-1).toString(32),s>>=v,f-=v,Ea=1<<32-lt(n)+f|r<<f|s,_a=m+t}else Ea=1<<m|r<<f|s,_a=t}function Ru(t){t.return!==null&&(ja(t,1),jm(t,1,0))}function Ou(t){for(;t===Oo;)Oo=Pr[--Gr],Pr[Gr]=null,ns=Pr[--Gr],Pr[Gr]=null;for(;t===fi;)fi=Xn[--Zn],Xn[Zn]=null,_a=Xn[--Zn],Xn[Zn]=null,Ea=Xn[--Zn],Xn[Zn]=null}function Hm(t,n){Xn[Zn++]=Ea,Xn[Zn++]=_a,Xn[Zn++]=fi,Ea=n.id,_a=n.overflow,fi=t}var Xt=null,Et=null,Ve=!1,di=null,Wn=!1,Mu=Error(l(519));function hi(t){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw as(Vn(n,t)),Mu}function Fm(t){var n=t.stateNode,r=t.type,s=t.memoizedProps;switch(n[Dt]=t,n[an]=s,r){case"dialog":qe("cancel",n),qe("close",n);break;case"iframe":case"object":case"embed":qe("load",n);break;case"video":case"audio":for(r=0;r<Ns.length;r++)qe(Ns[r],n);break;case"source":qe("error",n);break;case"img":case"image":case"link":qe("error",n),qe("load",n);break;case"details":qe("toggle",n);break;case"input":qe("invalid",n),Xi(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":qe("invalid",n);break;case"textarea":qe("invalid",n),Ur(n,s.value,s.defaultValue,s.children)}r=s.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||s.suppressHydrationWarning===!0||ib(n.textContent,r)?(s.popover!=null&&(qe("beforetoggle",n),qe("toggle",n)),s.onScroll!=null&&qe("scroll",n),s.onScrollEnd!=null&&qe("scrollend",n),s.onClick!=null&&(n.onclick=fe),n=!0):n=!1,n||hi(t,!0)}function qm(t){for(Xt=t.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Xt=Xt.return}}function Kr(t){if(t!==Xt)return!1;if(!Ve)return qm(t),Ve=!0,!1;var n=t.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=t.type,r=!(r!=="form"&&r!=="button")||Zf(t.type,t.memoizedProps)),r=!r),r&&Et&&hi(t),qm(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=hb(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=hb(t)}else n===27?(n=Et,Ti(t.type)?(t=nd,nd=null,Et=t):Et=n):Et=Xt?ea(t.stateNode.nextSibling):null;return!0}function nr(){Et=Xt=null,Ve=!1}function Du(){var t=di;return t!==null&&(wn===null?wn=t:wn.push.apply(wn,t),di=null),t}function as(t){di===null?di=[t]:di.push(t)}var Lu=O(null),ar=null,Ha=null;function mi(t,n,r){k(Lu,n._currentValue),n._currentValue=r}function Fa(t){t._currentValue=Lu.current,Q(Lu)}function zu(t,n,r){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===r)break;t=t.return}}function Iu(t,n,r,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var m=f.dependencies;if(m!==null){var v=f.child;m=m.firstContext;e:for(;m!==null;){var _=m;m=f;for(var R=0;R<n.length;R++)if(_.context===n[R]){m.lanes|=r,_=m.alternate,_!==null&&(_.lanes|=r),zu(m.return,r,t),s||(v=null);break e}m=_.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(l(341));v.lanes|=r,m=v.alternate,m!==null&&(m.lanes|=r),zu(v,r,t),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===t){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function $r(t,n,r,s){t=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(l(387));if(v=v.memoizedProps,v!==null){var _=f.type;Ln(f.pendingProps.value,v.value)||(t!==null?t.push(_):t=[_])}}else if(f===Be.current){if(v=f.alternate,v===null)throw Error(l(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Rs):t=[Rs])}f=f.return}t!==null&&Iu(n,t,r,s),n.flags|=262144}function Mo(t){for(t=t.firstContext;t!==null;){if(!Ln(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ir(t){ar=t,Ha=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Pm(ar,t)}function Do(t,n){return ar===null&&ir(t),Pm(t,n)}function Pm(t,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},Ha===null){if(t===null)throw Error(l(308));Ha=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Ha=Ha.next=n;return r}var O0=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(r,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(r){return r()})}},M0=e.unstable_scheduleCallback,D0=e.unstable_NormalPriority,jt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uu(){return{controller:new O0,data:new Map,refCount:0}}function is(t){t.refCount--,t.refCount===0&&M0(D0,function(){t.controller.abort()})}var rs=null,Bu=0,Yr=0,Qr=null;function L0(t,n){if(rs===null){var r=rs=[];Bu=0,Yr=qf(),Qr={status:"pending",value:void 0,then:function(s){r.push(s)}}}return Bu++,n.then(Gm,Gm),n}function Gm(){if(--Bu===0&&rs!==null){Qr!==null&&(Qr.status="fulfilled");var t=rs;rs=null,Yr=0,Qr=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function z0(t,n){var r=[],s={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<r.length;f++)(0,r[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),s}var Km=F.S;F.S=function(t,n){Ag=kt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&L0(t,n),Km!==null&&Km(t,n)};var rr=O(null);function ju(){var t=rr.current;return t!==null?t:gt.pooledCache}function Lo(t,n){n===null?k(rr,rr.current):k(rr,n.pool)}function $m(){var t=ju();return t===null?null:{parent:jt._currentValue,pool:t}}var Vr=Error(l(460)),Hu=Error(l(474)),zo=Error(l(542)),Io={then:function(){}};function Ym(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Qm(t,n,r){switch(r=t[r],r===void 0?t.push(n):r!==n&&(n.then(fe,fe),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Xm(t),t;default:if(typeof n.status=="string")n.then(fe,fe);else{if(t=gt,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Xm(t),t}throw sr=n,Vr}}function lr(t){try{var n=t._init;return n(t._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(sr=r,Vr):r}}var sr=null;function Vm(){if(sr===null)throw Error(l(459));var t=sr;return sr=null,t}function Xm(t){if(t===Vr||t===zo)throw Error(l(483))}var Xr=null,ls=0;function Uo(t){var n=ls;return ls+=1,Xr===null&&(Xr=[]),Qm(Xr,t,n)}function ss(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Bo(t,n){throw n.$$typeof===E?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Zm(t){function n(j,I){if(t){var q=j.deletions;q===null?(j.deletions=[I],j.flags|=16):q.push(I)}}function r(j,I){if(!t)return null;for(;I!==null;)n(j,I),I=I.sibling;return null}function s(j){for(var I=new Map;j!==null;)j.key!==null?I.set(j.key,j):I.set(j.index,j),j=j.sibling;return I}function f(j,I){return j=Ba(j,I),j.index=0,j.sibling=null,j}function m(j,I,q){return j.index=q,t?(q=j.alternate,q!==null?(q=q.index,q<I?(j.flags|=67108866,I):q):(j.flags|=67108866,I)):(j.flags|=1048576,I)}function v(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function _(j,I,q,ee){return I===null||I.tag!==6?(I=Au(q,j.mode,ee),I.return=j,I):(I=f(I,q),I.return=j,I)}function R(j,I,q,ee){var Ne=q.type;return Ne===w?W(j,I,q.props.children,ee,q.key):I!==null&&(I.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===X&&lr(Ne)===I.type)?(I=f(I,q.props),ss(I,q),I.return=j,I):(I=Ro(q.type,q.key,q.props,null,j.mode,ee),ss(I,q),I.return=j,I)}function P(j,I,q,ee){return I===null||I.tag!==4||I.stateNode.containerInfo!==q.containerInfo||I.stateNode.implementation!==q.implementation?(I=Cu(q,j.mode,ee),I.return=j,I):(I=f(I,q.children||[]),I.return=j,I)}function W(j,I,q,ee,Ne){return I===null||I.tag!==7?(I=tr(q,j.mode,ee,Ne),I.return=j,I):(I=f(I,q),I.return=j,I)}function ne(j,I,q){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Au(""+I,j.mode,q),I.return=j,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return q=Ro(I.type,I.key,I.props,null,j.mode,q),ss(q,I),q.return=j,q;case S:return I=Cu(I,j.mode,q),I.return=j,I;case X:return I=lr(I),ne(j,I,q)}if(te(I)||ie(I))return I=tr(I,j.mode,q,null),I.return=j,I;if(typeof I.then=="function")return ne(j,Uo(I),q);if(I.$$typeof===M)return ne(j,Do(j,I),q);Bo(j,I)}return null}function $(j,I,q,ee){var Ne=I!==null?I.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Ne!==null?null:_(j,I,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return q.key===Ne?R(j,I,q,ee):null;case S:return q.key===Ne?P(j,I,q,ee):null;case X:return q=lr(q),$(j,I,q,ee)}if(te(q)||ie(q))return Ne!==null?null:W(j,I,q,ee,null);if(typeof q.then=="function")return $(j,I,Uo(q),ee);if(q.$$typeof===M)return $(j,I,Do(j,q),ee);Bo(j,q)}return null}function Y(j,I,q,ee,Ne){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return j=j.get(q)||null,_(I,j,""+ee,Ne);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return j=j.get(ee.key===null?q:ee.key)||null,R(I,j,ee,Ne);case S:return j=j.get(ee.key===null?q:ee.key)||null,P(I,j,ee,Ne);case X:return ee=lr(ee),Y(j,I,q,ee,Ne)}if(te(ee)||ie(ee))return j=j.get(q)||null,W(I,j,ee,Ne,null);if(typeof ee.then=="function")return Y(j,I,q,Uo(ee),Ne);if(ee.$$typeof===M)return Y(j,I,q,Do(I,ee),Ne);Bo(I,ee)}return null}function be(j,I,q,ee){for(var Ne=null,et=null,Ee=I,Ie=I=0,$e=null;Ee!==null&&Ie<q.length;Ie++){Ee.index>Ie?($e=Ee,Ee=null):$e=Ee.sibling;var tt=$(j,Ee,q[Ie],ee);if(tt===null){Ee===null&&(Ee=$e);break}t&&Ee&&tt.alternate===null&&n(j,Ee),I=m(tt,I,Ie),et===null?Ne=tt:et.sibling=tt,et=tt,Ee=$e}if(Ie===q.length)return r(j,Ee),Ve&&ja(j,Ie),Ne;if(Ee===null){for(;Ie<q.length;Ie++)Ee=ne(j,q[Ie],ee),Ee!==null&&(I=m(Ee,I,Ie),et===null?Ne=Ee:et.sibling=Ee,et=Ee);return Ve&&ja(j,Ie),Ne}for(Ee=s(Ee);Ie<q.length;Ie++)$e=Y(Ee,j,Ie,q[Ie],ee),$e!==null&&(t&&$e.alternate!==null&&Ee.delete($e.key===null?Ie:$e.key),I=m($e,I,Ie),et===null?Ne=$e:et.sibling=$e,et=$e);return t&&Ee.forEach(function(Mi){return n(j,Mi)}),Ve&&ja(j,Ie),Ne}function Ae(j,I,q,ee){if(q==null)throw Error(l(151));for(var Ne=null,et=null,Ee=I,Ie=I=0,$e=null,tt=q.next();Ee!==null&&!tt.done;Ie++,tt=q.next()){Ee.index>Ie?($e=Ee,Ee=null):$e=Ee.sibling;var Mi=$(j,Ee,tt.value,ee);if(Mi===null){Ee===null&&(Ee=$e);break}t&&Ee&&Mi.alternate===null&&n(j,Ee),I=m(Mi,I,Ie),et===null?Ne=Mi:et.sibling=Mi,et=Mi,Ee=$e}if(tt.done)return r(j,Ee),Ve&&ja(j,Ie),Ne;if(Ee===null){for(;!tt.done;Ie++,tt=q.next())tt=ne(j,tt.value,ee),tt!==null&&(I=m(tt,I,Ie),et===null?Ne=tt:et.sibling=tt,et=tt);return Ve&&ja(j,Ie),Ne}for(Ee=s(Ee);!tt.done;Ie++,tt=q.next())tt=Y(Ee,j,Ie,tt.value,ee),tt!==null&&(t&&tt.alternate!==null&&Ee.delete(tt.key===null?Ie:tt.key),I=m(tt,I,Ie),et===null?Ne=tt:et.sibling=tt,et=tt);return t&&Ee.forEach(function($_){return n(j,$_)}),Ve&&ja(j,Ie),Ne}function ht(j,I,q,ee){if(typeof q=="object"&&q!==null&&q.type===w&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case x:e:{for(var Ne=q.key;I!==null;){if(I.key===Ne){if(Ne=q.type,Ne===w){if(I.tag===7){r(j,I.sibling),ee=f(I,q.props.children),ee.return=j,j=ee;break e}}else if(I.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===X&&lr(Ne)===I.type){r(j,I.sibling),ee=f(I,q.props),ss(ee,q),ee.return=j,j=ee;break e}r(j,I);break}else n(j,I);I=I.sibling}q.type===w?(ee=tr(q.props.children,j.mode,ee,q.key),ee.return=j,j=ee):(ee=Ro(q.type,q.key,q.props,null,j.mode,ee),ss(ee,q),ee.return=j,j=ee)}return v(j);case S:e:{for(Ne=q.key;I!==null;){if(I.key===Ne)if(I.tag===4&&I.stateNode.containerInfo===q.containerInfo&&I.stateNode.implementation===q.implementation){r(j,I.sibling),ee=f(I,q.children||[]),ee.return=j,j=ee;break e}else{r(j,I);break}else n(j,I);I=I.sibling}ee=Cu(q,j.mode,ee),ee.return=j,j=ee}return v(j);case X:return q=lr(q),ht(j,I,q,ee)}if(te(q))return be(j,I,q,ee);if(ie(q)){if(Ne=ie(q),typeof Ne!="function")throw Error(l(150));return q=Ne.call(q),Ae(j,I,q,ee)}if(typeof q.then=="function")return ht(j,I,Uo(q),ee);if(q.$$typeof===M)return ht(j,I,Do(j,q),ee);Bo(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,I!==null&&I.tag===6?(r(j,I.sibling),ee=f(I,q),ee.return=j,j=ee):(r(j,I),ee=Au(q,j.mode,ee),ee.return=j,j=ee),v(j)):r(j,I)}return function(j,I,q,ee){try{ls=0;var Ne=ht(j,I,q,ee);return Xr=null,Ne}catch(Ee){if(Ee===Vr||Ee===zo)throw Ee;var et=zn(29,Ee,null,j.mode);return et.lanes=ee,et.return=j,et}finally{}}}var or=Zm(!0),Wm=Zm(!1),pi=!1;function Fu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function gi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bi(t,n,r){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(at&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Co(t),zm(t,null,r),n}return Ao(t,s,n,r),Co(t)}function os(t,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,r|=s,n.lanes=r,Oe(t,r)}}function Pu(t,n){var r=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var f=null,m=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};m===null?f=m=v:m=m.next=v,r=r.next}while(r!==null);m===null?f=m=n:m=m.next=n}else f=m=n;r={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=n:t.next=n,r.lastBaseUpdate=n}var Gu=!1;function cs(){if(Gu){var t=Qr;if(t!==null)throw t}}function us(t,n,r,s){Gu=!1;var f=t.updateQueue;pi=!1;var m=f.firstBaseUpdate,v=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var R=_,P=R.next;R.next=null,v===null?m=P:v.next=P,v=R;var W=t.alternate;W!==null&&(W=W.updateQueue,_=W.lastBaseUpdate,_!==v&&(_===null?W.firstBaseUpdate=P:_.next=P,W.lastBaseUpdate=R))}if(m!==null){var ne=f.baseState;v=0,W=P=R=null,_=m;do{var $=_.lane&-536870913,Y=$!==_.lane;if(Y?(Ke&$)===$:(s&$)===$){$!==0&&$===Yr&&(Gu=!0),W!==null&&(W=W.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var be=t,Ae=_;$=n;var ht=r;switch(Ae.tag){case 1:if(be=Ae.payload,typeof be=="function"){ne=be.call(ht,ne,$);break e}ne=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ae.payload,$=typeof be=="function"?be.call(ht,ne,$):be,$==null)break e;ne=g({},ne,$);break e;case 2:pi=!0}}$=_.callback,$!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[$]:Y.push($))}else Y={lane:$,tag:_.tag,payload:_.payload,callback:_.callback,next:null},W===null?(P=W=Y,R=ne):W=W.next=Y,v|=$;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;Y=_,_=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);W===null&&(R=ne),f.baseState=R,f.firstBaseUpdate=P,f.lastBaseUpdate=W,m===null&&(f.shared.lanes=0),_i|=v,t.lanes=v,t.memoizedState=ne}}function Jm(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function ep(t,n){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)Jm(r[t],n)}var Zr=O(null),jo=O(0);function tp(t,n){t=Xa,k(jo,t),k(Zr,n),Xa=t|n.baseLanes}function Ku(){k(jo,Xa),k(Zr,Zr.current)}function $u(){Xa=jo.current,Q(Zr),Q(jo)}var In=O(null),Jn=null;function yi(t){var n=t.alternate;k(zt,zt.current&1),k(In,t),Jn===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(Jn=t)}function Yu(t){k(zt,zt.current),k(In,t),Jn===null&&(Jn=t)}function np(t){t.tag===22?(k(zt,zt.current),k(In,t),Jn===null&&(Jn=t)):vi()}function vi(){k(zt,zt.current),k(In,In.current)}function Un(t){Q(In),Jn===t&&(Jn=null),Q(zt)}var zt=O(0);function Ho(t){for(var n=t;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||ed(r)||td(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var qa=0,ze=null,ft=null,Ht=null,Fo=!1,Wr=!1,cr=!1,qo=0,fs=0,Jr=null,I0=0;function Ct(){throw Error(l(321))}function Qu(t,n){if(n===null)return!1;for(var r=0;r<n.length&&r<t.length;r++)if(!Ln(t[r],n[r]))return!1;return!0}function Vu(t,n,r,s,f,m){return qa=m,ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=t===null||t.memoizedState===null?jp:ff,cr=!1,m=r(s,f),cr=!1,Wr&&(m=ip(n,r,s,f)),ap(t),m}function ap(t){F.H=ms;var n=ft!==null&&ft.next!==null;if(qa=0,Ht=ft=ze=null,Fo=!1,fs=0,Jr=null,n)throw Error(l(300));t===null||Ft||(t=t.dependencies,t!==null&&Mo(t)&&(Ft=!0))}function ip(t,n,r,s){ze=t;var f=0;do{if(Wr&&(Jr=null),fs=0,Wr=!1,25<=f)throw Error(l(301));if(f+=1,Ht=ft=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=Hp,m=n(r,s)}while(Wr);return m}function U0(){var t=F.H,n=t.useState()[0];return n=typeof n.then=="function"?ds(n):n,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(ze.flags|=1024),n}function Xu(){var t=qo!==0;return qo=0,t}function Zu(t,n,r){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~r}function Wu(t){if(Fo){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Fo=!1}qa=0,Ht=ft=ze=null,Wr=!1,fs=qo=0,Jr=null}function hn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?ze.memoizedState=Ht=t:Ht=Ht.next=t,Ht}function It(){if(ft===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var n=Ht===null?ze.memoizedState:Ht.next;if(n!==null)Ht=n,ft=t;else{if(t===null)throw ze.alternate===null?Error(l(467)):Error(l(310));ft=t,t={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Ht===null?ze.memoizedState=Ht=t:Ht=Ht.next=t}return Ht}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(t){var n=fs;return fs+=1,Jr===null&&(Jr=[]),t=Qm(Jr,t,n),n=ze,(Ht===null?n.memoizedState:Ht.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?jp:ff),t}function Go(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ds(t);if(t.$$typeof===M)return Zt(t)}throw Error(l(438,String(t)))}function Ju(t){var n=null,r=ze.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var s=ze.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Po(),ze.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(t),s=0;s<t;s++)r[s]=C;return n.index++,r}function Pa(t,n){return typeof n=="function"?n(t):n}function Ko(t){var n=It();return ef(n,ft,t)}function ef(t,n,r){var s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=r;var f=t.baseQueue,m=s.pending;if(m!==null){if(f!==null){var v=f.next;f.next=m.next,m.next=v}n.baseQueue=f=m,s.pending=null}if(m=t.baseState,f===null)t.memoizedState=m;else{n=f.next;var _=v=null,R=null,P=n,W=!1;do{var ne=P.lane&-536870913;if(ne!==P.lane?(Ke&ne)===ne:(qa&ne)===ne){var $=P.revertLane;if($===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ne===Yr&&(W=!0);else if((qa&$)===$){P=P.next,$===Yr&&(W=!0);continue}else ne={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},R===null?(_=R=ne,v=m):R=R.next=ne,ze.lanes|=$,_i|=$;ne=P.action,cr&&r(m,ne),m=P.hasEagerState?P.eagerState:r(m,ne)}else $={lane:ne,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},R===null?(_=R=$,v=m):R=R.next=$,ze.lanes|=ne,_i|=ne;P=P.next}while(P!==null&&P!==n);if(R===null?v=m:R.next=_,!Ln(m,t.memoizedState)&&(Ft=!0,W&&(r=Qr,r!==null)))throw r;t.memoizedState=m,t.baseState=v,t.baseQueue=R,s.lastRenderedState=m}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function tf(t){var n=It(),r=n.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=t;var s=r.dispatch,f=r.pending,m=n.memoizedState;if(f!==null){r.pending=null;var v=f=f.next;do m=t(m,v.action),v=v.next;while(v!==f);Ln(m,n.memoizedState)||(Ft=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),r.lastRenderedState=m}return[m,s]}function rp(t,n,r){var s=ze,f=It(),m=Ve;if(m){if(r===void 0)throw Error(l(407));r=r()}else r=n();var v=!Ln((ft||f).memoizedState,r);if(v&&(f.memoizedState=r,Ft=!0),f=f.queue,rf(op.bind(null,s,f,t),[t]),f.getSnapshot!==n||v||Ht!==null&&Ht.memoizedState.tag&1){if(s.flags|=2048,el(9,{destroy:void 0},sp.bind(null,s,f,r,n),null),gt===null)throw Error(l(349));m||(qa&127)!==0||lp(s,n,r)}return r}function lp(t,n,r){t.flags|=16384,t={getSnapshot:n,value:r},n=ze.updateQueue,n===null?(n=Po(),ze.updateQueue=n,n.stores=[t]):(r=n.stores,r===null?n.stores=[t]:r.push(t))}function sp(t,n,r,s){n.value=r,n.getSnapshot=s,cp(n)&&up(t)}function op(t,n,r){return r(function(){cp(n)&&up(t)})}function cp(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!Ln(t,r)}catch{return!0}}function up(t){var n=er(t,2);n!==null&&Nn(n,t,2)}function nf(t){var n=hn();if(typeof t=="function"){var r=t;if(t=r(),cr){nn(!0);try{r()}finally{nn(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:t},n}function fp(t,n,r,s){return t.baseState=r,ef(t,ft,typeof s=="function"?s:Pa)}function B0(t,n,r,s,f){if(Qo(t))throw Error(l(485));if(t=n.action,t!==null){var m={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};F.T!==null?r(!0):m.isTransition=!1,s(m),r=n.pending,r===null?(m.next=n.pending=m,dp(n,m)):(m.next=r.next,n.pending=r.next=m)}}function dp(t,n){var r=n.action,s=n.payload,f=t.state;if(n.isTransition){var m=F.T,v={};F.T=v;try{var _=r(f,s),R=F.S;R!==null&&R(v,_),hp(t,n,_)}catch(P){af(t,n,P)}finally{m!==null&&v.types!==null&&(m.types=v.types),F.T=m}}else try{m=r(f,s),hp(t,n,m)}catch(P){af(t,n,P)}}function hp(t,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(s){mp(t,n,s)},function(s){return af(t,n,s)}):mp(t,n,r)}function mp(t,n,r){n.status="fulfilled",n.value=r,pp(n),t.state=r,n=t.pending,n!==null&&(r=n.next,r===n?t.pending=null:(r=r.next,n.next=r,dp(t,r)))}function af(t,n,r){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=r,pp(n),n=n.next;while(n!==s)}t.action=null}function pp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function gp(t,n){return n}function bp(t,n){if(Ve){var r=gt.formState;if(r!==null){e:{var s=ze;if(Ve){if(Et){t:{for(var f=Et,m=Wn;f.nodeType!==8;){if(!m){f=null;break t}if(f=ea(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Et=ea(f.nextSibling),s=f.data==="F!";break e}}hi(s)}s=!1}s&&(n=r[0])}}return r=hn(),r.memoizedState=r.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gp,lastRenderedState:n},r.queue=s,r=Ip.bind(null,ze,s),s.dispatch=r,s=nf(!1),m=uf.bind(null,ze,!1,s.queue),s=hn(),f={state:n,dispatch:null,action:t,pending:null},s.queue=f,r=B0.bind(null,ze,f,m,r),f.dispatch=r,s.memoizedState=t,[n,r,!1]}function yp(t){var n=It();return vp(n,ft,t)}function vp(t,n,r){if(n=ef(t,n,gp)[0],t=Ko(Pa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ds(n)}catch(v){throw v===Vr?zo:v}else s=n;n=It();var f=n.queue,m=f.dispatch;return r!==n.memoizedState&&(ze.flags|=2048,el(9,{destroy:void 0},j0.bind(null,f,r),null)),[s,m,t]}function j0(t,n){t.action=n}function xp(t){var n=It(),r=ft;if(r!==null)return vp(n,r,t);It(),n=n.memoizedState,r=It();var s=r.queue.dispatch;return r.memoizedState=t,[n,s,!1]}function el(t,n,r,s){return t={tag:t,create:r,deps:s,inst:n,next:null},n=ze.updateQueue,n===null&&(n=Po(),ze.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=t.next=t:(s=r.next,r.next=t,t.next=s,n.lastEffect=t),t}function Ep(){return It().memoizedState}function $o(t,n,r,s){var f=hn();ze.flags|=t,f.memoizedState=el(1|n,{destroy:void 0},r,s===void 0?null:s)}function Yo(t,n,r,s){var f=It();s=s===void 0?null:s;var m=f.memoizedState.inst;ft!==null&&s!==null&&Qu(s,ft.memoizedState.deps)?f.memoizedState=el(n,m,r,s):(ze.flags|=t,f.memoizedState=el(1|n,m,r,s))}function _p(t,n){$o(8390656,8,t,n)}function rf(t,n){Yo(2048,8,t,n)}function H0(t){ze.flags|=4;var n=ze.updateQueue;if(n===null)n=Po(),ze.updateQueue=n,n.events=[t];else{var r=n.events;r===null?n.events=[t]:r.push(t)}}function Sp(t){var n=It().memoizedState;return H0({ref:n,nextImpl:t}),function(){if((at&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function wp(t,n){return Yo(4,2,t,n)}function Np(t,n){return Yo(4,4,t,n)}function kp(t,n){if(typeof n=="function"){t=t();var r=n(t);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Tp(t,n,r){r=r!=null?r.concat([t]):null,Yo(4,4,kp.bind(null,n,t),r)}function lf(){}function Ap(t,n){var r=It();n=n===void 0?null:n;var s=r.memoizedState;return n!==null&&Qu(n,s[1])?s[0]:(r.memoizedState=[t,n],t)}function Cp(t,n){var r=It();n=n===void 0?null:n;var s=r.memoizedState;if(n!==null&&Qu(n,s[1]))return s[0];if(s=t(),cr){nn(!0);try{t()}finally{nn(!1)}}return r.memoizedState=[s,n],s}function sf(t,n,r){return r===void 0||(qa&1073741824)!==0&&(Ke&261930)===0?t.memoizedState=n:(t.memoizedState=r,t=Rg(),ze.lanes|=t,_i|=t,r)}function Rp(t,n,r,s){return Ln(r,n)?r:Zr.current!==null?(t=sf(t,r,s),Ln(t,n)||(Ft=!0),t):(qa&42)===0||(qa&1073741824)!==0&&(Ke&261930)===0?(Ft=!0,t.memoizedState=r):(t=Rg(),ze.lanes|=t,_i|=t,n)}function Op(t,n,r,s,f){var m=re.p;re.p=m!==0&&8>m?m:8;var v=F.T,_={};F.T=_,uf(t,!1,n,r);try{var R=f(),P=F.S;if(P!==null&&P(_,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var W=z0(R,s);hs(t,n,W,Hn(t))}else hs(t,n,s,Hn(t))}catch(ne){hs(t,n,{then:function(){},status:"rejected",reason:ne},Hn())}finally{re.p=m,v!==null&&_.types!==null&&(v.types=_.types),F.T=v}}function F0(){}function of(t,n,r,s){if(t.tag!==5)throw Error(l(476));var f=Mp(t).queue;Op(t,f,n,oe,r===null?F0:function(){return Dp(t),r(s)})}function Mp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:oe},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:r},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Dp(t){var n=Mp(t);n.next===null&&(n=t.alternate.memoizedState),hs(t,n.next.queue,{},Hn())}function cf(){return Zt(Rs)}function Lp(){return It().memoizedState}function zp(){return It().memoizedState}function q0(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var r=Hn();t=gi(r);var s=bi(n,t,r);s!==null&&(Nn(s,n,r),os(s,n,r)),n={cache:Uu()},t.payload=n;return}n=n.return}}function P0(t,n,r){var s=Hn();r={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Qo(t)?Up(n,r):(r=ku(t,n,r,s),r!==null&&(Nn(r,t,s),Bp(r,n,s)))}function Ip(t,n,r){var s=Hn();hs(t,n,r,s)}function hs(t,n,r,s){var f={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qo(t))Up(n,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var v=n.lastRenderedState,_=m(v,r);if(f.hasEagerState=!0,f.eagerState=_,Ln(_,v))return Ao(t,n,f,0),gt===null&&To(),!1}catch{}finally{}if(r=ku(t,n,f,s),r!==null)return Nn(r,t,s),Bp(r,n,s),!0}return!1}function uf(t,n,r,s){if(s={lane:2,revertLane:qf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Qo(t)){if(n)throw Error(l(479))}else n=ku(t,r,s,2),n!==null&&Nn(n,t,2)}function Qo(t){var n=t.alternate;return t===ze||n!==null&&n===ze}function Up(t,n){Wr=Fo=!0;var r=t.pending;r===null?n.next=n:(n.next=r.next,r.next=n),t.pending=n}function Bp(t,n,r){if((r&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,r|=s,n.lanes=r,Oe(t,r)}}var ms={readContext:Zt,use:Go,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};ms.useEffectEvent=Ct;var jp={readContext:Zt,use:Go,useCallback:function(t,n){return hn().memoizedState=[t,n===void 0?null:n],t},useContext:Zt,useEffect:_p,useImperativeHandle:function(t,n,r){r=r!=null?r.concat([t]):null,$o(4194308,4,kp.bind(null,n,t),r)},useLayoutEffect:function(t,n){return $o(4194308,4,t,n)},useInsertionEffect:function(t,n){$o(4,2,t,n)},useMemo:function(t,n){var r=hn();n=n===void 0?null:n;var s=t();if(cr){nn(!0);try{t()}finally{nn(!1)}}return r.memoizedState=[s,n],s},useReducer:function(t,n,r){var s=hn();if(r!==void 0){var f=r(n);if(cr){nn(!0);try{r(n)}finally{nn(!1)}}}else f=n;return s.memoizedState=s.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},s.queue=t,t=t.dispatch=P0.bind(null,ze,t),[s.memoizedState,t]},useRef:function(t){var n=hn();return t={current:t},n.memoizedState=t},useState:function(t){t=nf(t);var n=t.queue,r=Ip.bind(null,ze,n);return n.dispatch=r,[t.memoizedState,r]},useDebugValue:lf,useDeferredValue:function(t,n){var r=hn();return sf(r,t,n)},useTransition:function(){var t=nf(!1);return t=Op.bind(null,ze,t.queue,!0,!1),hn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,r){var s=ze,f=hn();if(Ve){if(r===void 0)throw Error(l(407));r=r()}else{if(r=n(),gt===null)throw Error(l(349));(Ke&127)!==0||lp(s,n,r)}f.memoizedState=r;var m={value:r,getSnapshot:n};return f.queue=m,_p(op.bind(null,s,m,t),[t]),s.flags|=2048,el(9,{destroy:void 0},sp.bind(null,s,m,r,n),null),r},useId:function(){var t=hn(),n=gt.identifierPrefix;if(Ve){var r=_a,s=Ea;r=(s&~(1<<32-lt(s)-1)).toString(32)+r,n="_"+n+"R_"+r,r=qo++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=I0++,n="_"+n+"r_"+r.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:cf,useFormState:bp,useActionState:bp,useOptimistic:function(t){var n=hn();n.memoizedState=n.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=uf.bind(null,ze,!0,r),r.dispatch=n,[t,n]},useMemoCache:Ju,useCacheRefresh:function(){return hn().memoizedState=q0.bind(null,ze)},useEffectEvent:function(t){var n=hn(),r={impl:t};return n.memoizedState=r,function(){if((at&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},ff={readContext:Zt,use:Go,useCallback:Ap,useContext:Zt,useEffect:rf,useImperativeHandle:Tp,useInsertionEffect:wp,useLayoutEffect:Np,useMemo:Cp,useReducer:Ko,useRef:Ep,useState:function(){return Ko(Pa)},useDebugValue:lf,useDeferredValue:function(t,n){var r=It();return Rp(r,ft.memoizedState,t,n)},useTransition:function(){var t=Ko(Pa)[0],n=It().memoizedState;return[typeof t=="boolean"?t:ds(t),n]},useSyncExternalStore:rp,useId:Lp,useHostTransitionStatus:cf,useFormState:yp,useActionState:yp,useOptimistic:function(t,n){var r=It();return fp(r,ft,t,n)},useMemoCache:Ju,useCacheRefresh:zp};ff.useEffectEvent=Sp;var Hp={readContext:Zt,use:Go,useCallback:Ap,useContext:Zt,useEffect:rf,useImperativeHandle:Tp,useInsertionEffect:wp,useLayoutEffect:Np,useMemo:Cp,useReducer:tf,useRef:Ep,useState:function(){return tf(Pa)},useDebugValue:lf,useDeferredValue:function(t,n){var r=It();return ft===null?sf(r,t,n):Rp(r,ft.memoizedState,t,n)},useTransition:function(){var t=tf(Pa)[0],n=It().memoizedState;return[typeof t=="boolean"?t:ds(t),n]},useSyncExternalStore:rp,useId:Lp,useHostTransitionStatus:cf,useFormState:xp,useActionState:xp,useOptimistic:function(t,n){var r=It();return ft!==null?fp(r,ft,t,n):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:Ju,useCacheRefresh:zp};Hp.useEffectEvent=Sp;function df(t,n,r,s){n=t.memoizedState,r=r(s,n),r=r==null?n:g({},n,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var hf={enqueueSetState:function(t,n,r){t=t._reactInternals;var s=Hn(),f=gi(s);f.payload=n,r!=null&&(f.callback=r),n=bi(t,f,s),n!==null&&(Nn(n,t,s),os(n,t,s))},enqueueReplaceState:function(t,n,r){t=t._reactInternals;var s=Hn(),f=gi(s);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=bi(t,f,s),n!==null&&(Nn(n,t,s),os(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var r=Hn(),s=gi(r);s.tag=2,n!=null&&(s.callback=n),n=bi(t,s,r),n!==null&&(Nn(n,t,r),os(n,t,r))}};function Fp(t,n,r,s,f,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,v):n.prototype&&n.prototype.isPureReactComponent?!es(r,s)||!es(f,m):!0}function qp(t,n,r,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,s),n.state!==t&&hf.enqueueReplaceState(n,n.state,null)}function ur(t,n){var r=n;if("ref"in n){r={};for(var s in n)s!=="ref"&&(r[s]=n[s])}if(t=t.defaultProps){r===n&&(r=g({},r));for(var f in t)r[f]===void 0&&(r[f]=t[f])}return r}function Pp(t){ko(t)}function Gp(t){console.error(t)}function Kp(t){ko(t)}function Vo(t,n){try{var r=t.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function $p(t,n,r){try{var s=t.onCaughtError;s(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function mf(t,n,r){return r=gi(r),r.tag=3,r.payload={element:null},r.callback=function(){Vo(t,n)},r}function Yp(t){return t=gi(t),t.tag=3,t}function Qp(t,n,r,s){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;t.payload=function(){return f(m)},t.callback=function(){$p(n,r,s)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){$p(n,r,s),typeof f!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function G0(t,n,r,s,f){if(r.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=r.alternate,n!==null&&$r(n,r,f,!0),r=In.current,r!==null){switch(r.tag){case 31:case 13:return Jn===null?sc():r.alternate===null&&Rt===0&&(Rt=3),r.flags&=-257,r.flags|=65536,r.lanes=f,s===Io?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([s]):n.add(s),jf(t,s,f)),!1;case 22:return r.flags|=65536,s===Io?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([s]):r.add(s)),jf(t,s,f)),!1}throw Error(l(435,r.tag))}return jf(t,s,f),sc(),!1}if(Ve)return n=In.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==Mu&&(t=Error(l(422),{cause:s}),as(Vn(t,r)))):(s!==Mu&&(n=Error(l(423),{cause:s}),as(Vn(n,r))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=Vn(s,r),f=mf(t.stateNode,s,f),Pu(t,f),Rt!==4&&(Rt=2)),!1;var m=Error(l(520),{cause:s});if(m=Vn(m,r),_s===null?_s=[m]:_s.push(m),Rt!==4&&(Rt=2),n===null)return!0;s=Vn(s,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,t=f&-f,r.lanes|=t,t=mf(r.stateNode,s,t),Pu(r,t),!1;case 1:if(n=r.type,m=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Si===null||!Si.has(m))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Yp(f),Qp(f,t,r,s),Pu(r,f),!1}r=r.return}while(r!==null);return!1}var pf=Error(l(461)),Ft=!1;function Wt(t,n,r,s){n.child=t===null?Wm(n,null,r,s):or(n,t.child,r,s)}function Vp(t,n,r,s,f){r=r.render;var m=n.ref;if("ref"in s){var v={};for(var _ in s)_!=="ref"&&(v[_]=s[_])}else v=s;return ir(n),s=Vu(t,n,r,v,m,f),_=Xu(),t!==null&&!Ft?(Zu(t,n,f),Ga(t,n,f)):(Ve&&_&&Ru(n),n.flags|=1,Wt(t,n,s,f),n.child)}function Xp(t,n,r,s,f){if(t===null){var m=r.type;return typeof m=="function"&&!Tu(m)&&m.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=m,Zp(t,n,m,s,f)):(t=Ro(r.type,null,s,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(m=t.child,!Sf(t,f)){var v=m.memoizedProps;if(r=r.compare,r=r!==null?r:es,r(v,s)&&t.ref===n.ref)return Ga(t,n,f)}return n.flags|=1,t=Ba(m,s),t.ref=n.ref,t.return=n,n.child=t}function Zp(t,n,r,s,f){if(t!==null){var m=t.memoizedProps;if(es(m,s)&&t.ref===n.ref)if(Ft=!1,n.pendingProps=s=m,Sf(t,f))(t.flags&131072)!==0&&(Ft=!0);else return n.lanes=t.lanes,Ga(t,n,f)}return gf(t,n,r,s,f)}function Wp(t,n,r,s){var f=s.children,m=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|r:r,t!==null){for(s=n.child=t.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~m}else s=0,n.child=null;return Jp(t,n,m,r,s)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Lo(n,m!==null?m.cachePool:null),m!==null?tp(n,m):Ku(),np(n);else return s=n.lanes=536870912,Jp(t,n,m!==null?m.baseLanes|r:r,r,s)}else m!==null?(Lo(n,m.cachePool),tp(n,m),vi(),n.memoizedState=null):(t!==null&&Lo(n,null),Ku(),vi());return Wt(t,n,f,r),n.child}function ps(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Jp(t,n,r,s,f){var m=ju();return m=m===null?null:{parent:jt._currentValue,pool:m},n.memoizedState={baseLanes:r,cachePool:m},t!==null&&Lo(n,null),Ku(),np(n),t!==null&&$r(t,n,s,!0),n.childLanes=f,null}function Xo(t,n){return n=Wo({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function eg(t,n,r){return or(n,t.child,null,r),t=Xo(n,n.pendingProps),t.flags|=2,Un(n),n.memoizedState=null,t}function K0(t,n,r){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Ve){if(s.mode==="hidden")return t=Xo(n,s),n.lanes=536870912,ps(null,t);if(Yu(n),(t=Et)?(t=db(t,Wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:fi!==null?{id:Ea,overflow:_a}:null,retryLane:536870912,hydrationErrors:null},r=Um(t),r.return=n,n.child=r,Xt=n,Et=null)):t=null,t===null)throw hi(n);return n.lanes=536870912,null}return Xo(n,s)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(Yu(n),f)if(n.flags&256)n.flags&=-257,n=eg(t,n,r);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(l(558));else if(Ft||$r(t,n,r,!1),f=(r&t.childLanes)!==0,Ft||f){if(s=gt,s!==null&&(v=Mt(s,r),v!==0&&v!==m.retryLane))throw m.retryLane=v,er(t,v),Nn(s,t,v),pf;sc(),n=eg(t,n,r)}else t=m.treeContext,Et=ea(v.nextSibling),Xt=n,Ve=!0,di=null,Wn=!1,t!==null&&Hm(n,t),n=Xo(n,s),n.flags|=4096;return n}return t=Ba(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Zo(t,n){var r=n.ref;if(r===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(t===null||t.ref!==r)&&(n.flags|=4194816)}}function gf(t,n,r,s,f){return ir(n),r=Vu(t,n,r,s,void 0,f),s=Xu(),t!==null&&!Ft?(Zu(t,n,f),Ga(t,n,f)):(Ve&&s&&Ru(n),n.flags|=1,Wt(t,n,r,f),n.child)}function tg(t,n,r,s,f,m){return ir(n),n.updateQueue=null,r=ip(n,s,r,f),ap(t),s=Xu(),t!==null&&!Ft?(Zu(t,n,m),Ga(t,n,m)):(Ve&&s&&Ru(n),n.flags|=1,Wt(t,n,r,m),n.child)}function ng(t,n,r,s,f){if(ir(n),n.stateNode===null){var m=qr,v=r.contextType;typeof v=="object"&&v!==null&&(m=Zt(v)),m=new r(s,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=hf,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=s,m.state=n.memoizedState,m.refs={},Fu(n),v=r.contextType,m.context=typeof v=="object"&&v!==null?Zt(v):qr,m.state=n.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(df(n,r,v,s),m.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&hf.enqueueReplaceState(m,m.state,null),us(n,s,m,f),cs(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){m=n.stateNode;var _=n.memoizedProps,R=ur(r,_);m.props=R;var P=m.context,W=r.contextType;v=qr,typeof W=="object"&&W!==null&&(v=Zt(W));var ne=r.getDerivedStateFromProps;W=typeof ne=="function"||typeof m.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,W||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_||P!==v)&&qp(n,m,s,v),pi=!1;var $=n.memoizedState;m.state=$,us(n,s,m,f),cs(),P=n.memoizedState,_||$!==P||pi?(typeof ne=="function"&&(df(n,r,ne,s),P=n.memoizedState),(R=pi||Fp(n,r,R,s,$,P,v))?(W||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=P),m.props=s,m.state=P,m.context=v,s=R):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{m=n.stateNode,qu(t,n),v=n.memoizedProps,W=ur(r,v),m.props=W,ne=n.pendingProps,$=m.context,P=r.contextType,R=qr,typeof P=="object"&&P!==null&&(R=Zt(P)),_=r.getDerivedStateFromProps,(P=typeof _=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==ne||$!==R)&&qp(n,m,s,R),pi=!1,$=n.memoizedState,m.state=$,us(n,s,m,f),cs();var Y=n.memoizedState;v!==ne||$!==Y||pi||t!==null&&t.dependencies!==null&&Mo(t.dependencies)?(typeof _=="function"&&(df(n,r,_,s),Y=n.memoizedState),(W=pi||Fp(n,r,W,s,$,Y,R)||t!==null&&t.dependencies!==null&&Mo(t.dependencies))?(P||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,Y,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,Y,R)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),m.props=s,m.state=Y,m.context=R,s=W):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(n.flags|=1024),s=!1)}return m=s,Zo(t,n),s=(n.flags&128)!==0,m||s?(m=n.stateNode,r=s&&typeof r.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,t!==null&&s?(n.child=or(n,t.child,null,f),n.child=or(n,null,r,f)):Wt(t,n,r,f),n.memoizedState=m.state,t=n.child):t=Ga(t,n,f),t}function ag(t,n,r,s){return nr(),n.flags|=256,Wt(t,n,r,s),n.child}var bf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yf(t){return{baseLanes:t,cachePool:$m()}}function vf(t,n,r){return t=t!==null?t.childLanes&~r:0,n&&(t|=jn),t}function ig(t,n,r){var s=n.pendingProps,f=!1,m=(n.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),v&&(f=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ve){if(f?yi(n):vi(),(t=Et)?(t=db(t,Wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:fi!==null?{id:Ea,overflow:_a}:null,retryLane:536870912,hydrationErrors:null},r=Um(t),r.return=n,n.child=r,Xt=n,Et=null)):t=null,t===null)throw hi(n);return td(t)?n.lanes=32:n.lanes=536870912,null}var _=s.children;return s=s.fallback,f?(vi(),f=n.mode,_=Wo({mode:"hidden",children:_},f),s=tr(s,f,r,null),_.return=n,s.return=n,_.sibling=s,n.child=_,s=n.child,s.memoizedState=yf(r),s.childLanes=vf(t,v,r),n.memoizedState=bf,ps(null,s)):(yi(n),xf(n,_))}var R=t.memoizedState;if(R!==null&&(_=R.dehydrated,_!==null)){if(m)n.flags&256?(yi(n),n.flags&=-257,n=Ef(t,n,r)):n.memoizedState!==null?(vi(),n.child=t.child,n.flags|=128,n=null):(vi(),_=s.fallback,f=n.mode,s=Wo({mode:"visible",children:s.children},f),_=tr(_,f,r,null),_.flags|=2,s.return=n,_.return=n,s.sibling=_,n.child=s,or(n,t.child,null,r),s=n.child,s.memoizedState=yf(r),s.childLanes=vf(t,v,r),n.memoizedState=bf,n=ps(null,s));else if(yi(n),td(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var P=v.dgst;v=P,s=Error(l(419)),s.stack="",s.digest=v,as({value:s,source:null,stack:null}),n=Ef(t,n,r)}else if(Ft||$r(t,n,r,!1),v=(r&t.childLanes)!==0,Ft||v){if(v=gt,v!==null&&(s=Mt(v,r),s!==0&&s!==R.retryLane))throw R.retryLane=s,er(t,s),Nn(v,t,s),pf;ed(_)||sc(),n=Ef(t,n,r)}else ed(_)?(n.flags|=192,n.child=t.child,n=null):(t=R.treeContext,Et=ea(_.nextSibling),Xt=n,Ve=!0,di=null,Wn=!1,t!==null&&Hm(n,t),n=xf(n,s.children),n.flags|=4096);return n}return f?(vi(),_=s.fallback,f=n.mode,R=t.child,P=R.sibling,s=Ba(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,P!==null?_=Ba(P,_):(_=tr(_,f,r,null),_.flags|=2),_.return=n,s.return=n,s.sibling=_,n.child=s,ps(null,s),s=n.child,_=t.child.memoizedState,_===null?_=yf(r):(f=_.cachePool,f!==null?(R=jt._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=$m(),_={baseLanes:_.baseLanes|r,cachePool:f}),s.memoizedState=_,s.childLanes=vf(t,v,r),n.memoizedState=bf,ps(t.child,s)):(yi(n),r=t.child,t=r.sibling,r=Ba(r,{mode:"visible",children:s.children}),r.return=n,r.sibling=null,t!==null&&(v=n.deletions,v===null?(n.deletions=[t],n.flags|=16):v.push(t)),n.child=r,n.memoizedState=null,r)}function xf(t,n){return n=Wo({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Wo(t,n){return t=zn(22,t,null,n),t.lanes=0,t}function Ef(t,n,r){return or(n,t.child,null,r),t=xf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function rg(t,n,r){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),zu(t.return,n,r)}function _f(t,n,r,s,f,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:f,treeForkCount:m}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=r,v.tailMode=f,v.treeForkCount=m)}function lg(t,n,r){var s=n.pendingProps,f=s.revealOrder,m=s.tail;s=s.children;var v=zt.current,_=(v&2)!==0;if(_?(v=v&1|2,n.flags|=128):v&=1,k(zt,v),Wt(t,n,s,r),s=Ve?ns:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rg(t,r,n);else if(t.tag===19)rg(t,r,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(r=n.child,f=null;r!==null;)t=r.alternate,t!==null&&Ho(t)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),_f(n,!1,f,r,m,s);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&Ho(t)===null){n.child=f;break}t=f.sibling,f.sibling=r,r=f,f=t}_f(n,!0,r,null,m,s);break;case"together":_f(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Ga(t,n,r){if(t!==null&&(n.dependencies=t.dependencies),_i|=n.lanes,(r&n.childLanes)===0)if(t!==null){if($r(t,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(l(153));if(n.child!==null){for(t=n.child,r=Ba(t,t.pendingProps),n.child=r,r.return=n;t.sibling!==null;)t=t.sibling,r=r.sibling=Ba(t,t.pendingProps),r.return=n;r.sibling=null}return n.child}function Sf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Mo(t)))}function $0(t,n,r){switch(n.tag){case 3:rt(n,n.stateNode.containerInfo),mi(n,jt,t.memoizedState.cache),nr();break;case 27:case 5:Gt(n);break;case 4:rt(n,n.stateNode.containerInfo);break;case 10:mi(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Yu(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(yi(n),n.flags|=128,null):(r&n.child.childLanes)!==0?ig(t,n,r):(yi(n),t=Ga(t,n,r),t!==null?t.sibling:null);yi(n);break;case 19:var f=(t.flags&128)!==0;if(s=(r&n.childLanes)!==0,s||($r(t,n,r,!1),s=(r&n.childLanes)!==0),f){if(s)return lg(t,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),k(zt,zt.current),s)break;return null;case 22:return n.lanes=0,Wp(t,n,r,n.pendingProps);case 24:mi(n,jt,t.memoizedState.cache)}return Ga(t,n,r)}function sg(t,n,r){if(t!==null)if(t.memoizedProps!==n.pendingProps)Ft=!0;else{if(!Sf(t,r)&&(n.flags&128)===0)return Ft=!1,$0(t,n,r);Ft=(t.flags&131072)!==0}else Ft=!1,Ve&&(n.flags&1048576)!==0&&jm(n,ns,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=lr(n.elementType),n.type=t,typeof t=="function")Tu(t)?(s=ur(t,s),n.tag=1,n=ng(null,n,t,s,r)):(n.tag=0,n=gf(null,n,t,s,r));else{if(t!=null){var f=t.$$typeof;if(f===H){n.tag=11,n=Vp(null,n,t,s,r);break e}else if(f===G){n.tag=14,n=Xp(null,n,t,s,r);break e}}throw n=le(t)||t,Error(l(306,n,""))}}return n;case 0:return gf(t,n,n.type,n.pendingProps,r);case 1:return s=n.type,f=ur(s,n.pendingProps),ng(t,n,s,f,r);case 3:e:{if(rt(n,n.stateNode.containerInfo),t===null)throw Error(l(387));s=n.pendingProps;var m=n.memoizedState;f=m.element,qu(t,n),us(n,s,null,r);var v=n.memoizedState;if(s=v.cache,mi(n,jt,s),s!==m.cache&&Iu(n,[jt],r,!0),cs(),s=v.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=ag(t,n,s,r);break e}else if(s!==f){f=Vn(Error(l(424)),n),as(f),n=ag(t,n,s,r);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Et=ea(t.firstChild),Xt=n,Ve=!0,di=null,Wn=!0,r=Wm(n,null,s,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(nr(),s===f){n=Ga(t,n,r);break e}Wt(t,n,s,r)}n=n.child}return n;case 26:return Zo(t,n),t===null?(r=yb(n.type,null,n.pendingProps,null))?n.memoizedState=r:Ve||(r=n.type,t=n.pendingProps,s=mc(ve.current).createElement(r),s[Dt]=n,s[an]=t,Jt(s,r,t),Ut(s),n.stateNode=s):n.memoizedState=yb(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Gt(n),t===null&&Ve&&(s=n.stateNode=pb(n.type,n.pendingProps,ve.current),Xt=n,Wn=!0,f=Et,Ti(n.type)?(nd=f,Et=ea(s.firstChild)):Et=f),Wt(t,n,n.pendingProps.children,r),Zo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ve&&((f=s=Et)&&(s=__(s,n.type,n.pendingProps,Wn),s!==null?(n.stateNode=s,Xt=n,Et=ea(s.firstChild),Wn=!1,f=!0):f=!1),f||hi(n)),Gt(n),f=n.type,m=n.pendingProps,v=t!==null?t.memoizedProps:null,s=m.children,Zf(f,m)?s=null:v!==null&&Zf(f,v)&&(n.flags|=32),n.memoizedState!==null&&(f=Vu(t,n,U0,null,null,r),Rs._currentValue=f),Zo(t,n),Wt(t,n,s,r),n.child;case 6:return t===null&&Ve&&((t=r=Et)&&(r=S_(r,n.pendingProps,Wn),r!==null?(n.stateNode=r,Xt=n,Et=null,t=!0):t=!1),t||hi(n)),null;case 13:return ig(t,n,r);case 4:return rt(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=or(n,null,s,r):Wt(t,n,s,r),n.child;case 11:return Vp(t,n,n.type,n.pendingProps,r);case 7:return Wt(t,n,n.pendingProps,r),n.child;case 8:return Wt(t,n,n.pendingProps.children,r),n.child;case 12:return Wt(t,n,n.pendingProps.children,r),n.child;case 10:return s=n.pendingProps,mi(n,n.type,s.value),Wt(t,n,s.children,r),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,ir(n),f=Zt(f),s=s(f),n.flags|=1,Wt(t,n,s,r),n.child;case 14:return Xp(t,n,n.type,n.pendingProps,r);case 15:return Zp(t,n,n.type,n.pendingProps,r);case 19:return lg(t,n,r);case 31:return K0(t,n,r);case 22:return Wp(t,n,r,n.pendingProps);case 24:return ir(n),s=Zt(jt),t===null?(f=ju(),f===null&&(f=gt,m=Uu(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=r),f=m),n.memoizedState={parent:s,cache:f},Fu(n),mi(n,jt,f)):((t.lanes&r)!==0&&(qu(t,n),us(n,null,null,r),cs()),f=t.memoizedState,m=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),mi(n,jt,s)):(s=m.cache,mi(n,jt,s),s!==f.cache&&Iu(n,[jt],r,!0))),Wt(t,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Ka(t){t.flags|=4}function wf(t,n,r,s,f){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(Lg())t.flags|=8192;else throw sr=Io,Hu}else t.flags&=-16777217}function og(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sb(n))if(Lg())t.flags|=8192;else throw sr=Io,Hu}function Jo(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Me():536870912,t.lanes|=n,il|=n)}function gs(t,n){if(!Ve)switch(t.tailMode){case"hidden":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function _t(t){var n=t.alternate!==null&&t.alternate.child===t.child,r=0,s=0;if(n)for(var f=t.child;f!==null;)r|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)r|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=s,t.childLanes=r,n}function Y0(t,n,r){var s=n.pendingProps;switch(Ou(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(n),null;case 1:return _t(n),null;case 3:return r=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Fa(jt),nt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Kr(n)?Ka(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Du())),_t(n),null;case 26:var f=n.type,m=n.memoizedState;return t===null?(Ka(n),m!==null?(_t(n),og(n,m)):(_t(n),wf(n,f,null,s,r))):m?m!==t.memoizedState?(Ka(n),_t(n),og(n,m)):(_t(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ka(n),_t(n),wf(n,f,t,s,r)),null;case 27:if(Rn(n),r=ve.current,f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ka(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}t=de.current,Kr(n)?Fm(n):(t=pb(f,s,r),n.stateNode=t,Ka(n))}return _t(n),null;case 5:if(Rn(n),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ka(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}if(m=de.current,Kr(n))Fm(n);else{var v=mc(ve.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?v.createElement(f,{is:s.is}):v.createElement(f)}}m[Dt]=n,m[an]=s;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=m;e:switch(Jt(m,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ka(n)}}return _t(n),wf(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,r),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Ka(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(t=ve.current,Kr(n)){if(t=n.stateNode,r=n.memoizedProps,s=null,f=Xt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[Dt]=n,t=!!(t.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||ib(t.nodeValue,r)),t||hi(n,!0)}else t=mc(t).createTextNode(s),t[Dt]=n,n.stateNode=t}return _t(n),null;case 31:if(r=n.memoizedState,t===null||t.memoizedState!==null){if(s=Kr(n),r!==null){if(t===null){if(!s)throw Error(l(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[Dt]=n}else nr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),t=!1}else r=Du(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),t=!0;if(!t)return n.flags&256?(Un(n),n):(Un(n),null);if((n.flags&128)!==0)throw Error(l(558))}return _t(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=Kr(n),s!==null&&s.dehydrated!==null){if(t===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Dt]=n}else nr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),f=!1}else f=Du(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Un(n),n):(Un(n),null)}return Un(n),(n.flags&128)!==0?(n.lanes=r,n):(r=s!==null,t=t!==null&&t.memoizedState!==null,r&&(s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)),r!==t&&r&&(n.child.flags|=8192),Jo(n,n.updateQueue),_t(n),null);case 4:return nt(),t===null&&$f(n.stateNode.containerInfo),_t(n),null;case 10:return Fa(n.type),_t(n),null;case 19:if(Q(zt),s=n.memoizedState,s===null)return _t(n),null;if(f=(n.flags&128)!==0,m=s.rendering,m===null)if(f)gs(s,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(m=Ho(t),m!==null){for(n.flags|=128,gs(s,!1),t=m.updateQueue,n.updateQueue=t,Jo(n,t),n.subtreeFlags=0,t=r,r=n.child;r!==null;)Im(r,t),r=r.sibling;return k(zt,zt.current&1|2),Ve&&ja(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&kt()>ic&&(n.flags|=128,f=!0,gs(s,!1),n.lanes=4194304)}else{if(!f)if(t=Ho(m),t!==null){if(n.flags|=128,f=!0,t=t.updateQueue,n.updateQueue=t,Jo(n,t),gs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!Ve)return _t(n),null}else 2*kt()-s.renderingStartTime>ic&&r!==536870912&&(n.flags|=128,f=!0,gs(s,!1),n.lanes=4194304);s.isBackwards?(m.sibling=n.child,n.child=m):(t=s.last,t!==null?t.sibling=m:n.child=m,s.last=m)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=zt.current,k(zt,f?r&1|2:r&1),Ve&&ja(n,s.treeForkCount),t):(_t(n),null);case 22:case 23:return Un(n),$u(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(r&536870912)!==0&&(n.flags&128)===0&&(_t(n),n.subtreeFlags&6&&(n.flags|=8192)):_t(n),r=n.updateQueue,r!==null&&Jo(n,r.retryQueue),r=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==r&&(n.flags|=2048),t!==null&&Q(rr),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Fa(jt),_t(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function Q0(t,n){switch(Ou(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Fa(jt),nt(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Rn(n),null;case 31:if(n.memoizedState!==null){if(Un(n),n.alternate===null)throw Error(l(340));nr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Un(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));nr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Q(zt),null;case 4:return nt(),null;case 10:return Fa(n.type),null;case 22:case 23:return Un(n),$u(),t!==null&&Q(rr),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Fa(jt),null;case 25:return null;default:return null}}function cg(t,n){switch(Ou(n),n.tag){case 3:Fa(jt),nt();break;case 26:case 27:case 5:Rn(n);break;case 4:nt();break;case 31:n.memoizedState!==null&&Un(n);break;case 13:Un(n);break;case 19:Q(zt);break;case 10:Fa(n.type);break;case 22:case 23:Un(n),$u(),t!==null&&Q(rr);break;case 24:Fa(jt)}}function bs(t,n){try{var r=n.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var f=s.next;r=f;do{if((r.tag&t)===t){s=void 0;var m=r.create,v=r.inst;s=m(),v.destroy=s}r=r.next}while(r!==f)}}catch(_){ut(n,n.return,_)}}function xi(t,n,r){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&t)===t){var v=s.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,f=n;var R=r,P=_;try{P()}catch(W){ut(f,R,W)}}}s=s.next}while(s!==m)}}catch(W){ut(n,n.return,W)}}function ug(t){var n=t.updateQueue;if(n!==null){var r=t.stateNode;try{ep(n,r)}catch(s){ut(t,t.return,s)}}}function fg(t,n,r){r.props=ur(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(s){ut(t,n,s)}}function ys(t,n){try{var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof r=="function"?t.refCleanup=r(s):r.current=s}}catch(f){ut(t,n,f)}}function Sa(t,n){var r=t.ref,s=t.refCleanup;if(r!==null)if(typeof s=="function")try{s()}catch(f){ut(t,n,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){ut(t,n,f)}else r.current=null}function dg(t){var n=t.type,r=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&s.focus();break e;case"img":r.src?s.src=r.src:r.srcSet&&(s.srcset=r.srcSet)}}catch(f){ut(t,t.return,f)}}function Nf(t,n,r){try{var s=t.stateNode;g_(s,t.type,r,n),s[an]=n}catch(f){ut(t,t.return,f)}}function hg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ti(t.type)||t.tag===4}function kf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ti(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Tf(t,n,r){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(t,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(t),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=fe));else if(s!==4&&(s===27&&Ti(t.type)&&(r=t.stateNode,n=null),t=t.child,t!==null))for(Tf(t,n,r),t=t.sibling;t!==null;)Tf(t,n,r),t=t.sibling}function ec(t,n,r){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(s!==4&&(s===27&&Ti(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(ec(t,n,r),t=t.sibling;t!==null;)ec(t,n,r),t=t.sibling}function mg(t){var n=t.stateNode,r=t.memoizedProps;try{for(var s=t.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Jt(n,s,r),n[Dt]=t,n[an]=r}catch(m){ut(t,t.return,m)}}var $a=!1,qt=!1,Af=!1,pg=typeof WeakSet=="function"?WeakSet:Set,$t=null;function V0(t,n){if(t=t.containerInfo,Vf=Ec,t=Tm(t),xu(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{r.nodeType,m.nodeType}catch{r=null;break e}var v=0,_=-1,R=-1,P=0,W=0,ne=t,$=null;t:for(;;){for(var Y;ne!==r||f!==0&&ne.nodeType!==3||(_=v+f),ne!==m||s!==0&&ne.nodeType!==3||(R=v+s),ne.nodeType===3&&(v+=ne.nodeValue.length),(Y=ne.firstChild)!==null;)$=ne,ne=Y;for(;;){if(ne===t)break t;if($===r&&++P===f&&(_=v),$===m&&++W===s&&(R=v),(Y=ne.nextSibling)!==null)break;ne=$,$=ne.parentNode}ne=Y}r=_===-1||R===-1?null:{start:_,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xf={focusedElem:t,selectionRange:r},Ec=!1,$t=n;$t!==null;)if(n=$t,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,$t=t;else for(;$t!==null;){switch(n=$t,m=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(r=0;r<t.length;r++)f=t[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,r=n,f=m.memoizedProps,m=m.memoizedState,s=r.stateNode;try{var be=ur(r.type,f);t=s.getSnapshotBeforeUpdate(be,m),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ae){ut(r,r.return,Ae)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,r=t.nodeType,r===9)Jf(t);else if(r===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Jf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=n.sibling,t!==null){t.return=n.return,$t=t;break}$t=n.return}}function gg(t,n,r){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Qa(t,r),s&4&&bs(5,r);break;case 1:if(Qa(t,r),s&4)if(t=r.stateNode,n===null)try{t.componentDidMount()}catch(v){ut(r,r.return,v)}else{var f=ur(r.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(f,n,t.__reactInternalSnapshotBeforeUpdate)}catch(v){ut(r,r.return,v)}}s&64&&ug(r),s&512&&ys(r,r.return);break;case 3:if(Qa(t,r),s&64&&(t=r.updateQueue,t!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{ep(t,n)}catch(v){ut(r,r.return,v)}}break;case 27:n===null&&s&4&&mg(r);case 26:case 5:Qa(t,r),n===null&&s&4&&dg(r),s&512&&ys(r,r.return);break;case 12:Qa(t,r);break;case 31:Qa(t,r),s&4&&vg(t,r);break;case 13:Qa(t,r),s&4&&xg(t,r),s&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=i_.bind(null,r),w_(t,r))));break;case 22:if(s=r.memoizedState!==null||$a,!s){n=n!==null&&n.memoizedState!==null||qt,f=$a;var m=qt;$a=s,(qt=n)&&!m?Va(t,r,(r.subtreeFlags&8772)!==0):Qa(t,r),$a=f,qt=m}break;case 30:break;default:Qa(t,r)}}function bg(t){var n=t.alternate;n!==null&&(t.alternate=null,bg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&ql(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,En=!1;function Ya(t,n,r){for(r=r.child;r!==null;)yg(t,n,r),r=r.sibling}function yg(t,n,r){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Qt,r)}catch{}switch(r.tag){case 26:qt||Sa(r,n),Ya(t,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:qt||Sa(r,n);var s=wt,f=En;Ti(r.type)&&(wt=r.stateNode,En=!1),Ya(t,n,r),Ts(r.stateNode),wt=s,En=f;break;case 5:qt||Sa(r,n);case 6:if(s=wt,f=En,wt=null,Ya(t,n,r),wt=s,En=f,wt!==null)if(En)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(r.stateNode)}catch(m){ut(r,n,m)}else try{wt.removeChild(r.stateNode)}catch(m){ut(r,n,m)}break;case 18:wt!==null&&(En?(t=wt,ub(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,r.stateNode),dl(t)):ub(wt,r.stateNode));break;case 4:s=wt,f=En,wt=r.stateNode.containerInfo,En=!0,Ya(t,n,r),wt=s,En=f;break;case 0:case 11:case 14:case 15:xi(2,r,n),qt||xi(4,r,n),Ya(t,n,r);break;case 1:qt||(Sa(r,n),s=r.stateNode,typeof s.componentWillUnmount=="function"&&fg(r,n,s)),Ya(t,n,r);break;case 21:Ya(t,n,r);break;case 22:qt=(s=qt)||r.memoizedState!==null,Ya(t,n,r),qt=s;break;default:Ya(t,n,r)}}function vg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{dl(t)}catch(r){ut(n,n.return,r)}}}function xg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{dl(t)}catch(r){ut(n,n.return,r)}}function X0(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new pg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new pg),n;default:throw Error(l(435,t.tag))}}function tc(t,n){var r=X0(t);n.forEach(function(s){if(!r.has(s)){r.add(s);var f=r_.bind(null,t,s);s.then(f,f)}})}function _n(t,n){var r=n.deletions;if(r!==null)for(var s=0;s<r.length;s++){var f=r[s],m=t,v=n,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(Ti(_.type)){wt=_.stateNode,En=!1;break e}break;case 5:wt=_.stateNode,En=!1;break e;case 3:case 4:wt=_.stateNode.containerInfo,En=!0;break e}_=_.return}if(wt===null)throw Error(l(160));yg(m,v,f),wt=null,En=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Eg(n,t),n=n.sibling}var fa=null;function Eg(t,n){var r=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_n(n,t),Sn(t),s&4&&(xi(3,t,t.return),bs(3,t),xi(5,t,t.return));break;case 1:_n(n,t),Sn(t),s&512&&(qt||r===null||Sa(r,r.return)),s&64&&$a&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(r=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=r===null?s:r.concat(s))));break;case 26:var f=fa;if(_n(n,t),Sn(t),s&512&&(qt||r===null||Sa(r,r.return)),s&4){var m=r!==null?r.memoizedState:null;if(s=t.memoizedState,r===null)if(s===null)if(t.stateNode===null){e:{s=t.type,r=t.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Qi]||m[Dt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),Jt(m,s,r),m[Dt]=t,Ut(m),s=m;break e;case"link":var v=Eb("link","href",f).get(s+(r.href||""));if(v){for(var _=0;_<v.length;_++)if(m=v[_],m.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&m.getAttribute("rel")===(r.rel==null?null:r.rel)&&m.getAttribute("title")===(r.title==null?null:r.title)&&m.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(_,1);break t}}m=f.createElement(s),Jt(m,s,r),f.head.appendChild(m);break;case"meta":if(v=Eb("meta","content",f).get(s+(r.content||""))){for(_=0;_<v.length;_++)if(m=v[_],m.getAttribute("content")===(r.content==null?null:""+r.content)&&m.getAttribute("name")===(r.name==null?null:r.name)&&m.getAttribute("property")===(r.property==null?null:r.property)&&m.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&m.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(_,1);break t}}m=f.createElement(s),Jt(m,s,r),f.head.appendChild(m);break;default:throw Error(l(468,s))}m[Dt]=t,Ut(m),s=m}t.stateNode=s}else _b(f,t.type,t.stateNode);else t.stateNode=xb(f,s,t.memoizedProps);else m!==s?(m===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):m.count--,s===null?_b(f,t.type,t.stateNode):xb(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Nf(t,t.memoizedProps,r.memoizedProps)}break;case 27:_n(n,t),Sn(t),s&512&&(qt||r===null||Sa(r,r.return)),r!==null&&s&4&&Nf(t,t.memoizedProps,r.memoizedProps);break;case 5:if(_n(n,t),Sn(t),s&512&&(qt||r===null||Sa(r,r.return)),t.flags&32){f=t.stateNode;try{Re(f,"")}catch(be){ut(t,t.return,be)}}s&4&&t.stateNode!=null&&(f=t.memoizedProps,Nf(t,f,r!==null?r.memoizedProps:f)),s&1024&&(Af=!0);break;case 6:if(_n(n,t),Sn(t),s&4){if(t.stateNode===null)throw Error(l(162));s=t.memoizedProps,r=t.stateNode;try{r.nodeValue=s}catch(be){ut(t,t.return,be)}}break;case 3:if(bc=null,f=fa,fa=pc(n.containerInfo),_n(n,t),fa=f,Sn(t),s&4&&r!==null&&r.memoizedState.isDehydrated)try{dl(n.containerInfo)}catch(be){ut(t,t.return,be)}Af&&(Af=!1,_g(t));break;case 4:s=fa,fa=pc(t.stateNode.containerInfo),_n(n,t),Sn(t),fa=s;break;case 12:_n(n,t),Sn(t);break;case 31:_n(n,t),Sn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,tc(t,s)));break;case 13:_n(n,t),Sn(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(ac=kt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,tc(t,s)));break;case 22:f=t.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,P=$a,W=qt;if($a=P||f,qt=W||R,_n(n,t),qt=W,$a=P,Sn(t),s&8192)e:for(n=t.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||R||$a||qt||fr(t)),r=null,n=t;;){if(n.tag===5||n.tag===26){if(r===null){R=r=n;try{if(m=R.stateNode,f)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=R.stateNode;var ne=R.memoizedProps.style,$=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;_.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(be){ut(R,R.return,be)}}}else if(n.tag===6){if(r===null){R=n;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(be){ut(R,R.return,be)}}}else if(n.tag===18){if(r===null){R=n;try{var Y=R.stateNode;f?fb(Y,!0):fb(R.stateNode,!1)}catch(be){ut(R,R.return,be)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(r=s.retryQueue,r!==null&&(s.retryQueue=null,tc(t,r))));break;case 19:_n(n,t),Sn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,tc(t,s)));break;case 30:break;case 21:break;default:_n(n,t),Sn(t)}}function Sn(t){var n=t.flags;if(n&2){try{for(var r,s=t.return;s!==null;){if(hg(s)){r=s;break}s=s.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,m=kf(t);ec(t,m,f);break;case 5:var v=r.stateNode;r.flags&32&&(Re(v,""),r.flags&=-33);var _=kf(t);ec(t,_,v);break;case 3:case 4:var R=r.stateNode.containerInfo,P=kf(t);Tf(t,P,R);break;default:throw Error(l(161))}}catch(W){ut(t,t.return,W)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function _g(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;_g(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Qa(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)gg(t,n.alternate,n),n=n.sibling}function fr(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:xi(4,n,n.return),fr(n);break;case 1:Sa(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&fg(n,n.return,r),fr(n);break;case 27:Ts(n.stateNode);case 26:case 5:Sa(n,n.return),fr(n);break;case 22:n.memoizedState===null&&fr(n);break;case 30:fr(n);break;default:fr(n)}t=t.sibling}}function Va(t,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=t,m=n,v=m.flags;switch(m.tag){case 0:case 11:case 15:Va(f,m,r),bs(4,m);break;case 1:if(Va(f,m,r),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(P){ut(s,s.return,P)}if(s=m,f=s.updateQueue,f!==null){var _=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Jm(R[f],_)}catch(P){ut(s,s.return,P)}}r&&v&64&&ug(m),ys(m,m.return);break;case 27:mg(m);case 26:case 5:Va(f,m,r),r&&s===null&&v&4&&dg(m),ys(m,m.return);break;case 12:Va(f,m,r);break;case 31:Va(f,m,r),r&&v&4&&vg(f,m);break;case 13:Va(f,m,r),r&&v&4&&xg(f,m);break;case 22:m.memoizedState===null&&Va(f,m,r),ys(m,m.return);break;case 30:break;default:Va(f,m,r)}n=n.sibling}}function Cf(t,n){var r=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==r&&(t!=null&&t.refCount++,r!=null&&is(r))}function Rf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&is(t))}function da(t,n,r,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Sg(t,n,r,s),n=n.sibling}function Sg(t,n,r,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:da(t,n,r,s),f&2048&&bs(9,n);break;case 1:da(t,n,r,s);break;case 3:da(t,n,r,s),f&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&is(t)));break;case 12:if(f&2048){da(t,n,r,s),t=n.stateNode;try{var m=n.memoizedProps,v=m.id,_=m.onPostCommit;typeof _=="function"&&_(v,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){ut(n,n.return,R)}}else da(t,n,r,s);break;case 31:da(t,n,r,s);break;case 13:da(t,n,r,s);break;case 23:break;case 22:m=n.stateNode,v=n.alternate,n.memoizedState!==null?m._visibility&2?da(t,n,r,s):vs(t,n):m._visibility&2?da(t,n,r,s):(m._visibility|=2,tl(t,n,r,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Cf(v,n);break;case 24:da(t,n,r,s),f&2048&&Rf(n.alternate,n);break;default:da(t,n,r,s)}}function tl(t,n,r,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=t,v=n,_=r,R=s,P=v.flags;switch(v.tag){case 0:case 11:case 15:tl(m,v,_,R,f),bs(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?tl(m,v,_,R,f):vs(m,v):(W._visibility|=2,tl(m,v,_,R,f)),f&&P&2048&&Cf(v.alternate,v);break;case 24:tl(m,v,_,R,f),f&&P&2048&&Rf(v.alternate,v);break;default:tl(m,v,_,R,f)}n=n.sibling}}function vs(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=t,s=n,f=s.flags;switch(s.tag){case 22:vs(r,s),f&2048&&Cf(s.alternate,s);break;case 24:vs(r,s),f&2048&&Rf(s.alternate,s);break;default:vs(r,s)}n=n.sibling}}var xs=8192;function nl(t,n,r){if(t.subtreeFlags&xs)for(t=t.child;t!==null;)wg(t,n,r),t=t.sibling}function wg(t,n,r){switch(t.tag){case 26:nl(t,n,r),t.flags&xs&&t.memoizedState!==null&&I_(r,fa,t.memoizedState,t.memoizedProps);break;case 5:nl(t,n,r);break;case 3:case 4:var s=fa;fa=pc(t.stateNode.containerInfo),nl(t,n,r),fa=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=xs,xs=16777216,nl(t,n,r),xs=s):nl(t,n,r));break;default:nl(t,n,r)}}function Ng(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Es(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];$t=s,Tg(s,t)}Ng(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kg(t),t=t.sibling}function kg(t){switch(t.tag){case 0:case 11:case 15:Es(t),t.flags&2048&&xi(9,t,t.return);break;case 3:Es(t);break;case 12:Es(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,nc(t)):Es(t);break;default:Es(t)}}function nc(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];$t=s,Tg(s,t)}Ng(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:xi(8,n,n.return),nc(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,nc(n));break;default:nc(n)}t=t.sibling}}function Tg(t,n){for(;$t!==null;){var r=$t;switch(r.tag){case 0:case 11:case 15:xi(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var s=r.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:is(r.memoizedState.cache)}if(s=r.child,s!==null)s.return=r,$t=s;else e:for(r=t;$t!==null;){s=$t;var f=s.sibling,m=s.return;if(bg(s),s===r){$t=null;break e}if(f!==null){f.return=m,$t=f;break e}$t=m}}}var Z0={getCacheForType:function(t){var n=Zt(jt),r=n.data.get(t);return r===void 0&&(r=t(),n.data.set(t,r)),r},cacheSignal:function(){return Zt(jt).controller.signal}},W0=typeof WeakMap=="function"?WeakMap:Map,at=0,gt=null,Fe=null,Ke=0,ct=0,Bn=null,Ei=!1,al=!1,Of=!1,Xa=0,Rt=0,_i=0,dr=0,Mf=0,jn=0,il=0,_s=null,wn=null,Df=!1,ac=0,Ag=0,ic=1/0,rc=null,Si=null,Kt=0,wi=null,rl=null,Za=0,Lf=0,zf=null,Cg=null,Ss=0,If=null;function Hn(){return(at&2)!==0&&Ke!==0?Ke&-Ke:F.T!==null?qf():Or()}function Rg(){if(jn===0)if((Ke&536870912)===0||Ve){var t=Rr;Rr<<=1,(Rr&3932160)===0&&(Rr=262144),jn=t}else jn=536870912;return t=In.current,t!==null&&(t.flags|=32),jn}function Nn(t,n,r){(t===gt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(ll(t,0),Ni(t,Ke,jn,!1)),pt(t,r),((at&2)===0||t!==gt)&&(t===gt&&((at&2)===0&&(dr|=r),Rt===4&&Ni(t,Ke,jn,!1)),wa(t))}function Og(t,n,r){if((at&6)!==0)throw Error(l(327));var s=!r&&(n&127)===0&&(n&t.expiredLanes)===0||J(t,n),f=s?t_(t,n):Bf(t,n,!0),m=s;do{if(f===0){al&&!s&&Ni(t,n,0,!1);break}else{if(r=t.current.alternate,m&&!J0(r)){f=Bf(t,n,!1),m=!1;continue}if(f===2){if(m=n,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var _=t;f=_s;var R=_.current.memoizedState.isDehydrated;if(R&&(ll(_,v).flags|=256),v=Bf(_,v,!1),v!==2){if(Of&&!R){_.errorRecoveryDisabledLanes|=m,dr|=m,f=4;break e}m=wn,wn=f,m!==null&&(wn===null?wn=m:wn.push.apply(wn,m))}f=v}if(m=!1,f!==2)continue}}if(f===1){ll(t,0),Ni(t,n,0,!0);break}e:{switch(s=t,m=f,m){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Ni(s,n,jn,!Ei);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=ac+300-kt(),10<f)){if(Ni(s,n,jn,!Ei),D(s,0,!0)!==0)break e;Za=n,s.timeoutHandle=ob(Mg.bind(null,s,r,wn,rc,Df,n,jn,dr,il,Ei,m,"Throttled",-0,0),f);break e}Mg(s,r,wn,rc,Df,n,jn,dr,il,Ei,m,null,-0,0)}}break}while(!0);wa(t)}function Mg(t,n,r,s,f,m,v,_,R,P,W,ne,$,Y){if(t.timeoutHandle=-1,ne=n.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fe},wg(n,m,ne);var be=(m&62914560)===m?ac-kt():(m&4194048)===m?Ag-kt():0;if(be=U_(ne,be),be!==null){Za=m,t.cancelPendingCommit=be(Hg.bind(null,t,n,m,r,s,f,v,_,R,W,ne,null,$,Y)),Ni(t,m,v,!P);return}}Hg(t,n,m,r,s,f,v,_,R)}function J0(t){for(var n=t;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var s=0;s<r.length;s++){var f=r[s],m=f.getSnapshot;f=f.value;try{if(!Ln(m(),f))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ni(t,n,r,s){n&=~Mf,n&=~dr,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var f=n;0<f;){var m=31-lt(f),v=1<<m;s[m]=-1,f&=~v}r!==0&&me(t,r,n)}function lc(){return(at&6)===0?(ws(0),!1):!0}function Uf(){if(Fe!==null){if(ct===0)var t=Fe.return;else t=Fe,Ha=ar=null,Wu(t),Xr=null,ls=0,t=Fe;for(;t!==null;)cg(t.alternate,t),t=t.return;Fe=null}}function ll(t,n){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,v_(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),Za=0,Uf(),gt=t,Fe=r=Ba(t.current,null),Ke=n,ct=0,Bn=null,Ei=!1,al=J(t,n),Of=!1,il=jn=Mf=dr=_i=Rt=0,wn=_s=null,Df=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var f=31-lt(s),m=1<<f;n|=t[f],s&=~m}return Xa=n,To(),r}function Dg(t,n){ze=null,F.H=ms,n===Vr||n===zo?(n=Vm(),ct=3):n===Hu?(n=Vm(),ct=4):ct=n===pf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Bn=n,Fe===null&&(Rt=1,Vo(t,Vn(n,t.current)))}function Lg(){var t=In.current;return t===null?!0:(Ke&4194048)===Ke?Jn===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?t===Jn:!1}function zg(){var t=F.H;return F.H=ms,t===null?ms:t}function Ig(){var t=F.A;return F.A=Z0,t}function sc(){Rt=4,Ei||(Ke&4194048)!==Ke&&In.current!==null||(al=!0),(_i&134217727)===0&&(dr&134217727)===0||gt===null||Ni(gt,Ke,jn,!1)}function Bf(t,n,r){var s=at;at|=2;var f=zg(),m=Ig();(gt!==t||Ke!==n)&&(rc=null,ll(t,n)),n=!1;var v=Rt;e:do try{if(ct!==0&&Fe!==null){var _=Fe,R=Bn;switch(ct){case 8:Uf(),v=6;break e;case 3:case 2:case 9:case 6:In.current===null&&(n=!0);var P=ct;if(ct=0,Bn=null,sl(t,_,R,P),r&&al){v=0;break e}break;default:P=ct,ct=0,Bn=null,sl(t,_,R,P)}}e_(),v=Rt;break}catch(W){Dg(t,W)}while(!0);return n&&t.shellSuspendCounter++,Ha=ar=null,at=s,F.H=f,F.A=m,Fe===null&&(gt=null,Ke=0,To()),v}function e_(){for(;Fe!==null;)Ug(Fe)}function t_(t,n){var r=at;at|=2;var s=zg(),f=Ig();gt!==t||Ke!==n?(rc=null,ic=kt()+500,ll(t,n)):al=J(t,n);e:do try{if(ct!==0&&Fe!==null){n=Fe;var m=Bn;t:switch(ct){case 1:ct=0,Bn=null,sl(t,n,m,1);break;case 2:case 9:if(Ym(m)){ct=0,Bn=null,Bg(n);break}n=function(){ct!==2&&ct!==9||gt!==t||(ct=7),wa(t)},m.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:Ym(m)?(ct=0,Bn=null,Bg(n)):(ct=0,Bn=null,sl(t,n,m,7));break;case 5:var v=null;switch(Fe.tag){case 26:v=Fe.memoizedState;case 5:case 27:var _=Fe;if(v?Sb(v):_.stateNode.complete){ct=0,Bn=null;var R=_.sibling;if(R!==null)Fe=R;else{var P=_.return;P!==null?(Fe=P,oc(P)):Fe=null}break t}}ct=0,Bn=null,sl(t,n,m,5);break;case 6:ct=0,Bn=null,sl(t,n,m,6);break;case 8:Uf(),Rt=6;break e;default:throw Error(l(462))}}n_();break}catch(W){Dg(t,W)}while(!0);return Ha=ar=null,F.H=s,F.A=f,at=r,Fe!==null?0:(gt=null,Ke=0,To(),Rt)}function n_(){for(;Fe!==null&&!Hl();)Ug(Fe)}function Ug(t){var n=sg(t.alternate,t,Xa);t.memoizedProps=t.pendingProps,n===null?oc(t):Fe=n}function Bg(t){var n=t,r=n.alternate;switch(n.tag){case 15:case 0:n=tg(r,n,n.pendingProps,n.type,void 0,Ke);break;case 11:n=tg(r,n,n.pendingProps,n.type.render,n.ref,Ke);break;case 5:Wu(n);default:cg(r,n),n=Fe=Im(n,Xa),n=sg(r,n,Xa)}t.memoizedProps=t.pendingProps,n===null?oc(t):Fe=n}function sl(t,n,r,s){Ha=ar=null,Wu(n),Xr=null,ls=0;var f=n.return;try{if(G0(t,f,n,r,Ke)){Rt=1,Vo(t,Vn(r,t.current)),Fe=null;return}}catch(m){if(f!==null)throw Fe=f,m;Rt=1,Vo(t,Vn(r,t.current)),Fe=null;return}n.flags&32768?(Ve||s===1?t=!0:al||(Ke&536870912)!==0?t=!1:(Ei=t=!0,(s===2||s===9||s===3||s===6)&&(s=In.current,s!==null&&s.tag===13&&(s.flags|=16384))),jg(n,t)):oc(n)}function oc(t){var n=t;do{if((n.flags&32768)!==0){jg(n,Ei);return}t=n.return;var r=Y0(n.alternate,n,Xa);if(r!==null){Fe=r;return}if(n=n.sibling,n!==null){Fe=n;return}Fe=n=t}while(n!==null);Rt===0&&(Rt=5)}function jg(t,n){do{var r=Q0(t.alternate,t);if(r!==null){r.flags&=32767,Fe=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(t=t.sibling,t!==null)){Fe=t;return}Fe=t=r}while(t!==null);Rt=6,Fe=null}function Hg(t,n,r,s,f,m,v,_,R){t.cancelPendingCommit=null;do cc();while(Kt!==0);if((at&6)!==0)throw Error(l(327));if(n!==null){if(n===t.current)throw Error(l(177));if(m=n.lanes|n.childLanes,m|=Nu,ye(t,r,m,v,_,R),t===gt&&(Fe=gt=null,Ke=0),rl=n,wi=t,Za=r,Lf=m,zf=f,Cg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,l_(Te,function(){return Kg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=F.T,F.T=null,f=re.p,re.p=2,v=at,at|=4;try{V0(t,n,r)}finally{at=v,re.p=f,F.T=s}}Kt=1,Fg(),qg(),Pg()}}function Fg(){if(Kt===1){Kt=0;var t=wi,n=rl,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=F.T,F.T=null;var s=re.p;re.p=2;var f=at;at|=4;try{Eg(n,t);var m=Xf,v=Tm(t.containerInfo),_=m.focusedElem,R=m.selectionRange;if(v!==_&&_&&_.ownerDocument&&km(_.ownerDocument.documentElement,_)){if(R!==null&&xu(_)){var P=R.start,W=R.end;if(W===void 0&&(W=P),"selectionStart"in _)_.selectionStart=P,_.selectionEnd=Math.min(W,_.value.length);else{var ne=_.ownerDocument||document,$=ne&&ne.defaultView||window;if($.getSelection){var Y=$.getSelection(),be=_.textContent.length,Ae=Math.min(R.start,be),ht=R.end===void 0?Ae:Math.min(R.end,be);!Y.extend&&Ae>ht&&(v=ht,ht=Ae,Ae=v);var j=Nm(_,Ae),I=Nm(_,ht);if(j&&I&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var q=ne.createRange();q.setStart(j.node,j.offset),Y.removeAllRanges(),Ae>ht?(Y.addRange(q),Y.extend(I.node,I.offset)):(q.setEnd(I.node,I.offset),Y.addRange(q))}}}}for(ne=[],Y=_;Y=Y.parentNode;)Y.nodeType===1&&ne.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ne.length;_++){var ee=ne[_];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Ec=!!Vf,Xf=Vf=null}finally{at=f,re.p=s,F.T=r}}t.current=n,Kt=2}}function qg(){if(Kt===2){Kt=0;var t=wi,n=rl,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=F.T,F.T=null;var s=re.p;re.p=2;var f=at;at|=4;try{gg(t,n.alternate,n)}finally{at=f,re.p=s,F.T=r}}Kt=3}}function Pg(){if(Kt===4||Kt===3){Kt=0,Ar();var t=wi,n=rl,r=Za,s=Cg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Kt=5:(Kt=0,rl=wi=null,Gg(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Si=null),Da(r),n=n.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Qt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=F.T,f=re.p,re.p=2,F.T=null;try{for(var m=t.onRecoverableError,v=0;v<s.length;v++){var _=s[v];m(_.value,{componentStack:_.stack})}}finally{F.T=n,re.p=f}}(Za&3)!==0&&cc(),wa(t),f=t.pendingLanes,(r&261930)!==0&&(f&42)!==0?t===If?Ss++:(Ss=0,If=t):Ss=0,ws(0)}}function Gg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,is(n)))}function cc(){return Fg(),qg(),Pg(),Kg()}function Kg(){if(Kt!==5)return!1;var t=wi,n=Lf;Lf=0;var r=Da(Za),s=F.T,f=re.p;try{re.p=32>r?32:r,F.T=null,r=zf,zf=null;var m=wi,v=Za;if(Kt=0,rl=wi=null,Za=0,(at&6)!==0)throw Error(l(331));var _=at;if(at|=4,kg(m.current),Sg(m,m.current,v,r),at=_,ws(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Qt,m)}catch{}return!0}finally{re.p=f,F.T=s,Gg(t,n)}}function $g(t,n,r){n=Vn(r,n),n=mf(t.stateNode,n,2),t=bi(t,n,2),t!==null&&(pt(t,2),wa(t))}function ut(t,n,r){if(t.tag===3)$g(t,t,r);else for(;n!==null;){if(n.tag===3){$g(n,t,r);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Si===null||!Si.has(s))){t=Vn(r,t),r=Yp(2),s=bi(n,r,2),s!==null&&(Qp(r,s,n,t),pt(s,2),wa(s));break}}n=n.return}}function jf(t,n,r){var s=t.pingCache;if(s===null){s=t.pingCache=new W0;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(r)||(Of=!0,f.add(r),t=a_.bind(null,t,n,r),n.then(t,t))}function a_(t,n,r){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,gt===t&&(Ke&r)===r&&(Rt===4||Rt===3&&(Ke&62914560)===Ke&&300>kt()-ac?(at&2)===0&&ll(t,0):Mf|=r,il===Ke&&(il=0)),wa(t)}function Yg(t,n){n===0&&(n=Me()),t=er(t,n),t!==null&&(pt(t,n),wa(t))}function i_(t){var n=t.memoizedState,r=0;n!==null&&(r=n.retryLane),Yg(t,r)}function r_(t,n){var r=0;switch(t.tag){case 31:case 13:var s=t.stateNode,f=t.memoizedState;f!==null&&(r=f.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),Yg(t,r)}function l_(t,n){return Ma(t,n)}var uc=null,ol=null,Hf=!1,fc=!1,Ff=!1,ki=0;function wa(t){t!==ol&&t.next===null&&(ol===null?uc=ol=t:ol=ol.next=t),fc=!0,Hf||(Hf=!0,o_())}function ws(t,n){if(!Ff&&fc){Ff=!0;do for(var r=!1,s=uc;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var v=s.suspendedLanes,_=s.pingedLanes;m=(1<<31-lt(42|t)+1)-1,m&=f&~(v&~_),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(r=!0,Zg(s,m))}else m=Ke,m=D(s,s===gt?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||J(s,m)||(r=!0,Zg(s,m));s=s.next}while(r);Ff=!1}}function s_(){Qg()}function Qg(){fc=Hf=!1;var t=0;ki!==0&&y_()&&(t=ki);for(var n=kt(),r=null,s=uc;s!==null;){var f=s.next,m=Vg(s,n);m===0?(s.next=null,r===null?uc=f:r.next=f,f===null&&(ol=r)):(r=s,(t!==0||(m&3)!==0)&&(fc=!0)),s=f}Kt!==0&&Kt!==5||ws(t),ki!==0&&(ki=0)}function Vg(t,n){for(var r=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-lt(m),_=1<<v,R=f[v];R===-1?((_&r)===0||(_&s)!==0)&&(f[v]=he(_,n)):R<=n&&(t.expiredLanes|=_),m&=~_}if(n=gt,r=Ke,r=D(t,t===n?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,r===0||t===n&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Ki(s),t.callbackNode=null,t.callbackPriority=0;if((r&3)===0||J(t,r)){if(n=r&-r,n===t.callbackPriority)return n;switch(s!==null&&Ki(s),Da(r)){case 2:case 8:r=ue;break;case 32:r=Te;break;case 268435456:r=Je;break;default:r=Te}return s=Xg.bind(null,t),r=Ma(r,s),t.callbackPriority=n,t.callbackNode=r,n}return s!==null&&s!==null&&Ki(s),t.callbackPriority=2,t.callbackNode=null,2}function Xg(t,n){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(cc()&&t.callbackNode!==r)return null;var s=Ke;return s=D(t,t===gt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Og(t,s,n),Vg(t,kt()),t.callbackNode!=null&&t.callbackNode===r?Xg.bind(null,t):null)}function Zg(t,n){if(cc())return null;Og(t,n,!0)}function o_(){x_(function(){(at&6)!==0?Ma(Z,s_):Qg()})}function qf(){if(ki===0){var t=Yr;t===0&&(t=$i,$i<<=1,($i&261888)===0&&($i=256)),ki=t}return ki}function Wg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ci(""+t)}function Jg(t,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,t.id&&r.setAttribute("form",t.id),n.parentNode.insertBefore(r,n),t=new FormData(t),r.parentNode.removeChild(r),t}function c_(t,n,r,s,f){if(n==="submit"&&r&&r.stateNode===f){var m=Wg((f[an]||null).action),v=s.submitter;v&&(n=(n=v[an]||null)?Wg(n.formAction):v.getAttribute("formAction"),n!==null&&(m=n,v=null));var _=new So("action","action",null,s,f);t.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ki!==0){var R=v?Jg(f,v):new FormData(f);of(r,{pending:!0,data:R,method:f.method,action:m},null,R)}}else typeof m=="function"&&(_.preventDefault(),R=v?Jg(f,v):new FormData(f),of(r,{pending:!0,data:R,method:f.method,action:m},m,R))},currentTarget:f}]})}}for(var Pf=0;Pf<wu.length;Pf++){var Gf=wu[Pf],u_=Gf.toLowerCase(),f_=Gf[0].toUpperCase()+Gf.slice(1);ua(u_,"on"+f_)}ua(Rm,"onAnimationEnd"),ua(Om,"onAnimationIteration"),ua(Mm,"onAnimationStart"),ua("dblclick","onDoubleClick"),ua("focusin","onFocus"),ua("focusout","onBlur"),ua(T0,"onTransitionRun"),ua(A0,"onTransitionStart"),ua(C0,"onTransitionCancel"),ua(Dm,"onTransitionEnd"),se("onMouseEnter",["mouseout","mouseover"]),se("onMouseLeave",["mouseout","mouseover"]),se("onPointerEnter",["pointerout","pointerover"]),se("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),d_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function eb(t,n){n=(n&4)!==0;for(var r=0;r<t.length;r++){var s=t[r],f=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var v=s.length-1;0<=v;v--){var _=s[v],R=_.instance,P=_.currentTarget;if(_=_.listener,R!==m&&f.isPropagationStopped())break e;m=_,f.currentTarget=P;try{m(f)}catch(W){ko(W)}f.currentTarget=null,m=R}else for(v=0;v<s.length;v++){if(_=s[v],R=_.instance,P=_.currentTarget,_=_.listener,R!==m&&f.isPropagationStopped())break e;m=_,f.currentTarget=P;try{m(f)}catch(W){ko(W)}f.currentTarget=null,m=R}}}}function qe(t,n){var r=n[Fl];r===void 0&&(r=n[Fl]=new Set);var s=t+"__bubble";r.has(s)||(tb(n,t,2,!1),r.add(s))}function Kf(t,n,r){var s=0;n&&(s|=4),tb(r,t,s,n)}var dc="_reactListening"+Math.random().toString(36).slice(2);function $f(t){if(!t[dc]){t[dc]=!0,po.forEach(function(r){r!=="selectionchange"&&(d_.has(r)||Kf(r,!1,t),Kf(r,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[dc]||(n[dc]=!0,Kf("selectionchange",!1,n))}}function tb(t,n,r,s){switch(Rb(n)){case 2:var f=H_;break;case 8:f=F_;break;default:f=sd}r=f.bind(null,n,r,t),f=void 0,!fu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?t.addEventListener(n,r,{capture:!0,passive:f}):t.addEventListener(n,r,!0):f!==void 0?t.addEventListener(n,r,{passive:f}):t.addEventListener(n,r,!1)}function Yf(t,n,r,s,f){var m=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var _=s.stateNode.containerInfo;if(_===f)break;if(v===4)for(v=s.return;v!==null;){var R=v.tag;if((R===3||R===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;_!==null;){if(v=dn(_),v===null)return;if(R=v.tag,R===5||R===6||R===26||R===27){s=m=v;continue e}_=_.parentNode}}s=s.return}vo(function(){var P=m,W=Le(r),ne=[];e:{var $=Lm.get(t);if($!==void 0){var Y=So,be=t;switch(t){case"keypress":if(Eo(r)===0)break e;case"keydown":case"keyup":Y=r0;break;case"focusin":be="focus",Y=pu;break;case"focusout":be="blur",Y=pu;break;case"beforeblur":case"afterblur":Y=pu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=YE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=o0;break;case Rm:case Om:case Mm:Y=XE;break;case Dm:Y=u0;break;case"scroll":case"scrollend":Y=KE;break;case"wheel":Y=d0;break;case"copy":case"cut":case"paste":Y=WE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=fm;break;case"toggle":case"beforetoggle":Y=m0}var Ae=(n&4)!==0,ht=!Ae&&(t==="scroll"||t==="scrollend"),j=Ae?$!==null?$+"Capture":null:$;Ae=[];for(var I=P,q;I!==null;){var ee=I;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||j===null||(ee=Yl(I,j),ee!=null&&Ae.push(ks(I,ee,q))),ht)break;I=I.return}0<Ae.length&&($=new Y($,be,null,r,W),ne.push({event:$,listeners:Ae}))}}if((n&7)===0){e:{if($=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",$&&r!==xe&&(be=r.relatedTarget||r.fromElement)&&(dn(be)||be[ri]))break e;if((Y||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,Y?(be=r.relatedTarget||r.toElement,Y=P,be=be?dn(be):null,be!==null&&(ht=c(be),Ae=be.tag,be!==ht||Ae!==5&&Ae!==27&&Ae!==6)&&(be=null)):(Y=null,be=P),Y!==be)){if(Ae=cm,ee="onMouseLeave",j="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Ae=fm,ee="onPointerLeave",j="onPointerEnter",I="pointer"),ht=Y==null?$:li(Y),q=be==null?$:li(be),$=new Ae(ee,I+"leave",Y,r,W),$.target=ht,$.relatedTarget=q,ee=null,dn(W)===P&&(Ae=new Ae(j,I+"enter",be,r,W),Ae.target=q,Ae.relatedTarget=ht,ee=Ae),ht=ee,Y&&be)t:{for(Ae=h_,j=Y,I=be,q=0,ee=j;ee;ee=Ae(ee))q++;ee=0;for(var Ne=I;Ne;Ne=Ae(Ne))ee++;for(;0<q-ee;)j=Ae(j),q--;for(;0<ee-q;)I=Ae(I),ee--;for(;q--;){if(j===I||I!==null&&j===I.alternate){Ae=j;break t}j=Ae(j),I=Ae(I)}Ae=null}else Ae=null;Y!==null&&nb(ne,$,Y,Ae,!1),be!==null&&ht!==null&&nb(ne,ht,be,Ae,!0)}}e:{if($=P?li(P):window,Y=$.nodeName&&$.nodeName.toLowerCase(),Y==="select"||Y==="input"&&$.type==="file")var et=vm;else if(bm($))if(xm)et=w0;else{et=_0;var Ee=E0}else Y=$.nodeName,!Y||Y.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?P&&oi(P.elementType)&&(et=vm):et=S0;if(et&&(et=et(t,P))){ym(ne,et,r,W);break e}Ee&&Ee(t,$,P),t==="focusout"&&P&&$.type==="number"&&P.memoizedProps.value!=null&&Ir($,"number",$.value)}switch(Ee=P?li(P):window,t){case"focusin":(bm(Ee)||Ee.contentEditable==="true")&&(jr=Ee,Eu=P,ts=null);break;case"focusout":ts=Eu=jr=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,Am(ne,r,W);break;case"selectionchange":if(k0)break;case"keydown":case"keyup":Am(ne,r,W)}var Ie;if(bu)e:{switch(t){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Br?pm(t,r)&&($e="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&($e="onCompositionStart");$e&&(dm&&r.locale!=="ko"&&(Br||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Br&&(Ie=sm()):(ui=W,du="value"in ui?ui.value:ui.textContent,Br=!0)),Ee=hc(P,$e),0<Ee.length&&($e=new um($e,t,null,r,W),ne.push({event:$e,listeners:Ee}),Ie?$e.data=Ie:(Ie=gm(r),Ie!==null&&($e.data=Ie)))),(Ie=g0?b0(t,r):y0(t,r))&&($e=hc(P,"onBeforeInput"),0<$e.length&&(Ee=new um("onBeforeInput","beforeinput",null,r,W),ne.push({event:Ee,listeners:$e}),Ee.data=Ie)),c_(ne,t,P,r,W)}eb(ne,n)})}function ks(t,n,r){return{instance:t,listener:n,currentTarget:r}}function hc(t,n){for(var r=n+"Capture",s=[];t!==null;){var f=t,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Yl(t,r),f!=null&&s.unshift(ks(t,f,m)),f=Yl(t,n),f!=null&&s.push(ks(t,f,m))),t.tag===3)return s;t=t.return}return[]}function h_(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function nb(t,n,r,s,f){for(var m=n._reactName,v=[];r!==null&&r!==s;){var _=r,R=_.alternate,P=_.stateNode;if(_=_.tag,R!==null&&R===s)break;_!==5&&_!==26&&_!==27||P===null||(R=P,f?(P=Yl(r,m),P!=null&&v.unshift(ks(r,P,R))):f||(P=Yl(r,m),P!=null&&v.push(ks(r,P,R)))),r=r.return}v.length!==0&&t.push({event:n,listeners:v})}var m_=/\r\n?/g,p_=/\u0000|\uFFFD/g;function ab(t){return(typeof t=="string"?t:""+t).replace(m_,`
49
- `).replace(p_,"")}function ib(t,n){return n=ab(n),ab(t)===n}function dt(t,n,r,s,f,m){switch(r){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Re(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Re(t,""+s);break;case"className":Mn(t,"class",s);break;case"tabIndex":Mn(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(t,r,s);break;case"style":ot(t,s,m);break;case"data":if(n!=="object"){Mn(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||r!=="href")){t.removeAttribute(r);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(r);break}s=ci(""+s),t.setAttribute(r,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(r,"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 m=="function"&&(r==="formAction"?(n!=="input"&&dt(t,n,"name",f.name,f,null),dt(t,n,"formEncType",f.formEncType,f,null),dt(t,n,"formMethod",f.formMethod,f,null),dt(t,n,"formTarget",f.formTarget,f,null)):(dt(t,n,"encType",f.encType,f,null),dt(t,n,"method",f.method,f,null),dt(t,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(r);break}s=ci(""+s),t.setAttribute(r,s);break;case"onClick":s!=null&&(t.onclick=fe);break;case"onScroll":s!=null&&qe("scroll",t);break;case"onScrollEnd":s!=null&&qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(f.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}r=ci(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,""+s):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":s===!0?t.setAttribute(r,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,s):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(r,s):t.removeAttribute(r);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(r):t.setAttribute(r,s);break;case"popover":qe("beforetoggle",t),qe("toggle",t),rn(t,"popover",s);break;case"xlinkActuate":yn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":yn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":yn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":yn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":yn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":yn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":yn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":yn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":yn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":rn(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Ia.get(r)||r,rn(t,r,s))}}function Qf(t,n,r,s,f,m){switch(r){case"style":ot(t,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(f.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"children":typeof s=="string"?Re(t,s):(typeof s=="number"||typeof s=="bigint")&&Re(t,""+s);break;case"onScroll":s!=null&&qe("scroll",t);break;case"onScrollEnd":s!=null&&qe("scrollend",t);break;case"onClick":s!=null&&(t.onclick=fe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vi.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),m=t[an]||null,m=m!=null?m[r]:null,typeof m=="function"&&t.removeEventListener(n,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(r in t?t[r]=null:t.hasAttribute(r)&&t.removeAttribute(r)),t.addEventListener(n,s,f);break e}r in t?t[r]=s:s===!0?t.setAttribute(r,""):rn(t,r,s)}}}function Jt(t,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",t),qe("load",t);var s=!1,f=!1,m;for(m in r)if(r.hasOwnProperty(m)){var v=r[m];if(v!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,m,v,r,null)}}f&&dt(t,n,"srcSet",r.srcSet,r,null),s&&dt(t,n,"src",r.src,r,null);return;case"input":qe("invalid",t);var _=m=v=f=null,R=null,P=null;for(s in r)if(r.hasOwnProperty(s)){var W=r[s];if(W!=null)switch(s){case"name":f=W;break;case"type":v=W;break;case"checked":R=W;break;case"defaultChecked":P=W;break;case"value":m=W;break;case"defaultValue":_=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,n));break;default:dt(t,n,s,W,r,null)}}Xi(t,m,_,R,P,v,f,!1);return;case"select":qe("invalid",t),s=v=m=null;for(f in r)if(r.hasOwnProperty(f)&&(_=r[f],_!=null))switch(f){case"value":m=_;break;case"defaultValue":v=_;break;case"multiple":s=_;default:dt(t,n,f,_,r,null)}n=m,r=v,t.multiple=!!s,n!=null?Vt(t,!!s,n,!1):r!=null&&Vt(t,!!s,r,!0);return;case"textarea":qe("invalid",t),m=f=s=null;for(v in r)if(r.hasOwnProperty(v)&&(_=r[v],_!=null))switch(v){case"value":s=_;break;case"defaultValue":f=_;break;case"children":m=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(l(91));break;default:dt(t,n,v,_,r,null)}Ur(t,s,f,m);return;case"option":for(R in r)if(r.hasOwnProperty(R)&&(s=r[R],s!=null))switch(R){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(t,n,R,s,r,null)}return;case"dialog":qe("beforetoggle",t),qe("toggle",t),qe("cancel",t),qe("close",t);break;case"iframe":case"object":qe("load",t);break;case"video":case"audio":for(s=0;s<Ns.length;s++)qe(Ns[s],t);break;case"image":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"embed":case"source":case"link":qe("error",t),qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in r)if(r.hasOwnProperty(P)&&(s=r[P],s!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,P,s,r,null)}return;default:if(oi(n)){for(W in r)r.hasOwnProperty(W)&&(s=r[W],s!==void 0&&Qf(t,n,W,s,r,void 0));return}}for(_ in r)r.hasOwnProperty(_)&&(s=r[_],s!=null&&dt(t,n,_,s,r,null))}function g_(t,n,r,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,v=null,_=null,R=null,P=null,W=null;for(Y in r){var ne=r[Y];if(r.hasOwnProperty(Y)&&ne!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":R=ne;default:s.hasOwnProperty(Y)||dt(t,n,Y,null,s,ne)}}for(var $ in s){var Y=s[$];if(ne=r[$],s.hasOwnProperty($)&&(Y!=null||ne!=null))switch($){case"type":m=Y;break;case"name":f=Y;break;case"checked":P=Y;break;case"defaultChecked":W=Y;break;case"value":v=Y;break;case"defaultValue":_=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,n));break;default:Y!==ne&&dt(t,n,$,Y,s,ne)}}Gl(t,v,_,R,P,W,m,f);return;case"select":Y=v=_=$=null;for(m in r)if(R=r[m],r.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":Y=R;default:s.hasOwnProperty(m)||dt(t,n,m,null,s,R)}for(f in s)if(m=s[f],R=r[f],s.hasOwnProperty(f)&&(m!=null||R!=null))switch(f){case"value":$=m;break;case"defaultValue":_=m;break;case"multiple":v=m;default:m!==R&&dt(t,n,f,m,s,R)}n=_,r=v,s=Y,$!=null?Vt(t,!!r,$,!1):!!s!=!!r&&(n!=null?Vt(t,!!r,n,!0):Vt(t,!!r,r?[]:"",!1));return;case"textarea":Y=$=null;for(_ in r)if(f=r[_],r.hasOwnProperty(_)&&f!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:dt(t,n,_,null,s,f)}for(v in s)if(f=s[v],m=r[v],s.hasOwnProperty(v)&&(f!=null||m!=null))switch(v){case"value":$=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==m&&dt(t,n,v,f,s,m)}bo(t,$,Y);return;case"option":for(var be in r)if($=r[be],r.hasOwnProperty(be)&&$!=null&&!s.hasOwnProperty(be))switch(be){case"selected":t.selected=!1;break;default:dt(t,n,be,null,s,$)}for(R in s)if($=s[R],Y=r[R],s.hasOwnProperty(R)&&$!==Y&&($!=null||Y!=null))switch(R){case"selected":t.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:dt(t,n,R,$,s,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in r)$=r[Ae],r.hasOwnProperty(Ae)&&$!=null&&!s.hasOwnProperty(Ae)&&dt(t,n,Ae,null,s,$);for(P in s)if($=s[P],Y=r[P],s.hasOwnProperty(P)&&$!==Y&&($!=null||Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(l(137,n));break;default:dt(t,n,P,$,s,Y)}return;default:if(oi(n)){for(var ht in r)$=r[ht],r.hasOwnProperty(ht)&&$!==void 0&&!s.hasOwnProperty(ht)&&Qf(t,n,ht,void 0,s,$);for(W in s)$=s[W],Y=r[W],!s.hasOwnProperty(W)||$===Y||$===void 0&&Y===void 0||Qf(t,n,W,$,s,Y);return}}for(var j in r)$=r[j],r.hasOwnProperty(j)&&$!=null&&!s.hasOwnProperty(j)&&dt(t,n,j,null,s,$);for(ne in s)$=s[ne],Y=r[ne],!s.hasOwnProperty(ne)||$===Y||$==null&&Y==null||dt(t,n,ne,$,s,Y)}function rb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b_(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,r=performance.getEntriesByType("resource"),s=0;s<r.length;s++){var f=r[s],m=f.transferSize,v=f.initiatorType,_=f.duration;if(m&&_&&rb(v)){for(v=0,_=f.responseEnd,s+=1;s<r.length;s++){var R=r[s],P=R.startTime;if(P>_)break;var W=R.transferSize,ne=R.initiatorType;W&&rb(ne)&&(R=R.responseEnd,v+=W*(R<_?1:(_-P)/(R-P)))}if(--s,n+=8*(m+v)/(f.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vf=null,Xf=null;function mc(t){return t.nodeType===9?t:t.ownerDocument}function lb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sb(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Zf(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Wf=null;function y_(){var t=window.event;return t&&t.type==="popstate"?t===Wf?!1:(Wf=t,!0):(Wf=null,!1)}var ob=typeof setTimeout=="function"?setTimeout:void 0,v_=typeof clearTimeout=="function"?clearTimeout:void 0,cb=typeof Promise=="function"?Promise:void 0,x_=typeof queueMicrotask=="function"?queueMicrotask:typeof cb<"u"?function(t){return cb.resolve(null).then(t).catch(E_)}:ob;function E_(t){setTimeout(function(){throw t})}function Ti(t){return t==="head"}function ub(t,n){var r=n,s=0;do{var f=r.nextSibling;if(t.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(s===0){t.removeChild(f),dl(n);return}s--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")s++;else if(r==="html")Ts(t.ownerDocument.documentElement);else if(r==="head"){r=t.ownerDocument.head,Ts(r);for(var m=r.firstChild;m;){var v=m.nextSibling,_=m.nodeName;m[Qi]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=v}}else r==="body"&&Ts(t.ownerDocument.body);r=f}while(r);dl(n)}function fb(t,n){var r=t;t=0;do{var s=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(t===0)break;t--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||t++;r=s}while(r)}function Jf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Jf(r),ql(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}t.removeChild(r)}}function __(t,n,r,s){for(;t.nodeType===1;){var f=r;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Qi])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=ea(t.nextSibling),t===null)break}return null}function S_(t,n,r){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=ea(t.nextSibling),t===null))return null;return t}function db(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=ea(t.nextSibling),t===null))return null;return t}function ed(t){return t.data==="$?"||t.data==="$~"}function td(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function w_(t,n){var r=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||r.readyState!=="loading")n();else{var s=function(){n(),r.removeEventListener("DOMContentLoaded",s)};r.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function ea(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var nd=null;function hb(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"||r==="/&"){if(n===0)return ea(t.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}t=t.nextSibling}return null}function mb(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return t;n--}else r!=="/$"&&r!=="/&"||n++}t=t.previousSibling}return null}function pb(t,n,r){switch(n=mc(r),t){case"html":if(t=n.documentElement,!t)throw Error(l(452));return t;case"head":if(t=n.head,!t)throw Error(l(453));return t;case"body":if(t=n.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function Ts(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ql(t)}var ta=new Map,gb=new Set;function pc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Wa=re.d;re.d={f:N_,r:k_,D:T_,C:A_,L:C_,m:R_,X:M_,S:O_,M:D_};function N_(){var t=Wa.f(),n=lc();return t||n}function k_(t){var n=La(t);n!==null&&n.tag===5&&n.type==="form"?Dp(n):Wa.r(t)}var cl=typeof document>"u"?null:document;function bb(t,n,r){var s=cl;if(s&&typeof n=="string"&&n){var f=vn(n);f='link[rel="'+t+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),gb.has(f)||(gb.add(f),t={rel:t,crossOrigin:r,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),Jt(n,"link",t),Ut(n),s.head.appendChild(n)))}}function T_(t){Wa.D(t),bb("dns-prefetch",t,null)}function A_(t,n){Wa.C(t,n),bb("preconnect",t,n)}function C_(t,n,r){Wa.L(t,n,r);var s=cl;if(s&&t&&n){var f='link[rel="preload"][as="'+vn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+vn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+vn(r.imageSizes)+'"]')):f+='[href="'+vn(t)+'"]';var m=f;switch(n){case"style":m=ul(t);break;case"script":m=fl(t)}ta.has(m)||(t=g({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:t,as:n},r),ta.set(m,t),s.querySelector(f)!==null||n==="style"&&s.querySelector(As(m))||n==="script"&&s.querySelector(Cs(m))||(n=s.createElement("link"),Jt(n,"link",t),Ut(n),s.head.appendChild(n)))}}function R_(t,n){Wa.m(t,n);var r=cl;if(r&&t){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+vn(s)+'"][href="'+vn(t)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=fl(t)}if(!ta.has(m)&&(t=g({rel:"modulepreload",href:t},n),ta.set(m,t),r.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Cs(m)))return}s=r.createElement("link"),Jt(s,"link",t),Ut(s),r.head.appendChild(s)}}}function O_(t,n,r){Wa.S(t,n,r);var s=cl;if(s&&t){var f=si(s).hoistableStyles,m=ul(t);n=n||"default";var v=f.get(m);if(!v){var _={loading:0,preload:null};if(v=s.querySelector(As(m)))_.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},r),(r=ta.get(m))&&ad(t,r);var R=v=s.createElement("link");Ut(R),Jt(R,"link",t),R._p=new Promise(function(P,W){R.onload=P,R.onerror=W}),R.addEventListener("load",function(){_.loading|=1}),R.addEventListener("error",function(){_.loading|=2}),_.loading|=4,gc(v,n,s)}v={type:"stylesheet",instance:v,count:1,state:_},f.set(m,v)}}}function M_(t,n){Wa.X(t,n);var r=cl;if(r&&t){var s=si(r).hoistableScripts,f=fl(t),m=s.get(f);m||(m=r.querySelector(Cs(f)),m||(t=g({src:t,async:!0},n),(n=ta.get(f))&&id(t,n),m=r.createElement("script"),Ut(m),Jt(m,"link",t),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function D_(t,n){Wa.M(t,n);var r=cl;if(r&&t){var s=si(r).hoistableScripts,f=fl(t),m=s.get(f);m||(m=r.querySelector(Cs(f)),m||(t=g({src:t,async:!0,type:"module"},n),(n=ta.get(f))&&id(t,n),m=r.createElement("script"),Ut(m),Jt(m,"link",t),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function yb(t,n,r,s){var f=(f=ve.current)?pc(f):null;if(!f)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=ul(r.href),r=si(f).hoistableStyles,s=r.get(n),s||(s={type:"style",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){t=ul(r.href);var m=si(f).hoistableStyles,v=m.get(t);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=f.querySelector(As(t)))&&!m._p&&(v.instance=m,v.state.loading=5),ta.has(t)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},ta.set(t,r),m||L_(f,t,r,v.state))),n&&s===null)throw Error(l(528,""));return v}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=fl(r),r=si(f).hoistableScripts,s=r.get(n),s||(s={type:"script",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function ul(t){return'href="'+vn(t)+'"'}function As(t){return'link[rel="stylesheet"]['+t+"]"}function vb(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function L_(t,n,r,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Jt(n,"link",r),Ut(n),t.head.appendChild(n))}function fl(t){return'[src="'+vn(t)+'"]'}function Cs(t){return"script[async]"+t}function xb(t,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+vn(r.href)+'"]');if(s)return n.instance=s,Ut(s),s;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),Ut(s),Jt(s,"style",f),gc(s,r.precedence,t),n.instance=s;case"stylesheet":f=ul(r.href);var m=t.querySelector(As(f));if(m)return n.state.loading|=4,n.instance=m,Ut(m),m;s=vb(r),(f=ta.get(f))&&ad(s,f),m=(t.ownerDocument||t).createElement("link"),Ut(m);var v=m;return v._p=new Promise(function(_,R){v.onload=_,v.onerror=R}),Jt(m,"link",s),n.state.loading|=4,gc(m,r.precedence,t),n.instance=m;case"script":return m=fl(r.src),(f=t.querySelector(Cs(m)))?(n.instance=f,Ut(f),f):(s=r,(f=ta.get(m))&&(s=g({},r),id(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),Ut(f),Jt(f,"link",s),t.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,gc(s,r.precedence,t));return n.instance}function gc(t,n,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,v=0;v<s.length;v++){var _=s[v];if(_.dataset.precedence===n)m=_;else if(m!==f)break}m?m.parentNode.insertBefore(t,m.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(t,n.firstChild))}function ad(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function id(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var bc=null;function Eb(t,n,r){if(bc===null){var s=new Map,f=bc=new Map;f.set(r,s)}else f=bc,s=f.get(r),s||(s=new Map,f.set(r,s));if(s.has(t))return s;for(s.set(t,null),r=r.getElementsByTagName(t),f=0;f<r.length;f++){var m=r[f];if(!(m[Qi]||m[Dt]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(n)||"";v=t+v;var _=s.get(v);_?_.push(m):s.set(v,[m])}}return s}function _b(t,n,r){t=t.ownerDocument||t,t.head.insertBefore(r,n==="title"?t.querySelector("head > title"):null)}function z_(t,n,r){if(r===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Sb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function I_(t,n,r,s){if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=ul(s.href),m=n.querySelector(As(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=yc.bind(t),n.then(t,t)),r.state.loading|=4,r.instance=m,Ut(m);return}m=n.ownerDocument||n,s=vb(s),(f=ta.get(f))&&ad(s,f),m=m.createElement("link"),Ut(m);var v=m;v._p=new Promise(function(_,R){v.onload=_,v.onerror=R}),Jt(m,"link",s),r.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(t.count++,r=yc.bind(t),n.addEventListener("load",r),n.addEventListener("error",r))}}var rd=0;function U_(t,n){return t.stylesheets&&t.count===0&&xc(t,t.stylesheets),0<t.count||0<t.imgCount?function(r){var s=setTimeout(function(){if(t.stylesheets&&xc(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+n);0<t.imgBytes&&rd===0&&(rd=62500*b_());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xc(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>rd?50:800)+n);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function yc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vc=null;function xc(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vc=new Map,n.forEach(B_,t),vc=null,yc.call(t))}function B_(t,n){if(!(n.state.loading&4)){var r=vc.get(t);if(r)var s=r.get(null);else{r=new Map,vc.set(t,r);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var v=f[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(r.set(v.dataset.precedence,v),s=v)}s&&r.set(null,s)}f=n.instance,v=f.getAttribute("data-precedence"),m=r.get(v)||s,m===s&&r.set(null,f),r.set(v,f),this.count++,s=yc.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),n.state.loading|=4}}var Rs={$$typeof:M,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function j_(t,n,r,s,f,m,v,_,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.hiddenUpdates=xt(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function wb(t,n,r,s,f,m,v,_,R,P,W,ne){return t=new j_(t,n,r,v,R,P,W,ne,_),n=1,m===!0&&(n|=24),m=zn(3,null,null,n),t.current=m,m.stateNode=t,n=Uu(),n.refCount++,t.pooledCache=n,n.refCount++,m.memoizedState={element:s,isDehydrated:r,cache:n},Fu(m),t}function Nb(t){return t?(t=qr,t):qr}function kb(t,n,r,s,f,m){f=Nb(f),s.context===null?s.context=f:s.pendingContext=f,s=gi(n),s.payload={element:r},m=m===void 0?null:m,m!==null&&(s.callback=m),r=bi(t,s,n),r!==null&&(Nn(r,t,n),os(r,t,n))}function Tb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<n?r:n}}function ld(t,n){Tb(t,n),(t=t.alternate)&&Tb(t,n)}function Ab(t){if(t.tag===13||t.tag===31){var n=er(t,67108864);n!==null&&Nn(n,t,67108864),ld(t,67108864)}}function Cb(t){if(t.tag===13||t.tag===31){var n=Hn();n=St(n);var r=er(t,n);r!==null&&Nn(r,t,n),ld(t,n)}}var Ec=!0;function H_(t,n,r,s){var f=F.T;F.T=null;var m=re.p;try{re.p=2,sd(t,n,r,s)}finally{re.p=m,F.T=f}}function F_(t,n,r,s){var f=F.T;F.T=null;var m=re.p;try{re.p=8,sd(t,n,r,s)}finally{re.p=m,F.T=f}}function sd(t,n,r,s){if(Ec){var f=od(s);if(f===null)Yf(t,n,s,_c,r),Ob(t,s);else if(P_(f,t,n,r,s))s.stopPropagation();else if(Ob(t,s),n&4&&-1<q_.indexOf(t)){for(;f!==null;){var m=La(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=bn(m.pendingLanes);if(v!==0){var _=m;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var R=1<<31-lt(v);_.entanglements[1]|=R,v&=~R}wa(m),(at&6)===0&&(ic=kt()+500,ws(0))}}break;case 31:case 13:_=er(m,2),_!==null&&Nn(_,m,2),lc(),ld(m,2)}if(m=od(s),m===null&&Yf(t,n,s,_c,r),m===f)break;f=m}f!==null&&s.stopPropagation()}else Yf(t,n,s,null,r)}}function od(t){return t=Le(t),cd(t)}var _c=null;function cd(t){if(_c=null,t=dn(t),t!==null){var n=c(t);if(n===null)t=null;else{var r=n.tag;if(r===13){if(t=u(n),t!==null)return t;t=null}else if(r===31){if(t=d(n),t!==null)return t;t=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return _c=t,null}function Rb(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cr()){case Z:return 2;case ue:return 8;case Te:case je:return 32;case Je:return 268435456;default:return 32}default:return 32}}var ud=!1,Ai=null,Ci=null,Ri=null,Os=new Map,Ms=new Map,Oi=[],q_="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 Ob(t,n){switch(t){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ci=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":Os.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ms.delete(n.pointerId)}}function Ds(t,n,r,s,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:n,domEventName:r,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},n!==null&&(n=La(n),n!==null&&Ab(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function P_(t,n,r,s,f){switch(n){case"focusin":return Ai=Ds(Ai,t,n,r,s,f),!0;case"dragenter":return Ci=Ds(Ci,t,n,r,s,f),!0;case"mouseover":return Ri=Ds(Ri,t,n,r,s,f),!0;case"pointerover":var m=f.pointerId;return Os.set(m,Ds(Os.get(m)||null,t,n,r,s,f)),!0;case"gotpointercapture":return m=f.pointerId,Ms.set(m,Ds(Ms.get(m)||null,t,n,r,s,f)),!0}return!1}function Mb(t){var n=dn(t.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=u(r),n!==null){t.blockedOn=n,Mr(t.priority,function(){Cb(r)});return}}else if(n===31){if(n=d(r),n!==null){t.blockedOn=n,Mr(t.priority,function(){Cb(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Sc(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var r=od(t.nativeEvent);if(r===null){r=t.nativeEvent;var s=new r.constructor(r.type,r);xe=s,r.target.dispatchEvent(s),xe=null}else return n=La(r),n!==null&&Ab(n),t.blockedOn=r,!1;n.shift()}return!0}function Db(t,n,r){Sc(t)&&r.delete(n)}function G_(){ud=!1,Ai!==null&&Sc(Ai)&&(Ai=null),Ci!==null&&Sc(Ci)&&(Ci=null),Ri!==null&&Sc(Ri)&&(Ri=null),Os.forEach(Db),Ms.forEach(Db)}function wc(t,n){t.blockedOn===n&&(t.blockedOn=null,ud||(ud=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,G_)))}var Nc=null;function Lb(t){Nc!==t&&(Nc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Nc===t&&(Nc=null);for(var n=0;n<t.length;n+=3){var r=t[n],s=t[n+1],f=t[n+2];if(typeof s!="function"){if(cd(s||r)===null)continue;break}var m=La(r);m!==null&&(t.splice(n,3),n-=3,of(m,{pending:!0,data:f,method:r.method,action:s},s,f))}}))}function dl(t){function n(R){return wc(R,t)}Ai!==null&&wc(Ai,t),Ci!==null&&wc(Ci,t),Ri!==null&&wc(Ri,t),Os.forEach(n),Ms.forEach(n);for(var r=0;r<Oi.length;r++){var s=Oi[r];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Oi.length&&(r=Oi[0],r.blockedOn===null);)Mb(r),r.blockedOn===null&&Oi.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var f=r[s],m=r[s+1],v=f[an]||null;if(typeof m=="function")v||Lb(r);else if(v){var _=null;if(m&&m.hasAttribute("formAction")){if(f=m,v=m[an]||null)_=v.formAction;else if(cd(f)!==null)continue}else _=v.action;typeof _=="function"?r[s+1]=_:(r.splice(s,3),s-=3),Lb(r)}}}function zb(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),s||setTimeout(r,20)}function r(){if(!s&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function fd(t){this._internalRoot=t}kc.prototype.render=fd.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var r=n.current,s=Hn();kb(r,s,t,n,null,null)},kc.prototype.unmount=fd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;kb(t.current,2,null,t,null,null),lc(),n[ri]=null}};function kc(t){this._internalRoot=t}kc.prototype.unstable_scheduleHydration=function(t){if(t){var n=Or();t={blockedOn:null,target:t,priority:n};for(var r=0;r<Oi.length&&n!==0&&n<Oi[r].priority;r++);Oi.splice(r,0,t),r===0&&Mb(t)}};var Ib=a.version;if(Ib!=="19.2.5")throw Error(l(527,Ib,"19.2.5"));re.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=h(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var K_={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{Qt=Tc.inject(K_),At=Tc}catch{}}return zs.createRoot=function(t,n){if(!o(t))throw Error(l(299));var r=!1,s="",f=Pp,m=Gp,v=Kp;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=wb(t,1,!1,null,null,r,s,null,f,m,v,zb),t[ri]=n.current,$f(t),new fd(n)},zs.hydrateRoot=function(t,n,r){if(!o(t))throw Error(l(299));var s=!1,f="",m=Pp,v=Gp,_=Kp,R=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),n=wb(t,1,!0,n,r??null,s,f,R,m,v,_,zb),n.context=Nb(null),r=n.current,s=Hn(),s=St(s),f=gi(s),f.callback=null,bi(r,f,s),r=s,n.current.lanes=r,pt(n,r),wa(n),t[ri]=n.current,$f(t),new kc(n)},zs.version="19.2.5",zs}var Qb;function aS(){if(Qb)return pd.exports;Qb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),pd.exports=nS(),pd.exports}var iS=aS(),ao=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gr,zi,vl,yv,rS=(yv=class extends ao{constructor(){super();Ce(this,gr);Ce(this,zi);Ce(this,vl);pe(this,vl,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){U(this,zi)||this.setEventListener(U(this,vl))}onUnsubscribe(){var a;this.hasListeners()||((a=U(this,zi))==null||a.call(this),pe(this,zi,void 0))}setEventListener(a){var i;pe(this,vl,a),(i=U(this,zi))==null||i.call(this),pe(this,zi,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){U(this,gr)!==a&&(pe(this,gr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof U(this,gr)=="boolean"?U(this,gr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},gr=new WeakMap,zi=new WeakMap,vl=new WeakMap,yv),Eh=new rS,lS={setTimeout:(e,a)=>setTimeout(e,a),clearTimeout:e=>clearTimeout(e),setInterval:(e,a)=>setInterval(e,a),clearInterval:e=>clearInterval(e)},Ii,yh,vv,sS=(vv=class{constructor(){Ce(this,Ii,lS);Ce(this,yh,!1)}setTimeoutProvider(e){pe(this,Ii,e)}setTimeout(e,a){return U(this,Ii).setTimeout(e,a)}clearTimeout(e){U(this,Ii).clearTimeout(e)}setInterval(e,a){return U(this,Ii).setInterval(e,a)}clearInterval(e){U(this,Ii).clearInterval(e)}},Ii=new WeakMap,yh=new WeakMap,vv),pr=new sS;function oS(e){setTimeout(e,0)}var cS=typeof window>"u"||"Deno"in globalThis;function An(){}function uS(e,a){return typeof e=="function"?e(a):e}function Pd(e){return typeof e=="number"&&e>=0&&e!==1/0}function Av(e,a){return Math.max(e+(a||0)-Date.now(),0)}function Pi(e,a){return typeof e=="function"?e(a):e}function ia(e,a){return typeof e=="function"?e(a):e}function Vb(e,a){const{type:i="all",exact:l,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(l){if(a.queryHash!==_h(u,a.options))return!1}else if(!Ys(a.queryKey,u))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof d=="boolean"&&a.isStale()!==d||o&&o!==a.state.fetchStatus||c&&!c(a))}function Xb(e,a){const{exact:i,status:l,predicate:o,mutationKey:c}=e;if(c){if(!a.options.mutationKey)return!1;if(i){if($s(a.options.mutationKey)!==$s(c))return!1}else if(!Ys(a.options.mutationKey,c))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function _h(e,a){return((a==null?void 0:a.queryKeyHashFn)||$s)(e)}function $s(e){return JSON.stringify(e,(a,i)=>Kd(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function Ys(e,a){return e===a?!0:typeof e!=typeof a?!1:e&&a&&typeof e=="object"&&typeof a=="object"?Object.keys(a).every(i=>Ys(e[i],a[i])):!1}var fS=Object.prototype.hasOwnProperty;function Cv(e,a,i=0){if(e===a)return e;if(i>500)return a;const l=Zb(e)&&Zb(a);if(!l&&!(Kd(e)&&Kd(a)))return a;const c=(l?e:Object.keys(e)).length,u=l?a:Object.keys(a),d=u.length,p=l?new Array(d):{};let h=0;for(let b=0;b<d;b++){const g=l?b:u[b],E=e[g],x=a[g];if(E===x){p[g]=E,(l?b<c:fS.call(e,g))&&h++;continue}if(E===null||x===null||typeof E!="object"||typeof x!="object"){p[g]=x;continue}const S=Cv(E,x,i+1);p[g]=S,S===E&&h++}return c===d&&h===c?e:p}function Gd(e,a){if(!a||Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(e[i]!==a[i])return!1;return!0}function Zb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kd(e){if(!Wb(e))return!1;const a=e.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!Wb(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Wb(e){return Object.prototype.toString.call(e)==="[object Object]"}function dS(e){return new Promise(a=>{pr.setTimeout(a,e)})}function $d(e,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,a):i.structuralSharing!==!1?Cv(e,a):a}function hS(e,a,i=0){const l=[...e,a];return i&&l.length>i?l.slice(1):l}function mS(e,a,i=0){const l=[a,...e];return i&&l.length>i?l.slice(0,-1):l}var Sh=Symbol();function Rv(e,a){return!e.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!e.queryFn||e.queryFn===Sh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ov(e,a){return typeof e=="function"?e(...a):!!e}function pS(e,a,i){let l=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=a()),l||(l=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),e}var Qs=(()=>{let e=()=>cS;return{isServer(){return e()},setIsServer(a){e=a}}})();function Yd(){let e,a;const i=new Promise((o,c)=>{e=o,a=c});i.status="pending",i.catch(()=>{});function l(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{l({status:"fulfilled",value:o}),e(o)},i.reject=o=>{l({status:"rejected",reason:o}),a(o)},i}var gS=oS;function bS(){let e=[],a=0,i=d=>{d()},l=d=>{d()},o=gS;const c=d=>{a?e.push(d):o(()=>{i(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{l(()=>{d.forEach(p=>{i(p)})})})};return{batch:d=>{let p;a++;try{p=d()}finally{a--,a||u()}return p},batchCalls:d=>(...p)=>{c(()=>{d(...p)})},schedule:c,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{o=d}}}var en=bS(),xl,Ui,El,xv,yS=(xv=class extends ao{constructor(){super();Ce(this,xl,!0);Ce(this,Ui);Ce(this,El);pe(this,El,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),l=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){U(this,Ui)||this.setEventListener(U(this,El))}onUnsubscribe(){var a;this.hasListeners()||((a=U(this,Ui))==null||a.call(this),pe(this,Ui,void 0))}setEventListener(a){var i;pe(this,El,a),(i=U(this,Ui))==null||i.call(this),pe(this,Ui,a(this.setOnline.bind(this)))}setOnline(a){U(this,xl)!==a&&(pe(this,xl,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return U(this,xl)}},xl=new WeakMap,Ui=new WeakMap,El=new WeakMap,xv),Pc=new yS;function vS(e){return Math.min(1e3*2**e,3e4)}function Mv(e){return(e??"online")==="online"?Pc.isOnline():!0}var Qd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Dv(e){let a=!1,i=0,l;const o=Yd(),c=()=>o.status!=="pending",u=w=>{var T;if(!c()){const N=new Qd(w);E(N),(T=e.onCancel)==null||T.call(e,N)}},d=()=>{a=!0},p=()=>{a=!1},h=()=>Eh.isFocused()&&(e.networkMode==="always"||Pc.isOnline())&&e.canRun(),b=()=>Mv(e.networkMode)&&e.canRun(),g=w=>{c()||(l==null||l(),o.resolve(w))},E=w=>{c()||(l==null||l(),o.reject(w))},x=()=>new Promise(w=>{var T;l=N=>{(c()||h())&&w(N)},(T=e.onPause)==null||T.call(e)}).then(()=>{var w;l=void 0,c()||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(c())return;let w;const T=i===0?e.initialPromise:void 0;try{w=T??e.fn()}catch(N){w=Promise.reject(N)}Promise.resolve(w).then(g).catch(N=>{var L;if(c())return;const z=e.retry??(Qs.isServer()?0:3),M=e.retryDelay??vS,H=typeof M=="function"?M(i,N):M,K=z===!0||typeof z=="number"&&i<z||typeof z=="function"&&z(i,N);if(a||!K){E(N);return}i++,(L=e.onFail)==null||L.call(e,i,N),dS(H).then(()=>h()?void 0:x()).then(()=>{a?E(N):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(l==null||l(),o),cancelRetry:d,continueRetry:p,canStart:b,start:()=>(b()?S():x().then(S),o)}}var br,Ev,Lv=(Ev=class{constructor(){Ce(this,br)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pd(this.gcTime)&&pe(this,br,pr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,br)!==void 0&&(pr.clearTimeout(U(this,br)),pe(this,br,void 0))}},br=new WeakMap,Ev),yr,_l,aa,vr,Yt,Ws,xr,qn,zv,Ja,_v,xS=(_v=class extends Lv{constructor(a){super();Ce(this,qn);Ce(this,yr);Ce(this,_l);Ce(this,aa);Ce(this,vr);Ce(this,Yt);Ce(this,Ws);Ce(this,xr);pe(this,xr,!1),pe(this,Ws,a.defaultOptions),this.setOptions(a.options),this.observers=[],pe(this,vr,a.client),pe(this,aa,U(this,vr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,pe(this,yr,ey(this.options)),this.state=a.state??U(this,yr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=U(this,Yt))==null?void 0:a.promise}setOptions(a){if(this.options={...U(this,Ws),...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ey(this.options);i.data!==void 0&&(this.setState(Jb(i.data,i.dataUpdatedAt)),pe(this,yr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,aa).remove(this)}setData(a,i){const l=$d(this.state.data,a,this.options);return Ye(this,qn,Ja).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(a,i){Ye(this,qn,Ja).call(this,{type:"setState",state:a,setStateOptions:i})}cancel(a){var l,o;const i=(l=U(this,Yt))==null?void 0:l.promise;return(o=U(this,Yt))==null||o.cancel(a),i?i.then(An).catch(An):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,yr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>ia(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Pi(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Av(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=U(this,Yt))==null||i.continue()}onOnline(){var i;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=U(this,Yt))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),U(this,aa).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(U(this,Yt)&&(U(this,xr)||Ye(this,qn,zv).call(this)?U(this,Yt).cancel({revert:!0}):U(this,Yt).cancelRetry()),this.scheduleGc()),U(this,aa).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ye(this,qn,Ja).call(this,{type:"invalidate"})}async fetch(a,i){var p,h,b,g,E,x,S,w,T,N,z,M;if(this.state.fetchStatus!=="idle"&&((p=U(this,Yt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(U(this,Yt))return U(this,Yt).continueRetry(),U(this,Yt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const H=this.observers.find(K=>K.options.queryFn);H&&this.setOptions(H.options)}const l=new AbortController,o=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(pe(this,xr,!0),l.signal)})},c=()=>{const H=Rv(this.options,i),L=(()=>{const G={client:U(this,vr),queryKey:this.queryKey,meta:this.meta};return o(G),G})();return pe(this,xr,!1),this.options.persister?this.options.persister(H,L,this):H(L)},d=(()=>{const H={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:U(this,vr),state:this.state,fetchFn:c};return o(H),H})();(h=this.options.behavior)==null||h.onFetch(d,this),pe(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=d.fetchOptions)==null?void 0:b.meta))&&Ye(this,qn,Ja).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),pe(this,Yt,Dv({initialPromise:i==null?void 0:i.initialPromise,fn:d.fetchFn,onCancel:H=>{H instanceof Qd&&H.revert&&this.setState({...U(this,_l),fetchStatus:"idle"}),l.abort()},onFail:(H,K)=>{Ye(this,qn,Ja).call(this,{type:"failed",failureCount:H,error:K})},onPause:()=>{Ye(this,qn,Ja).call(this,{type:"pause"})},onContinue:()=>{Ye(this,qn,Ja).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const H=await U(this,Yt).start();if(H===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(H),(x=(E=U(this,aa).config).onSuccess)==null||x.call(E,H,this),(w=(S=U(this,aa).config).onSettled)==null||w.call(S,H,this.state.error,this),H}catch(H){if(H instanceof Qd){if(H.silent)return U(this,Yt).promise;if(H.revert){if(this.state.data===void 0)throw H;return this.state.data}}throw Ye(this,qn,Ja).call(this,{type:"error",error:H}),(N=(T=U(this,aa).config).onError)==null||N.call(T,H,this),(M=(z=U(this,aa).config).onSettled)==null||M.call(z,this.state.data,H,this),H}finally{this.scheduleGc()}}},yr=new WeakMap,_l=new WeakMap,aa=new WeakMap,vr=new WeakMap,Yt=new WeakMap,Ws=new WeakMap,xr=new WeakMap,qn=new WeakSet,zv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ja=function(a){const i=l=>{switch(a.type){case"failed":return{...l,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Iv(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,...Jb(a.data,a.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return pe(this,_l,a.manual?o:void 0),o;case"error":const c=a.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=i(this.state),en.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),U(this,aa).notify({query:this,type:"updated",action:a})})},_v);function Iv(e,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mv(a.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jb(e,a){return{data:e,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ey(e){const a=typeof e.initialData=="function"?e.initialData():e.initialData,i=a!==void 0,l=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Tn,Xe,Js,mn,Er,Sl,ei,Bi,eo,wl,Nl,_r,Sr,ji,kl,it,qs,Vd,Xd,Zd,Wd,Jd,eh,th,Uv,Sv,ES=(Sv=class extends ao{constructor(a,i){super();Ce(this,it);Ce(this,Tn);Ce(this,Xe);Ce(this,Js);Ce(this,mn);Ce(this,Er);Ce(this,Sl);Ce(this,ei);Ce(this,Bi);Ce(this,eo);Ce(this,wl);Ce(this,Nl);Ce(this,_r);Ce(this,Sr);Ce(this,ji);Ce(this,kl,new Set);this.options=i,pe(this,Tn,a),pe(this,Bi,null),pe(this,ei,Yd()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,Xe).addObserver(this),ty(U(this,Xe),this.options)?Ye(this,it,qs).call(this):this.updateResult(),Ye(this,it,Wd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nh(U(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nh(U(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ye(this,it,Jd).call(this),Ye(this,it,eh).call(this),U(this,Xe).removeObserver(this)}setOptions(a){const i=this.options,l=U(this,Xe);if(this.options=U(this,Tn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ia(this.options.enabled,U(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ye(this,it,th).call(this),U(this,Xe).setOptions(this.options),i._defaulted&&!Gd(this.options,i)&&U(this,Tn).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,Xe),observer:this});const o=this.hasListeners();o&&ny(U(this,Xe),l,this.options,i)&&Ye(this,it,qs).call(this),this.updateResult(),o&&(U(this,Xe)!==l||ia(this.options.enabled,U(this,Xe))!==ia(i.enabled,U(this,Xe))||Pi(this.options.staleTime,U(this,Xe))!==Pi(i.staleTime,U(this,Xe)))&&Ye(this,it,Vd).call(this);const c=Ye(this,it,Xd).call(this);o&&(U(this,Xe)!==l||ia(this.options.enabled,U(this,Xe))!==ia(i.enabled,U(this,Xe))||c!==U(this,ji))&&Ye(this,it,Zd).call(this,c)}getOptimisticResult(a){const i=U(this,Tn).getQueryCache().build(U(this,Tn),a),l=this.createResult(i,a);return SS(this,l)&&(pe(this,mn,l),pe(this,Sl,this.options),pe(this,Er,U(this,Xe).state)),l}getCurrentResult(){return U(this,mn)}trackResult(a,i){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&U(this,ei).status==="pending"&&U(this,ei).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){U(this,kl).add(a)}getCurrentQuery(){return U(this,Xe)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=U(this,Tn).defaultQueryOptions(a),l=U(this,Tn).getQueryCache().build(U(this,Tn),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(a){return Ye(this,it,qs).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,mn)))}createResult(a,i){var V;const l=U(this,Xe),o=this.options,c=U(this,mn),u=U(this,Er),d=U(this,Sl),h=a!==l?a.state:U(this,Js),{state:b}=a;let g={...b},E=!1,x;if(i._optimisticResults){const C=this.hasListeners(),ae=!C&&ty(a,i),ie=C&&ny(a,l,i,o);(ae||ie)&&(g={...g,...Iv(b.data,a.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:T}=g;x=g.data;let N=!1;if(i.placeholderData!==void 0&&x===void 0&&T==="pending"){let C;c!=null&&c.isPlaceholderData&&i.placeholderData===(d==null?void 0:d.placeholderData)?(C=c.data,N=!0):C=typeof i.placeholderData=="function"?i.placeholderData((V=U(this,Nl))==null?void 0:V.state.data,U(this,Nl)):i.placeholderData,C!==void 0&&(T="success",x=$d(c==null?void 0:c.data,C,i),E=!0)}if(i.select&&x!==void 0&&!N)if(c&&x===(u==null?void 0:u.data)&&i.select===U(this,eo))x=U(this,wl);else try{pe(this,eo,i.select),x=i.select(x),x=$d(c==null?void 0:c.data,x,i),pe(this,wl,x),pe(this,Bi,null)}catch(C){pe(this,Bi,C)}U(this,Bi)&&(S=U(this,Bi),x=U(this,wl),w=Date.now(),T="error");const z=g.fetchStatus==="fetching",M=T==="pending",H=T==="error",K=M&&z,L=x!==void 0,X={status:T,fetchStatus:g.fetchStatus,isPending:M,isSuccess:T==="success",isError:H,isInitialLoading:K,isLoading:K,data:x,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:z,isRefetching:z&&!M,isLoadingError:H&&!L,isPaused:g.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:H&&L,isStale:wh(a,i),refetch:this.refetch,promise:U(this,ei),isEnabled:ia(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const C=X.data!==void 0,ae=X.status==="error"&&!C,ie=te=>{ae?te.reject(X.error):C&&te.resolve(X.data)},ge=()=>{const te=pe(this,ei,X.promise=Yd());ie(te)},le=U(this,ei);switch(le.status){case"pending":a.queryHash===l.queryHash&&ie(le);break;case"fulfilled":(ae||X.data!==le.value)&&ge();break;case"rejected":(!ae||X.error!==le.reason)&&ge();break}}return X}updateResult(){const a=U(this,mn),i=this.createResult(U(this,Xe),this.options);if(pe(this,Er,U(this,Xe).state),pe(this,Sl,this.options),U(this,Er).data!==void 0&&pe(this,Nl,U(this,Xe)),Gd(i,a))return;pe(this,mn,i);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!U(this,kl).size)return!0;const u=new Set(c??U(this,kl));return this.options.throwOnError&&u.add("error"),Object.keys(U(this,mn)).some(d=>{const p=d;return U(this,mn)[p]!==a[p]&&u.has(p)})};Ye(this,it,Uv).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ye(this,it,Wd).call(this)}},Tn=new WeakMap,Xe=new WeakMap,Js=new WeakMap,mn=new WeakMap,Er=new WeakMap,Sl=new WeakMap,ei=new WeakMap,Bi=new WeakMap,eo=new WeakMap,wl=new WeakMap,Nl=new WeakMap,_r=new WeakMap,Sr=new WeakMap,ji=new WeakMap,kl=new WeakMap,it=new WeakSet,qs=function(a){Ye(this,it,th).call(this);let i=U(this,Xe).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(An)),i},Vd=function(){Ye(this,it,Jd).call(this);const a=Pi(this.options.staleTime,U(this,Xe));if(Qs.isServer()||U(this,mn).isStale||!Pd(a))return;const l=Av(U(this,mn).dataUpdatedAt,a)+1;pe(this,_r,pr.setTimeout(()=>{U(this,mn).isStale||this.updateResult()},l))},Xd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,Xe)):this.options.refetchInterval)??!1},Zd=function(a){Ye(this,it,eh).call(this),pe(this,ji,a),!(Qs.isServer()||ia(this.options.enabled,U(this,Xe))===!1||!Pd(U(this,ji))||U(this,ji)===0)&&pe(this,Sr,pr.setInterval(()=>{(this.options.refetchIntervalInBackground||Eh.isFocused())&&Ye(this,it,qs).call(this)},U(this,ji)))},Wd=function(){Ye(this,it,Vd).call(this),Ye(this,it,Zd).call(this,Ye(this,it,Xd).call(this))},Jd=function(){U(this,_r)!==void 0&&(pr.clearTimeout(U(this,_r)),pe(this,_r,void 0))},eh=function(){U(this,Sr)!==void 0&&(pr.clearInterval(U(this,Sr)),pe(this,Sr,void 0))},th=function(){const a=U(this,Tn).getQueryCache().build(U(this,Tn),this.options);if(a===U(this,Xe))return;const i=U(this,Xe);pe(this,Xe,a),pe(this,Js,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},Uv=function(a){en.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(U(this,mn))}),U(this,Tn).getQueryCache().notify({query:U(this,Xe),type:"observerResultsUpdated"})})},Sv);function _S(e,a){return ia(a.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&a.retryOnMount===!1)}function ty(e,a){return _S(e,a)||e.state.data!==void 0&&nh(e,a,a.refetchOnMount)}function nh(e,a,i){if(ia(a.enabled,e)!==!1&&Pi(a.staleTime,e)!=="static"){const l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&wh(e,a)}return!1}function ny(e,a,i,l){return(e!==a||ia(l.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&wh(e,i)}function wh(e,a){return ia(a.enabled,e)!==!1&&e.isStaleByTime(Pi(a.staleTime,e))}function SS(e,a){return!Gd(e.getCurrentResult(),a)}function ay(e){return{onFetch:(a,i)=>{var b,g,E,x,S;const l=a.options,o=(E=(g=(b=a.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:E.direction,c=((x=a.state.data)==null?void 0:x.pages)||[],u=((S=a.state.data)==null?void 0:S.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const h=async()=>{let w=!1;const T=M=>{pS(M,()=>a.signal,()=>w=!0)},N=Rv(a.options,a.fetchOptions),z=async(M,H,K)=>{if(w)return Promise.reject();if(H==null&&M.pages.length)return Promise.resolve(M);const G=(()=>{const ae={client:a.client,queryKey:a.queryKey,pageParam:H,direction:K?"backward":"forward",meta:a.options.meta};return T(ae),ae})(),X=await N(G),{maxPages:V}=a.options,C=K?mS:hS;return{pages:C(M.pages,X,V),pageParams:C(M.pageParams,H,V)}};if(o&&c.length){const M=o==="backward",H=M?wS:iy,K={pages:c,pageParams:u},L=H(l,K);d=await z(K,L,M)}else{const M=e??c.length;do{const H=p===0?u[0]??l.initialPageParam:iy(l,d);if(p>0&&H==null)break;d=await z(d,H),p++}while(p<M)}return d};a.options.persister?a.fetchFn=()=>{var w,T;return(T=(w=a.options).persister)==null?void 0:T.call(w,h,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i)}:a.fetchFn=h}}}function iy(e,{pages:a,pageParams:i}){const l=a.length-1;return a.length>0?e.getNextPageParam(a[l],a,i[l],i):void 0}function wS(e,{pages:a,pageParams:i}){var l;return a.length>0?(l=e.getPreviousPageParam)==null?void 0:l.call(e,a[0],a,i[0],i):void 0}var to,Ta,sn,wr,Aa,Li,wv,NS=(wv=class extends Lv{constructor(a){super();Ce(this,Aa);Ce(this,to);Ce(this,Ta);Ce(this,sn);Ce(this,wr);pe(this,to,a.client),this.mutationId=a.mutationId,pe(this,sn,a.mutationCache),pe(this,Ta,[]),this.state=a.state||kS(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){U(this,Ta).includes(a)||(U(this,Ta).push(a),this.clearGcTimeout(),U(this,sn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){pe(this,Ta,U(this,Ta).filter(i=>i!==a)),this.scheduleGc(),U(this,sn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){U(this,Ta).length||(this.state.status==="pending"?this.scheduleGc():U(this,sn).remove(this))}continue(){var a;return((a=U(this,wr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,d,p,h,b,g,E,x,S,w,T,N,z,M,H,K,L,G;const i=()=>{Ye(this,Aa,Li).call(this,{type:"continue"})},l={client:U(this,to),meta:this.options.meta,mutationKey:this.options.mutationKey};pe(this,wr,Dv({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(X,V)=>{Ye(this,Aa,Li).call(this,{type:"failed",failureCount:X,error:V})},onPause:()=>{Ye(this,Aa,Li).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,sn).canRun(this)}));const o=this.state.status==="pending",c=!U(this,wr).canStart();try{if(o)i();else{Ye(this,Aa,Li).call(this,{type:"pending",variables:a,isPaused:c}),U(this,sn).config.onMutate&&await U(this,sn).config.onMutate(a,this,l);const V=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,a,l));V!==this.state.context&&Ye(this,Aa,Li).call(this,{type:"pending",context:V,variables:a,isPaused:c})}const X=await U(this,wr).start();return await((h=(p=U(this,sn).config).onSuccess)==null?void 0:h.call(p,X,a,this.state.context,this,l)),await((g=(b=this.options).onSuccess)==null?void 0:g.call(b,X,a,this.state.context,l)),await((x=(E=U(this,sn).config).onSettled)==null?void 0:x.call(E,X,null,this.state.variables,this.state.context,this,l)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,X,null,a,this.state.context,l)),Ye(this,Aa,Li).call(this,{type:"success",data:X}),X}catch(X){try{await((N=(T=U(this,sn).config).onError)==null?void 0:N.call(T,X,a,this.state.context,this,l))}catch(V){Promise.reject(V)}try{await((M=(z=this.options).onError)==null?void 0:M.call(z,X,a,this.state.context,l))}catch(V){Promise.reject(V)}try{await((K=(H=U(this,sn).config).onSettled)==null?void 0:K.call(H,void 0,X,this.state.variables,this.state.context,this,l))}catch(V){Promise.reject(V)}try{await((G=(L=this.options).onSettled)==null?void 0:G.call(L,void 0,X,a,this.state.context,l))}catch(V){Promise.reject(V)}throw Ye(this,Aa,Li).call(this,{type:"error",error:X}),X}finally{U(this,sn).runNext(this)}}},to=new WeakMap,Ta=new WeakMap,sn=new WeakMap,wr=new WeakMap,Aa=new WeakSet,Li=function(a){const i=l=>{switch(a.type){case"failed":return{...l,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...l,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:a.error,failureCount:l.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),en.batch(()=>{U(this,Ta).forEach(l=>{l.onMutationUpdate(a)}),U(this,sn).notify({mutation:this,type:"updated",action:a})})},wv);function kS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ti,ha,no,Nv,TS=(Nv=class extends ao{constructor(a={}){super();Ce(this,ti);Ce(this,ha);Ce(this,no);this.config=a,pe(this,ti,new Set),pe(this,ha,new Map),pe(this,no,0)}build(a,i,l){const o=new NS({client:a,mutationCache:this,mutationId:++Ac(this,no)._,options:a.defaultMutationOptions(i),state:l});return this.add(o),o}add(a){U(this,ti).add(a);const i=Cc(a);if(typeof i=="string"){const l=U(this,ha).get(i);l?l.push(a):U(this,ha).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(U(this,ti).delete(a)){const i=Cc(a);if(typeof i=="string"){const l=U(this,ha).get(i);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&U(this,ha).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Cc(a);if(typeof i=="string"){const l=U(this,ha).get(i),o=l==null?void 0:l.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var l;const i=Cc(a);if(typeof i=="string"){const o=(l=U(this,ha).get(i))==null?void 0:l.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){en.batch(()=>{U(this,ti).forEach(a=>{this.notify({type:"removed",mutation:a})}),U(this,ti).clear(),U(this,ha).clear()})}getAll(){return Array.from(U(this,ti))}find(a){const i={exact:!0,...a};return this.getAll().find(l=>Xb(i,l))}findAll(a={}){return this.getAll().filter(i=>Xb(a,i))}notify(a){en.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return en.batch(()=>Promise.all(a.map(i=>i.continue().catch(An))))}},ti=new WeakMap,ha=new WeakMap,no=new WeakMap,Nv);function Cc(e){var a;return(a=e.options.scope)==null?void 0:a.id}var Ca,kv,AS=(kv=class extends ao{constructor(a={}){super();Ce(this,Ca);this.config=a,pe(this,Ca,new Map)}build(a,i,l){const o=i.queryKey,c=i.queryHash??_h(o,i);let u=this.get(c);return u||(u=new xS({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(i),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(u)),u}add(a){U(this,Ca).has(a.queryHash)||(U(this,Ca).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=U(this,Ca).get(a.queryHash);i&&(a.destroy(),i===a&&U(this,Ca).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){en.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return U(this,Ca).get(a)}getAll(){return[...U(this,Ca).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(l=>Vb(i,l))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(l=>Vb(a,l)):i}notify(a){en.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){en.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){en.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ca=new WeakMap,kv),Ot,Hi,Fi,Tl,Al,qi,Cl,Rl,Tv,CS=(Tv=class{constructor(e={}){Ce(this,Ot);Ce(this,Hi);Ce(this,Fi);Ce(this,Tl);Ce(this,Al);Ce(this,qi);Ce(this,Cl);Ce(this,Rl);pe(this,Ot,e.queryCache||new AS),pe(this,Hi,e.mutationCache||new TS),pe(this,Fi,e.defaultOptions||{}),pe(this,Tl,new Map),pe(this,Al,new Map),pe(this,qi,0)}mount(){Ac(this,qi)._++,U(this,qi)===1&&(pe(this,Cl,Eh.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Ot).onFocus())})),pe(this,Rl,Pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Ot).onOnline())})))}unmount(){var e,a;Ac(this,qi)._--,U(this,qi)===0&&((e=U(this,Cl))==null||e.call(this),pe(this,Cl,void 0),(a=U(this,Rl))==null||a.call(this),pe(this,Rl,void 0))}isFetching(e){return U(this,Ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,Hi).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=U(this,Ot).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const a=this.defaultQueryOptions(e),i=U(this,Ot).build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Pi(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(e){return U(this,Ot).findAll(e).map(({queryKey:a,state:i})=>{const l=i.data;return[a,l]})}setQueryData(e,a,i){const l=this.defaultQueryOptions({queryKey:e}),o=U(this,Ot).get(l.queryHash),c=o==null?void 0:o.state.data,u=uS(a,c);if(u!==void 0)return U(this,Ot).build(this,l).setData(u,{...i,manual:!0})}setQueriesData(e,a,i){return en.batch(()=>U(this,Ot).findAll(e).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=U(this,Ot).get(a.queryHash))==null?void 0:i.state}removeQueries(e){const a=U(this,Ot);en.batch(()=>{a.findAll(e).forEach(i=>{a.remove(i)})})}resetQueries(e,a){const i=U(this,Ot);return en.batch(()=>(i.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...e},a)))}cancelQueries(e,a={}){const i={revert:!0,...a},l=en.batch(()=>U(this,Ot).findAll(e).map(o=>o.cancel(i)));return Promise.all(l).then(An).catch(An)}invalidateQueries(e,a={}){return en.batch(()=>(U(this,Ot).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},a)))}refetchQueries(e,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},l=en.batch(()=>U(this,Ot).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(An)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(An)}fetchQuery(e){const a=this.defaultQueryOptions(e);a.retry===void 0&&(a.retry=!1);const i=U(this,Ot).build(this,a);return i.isStaleByTime(Pi(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(An).catch(An)}fetchInfiniteQuery(e){return e.behavior=ay(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(An).catch(An)}ensureInfiniteQueryData(e){return e.behavior=ay(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Pc.isOnline()?U(this,Hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Ot)}getMutationCache(){return U(this,Hi)}getDefaultOptions(){return U(this,Fi)}setDefaultOptions(e){pe(this,Fi,e)}setQueryDefaults(e,a){U(this,Tl).set($s(e),{queryKey:e,defaultOptions:a})}getQueryDefaults(e){const a=[...U(this,Tl).values()],i={};return a.forEach(l=>{Ys(e,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(e,a){U(this,Al).set($s(e),{mutationKey:e,defaultOptions:a})}getMutationDefaults(e){const a=[...U(this,Al).values()],i={};return a.forEach(l=>{Ys(e,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const a={...U(this,Fi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return a.queryHash||(a.queryHash=_h(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Sh&&(a.enabled=!1),a}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,Fi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,Ot).clear(),U(this,Hi).clear()}},Ot=new WeakMap,Hi=new WeakMap,Fi=new WeakMap,Tl=new WeakMap,Al=new WeakMap,qi=new WeakMap,Cl=new WeakMap,Rl=new WeakMap,Tv),Bv=B.createContext(void 0),Ml=e=>{const a=B.useContext(Bv);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},RS=({client:e,children:a})=>(B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Bv.Provider,{value:e,children:a})),jv=B.createContext(!1),OS=()=>B.useContext(jv);jv.Provider;function MS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var DS=B.createContext(MS()),LS=()=>B.useContext(DS),zS=(e,a,i)=>{const l=i!=null&&i.state.error&&typeof e.throwOnError=="function"?Ov(e.throwOnError,[i.state.error,i]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||l)&&(a.isReset()||(e.retryOnMount=!1))},IS=e=>{B.useEffect(()=>{e.clearReset()},[e])},US=({result:e,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>e.isError&&!a.isReset()&&!e.isFetching&&l&&(o&&e.data===void 0||Ov(i,[e.error,l])),BS=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),l=e.staleTime;e.staleTime=typeof l=="function"?(...o)=>i(l(...o)):i(l),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jS=(e,a)=>e.isLoading&&e.isFetching&&!a,HS=(e,a)=>(e==null?void 0:e.suspense)&&a.isPending,ry=(e,a,i)=>a.fetchOptimistic(e).catch(()=>{i.clearReset()});function FS(e,a,i){var E,x,S,w;const l=OS(),o=LS(),c=Ml(),u=c.defaultQueryOptions(e);(x=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||x.call(E,u);const d=c.getQueryCache().get(u.queryHash);u._optimisticResults=l?"isRestoring":"optimistic",BS(u),zS(u,o,d),IS(o);const p=!c.getQueryCache().get(u.queryHash),[h]=B.useState(()=>new a(c,u)),b=h.getOptimisticResult(u),g=!l&&e.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(T=>{const N=g?h.subscribe(en.batchCalls(T)):An;return h.updateResult(),N},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),B.useEffect(()=>{h.setOptions(u)},[u,h]),HS(u,b))throw ry(u,h,o);if(US({result:b,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw b.error;if((w=(S=c.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||w.call(S,u,b),u.experimental_prefetchInRender&&!Qs.isServer()&&jS(b,l)){const T=p?ry(u,h,o):d==null?void 0:d.promise;T==null||T.catch(An).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?b:h.trackResult(b)}function tn(e,a){return FS(e,ES)}/**
50
- * react-router v7.14.2
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
- */var ly="popstate";function sy(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function qS(e={}){function a(l,o){var h;let c=(h=o.state)==null?void 0:h.masked,{pathname:u,search:d,hash:p}=c||l.location;return ah("",{pathname:u,search:d,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function i(l,o){return typeof o=="string"?o:Vs(o)}return GS(a,i,null,e)}function Nt(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function la(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function PS(){return Math.random().toString(36).substring(2,10)}function oy(e,a){return{usr:e.state,key:e.key,idx:a,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ah(e,a,i=null,l,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Dl(a):a,state:i,key:a&&a.key||l||PS(),unstable_mask:o}}function Vs({pathname:e="/",search:a="",hash:i=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Dl(e){let a={};if(e){let i=e.indexOf("#");i>=0&&(a.hash=e.substring(i),e=e.substring(0,i));let l=e.indexOf("?");l>=0&&(a.search=e.substring(l),e=e.substring(0,l)),e&&(a.pathname=e)}return a}function GS(e,a,i,l={}){let{window:o=document.defaultView,v5Compat:c=!1}=l,u=o.history,d="POP",p=null,h=b();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function b(){return(u.state||{idx:null}).idx}function g(){d="POP";let T=b(),N=T==null?null:T-h;h=T,p&&p({action:d,location:w.location,delta:N})}function E(T,N){d="PUSH";let z=sy(T)?T:ah(w.location,T,N);h=b()+1;let M=oy(z,h),H=w.createHref(z.unstable_mask||z);try{u.pushState(M,"",H)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;o.location.assign(H)}c&&p&&p({action:d,location:w.location,delta:1})}function x(T,N){d="REPLACE";let z=sy(T)?T:ah(w.location,T,N);h=b();let M=oy(z,h),H=w.createHref(z.unstable_mask||z);u.replaceState(M,"",H),c&&p&&p({action:d,location:w.location,delta:0})}function S(T){return KS(T)}let w={get action(){return d},get location(){return e(o,u)},listen(T){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(ly,g),p=T,()=>{o.removeEventListener(ly,g),p=null}},createHref(T){return a(o,T)},createURL:S,encodeLocation(T){let N=S(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:E,replace:x,go(T){return u.go(T)}};return w}function KS(e,a=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Nt(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Vs(e);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function Hv(e,a,i="/"){return $S(e,a,i,!1)}function $S(e,a,i,l){let o=typeof a=="string"?Dl(a):a,c=ni(o.pathname||"/",i);if(c==null)return null;let u=Fv(e);YS(u);let d=null;for(let p=0;d==null&&p<u.length;++p){let h=i1(c);d=n1(u[p],h,l)}return d}function Fv(e,a=[],i=[],l="",o=!1){let c=(u,d,p=o,h)=>{let b={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(l)&&p)return;Nt(b.relativePath.startsWith(l),`Absolute route path "${b.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(l.length)}let g=ma([l,b.relativePath]),E=i.concat(b);u.children&&u.children.length>0&&(Nt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Fv(u.children,a,E,g,p)),!(u.path==null&&!u.index)&&a.push({path:g,score:e1(g,u.index),routesMeta:E})};return e.forEach((u,d)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))c(u,d);else for(let h of qv(u.path))c(u,d,!0,h)}),a}function qv(e){let a=e.split("/");if(a.length===0)return[];let[i,...l]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(l.length===0)return o?[c,""]:[c];let u=qv(l.join("/")),d=[];return d.push(...u.map(p=>p===""?c:[c,p].join("/"))),o&&d.push(...u),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function YS(e){e.sort((a,i)=>a.score!==i.score?i.score-a.score:t1(a.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var QS=/^:[\w-]+$/,VS=3,XS=2,ZS=1,WS=10,JS=-2,cy=e=>e==="*";function e1(e,a){let i=e.split("/"),l=i.length;return i.some(cy)&&(l+=JS),a&&(l+=XS),i.filter(o=>!cy(o)).reduce((o,c)=>o+(QS.test(c)?VS:c===""?ZS:WS),l)}function t1(e,a){return e.length===a.length&&e.slice(0,-1).every((l,o)=>l===a[o])?e[e.length-1]-a[a.length-1]:0}function n1(e,a,i=!1){let{routesMeta:l}=e,o={},c="/",u=[];for(let d=0;d<l.length;++d){let p=l[d],h=d===l.length-1,b=c==="/"?a:a.slice(c.length)||"/",g=Gc({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},b),E=p.route;if(!g&&h&&i&&!l[l.length-1].route.index&&(g=Gc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!g)return null;Object.assign(o,g.params),u.push({params:o,pathname:ma([c,g.pathname]),pathnameBase:o1(ma([c,g.pathnameBase])),route:E}),g.pathnameBase!=="/"&&(c=ma([c,g.pathnameBase]))}return u}function Gc(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=a1(e.path,e.caseSensitive,e.end),o=a.match(i);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((h,{paramName:b,isOptional:g},E)=>{if(b==="*"){let S=d[E]||"";u=c.slice(0,c.length-S.length).replace(/(.)\/+$/,"$1")}const x=d[E];return g&&!x?h[b]=void 0:h[b]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:c,pathnameBase:u,pattern:e}}function a1(e,a=!1,i=!0){la(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,p,h,b)=>{if(l.push({paramName:d,isOptional:p!=null}),p){let g=b.charAt(h+u.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),l]}function i1(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return la(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function ni(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,l=e.charAt(i);return l&&l!=="/"?null:e.slice(i)||"/"}var r1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function l1(e,a="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?Dl(e):e,c;return i?(i=Pv(i),i.startsWith("/")?c=uy(i.substring(1),"/"):c=uy(i,a)):c=a,{pathname:c,search:c1(l),hash:u1(o)}}function uy(e,a){let i=Kc(a).split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function vd(e,a,i,l){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function s1(e){return e.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function Nh(e){let a=s1(e);return a.map((i,l)=>l===a.length-1?i.pathname:i.pathnameBase)}function Wc(e,a,i,l=!1){let o;typeof e=="string"?o=Dl(e):(o={...e},Nt(!o.pathname||!o.pathname.includes("?"),vd("?","pathname","search",o)),Nt(!o.pathname||!o.pathname.includes("#"),vd("#","pathname","hash",o)),Nt(!o.search||!o.search.includes("#"),vd("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,d;if(u==null)d=i;else{let g=a.length-1;if(!l&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),g-=1;o.pathname=E.join("/")}d=g>=0?a[g]:"/"}let p=l1(o,d),h=u&&u!=="/"&&u.endsWith("/"),b=(c||u===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(h||b)&&(p.pathname+="/"),p}var Pv=e=>e.replace(/\/\/+/g,"/"),ma=e=>Pv(e.join("/")),Kc=e=>e.replace(/\/+$/,""),o1=e=>Kc(e).replace(/^\/*/,"/"),c1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,u1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,f1=class{constructor(e,a,i,l=!1){this.status=e,this.statusText=a||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function d1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function h1(e){let a=e.map(i=>i.route.path).filter(Boolean);return ma(a)||"/"}var Gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kv(e,a){let i=e;if(typeof i!="string"||!r1.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,o=!1;if(Gv)try{let c=new URL(window.location.href),u=i.startsWith("//")?new URL(c.protocol+i):new URL(i),d=ni(u.pathname,a);u.origin===c.origin&&d!=null?i=d+u.search+u.hash:o=!0}catch{la(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $v=["POST","PUT","PATCH","DELETE"];new Set($v);var m1=["GET",...$v];new Set(m1);var Ll=B.createContext(null);Ll.displayName="DataRouter";var Jc=B.createContext(null);Jc.displayName="DataRouterState";var Yv=B.createContext(!1);function p1(){return B.useContext(Yv)}var Qv=B.createContext({isTransitioning:!1});Qv.displayName="ViewTransition";var g1=B.createContext(new Map);g1.displayName="Fetchers";var b1=B.createContext(null);b1.displayName="Await";var Gn=B.createContext(null);Gn.displayName="Navigation";var io=B.createContext(null);io.displayName="Location";var sa=B.createContext({outlet:null,matches:[],isDataRoute:!1});sa.displayName="Route";var kh=B.createContext(null);kh.displayName="RouteError";var Vv="REACT_ROUTER_ERROR",y1="REDIRECT",v1="ROUTE_ERROR_RESPONSE";function x1(e){if(e.startsWith(`${Vv}:${y1}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function E1(e){if(e.startsWith(`${Vv}:${v1}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new f1(a.status,a.statusText,a.data)}catch{}}function _1(e,{relative:a}={}){Nt(zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=B.useContext(Gn),{hash:o,pathname:c,search:u}=ro(e,{relative:a}),d=c;return i!=="/"&&(d=c==="/"?i:ma([i,c])),l.createHref({pathname:d,search:u,hash:o})}function zl(){return B.useContext(io)!=null}function ga(){return Nt(zl(),"useLocation() may be used only in the context of a <Router> component."),B.useContext(io).location}var Xv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zv(e){B.useContext(Gn).static||B.useLayoutEffect(e)}function eu(){let{isDataRoute:e}=B.useContext(sa);return e?B1():S1()}function S1(){Nt(zl(),"useNavigate() may be used only in the context of a <Router> component.");let e=B.useContext(Ll),{basename:a,navigator:i}=B.useContext(Gn),{matches:l}=B.useContext(sa),{pathname:o}=ga(),c=JSON.stringify(Nh(l)),u=B.useRef(!1);return Zv(()=>{u.current=!0}),B.useCallback((p,h={})=>{if(la(u.current,Xv),!u.current)return;if(typeof p=="number"){i.go(p);return}let b=Wc(p,JSON.parse(c),o,h.relative==="path");e==null&&a!=="/"&&(b.pathname=b.pathname==="/"?a:ma([a,b.pathname])),(h.replace?i.replace:i.push)(b,h.state,h)},[a,i,c,o,e])}var w1=B.createContext(null);function N1(e){let a=B.useContext(sa).outlet;return B.useMemo(()=>a&&B.createElement(w1.Provider,{value:e},a),[a,e])}function k1(){let{matches:e}=B.useContext(sa),a=e[e.length-1];return(a==null?void 0:a.params)??{}}function ro(e,{relative:a}={}){let{matches:i}=B.useContext(sa),{pathname:l}=ga(),o=JSON.stringify(Nh(i));return B.useMemo(()=>Wc(e,JSON.parse(o),l,a==="path"),[e,o,l,a])}function T1(e,a){return Wv(e,a)}function Wv(e,a,i){var T;Nt(zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=B.useContext(Gn),{matches:o}=B.useContext(sa),c=o[o.length-1],u=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",h=c&&c.route;{let N=h&&h.path||"";ex(d,!h||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=ga(),g;if(a){let N=typeof a=="string"?Dl(a):a;Nt(p==="/"||((T=N.pathname)==null?void 0:T.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${N.pathname}" was given in the \`location\` prop.`),g=N}else g=b;let E=g.pathname||"/",x=E;if(p!=="/"){let N=p.replace(/^\//,"").split("/");x="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let S=Hv(e,{pathname:x});la(h||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),la(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=M1(S&&S.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:ma([p,l.encodeLocation?l.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?p:ma([p,l.encodeLocation?l.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),o,i);return a&&w?B.createElement(io.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},w):w}function A1(){let e=U1(),a=d1(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=B.createElement(B.Fragment,null,B.createElement("p",null,"💿 Hey developer 👋"),B.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",B.createElement("code",{style:c},"ErrorBoundary")," or"," ",B.createElement("code",{style:c},"errorElement")," prop on your route.")),B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},a),i?B.createElement("pre",{style:o},i):null,u)}var C1=B.createElement(A1,null),Jv=class extends B.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const i=E1(e.digest);i&&(e=i)}let a=e!==void 0?B.createElement(sa.Provider,{value:this.props.routeContext},B.createElement(kh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?B.createElement(R1,{error:e},a):a}};Jv.contextType=Yv;var xd=new WeakMap;function R1({children:e,error:a}){let{basename:i}=B.useContext(Gn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=x1(a.digest);if(l){let o=xd.get(a);if(o)throw o;let c=Kv(l.location,i);if(Gv&&!xd.get(a))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw xd.set(a,u),u}return B.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function O1({routeContext:e,match:a,children:i}){let l=B.useContext(Ll);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),B.createElement(sa.Provider,{value:e},i)}function M1(e,a=[],i){let l=i==null?void 0:i.state;if(e==null){if(!l)return null;if(l.errors)e=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)e=l.matches;else return null}let o=e,c=l==null?void 0:l.errors;if(c!=null){let b=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);Nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let u=!1,d=-1;if(i&&l){u=l.renderFallback;for(let b=0;b<o.length;b++){let g=o[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=b),g.route.id){let{loaderData:E,errors:x}=l,S=g.route.loader&&!E.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||S){i.isStatic&&(u=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let p=i==null?void 0:i.onError,h=l&&p?(b,g)=>{var E,x;p(b,{location:l.location,params:((x=(E=l.matches)==null?void 0:E[0])==null?void 0:x.params)??{},unstable_pattern:h1(l.matches),errorInfo:g})}:void 0;return o.reduceRight((b,g,E)=>{let x,S=!1,w=null,T=null;l&&(x=c&&g.route.id?c[g.route.id]:void 0,w=g.route.errorElement||C1,u&&(d<0&&E===0?(ex("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):d===E&&(S=!0,T=g.route.hydrateFallbackElement||null)));let N=a.concat(o.slice(0,E+1)),z=()=>{let M;return x?M=w:S?M=T:g.route.Component?M=B.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=b,B.createElement(O1,{match:g,routeContext:{outlet:b,matches:N,isDataRoute:l!=null},children:M})};return l&&(g.route.ErrorBoundary||g.route.errorElement||E===0)?B.createElement(Jv,{location:l.location,revalidation:l.revalidation,component:w,error:x,children:z(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):z()},null)}function Th(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function D1(e){let a=B.useContext(Ll);return Nt(a,Th(e)),a}function L1(e){let a=B.useContext(Jc);return Nt(a,Th(e)),a}function z1(e){let a=B.useContext(sa);return Nt(a,Th(e)),a}function Ah(e){let a=z1(e),i=a.matches[a.matches.length-1];return Nt(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function I1(){return Ah("useRouteId")}function U1(){var l;let e=B.useContext(kh),a=L1("useRouteError"),i=Ah("useRouteError");return e!==void 0?e:(l=a.errors)==null?void 0:l[i]}function B1(){let{router:e}=D1("useNavigate"),a=Ah("useNavigate"),i=B.useRef(!1);return Zv(()=>{i.current=!0}),B.useCallback(async(o,c={})=>{la(i.current,Xv),i.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:a,...c}))},[e,a])}var fy={};function ex(e,a,i){!a&&!fy[e]&&(fy[e]=!0,la(!1,i))}B.memo(j1);function j1({routes:e,future:a,state:i,isStatic:l,onError:o}){return Wv(e,void 0,{state:i,isStatic:l,onError:o})}function H1({to:e,replace:a,state:i,relative:l}){Nt(zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=B.useContext(Gn);la(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=B.useContext(sa),{pathname:u}=ga(),d=eu(),p=Wc(e,Nh(c),u,l==="path"),h=JSON.stringify(p);return B.useEffect(()=>{d(JSON.parse(h),{replace:a,state:i,relative:l})},[d,h,l,a,i]),null}function F1(e){return N1(e.context)}function na(e){Nt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function q1({basename:e="/",children:a=null,location:i,navigationType:l="POP",navigator:o,static:c=!1,unstable_useTransitions:u}){Nt(!zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),p=B.useMemo(()=>({basename:d,navigator:o,static:c,unstable_useTransitions:u,future:{}}),[d,o,c,u]);typeof i=="string"&&(i=Dl(i));let{pathname:h="/",search:b="",hash:g="",state:E=null,key:x="default",unstable_mask:S}=i,w=B.useMemo(()=>{let T=ni(h,d);return T==null?null:{location:{pathname:T,search:b,hash:g,state:E,key:x,unstable_mask:S},navigationType:l}},[d,h,b,g,E,x,l,S]);return la(w!=null,`<Router basename="${d}"> is not able to match the URL "${h}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:B.createElement(Gn.Provider,{value:p},B.createElement(io.Provider,{children:a,value:w}))}function P1({children:e,location:a}){return T1(ih(e),a)}function ih(e,a=[]){let i=[];return B.Children.forEach(e,(l,o)=>{if(!B.isValidElement(l))return;let c=[...a,o];if(l.type===B.Fragment){i.push.apply(i,ih(l.props.children,c));return}Nt(l.type===na,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Nt(!l.props.index||!l.props.children,"An index route cannot have child routes.");let u={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(u.children=ih(l.props.children,c)),i.push(u)}),i}var Hc="get",Fc="application/x-www-form-urlencoded";function tu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function G1(e){return tu(e)&&e.tagName.toLowerCase()==="button"}function K1(e){return tu(e)&&e.tagName.toLowerCase()==="form"}function $1(e){return tu(e)&&e.tagName.toLowerCase()==="input"}function Y1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q1(e,a){return e.button===0&&(!a||a==="_self")&&!Y1(e)}function rh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((a,i)=>{let l=e[i];return a.concat(Array.isArray(l)?l.map(o=>[i,o]):[[i,l]])},[]))}function V1(e,a){let i=rh(e);return a&&a.forEach((l,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Rc=null;function X1(){if(Rc===null)try{new FormData(document.createElement("form"),0),Rc=!1}catch{Rc=!0}return Rc}var Z1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ed(e){return e!=null&&!Z1.has(e)?(la(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fc}"`),null):e}function W1(e,a){let i,l,o,c,u;if(K1(e)){let d=e.getAttribute("action");l=d?ni(d,a):null,i=e.getAttribute("method")||Hc,o=Ed(e.getAttribute("enctype"))||Fc,c=new FormData(e)}else if(G1(e)||$1(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(l=p?ni(p,a):null,i=e.getAttribute("formmethod")||d.getAttribute("method")||Hc,o=Ed(e.getAttribute("formenctype"))||Ed(d.getAttribute("enctype"))||Fc,c=new FormData(d,e),!X1()){let{name:h,type:b,value:g}=e;if(b==="image"){let E=h?`${h}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else h&&c.append(h,g)}}else{if(tu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Hc,l=null,o=Fc,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ch(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function tx(e,a,i,l){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:a&&ni(o.pathname,a)==="/"?o.pathname=`${Kc(a)}/_root.${l}`:o.pathname=`${Kc(o.pathname)}.${l}`,o}async function J1(e,a){if(e.id in a)return a[e.id];try{let i=await import(e.module);return a[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ew(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tw(e,a,i){let l=await Promise.all(e.map(async o=>{let c=a.routes[o.route.id];if(c){let u=await J1(c,i);return u.links?u.links():[]}return[]}));return rw(l.flat(1).filter(ew).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function dy(e,a,i,l,o,c){let u=(p,h)=>i[h]?p.route.id!==i[h].route.id:!0,d=(p,h)=>{var b;return i[h].pathname!==p.pathname||((b=i[h].route.path)==null?void 0:b.endsWith("*"))&&i[h].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,h)=>u(p,h)||d(p,h)):c==="data"?a.filter((p,h)=>{var g;let b=l.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(u(p,h)||d(p,h))return!0;if(p.route.shouldRevalidate){let E=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=i[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function nw(e,a,{includeHydrateFallback:i}={}){return aw(e.map(l=>{let o=a.routes[l.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function aw(e){return[...new Set(e)]}function iw(e){let a={},i=Object.keys(e).sort();for(let l of i)a[l]=e[l];return a}function rw(e,a){let i=new Set;return new Set(a),e.reduce((l,o)=>{let c=JSON.stringify(iw(o));return i.has(c)||(i.add(c),l.push({key:c,link:o})),l},[])}function Rh(){let e=B.useContext(Ll);return Ch(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function lw(){let e=B.useContext(Jc);return Ch(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Oh=B.createContext(void 0);Oh.displayName="FrameworkContext";function Mh(){let e=B.useContext(Oh);return Ch(e,"You must render this element inside a <HydratedRouter> element"),e}function sw(e,a){let i=B.useContext(Oh),[l,o]=B.useState(!1),[c,u]=B.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:h,onMouseLeave:b,onTouchStart:g}=a,E=B.useRef(null);B.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let w=N=>{N.forEach(z=>{u(z.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return E.current&&T.observe(E.current),()=>{T.disconnect()}}},[e]),B.useEffect(()=>{if(l){let w=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(w)}}},[l]);let x=()=>{o(!0)},S=()=>{o(!1),u(!1)};return i?e!=="intent"?[c,E,{}]:[c,E,{onFocus:Is(d,x),onBlur:Is(p,S),onMouseEnter:Is(h,x),onMouseLeave:Is(b,S),onTouchStart:Is(g,x)}]:[!1,E,{}]}function Is(e,a){return i=>{e&&e(i),i.defaultPrevented||a(i)}}function ow({page:e,...a}){let i=p1(),{router:l}=Rh(),o=B.useMemo(()=>Hv(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?i?B.createElement(uw,{page:e,matches:o,...a}):B.createElement(fw,{page:e,matches:o,...a}):null}function cw(e){let{manifest:a,routeModules:i}=Mh(),[l,o]=B.useState([]);return B.useEffect(()=>{let c=!1;return tw(e,a,i).then(u=>{c||o(u)}),()=>{c=!0}},[e,a,i]),l}function uw({page:e,matches:a,...i}){let l=ga(),{future:o}=Mh(),{basename:c}=Rh(),u=B.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let d=tx(e,c,o.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,h=[];for(let b of a)typeof b.route.shouldRevalidate=="function"?p=!0:h.push(b.route.id);return p&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[c,o.unstable_trailingSlashAwareDataRequests,e,l,a]);return B.createElement(B.Fragment,null,u.map(d=>B.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...i})))}function fw({page:e,matches:a,...i}){let l=ga(),{future:o,manifest:c,routeModules:u}=Mh(),{basename:d}=Rh(),{loaderData:p,matches:h}=lw(),b=B.useMemo(()=>dy(e,a,h,c,l,"data"),[e,a,h,c,l]),g=B.useMemo(()=>dy(e,a,h,c,l,"assets"),[e,a,h,c,l]),E=B.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(a.forEach(z=>{var H;let M=c.routes[z.route.id];!M||!M.hasLoader||(!b.some(K=>K.route.id===z.route.id)&&z.route.id in p&&((H=u[z.route.id])!=null&&H.shouldRevalidate)||M.hasClientLoader?T=!0:w.add(z.route.id))}),w.size===0)return[];let N=tx(e,d,o.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&N.searchParams.set("_routes",a.filter(z=>w.has(z.route.id)).map(z=>z.route.id).join(",")),[N.pathname+N.search]},[d,o.unstable_trailingSlashAwareDataRequests,p,l,c,b,a,e,u]),x=B.useMemo(()=>nw(g,c),[g,c]),S=cw(g);return B.createElement(B.Fragment,null,E.map(w=>B.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),x.map(w=>B.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),S.map(({key:w,link:T})=>B.createElement("link",{key:w,nonce:i.nonce,...T,crossOrigin:T.crossOrigin??i.crossOrigin})))}function dw(...e){return a=>{e.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var hw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hw&&(window.__reactRouterVersion="7.14.2")}catch{}function mw({basename:e,children:a,unstable_useTransitions:i,window:l}){let o=B.useRef();o.current==null&&(o.current=qS({window:l,v5Compat:!0}));let c=o.current,[u,d]=B.useState({action:c.action,location:c.location}),p=B.useCallback(h=>{i===!1?d(h):B.startTransition(()=>d(h))},[i]);return B.useLayoutEffect(()=>c.listen(p),[c,p]),B.createElement(q1,{basename:e,children:a,location:u.location,navigationType:u.action,navigator:c,unstable_useTransitions:i})}var nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Il=B.forwardRef(function({onClick:a,discover:i="render",prefetch:l="none",relative:o,reloadDocument:c,replace:u,unstable_mask:d,state:p,target:h,to:b,preventScrollReset:g,viewTransition:E,unstable_defaultShouldRevalidate:x,...S},w){let{basename:T,navigator:N,unstable_useTransitions:z}=B.useContext(Gn),M=typeof b=="string"&&nx.test(b),H=Kv(b,T);b=H.to;let K=_1(b,{relative:o}),L=ga(),G=null;if(d){let te=Wc(d,[],L.unstable_mask?L.unstable_mask.pathname:"/",!0);T!=="/"&&(te.pathname=te.pathname==="/"?T:ma([T,te.pathname])),G=N.createHref(te)}let[X,V,C]=sw(l,S),ae=bw(b,{replace:u,unstable_mask:d,state:p,target:h,preventScrollReset:g,relative:o,viewTransition:E,unstable_defaultShouldRevalidate:x,unstable_useTransitions:z});function ie(te){a&&a(te),te.defaultPrevented||ae(te)}let ge=!(H.isExternal||c),le=B.createElement("a",{...S,...C,href:(ge?G:void 0)||H.absoluteURL||K,onClick:ge?ie:a,ref:dw(w,V),target:h,"data-discover":!M&&i==="render"?"true":void 0});return X&&!M?B.createElement(B.Fragment,null,le,B.createElement(ow,{page:K})):le});Il.displayName="Link";var ax=B.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:l="",end:o=!1,style:c,to:u,viewTransition:d,children:p,...h},b){let g=ro(u,{relative:h.relative}),E=ga(),x=B.useContext(Jc),{navigator:S,basename:w}=B.useContext(Gn),T=x!=null&&_w(g)&&d===!0,N=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,z=E.pathname,M=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(z=z.toLowerCase(),M=M?M.toLowerCase():null,N=N.toLowerCase()),M&&w&&(M=ni(M,w)||M);const H=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let K=z===N||!o&&z.startsWith(N)&&z.charAt(H)==="/",L=M!=null&&(M===N||!o&&M.startsWith(N)&&M.charAt(N.length)==="/"),G={isActive:K,isPending:L,isTransitioning:T},X=K?a:void 0,V;typeof l=="function"?V=l(G):V=[l,K?"active":null,L?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let C=typeof c=="function"?c(G):c;return B.createElement(Il,{...h,"aria-current":X,className:V,ref:b,style:C,to:u,viewTransition:d},typeof p=="function"?p(G):p)});ax.displayName="NavLink";var pw=B.forwardRef(({discover:e="render",fetcherKey:a,navigate:i,reloadDocument:l,replace:o,state:c,method:u=Hc,action:d,onSubmit:p,relative:h,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:E,...x},S)=>{let{unstable_useTransitions:w}=B.useContext(Gn),T=xw(),N=Ew(d,{relative:h}),z=u.toLowerCase()==="get"?"get":"post",M=typeof d=="string"&&nx.test(d),H=K=>{if(p&&p(K),K.defaultPrevented)return;K.preventDefault();let L=K.nativeEvent.submitter,G=(L==null?void 0:L.getAttribute("formmethod"))||u,X=()=>T(L||K.currentTarget,{fetcherKey:a,method:G,navigate:i,replace:o,state:c,relative:h,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:E});w&&i!==!1?B.startTransition(()=>X()):X()};return B.createElement("form",{ref:S,method:z,action:N,onSubmit:l?p:H,...x,"data-discover":!M&&e==="render"?"true":void 0})});pw.displayName="Form";function gw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ix(e){let a=B.useContext(Ll);return Nt(a,gw(e)),a}function bw(e,{target:a,replace:i,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let b=eu(),g=ga(),E=ro(e,{relative:u});return B.useCallback(x=>{if(Q1(x,a)){x.preventDefault();let S=i!==void 0?i:Vs(g)===Vs(E),w=()=>b(e,{replace:S,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:p});h?B.startTransition(()=>w()):w()}},[g,b,E,i,l,o,a,e,c,u,d,p,h])}function Dh(e){la(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=B.useRef(rh(e)),i=B.useRef(!1),l=ga(),o=B.useMemo(()=>V1(l.search,i.current?null:a.current),[l.search]),c=eu(),u=B.useCallback((d,p)=>{const h=rh(typeof d=="function"?d(new URLSearchParams(o)):d);i.current=!0,c("?"+h,p)},[c,o]);return[o,u]}var yw=0,vw=()=>`__${String(++yw)}__`;function xw(){let{router:e}=ix("useSubmit"),{basename:a}=B.useContext(Gn),i=I1(),l=e.fetch,o=e.navigate;return B.useCallback(async(c,u={})=>{let{action:d,method:p,encType:h,formData:b,body:g}=W1(c,a);if(u.navigate===!1){let E=u.fetcherKey||vw();await l(E,i,u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:g,formMethod:u.method||p,formEncType:u.encType||h,flushSync:u.flushSync})}else await o(u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:g,formMethod:u.method||p,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:i,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,o,a,i])}function Ew(e,{relative:a}={}){let{basename:i}=B.useContext(Gn),l=B.useContext(sa);Nt(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),c={...ro(e||".",{relative:a})},u=ga();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),p=d.getAll("index");if(p.some(b=>b==="")){d.delete("index"),p.filter(g=>g).forEach(g=>d.append("index",g));let b=d.toString();c.search=b?`?${b}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:ma([i,c.pathname])),Vs(c)}function _w(e,{relative:a}={}){let i=B.useContext(Qv);Nt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=ix("useViewTransitionState"),o=ro(e,{relative:a});if(!i.isTransitioning)return!1;let c=ni(i.currentLocation.pathname,l)||i.currentLocation.pathname,u=ni(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Gc(o.pathname,u)!=null||Gc(o.pathname,c)!=null}/**
61
- * @license lucide-react v0.544.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Sw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ww=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,l)=>l?l.toUpperCase():i.toLowerCase()),hy=e=>{const a=ww(e);return a.charAt(0).toUpperCase()+a.slice(1)},rx=(...e)=>e.filter((a,i,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===i).join(" ").trim(),Nw=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
66
- * @license lucide-react v0.544.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var kw={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"};/**
71
- * @license lucide-react v0.544.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Tw=B.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:c,iconNode:u,...d},p)=>B.createElement("svg",{ref:p,...kw,width:a,height:a,stroke:e,strokeWidth:l?Number(i)*24/Number(a):i,className:rx("lucide",o),...!c&&!Nw(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,b])=>B.createElement(h,b)),...Array.isArray(c)?c:[c]]));/**
76
- * @license lucide-react v0.544.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Ze=(e,a)=>{const i=B.forwardRef(({className:l,...o},c)=>B.createElement(Tw,{ref:c,iconNode:a,className:rx(`lucide-${Sw(hy(e))}`,`lucide-${e}`,l),...o}));return i.displayName=hy(e),i};/**
81
- * @license lucide-react v0.544.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const Aw=[["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"}]],Cw=Ze("activity",Aw);/**
86
- * @license lucide-react v0.544.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Rw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ow=Ze("chevron-down",Rw);/**
91
- * @license lucide-react v0.544.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const Mw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],lx=Ze("chevron-right",Mw);/**
96
- * @license lucide-react v0.544.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const Dw=[["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"}]],Lw=Ze("circle-alert",Dw);/**
101
- * @license lucide-react v0.544.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const zw=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Iw=Ze("circle-check-big",zw);/**
106
- * @license lucide-react v0.544.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const Uw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bw=Ze("circle-check",Uw);/**
111
- * @license lucide-react v0.544.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const jw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Hw=Ze("circle-x",jw);/**
116
- * @license lucide-react v0.544.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Fw=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],qw=Ze("download",Fw);/**
121
- * @license lucide-react v0.544.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const Pw=[["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"}]],sx=Ze("file-text",Pw);/**
126
- * @license lucide-react v0.544.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const Gw=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Kw=Ze("flame",Gw);/**
131
- * @license lucide-react v0.544.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const $w=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Yw=Ze("funnel",$w);/**
136
- * @license lucide-react v0.544.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Qw=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Vw=Ze("git-branch",Qw);/**
141
- * @license lucide-react v0.544.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const Xw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Zw=Ze("globe",Xw);/**
146
- * @license lucide-react v0.544.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const Ww=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Jw=Ze("kanban",Ww);/**
151
- * @license lucide-react v0.544.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const eN=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],tN=Ze("layout-grid",eN);/**
156
- * @license lucide-react v0.544.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const nN=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],aN=Ze("link",nN);/**
161
- * @license lucide-react v0.544.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const iN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lh=Ze("loader-circle",iN);/**
166
- * @license lucide-react v0.544.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const rN=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],my=Ze("message-circle",rN);/**
171
- * @license lucide-react v0.544.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const lN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],sN=Ze("message-square",lN);/**
176
- * @license lucide-react v0.544.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const oN=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],cN=Ze("pause",oN);/**
181
- * @license lucide-react v0.544.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const uN=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],zh=Ze("play",uN);/**
186
- * @license lucide-react v0.544.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const fN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],nu=Ze("plus",fN);/**
191
- * @license lucide-react v0.544.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const dN=[["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"}]],ox=Ze("refresh-cw",dN);/**
196
- * @license lucide-react v0.544.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const hN=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ih=Ze("rotate-ccw",hN);/**
201
- * @license lucide-react v0.544.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const mN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Uh=Ze("search",mN);/**
206
- * @license lucide-react v0.544.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const pN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],gN=Ze("send",pN);/**
211
- * @license lucide-react v0.544.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const bN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yN=Ze("settings",bN);/**
216
- * @license lucide-react v0.544.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const vN=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],xN=Ze("snowflake",vN);/**
221
- * @license lucide-react v0.544.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const EN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],_N=Ze("square",EN);/**
226
- * @license lucide-react v0.544.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const SN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],wN=Ze("terminal",SN);/**
231
- * @license lucide-react v0.544.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const NN=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],kN=Ze("trash-2",NN);/**
236
- * @license lucide-react v0.544.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const TN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],cx=Ze("users",TN);/**
241
- * @license lucide-react v0.544.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const AN=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],CN=Ze("wrench",AN);/**
246
- * @license lucide-react v0.544.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const RN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ux=Ze("x",RN);/**
251
- * @license lucide-react v0.544.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const ON=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],MN=Ze("zap",ON),DN=[{to:"/chat",label:"对话",icon:sN},{to:"/projects",label:"项目",icon:tN},{to:"/board",label:"看板",icon:Jw},{to:"/workers",label:"Workers",icon:cx},{to:"/logs",label:"Logs",icon:sx},{to:"/skills",label:"Skills",icon:Zw},{to:"/system",label:"系统",icon:yN}];function LN(){return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"font-[family-name:var(--font-heading)] font-bold text-lg px-3 pt-2 pb-4 flex items-center gap-3 text-[var(--color-text)]",children:[y.jsx("span",{className:"w-5 h-5 rounded-md bg-[var(--color-accent-mint)] border-2 border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]"}),"SPS Console",y.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),y.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:DN.map(e=>{const a=e.icon;return y.jsxs(ax,{to:e.to,className:({isActive:i})=>["flex items-center gap-3 px-3 py-2.5 rounded-xl font-semibold text-sm cursor-pointer transition-transform duration-150","border-2 border-transparent",i?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] font-bold":"text-[var(--color-text)] hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)] hover:shadow-[3px_3px_0_var(--color-text)] hover:-translate-x-px hover:-translate-y-px"].join(" "),children:[y.jsx(a,{size:18,strokeWidth:2.5}),e.label]},e.to)})})]})}class zN extends Error{constructor(a,i,l){super(i),this.status=a,this.detail=l,this.name="ApiError"}}async function Kn(e){const a=await fetch(e,{headers:{Accept:"application/json"}});if(!a.ok){let i;try{i=await a.json()}catch{i=await a.text()}throw new zN(a.status,`${a.status} ${a.statusText}`,i)}return await a.json()}function fx(){return Kn("/api/system/info")}function IN(){return Kn("/api/system/env")}function UN(){return Kn("/api/system/doctor/all")}function BN(){const{data:e,isError:a}=tn({queryKey:["system-info"],queryFn:fx,refetchInterval:3e4});return y.jsxs("div",{className:"h-10 flex items-center gap-4 px-6 font-[family-name:var(--font-mono)] text-[11px] text-[var(--color-text-muted)]",children:[y.jsx("span",{className:"nb-status",style:{background:a?"var(--color-crashed-bg)":"var(--color-running-bg)",color:a?"var(--color-crashed)":"var(--color-running)",padding:"2px 8px 2px 7px"},children:a?"disconnected":"server"}),y.jsxs("span",{children:["localhost:",window.location.port]}),e&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),y.jsxs("span",{children:["v",e.version]}),y.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),y.jsxs("span",{children:["node ",e.nodeVersion]})]}),y.jsx("span",{className:"ml-auto text-[var(--color-text-subtle)]",children:"Cmd+K"})]})}function jN(){return y.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[y.jsx("aside",{className:"row-span-1 row-start-1 border-r-[3px] border-[var(--color-text)] bg-[var(--color-bg)] p-4 flex flex-col",children:y.jsx(LN,{})}),y.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:y.jsx(F1,{})}),y.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:y.jsx(BN,{})})]})}class HN extends B.Component{constructor(){super(...arguments);Bb(this,"state",{error:null})}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i,l){console.error("[ErrorBoundary]",i,l)}render(){return this.state.error?y.jsx("div",{className:"p-6",children:y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),y.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),y.jsxs("details",{className:"text-xs mb-4",children:[y.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),y.jsx("pre",{className:"mt-2 font-[family-name:var(--font-mono)] overflow-auto max-h-60 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-md p-3",children:this.state.error.stack??"(no stack)"})]}),y.jsx("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"刷新页面"})]})}):this.props.children}}function au(){return Kn("/api/projects")}function FN(){const{data:e,isLoading:a,isError:i,error:l,refetch:o}=tn({queryKey:["projects"],queryFn:au});return y.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:e?`${e.data.length} 个本机项目`:a?"加载中…":"点击刷新重试"})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>o(),type:"button",children:[y.jsx(Cw,{size:16,strokeWidth:2.5}),"刷新"]}),y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[y.jsx(nu,{size:16,strokeWidth:3}),"新建项目"]})]})]}),a&&y.jsx(GN,{}),i&&y.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),y.jsx("p",{className:"text-sm text-[var(--color-text)]",children:l instanceof Error?l.message:String(l)}),y.jsx("button",{className:"nb-btn mt-4",onClick:()=>o(),type:"button",children:"重试"})]}),e&&e.data.length===0&&y.jsx(KN,{}),e&&e.data.length>0&&y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:e.data.map(c=>y.jsx(qN,{project:c},c.name))})]})}function qN({project:e}){const a=e.pipelineStatus==="running";return y.jsxs(Il,{to:`/board?project=${encodeURIComponent(e.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:e.name}),y.jsx(PN,{status:e.pipelineStatus})]}),e.repoDir&&y.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:e.repoDir}),y.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm mt-4 pt-3 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[y.jsx(_d,{label:"cards",value:e.cards.total,accent:"purple"}),y.jsx(_d,{label:"inprogress",value:e.cards.inprogress,accent:e.cards.inprogress>0?"yellow":"idle"}),y.jsx(_d,{label:"workers",value:`${e.workers.active}/${e.workers.total}`,accent:a?"mint":"idle"})]})]})}function _d({label:e,value:a,accent:i}){const l={purple:"var(--color-accent-purple)",yellow:"var(--color-accent-yellow)",mint:"var(--color-accent-mint)",idle:"var(--color-bg-cream)"};return y.jsxs("div",{className:"flex flex-col items-center justify-center py-2 rounded-lg border-2 border-[var(--color-text)]",style:{background:l[i]},children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:a}),y.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:e})]})}function PN({status:e}){const a={running:{bg:"var(--color-running-bg)",label:"running"},idle:{bg:"var(--color-idle-bg)",label:"idle"},stopping:{bg:"var(--color-stuck-bg)",label:"stopping"},error:{bg:"var(--color-crashed-bg)",label:"error"}},{bg:i,label:l}=a[e],o=e==="running"?"var(--color-running)":e==="error"?"var(--color-crashed)":e==="stopping"?"var(--color-stuck)":"var(--color-idle)";return y.jsx("span",{className:"nb-status",style:{background:i,color:o},children:l})}function GN(){return y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(e=>y.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[y.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),y.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),y.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},e))})}function KN(){return y.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[y.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center",children:y.jsx(cx,{size:32,strokeWidth:2.5})}),y.jsxs("div",{className:"flex-1",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),y.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",y.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded-md font-[family-name:var(--font-mono)]",children:"sps project init <name>"})," 创建第一个项目。"]}),y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[y.jsx(nu,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function $N(e){return Kn(`/api/projects/${encodeURIComponent(e)}/cards`)}function YN(e,a){return Kn(`/api/projects/${encodeURIComponent(e)}/cards/${a}`)}async function Ul(e,a){const i=await fetch(e,{method:"POST",headers:a?{"Content-Type":"application/json"}:void 0,body:a?JSON.stringify(a):void 0});if(!i.ok){const l=await i.text();throw new Error(`${i.status} ${i.statusText}: ${l}`)}return i.json().catch(()=>({}))}function QN(e,a){return Ul(`/api/projects/${encodeURIComponent(e)}/cards/${a}/reset`)}function VN(e,a){return Ul(`/api/projects/${encodeURIComponent(e)}/cards/${a}/launch`)}function XN(e,a){return Ul(`/api/projects/${encodeURIComponent(e)}/cards`,{title:a})}function ZN(e){return Ul(`/api/projects/${encodeURIComponent(e)}/pipeline/start`)}function WN(e){return Ul(`/api/projects/${encodeURIComponent(e)}/pipeline/stop`)}function JN(e,a){return Ul(`/api/projects/${encodeURIComponent(e)}/pipeline/reset`,a??{})}function dx(e){const a=Ml();B.useEffect(()=>{if(!e)return;const i=`/stream/projects/${encodeURIComponent(e)}`,l=new EventSource(i),o=d=>{try{const p=JSON.parse(d.data);a.invalidateQueries({queryKey:["cards",p.project]}),p.card&&a.setQueryData(["card",p.project,p.seq],{...a.getQueryData(["card",p.project,p.seq])??{},...p.card}),a.invalidateQueries({queryKey:["projects"]})}catch{}},c=d=>{try{const p=JSON.parse(d.data);a.invalidateQueries({queryKey:["workers",p.project]}),a.invalidateQueries({queryKey:["projects"]})}catch{}},u=d=>{try{const p=JSON.parse(d.data);a.invalidateQueries({queryKey:["pipeline-status",p.project]}),a.invalidateQueries({queryKey:["projects"]})}catch{}};return l.addEventListener("card.created",o),l.addEventListener("card.updated",o),l.addEventListener("card.deleted",o),l.addEventListener("worker.updated",c),l.addEventListener("worker.added",c),l.addEventListener("worker.deleted",c),l.addEventListener("pipeline.status",u),()=>l.close()},[e,a])}const ek=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),tk=new Set(["frontend","backend","mobile","database","devops"]),nk=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),ak=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function ik(e){return ek.has(e)?"lang":tk.has(e)?"end":nk.has(e)?"persona":ak.has(e)?"workflow":"other"}const rk={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function hx({name:e}){const a=rk[ik(e)];return y.jsx("span",{className:"nb-badge",style:{background:a},children:e})}function mx({label:e,kind:a="default"}){const i=a==="warn"?"var(--color-accent-pink)":a==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return y.jsx("span",{className:"nb-badge",style:{background:i},children:e})}function lk({card:e,onClick:a,done:i}){const l=e.labels.some(o=>o.startsWith("STARTED-"))&&!i;return y.jsxs("article",{onClick:a,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),a())},tabIndex:0,role:"button","aria-label":`Card #${e.seq}: ${e.title}`,className:["bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl p-3","shadow-[3px_3px_0_var(--color-text)] cursor-pointer","transition-[transform,box-shadow] duration-[180ms] ease-out","hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0_var(--color-text)]","focus:outline-none focus-visible:ring-[3px] focus-visible:ring-offset-2 focus-visible:ring-[var(--color-text)]",i?"opacity-60":""].join(" "),children:[y.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[y.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-[11px] px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full",children:["#",e.seq]}),l&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),y.jsx("p",{className:`font-bold text-sm leading-5 mb-2 line-clamp-2 ${i?"line-through decoration-2":""}`,children:e.title}),(e.skills.length>0||e.labels.length>0)&&y.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[e.skills.slice(0,3).map(o=>y.jsx(hx,{name:o},o)),e.labels.filter(o=>o==="NEEDS-FIX").map(o=>y.jsx(mx,{label:o,kind:"warn"},o))]}),y.jsxs("div",{className:"pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)] flex items-center gap-2 text-[11px] font-[family-name:var(--font-mono)] text-[var(--color-text-subtle)]",children:[y.jsx("span",{children:sk(e.updatedAt??e.createdAt)}),e.branch&&y.jsxs("span",{className:"truncate",children:["· ",e.branch]})]})]})}function sk(e){if(!e)return"—";const a=new Date(e),i=Date.now()-a.getTime();return i<6e4?"刚才":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:a.toLocaleDateString()}function ok({label:e,bg:a,cards:i,onCardClick:l}){return y.jsxs("div",{className:"flex flex-col gap-2 p-3 rounded-2xl border-[3px] border-[var(--color-text)] min-h-[340px]",style:{background:a},children:[y.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[y.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:e}),y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full",children:i.length})]}),y.jsxs("div",{className:"flex flex-col gap-2",children:[i.length===0&&y.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),i.map(o=>y.jsx(lk,{card:o,onClick:()=>l(o),done:e==="Done"},o.seq))]})]})}function ck({title:e,body:a,confirm:i,onConfirm:l,onCancel:o,danger:c}){return B.useEffect(()=>{const u=d=>{d.key==="Escape"&&o()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o]),y.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:o,children:y.jsxs("div",{onClick:u=>u.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:a}),y.jsxs("div",{className:"flex gap-3 justify-end",children:[y.jsx("button",{className:"nb-btn",onClick:o,type:"button",children:"取消"}),y.jsx("button",{className:c?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await l()},type:"button",children:i})]})]})})}const px=B.createContext(null);function uk({children:e}){const[a,i]=B.useState(null),l=B.useCallback(u=>new Promise(d=>{i({kind:"confirm",opts:u,resolve:p=>{i(null),d(p)}})}),[]),o=B.useCallback(u=>new Promise(d=>{i({kind:"alert",opts:u,resolve:()=>{i(null),d()}})}),[]),c=B.useCallback(u=>new Promise(d=>{i({kind:"prompt",opts:u,resolve:p=>{i(null),d(p)}})}),[]);return y.jsxs(px.Provider,{value:{confirm:l,alert:o,prompt:c},children:[e,(a==null?void 0:a.kind)==="confirm"&&y.jsx(ck,{title:a.opts.title,body:a.opts.body,confirm:a.opts.confirm??"确定",danger:a.opts.danger,onConfirm:()=>a.resolve(!0),onCancel:()=>a.resolve(!1)}),(a==null?void 0:a.kind)==="alert"&&y.jsx(fk,{title:a.opts.title,body:a.opts.body,confirm:a.opts.confirm??"知道了",onClose:()=>a.resolve()}),(a==null?void 0:a.kind)==="prompt"&&y.jsx(dk,{title:a.opts.title,body:a.opts.body,placeholder:a.opts.placeholder,defaultValue:a.opts.defaultValue,confirm:a.opts.confirm??"确定",cancel:a.opts.cancel??"取消",onConfirm:u=>a.resolve(u),onCancel:()=>a.resolve(null)})]})}function lo(){const e=B.useContext(px);if(!e)throw new Error("useDialog must be used inside <DialogProvider>");return e}function fk({title:e,body:a,confirm:i,onClose:l}){return B.useEffect(()=>{const o=c=>{(c.key==="Escape"||c.key==="Enter")&&l()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[l]),y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:l,children:y.jsxs("div",{onClick:o=>o.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5 whitespace-pre-wrap break-words",children:a}),y.jsx("div",{className:"flex gap-3 justify-end",children:y.jsx("button",{className:"nb-btn nb-btn-primary",onClick:l,type:"button",autoFocus:!0,children:i})})]})})}function dk({title:e,body:a,placeholder:i,defaultValue:l,confirm:o,cancel:c,onConfirm:u,onCancel:d}){const[p,h]=B.useState(l??""),b=B.useRef(null);B.useEffect(()=>{var x,S;(x=b.current)==null||x.focus(),(S=b.current)==null||S.select();const E=w=>{w.key==="Escape"&&d()};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[d]);const g=()=>{const E=p.trim();E&&u(E)};return y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:d,children:y.jsxs("div",{onClick:E=>E.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),a&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-3 whitespace-pre-wrap break-words",children:a}),y.jsx("input",{ref:b,type:"text",className:"nb-input w-full mb-5",placeholder:i,value:p,onChange:E=>h(E.target.value),onKeyDown:E=>{E.key==="Enter"&&!E.nativeEvent.isComposing&&(E.preventDefault(),g())}}),y.jsxs("div",{className:"flex gap-3 justify-end",children:[y.jsx("button",{className:"nb-btn",onClick:d,type:"button",children:c}),y.jsx("button",{className:"nb-btn nb-btn-primary",onClick:g,type:"button",disabled:!p.trim(),children:o})]})]})})}function hk({project:e,seq:a,onClose:i,onChanged:l}){const{confirm:o}=lo(),{data:c,isLoading:u,isError:d,error:p}=tn({queryKey:["card",e,a],queryFn:()=>YN(e,a)});return B.useEffect(()=>{const h=b=>{b.key==="Escape"&&i()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i]),y.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"card-modal-title",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:i,children:y.jsxs("div",{onClick:h=>h.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[y.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[y.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full",children:["#",a]}),(c==null?void 0:c.state)&&y.jsx("span",{className:"font-[family-name:var(--font-mono)] text-xs px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full font-semibold",children:c.state})]}),y.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(c==null?void 0:c.title)??"加载中…"})]}),y.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:y.jsx(ux,{size:16,strokeWidth:3})})]}),u&&y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),d&&y.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",p instanceof Error?p.message:String(p)]}),c&&y.jsxs("div",{className:"flex flex-col gap-4",children:[c.branch&&y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx(Vw,{size:14}),y.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:c.branch})]}),(c.skills.length>0||c.labels.length>0)&&y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.skills.map(h=>y.jsx(hx,{name:h},h)),c.labels.map(h=>y.jsx(mx,{label:h,kind:h==="NEEDS-FIX"?"warn":"default"},h))]}),c.checklist.total>0&&y.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",c.checklist.done,"/",c.checklist.total]}),y.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${c.checklist.percent}%`}})})]}),y.jsx("ul",{className:"text-sm space-y-1",children:c.checklist.items.map((h,b)=>y.jsxs("li",{className:`flex items-start gap-2 ${h.done?"opacity-60 line-through":""}`,children:[y.jsx("span",{children:h.done?"✓":"○"}),y.jsx("span",{children:h.text})]},b))})]}),c.body&&y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),y.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-64 overflow-auto",children:c.body.trim()||"(空)"})]}),y.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await VN(e,a),l()},children:[y.jsx(zh,{size:14,strokeWidth:3}),"启动 worker"]}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await o({title:`重置卡片 #${a}`,body:"卡片状态会回到初始,已做的 checklist 会清空。",confirm:"重置",danger:!0})&&(await QN(e,a),l(),i())},children:[y.jsx(Ih,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Bh({current:e,onChange:a}){const[i,l]=B.useState(!1),o=B.useRef(null),{data:c}=tn({queryKey:["projects"],queryFn:au});return B.useEffect(()=>{const u=d=>{var p;(p=o.current)!=null&&p.contains(d.target)||l(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),y.jsxs("div",{className:"relative",ref:o,children:[y.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-3 py-2 bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[3px_3px_0_var(--color-text)] font-[family-name:var(--font-mono)] text-sm font-bold hover:-translate-x-px hover:-translate-y-px hover:shadow-[4px_4px_0_var(--color-text)] transition-[transform,box-shadow] duration-150",onClick:()=>l(u=>!u),children:[e,y.jsx(Ow,{size:14,strokeWidth:2.5})]}),i&&c&&y.jsx("div",{className:"absolute right-0 mt-2 z-20 min-w-[200px] bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[5px_5px_0_var(--color-text)] overflow-hidden",children:c.data.map(u=>y.jsxs("button",{type:"button",onClick:()=>{a(u.name),l(!1)},className:["w-full text-left px-4 py-2 text-sm font-semibold",u.name===e?"bg-[var(--color-accent-mint)]":"hover:bg-[var(--color-bg-cream)]"].join(" "),children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:u.name}),y.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[u.cards.total," cards"]})]},u.name))})]})}const mk=[{state:"Backlog",label:"Backlog",bg:"var(--color-accent-purple)"},{state:"Inprogress",label:"Inprogress",bg:"var(--color-accent-yellow)"},{state:"Review",label:"Review",bg:"var(--color-accent-pink)"},{state:"Done",label:"Done",bg:"var(--color-accent-mint)"}];function pk(){var z,M,H;const[e,a]=Dh(),i=e.get("project"),[l,o]=B.useState(null),[c,u]=B.useState(""),{confirm:d,prompt:p}=lo();dx(i);const h=tn({queryKey:["projects"],queryFn:au}),b=tn({queryKey:["cards",i],queryFn:()=>$N(i??""),enabled:!!i}),g=Ml(),E=()=>{g.invalidateQueries({queryKey:["cards",i]}),g.invalidateQueries({queryKey:["projects"]}),g.invalidateQueries({queryKey:["pipeline-status",i]})},x=K=>{a({project:K})};if(!i)return y.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),y.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),y.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),y.jsx("div",{className:"flex flex-wrap gap-2",children:(z=h.data)==null?void 0:z.data.map(K=>y.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>x(K.name),type:"button",children:K.name},K.name))})]})]});const S=((M=b.data)==null?void 0:M.data)??[],w=c?S.filter(K=>K.title.toLowerCase().includes(c.toLowerCase())||K.skills.some(L=>L.includes(c))||K.labels.some(L=>L.includes(c))):S,T=(H=h.data)==null?void 0:H.data.find(K=>K.name===i),N=(T==null?void 0:T.pipelineStatus)==="running";return y.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[y.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:T?`${T.name} · ${T.cards.total} cards · ${T.workers.active} workers 活跃`:"加载中…"})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsx(Bh,{current:i,onChange:x}),N?y.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await WN(i),E()},type:"button",children:[y.jsx(_N,{size:14,strokeWidth:3})," 停止"]}):y.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await ZN(i),E()},type:"button",children:[y.jsx(zh,{size:14,strokeWidth:3})," 启动 pipeline"]}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await d({title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",danger:!0})&&(await JN(i,{all:!0}),E())},children:[y.jsx(Ih,{size:14,strokeWidth:2.5})," 重置"]}),y.jsxs("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:async()=>{const K=await p({title:"新建卡片",body:"输入卡片标题,会作为 markdown 文件的 title。",placeholder:"例如:接入 GitHub OAuth"});K&&(await XN(i,K),E())},children:[y.jsx(nu,{size:14,strokeWidth:3})," 新卡片"]})]})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Uh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:c,onChange:K=>u(K.target.value),"aria-label":"搜索卡片"})]}),y.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[y.jsx(Yw,{size:12}),w.length," / ",S.length]})]}),b.isError&&y.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[y.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),y.jsx("p",{className:"text-sm mt-1 text-[var(--color-text-muted)]",children:b.error instanceof Error?b.error.message:String(b.error)})]}),!b.isError&&y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:mk.map(K=>y.jsx(ok,{label:K.label,bg:K.bg,cards:w.filter(gk(K.state)),onCardClick:L=>o(L.seq)},K.state))}),l!==null&&y.jsx(hk,{project:i,seq:l,onClose:()=>o(null),onChanged:E})]})}function gk(e){return a=>e==="Backlog"?a.state==="Backlog"||a.state==="Planning":e==="Done"?a.state==="Done"||a.state==="Canceled":a.state===e}function bk(e){return Kn(`/api/projects/${encodeURIComponent(e)}/workers`)}async function yk(e,a){const i=await fetch(e,{method:"POST",headers:void 0,body:void 0});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return i.json().catch(()=>({}))}function vk(e,a){return yk(`/api/projects/${encodeURIComponent(e)}/workers/${a}/kill`)}function xk(){const[e,a]=Dh(),i=e.get("project");dx(i);const l=Ml(),{data:o,isLoading:c,isError:u,error:d,refetch:p}=tn({queryKey:["workers",i],queryFn:()=>bk(i??""),enabled:!!i,refetchInterval:5e3});if(!i)return y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",y.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",y.jsx(Il,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const h=(o==null?void 0:o.data)??[],b=h.filter(x=>x.state==="running").length,g=h.filter(x=>x.state==="stuck").length,E=h.filter(x=>x.state==="crashed").length;return y.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[h.length," 个 slot · ",b," running · ",g," stuck · ",E," crashed"]})]}),y.jsxs("div",{className:"flex gap-3 items-center",children:[y.jsx(Bh,{current:i,onChange:x=>a({project:x})}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>p(),type:"button",children:[y.jsx(Ih,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),c&&y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),u&&y.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:y.jsxs("p",{className:"font-semibold",children:["加载失败: ",d instanceof Error?d.message:String(d)]})}),!c&&h.length===0&&y.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),h.length>0&&y.jsx("div",{className:"nb-card p-0 overflow-hidden",children:y.jsxs("table",{className:"w-full text-sm",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[y.jsx(hr,{w:"70px",children:"Slot"}),y.jsx(hr,{children:"Card"}),y.jsx(hr,{w:"110px",children:"Status"}),y.jsx(hr,{w:"90px",children:"Stage"}),y.jsx(hr,{w:"90px",children:"PID"}),y.jsx(hr,{w:"120px",children:"Runtime"}),y.jsx(hr,{w:"200px",right:!0,children:"Action"})]})}),y.jsx("tbody",{children:h.map(x=>y.jsx(Ek,{project:i,worker:x,onChange:()=>l.invalidateQueries({queryKey:["workers",i]})},x.slot))})]})})]})}function hr({children:e,w:a,right:i}){return y.jsx("th",{className:["px-4 py-3 text-left font-[family-name:var(--font-heading)] font-bold text-[12px] uppercase tracking-wider text-[var(--color-text-muted)]",i?"text-right":""].join(" "),style:a?{width:a}:void 0,children:e})}function Ek({project:e,worker:a,onChange:i}){const{confirm:l}=lo(),o=a.state==="idle";return y.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:a.slot}),y.jsx("td",{className:"px-4 py-3",children:a.card?y.jsxs("span",{className:"font-semibold",children:[y.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full font-[family-name:var(--font-mono)] mr-2",children:["#",a.card.seq]}),a.card.title]}):y.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),y.jsx("td",{className:"px-4 py-3",children:y.jsx(_k,{state:a.state})}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.stage||"—"}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.pid??"—"}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:Sk(a.runtimeMs)}),y.jsx("td",{className:"px-4 py-3 text-right space-x-2",children:!o&&y.jsxs(y.Fragment,{children:[y.jsxs(Il,{to:`/logs?project=${encodeURIComponent(e)}&worker=${a.slot}`,className:"nb-btn nb-btn-sm",style:{display:"inline-flex",padding:"4px 10px",fontSize:11},children:[y.jsx(wN,{size:12,strokeWidth:2.5})," log"]}),y.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{await l({title:`终止 worker-${a.slot}`,body:"当前任务会被强制中断,未保存的工作可能丢失。",confirm:"终止",danger:!0})&&(await vk(e,a.slot),i())},type:"button",children:[y.jsx(MN,{size:12,strokeWidth:2.5})," 终止"]})]})})]})}function _k({state:e}){const a={running:{bg:"var(--color-running-bg)",color:"var(--color-running)"},stuck:{bg:"var(--color-stuck-bg)",color:"var(--color-stuck)"},crashed:{bg:"var(--color-crashed-bg)",color:"var(--color-crashed)"},idle:{bg:"var(--color-idle-bg)",color:"var(--color-idle)"}},{bg:i,color:l}=a[e];return y.jsx("span",{className:"nb-status",style:{background:i,color:l},children:e})}function Sk(e){if(e==null||e<=0)return"—";const a=Math.floor(e/1e3),i=Math.floor(a/3600),l=Math.floor(a%3600/60),o=a%60,c=u=>u.toString().padStart(2,"0");return i>0?`${c(i)}:${c(l)}:${c(o)}`:`${c(l)}:${c(o)}`}function wk(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),a.set("limit",String(e.limit)),Kn(`/api/logs?${a}`)}function Nk(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),`/stream/logs?${a}`}const kk=["error","warn","info","debug"],Tk=["error","warn","info"];function Ak(){const[e,a]=Dh(),i=e.get("project"),l=e.get("worker")??"",[o,c]=B.useState([]),[u,d]=B.useState(!1),[p,h]=B.useState(!0),[b,g]=B.useState(()=>new Set(Tk)),[E,x]=B.useState(""),S=B.useRef(null),{data:w}=tn({queryKey:["logs",i,l],queryFn:()=>wk({project:i??"",worker:l||void 0,limit:500}),enabled:!!i});B.useEffect(()=>{w!=null&&w.data&&c(w.data)},[w]),B.useEffect(()=>{if(!i)return;const N=Nk({project:i,worker:l||void 0}),z=new EventSource(N);return z.addEventListener("log.line",M=>{if(!u)try{const H=JSON.parse(M.data);c(K=>{const L=[...K,H];return L.length>5e3&&L.splice(0,L.length-5e3),L})}catch{}}),()=>z.close()},[i,l,u]),B.useEffect(()=>{if(!p)return;const N=S.current;N&&(N.scrollTop=N.scrollHeight)},[o,p]);const T=B.useMemo(()=>{const N=E.toLowerCase();return o.filter(z=>!(!b.has(z.level)||N&&!z.msg.toLowerCase().includes(N)))},[o,b,E]);return i?y.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[y.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[i,l&&` · worker-${l}`," · tail -f · ",o.length," lines",u&&y.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),y.jsx("div",{className:"flex gap-3 items-center",children:y.jsx(Bh,{current:i,onChange:N=>a({project:N})})})]}),y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Uh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:E,onChange:N=>x(N.target.value),"aria-label":"过滤日志"})]}),y.jsx("div",{className:"flex items-center gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:kk.map(N=>y.jsx(Ck,{level:N,enabled:b.has(N),onToggle:()=>{g(z=>{const M=new Set(z);return M.has(N)?M.delete(N):M.add(N),M})}},N))}),y.jsxs("div",{className:"ml-auto flex gap-2",children:[y.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>h(N=>!N),type:"button",children:p?"✓ Auto-scroll":"Auto-scroll"}),y.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>d(N=>!N),type:"button",children:u?y.jsxs(y.Fragment,{children:[y.jsx(zh,{size:12,strokeWidth:3})," Resume"]}):y.jsxs(y.Fragment,{children:[y.jsx(cN,{size:12,strokeWidth:3})," Pause"]})}),y.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const N=new Blob([T.map(H=>H.raw).join(`
256
- `)],{type:"text/plain"}),z=URL.createObjectURL(N),M=document.createElement("a");M.href=z,M.download=`${i}-log-${Date.now()}.log`,M.click(),URL.revokeObjectURL(z)},type:"button",children:[y.jsx(qw,{size:12,strokeWidth:2.5})," Export"]})]})]}),y.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[y.jsxs("div",{className:"px-4 py-2 bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)] flex items-center justify-between font-[family-name:var(--font-mono)] text-xs",children:[y.jsx("span",{className:"text-[var(--color-text-muted)]",children:(w==null?void 0:w.file)??"~/.coral/projects/.../logs/*.log"}),y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"})]}),y.jsxs("div",{ref:S,className:"overflow-auto font-[family-name:var(--font-mono)] text-[12px] leading-[22px] max-h-[70vh] bg-[var(--color-bg)] p-2",onScroll:N=>{const z=N.currentTarget;!(z.scrollHeight-z.scrollTop-z.clientHeight<40)&&p&&h(!1)},children:[T.map((N,z)=>y.jsx(Rk,{line:N},z)),T.length===0&&y.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),y.jsxs("p",{className:"text-sm",children:["需要 ",y.jsx("code",{children:"?project=xx"}),"。"]})]})}function Ck({level:e,enabled:a,onToggle:i}){const l={error:"var(--color-crashed-bg)",warn:"var(--color-stuck-bg)",info:"var(--color-secondary)",debug:"var(--color-accent-purple)"},o={error:"var(--color-crashed)",warn:"var(--color-stuck)",info:"var(--color-text)",debug:"var(--color-text)"};return y.jsx("button",{type:"button",onClick:i,"aria-pressed":a,className:["px-3 py-0.5 rounded-full font-[family-name:var(--font-mono)] text-[10px] font-bold tracking-widest cursor-pointer",a?"border-[1.5px] border-[var(--color-text)]":"text-[var(--color-text-subtle)]"].join(" "),style:a?{background:l[e],color:o[e]}:{},children:e.toUpperCase()})}function Rk({line:e}){var i;const a={error:"bg-[var(--color-crashed)] text-[var(--color-text)]",warn:"bg-[var(--color-stuck)] text-[var(--color-text)]",info:"bg-[var(--color-secondary)] text-[var(--color-text)]",debug:"",trace:""};return y.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[y.jsx("span",{className:"text-[var(--color-text-subtle)] whitespace-nowrap",children:e.ts?((i=e.ts.split("T")[1])==null?void 0:i.replace("Z",""))??e.ts:"--"}),y.jsx("span",{className:`text-center font-bold ${a[e.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:e.level.toUpperCase()}),y.jsx("span",{className:"truncate text-[var(--color-text)]",children:e.msg})]})}function Ok(e){return Kn("/api/skills")}function Mk(e){return Kn(`/api/skills/${encodeURIComponent(e)}`)}function Dk(e,a){return Kn(`/api/skills/${encodeURIComponent(e)}/references/${encodeURIComponent(a)}`)}async function iu(e,a){const i=await fetch(e,{method:"POST",headers:a?{"Content-Type":"application/json"}:void 0,body:a?JSON.stringify(a):void 0});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return i.json().catch(()=>({}))}function Lk(e,a){return iu(`/api/skills/${encodeURIComponent(e)}/link`,{project:a})}function zk(e,a){return fetch(`/api/skills/${encodeURIComponent(e)}/link?project=${encodeURIComponent(a)}`,{method:"DELETE"}).then(i=>{if(!i.ok)throw new Error(`${i.status}`);return i.json()})}function Ik(e,a){return iu(`/api/skills/${encodeURIComponent(e)}/freeze`,{project:a})}function Uk(e,a){return iu(`/api/skills/${encodeURIComponent(e)}/unfreeze`,{project:a})}function Bk(){return iu("/api/skills/sync")}function jk(e,a){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Hk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qk={};function py(e,a){return(qk.jsx?Fk:Hk).test(e)}const Pk=/[ \t\n\f\r]/g;function Gk(e){return typeof e=="object"?e.type==="text"?gy(e.value):!1:gy(e)}function gy(e){return e.replace(Pk,"")===""}class so{constructor(a,i,l){this.normal=i,this.property=a,l&&(this.space=l)}}so.prototype.normal={};so.prototype.property={};so.prototype.space=void 0;function gx(e,a){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new so(i,l,a)}function lh(e){return e.toLowerCase()}class Cn{constructor(a,i){this.attribute=i,this.property=a}}Cn.prototype.attribute="";Cn.prototype.booleanish=!1;Cn.prototype.boolean=!1;Cn.prototype.commaOrSpaceSeparated=!1;Cn.prototype.commaSeparated=!1;Cn.prototype.defined=!1;Cn.prototype.mustUseProperty=!1;Cn.prototype.number=!1;Cn.prototype.overloadedBoolean=!1;Cn.prototype.property="";Cn.prototype.spaceSeparated=!1;Cn.prototype.space=void 0;let Kk=0;const Ue=kr(),Pt=kr(),sh=kr(),ce=kr(),vt=kr(),yl=kr(),Fn=kr();function kr(){return 2**++Kk}const oh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Pt,commaOrSpaceSeparated:Fn,commaSeparated:yl,number:ce,overloadedBoolean:sh,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),Sd=Object.keys(oh);class jh extends Cn{constructor(a,i,l,o){let c=-1;if(super(a,i),by(this,"space",o),typeof l=="number")for(;++c<Sd.length;){const u=Sd[c];by(this,Sd[c],(l&oh[u])===oh[u])}}}jh.prototype.defined=!0;function by(e,a,i){i&&(e[a]=i)}function Bl(e){const a={},i={};for(const[l,o]of Object.entries(e.properties)){const c=new jh(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(c.mustUseProperty=!0),a[l]=c,i[lh(l)]=l,i[lh(c.attribute)]=l}return new so(a,i,e.space)}const bx=Bl({properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:vt,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:ce,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:vt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Pt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function yx(e,a){return a in e?e[a]:a}function vx(e,a){return yx(e,a.toLowerCase())}const $k=Bl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yl,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:vt,autoFocus:Ue,autoPlay:Ue,blocking:vt,capture:null,charSet:null,checked:Ue,cite:null,className:vt,cols:ce,colSpan:null,content:null,contentEditable:Pt,controls:Ue,controlsList:vt,coords:ce|yl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:sh,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:vt,height:ce,hidden:sh,high:ce,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:vt,itemRef:vt,itemScope:Ue,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,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:Ue,optimum:ce,pattern:null,ping:vt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:vt,required:Ue,reversed:Ue,rows:ce,rowSpan:ce,sandbox:vt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Pt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:vx}),Yk=Bl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:vt,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:yl,g2:yl,glyphName:yl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yx}),xx=Bl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,a){return"xlink:"+a.slice(5).toLowerCase()}}),Ex=Bl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vx}),_x=Bl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,a){return"xml:"+a.slice(3).toLowerCase()}}),Qk={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"},Vk=/[A-Z]/g,yy=/-[a-z]/g,Xk=/^data[-\w.:]+$/i;function Zk(e,a){const i=lh(a);let l=a,o=Cn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Xk.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(yy,Jk);l="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!yy.test(c)){let u=c.replace(Vk,Wk);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}o=jh}return new o(l,a)}function Wk(e){return"-"+e.toLowerCase()}function Jk(e){return e.charAt(1).toUpperCase()}const eT=gx([bx,$k,xx,Ex,_x],"html"),Hh=gx([bx,Yk,xx,Ex,_x],"svg");function tT(e){return e.join(" ").trim()}var hl={},wd,vy;function nT(){if(vy)return wd;vy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
257
- `,h="/",b="*",g="",E="comment",x="declaration";function S(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var z=1,M=1;function H(le){var te=le.match(a);te&&(z+=te.length);var F=le.lastIndexOf(p);M=~F?le.length-F:M+le.length}function K(){var le={line:z,column:M};return function(te){return te.position=new L(le),V(),te}}function L(le){this.start=le,this.end={line:z,column:M},this.source=N.source}L.prototype.content=T;function G(le){var te=new Error(N.source+":"+z+":"+M+": "+le);if(te.reason=le,te.filename=N.source,te.line=z,te.column=M,te.source=T,!N.silent)throw te}function X(le){var te=le.exec(T);if(te){var F=te[0];return H(F),T=T.slice(F.length),te}}function V(){X(i)}function C(le){var te;for(le=le||[];te=ae();)te!==!1&&le.push(te);return le}function ae(){var le=K();if(!(h!=T.charAt(0)||b!=T.charAt(1))){for(var te=2;g!=T.charAt(te)&&(b!=T.charAt(te)||h!=T.charAt(te+1));)++te;if(te+=2,g===T.charAt(te-1))return G("End of comment missing");var F=T.slice(2,te-2);return M+=2,H(F),T=T.slice(te),M+=2,le({type:E,comment:F})}}function ie(){var le=K(),te=X(l);if(te){if(ae(),!X(o))return G("property missing ':'");var F=X(c),re=le({type:x,property:w(te[0].replace(e,g)),value:F?w(F[0].replace(e,g)):g});return X(u),re}}function ge(){var le=[];C(le);for(var te;te=ie();)te!==!1&&(le.push(te),C(le));return le}return V(),ge()}function w(T){return T?T.replace(d,g):g}return wd=S,wd}var xy;function aT(){if(xy)return hl;xy=1;var e=hl&&hl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=i;const a=e(nT());function i(l,o){let c=null;if(!l||typeof l!="string")return c;const u=(0,a.default)(l),d=typeof o=="function";return u.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:b}=p;d?o(h,b,p):b&&(c=c||{},c[h]=b)}),c}return hl}var Us={},Ey;function iT(){if(Ey)return Us;Ey=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(h){return!h||i.test(h)||e.test(h)},u=function(h,b){return b.toUpperCase()},d=function(h,b){return"".concat(b,"-")},p=function(h,b){return b===void 0&&(b={}),c(h)?h:(h=h.toLowerCase(),b.reactCompat?h=h.replace(o,d):h=h.replace(l,d),h.replace(a,u))};return Us.camelCase=p,Us}var Bs,_y;function rT(){if(_y)return Bs;_y=1;var e=Bs&&Bs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=e(aT()),i=iT();function l(o,c){var u={};return!o||typeof o!="string"||(0,a.default)(o,function(d,p){d&&p&&(u[(0,i.camelCase)(d,c)]=p)}),u}return l.default=l,Bs=l,Bs}var lT=rT();const sT=vh(lT),Sx=wx("end"),Fh=wx("start");function wx(e){return a;function a(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function oT(e){const a=Fh(e),i=Sx(e);if(a&&i)return{start:a,end:i}}function Ps(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sy(e.position):"start"in e||"end"in e?Sy(e):"line"in e||"column"in e?ch(e):""}function ch(e){return wy(e&&e.line)+":"+wy(e&&e.column)}function Sy(e){return ch(e&&e.start)+"-"+ch(e&&e.end)}function wy(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(a,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let o="",c={},u=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof a=="string"?o=a:!c.cause&&a&&(u=!0,o=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof l=="string"){const p=l.indexOf(":");p===-1?c.ruleId=l:(c.source=l.slice(0,p),c.ruleId=l.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Ps(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="";cn.prototype.name="";cn.prototype.reason="";cn.prototype.message="";cn.prototype.stack="";cn.prototype.column=void 0;cn.prototype.line=void 0;cn.prototype.ancestors=void 0;cn.prototype.cause=void 0;cn.prototype.fatal=void 0;cn.prototype.place=void 0;cn.prototype.ruleId=void 0;cn.prototype.source=void 0;const qh={}.hasOwnProperty,cT=new Map,uT=/[A-Z]/g,fT=new Set(["table","tbody","thead","tfoot","tr"]),dT=new Set(["td","th"]),Nx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hT(e,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let l;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=ET(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=xT(i,a.jsx,a.jsxs)}const o={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:l,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Hh:eT,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=kx(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function kx(e,a,i){if(a.type==="element")return mT(e,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return pT(e,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return bT(e,a,i);if(a.type==="mdxjsEsm")return gT(e,a);if(a.type==="root")return yT(e,a,i);if(a.type==="text")return vT(e,a)}function mT(e,a,i){const l=e.schema;let o=l;a.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Hh,e.schema=o),e.ancestors.push(a);const c=Ax(e,a.tagName,!1),u=_T(e,a);let d=Gh(e,a);return fT.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!Gk(p):!0})),Tx(e,u,c,a),Ph(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function pT(e,a){if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Xs(e,a.position)}function gT(e,a){if(a.data&&a.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(a.data.estree);Xs(e,a.position)}function bT(e,a,i){const l=e.schema;let o=l;a.name==="svg"&&l.space==="html"&&(o=Hh,e.schema=o),e.ancestors.push(a);const c=a.name===null?e.Fragment:Ax(e,a.name,!0),u=ST(e,a),d=Gh(e,a);return Tx(e,u,c,a),Ph(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function yT(e,a,i){const l={};return Ph(l,Gh(e,a)),e.create(a,e.Fragment,l,i)}function vT(e,a){return a.value}function Tx(e,a,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(a.node=l)}function Ph(e,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(e.children=i)}}function xT(e,a,i){return l;function l(o,c,u,d){const h=Array.isArray(u.children)?i:a;return d?h(c,u,d):h(c,u)}}function ET(e,a){return i;function i(l,o,c,u){const d=Array.isArray(c.children),p=Fh(l);return a(o,c,u,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function _T(e,a){const i={};let l,o;for(o in a.properties)if(o!=="children"&&qh.call(a.properties,o)){const c=wT(e,o,a.properties[o]);if(c){const[u,d]=c;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&dT.has(a.tagName)?l=d:i[u]=d}}if(l){const c=i.style||(i.style={});c[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function ST(e,a){const i={};for(const l of a.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const c=l.data.estree.body[0];c.type;const u=c.expression;u.type;const d=u.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else Xs(e,a.position);else{const o=l.name;let c;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const d=l.value.data.estree.body[0];d.type,c=e.evaluater.evaluateExpression(d.expression)}else Xs(e,a.position);else c=l.value===null?!0:l.value;i[o]=c}return i}function Gh(e,a){const i=[];let l=-1;const o=e.passKeys?new Map:cT;for(;++l<a.children.length;){const c=a.children[l];let u;if(e.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const h=o.get(p)||0;u=p+"-"+h,o.set(p,h+1)}}const d=kx(e,c,u);d!==void 0&&i.push(d)}return i}function wT(e,a,i){const l=Zk(e.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?jk(i):tT(i)),l.property==="style"){let o=typeof i=="object"?i:NT(e,String(i));return e.stylePropertyNameCase==="css"&&(o=kT(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?Qk[l.property]||l.property:l.attribute,i]}}function NT(e,a){try{return sT(a,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Nx+"#cannot-parse-style-attribute",o}}function Ax(e,a,i){let l;if(!i)l={type:"Literal",value:a};else if(a.includes(".")){const o=a.split(".");let c=-1,u;for(;++c<o.length;){const d=py(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}l=u}else l=py(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(l.type==="Literal"){const o=l.value;return qh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);Xs(e)}function Xs(e,a){const i=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Nx+"#cannot-handle-mdx-estrees-without-createevaluater",i}function kT(e){const a={};let i;for(i in e)qh.call(e,i)&&(a[TT(i)]=e[i]);return a}function TT(e){let a=e.replace(uT,AT);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function AT(e){return"-"+e.toLowerCase()}const Nd={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"]},CT={};function Kh(e,a){const i=CT,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Cx(e,l,o)}function Cx(e,a,i){if(RT(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(a&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ny(e.children,a,i)}return Array.isArray(e)?Ny(e,a,i):""}function Ny(e,a,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=Cx(e[o],a,i);return l.join("")}function RT(e){return!!(e&&typeof e=="object")}const ky=document.createElement("i");function $h(e){const a="&"+e+";";ky.innerHTML=a;const i=ky.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===a?!1:i}function Pn(e,a,i,l){const o=e.length;let c=0,u;if(a<0?a=-a>o?0:o+a:a=a>o?o:a,i=i>0?i:0,l.length<1e4)u=Array.from(l),u.unshift(a,i),e.splice(...u);else for(i&&e.splice(a,i);c<l.length;)u=l.slice(c,c+1e4),u.unshift(a,0),e.splice(...u),c+=1e4,a+=1e4}function ra(e,a){return e.length>0?(Pn(e,e.length,0,a),e):a}const Ty={}.hasOwnProperty;function Rx(e){const a={};let i=-1;for(;++i<e.length;)OT(a,e[i]);return a}function OT(e,a){let i;for(i in a){const o=(Ty.call(e,i)?e[i]:void 0)||(e[i]={}),c=a[i];let u;if(c)for(u in c){Ty.call(o,u)||(o[u]=[]);const d=c[u];MT(o[u],Array.isArray(d)?d:d?[d]:[])}}}function MT(e,a){let i=-1;const l=[];for(;++i<a.length;)(a[i].add==="after"?e:l).push(a[i]);Pn(e,0,0,l)}function Ox(e,a){const i=Number.parseInt(e,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function pa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gn=Gi(/[A-Za-z]/),on=Gi(/[\dA-Za-z]/),DT=Gi(/[#-'*+\--9=?A-Z^-~]/);function $c(e){return e!==null&&(e<32||e===127)}const uh=Gi(/\d/),LT=Gi(/[\dA-Fa-f]/),zT=Gi(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function bt(e){return e!==null&&(e<0||e===32)}function Pe(e){return e===-2||e===-1||e===32}const ru=Gi(new RegExp("\\p{P}|\\p{S}","u")),Nr=Gi(/\s/);function Gi(e){return a;function a(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function jl(e){const a=[];let i=-1,l=0,o=0;for(;++i<e.length;){const c=e.charCodeAt(i);let u="";if(c===37&&on(e.charCodeAt(i+1))&&on(e.charCodeAt(i+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=e.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),o=1):u="�"}else u=String.fromCharCode(c);u&&(a.push(e.slice(l,i),encodeURIComponent(u)),l=i+o+1,u=""),o&&(i+=o,o=0)}return a.join("")+e.slice(l)}function We(e,a,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let c=0;return u;function u(p){return Pe(p)?(e.enter(i),d(p)):a(p)}function d(p){return Pe(p)&&c++<o?(e.consume(p),d):(e.exit(i),a(p))}}const IT={tokenize:UT};function UT(e){const a=e.attempt(this.parser.constructs.contentInitial,l,o);let i;return a;function l(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),We(e,a,"linePrefix")}function o(d){return e.enter("paragraph"),c(d)}function c(d){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return ke(d)?(e.consume(d),e.exit("chunkText"),c):(e.consume(d),u)}}const BT={tokenize:jT},Ay={tokenize:HT};function jT(e){const a=this,i=[];let l=0,o,c,u;return d;function d(M){if(l<i.length){const H=i[l];return a.containerState=H[1],e.attempt(H[0].continuation,p,h)(M)}return h(M)}function p(M){if(l++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&z();const H=a.events.length;let K=H,L;for(;K--;)if(a.events[K][0]==="exit"&&a.events[K][1].type==="chunkFlow"){L=a.events[K][1].end;break}N(l);let G=H;for(;G<a.events.length;)a.events[G][1].end={...L},G++;return Pn(a.events,K+1,0,a.events.slice(H)),a.events.length=G,h(M)}return d(M)}function h(M){if(l===i.length){if(!o)return E(M);if(o.currentConstruct&&o.currentConstruct.concrete)return S(M);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},e.check(Ay,b,g)(M)}function b(M){return o&&z(),N(l),E(M)}function g(M){return a.parser.lazy[a.now().line]=l!==i.length,u=a.now().offset,S(M)}function E(M){return a.containerState={},e.attempt(Ay,x,S)(M)}function x(M){return l++,i.push([a.currentConstruct,a.containerState]),E(M)}function S(M){if(M===null){o&&z(),N(0),e.consume(M);return}return o=o||a.parser.flow(a.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),w(M)}function w(M){if(M===null){T(e.exit("chunkFlow"),!0),N(0),e.consume(M);return}return ke(M)?(e.consume(M),T(e.exit("chunkFlow")),l=0,a.interrupt=void 0,d):(e.consume(M),w)}function T(M,H){const K=a.sliceStream(M);if(H&&K.push(null),M.previous=c,c&&(c.next=M),c=M,o.defineSkip(M.start),o.write(K),a.parser.lazy[M.start.line]){let L=o.events.length;for(;L--;)if(o.events[L][1].start.offset<u&&(!o.events[L][1].end||o.events[L][1].end.offset>u))return;const G=a.events.length;let X=G,V,C;for(;X--;)if(a.events[X][0]==="exit"&&a.events[X][1].type==="chunkFlow"){if(V){C=a.events[X][1].end;break}V=!0}for(N(l),L=G;L<a.events.length;)a.events[L][1].end={...C},L++;Pn(a.events,X+1,0,a.events.slice(G)),a.events.length=L}}function N(M){let H=i.length;for(;H-- >M;){const K=i[H];a.containerState=K[1],K[0].exit.call(a,e)}i.length=M}function z(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function HT(e,a,i){return We(e,e.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ol(e){if(e===null||bt(e)||Nr(e))return 1;if(ru(e))return 2}function lu(e,a,i){const l=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!l.includes(c)&&(a=c(a,i),l.push(c))}return a}const fh={name:"attention",resolveAll:FT,tokenize:qT};function FT(e,a){let i=-1,l,o,c,u,d,p,h,b;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&a.sliceSerialize(e[l][1]).charCodeAt(0)===a.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[l][1].end},E={...e[i][1].start};Cy(g,-p),Cy(E,p),u={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:E},c={type:p>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:p>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[l][1].end={...u.start},e[i][1].start={...d.end},h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=ra(h,[["enter",e[l][1],a],["exit",e[l][1],a]])),h=ra(h,[["enter",o,a],["enter",u,a],["exit",u,a],["enter",c,a]]),h=ra(h,lu(a.parser.constructs.insideSpan.null,e.slice(l+1,i),a)),h=ra(h,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",o,a]]),e[i][1].end.offset-e[i][1].start.offset?(b=2,h=ra(h,[["enter",e[i][1],a],["exit",e[i][1],a]])):b=0,Pn(e,l-1,i-l+3,h),i=l+h.length-b-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function qT(e,a){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=Ol(l);let c;return u;function u(p){return c=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===c)return e.consume(p),d;const h=e.exit("attentionSequence"),b=Ol(p),g=!b||b===2&&o||i.includes(p),E=!o||o===2&&b||i.includes(l);return h._open=!!(c===42?g:g&&(o||!E)),h._close=!!(c===42?E:E&&(b||!g)),a(p)}}function Cy(e,a){e.column+=a,e.offset+=a,e._bufferIndex+=a}const PT={name:"autolink",tokenize:GT};function GT(e,a,i){let l=0;return o;function o(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(x){return gn(x)?(e.consume(x),u):x===64?i(x):h(x)}function u(x){return x===43||x===45||x===46||on(x)?(l=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),l=0,p):(x===43||x===45||x===46||on(x))&&l++<32?(e.consume(x),d):(l=0,h(x))}function p(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),a):x===null||x===32||x===60||$c(x)?i(x):(e.consume(x),p)}function h(x){return x===64?(e.consume(x),b):DT(x)?(e.consume(x),h):i(x)}function b(x){return on(x)?g(x):i(x)}function g(x){return x===46?(e.consume(x),l=0,b):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),a):E(x)}function E(x){if((x===45||on(x))&&l++<63){const S=x===45?E:g;return e.consume(x),S}return i(x)}}const oo={partial:!0,tokenize:KT};function KT(e,a,i){return l;function l(c){return Pe(c)?We(e,o,"linePrefix")(c):o(c)}function o(c){return c===null||ke(c)?a(c):i(c)}}const Mx={continuation:{tokenize:YT},exit:QT,name:"blockQuote",tokenize:$T};function $T(e,a,i){const l=this;return o;function o(u){if(u===62){const d=l.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),c}return i(u)}function c(u){return Pe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),a):(e.exit("blockQuotePrefix"),a(u))}}function YT(e,a,i){const l=this;return o;function o(u){return Pe(u)?We(e,c,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):c(u)}function c(u){return e.attempt(Mx,a,i)(u)}}function QT(e){e.exit("blockQuote")}const Dx={name:"characterEscape",tokenize:VT};function VT(e,a,i){return l;function l(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),o}function o(c){return zT(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),a):i(c)}}const Lx={name:"characterReference",tokenize:XT};function XT(e,a,i){const l=this;let o=0,c,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),c=31,u=on,b(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,u=LT,b):(e.enter("characterReferenceValue"),c=7,u=uh,b(g))}function b(g){if(g===59&&o){const E=e.exit("characterReferenceValue");return u===on&&!$h(l.sliceSerialize(E))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),a)}return u(g)&&o++<c?(e.consume(g),b):i(g)}}const Ry={partial:!0,tokenize:WT},Oy={concrete:!0,name:"codeFenced",tokenize:ZT};function ZT(e,a,i){const l=this,o={partial:!0,tokenize:K};let c=0,u=0,d;return p;function p(L){return h(L)}function h(L){const G=l.events[l.events.length-1];return c=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,d=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===d?(u++,e.consume(L),b):u<3?i(L):(e.exit("codeFencedFenceSequence"),Pe(L)?We(e,g,"whitespace")(L):g(L))}function g(L){return L===null||ke(L)?(e.exit("codeFencedFence"),l.interrupt?a(L):e.check(Ry,w,H)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(L))}function E(L){return L===null||ke(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Pe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,x,"whitespace")(L)):L===96&&L===d?i(L):(e.consume(L),E)}function x(L){return L===null||ke(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(L))}function S(L){return L===null||ke(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===d?i(L):(e.consume(L),S)}function w(L){return e.attempt(o,H,T)(L)}function T(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return c>0&&Pe(L)?We(e,z,"linePrefix",c+1)(L):z(L)}function z(L){return L===null||ke(L)?e.check(Ry,w,H)(L):(e.enter("codeFlowValue"),M(L))}function M(L){return L===null||ke(L)?(e.exit("codeFlowValue"),z(L)):(e.consume(L),M)}function H(L){return e.exit("codeFenced"),a(L)}function K(L,G,X){let V=0;return C;function C(te){return L.enter("lineEnding"),L.consume(te),L.exit("lineEnding"),ae}function ae(te){return L.enter("codeFencedFence"),Pe(te)?We(L,ie,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ie(te)}function ie(te){return te===d?(L.enter("codeFencedFenceSequence"),ge(te)):X(te)}function ge(te){return te===d?(V++,L.consume(te),ge):V>=u?(L.exit("codeFencedFenceSequence"),Pe(te)?We(L,le,"whitespace")(te):le(te)):X(te)}function le(te){return te===null||ke(te)?(L.exit("codeFencedFence"),G(te)):X(te)}}}function WT(e,a,i){const l=this;return o;function o(u){return u===null?i(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c)}function c(u){return l.parser.lazy[l.now().line]?i(u):a(u)}}const kd={name:"codeIndented",tokenize:eA},JT={partial:!0,tokenize:tA};function eA(e,a,i){const l=this;return o;function o(h){return e.enter("codeIndented"),We(e,c,"linePrefix",5)(h)}function c(h){const b=l.events[l.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?u(h):i(h)}function u(h){return h===null?p(h):ke(h)?e.attempt(JT,u,p)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||ke(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function p(h){return e.exit("codeIndented"),a(h)}}function tA(e,a,i){const l=this;return o;function o(u){return l.parser.lazy[l.now().line]?i(u):ke(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):We(e,c,"linePrefix",5)(u)}function c(u){const d=l.events[l.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):ke(u)?o(u):i(u)}}const nA={name:"codeText",previous:iA,resolve:aA,tokenize:rA};function aA(e){let a=e.length-4,i=3,l,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[a][1].type==="lineEnding"||e[a][1].type==="space")){for(l=i;++l<a;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(l=i-1,a++;++l<=a;)o===void 0?l!==a&&e[l][1].type!=="lineEnding"&&(o=l):(l===a||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),a-=l-o-2,l=o+2),o=void 0);return e}function iA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rA(e,a,i){let l=0,o,c;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),l++,d):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(c=e.enter("codeTextSequence"),o=0,b(g)):ke(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||ke(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),h)}function b(g){return g===96?(e.consume(g),o++,b):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),a(g)):(c.type="codeTextData",h(g))}}class lA{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(a,l):a>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(a,i,l){const o=i||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&js(this.left,l),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),js(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),js(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);js(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);js(this.left,i.reverse())}}}function js(e,a){let i=0;if(a.length<1e4)e.push(...a);else for(;i<a.length;)e.push(...a.slice(i,i+1e4)),i+=1e4}function zx(e){const a={};let i=-1,l,o,c,u,d,p,h;const b=new lA(e);for(;++i<b.length;){for(;i in a;)i=a[i];if(l=b.get(i),i&&l[1].type==="chunkFlow"&&b.get(i-1)[1].type==="listItemPrefix"&&(p=l[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(l[0]==="enter")l[1].contentType&&(Object.assign(a,sA(b,i)),i=a[i],h=!0);else if(l[1]._container){for(c=i,o=void 0;c--;)if(u=b.get(c),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=c);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(l[1].end={...b.get(o)[1].start},d=b.slice(o,i),d.unshift(l),b.splice(o,i-o+1,d))}}return Pn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!h}function sA(e,a){const i=e.get(a)[1],l=e.get(a)[2];let o=a-1;const c=[];let u=i._tokenizer;u||(u=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,p=[],h={};let b,g,E=-1,x=i,S=0,w=0;const T=[w];for(;x;){for(;e.get(++o)[1]!==x;);c.push(o),x._tokenizer||(b=l.sliceStream(x),x.next||b.push(null),g&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(b),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=i;++E<d.length;)d[E][0]==="exit"&&d[E-1][0]==="enter"&&d[E][1].type===d[E-1][1].type&&d[E][1].start.line!==d[E][1].end.line&&(w=E+1,T.push(w),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):T.pop(),E=T.length;E--;){const N=d.slice(T[E],T[E+1]),z=c.pop();p.push([z,z+N.length-1]),e.splice(z,2,N)}for(p.reverse(),E=-1;++E<p.length;)h[S+p[E][0]]=S+p[E][1],S+=p[E][1]-p[E][0]-1;return h}const oA={resolve:uA,tokenize:fA},cA={partial:!0,tokenize:dA};function uA(e){return zx(e),e}function fA(e,a){let i;return l;function l(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?c(d):ke(d)?e.check(cA,u,c)(d):(e.consume(d),o)}function c(d){return e.exit("chunkContent"),e.exit("content"),a(d)}function u(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function dA(e,a,i){const l=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),We(e,c,"linePrefix")}function c(u){if(u===null||ke(u))return i(u);const d=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):e.interrupt(l.parser.constructs.flow,i,a)(u)}}function Ix(e,a,i,l,o,c,u,d,p){const h=p||Number.POSITIVE_INFINITY;let b=0;return g;function g(N){return N===60?(e.enter(l),e.enter(o),e.enter(c),e.consume(N),e.exit(c),E):N===null||N===32||N===41||$c(N)?i(N):(e.enter(l),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(N))}function E(N){return N===62?(e.enter(c),e.consume(N),e.exit(c),e.exit(o),e.exit(l),a):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===62?(e.exit("chunkString"),e.exit(d),E(N)):N===null||N===60||ke(N)?i(N):(e.consume(N),N===92?S:x)}function S(N){return N===60||N===62||N===92?(e.consume(N),x):x(N)}function w(N){return!b&&(N===null||N===41||bt(N))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(l),a(N)):b<h&&N===40?(e.consume(N),b++,w):N===41?(e.consume(N),b--,w):N===null||N===32||N===40||$c(N)?i(N):(e.consume(N),N===92?T:w)}function T(N){return N===40||N===41||N===92?(e.consume(N),w):w(N)}}function Ux(e,a,i,l,o,c){const u=this;let d=0,p;return h;function h(x){return e.enter(l),e.enter(o),e.consume(x),e.exit(o),e.enter(c),b}function b(x){return d>999||x===null||x===91||x===93&&!p||x===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?i(x):x===93?(e.exit(c),e.enter(o),e.consume(x),e.exit(o),e.exit(l),a):ke(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||ke(x)||d++>999?(e.exit("chunkString"),b(x)):(e.consume(x),p||(p=!Pe(x)),x===92?E:g)}function E(x){return x===91||x===92||x===93?(e.consume(x),d++,g):g(x)}}function Bx(e,a,i,l,o,c){let u;return d;function d(E){return E===34||E===39||E===40?(e.enter(l),e.enter(o),e.consume(E),e.exit(o),u=E===40?41:E,p):i(E)}function p(E){return E===u?(e.enter(o),e.consume(E),e.exit(o),e.exit(l),a):(e.enter(c),h(E))}function h(E){return E===u?(e.exit(c),p(u)):E===null?i(E):ke(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),We(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===u||E===null||ke(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?g:b)}function g(E){return E===u||E===92?(e.consume(E),b):b(E)}}function Gs(e,a){let i;return l;function l(o){return ke(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):Pe(o)?We(e,l,i?"linePrefix":"lineSuffix")(o):a(o)}}const hA={name:"definition",tokenize:pA},mA={partial:!0,tokenize:gA};function pA(e,a,i){const l=this;let o;return c;function c(x){return e.enter("definition"),u(x)}function u(x){return Ux.call(l,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=pa(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),p):i(x)}function p(x){return bt(x)?Gs(e,h)(x):h(x)}function h(x){return Ix(e,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return e.attempt(mA,g,g)(x)}function g(x){return Pe(x)?We(e,E,"whitespace")(x):E(x)}function E(x){return x===null||ke(x)?(e.exit("definition"),l.parser.defined.push(o),a(x)):i(x)}}function gA(e,a,i){return l;function l(d){return bt(d)?Gs(e,o)(d):i(d)}function o(d){return Bx(e,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Pe(d)?We(e,u,"whitespace")(d):u(d)}function u(d){return d===null||ke(d)?a(d):i(d)}}const bA={name:"hardBreakEscape",tokenize:yA};function yA(e,a,i){return l;function l(c){return e.enter("hardBreakEscape"),e.consume(c),o}function o(c){return ke(c)?(e.exit("hardBreakEscape"),a(c)):i(c)}}const vA={name:"headingAtx",resolve:xA,tokenize:EA};function xA(e,a){let i=e.length-2,l=3,o,c;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},c={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Pn(e,l,i-l+1,[["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a]])),e}function EA(e,a,i){let l=0;return o;function o(b){return e.enter("atxHeading"),c(b)}function c(b){return e.enter("atxHeadingSequence"),u(b)}function u(b){return b===35&&l++<6?(e.consume(b),u):b===null||bt(b)?(e.exit("atxHeadingSequence"),d(b)):i(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||ke(b)?(e.exit("atxHeading"),a(b)):Pe(b)?We(e,d,"whitespace")(b):(e.enter("atxHeadingText"),h(b))}function p(b){return b===35?(e.consume(b),p):(e.exit("atxHeadingSequence"),d(b))}function h(b){return b===null||b===35||bt(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),h)}}const _A=["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"],My=["pre","script","style","textarea"],SA={concrete:!0,name:"htmlFlow",resolveTo:kA,tokenize:TA},wA={partial:!0,tokenize:CA},NA={partial:!0,tokenize:AA};function kA(e){let a=e.length;for(;a--&&!(e[a][0]==="enter"&&e[a][1].type==="htmlFlow"););return a>1&&e[a-2][1].type==="linePrefix"&&(e[a][1].start=e[a-2][1].start,e[a+1][1].start=e[a-2][1].start,e.splice(a-2,2)),e}function TA(e,a,i){const l=this;let o,c,u,d,p;return h;function h(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),g}function g(k){return k===33?(e.consume(k),E):k===47?(e.consume(k),c=!0,w):k===63?(e.consume(k),o=3,l.interrupt?a:A):gn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function E(k){return k===45?(e.consume(k),o=2,x):k===91?(e.consume(k),o=5,d=0,S):gn(k)?(e.consume(k),o=4,l.interrupt?a:A):i(k)}function x(k){return k===45?(e.consume(k),l.interrupt?a:A):i(k)}function S(k){const de="CDATA[";return k===de.charCodeAt(d++)?(e.consume(k),d===de.length?l.interrupt?a:ie:S):i(k)}function w(k){return gn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function T(k){if(k===null||k===47||k===62||bt(k)){const de=k===47,we=u.toLowerCase();return!de&&!c&&My.includes(we)?(o=1,l.interrupt?a(k):ie(k)):_A.includes(u.toLowerCase())?(o=6,de?(e.consume(k),N):l.interrupt?a(k):ie(k)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(k):c?z(k):M(k))}return k===45||on(k)?(e.consume(k),u+=String.fromCharCode(k),T):i(k)}function N(k){return k===62?(e.consume(k),l.interrupt?a:ie):i(k)}function z(k){return Pe(k)?(e.consume(k),z):C(k)}function M(k){return k===47?(e.consume(k),C):k===58||k===95||gn(k)?(e.consume(k),H):Pe(k)?(e.consume(k),M):C(k)}function H(k){return k===45||k===46||k===58||k===95||on(k)?(e.consume(k),H):K(k)}function K(k){return k===61?(e.consume(k),L):Pe(k)?(e.consume(k),K):M(k)}function L(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(e.consume(k),p=k,G):Pe(k)?(e.consume(k),L):X(k)}function G(k){return k===p?(e.consume(k),p=null,V):k===null||ke(k)?i(k):(e.consume(k),G)}function X(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||bt(k)?K(k):(e.consume(k),X)}function V(k){return k===47||k===62||Pe(k)?M(k):i(k)}function C(k){return k===62?(e.consume(k),ae):i(k)}function ae(k){return k===null||ke(k)?ie(k):Pe(k)?(e.consume(k),ae):i(k)}function ie(k){return k===45&&o===2?(e.consume(k),F):k===60&&o===1?(e.consume(k),re):k===62&&o===4?(e.consume(k),O):k===63&&o===3?(e.consume(k),A):k===93&&o===5?(e.consume(k),_e):ke(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(wA,Q,ge)(k)):k===null||ke(k)?(e.exit("htmlFlowData"),ge(k)):(e.consume(k),ie)}function ge(k){return e.check(NA,le,Q)(k)}function le(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),te}function te(k){return k===null||ke(k)?ge(k):(e.enter("htmlFlowData"),ie(k))}function F(k){return k===45?(e.consume(k),A):ie(k)}function re(k){return k===47?(e.consume(k),u="",oe):ie(k)}function oe(k){if(k===62){const de=u.toLowerCase();return My.includes(de)?(e.consume(k),O):ie(k)}return gn(k)&&u.length<8?(e.consume(k),u+=String.fromCharCode(k),oe):ie(k)}function _e(k){return k===93?(e.consume(k),A):ie(k)}function A(k){return k===62?(e.consume(k),O):k===45&&o===2?(e.consume(k),A):ie(k)}function O(k){return k===null||ke(k)?(e.exit("htmlFlowData"),Q(k)):(e.consume(k),O)}function Q(k){return e.exit("htmlFlow"),a(k)}}function AA(e,a,i){const l=this;return o;function o(u){return ke(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):i(u)}function c(u){return l.parser.lazy[l.now().line]?i(u):a(u)}}function CA(e,a,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(oo,a,i)}}const RA={name:"htmlText",tokenize:OA};function OA(e,a,i){const l=this;let o,c,u;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),K):A===63?(e.consume(A),M):gn(A)?(e.consume(A),X):i(A)}function h(A){return A===45?(e.consume(A),b):A===91?(e.consume(A),c=0,S):gn(A)?(e.consume(A),z):i(A)}function b(A){return A===45?(e.consume(A),x):i(A)}function g(A){return A===null?i(A):A===45?(e.consume(A),E):ke(A)?(u=g,re(A)):(e.consume(A),g)}function E(A){return A===45?(e.consume(A),x):g(A)}function x(A){return A===62?F(A):A===45?E(A):g(A)}function S(A){const O="CDATA[";return A===O.charCodeAt(c++)?(e.consume(A),c===O.length?w:S):i(A)}function w(A){return A===null?i(A):A===93?(e.consume(A),T):ke(A)?(u=w,re(A)):(e.consume(A),w)}function T(A){return A===93?(e.consume(A),N):w(A)}function N(A){return A===62?F(A):A===93?(e.consume(A),N):w(A)}function z(A){return A===null||A===62?F(A):ke(A)?(u=z,re(A)):(e.consume(A),z)}function M(A){return A===null?i(A):A===63?(e.consume(A),H):ke(A)?(u=M,re(A)):(e.consume(A),M)}function H(A){return A===62?F(A):M(A)}function K(A){return gn(A)?(e.consume(A),L):i(A)}function L(A){return A===45||on(A)?(e.consume(A),L):G(A)}function G(A){return ke(A)?(u=G,re(A)):Pe(A)?(e.consume(A),G):F(A)}function X(A){return A===45||on(A)?(e.consume(A),X):A===47||A===62||bt(A)?V(A):i(A)}function V(A){return A===47?(e.consume(A),F):A===58||A===95||gn(A)?(e.consume(A),C):ke(A)?(u=V,re(A)):Pe(A)?(e.consume(A),V):F(A)}function C(A){return A===45||A===46||A===58||A===95||on(A)?(e.consume(A),C):ae(A)}function ae(A){return A===61?(e.consume(A),ie):ke(A)?(u=ae,re(A)):Pe(A)?(e.consume(A),ae):V(A)}function ie(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),o=A,ge):ke(A)?(u=ie,re(A)):Pe(A)?(e.consume(A),ie):(e.consume(A),le)}function ge(A){return A===o?(e.consume(A),o=void 0,te):A===null?i(A):ke(A)?(u=ge,re(A)):(e.consume(A),ge)}function le(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||bt(A)?V(A):(e.consume(A),le)}function te(A){return A===47||A===62||bt(A)?V(A):i(A)}function F(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),a):i(A)}function re(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),oe}function oe(A){return Pe(A)?We(e,_e,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):_e(A)}function _e(A){return e.enter("htmlTextData"),u(A)}}const Yh={name:"labelEnd",resolveAll:zA,resolveTo:IA,tokenize:UA},MA={tokenize:BA},DA={tokenize:jA},LA={tokenize:HA};function zA(e){let a=-1;const i=[];for(;++a<e.length;){const l=e[a][1];if(i.push(e[a]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",a+=o}}return e.length!==i.length&&Pn(e,0,e.length,i),e}function IA(e,a){let i=e.length,l=0,o,c,u,d;for(;i--;)if(o=e[i][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=i,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(u=i);const p={type:e[c][1].type==="labelLink"?"link":"image",start:{...e[c][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[c][1].start},end:{...e[u][1].end}},b={type:"labelText",start:{...e[c+l+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",p,a],["enter",h,a]],d=ra(d,e.slice(c+1,c+l+3)),d=ra(d,[["enter",b,a]]),d=ra(d,lu(a.parser.constructs.insideSpan.null,e.slice(c+l+4,u-3),a)),d=ra(d,[["exit",b,a],e[u-2],e[u-1],["exit",h,a]]),d=ra(d,e.slice(u+1)),d=ra(d,[["exit",p,a]]),Pn(e,c,e.length,d),e}function UA(e,a,i){const l=this;let o=l.events.length,c,u;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){c=l.events[o][1];break}return d;function d(E){return c?c._inactive?g(E):(u=l.parser.defined.includes(pa(l.sliceSerialize({start:c.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),p):i(E)}function p(E){return E===40?e.attempt(MA,b,u?b:g)(E):E===91?e.attempt(DA,b,u?h:g)(E):u?b(E):g(E)}function h(E){return e.attempt(LA,b,g)(E)}function b(E){return a(E)}function g(E){return c._balanced=!0,i(E)}}function BA(e,a,i){return l;function l(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return bt(g)?Gs(e,c)(g):c(g)}function c(g){return g===41?b(g):Ix(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return bt(g)?Gs(e,p)(g):b(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?Bx(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function h(g){return bt(g)?Gs(e,b)(g):b(g)}function b(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),a):i(g)}}function jA(e,a,i){const l=this;return o;function o(d){return Ux.call(l,e,c,u,"reference","referenceMarker","referenceString")(d)}function c(d){return l.parser.defined.includes(pa(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function u(d){return i(d)}}function HA(e,a,i){return l;function l(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),o}function o(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),a):i(c)}}const FA={name:"labelStartImage",resolveAll:Yh.resolveAll,tokenize:qA};function qA(e,a,i){const l=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),c}function c(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):i(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(d):a(d)}}const PA={name:"labelStartLink",resolveAll:Yh.resolveAll,tokenize:GA};function GA(e,a,i){const l=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),c}function c(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(u):a(u)}}const Td={name:"lineEnding",tokenize:KA};function KA(e,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),We(e,a,"linePrefix")}}const qc={name:"thematicBreak",tokenize:$A};function $A(e,a,i){let l=0,o;return c;function c(h){return e.enter("thematicBreak"),u(h)}function u(h){return o=h,d(h)}function d(h){return h===o?(e.enter("thematicBreakSequence"),p(h)):l>=3&&(h===null||ke(h))?(e.exit("thematicBreak"),a(h)):i(h)}function p(h){return h===o?(e.consume(h),l++,p):(e.exit("thematicBreakSequence"),Pe(h)?We(e,d,"whitespace")(h):d(h))}}const kn={continuation:{tokenize:XA},exit:WA,name:"list",tokenize:VA},YA={partial:!0,tokenize:JA},QA={partial:!0,tokenize:ZA};function VA(e,a,i){const l=this,o=l.events[l.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return d;function d(x){const S=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:uh(x)){if(l.containerState.type||(l.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(qc,i,h)(x):h(x);if(!l.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(x)}return i(x)}function p(x){return uh(x)&&++u<10?(e.consume(x),p):(!l.interrupt||u<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):i(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,e.check(oo,l.interrupt?i:b,e.attempt(YA,E,g))}function b(x){return l.containerState.initialBlankLine=!0,c++,E(x)}function g(x){return Pe(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),E):i(x)}function E(x){return l.containerState.size=c+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,a(x)}}function XA(e,a,i){const l=this;return l.containerState._closeFlow=void 0,e.check(oo,o,c);function o(d){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,We(e,a,"listItemIndent",l.containerState.size+1)(d)}function c(d){return l.containerState.furtherBlankLines||!Pe(d)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(d)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(QA,a,u)(d))}function u(d){return l.containerState._closeFlow=!0,l.interrupt=void 0,We(e,e.attempt(kn,a,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function ZA(e,a,i){const l=this;return We(e,o,"listItemIndent",l.containerState.size+1);function o(c){const u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?a(c):i(c)}}function WA(e){e.exit(this.containerState.type)}function JA(e,a,i){const l=this;return We(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const u=l.events[l.events.length-1];return!Pe(c)&&u&&u[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const Dy={name:"setextUnderline",resolveTo:eC,tokenize:tC};function eC(e,a){let i=e.length,l,o,c;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!c&&e[i][1].type==="definition"&&(c=i);const u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",c?(e.splice(o,0,["enter",u,a]),e.splice(c+1,0,["exit",e[l][1],a]),e[l][1].end={...e[c][1].end}):e[l][1]=u,e.push(["exit",u,a]),e}function tC(e,a,i){const l=this;let o;return c;function c(h){let b=l.events.length,g;for(;b--;)if(l.events[b][1].type!=="lineEnding"&&l.events[b][1].type!=="linePrefix"&&l.events[b][1].type!=="content"){g=l.events[b][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=h,u(h)):i(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===o?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),Pe(h)?We(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||ke(h)?(e.exit("setextHeadingLine"),a(h)):i(h)}}const nC={tokenize:aC};function aC(e){const a=this,i=e.attempt(oo,l,e.attempt(this.parser.constructs.flowInitial,o,We(e,e.attempt(this.parser.constructs.flow,o,e.attempt(oA,o)),"linePrefix")));return i;function l(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function o(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a.currentConstruct=void 0,i}}const iC={resolveAll:Hx()},rC=jx("string"),lC=jx("text");function jx(e){return{resolveAll:Hx(e==="text"?sC:void 0),tokenize:a};function a(i){const l=this,o=this.parser.constructs[e],c=i.attempt(o,u,d);return u;function u(b){return h(b)?c(b):d(b)}function d(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),p}function p(b){return h(b)?(i.exit("data"),c(b)):(i.consume(b),p)}function h(b){if(b===null)return!0;const g=o[b];let E=-1;if(g)for(;++E<g.length;){const x=g[E];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function Hx(e){return a;function a(i,l){let o=-1,c;for(;++o<=i.length;)c===void 0?i[o]&&i[o][1].type==="data"&&(c=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==c+2&&(i[c][1].end=i[o-1][1].end,i.splice(c+2,o-c-2),o=c+2),c=void 0);return e?e(i,l):i}}function sC(e,a){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const l=e[i-1][1],o=a.sliceStream(l);let c=o.length,u=-1,d=0,p;for(;c--;){const h=o[c];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)p=!0,d++;else if(h!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===e.length&&(d=0),d){const h={type:i===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?u:l.start._bufferIndex+u,_index:l.start._index+c,line:l.end.line,column:l.end.column-d,offset:l.end.offset-d},end:{...l.end}};l.end={...h.start},l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(i,0,["enter",h,a],["exit",h,a]),i+=2)}i++}return e}const oC={42:kn,43:kn,45:kn,48:kn,49:kn,50:kn,51:kn,52:kn,53:kn,54:kn,55:kn,56:kn,57:kn,62:Mx},cC={91:hA},uC={[-2]:kd,[-1]:kd,32:kd},fC={35:vA,42:qc,45:[Dy,qc],60:SA,61:Dy,95:qc,96:Oy,126:Oy},dC={38:Lx,92:Dx},hC={[-5]:Td,[-4]:Td,[-3]:Td,33:FA,38:Lx,42:fh,60:[PT,RA],91:PA,92:[bA,Dx],93:Yh,95:fh,96:nA},mC={null:[fh,iC]},pC={null:[42,95]},gC={null:[]},bC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pC,contentInitial:cC,disable:gC,document:oC,flow:fC,flowInitial:uC,insideSpan:mC,string:dC,text:hC},Symbol.toStringTag,{value:"Module"}));function yC(e,a,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},c=[];let u=[],d=[];const p={attempt:G(K),check:G(L),consume:z,enter:M,exit:H,interrupt:G(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:S,parser:e,previous:null,sliceSerialize:E,sliceStream:x,write:g};let b=a.tokenize.call(h,p);return a.resolveAll&&c.push(a),h;function g(ae){return u=ra(u,ae),T(),u[u.length-1]!==null?[]:(X(a,0),h.events=lu(c,h.events,h),h.events)}function E(ae,ie){return xC(x(ae),ie)}function x(ae){return vC(u,ae)}function S(){const{_bufferIndex:ae,_index:ie,line:ge,column:le,offset:te}=l;return{_bufferIndex:ae,_index:ie,line:ge,column:le,offset:te}}function w(ae){o[ae.line]=ae.column,C()}function T(){let ae;for(;l._index<u.length;){const ie=u[l._index];if(typeof ie=="string")for(ae=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ae&&l._bufferIndex<ie.length;)N(ie.charCodeAt(l._bufferIndex));else N(ie)}}function N(ae){b=b(ae)}function z(ae){ke(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,C()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=ae}function M(ae,ie){const ge=ie||{};return ge.type=ae,ge.start=S(),h.events.push(["enter",ge,h]),d.push(ge),ge}function H(ae){const ie=d.pop();return ie.end=S(),h.events.push(["exit",ie,h]),ie}function K(ae,ie){X(ae,ie.from)}function L(ae,ie){ie.restore()}function G(ae,ie){return ge;function ge(le,te,F){let re,oe,_e,A;return Array.isArray(le)?Q(le):"tokenize"in le?Q([le]):O(le);function O(ve){return Be;function Be(rt){const nt=rt!==null&&ve[rt],Gt=rt!==null&&ve.null,Rn=[...Array.isArray(nt)?nt:nt?[nt]:[],...Array.isArray(Gt)?Gt:Gt?[Gt]:[]];return Q(Rn)(rt)}}function Q(ve){return re=ve,oe=0,ve.length===0?F:k(ve[oe])}function k(ve){return Be;function Be(rt){return A=V(),_e=ve,ve.partial||(h.currentConstruct=ve),ve.name&&h.parser.constructs.disable.null.includes(ve.name)?we():ve.tokenize.call(ie?Object.assign(Object.create(h),ie):h,p,de,we)(rt)}}function de(ve){return ae(_e,A),te}function we(ve){return A.restore(),++oe<re.length?k(re[oe]):F}}}function X(ae,ie){ae.resolveAll&&!c.includes(ae)&&c.push(ae),ae.resolve&&Pn(h.events,ie,h.events.length-ie,ae.resolve(h.events.slice(ie),h)),ae.resolveTo&&(h.events=ae.resolveTo(h.events,h))}function V(){const ae=S(),ie=h.previous,ge=h.currentConstruct,le=h.events.length,te=Array.from(d);return{from:le,restore:F};function F(){l=ae,h.previous=ie,h.currentConstruct=ge,h.events.length=le,d=te,C()}}function C(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function vC(e,a){const i=a.start._index,l=a.start._bufferIndex,o=a.end._index,c=a.end._bufferIndex;let u;if(i===o)u=[e[i].slice(l,c)];else{if(u=e.slice(i,o),l>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(l):u.shift()}c>0&&u.push(e[o].slice(0,c))}return u}function xC(e,a){let i=-1;const l=[];let o;for(;++i<e.length;){const c=e[i];let u;if(typeof c=="string")u=c;else switch(c){case-5:{u="\r";break}case-4:{u=`
258
- `;break}case-3:{u=`\r
259
- `;break}case-2:{u=a?" ":" ";break}case-1:{if(!a&&o)continue;u=" ";break}default:u=String.fromCharCode(c)}o=c===-2,l.push(u)}return l.join("")}function EC(e){const l={constructs:Rx([bC,...(e||{}).extensions||[]]),content:o(IT),defined:[],document:o(BT),flow:o(nC),lazy:{},string:o(rC),text:o(lC)};return l;function o(c){return u;function u(d){return yC(l,c,d)}}}function _C(e){for(;!zx(e););return e}const Ly=/[\0\t\n\r]/g;function SC(){let e=1,a="",i=!0,l;return o;function o(c,u,d){const p=[];let h,b,g,E,x;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c)),g=0,a="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(Ly.lastIndex=g,h=Ly.exec(c),E=h&&h.index!==void 0?h.index:c.length,x=c.charCodeAt(E),!h){a=c.slice(g);break}if(x===10&&g===E&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),g<E&&(p.push(c.slice(g,E)),e+=E-g),x){case 0:{p.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,p.push(-2);e++<b;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:l=!0,e=1}g=E+1}return d&&(l&&p.push(-5),a&&p.push(a),p.push(null)),p}}const wC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NC(e){return e.replace(wC,kC)}function kC(e,a,i){if(a)return a;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return Ox(i.slice(c?2:1),c?16:10)}return $h(i)||e}const Fx={}.hasOwnProperty;function TC(e,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),AC(i)(_C(EC(i).document().write(SC()(e,a,!0))))}function AC(e){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ya),autolinkProtocol:V,autolinkEmail:V,atxHeading:c(ba),blockQuote:c(Gt),characterEscape:V,characterReference:V,codeFenced:c(Rn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Rn,u),codeText:c(Oa,u),codeTextData:V,data:V,codeFlowValue:V,definition:c(ii),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(On),hardBreakEscape:c(Qe),hardBreakTrailing:c(Qe),htmlFlow:c(oa,u),htmlFlowData:V,htmlText:c(oa,u),htmlTextData:V,image:c($n),label:u,link:c(ya),listItem:c(Ki),listItemValue:E,listOrdered:c(Ma,g),listUnordered:c(Ma),paragraph:c(Hl),reference:k,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(ba),strong:c(Ar),thematicBreak:c(Cr)},exit:{atxHeading:p(),atxHeadingSequence:K,autolink:p(),autolinkEmail:nt,autolinkProtocol:rt,blockQuote:p(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:ve,characterReference:Be,codeFenced:p(T),codeFencedFence:w,codeFencedFenceInfo:x,codeFencedFenceMeta:S,codeFlowValue:C,codeIndented:p(N),codeText:p(te),codeTextData:C,data:C,definition:p(),definitionDestinationString:H,definitionLabelString:z,definitionTitleString:M,emphasis:p(),hardBreakEscape:p(ie),hardBreakTrailing:p(ie),htmlFlow:p(ge),htmlFlowData:C,htmlText:p(le),htmlTextData:C,image:p(re),label:_e,labelText:oe,lineEnding:ae,link:p(F),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:de,resourceDestinationString:A,resourceTitleString:O,resource:Q,setextHeading:p(X),setextHeadingLineSequence:G,setextHeadingText:L,strong:p(),thematicBreak:p()}};qx(a,(e||{}).mdastExtensions||[]);const i={};return l;function l(Z){let ue={type:"root",children:[]};const Te={stack:[ue],tokenStack:[],config:a,enter:d,exit:h,buffer:u,resume:b,data:i},je=[];let Je=-1;for(;++Je<Z.length;)if(Z[Je][1].type==="listOrdered"||Z[Je][1].type==="listUnordered")if(Z[Je][0]==="enter")je.push(Je);else{const un=je.pop();Je=o(Z,un,Je)}for(Je=-1;++Je<Z.length;){const un=a[Z[Je][0]];Fx.call(un,Z[Je][1].type)&&un[Z[Je][1].type].call(Object.assign({sliceSerialize:Z[Je][2].sliceSerialize},Te),Z[Je][1])}if(Te.tokenStack.length>0){const un=Te.tokenStack[Te.tokenStack.length-1];(un[1]||zy).call(Te,void 0,un[0])}for(ue.position={start:Di(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Di(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<a.transforms.length;)ue=a.transforms[Je](ue)||ue;return ue}function o(Z,ue,Te){let je=ue-1,Je=-1,un=!1,ca,Qt,At,nn;for(;++je<=Te;){const lt=Z[je];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?Je++:Je--,nn=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(ca&&!nn&&!Je&&!At&&(At=je),nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nn=void 0}if(!Je&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||Je===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(ca){let va=je;for(Qt=void 0;va--;){const fn=Z[va];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;Qt&&(Z[Qt][1].type="lineEndingBlank",un=!0),fn[1].type="lineEnding",Qt=va}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}At&&(!Qt||At<Qt)&&(ca._spread=!0),ca.end=Object.assign({},Qt?Z[Qt][1].start:lt[1].end),Z.splice(Qt||je,0,["exit",ca,lt[2]]),je++,Te++}if(lt[1].type==="listItemPrefix"){const va={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};ca=va,Z.splice(je,0,["enter",va,lt[2]]),je++,Te++,At=void 0,nn=!0}}}return Z[ue][1]._spread=un,Te}function c(Z,ue){return Te;function Te(je){d.call(this,Z(je),je),ue&&ue.call(this,je)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(Z,ue,Te){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ue,Te||void 0]),Z.position={start:Di(ue.start),end:void 0}}function p(Z){return ue;function ue(Te){Z&&Z.call(this,Te),h.call(this,Te)}}function h(Z,ue){const Te=this.stack.pop(),je=this.tokenStack.pop();if(je)je[0].type!==Z.type&&(ue?ue.call(this,Z,je[0]):(je[1]||zy).call(this,Z,je[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Ps({start:Z.start,end:Z.end})+"): it’s not open");Te.position.end=Di(Z.end)}function b(){return Kh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function E(Z){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function x(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=Z}function S(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=Z}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z.replace(/(\r?\n|\r)$/g,"")}function z(Z){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=pa(this.sliceSerialize(Z)).toLowerCase()}function M(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Z}function H(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Z}function K(Z){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Te=this.sliceSerialize(Z).length;ue.depth=Te}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function G(Z){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function V(Z){const Te=this.stack[this.stack.length-1].children;let je=Te[Te.length-1];(!je||je.type!=="text")&&(je=kt(),je.position={start:Di(Z.start),end:void 0},Te.push(je)),this.stack.push(je)}function C(Z){const ue=this.stack.pop();ue.value+=this.sliceSerialize(Z),ue.position.end=Di(Z.end)}function ae(Z){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=ue.children[ue.children.length-1];Te.position.end=Di(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ue.type)&&(V.call(this,Z),C.call(this,Z))}function ie(){this.data.atHardBreak=!0}function ge(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function le(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function te(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function F(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ue,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function re(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ue,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function oe(Z){const ue=this.sliceSerialize(Z),Te=this.stack[this.stack.length-2];Te.label=NC(ue),Te.identifier=pa(ue).toLowerCase()}function _e(){const Z=this.stack[this.stack.length-1],ue=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const je=Z.children;Te.children=je}else Te.alt=ue}function A(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Z}function O(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Z}function Q(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function de(Z){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=pa(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function we(Z){this.data.characterReferenceType=Z.type}function ve(Z){const ue=this.sliceSerialize(Z),Te=this.data.characterReferenceType;let je;Te?(je=Ox(ue,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):je=$h(ue);const Je=this.stack[this.stack.length-1];Je.value+=je}function Be(Z){const ue=this.stack.pop();ue.position.end=Di(Z.end)}function rt(Z){C.call(this,Z);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(Z)}function nt(Z){C.call(this,Z);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(Z)}function Gt(){return{type:"blockquote",children:[]}}function Rn(){return{type:"code",lang:null,meta:null,value:""}}function Oa(){return{type:"inlineCode",value:""}}function ii(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function On(){return{type:"emphasis",children:[]}}function ba(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function oa(){return{type:"html",value:""}}function $n(){return{type:"image",title:null,url:"",alt:null}}function ya(){return{type:"link",title:null,url:"",children:[]}}function Ma(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Ki(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Hl(){return{type:"paragraph",children:[]}}function Ar(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function Cr(){return{type:"thematicBreak"}}}function Di(e){return{line:e.line,column:e.column,offset:e.offset}}function qx(e,a){let i=-1;for(;++i<a.length;){const l=a[i];Array.isArray(l)?qx(e,l):CC(e,l)}}function CC(e,a){let i;for(i in a)if(Fx.call(a,i))switch(i){case"canContainEols":{const l=a[i];l&&e[i].push(...l);break}case"transforms":{const l=a[i];l&&e[i].push(...l);break}case"enter":case"exit":{const l=a[i];l&&Object.assign(e[i],l);break}}}function zy(e,a){throw e?new Error("Cannot close `"+e.type+"` ("+Ps({start:e.start,end:e.end})+"): a different token (`"+a.type+"`, "+Ps({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ps({start:a.start,end:a.end})+") is still open")}function RC(e){const a=this;a.parser=i;function i(l){return TC(l,{...a.data("settings"),...e,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function OC(e,a){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(a),!0)};return e.patch(a,i),e.applyData(a,i)}function MC(e,a){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(a,i),[e.applyData(a,i),{type:"text",value:`
260
- `}]}function DC(e,a){const i=a.value?a.value+`
261
- `:"",l={},o=a.lang?a.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return a.meta&&(c.data={meta:a.meta}),e.patch(a,c),c=e.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(a,c),c}function LC(e,a){const i={type:"element",tagName:"del",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function zC(e,a){const i={type:"element",tagName:"em",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function IC(e,a){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(a.identifier).toUpperCase(),o=jl(l.toLowerCase()),c=e.footnoteOrder.indexOf(l);let u,d=e.footnoteCounts.get(l);d===void 0?(d=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=c+1,d+=1,e.footnoteCounts.set(l,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(a,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(a,h),e.applyData(a,h)}function UC(e,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function BC(e,a){if(e.options.allowDangerousHtml){const i={type:"raw",value:a.value};return e.patch(a,i),e.applyData(a,i)}}function Px(e,a){const i=a.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+l}];const o=e.all(a),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=l:o.push({type:"text",value:l}),o}function jC(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return Px(e,a);const o={src:jl(l.url||""),alt:a.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const c={type:"element",tagName:"img",properties:o,children:[]};return e.patch(a,c),e.applyData(a,c)}function HC(e,a){const i={src:jl(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(a,l),e.applyData(a,l)}function FC(e,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};e.patch(a,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(a,l),e.applyData(a,l)}function qC(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return Px(e,a);const o={href:jl(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const c={type:"element",tagName:"a",properties:o,children:e.all(a)};return e.patch(a,c),e.applyData(a,c)}function PC(e,a){const i={href:jl(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"a",properties:i,children:e.all(a)};return e.patch(a,l),e.applyData(a,l)}function GC(e,a,i){const l=e.all(a),o=i?KC(i):Gx(a),c={},u=[];if(typeof a.checked=="boolean"){const b=l[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},l.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<l.length;){const b=l[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&u.push({type:"text",value:`
262
- `}),b.type==="element"&&b.tagName==="p"&&!o?u.push(...b.children):u.push(b)}const p=l[l.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:`
263
- `});const h={type:"element",tagName:"li",properties:c,children:u};return e.patch(a,h),e.applyData(a,h)}function KC(e){let a=!1;if(e.type==="list"){a=e.spread||!1;const i=e.children;let l=-1;for(;!a&&++l<i.length;)a=Gx(i[l])}return a}function Gx(e){const a=e.spread;return a??e.children.length>1}function $C(e,a){const i={},l=e.all(a);let o=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++o<l.length;){const u=l[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:e.wrap(l,!0)};return e.patch(a,c),e.applyData(a,c)}function YC(e,a){const i={type:"element",tagName:"p",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function QC(e,a){const i={type:"root",children:e.wrap(e.all(a))};return e.patch(a,i),e.applyData(a,i)}function VC(e,a){const i={type:"element",tagName:"strong",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function XC(e,a){const i=e.all(a),l=i.shift(),o=[];if(l){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(a.children[0],u),o.push(u)}if(i.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=Fh(a.children[1]),p=Sx(a.children[a.children.length-1]);d&&p&&(u.position={start:d,end:p}),o.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(a,c),e.applyData(a,c)}function ZC(e,a,i){const l=i?i.children:void 0,c=(l?l.indexOf(a):1)===0?"th":"td",u=i&&i.type==="table"?i.align:void 0,d=u?u.length:a.children.length;let p=-1;const h=[];for(;++p<d;){const g=a.children[p],E={},x=u?u[p]:void 0;x&&(E.align=x);let S={type:"element",tagName:c,properties:E,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),h.push(S)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(a,b),e.applyData(a,b)}function WC(e,a){const i={type:"element",tagName:"td",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}const Iy=9,Uy=32;function JC(e){const a=String(e),i=/\r?\n|\r/g;let l=i.exec(a),o=0;const c=[];for(;l;)c.push(By(a.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(a);return c.push(By(a.slice(o),o>0,!1)),c.join("")}function By(e,a,i){let l=0,o=e.length;if(a){let c=e.codePointAt(l);for(;c===Iy||c===Uy;)l++,c=e.codePointAt(l)}if(i){let c=e.codePointAt(o-1);for(;c===Iy||c===Uy;)o--,c=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function eR(e,a){const i={type:"text",value:JC(String(a.value))};return e.patch(a,i),e.applyData(a,i)}function tR(e,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(a,i),e.applyData(a,i)}const nR={blockquote:OC,break:MC,code:DC,delete:LC,emphasis:zC,footnoteReference:IC,heading:UC,html:BC,imageReference:jC,image:HC,inlineCode:FC,linkReference:qC,link:PC,listItem:GC,list:$C,paragraph:YC,root:QC,strong:VC,table:XC,tableCell:WC,tableRow:ZC,text:eR,thematicBreak:tR,toml:Oc,yaml:Oc,definition:Oc,footnoteDefinition:Oc};function Oc(){}const Kx=-1,su=0,Ks=1,Yc=2,Qh=3,Vh=4,Xh=5,Zh=6,$x=7,Yx=8,jy=typeof self=="object"?self:globalThis,aR=(e,a)=>{const i=(o,c)=>(e.set(c,o),o),l=o=>{if(e.has(o))return e.get(o);const[c,u]=a[o];switch(c){case su:case Kx:return i(u,o);case Ks:{const d=i([],o);for(const p of u)d.push(l(p));return d}case Yc:{const d=i({},o);for(const[p,h]of u)d[l(p)]=l(h);return d}case Qh:return i(new Date(u),o);case Vh:{const{source:d,flags:p}=u;return i(new RegExp(d,p),o)}case Xh:{const d=i(new Map,o);for(const[p,h]of u)d.set(l(p),l(h));return d}case Zh:{const d=i(new Set,o);for(const p of u)d.add(l(p));return d}case $x:{const{name:d,message:p}=u;return i(new jy[d](p),o)}case Yx:return i(BigInt(u),o);case"BigInt":return i(Object(BigInt(u)),o);case"ArrayBuffer":return i(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return i(new DataView(d),u)}}return i(new jy[c](u),o)};return l},Hy=e=>aR(new Map,e)(0),ml="",{toString:iR}={},{keys:rR}=Object,Hs=e=>{const a=typeof e;if(a!=="object"||!e)return[su,a];const i=iR.call(e).slice(8,-1);switch(i){case"Array":return[Ks,ml];case"Object":return[Yc,ml];case"Date":return[Qh,ml];case"RegExp":return[Vh,ml];case"Map":return[Xh,ml];case"Set":return[Zh,ml];case"DataView":return[Ks,i]}return i.includes("Array")?[Ks,i]:i.includes("Error")?[$x,i]:[Yc,i]},Mc=([e,a])=>e===su&&(a==="function"||a==="symbol"),lR=(e,a,i,l)=>{const o=(u,d)=>{const p=l.push(u)-1;return i.set(d,p),p},c=u=>{if(i.has(u))return i.get(u);let[d,p]=Hs(u);switch(d){case su:{let b=u;switch(p){case"bigint":d=Yx,b=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return o([Kx],u)}return o([d,b],u)}case Ks:{if(p){let E=u;return p==="DataView"?E=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(E=new Uint8Array(u)),o([p,[...E]],u)}const b=[],g=o([d,b],u);for(const E of u)b.push(c(E));return g}case Yc:{if(p)switch(p){case"BigInt":return o([p,u.toString()],u);case"Boolean":case"Number":case"String":return o([p,u.valueOf()],u)}if(a&&"toJSON"in u)return c(u.toJSON());const b=[],g=o([d,b],u);for(const E of rR(u))(e||!Mc(Hs(u[E])))&&b.push([c(E),c(u[E])]);return g}case Qh:return o([d,u.toISOString()],u);case Vh:{const{source:b,flags:g}=u;return o([d,{source:b,flags:g}],u)}case Xh:{const b=[],g=o([d,b],u);for(const[E,x]of u)(e||!(Mc(Hs(E))||Mc(Hs(x))))&&b.push([c(E),c(x)]);return g}case Zh:{const b=[],g=o([d,b],u);for(const E of u)(e||!Mc(Hs(E)))&&b.push(c(E));return g}}const{message:h}=u;return o([d,{name:p,message:h}],u)};return c},Fy=(e,{json:a,lossy:i}={})=>{const l=[];return lR(!(a||i),!!a,new Map,l)(e),l},Qc=typeof structuredClone=="function"?(e,a)=>a&&("json"in a||"lossy"in a)?Hy(Fy(e,a)):structuredClone(e):(e,a)=>Hy(Fy(e,a));function sR(e,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function oR(e,a){return"Back to reference "+(e+1)+(a>1?"-"+a:"")}function cR(e){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||sR,l=e.options.footnoteBackLabel||oR,o=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const b=e.all(h),g=String(h.identifier).toUpperCase(),E=jl(g.toLowerCase());let x=0;const S=[],w=e.footnoteCounts.get(g);for(;w!==void 0&&++x<=w;){S.length>0&&S.push({type:"text",value:" "});let z=typeof i=="string"?i:i(p,x);typeof z=="string"&&(z={type:"text",value:z}),S.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+E+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(p,x),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const T=b[b.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const z=T.children[T.children.length-1];z&&z.type==="text"?z.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...S)}else b.push(...S);const N={type:"element",tagName:"li",properties:{id:a+"fn-"+E},children:e.wrap(b,!0)};e.patch(h,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Qc(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
264
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
265
- `}]}}const co=(function(e){if(e==null)return hR;if(typeof e=="function")return ou(e);if(typeof e=="object")return Array.isArray(e)?uR(e):fR(e);if(typeof e=="string")return dR(e);throw new Error("Expected function, string, or object as test")});function uR(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=co(e[i]);return ou(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function fR(e){const a=e;return ou(i);function i(l){const o=l;let c;for(c in e)if(o[c]!==a[c])return!1;return!0}}function dR(e){return ou(a);function a(i){return i&&i.type===e}}function ou(e){return a;function a(i,l,o){return!!(mR(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function hR(){return!0}function mR(e){return e!==null&&typeof e=="object"&&"type"in e}const Qx=[],pR=!0,dh=!1,gR="skip";function Vx(e,a,i,l){let o;typeof a=="function"&&typeof i!="function"?(l=i,i=a):o=a;const c=co(o),u=l?-1:1;d(e,void 0,[])();function d(p,h,b){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return E;function E(){let x=Qx,S,w,T;if((!a||c(p,h,b[b.length-1]||void 0))&&(x=bR(i(p,b)),x[0]===dh))return x;if("children"in p&&p.children){const N=p;if(N.children&&x[0]!==gR)for(w=(l?N.children.length:-1)+u,T=b.concat(N);w>-1&&w<N.children.length;){const z=N.children[w];if(S=d(z,w,T)(),S[0]===dh)return S;w=typeof S[1]=="number"?S[1]:w+u}}return x}}}function bR(e){return Array.isArray(e)?e:typeof e=="number"?[pR,e]:e==null?Qx:[e]}function cu(e,a,i,l){let o,c,u;typeof a=="function"&&typeof i!="function"?(c=void 0,u=a,o=i):(c=a,u=i,o=l),Vx(e,c,d,o);function d(p,h){const b=h[h.length-1],g=b?b.children.indexOf(p):void 0;return u(p,g,b)}}const hh={}.hasOwnProperty,yR={};function vR(e,a){const i=a||yR,l=new Map,o=new Map,c=new Map,u={...nR,...i.handlers},d={all:h,applyData:ER,definitionById:l,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:p,options:i,patch:xR,wrap:SR};return cu(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?l:o,E=String(b.identifier).toUpperCase();g.has(E)||g.set(E,b)}}),d;function p(b,g){const E=b.type,x=d.handlers[E];if(hh.call(d.handlers,E)&&x)return x(d,b,g);if(d.options.passThrough&&d.options.passThrough.includes(E)){if("children"in b){const{children:w,...T}=b,N=Qc(T);return N.children=d.all(b),N}return Qc(b)}return(d.options.unknownHandler||_R)(d,b,g)}function h(b){const g=[];if("children"in b){const E=b.children;let x=-1;for(;++x<E.length;){const S=d.one(E[x],b);if(S){if(x&&E[x-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=qy(S.value)),!Array.isArray(S)&&S.type==="element")){const w=S.children[0];w&&w.type==="text"&&(w.value=qy(w.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function xR(e,a){e.position&&(a.position=oT(e))}function ER(e,a){let i=a;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,c=e.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const u="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:u}}i.type==="element"&&c&&Object.assign(i.properties,Qc(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function _R(e,a){const i=a.data||{},l="value"in a&&!(hh.call(i,"hProperties")||hh.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:e.all(a)};return e.patch(a,l),e.applyData(a,l)}function SR(e,a){const i=[];let l=-1;for(a&&i.push({type:"text",value:`
266
- `});++l<e.length;)l&&i.push({type:"text",value:`
267
- `}),i.push(e[l]);return a&&e.length>0&&i.push({type:"text",value:`
268
- `}),i}function qy(e){let a=0,i=e.charCodeAt(a);for(;i===9||i===32;)a++,i=e.charCodeAt(a);return e.slice(a)}function Py(e,a){const i=vR(e,a),l=i.one(e,void 0),o=cR(i),c=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
269
- `},o),c}function wR(e,a){return e&&"run"in e?async function(i,l){const o=Py(i,{file:l,...a});await e.run(o,l)}:function(i,l){return Py(i,{file:l,...e||a})}}function Gy(e){if(e)throw e}var Ad,Ky;function NR(){if(Ky)return Ad;Ky=1;var e=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},c=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var b=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!g)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},u=function(h,b){i&&b.name==="__proto__"?i(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},d=function(h,b){if(b==="__proto__")if(e.call(h,b)){if(l)return l(h,b).value}else return;return h[b]};return Ad=function p(){var h,b,g,E,x,S,w=arguments[0],T=1,N=arguments.length,z=!1;for(typeof w=="boolean"&&(z=w,w=arguments[1]||{},T=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});T<N;++T)if(h=arguments[T],h!=null)for(b in h)g=d(w,b),E=d(h,b),w!==E&&(z&&E&&(c(E)||(x=o(E)))?(x?(x=!1,S=g&&o(g)?g:[]):S=g&&c(g)?g:{},u(w,{name:b,newValue:p(z,S,E)})):typeof E<"u"&&u(w,{name:b,newValue:E}));return w},Ad}var kR=NR();const Cd=vh(kR);function mh(e){if(typeof e!="object"||e===null)return!1;const a=Object.getPrototypeOf(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TR(){const e=[],a={run:i,use:l};return a;function i(...o){let c=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...o);function d(p,...h){const b=e[++c];let g=-1;if(p){u(p);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,b?AR(b,d)(...h):u(null,...h)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),a}}function AR(e,a){let i;return l;function l(...u){const d=e.length>u.length;let p;d&&u.push(o);try{p=e.apply(this,u)}catch(h){const b=h;if(d&&i)throw b;return o(b)}d||(p&&p.then&&typeof p.then=="function"?p.then(c,o):p instanceof Error?o(p):c(p))}function o(u,...d){i||(i=!0,a(u,...d))}function c(u){o(null,u)}}const ka={basename:CR,dirname:RR,extname:OR,join:MR,sep:"/"};function CR(e,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');uo(e);let i=0,l=-1,o=e.length,c;if(a===void 0||a.length===0||a.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(c){i=o+1;break}}else l<0&&(c=!0,l=o+1);return l<0?"":e.slice(i,l)}if(a===e)return"";let u=-1,d=a.length-1;for(;o--;)if(e.codePointAt(o)===47){if(c){i=o+1;break}}else u<0&&(c=!0,u=o+1),d>-1&&(e.codePointAt(o)===a.codePointAt(d--)?d<0&&(l=o):(d=-1,l=u));return i===l?l=u:l<0&&(l=e.length),e.slice(i,l)}function RR(e){if(uo(e),e.length===0)return".";let a=-1,i=e.length,l;for(;--i;)if(e.codePointAt(i)===47){if(l){a=i;break}}else l||(l=!0);return a<0?e.codePointAt(0)===47?"/":".":a===1&&e.codePointAt(0)===47?"//":e.slice(0,a)}function OR(e){uo(e);let a=e.length,i=-1,l=0,o=-1,c=0,u;for(;a--;){const d=e.codePointAt(a);if(d===47){if(u){l=a+1;break}continue}i<0&&(u=!0,i=a+1),d===46?o<0?o=a:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||i<0||c===0||c===1&&o===i-1&&o===l+1?"":e.slice(o,i)}function MR(...e){let a=-1,i;for(;++a<e.length;)uo(e[a]),e[a]&&(i=i===void 0?e[a]:i+"/"+e[a]);return i===void 0?".":DR(i)}function DR(e){uo(e);const a=e.codePointAt(0)===47;let i=LR(e,!a);return i.length===0&&!a&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),a?"/"+i:i}function LR(e,a){let i="",l=0,o=-1,c=0,u=-1,d,p;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(o===u-1||c===1))if(o!==u-1&&c===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",l=0):(i=i.slice(0,p),l=i.length-1-i.lastIndexOf("/")),o=u,c=0;continue}}else if(i.length>0){i="",l=0,o=u,c=0;continue}}a&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,c=0}else d===46&&c>-1?c++:c=-1}return i}function uo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zR={cwd:IR};function IR(){return"/"}function ph(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UR(e){if(typeof e=="string")e=new URL(e);else if(!ph(e)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(e.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return BR(e)}function BR(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const a=e.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const l=a.codePointAt(i+2);if(l===70||l===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(a)}const Rd=["history","path","basename","stem","extname","dirname"];class Xx{constructor(a){let i;a?ph(a)?i={path:a}:typeof a=="string"||jR(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":zR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Rd.length;){const c=Rd[l];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let o;for(o in i)Rd.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?ka.basename(this.path):void 0}set basename(a){Md(a,"basename"),Od(a,"basename"),this.path=ka.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?ka.dirname(this.path):void 0}set dirname(a){$y(this.basename,"dirname"),this.path=ka.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?ka.extname(this.path):void 0}set extname(a){if(Od(a,"extname"),$y(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ka.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){ph(a)&&(a=UR(a)),Md(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?ka.basename(this.path,this.extname):void 0}set stem(a){Md(a,"stem"),Od(a,"stem"),this.path=ka.join(this.dirname||"",a+(this.extname||""))}fail(a,i,l){const o=this.message(a,i,l);throw o.fatal=!0,o}info(a,i,l){const o=this.message(a,i,l);return o.fatal=void 0,o}message(a,i,l){const o=new cn(a,i,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Od(e,a){if(e&&e.includes(ka.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+ka.sep+"`")}function Md(e,a){if(!e)throw new Error("`"+a+"` cannot be empty")}function $y(e,a){if(!e)throw new Error("Setting `"+a+"` requires `path` to be set too")}function jR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HR=(function(e){const l=this.constructor.prototype,o=l[e],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,l),c}),FR={}.hasOwnProperty;class Wh extends HR{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=TR()}copy(){const a=new Wh;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];a.use(...l)}return a.data(Cd(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(zd("data",this.frozen),this.namespace[a]=i,this):FR.call(this.namespace,a)&&this.namespace[a]||void 0:a?(zd("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=i.call(a,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=Dc(a),l=this.parser||this.Parser;return Dd("parse",l),l(String(i),i)}process(a,i){const l=this;return this.freeze(),Dd("process",this.parser||this.Parser),Ld("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,u){const d=Dc(a),p=l.parse(d);l.run(p,d,function(b,g,E){if(b||!g||!E)return h(b);const x=g,S=l.stringify(x,E);GR(S)?E.value=S:E.result=S,h(b,E)});function h(b,g){b||!g?u(b):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,l;return this.freeze(),Dd("processSync",this.parser||this.Parser),Ld("processSync",this.compiler||this.Compiler),this.process(a,o),Qy("processSync","process",i),l;function o(c,u){i=!0,Gy(c),l=u}}run(a,i,l){Yy(a),this.freeze();const o=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?c(void 0,l):new Promise(c);function c(u,d){const p=Dc(i);o.run(a,p,h);function h(b,g,E){const x=g||a;b?d(b):u?u(x):l(void 0,x,E)}}}runSync(a,i){let l=!1,o;return this.run(a,i,c),Qy("runSync","run",l),o;function c(u,d){Gy(u),o=d,l=!0}}stringify(a,i){this.freeze();const l=Dc(i),o=this.compiler||this.Compiler;return Ld("stringify",o),Yy(a),o(a,l)}use(a,...i){const l=this.attachers,o=this.namespace;if(zd("use",this.frozen),a!=null)if(typeof a=="function")p(a,i);else if(typeof a=="object")Array.isArray(a)?d(a):u(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[b,...g]=h;p(b,g)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(o.settings=Cd(!0,o.settings,h.settings))}function d(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const g=h[b];c(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,b){let g=-1,E=-1;for(;++g<l.length;)if(l[g][0]===h){E=g;break}if(E===-1)l.push([h,...b]);else if(b.length>0){let[x,...S]=b;const w=l[E][1];mh(w)&&mh(x)&&(x=Cd(!0,w,x)),l[E]=[h,x,...S]}}}}const qR=new Wh().freeze();function Dd(e,a){if(typeof a!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ld(e,a){if(typeof a!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zd(e,a){if(a)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yy(e){if(!mh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Qy(e,a,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+a+"` instead")}function Dc(e){return PR(e)?e:new Xx(e)}function PR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function GR(e){return typeof e=="string"||KR(e)}function KR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $R="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vy=[],Xy={allowDangerousHtml:!0},YR=/^(https?|ircs?|mailto|xmpp)$/i,QR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Jh(e){const a=VR(e),i=XR(e);return ZR(a.runSync(a.parse(i),i),e)}function VR(e){const a=e.rehypePlugins||Vy,i=e.remarkPlugins||Vy,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Xy}:Xy;return qR().use(RC).use(i).use(wR,l).use(a)}function XR(e){const a=e.children||"",i=new Xx;return typeof a=="string"&&(i.value=a),i}function ZR(e,a){const i=a.allowedElements,l=a.allowElement,o=a.components,c=a.disallowedElements,u=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||WR;for(const b of QR)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+$R+b.id,void 0);return cu(e,h),hT(e,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function h(b,g,E){if(b.type==="raw"&&E&&typeof g=="number")return u?E.children.splice(g,1):E.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let x;for(x in Nd)if(Object.hasOwn(Nd,x)&&Object.hasOwn(b.properties,x)){const S=b.properties[x],w=Nd[x];(w===null||w.includes(b.tagName))&&(b.properties[x]=p(String(S||""),x,b))}}if(b.type==="element"){let x=i?!i.includes(b.tagName):c?c.includes(b.tagName):!1;if(!x&&l&&typeof g=="number"&&(x=!l(b,g,E)),x&&E&&typeof g=="number")return d&&b.children?E.children.splice(g,1,...b.children):E.children.splice(g,1),g}}}function WR(e){const a=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return a===-1||o!==-1&&a>o||i!==-1&&a>i||l!==-1&&a>l||YR.test(e.slice(0,a))?e:""}function Zy(e,a){const i=String(e);if(typeof a!="string")throw new TypeError("Expected character");let l=0,o=i.indexOf(a);for(;o!==-1;)l++,o=i.indexOf(a,o+a.length);return l}function JR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function eO(e,a,i){const o=co((i||{}).ignore||[]),c=tO(a);let u=-1;for(;++u<c.length;)Vx(e,"text",d);function d(h,b){let g=-1,E;for(;++g<b.length;){const x=b[g],S=E?E.children:void 0;if(o(x,S?S.indexOf(x):void 0,E))return;E=x}if(E)return p(h,b)}function p(h,b){const g=b[b.length-1],E=c[u][0],x=c[u][1];let S=0;const T=g.children.indexOf(h);let N=!1,z=[];E.lastIndex=0;let M=E.exec(h.value);for(;M;){const H=M.index,K={index:M.index,input:M.input,stack:[...b,h]};let L=x(...M,K);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?E.lastIndex=H+1:(S!==H&&z.push({type:"text",value:h.value.slice(S,H)}),Array.isArray(L)?z.push(...L):L&&z.push(L),S=H+M[0].length,N=!0),!E.global)break;M=E.exec(h.value)}return N?(S<h.value.length&&z.push({type:"text",value:h.value.slice(S)}),g.children.splice(T,1,...z)):z=[h],T+z.length}}function tO(e){const a=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<i.length;){const o=i[l];a.push([nO(o[0]),aO(o[1])])}return a}function nO(e){return typeof e=="string"?new RegExp(JR(e),"g"):e}function aO(e){return typeof e=="function"?e:function(){return e}}const Id="phrasing",Ud=["autolink","link","image","label"];function iO(){return{transforms:[fO],enter:{literalAutolink:lO,literalAutolinkEmail:Bd,literalAutolinkHttp:Bd,literalAutolinkWww:Bd},exit:{literalAutolink:uO,literalAutolinkEmail:cO,literalAutolinkHttp:sO,literalAutolinkWww:oO}}}function rO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Id,notInConstruct:Ud},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Id,notInConstruct:Ud},{character:":",before:"[ps]",after:"\\/",inConstruct:Id,notInConstruct:Ud}]}}function lO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bd(e){this.config.enter.autolinkProtocol.call(this,e)}function sO(e){this.config.exit.autolinkProtocol.call(this,e)}function oO(e){this.config.exit.data.call(this,e);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(e)}function cO(e){this.config.exit.autolinkEmail.call(this,e)}function uO(e){this.exit(e)}function fO(e){eO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hO]],{ignore:["link","linkReference"]})}function dO(e,a,i,l,o){let c="";if(!Zx(o)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!mO(i)))return!1;const u=pO(i+l);if(!u[0])return!1;const d={type:"link",title:null,url:c+a+u[0],children:[{type:"text",value:a+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function hO(e,a,i,l){return!Zx(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function mO(e){const a=e.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function pO(e){const a=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!a)return[e,void 0];e=e.slice(0,a.index);let i=a[0],l=i.indexOf(")");const o=Zy(e,"(");let c=Zy(e,")");for(;l!==-1&&o>c;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),c++;return[e,i]}function Zx(e,a){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Nr(i)||ru(i))&&(!a||i!==47)}Wx.peek=wO;function gO(){this.buffer()}function bO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yO(){this.buffer()}function vO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xO(e){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=pa(this.sliceSerialize(e)).toLowerCase(),i.label=a}function EO(e){this.exit(e)}function _O(e){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=pa(this.sliceSerialize(e)).toLowerCase(),i.label=a}function SO(e){this.exit(e)}function wO(){return"["}function Wx(e,a,i,l){const o=i.createTracker(l);let c=o.move("[^");const u=i.enter("footnoteReference"),d=i.enter("reference");return c+=o.move(i.safe(i.associationId(e),{after:"]",before:c})),d(),u(),c+=o.move("]"),c}function NO(){return{enter:{gfmFootnoteCallString:gO,gfmFootnoteCall:bO,gfmFootnoteDefinitionLabelString:yO,gfmFootnoteDefinition:vO},exit:{gfmFootnoteCallString:xO,gfmFootnoteCall:EO,gfmFootnoteDefinitionLabelString:_O,gfmFootnoteDefinition:SO}}}function kO(e){let a=!1;return e&&e.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:Wx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,c,u){const d=c.createTracker(u);let p=d.move("[^");const h=c.enter("footnoteDefinition"),b=c.enter("label");return p+=d.move(c.safe(c.associationId(l),{before:p,after:"]"})),b(),p+=d.move("]:"),l.children&&l.children.length>0&&(d.shift(4),p+=d.move((a?`
270
- `:" ")+c.indentLines(c.containerFlow(l,d.current()),a?Jx:TO))),h(),p}}function TO(e,a,i){return a===0?e:Jx(e,a,i)}function Jx(e,a,i){return(i?"":" ")+e}const AO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eE.peek=DO;function CO(){return{canContainEols:["delete"],enter:{strikethrough:OO},exit:{strikethrough:MO}}}function RO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:AO}],handlers:{delete:eE}}}function OO(e){this.enter({type:"delete",children:[]},e)}function MO(e){this.exit(e)}function eE(e,a,i,l){const o=i.createTracker(l),c=i.enter("strikethrough");let u=o.move("~~");return u+=i.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),c(),u}function DO(){return"~"}function LO(e){return e.length}function zO(e,a){const i=a||{},l=(i.align||[]).concat(),o=i.stringLength||LO,c=[],u=[],d=[],p=[];let h=0,b=-1;for(;++b<e.length;){const w=[],T=[];let N=-1;for(e[b].length>h&&(h=e[b].length);++N<e[b].length;){const z=IO(e[b][N]);if(i.alignDelimiters!==!1){const M=o(z);T[N]=M,(p[N]===void 0||M>p[N])&&(p[N]=M)}w.push(z)}u[b]=w,d[b]=T}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<h;)c[g]=Wy(l[g]);else{const w=Wy(l);for(;++g<h;)c[g]=w}g=-1;const E=[],x=[];for(;++g<h;){const w=c[g];let T="",N="";w===99?(T=":",N=":"):w===108?T=":":w===114&&(N=":");let z=i.alignDelimiters===!1?1:Math.max(1,p[g]-T.length-N.length);const M=T+"-".repeat(z)+N;i.alignDelimiters!==!1&&(z=T.length+z+N.length,z>p[g]&&(p[g]=z),x[g]=z),E[g]=M}u.splice(1,0,E),d.splice(1,0,x),b=-1;const S=[];for(;++b<u.length;){const w=u[b],T=d[b];g=-1;const N=[];for(;++g<h;){const z=w[g]||"";let M="",H="";if(i.alignDelimiters!==!1){const K=p[g]-(T[g]||0),L=c[g];L===114?M=" ".repeat(K):L===99?K%2?(M=" ".repeat(K/2+.5),H=" ".repeat(K/2-.5)):(M=" ".repeat(K/2),H=M):H=" ".repeat(K)}i.delimiterStart!==!1&&!g&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&z==="")&&(i.delimiterStart!==!1||g)&&N.push(" "),i.alignDelimiters!==!1&&N.push(M),N.push(z),i.alignDelimiters!==!1&&N.push(H),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||g!==h-1)&&N.push("|")}S.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return S.join(`
271
- `)}function IO(e){return e==null?"":String(e)}function Wy(e){const a=typeof e=="string"?e.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function UO(e,a,i,l){const o=i.enter("blockquote"),c=i.createTracker(l);c.move("> "),c.shift(2);const u=i.indentLines(i.containerFlow(e,c.current()),BO);return o(),u}function BO(e,a,i){return">"+(i?"":" ")+e}function jO(e,a){return Jy(e,a.inConstruct,!0)&&!Jy(e,a.notInConstruct,!1)}function Jy(e,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let l=-1;for(;++l<a.length;)if(e.includes(a[l]))return!0;return!1}function ev(e,a,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
272
- `&&jO(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
273
- `}function HO(e,a){const i=String(e);let l=i.indexOf(a),o=l,c=0,u=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++c>u&&(u=c):c=1,o=l+a.length,l=i.indexOf(a,o);return u}function FO(e,a){return!!(a.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qO(e){const a=e.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function PO(e,a,i,l){const o=qO(i),c=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(FO(e,i)){const g=i.enter("codeIndented"),E=i.indentLines(c,GO);return g(),E}const d=i.createTracker(l),p=o.repeat(Math.max(HO(c,o)+1,3)),h=i.enter("codeFenced");let b=d.move(p);if(e.lang){const g=i.enter(`codeFencedLang${u}`);b+=d.move(i.safe(e.lang,{before:b,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${u}`);b+=d.move(" "),b+=d.move(i.safe(e.meta,{before:b,after:`
274
- `,encode:["`"],...d.current()})),g()}return b+=d.move(`
275
- `),c&&(b+=d.move(c+`
276
- `)),b+=d.move(p),h(),b}function GO(e,a,i){return(i?"":" ")+e}function em(e){const a=e.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function KO(e,a,i,l){const o=em(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("definition");let d=i.enter("label");const p=i.createTracker(l);let h=p.move("[");return h+=p.move(i.safe(i.associationId(e),{before:h,after:"]",...p.current()})),h+=p.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(i.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=i.enter("destinationRaw"),h+=p.move(i.safe(e.url,{before:h,after:e.title?" ":`
277
- `,...p.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=p.move(" "+o),h+=p.move(i.safe(e.title,{before:h,after:o,...p.current()})),h+=p.move(o),d()),u(),h}function $O(e){const a=e.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Zs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vc(e,a,i){const l=Ol(e),o=Ol(a);return l===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}tE.peek=YO;function tE(e,a,i,l){const o=$O(i),c=i.enter("emphasis"),u=i.createTracker(l),d=u.move(o);let p=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=p.charCodeAt(0),b=Vc(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(p=Zs(h)+p.slice(1));const g=p.charCodeAt(p.length-1),E=Vc(l.after.charCodeAt(0),g,o);E.inside&&(p=p.slice(0,-1)+Zs(g));const x=u.move(o);return c(),i.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},d+p+x}function YO(e,a,i){return i.options.emphasis||"*"}function QO(e,a){let i=!1;return cu(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,dh}),!!((!e.depth||e.depth<3)&&Kh(e)&&(a.options.setext||i))}function VO(e,a,i,l){const o=Math.max(Math.min(6,e.depth||1),1),c=i.createTracker(l);if(QO(e,i)){const b=i.enter("headingSetext"),g=i.enter("phrasing"),E=i.containerPhrasing(e,{...c.current(),before:`
278
- `,after:`
279
- `});return g(),b(),E+`
280
- `+(o===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
281
- `))+1))}const u="#".repeat(o),d=i.enter("headingAtx"),p=i.enter("phrasing");c.move(u+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
282
- `,...c.current()});return/^[\t ]/.test(h)&&(h=Zs(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,i.options.closeAtx&&(h+=" "+u),p(),d(),h}nE.peek=XO;function nE(e){return e.value||""}function XO(){return"<"}aE.peek=ZO;function aE(e,a,i,l){const o=em(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("image");let d=i.enter("label");const p=i.createTracker(l);let h=p.move("![");return h+=p.move(i.safe(e.alt,{before:h,after:"]",...p.current()})),h+=p.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(i.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=i.enter("destinationRaw"),h+=p.move(i.safe(e.url,{before:h,after:e.title?" ":")",...p.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=p.move(" "+o),h+=p.move(i.safe(e.title,{before:h,after:o,...p.current()})),h+=p.move(o),d()),h+=p.move(")"),u(),h}function ZO(){return"!"}iE.peek=WO;function iE(e,a,i,l){const o=e.referenceType,c=i.enter("imageReference");let u=i.enter("label");const d=i.createTracker(l);let p=d.move("![");const h=i.safe(e.alt,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),u();const b=i.stack;i.stack=[],u=i.enter("reference");const g=i.safe(i.associationId(e),{before:p,after:"]",...d.current()});return u(),i.stack=b,c(),o==="full"||!h||h!==g?p+=d.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function WO(){return"!"}rE.peek=JO;function rE(e,a,i){let l=e.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++c<i.unsafe.length;){const u=i.unsafe[c],d=i.compilePattern(u);let p;if(u.atBreak)for(;p=d.exec(l);){let h=p.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(p.index+1)}}return o+l+o}function JO(){return"`"}function lE(e,a){const i=Kh(e);return!!(!a.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}sE.peek=eM;function sE(e,a,i,l){const o=em(i),c=o==='"'?"Quote":"Apostrophe",u=i.createTracker(l);let d,p;if(lE(e,i)){const b=i.stack;i.stack=[],d=i.enter("autolink");let g=u.move("<");return g+=u.move(i.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),i.stack=b,g}d=i.enter("link"),p=i.enter("label");let h=u.move("[");return h+=u.move(i.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=i.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(i.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(p=i.enter("destinationRaw"),h+=u.move(i.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),p(),e.title&&(p=i.enter(`title${c}`),h+=u.move(" "+o),h+=u.move(i.safe(e.title,{before:h,after:o,...u.current()})),h+=u.move(o),p()),h+=u.move(")"),d(),h}function eM(e,a,i){return lE(e,i)?"<":"["}oE.peek=tM;function oE(e,a,i,l){const o=e.referenceType,c=i.enter("linkReference");let u=i.enter("label");const d=i.createTracker(l);let p=d.move("[");const h=i.containerPhrasing(e,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),u();const b=i.stack;i.stack=[],u=i.enter("reference");const g=i.safe(i.associationId(e),{before:p,after:"]",...d.current()});return u(),i.stack=b,c(),o==="full"||!h||h!==g?p+=d.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function tM(){return"["}function tm(e){const a=e.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function nM(e){const a=tm(e),i=e.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function aM(e){const a=e.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function cE(e){const a=e.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function iM(e,a,i,l){const o=i.enter("list"),c=i.bulletCurrent;let u=e.ordered?aM(i):tm(i);const d=e.ordered?u==="."?")":".":nM(i);let p=a&&i.bulletLastUsed?u===i.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&b&&(!b.children||!b.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),cE(i)===u&&b){let g=-1;for(;++g<e.children.length;){const E=e.children[g];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(u=d),i.bulletCurrent=u;const h=i.containerFlow(e,l);return i.bulletLastUsed=u,i.bulletCurrent=c,o(),h}function rM(e){const a=e.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function lM(e,a,i,l){const o=rM(i);let c=i.bulletCurrent||tm(i);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(e))+c);let u=c.length+1;(o==="tab"||o==="mixed"&&(a&&a.type==="list"&&a.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=i.createTracker(l);d.move(c+" ".repeat(u-c.length)),d.shift(u);const p=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,d.current()),b);return p(),h;function b(g,E,x){return E?(x?"":" ".repeat(u))+g:(x?c:c+" ".repeat(u-c.length))+g}}function sM(e,a,i,l){const o=i.enter("paragraph"),c=i.enter("phrasing"),u=i.containerPhrasing(e,l);return c(),o(),u}const oM=co(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cM(e,a,i,l){return(e.children.some(function(u){return oM(u)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function uM(e){const a=e.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}uE.peek=fM;function uE(e,a,i,l){const o=uM(i),c=i.enter("strong"),u=i.createTracker(l),d=u.move(o+o);let p=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=p.charCodeAt(0),b=Vc(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(p=Zs(h)+p.slice(1));const g=p.charCodeAt(p.length-1),E=Vc(l.after.charCodeAt(0),g,o);E.inside&&(p=p.slice(0,-1)+Zs(g));const x=u.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},d+p+x}function fM(e,a,i){return i.options.strong||"*"}function dM(e,a,i,l){return i.safe(e.value,l)}function hM(e){const a=e.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function mM(e,a,i){const l=(cE(i)+(i.options.ruleSpaces?" ":"")).repeat(hM(i));return i.options.ruleSpaces?l.slice(0,-1):l}const fE={blockquote:UO,break:ev,code:PO,definition:KO,emphasis:tE,hardBreak:ev,heading:VO,html:nE,image:aE,imageReference:iE,inlineCode:rE,link:sE,linkReference:oE,list:iM,listItem:lM,paragraph:sM,root:cM,strong:uE,text:dM,thematicBreak:mM};function pM(){return{enter:{table:gM,tableData:tv,tableHeader:tv,tableRow:yM},exit:{codeText:vM,table:bM,tableData:jd,tableHeader:jd,tableRow:jd}}}function gM(e){const a=e._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function bM(e){this.exit(e),this.data.inTable=void 0}function yM(e){this.enter({type:"tableRow",children:[]},e)}function jd(e){this.exit(e)}function tv(e){this.enter({type:"tableCell",children:[]},e)}function vM(e){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,xM));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(e)}function xM(e,a){return a==="|"?a:e}function EM(e){const a=e||{},i=a.tableCellPadding,l=a.tablePipeAlign,o=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
283
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:u,tableCell:p,tableRow:d}};function u(x,S,w,T){return h(b(x,w,T),x.align)}function d(x,S,w,T){const N=g(x,w,T),z=h([N]);return z.slice(0,z.indexOf(`
284
- `))}function p(x,S,w,T){const N=w.enter("tableCell"),z=w.enter("phrasing"),M=w.containerPhrasing(x,{...T,before:c,after:c});return z(),N(),M}function h(x,S){return zO(x,{align:S,alignDelimiters:l,padding:i,stringLength:o})}function b(x,S,w){const T=x.children;let N=-1;const z=[],M=S.enter("table");for(;++N<T.length;)z[N]=g(T[N],S,w);return M(),z}function g(x,S,w){const T=x.children;let N=-1;const z=[],M=S.enter("tableRow");for(;++N<T.length;)z[N]=p(T[N],x,S,w);return M(),z}function E(x,S,w){let T=fE.inlineCode(x,S,w);return w.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function _M(){return{exit:{taskListCheckValueChecked:nv,taskListCheckValueUnchecked:nv,paragraph:wM}}}function SM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:NM}}}function nv(e){const a=this.stack[this.stack.length-2];a.type,a.checked=e.type==="taskListCheckValueChecked"}function wM(e){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const l=i.children[0];if(l&&l.type==="text"){const o=a.children;let c=-1,u;for(;++c<o.length;){const d=o[c];if(d.type==="paragraph"){u=d;break}}u===i&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function NM(e,a,i,l){const o=e.children[0],c=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=i.createTracker(l);c&&d.move(u);let p=fE.listItem(e,a,i,{...l,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),p;function h(b){return b+u}}function kM(){return[iO(),NO(),CO(),pM(),_M()]}function TM(e){return{extensions:[rO(),kO(e),RO(),EM(e),SM()]}}const AM={tokenize:LM,partial:!0},dE={tokenize:zM,partial:!0},hE={tokenize:IM,partial:!0},mE={tokenize:UM,partial:!0},CM={tokenize:BM,partial:!0},pE={name:"wwwAutolink",tokenize:MM,previous:bE},gE={name:"protocolAutolink",tokenize:DM,previous:yE},ai={name:"emailAutolink",tokenize:OM,previous:vE},Ra={};function RM(){return{text:Ra}}let mr=48;for(;mr<123;)Ra[mr]=ai,mr++,mr===58?mr=65:mr===91&&(mr=97);Ra[43]=ai;Ra[45]=ai;Ra[46]=ai;Ra[95]=ai;Ra[72]=[ai,gE];Ra[104]=[ai,gE];Ra[87]=[ai,pE];Ra[119]=[ai,pE];function OM(e,a,i){const l=this;let o,c;return u;function u(g){return!gh(g)||!vE.call(l,l.previous)||nm(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return gh(g)?(e.consume(g),d):g===64?(e.consume(g),p):i(g)}function p(g){return g===46?e.check(CM,b,h)(g):g===45||g===95||on(g)?(c=!0,e.consume(g),p):b(g)}function h(g){return e.consume(g),o=!0,p}function b(g){return c&&o&&gn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),a(g)):i(g)}}function MM(e,a,i){const l=this;return o;function o(u){return u!==87&&u!==119||!bE.call(l,l.previous)||nm(l.events)?i(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(AM,e.attempt(dE,e.attempt(hE,c),i),i)(u))}function c(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),a(u)}}function DM(e,a,i){const l=this;let o="",c=!1;return u;function u(g){return(g===72||g===104)&&yE.call(l,l.previous)&&!nm(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),d):i(g)}function d(g){if(gn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const E=o.toLowerCase();if(E==="http"||E==="https")return e.consume(g),p}return i(g)}function p(g){return g===47?(e.consume(g),c?h:(c=!0,p)):i(g)}function h(g){return g===null||$c(g)||bt(g)||Nr(g)||ru(g)?i(g):e.attempt(dE,e.attempt(hE,b),i)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),a(g)}}function LM(e,a,i){let l=0;return o;function o(u){return(u===87||u===119)&&l<3?(l++,e.consume(u),o):u===46&&l===3?(e.consume(u),c):i(u)}function c(u){return u===null?i(u):a(u)}}function zM(e,a,i){let l,o,c;return u;function u(h){return h===46||h===95?e.check(mE,p,d)(h):h===null||bt(h)||Nr(h)||h!==45&&ru(h)?p(h):(c=!0,e.consume(h),u)}function d(h){return h===95?l=!0:(o=l,l=void 0),e.consume(h),u}function p(h){return o||l||!c?i(h):a(h)}}function IM(e,a){let i=0,l=0;return o;function o(u){return u===40?(i++,e.consume(u),o):u===41&&l<i?c(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(mE,a,c)(u):u===null||bt(u)||Nr(u)?a(u):(e.consume(u),o)}function c(u){return u===41&&l++,e.consume(u),o}}function UM(e,a,i){return l;function l(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),l):d===38?(e.consume(d),c):d===93?(e.consume(d),o):d===60||d===null||bt(d)||Nr(d)?a(d):i(d)}function o(d){return d===null||d===40||d===91||bt(d)||Nr(d)?a(d):l(d)}function c(d){return gn(d)?u(d):i(d)}function u(d){return d===59?(e.consume(d),l):gn(d)?(e.consume(d),u):i(d)}}function BM(e,a,i){return l;function l(c){return e.consume(c),o}function o(c){return on(c)?i(c):a(c)}}function bE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||bt(e)}function yE(e){return!gn(e)}function vE(e){return!(e===47||gh(e))}function gh(e){return e===43||e===45||e===46||e===95||on(e)}function nm(e){let a=e.length,i=!1;for(;a--;){const l=e[a][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const jM={tokenize:YM,partial:!0};function HM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:GM,continuation:{tokenize:KM},exit:$M}},text:{91:{name:"gfmFootnoteCall",tokenize:PM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FM,resolveTo:qM}}}}function FM(e,a,i){const l=this;let o=l.events.length;const c=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u;for(;o--;){const p=l.events[o][1];if(p.type==="labelImage"){u=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!u||!u._balanced)return i(p);const h=pa(l.sliceSerialize({start:u.end,end:l.now()}));return h.codePointAt(0)!==94||!c.includes(h.slice(1))?i(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),a(p))}}function qM(e,a){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[e[i+1],e[i+2],["enter",l,a],e[i+3],e[i+4],["enter",o,a],["exit",o,a],["enter",c,a],["enter",u,a],["exit",u,a],["exit",c,a],e[e.length-2],e[e.length-1],["exit",l,a]];return e.splice(i,e.length-i+1,...d),e}function PM(e,a,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(c>999||g===93&&!u||g===null||g===91||bt(g))return i(g);if(g===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return o.includes(pa(l.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),a):i(g)}return bt(g)||(u=!0),c++,e.consume(g),g===92?b:h}function b(g){return g===91||g===92||g===93?(e.consume(g),c++,h):h(g)}}function GM(e,a,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c,u=0,d;return p;function p(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):i(S)}function b(S){if(u>999||S===93&&!d||S===null||S===91||bt(S))return i(S);if(S===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return c=pa(l.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return bt(S)||(d=!0),u++,e.consume(S),S===92?g:b}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,b):b(S)}function E(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(c)||o.push(c),We(e,x,"gfmFootnoteDefinitionWhitespace")):i(S)}function x(S){return a(S)}}function KM(e,a,i){return e.check(oo,a,e.attempt(jM,a,i))}function $M(e){e.exit("gfmFootnoteDefinition")}function YM(e,a,i){const l=this;return We(e,o,"gfmFootnoteDefinitionIndent",5);function o(c){const u=l.events[l.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?a(c):i(c)}}function QM(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:c,resolveAll:o};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(u,d){let p=-1;for(;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){let h=p;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[p][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[p][1].end)},g={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[p][1].start)},E=[["enter",b,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Pn(E,E.length,0,lu(x,u.slice(h+1,p),d)),Pn(E,E.length,0,[["exit",g,d],["enter",u[p][1],d],["exit",u[p][1],d],["exit",b,d]]),Pn(u,h-1,p-h+3,E),p=h+E.length-2;break}}for(p=-1;++p<u.length;)u[p][1].type==="strikethroughSequenceTemporary"&&(u[p][1].type="data");return u}function c(u,d,p){const h=this.previous,b=this.events;let g=0;return E;function E(S){return h===126&&b[b.length-1][1].type!=="characterEscape"?p(S):(u.enter("strikethroughSequenceTemporary"),x(S))}function x(S){const w=Ol(h);if(S===126)return g>1?p(S):(u.consume(S),g++,x);if(g<2&&!i)return p(S);const T=u.exit("strikethroughSequenceTemporary"),N=Ol(S);return T._open=!N||N===2&&!!w,T._close=!w||w===2&&!!N,d(S)}}}class VM{constructor(){this.map=[]}add(a,i,l){XM(this,a,i,l)}consume(a){if(this.map.sort(function(c,u){return c[0]-u[0]}),this.map.length===0)return;let i=this.map.length;const l=[];for(;i>0;)i-=1,l.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];l.push(a.slice()),a.length=0;let o=l.pop();for(;o;){for(const c of o)a.push(c);o=l.pop()}this.map.length=0}}function XM(e,a,i,l){let o=0;if(!(i===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===a){e.map[o][1]+=i,e.map[o][2].push(...l);return}o+=1}e.map.push([a,i,l])}}function ZM(e,a){let i=!1;const l=[];for(;a<e.length;){const o=e[a];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[a-1][1].type==="tableDelimiterMarker"){const c=l.length-1;l[c]=l[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return l}function WM(){return{flow:{null:{name:"table",tokenize:JM,resolveAll:e2}}}}function JM(e,a,i){const l=this;let o=0,c=0,u;return d;function d(C){let ae=l.events.length-1;for(;ae>-1;){const le=l.events[ae][1].type;if(le==="lineEnding"||le==="linePrefix")ae--;else break}const ie=ae>-1?l.events[ae][1].type:null,ge=ie==="tableHead"||ie==="tableRow"?L:p;return ge===L&&l.parser.lazy[l.now().line]?i(C):ge(C)}function p(C){return e.enter("tableHead"),e.enter("tableRow"),h(C)}function h(C){return C===124||(u=!0,c+=1),b(C)}function b(C){return C===null?i(C):ke(C)?c>1?(c=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),x):i(C):Pe(C)?We(e,b,"whitespace")(C):(c+=1,u&&(u=!1,o+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),u=!0,b):(e.enter("data"),g(C)))}function g(C){return C===null||C===124||bt(C)?(e.exit("data"),b(C)):(e.consume(C),C===92?E:g)}function E(C){return C===92||C===124?(e.consume(C),g):g(C)}function x(C){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(C):(e.enter("tableDelimiterRow"),u=!1,Pe(C)?We(e,S,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):S(C))}function S(C){return C===45||C===58?T(C):C===124?(u=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),w):K(C)}function w(C){return Pe(C)?We(e,T,"whitespace")(C):T(C)}function T(C){return C===58?(c+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),N):C===45?(c+=1,N(C)):C===null||ke(C)?H(C):K(C)}function N(C){return C===45?(e.enter("tableDelimiterFiller"),z(C)):K(C)}function z(C){return C===45?(e.consume(C),z):C===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(C))}function M(C){return Pe(C)?We(e,H,"whitespace")(C):H(C)}function H(C){return C===124?S(C):C===null||ke(C)?!u||o!==c?K(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),a(C)):K(C)}function K(C){return i(C)}function L(C){return e.enter("tableRow"),G(C)}function G(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),G):C===null||ke(C)?(e.exit("tableRow"),a(C)):Pe(C)?We(e,G,"whitespace")(C):(e.enter("data"),X(C))}function X(C){return C===null||C===124||bt(C)?(e.exit("data"),G(C)):(e.consume(C),C===92?V:X)}function V(C){return C===92||C===124?(e.consume(C),X):X(C)}}function e2(e,a){let i=-1,l=!0,o=0,c=[0,0,0,0],u=[0,0,0,0],d=!1,p=0,h,b,g;const E=new VM;for(;++i<e.length;){const x=e[i],S=x[1];x[0]==="enter"?S.type==="tableHead"?(d=!1,p!==0&&(av(E,a,p,h,b),b=void 0,p=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},E.add(i,0,[["enter",h,a]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(l=!0,g=void 0,c=[0,0,0,0],u=[0,i+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},E.add(i,0,[["enter",b,a]])),o=S.type==="tableDelimiterRow"?2:b?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],g=Lc(E,a,c,o,void 0,g),c=[0,0,0,0]),u[2]=i)):S.type==="tableCellDivider"&&(l?l=!1:(c[1]!==0&&(u[0]=u[1],g=Lc(E,a,c,o,void 0,g)),c=u,u=[c[1],i,0,0])):S.type==="tableHead"?(d=!0,p=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(p=i,c[1]!==0?(u[0]=u[1],g=Lc(E,a,c,o,i,g)):u[1]!==0&&(g=Lc(E,a,u,o,i,g)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=i)}for(p!==0&&av(E,a,p,h,b),E.consume(a.events),i=-1;++i<a.events.length;){const x=a.events[i];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=ZM(a.events,i))}return e}function Lc(e,a,i,l,o,c){const u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},pl(a.events,i[0])),e.add(i[0],0,[["exit",c,a]]));const p=pl(a.events,i[1]);if(c={type:u,start:Object.assign({},p),end:Object.assign({},p)},e.add(i[1],0,[["enter",c,a]]),i[2]!==0){const h=pl(a.events,i[2]),b=pl(a.events,i[3]),g={type:d,start:Object.assign({},h),end:Object.assign({},b)};if(e.add(i[2],0,[["enter",g,a]]),l!==2){const E=a.events[i[2]],x=a.events[i[3]];if(E[1].end=Object.assign({},x[1].end),E[1].type="chunkText",E[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,w=i[3]-i[2]-1;e.add(S,w,[])}}e.add(i[3]+1,0,[["exit",g,a]])}return o!==void 0&&(c.end=Object.assign({},pl(a.events,o)),e.add(o,0,[["exit",c,a]]),c=void 0),c}function av(e,a,i,l,o){const c=[],u=pl(a.events,i);o&&(o.end=Object.assign({},u),c.push(["exit",o,a])),l.end=Object.assign({},u),c.push(["exit",l,a]),e.add(i+1,0,c)}function pl(e,a){const i=e[a],l=i[0]==="enter"?"start":"end";return i[1][l]}const t2={name:"tasklistCheck",tokenize:a2};function n2(){return{text:{91:t2}}}function a2(e,a,i){const l=this;return o;function o(p){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),c)}function c(p){return bt(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),u):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),u):i(p)}function u(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(p)}function d(p){return ke(p)?a(p):Pe(p)?e.check({tokenize:i2},a,i)(p):i(p)}}function i2(e,a,i){return We(e,l,"whitespace");function l(o){return o===null?i(o):a(o)}}function r2(e){return Rx([RM(),HM(),QM(e),WM(),n2()])}const l2={};function am(e){const a=this,i=e||l2,l=a.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),c=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(r2(i)),c.push(kM()),u.push(TM(i))}const iv=(function(e,a,i){const l=co(i);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=e.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<e.children.length;)if(l(e.children[a],a,e))return e.children[a]}),Tr=(function(e){if(e==null)return c2;if(typeof e=="string")return o2(e);if(typeof e=="object")return s2(e);if(typeof e=="function")return im(e);throw new Error("Expected function, string, or array as `test`")});function s2(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=Tr(e[i]);return im(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function o2(e){return im(a);function a(i){return i.tagName===e}}function im(e){return a;function a(i,l,o){return!!(u2(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function c2(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function u2(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const rv=/\n/g,lv=/[\t ]+/g,bh=Tr("br"),sv=Tr(y2),f2=Tr("p"),ov=Tr("tr"),d2=Tr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",b2,v2]),xE=Tr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function h2(e,a){const i=a||{},l="children"in e?e.children:[],o=xE(e),c=SE(e,{whitespace:i.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(..._E(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<l.length;)u.push(...EE(l[d],e,{whitespace:c,breakBefore:d?void 0:o,breakAfter:d<l.length-1?bh(l[d+1]):o}));const p=[];let h;for(d=-1;++d<u.length;){const b=u[d];typeof b=="number"?h!==void 0&&b>h&&(h=b):b&&(h!==void 0&&h>-1&&p.push(`
285
- `.repeat(h)||" "),h=-1,p.push(b))}return p.join("")}function EE(e,a,i){return e.type==="element"?m2(e,a,i):e.type==="text"?i.whitespace==="normal"?_E(e,i):p2(e):[]}function m2(e,a,i){const l=SE(e,i),o=e.children||[];let c=-1,u=[];if(d2(e))return u;let d,p;for(bh(e)||ov(e)&&iv(a,e,ov)?p=`
286
- `:f2(e)?(d=2,p=2):xE(e)&&(d=1,p=1);++c<o.length;)u=u.concat(EE(o[c],e,{whitespace:l,breakBefore:c?void 0:d,breakAfter:c<o.length-1?bh(o[c+1]):p}));return sv(e)&&iv(a,e,sv)&&u.push(" "),d&&u.unshift(d),p&&u.push(p),u}function _E(e,a){const i=String(e.value),l=[],o=[];let c=0;for(;c<=i.length;){rv.lastIndex=c;const p=rv.exec(i),h=p&&"index"in p?p.index:i.length;l.push(g2(i.slice(c,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),c===0?a.breakBefore:!0,h===i.length?a.breakAfter:!0)),c=h+1}let u=-1,d;for(;++u<l.length;)l[u].charCodeAt(l[u].length-1)===8203||u<l.length-1&&l[u+1].charCodeAt(0)===8203?(o.push(l[u]),d=void 0):l[u]?(typeof d=="number"&&o.push(d),o.push(l[u]),d=0):(u===0||u===l.length-1)&&o.push(0);return o}function p2(e){return[String(e.value)]}function g2(e,a,i){const l=[];let o=0,c;for(;o<e.length;){lv.lastIndex=o;const u=lv.exec(e);c=u?u.index:e.length,!o&&!c&&u&&!a&&l.push(""),o!==c&&l.push(e.slice(o,c)),o=u?c+u[0].length:c}return o!==c&&!i&&l.push(""),l.join(" ")}function SE(e,a){if(e.type==="element"){const i=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return i.wrap?"pre-wrap":"pre";case"td":case"th":return i.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function b2(e){return!!(e.properties||{}).hidden}function y2(e){return e.tagName==="td"||e.tagName==="th"}function v2(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function x2(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],H={type:w,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},K={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[K,g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:L.concat([{begin:/\(/,end:/\)/,keywords:H,contains:L.concat(["self"]),relevance:0}]),relevance:0},X={className:"function",begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:H,relevance:0},{begin:x,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:H,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,X,K,L,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:H,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:H},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function E2(e){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=x2(e),l=i.keywords;return l.type=[...l.type,...a.type],l.literal=[...l.literal,...a.literal],l.built_in=[...l.built_in,...a.built_in],l._hints=a._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}function _2(e){const a=e.regex,i={},l={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},l]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,o]};o.contains.push(d);const p={match:/\\"/},h={className:"string",begin:/'/,end:/'/},b={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],x=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],T=["true","false"],N={match:/(\/[a-z._-]+)+/},z=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],K=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:T,built_in:[...z,...M,"set","shopt",...H,...K]},contains:[x,e.SHEBANG(),S,g,c,u,N,d,p,h,b,i]}}function S2(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",T={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},N=[g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:N.concat([{begin:/\(/,end:/\)/,keywords:T,contains:N.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:T,relevance:0},{begin:x,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"</",contains:[].concat(z,M,N,[g,{begin:e.IDENT_RE+"::",keywords:T},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:h,keywords:T}}}function w2(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],H={type:w,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},K={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[K,g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:L.concat([{begin:/\(/,end:/\)/,keywords:H,contains:L.concat(["self"]),relevance:0}]),relevance:0},X={className:"function",begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:H,relevance:0},{begin:x,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:H,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,X,K,L,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:H,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:H},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function N2(e){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],l=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:o.concat(c),built_in:a,literal:l},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(b,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:u},x=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,x]},w={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},T=e.inherit(w,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]});E.contains=[w,S,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,e.C_BLOCK_COMMENT_MODE],x.contains=[T,S,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const N={variants:[h,w,S,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},z={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},M=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",H={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},N,p,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,z,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,z,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+M+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,z],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[N,p,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},H]}}const k2=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),T2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],A2=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],C2=[...T2,...A2],R2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),O2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),M2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),D2=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function L2(e){const a=e.regex,i=k2(e),l={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,l,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+O2.join("|")+")"},{begin:":(:)?("+M2.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+D2.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:R2.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+C2.join("|")+")\\b"}]}}function z2(e){const a=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function I2(e){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}function U2(e){const a=e.regex,i=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(i,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function B2(e){const a=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},l=e.COMMENT();l.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[l,c,o,u,i,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,b=/'[^']*'/,g=a.either(p,h,b),E=a.concat(g,"(\\s*\\.\\s*",g,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[l,d,c,o,u,i]}}]}}var gl="[0-9](_*[0-9])*",zc=`\\.(${gl})`,Ic="[0-9a-fA-F](_*[0-9a-fA-F])*",cv={className:"number",variants:[{begin:`(\\b(${gl})((${zc})|\\.)?|(${zc}))[eE][+-]?(${gl})[fFdD]?\\b`},{begin:`\\b(${gl})((${zc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${zc})[fFdD]?\\b`},{begin:`\\b(${gl})[fFdD]\\b`},{begin:`\\b0[xX]((${Ic})\\.?|(${Ic})?\\.(${Ic}))[pP][+-]?(${gl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ic})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function wE(e,a,i){return i===-1?"":e.replace(a,l=>wE(e,a,i-1))}function j2(e){const a=e.regex,i="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=i+wE("(?:<"+i+"~~~(?:\\s*,\\s*"+i+"~~~)*>)?",/~~~/g,2),p={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+i,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:p,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,i),/\s+/,i,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,i],className:{1:"keyword",3:"title.class"},contains:[b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+l+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:p,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,cv,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},cv,h]}}const uv="[A-Za-z$_][0-9A-Za-z$_]*",H2=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],F2=["true","false","null","undefined","NaN","Infinity"],NE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],kE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],TE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],q2=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],P2=[].concat(TE,NE,kE);function G2(e){const a=e.regex,i=(oe,{after:_e})=>{const A="</"+oe[0].slice(1);return oe.input.indexOf(A,_e)!==-1},l=uv,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,_e)=>{const A=oe[0].length+oe.index,O=oe.input[A];if(O==="<"||O===","){_e.ignoreMatch();return}O===">"&&(i(oe,{after:A})||_e.ignoreMatch());let Q;const k=oe.input.substring(A);if(Q=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Q=k.match(/^\s+extends\s+/))&&Q.index===0){_e.ignoreMatch();return}}},d={$pattern:uv,keyword:H2,literal:F2,built_in:P2,"variable.language":q2},p="[0-9](_?[0-9])*",h=`\\.(${p})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${p})\\b`},{begin:`\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},z={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,{match:/\$\d+/},g];E.contains=M.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(M)});const H=[].concat(z,E.contains),K=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(H)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:K},G={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,a.concat(l,"(",a.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...NE,...kE]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},C={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(oe){return a.concat("(?!",oe.join("|"),")")}const ge={match:a.concat(/\b/,ie([...TE,"super","import"].map(oe=>`${oe}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},F="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(F)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,z,{match:/\$\d+/},g,X,{scope:"attr",match:l+a.lookahead(":"),relevance:0},re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,e.REGEXP_MODE,{className:"function",begin:F,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},C,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},ge,ae,G,te,{match:/\$[(.]/}]}}function K2(e){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},l=["true","false","null"],o={scope:"literal",beginKeywords:l.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:l},contains:[a,i,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var bl="[0-9](_*[0-9])*",Uc=`\\.(${bl})`,Bc="[0-9a-fA-F](_*[0-9a-fA-F])*",$2={className:"number",variants:[{begin:`(\\b(${bl})((${Uc})|\\.)?|(${Uc}))[eE][+-]?(${bl})[fFdD]?\\b`},{begin:`\\b(${bl})((${Uc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Uc})[fFdD]?\\b`},{begin:`\\b(${bl})[fFdD]\\b`},{begin:`\\b0[xX]((${Bc})\\.?|(${Bc})?\\.(${Bc}))[pP][+-]?(${bl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Bc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Y2(e){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},i={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,c,o]}]};o.contains.push(u);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},h=$2,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=g;return E.variants[1].contains=[g],g.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,i,l,d,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,e.C_LINE_COMMENT_MODE,b],relevance:0},e.C_LINE_COMMENT_MODE,b,d,p,u,e.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,p]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
287
- `},h]}}const Q2=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),V2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],X2=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Z2=[...V2,...X2],W2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),AE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),CE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),J2=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),eD=AE.concat(CE).sort().reverse();function tD(e){const a=Q2(e),i=eD,l="and or not only",o="[\\w-]+",c="("+o+"|@\\{"+o+"\\})",u=[],d=[],p=function(M){return{className:"string",begin:"~?"+M+".*?"+M}},h=function(M,H,K){return{className:M,begin:H,relevance:K}},b={$pattern:/[a-z-]+/,keyword:l,attribute:W2.join(" ")},g={begin:"\\(",end:"\\)",contains:d,keywords:b,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p("'"),p('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,g,h("variable","@@?"+o,10),h("variable","@\\{"+o+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const E=d.concat({begin:/\{/,end:/\}/,contains:u}),x={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},S={begin:c+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+J2.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:d,relevance:0}},T={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:E}},N={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:c,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,h("keyword","all\\b"),h("variable","@\\{"+o+"\\}"),{begin:"\\b("+Z2.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,h("selector-tag",c,0),h("selector-id","#"+c),h("selector-class","\\."+c,0),h("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+AE.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+CE.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:E},{begin:"!important"},a.FUNCTION_DISPATCH]},z={begin:o+`:(:)?(${i.join("|")})`,returnBegin:!0,contains:[N]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,w,T,z,S,N,x,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function nD(e){const a="\\[=*\\[",i="\\]=*\\]",l={begin:a,end:i,contains:["self"]},o=[e.COMMENT("--(?!"+a+")","$"),e.COMMENT("--"+a,i,{contains:[l],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:a,end:i,contains:[l],relevance:5}])}}function aD(e){const a={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]},l={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,i]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},c={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,a,i,l,o,c,u]}}function iD(e){const a=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},l={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,p={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=e.inherit(h,{contains:[]}),E=e.inherit(b,{contains:[]});h.contains.push(E),b.contains.push(g);let x=[i,p];return[h,b,g,E].forEach(N=>{N.contains=N.contains.concat(x)}),x=x.concat(h,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:x},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:x}]}]},i,c,h,b,{className:"quote",begin:"^>\\s+",contains:x,end:"$"},o,l,p,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function rD(e){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:i,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},p={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"</",contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+p.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:p,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function lD(e){const a=e.regex,i=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],l=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:i.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},u={begin:/->\{/,end:/\}/},d={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},p={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[d]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[e.BACKSLASH_ESCAPE,c,p],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(w,T,N="\\1")=>{const z=N==="\\1"?N:a.concat(N,T);return a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,z,/(?:\\.|[^\\\/])*?/,N,l)},x=(w,T,N)=>a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,N,l),S=[p,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",a.either(...g,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:x("(?:m|qr)?",/\//,/\//)},{begin:x("m|qr",a.either(...g,{capture:!0}),/\1/)},{begin:x("m|qr",/\(/,/\)/)},{begin:x("m|qr",/\[/,/\]/)},{begin:x("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=S,u.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:S}}function sD(e){const a=e.regex,i=/(?![A-Za-z0-9])(?![$])/,l=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),o=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),c=a.concat(/[A-Z]+/,i),u={scope:"variable",match:"\\$+"+l},d={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},p={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),b=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(p)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(p),"on:begin":(le,te)=>{te.data._beginMatch=le[1]||le[2]},"on:end":(le,te)=>{te.data._beginMatch!==le[1]&&te.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),x=`[
288
- ]`,S={scope:"string",variants:[b,h,g,E]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},T=["false","null","true"],N=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],z=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],H={keyword:N,literal:(le=>{const te=[];return le.forEach(F=>{te.push(F),F.toLowerCase()===F?te.push(F.toUpperCase()):te.push(F.toLowerCase())}),te})(T),built_in:z},K=le=>le.map(te=>te.replace(/\|\d+$/,"")),L={variants:[{match:[/new/,a.concat(x,"+"),a.concat("(?!",K(z).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},G=a.concat(l,"\\b(?!\\()"),X={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),G],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,a.concat(/::/,a.lookahead(/(?!class\b)/)),G],scope:{1:"title.class",3:"variable.constant"}},{match:[o,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},V={scope:"attr",match:a.concat(l,a.lookahead(":"),a.lookahead(/(?!::)/))},C={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[V,u,X,e.C_BLOCK_COMMENT_MODE,S,w,L]},ae={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",K(N).join("\\b|"),"|",K(z).join("\\b|"),"\\b)"),l,a.concat(x,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[C]};C.contains.push(ae);const ie=[V,X,e.C_BLOCK_COMMENT_MODE,S,w,L],ge={begin:a.concat(/#\[\s*\\?/,a.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:T,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:T,keyword:["new","array"]},contains:["self",...ie]},...ie,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:H,contains:[ge,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},d,{scope:"variable.language",match:/\$this\b/},u,ae,X,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},L,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:H,contains:["self",ge,u,X,e.C_BLOCK_COMMENT_MODE,S,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},S,w]}}function oD(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function cD(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function uD(e){const a=e.regex,i=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),l=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:l,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},p={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},b={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,p,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,p,b,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,b,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",x=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,S=`\\b|${l.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${x}))[eE][+-]?(${E})[jJ]?(?=${S})`},{begin:`(${x})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${E})[jJ](?=${S})`}]},T={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},N={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",p,w,g,e.HASH_COMMENT_MODE]}]};return h.contains=[g,w,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[p,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[N]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[w,N,g]}]}}function fD(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function dD(e){const a=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,l=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:i},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,l]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,l]},{scope:{1:"punctuation",2:"number"},match:[c,l]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,l]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function hD(e){const a=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",l=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=a.concat(l,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},p={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:u},g={className:"string",contains:[e.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,b]})]}]},E="[1-9](_?[0-9])*|0",x="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${x}))?([eE][+-]?(${x})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},L=[g,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:u},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:l,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[w]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:i}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(p,h),relevance:0}].concat(p,h);b.contains=L,w.contains=L;const C=[{begin:/^\s*=>/,starts:{end:"$",contains:L}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:L}}];return h.unshift(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(C).concat(h).concat(L)}}function mD(e){const a=e.regex,i=/(r#)?/,l=a.concat(i,e.UNDERSCORE_IDENT_RE),o=a.concat(i,e.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,a.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",d=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],p=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:b,keyword:d,literal:p,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,l],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,l],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,l,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:b}},{className:"punctuation",begin:"->"},c]}}const pD=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),gD=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],bD=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],yD=[...gD,...bD],vD=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),xD=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),ED=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_D=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function SD(e){const a=pD(e),i=ED,l=xD,o="@[a-z-]+",c="and or not only",d={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+yD.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_D.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,d,a.HEXCOLOR,a.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:c,attribute:vD.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function wD(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function ND(e){const a=e.regex,i=e.COMMENT("--","$"),l={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],x=b,S=[...h,...p].filter(K=>!b.includes(K)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},N={match:a.concat(/\b/,a.either(...x),/\s*\(/),relevance:0,keywords:{built_in:x}};function z(K){return a.concat(/\b/,a.either(...K.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const M={scope:"keyword",match:z(E),relevance:0};function H(K,{exceptions:L,when:G}={}){const X=G;return L=L||[],K.map(V=>V.match(/\|\d+$/)||L.includes(V)?V:X(V)?`${V}|0`:V)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(S,{when:K=>K.length<3}),literal:c,type:d,built_in:g},contains:[{scope:"type",match:z(u)},M,N,w,l,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,T]}}function RE(e){return e?typeof e=="string"?e:e.source:null}function Fs(e){return mt("(?=",e,")")}function mt(...e){return e.map(i=>RE(i)).join("")}function kD(e){const a=e[e.length-1];return typeof a=="object"&&a.constructor===Object?(e.splice(e.length-1,1),a):{}}function pn(...e){return"("+(kD(e).capture?"":"?:")+e.map(l=>RE(l)).join("|")+")"}const rm=e=>mt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),TD=["Protocol","Type"].map(rm),fv=["init","self"].map(rm),AD=["Any","Self"],Hd=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],dv=["false","nil","true"],CD=["assignment","associativity","higherThan","left","lowerThan","none","right"],RD=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],hv=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],OE=pn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),ME=pn(OE,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Fd=mt(OE,ME,"*"),DE=pn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Xc=pn(DE,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Na=mt(DE,Xc,"*"),jc=mt(/[A-Z]/,Xc,"*"),OD=["attached","autoclosure",mt(/convention\(/,pn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",mt(/objc\(/,Na,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],MD=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function DD(e){const a={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),l=[e.C_LINE_COMMENT_MODE,i],o={match:[/\./,pn(...TD,...fv)],className:{2:"keyword"}},c={match:mt(/\./,pn(...Hd)),relevance:0},u=Hd.filter(Qe=>typeof Qe=="string").concat(["_|0"]),d=Hd.filter(Qe=>typeof Qe!="string").concat(AD).map(rm),p={variants:[{className:"keyword",match:pn(...d,...fv)}]},h={$pattern:pn(/\b\w+/,/#\w+/),keyword:u.concat(RD),literal:dv},b=[o,c,p],g={match:mt(/\./,pn(...hv)),relevance:0},E={className:"built_in",match:mt(/\b/,pn(...hv),/(?=\()/)},x=[g,E],S={match:/->/,relevance:0},w={className:"operator",relevance:0,variants:[{match:Fd},{match:`\\.(\\.|${ME})+`}]},T=[S,w],N="([0-9]_*)+",z="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${z})(\\.(${z}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},H=(Qe="")=>({className:"subst",variants:[{match:mt(/\\/,Qe,/[0\\tnr"']/)},{match:mt(/\\/,Qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),K=(Qe="")=>({className:"subst",match:mt(/\\/,Qe,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(Qe="")=>({className:"subst",label:"interpol",begin:mt(/\\/,Qe,/\(/),end:/\)/}),G=(Qe="")=>({begin:mt(Qe,/"""/),end:mt(/"""/,Qe),contains:[H(Qe),K(Qe),L(Qe)]}),X=(Qe="")=>({begin:mt(Qe,/"/),end:mt(/"/,Qe),contains:[H(Qe),L(Qe)]}),V={className:"string",variants:[G(),G("#"),G("##"),G("###"),X(),X("#"),X("##"),X("###")]},C=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ae={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:C},ie=Qe=>{const oa=mt(Qe,/\//),$n=mt(/\//,Qe);return{begin:oa,end:$n,contains:[...C,{scope:"comment",begin:`#(?!.*${$n})`,end:/$/}]}},ge={scope:"regexp",variants:[ie("###"),ie("##"),ie("#"),ae]},le={match:mt(/`/,Na,/`/)},te={className:"variable",match:/\$\d+/},F={className:"variable",match:`\\$${Xc}+`},re=[le,te,F],oe={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:MD,contains:[...T,M,V]}]}},_e={scope:"keyword",match:mt(/@/,pn(...OD),Fs(pn(/\(/,/\s+/)))},A={scope:"meta",match:mt(/@/,Na)},O=[oe,_e,A],Q={match:Fs(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:mt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Xc,"+")},{className:"type",match:jc,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:mt(/\s+&\s+/,Fs(jc)),relevance:0}]},k={begin:/</,end:/>/,keywords:h,contains:[...l,...b,...O,S,Q]};Q.contains.push(k);const de={match:mt(Na,/\s*:/),keywords:"_|0",relevance:0},we={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",de,...l,ge,...b,...x,...T,M,V,...re,...O,Q]},ve={begin:/</,end:/>/,keywords:"repeat each",contains:[...l,Q]},Be={begin:pn(Fs(mt(Na,/\s*:/)),Fs(mt(Na,/\s+/,Na,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Na}]},rt={begin:/\(/,end:/\)/,keywords:h,contains:[Be,...l,...b,...T,M,V,...O,Q,we],endsParent:!0,illegal:/["']/},nt={match:[/(func|macro)/,/\s+/,pn(le.match,Na,Fd)],className:{1:"keyword",3:"title.function"},contains:[ve,rt,a],illegal:[/\[/,/%/]},Gt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ve,rt,a],illegal:/\[|%/},Rn={match:[/operator/,/\s+/,Fd],className:{1:"keyword",3:"title"}},Oa={begin:[/precedencegroup/,/\s+/,jc],className:{1:"keyword",3:"title"},contains:[Q],keywords:[...CD,...dv],end:/}/},ii={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},On={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ba={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Na,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[ve,...b,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:jc},...b],relevance:0}]};for(const Qe of V.variants){const oa=Qe.contains.find(ya=>ya.label==="interpol");oa.keywords=h;const $n=[...b,...x,...T,M,V,...re];oa.contains=[...$n,{begin:/\(/,end:/\)/,contains:["self",...$n]}]}return{name:"Swift",keywords:h,contains:[...l,nt,Gt,ii,On,ba,Rn,Oa,{beginKeywords:"import",end:/$/,contains:[...l],relevance:0},ge,...b,...x,...T,M,V,...re,...O,Q,we]}}const Zc="[A-Za-z$_][0-9A-Za-z$_]*",LE=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],zE=["true","false","null","undefined","NaN","Infinity"],IE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],UE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],HE=[].concat(BE,IE,UE);function LD(e){const a=e.regex,i=(oe,{after:_e})=>{const A="</"+oe[0].slice(1);return oe.input.indexOf(A,_e)!==-1},l=Zc,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,_e)=>{const A=oe[0].length+oe.index,O=oe.input[A];if(O==="<"||O===","){_e.ignoreMatch();return}O===">"&&(i(oe,{after:A})||_e.ignoreMatch());let Q;const k=oe.input.substring(A);if(Q=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Q=k.match(/^\s+extends\s+/))&&Q.index===0){_e.ignoreMatch();return}}},d={$pattern:Zc,keyword:LE,literal:zE,built_in:HE,"variable.language":jE},p="[0-9](_?[0-9])*",h=`\\.(${p})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${p})\\b`},{begin:`\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},z={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,{match:/\$\d+/},g];E.contains=M.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(M)});const H=[].concat(z,E.contains),K=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(H)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:K},G={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,a.concat(l,"(",a.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...IE,...UE]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},C={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(oe){return a.concat("(?!",oe.join("|"),")")}const ge={match:a.concat(/\b/,ie([...BE,"super","import"].map(oe=>`${oe}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},F="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(F)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,z,{match:/\$\d+/},g,X,{scope:"attr",match:l+a.lookahead(":"),relevance:0},re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,e.REGEXP_MODE,{className:"function",begin:F,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},C,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},ge,ae,G,te,{match:/\$[(.]/}]}}function zD(e){const a=e.regex,i=LD(e),l=Zc,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:Zc,keyword:LE.concat(p),literal:zE,built_in:HE.concat(o),"variable.language":jE},b={className:"meta",begin:"@"+l},g=(w,T,N)=>{const z=w.contains.findIndex(M=>M.label===T);if(z===-1)throw new Error("can not find mode to replace");w.contains.splice(z,1,N)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(b);const E=i.contains.find(w=>w.scope==="attr"),x=Object.assign({},E,{match:a.concat(l,a.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,E,x]),i.contains=i.contains.concat([b,c,u,x]),g(i,"shebang",e.SHEBANG()),g(i,"use_strict",d);const S=i.contains.find(w=>w.label==="func.def");return S.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function ID(e){const a=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},l={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,p={className:"literal",variants:[{begin:a.concat(/# */,a.either(c,o),/ *#/)},{begin:a.concat(/# */,d,/ *#/)},{begin:a.concat(/# */,u,/ *#/)},{begin:a.concat(/# */,a.either(c,o),/ +/,a.either(u,d),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},g=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),E=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[i,l,p,h,b,g,E,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[E]}]}}function UD(e){e.regex;const a=e.COMMENT(/\(;/,/;\)/);a.contains.push("self");const i=e.COMMENT(/;;/,/$/),l=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},p={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:l},contains:[i,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,u,o,e.QUOTE_STRING_MODE,p,h,d]}}function BD(e){const a=e.regex,i=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(c,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),p=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:l,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,p,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,p,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(i,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function jD(e){const a="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",l={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,o]},d=e.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},x={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},S={begin:/\{/,end:/\}/,contains:[x],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[x],illegal:"\\n",relevance:0},T=[l,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},S,w,c,u],N=[...T];return N.pop(),N.push(d),x.contains=N,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}const HD={arduino:E2,bash:_2,c:S2,cpp:w2,csharp:N2,css:L2,diff:z2,go:I2,graphql:U2,ini:B2,java:j2,javascript:G2,json:K2,kotlin:Y2,less:tD,lua:nD,makefile:aD,markdown:iD,objectivec:rD,perl:lD,php:sD,"php-template":oD,plaintext:cD,python:uD,"python-repl":fD,r:dD,ruby:hD,rust:mD,scss:SD,shell:wD,sql:ND,swift:DD,typescript:zD,vbnet:ID,wasm:UD,xml:BD,yaml:jD};var qd,mv;function FD(){if(mv)return qd;mv=1;function e(D){return D instanceof Map?D.clear=D.delete=D.set=function(){throw new Error("map is read-only")}:D instanceof Set&&(D.add=D.clear=D.delete=function(){throw new Error("set is read-only")}),Object.freeze(D),Object.getOwnPropertyNames(D).forEach(J=>{const he=D[J],Me=typeof he;(Me==="object"||Me==="function")&&!Object.isFrozen(he)&&e(he)}),D}class a{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(D){return D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(D,...J){const he=Object.create(null);for(const Me in D)he[Me]=D[Me];return J.forEach(function(Me){for(const xt in Me)he[xt]=Me[xt]}),he}const o="</span>",c=D=>!!D.scope,u=(D,{prefix:J})=>{if(D.startsWith("language:"))return D.replace("language:","language-");if(D.includes(".")){const he=D.split(".");return[`${J}${he.shift()}`,...he.map((Me,xt)=>`${Me}${"_".repeat(xt+1)}`)].join(" ")}return`${J}${D}`};class d{constructor(J,he){this.buffer="",this.classPrefix=he.classPrefix,J.walk(this)}addText(J){this.buffer+=i(J)}openNode(J){if(!c(J))return;const he=u(J.scope,{prefix:this.classPrefix});this.span(he)}closeNode(J){c(J)&&(this.buffer+=o)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const p=(D={})=>{const J={children:[]};return Object.assign(J,D),J};class h{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const he=p({scope:J});this.add(he),this.stack.push(he)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,he){return typeof he=="string"?J.addText(he):he.children&&(J.openNode(he),he.children.forEach(Me=>this._walk(J,Me)),J.closeNode(he)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(he=>typeof he=="string")?J.children=[J.children.join("")]:J.children.forEach(he=>{h._collapse(he)}))}}class b extends h{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,he){const Me=J.root;he&&(Me.scope=`language:${he}`),this.add(Me)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(D){return D?typeof D=="string"?D:D.source:null}function E(D){return w("(?=",D,")")}function x(D){return w("(?:",D,")*")}function S(D){return w("(?:",D,")?")}function w(...D){return D.map(he=>g(he)).join("")}function T(D){const J=D[D.length-1];return typeof J=="object"&&J.constructor===Object?(D.splice(D.length-1,1),J):{}}function N(...D){return"("+(T(D).capture?"":"?:")+D.map(Me=>g(Me)).join("|")+")"}function z(D){return new RegExp(D.toString()+"|").exec("").length-1}function M(D,J){const he=D&&D.exec(J);return he&&he.index===0}const H=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function K(D,{joinWith:J}){let he=0;return D.map(Me=>{he+=1;const xt=he;let pt=g(Me),ye="";for(;pt.length>0;){const me=H.exec(pt);if(!me){ye+=pt;break}ye+=pt.substring(0,me.index),pt=pt.substring(me.index+me[0].length),me[0][0]==="\\"&&me[1]?ye+="\\"+String(Number(me[1])+xt):(ye+=me[0],me[0]==="("&&he++)}return ye}).map(Me=>`(${Me})`).join(J)}const L=/\b\B/,G="[a-zA-Z]\\w*",X="[a-zA-Z_]\\w*",V="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ae="\\b(0b[01]+)",ie="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ge=(D={})=>{const J=/^#![ ]*\//;return D.binary&&(D.begin=w(J,/.*\b/,D.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(he,Me)=>{he.index!==0&&Me.ignoreMatch()}},D)},le={begin:"\\\\[\\s\\S]",relevance:0},te={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},F={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},re={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},oe=function(D,J,he={}){const Me=l({scope:"comment",begin:D,end:J,contains:[]},he);Me.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const xt=N("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Me.contains.push({begin:w(/[ ]+/,"(",xt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},_e=oe("//","$"),A=oe("/\\*","\\*/"),O=oe("#","$"),Q={scope:"number",begin:V,relevance:0},k={scope:"number",begin:C,relevance:0},de={scope:"number",begin:ae,relevance:0},we={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},ve={scope:"title",begin:G,relevance:0},Be={scope:"title",begin:X,relevance:0},rt={begin:"\\.\\s*"+X,relevance:0};var Gt=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:de,BINARY_NUMBER_RE:ae,COMMENT:oe,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:_e,C_NUMBER_MODE:k,C_NUMBER_RE:C,END_SAME_AS_BEGIN:function(D){return Object.assign(D,{"on:begin":(J,he)=>{he.data._beginMatch=J[1]},"on:end":(J,he)=>{he.data._beginMatch!==J[1]&&he.ignoreMatch()}})},HASH_COMMENT_MODE:O,IDENT_RE:G,MATCH_NOTHING_RE:L,METHOD_GUARD:rt,NUMBER_MODE:Q,NUMBER_RE:V,PHRASAL_WORDS_MODE:re,QUOTE_STRING_MODE:F,REGEXP_MODE:we,RE_STARTERS_RE:ie,SHEBANG:ge,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:X,UNDERSCORE_TITLE_MODE:Be});function Rn(D,J){D.input[D.index-1]==="."&&J.ignoreMatch()}function Oa(D,J){D.className!==void 0&&(D.scope=D.className,delete D.className)}function ii(D,J){J&&D.beginKeywords&&(D.begin="\\b("+D.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",D.__beforeBegin=Rn,D.keywords=D.keywords||D.beginKeywords,delete D.beginKeywords,D.relevance===void 0&&(D.relevance=0))}function On(D,J){Array.isArray(D.illegal)&&(D.illegal=N(...D.illegal))}function ba(D,J){if(D.match){if(D.begin||D.end)throw new Error("begin & end are not supported with match");D.begin=D.match,delete D.match}}function Qe(D,J){D.relevance===void 0&&(D.relevance=1)}const oa=(D,J)=>{if(!D.beforeMatch)return;if(D.starts)throw new Error("beforeMatch cannot be used with starts");const he=Object.assign({},D);Object.keys(D).forEach(Me=>{delete D[Me]}),D.keywords=he.keywords,D.begin=w(he.beforeMatch,E(he.begin)),D.starts={relevance:0,contains:[Object.assign(he,{endsParent:!0})]},D.relevance=0,delete he.beforeMatch},$n=["of","and","for","in","not","or","if","then","parent","list","value"],ya="keyword";function Ma(D,J,he=ya){const Me=Object.create(null);return typeof D=="string"?xt(he,D.split(" ")):Array.isArray(D)?xt(he,D):Object.keys(D).forEach(function(pt){Object.assign(Me,Ma(D[pt],J,pt))}),Me;function xt(pt,ye){J&&(ye=ye.map(me=>me.toLowerCase())),ye.forEach(function(me){const Oe=me.split("|");Me[Oe[0]]=[pt,Ki(Oe[0],Oe[1])]})}}function Ki(D,J){return J?Number(J):Hl(D)?0:1}function Hl(D){return $n.includes(D.toLowerCase())}const Ar={},kt=D=>{console.error(D)},Cr=(D,...J)=>{console.log(`WARN: ${D}`,...J)},Z=(D,J)=>{Ar[`${D}/${J}`]||(console.log(`Deprecated as of ${D}. ${J}`),Ar[`${D}/${J}`]=!0)},ue=new Error;function Te(D,J,{key:he}){let Me=0;const xt=D[he],pt={},ye={};for(let me=1;me<=J.length;me++)ye[me+Me]=xt[me],pt[me+Me]=!0,Me+=z(J[me-1]);D[he]=ye,D[he]._emit=pt,D[he]._multi=!0}function je(D){if(Array.isArray(D.begin)){if(D.skip||D.excludeBegin||D.returnBegin)throw kt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ue;if(typeof D.beginScope!="object"||D.beginScope===null)throw kt("beginScope must be object"),ue;Te(D,D.begin,{key:"beginScope"}),D.begin=K(D.begin,{joinWith:""})}}function Je(D){if(Array.isArray(D.end)){if(D.skip||D.excludeEnd||D.returnEnd)throw kt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ue;if(typeof D.endScope!="object"||D.endScope===null)throw kt("endScope must be object"),ue;Te(D,D.end,{key:"endScope"}),D.end=K(D.end,{joinWith:""})}}function un(D){D.scope&&typeof D.scope=="object"&&D.scope!==null&&(D.beginScope=D.scope,delete D.scope)}function ca(D){un(D),typeof D.beginScope=="string"&&(D.beginScope={_wrap:D.beginScope}),typeof D.endScope=="string"&&(D.endScope={_wrap:D.endScope}),je(D),Je(D)}function Qt(D){function J(ye,me){return new RegExp(g(ye),"m"+(D.case_insensitive?"i":"")+(D.unicodeRegex?"u":"")+(me?"g":""))}class he{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(me,Oe){Oe.position=this.position++,this.matchIndexes[this.matchAt]=Oe,this.regexes.push([Oe,me]),this.matchAt+=z(me)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const me=this.regexes.map(Oe=>Oe[1]);this.matcherRe=J(K(me,{joinWith:"|"}),!0),this.lastIndex=0}exec(me){this.matcherRe.lastIndex=this.lastIndex;const Oe=this.matcherRe.exec(me);if(!Oe)return null;const Mt=Oe.findIndex((Da,Or)=>Or>0&&Da!==void 0),St=this.matchIndexes[Mt];return Oe.splice(0,Mt),Object.assign(Oe,St)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(me){if(this.multiRegexes[me])return this.multiRegexes[me];const Oe=new he;return this.rules.slice(me).forEach(([Mt,St])=>Oe.addRule(Mt,St)),Oe.compile(),this.multiRegexes[me]=Oe,Oe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(me,Oe){this.rules.push([me,Oe]),Oe.type==="begin"&&this.count++}exec(me){const Oe=this.getMatcher(this.regexIndex);Oe.lastIndex=this.lastIndex;let Mt=Oe.exec(me);if(this.resumingScanAtSamePosition()&&!(Mt&&Mt.index===this.lastIndex)){const St=this.getMatcher(0);St.lastIndex=this.lastIndex+1,Mt=St.exec(me)}return Mt&&(this.regexIndex+=Mt.position+1,this.regexIndex===this.count&&this.considerAll()),Mt}}function xt(ye){const me=new Me;return ye.contains.forEach(Oe=>me.addRule(Oe.begin,{rule:Oe,type:"begin"})),ye.terminatorEnd&&me.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&me.addRule(ye.illegal,{type:"illegal"}),me}function pt(ye,me){const Oe=ye;if(ye.isCompiled)return Oe;[Oa,ba,ca,oa].forEach(St=>St(ye,me)),D.compilerExtensions.forEach(St=>St(ye,me)),ye.__beforeBegin=null,[ii,On,Qe].forEach(St=>St(ye,me)),ye.isCompiled=!0;let Mt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Mt=ye.keywords.$pattern,delete ye.keywords.$pattern),Mt=Mt||/\w+/,ye.keywords&&(ye.keywords=Ma(ye.keywords,D.case_insensitive)),Oe.keywordPatternRe=J(Mt,!0),me&&(ye.begin||(ye.begin=/\B|\b/),Oe.beginRe=J(Oe.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(Oe.endRe=J(Oe.end)),Oe.terminatorEnd=g(Oe.end)||"",ye.endsWithParent&&me.terminatorEnd&&(Oe.terminatorEnd+=(ye.end?"|":"")+me.terminatorEnd)),ye.illegal&&(Oe.illegalRe=J(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(St){return nn(St==="self"?ye:St)})),ye.contains.forEach(function(St){pt(St,Oe)}),ye.starts&&pt(ye.starts,me),Oe.matcher=xt(Oe),Oe}if(D.compilerExtensions||(D.compilerExtensions=[]),D.contains&&D.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return D.classNameAliases=l(D.classNameAliases||{}),pt(D)}function At(D){return D?D.endsWithParent||At(D.starts):!1}function nn(D){return D.variants&&!D.cachedVariants&&(D.cachedVariants=D.variants.map(function(J){return l(D,{variants:null},J)})),D.cachedVariants?D.cachedVariants:At(D)?l(D,{starts:D.starts?l(D.starts):null}):Object.isFrozen(D)?l(D):D}var lt="11.11.1";class va extends Error{constructor(J,he){super(J),this.name="HTMLInjectionError",this.html=he}}const fn=i,fo=l,$i=Symbol("nomatch"),Rr=7,Yi=function(D){const J=Object.create(null),he=Object.create(null),Me=[];let xt=!0;const pt="Could not find the language '{}', did you forget to load/include a language module?",ye={disableAutodetect:!0,name:"Plain text",contains:[]};let me={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Oe(se){return me.noHighlightRe.test(se)}function Mt(se){let Se=se.className+" ";Se+=se.parentNode?se.parentNode.className:"";const He=me.languageDetectRe.exec(Se);if(He){const st=dn(He[1]);return st||(Cr(pt.replace("{}",He[1])),Cr("Falling back to no-highlight mode for this block.",se)),st?He[1]:"no-highlight"}return Se.split(/\s+/).find(st=>Oe(st)||dn(st))}function St(se,Se,He){let st="",Lt="";typeof Se=="object"?(st=se,He=Se.ignoreIllegals,Lt=Se.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),Z("10.7.0",`Please use highlight(code, options) instead.
289
- https://github.com/highlightjs/highlight.js/issues/2277`),Lt=se,st=Se),He===void 0&&(He=!0);const rn={code:st,language:Lt};Vi("before:highlight",rn);const Mn=rn.result?rn.result:Da(rn.language,rn.code,He);return Mn.code=rn.code,Vi("after:highlight",Mn),Mn}function Da(se,Se,He,st){const Lt=Object.create(null);function rn(fe,xe){return fe.keywords[xe]}function Mn(){if(!Re.keywords){Bt.addText(ot);return}let fe=0;Re.keywordPatternRe.lastIndex=0;let xe=Re.keywordPatternRe.exec(ot),Le="";for(;xe;){Le+=ot.substring(fe,xe.index);const Ge=Vt.case_insensitive?xe[0].toLowerCase():xe[0],Tt=rn(Re,Ge);if(Tt){const[Yn,$l]=Tt;if(Bt.addText(Le),Le="",Lt[Ge]=(Lt[Ge]||0)+1,Lt[Ge]<=Rr&&(oi+=$l),Yn.startsWith("_"))Le+=xe[0];else{const vo=Vt.classNameAliases[Yn]||Yn;Dn(xe[0],vo)}}else Le+=xe[0];fe=Re.keywordPatternRe.lastIndex,xe=Re.keywordPatternRe.exec(ot)}Le+=ot.substring(fe),Bt.addText(Le)}function yn(){if(ot==="")return;let fe=null;if(typeof Re.subLanguage=="string"){if(!J[Re.subLanguage]){Bt.addText(ot);return}fe=Da(Re.subLanguage,ot,!0,yo[Re.subLanguage]),yo[Re.subLanguage]=fe._top}else fe=Mr(ot,Re.subLanguage.length?Re.subLanguage:null);Re.relevance>0&&(oi+=fe.relevance),Bt.__addSublanguage(fe._emitter,fe.language)}function yt(){Re.subLanguage!=null?yn():Mn(),ot=""}function Dn(fe,xe){fe!==""&&(Bt.startScope(xe),Bt.addText(fe),Bt.endScope())}function go(fe,xe){let Le=1;const Ge=xe.length-1;for(;Le<=Ge;){if(!fe._emit[Le]){Le++;continue}const Tt=Vt.classNameAliases[fe[Le]]||fe[Le],Yn=xe[Le];Tt?Dn(Yn,Tt):(ot=Yn,Mn(),ot=""),Le++}}function Lr(fe,xe){return fe.scope&&typeof fe.scope=="string"&&Bt.openNode(Vt.classNameAliases[fe.scope]||fe.scope),fe.beginScope&&(fe.beginScope._wrap?(Dn(ot,Vt.classNameAliases[fe.beginScope._wrap]||fe.beginScope._wrap),ot=""):fe.beginScope._multi&&(go(fe.beginScope,xe),ot="")),Re=Object.create(fe,{parent:{value:Re}}),Re}function Pl(fe,xe,Le){let Ge=M(fe.endRe,Le);if(Ge){if(fe["on:end"]){const Tt=new a(fe);fe["on:end"](xe,Tt),Tt.isMatchIgnored&&(Ge=!1)}if(Ge){for(;fe.endsParent&&fe.parent;)fe=fe.parent;return fe}}if(fe.endsWithParent)return Pl(fe.parent,xe,Le)}function zr(fe){return Re.matcher.regexIndex===0?(ot+=fe[0],1):(ci=!0,0)}function uu(fe){const xe=fe[0],Le=fe.rule,Ge=new a(Le),Tt=[Le.__beforeBegin,Le["on:begin"]];for(const Yn of Tt)if(Yn&&(Yn(fe,Ge),Ge.isMatchIgnored))return zr(xe);return Le.skip?ot+=xe:(Le.excludeBegin&&(ot+=xe),yt(),!Le.returnBegin&&!Le.excludeBegin&&(ot=xe)),Lr(Le,fe),Le.returnBegin?0:xe.length}function vn(fe){const xe=fe[0],Le=Se.substring(fe.index),Ge=Pl(Re,fe,Le);if(!Ge)return $i;const Tt=Re;Re.endScope&&Re.endScope._wrap?(yt(),Dn(xe,Re.endScope._wrap)):Re.endScope&&Re.endScope._multi?(yt(),go(Re.endScope,fe)):Tt.skip?ot+=xe:(Tt.returnEnd||Tt.excludeEnd||(ot+=xe),yt(),Tt.excludeEnd&&(ot=xe));do Re.scope&&Bt.closeNode(),!Re.skip&&!Re.subLanguage&&(oi+=Re.relevance),Re=Re.parent;while(Re!==Ge.parent);return Ge.starts&&Lr(Ge.starts,fe),Tt.returnEnd?0:xe.length}function Gl(){const fe=[];for(let xe=Re;xe!==Vt;xe=xe.parent)xe.scope&&fe.unshift(xe.scope);fe.forEach(xe=>Bt.openNode(xe))}let Xi={};function Ir(fe,xe){const Le=xe&&xe[0];if(ot+=fe,Le==null)return yt(),0;if(Xi.type==="begin"&&xe.type==="end"&&Xi.index===xe.index&&Le===""){if(ot+=Se.slice(xe.index,xe.index+1),!xt){const Ge=new Error(`0 width match regex (${se})`);throw Ge.languageName=se,Ge.badRule=Xi.rule,Ge}return 1}if(Xi=xe,xe.type==="begin")return uu(xe);if(xe.type==="illegal"&&!He){const Ge=new Error('Illegal lexeme "'+Le+'" for mode "'+(Re.scope||"<unnamed>")+'"');throw Ge.mode=Re,Ge}else if(xe.type==="end"){const Ge=vn(xe);if(Ge!==$i)return Ge}if(xe.type==="illegal"&&Le==="")return ot+=`
290
- `,1;if(Kl>1e5&&Kl>xe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=Le,Le.length}const Vt=dn(se);if(!Vt)throw kt(pt.replace("{}",se)),new Error('Unknown language: "'+se+'"');const bo=Qt(Vt);let Ur="",Re=st||bo;const yo={},Bt=new me.__emitter(me);Gl();let ot="",oi=0,Ia=0,Kl=0,ci=!1;try{if(Vt.__emitTokens)Vt.__emitTokens(Se,Bt);else{for(Re.matcher.considerAll();;){Kl++,ci?ci=!1:Re.matcher.considerAll(),Re.matcher.lastIndex=Ia;const fe=Re.matcher.exec(Se);if(!fe)break;const xe=Se.substring(Ia,fe.index),Le=Ir(xe,fe);Ia=fe.index+Le}Ir(Se.substring(Ia))}return Bt.finalize(),Ur=Bt.toHTML(),{language:se,value:Ur,relevance:oi,illegal:!1,_emitter:Bt,_top:Re}}catch(fe){if(fe.message&&fe.message.includes("Illegal"))return{language:se,value:fn(Se),illegal:!0,relevance:0,_illegalBy:{message:fe.message,index:Ia,context:Se.slice(Ia-100,Ia+100),mode:fe.mode,resultSoFar:Ur},_emitter:Bt};if(xt)return{language:se,value:fn(Se),illegal:!1,relevance:0,errorRaised:fe,_emitter:Bt,_top:Re};throw fe}}function Or(se){const Se={value:fn(se),illegal:!1,relevance:0,_top:ye,_emitter:new me.__emitter(me)};return Se._emitter.addText(se),Se}function Mr(se,Se){Se=Se||me.languages||Object.keys(J);const He=Or(se),st=Se.filter(dn).filter(li).map(yt=>Da(yt,se,!1));st.unshift(He);const Lt=st.sort((yt,Dn)=>{if(yt.relevance!==Dn.relevance)return Dn.relevance-yt.relevance;if(yt.language&&Dn.language){if(dn(yt.language).supersetOf===Dn.language)return 1;if(dn(Dn.language).supersetOf===yt.language)return-1}return 0}),[rn,Mn]=Lt,yn=rn;return yn.secondBest=Mn,yn}function xa(se,Se,He){const st=Se&&he[Se]||He;se.classList.add("hljs"),se.classList.add(`language-${st}`)}function Dt(se){let Se=null;const He=Mt(se);if(Oe(He))return;if(Vi("before:highlightElement",{el:se,language:He}),se.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",se);return}if(se.children.length>0&&(me.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(se)),me.throwUnescapedHTML))throw new va("One of your code blocks includes unescaped HTML.",se.innerHTML);Se=se;const st=Se.textContent,Lt=He?St(st,{language:He,ignoreIllegals:!0}):Mr(st);se.innerHTML=Lt.value,se.dataset.highlighted="yes",xa(se,He,Lt.language),se.result={language:Lt.language,re:Lt.relevance,relevance:Lt.relevance},Lt.secondBest&&(se.secondBest={language:Lt.secondBest.language,relevance:Lt.secondBest.relevance}),Vi("after:highlightElement",{el:se,result:Lt,text:st})}function an(se){me=fo(me,se)}const ri=()=>{Dr(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Fl(){Dr(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ho=!1;function Dr(){function se(){Dr()}if(document.readyState==="loading"){ho||window.addEventListener("DOMContentLoaded",se,!1),ho=!0;return}document.querySelectorAll(me.cssSelector).forEach(Dt)}function mo(se,Se){let He=null;try{He=Se(D)}catch(st){if(kt("Language definition for '{}' could not be registered.".replace("{}",se)),xt)kt(st);else throw st;He=ye}He.name||(He.name=se),J[se]=He,He.rawDefinition=Se.bind(null,D),He.aliases&&La(He.aliases,{languageName:se})}function Qi(se){delete J[se];for(const Se of Object.keys(he))he[Se]===se&&delete he[Se]}function ql(){return Object.keys(J)}function dn(se){return se=(se||"").toLowerCase(),J[se]||J[he[se]]}function La(se,{languageName:Se}){typeof se=="string"&&(se=[se]),se.forEach(He=>{he[He.toLowerCase()]=Se})}function li(se){const Se=dn(se);return Se&&!Se.disableAutodetect}function si(se){se["before:highlightBlock"]&&!se["before:highlightElement"]&&(se["before:highlightElement"]=Se=>{se["before:highlightBlock"](Object.assign({block:Se.el},Se))}),se["after:highlightBlock"]&&!se["after:highlightElement"]&&(se["after:highlightElement"]=Se=>{se["after:highlightBlock"](Object.assign({block:Se.el},Se))})}function Ut(se){si(se),Me.push(se)}function po(se){const Se=Me.indexOf(se);Se!==-1&&Me.splice(Se,1)}function Vi(se,Se){const He=se;Me.forEach(function(st){st[He]&&st[He](Se)})}function za(se){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),Dt(se)}Object.assign(D,{highlight:St,highlightAuto:Mr,highlightAll:Dr,highlightElement:Dt,highlightBlock:za,configure:an,initHighlighting:ri,initHighlightingOnLoad:Fl,registerLanguage:mo,unregisterLanguage:Qi,listLanguages:ql,getLanguage:dn,registerAliases:La,autoDetection:li,inherit:fo,addPlugin:Ut,removePlugin:po}),D.debugMode=function(){xt=!1},D.safeMode=function(){xt=!0},D.versionString=lt,D.regex={concat:w,lookahead:E,either:N,optional:S,anyNumberOfTimes:x};for(const se in Gt)typeof Gt[se]=="object"&&e(Gt[se]);return Object.assign(D,Gt),D},bn=Yi({});return bn.newInstance=()=>Yi({}),qd=bn,bn.HighlightJS=bn,bn.default=bn,qd}var qD=FD();const PD=vh(qD),pv={},GD="hljs-";function KD(e){const a=PD.newInstance();return e&&c(e),{highlight:i,highlightAuto:l,listLanguages:o,register:c,registerAlias:u,registered:d};function i(p,h,b){const g=b||pv,E=typeof g.prefix=="string"?g.prefix:GD;if(!a.getLanguage(p))throw new Error("Unknown language: `"+p+"` is not registered");a.configure({__emitter:$D,classPrefix:E});const x=a.highlight(h,{ignoreIllegals:!0,language:p});if(x.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:x.errorRaised});const S=x._emitter.root,w=S.data;return w.language=x.language,w.relevance=x.relevance,S}function l(p,h){const g=(h||pv).subset||o();let E=-1,x=0,S;for(;++E<g.length;){const w=g[E];if(!a.getLanguage(w))continue;const T=i(w,p,h);T.data&&T.data.relevance!==void 0&&T.data.relevance>x&&(x=T.data.relevance,S=T)}return S||{type:"root",children:[],data:{language:void 0,relevance:x}}}function o(){return a.listLanguages()}function c(p,h){if(typeof p=="string")a.registerLanguage(p,h);else{let b;for(b in p)Object.hasOwn(p,b)&&a.registerLanguage(b,p[b])}}function u(p,h){if(typeof p=="string")a.registerAliases(typeof h=="string"?h:[...h],{languageName:p});else{let b;for(b in p)if(Object.hasOwn(p,b)){const g=p[b];a.registerAliases(typeof g=="string"?g:[...g],{languageName:b})}}}function d(p){return!!a.getLanguage(p)}}class $D{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const i=this.stack[this.stack.length-1],l=i.children[i.children.length-1];l&&l.type==="text"?l.value+=a:i.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,i){const l=this.stack[this.stack.length-1],o=a.root.children;i?l.children.push({type:"element",tagName:"span",properties:{className:[i]},children:o}):l.children.push(...o)}openNode(a){const i=this,l=a.split(".").map(function(u,d){return d?u+"_".repeat(d):i.options.classPrefix+u}),o=this.stack[this.stack.length-1],c={type:"element",tagName:"span",properties:{className:l},children:[]};o.children.push(c),this.stack.push(c)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const YD={};function lm(e){const a=e||YD,i=a.aliases,l=a.detect||!1,o=a.languages||HD,c=a.plainText,u=a.prefix,d=a.subset;let p="hljs";const h=KD(o);if(i&&h.registerAlias(i),u){const b=u.indexOf("-");p=b===-1?u:u.slice(0,b)}return function(b,g){cu(b,"element",function(E,x,S){if(E.tagName!=="code"||!S||S.type!=="element"||S.tagName!=="pre")return;const w=QD(E);if(w===!1||!w&&!l||w&&c&&c.includes(w))return;Array.isArray(E.properties.className)||(E.properties.className=[]),E.properties.className.includes(p)||E.properties.className.unshift(p);const T=h2(E,{whitespace:"pre"});let N;try{N=w?h.highlight(w,T,{prefix:u}):h.highlightAuto(T,{prefix:u,subset:d})}catch(z){const M=z;if(w&&/Unknown language/.test(M.message)){g.message("Cannot highlight as `"+w+"`, it’s not registered",{ancestors:[S,E],cause:M,place:E.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw M}!w&&N.data&&N.data.language&&E.properties.className.push("language-"+N.data.language),N.children.length>0&&(E.children=N.children)})}}function QD(e){const a=e.properties.className;let i=-1;if(!Array.isArray(a))return;let l;for(;++i<a.length;){const o=String(a[i]);if(o==="no-highlight"||o==="nohighlight")return!1;!l&&o.slice(0,5)==="lang-"&&(l=o.slice(5)),!l&&o.slice(0,9)==="language-"&&(l=o.slice(9))}return l}function VD({name:e,projects:a,onClose:i,onChange:l}){const{confirm:o}=lo(),{data:c,isLoading:u,isError:d,error:p,refetch:h}=tn({queryKey:["skill",e],queryFn:()=>Mk(e)});B.useEffect(()=>{const w=T=>{T.key==="Escape"&&i()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[i]);const b=async w=>{await Lk(e,w),h(),l()},g=async w=>{await o({title:`从 ${w} 移除 ${e}`,body:"skill 链接会被解除,项目后续运行时将无法使用该 skill。",confirm:"移除",danger:!0})&&(await zk(e,w),h(),l())},E=async w=>{await Ik(e,w),h(),l()},x=async w=>{await o({title:`解冻 ${e} @ ${w}`,body:"本地对这个 skill 的改动会被覆盖,回到最新共享版本。",confirm:"解冻",danger:!0})&&(await Uk(e,w),h(),l())},S=new Map(((c==null?void 0:c.linkedProjects)??[]).map(w=>[w.project,w.state]));return y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:i,children:y.jsxs("div",{onClick:w=>w.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[y.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:e}),c&&y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[c.category," · ",c.origin||"local"]})]}),y.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:y.jsx(ux,{size:16,strokeWidth:3})})]}),u&&y.jsx("p",{children:"加载中…"}),d&&y.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",p instanceof Error?p.message:String(p)]}),c&&y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[a.map(w=>{const T=S.get(w);return y.jsxs("div",{className:"flex items-center justify-between gap-3 p-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:w}),T==="linked"&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),T==="frozen"&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!T&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),y.jsxs("div",{className:"flex gap-2",children:[!T&&y.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>b(w),type:"button",children:[y.jsx(aN,{size:11})," link"]}),T==="linked"&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>E(w),type:"button",children:[y.jsx(xN,{size:11})," freeze"]}),y.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>g(w),type:"button",children:"unlink"})]}),T==="frozen"&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>x(w),type:"button",children:[y.jsx(Kw,{size:11})," unfreeze"]}),y.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>g(w),type:"button",children:"unlink"})]})]})]},w)}),a.length===0&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),y.jsx("div",{className:"prose-chat bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-80 overflow-auto text-sm",children:c.body?y.jsx(Jh,{remarkPlugins:[am],rehypePlugins:[lm],children:c.body}):y.jsx("p",{className:"text-[var(--color-text-muted)] italic",children:"(empty)"})})]}),c.references.length>0&&y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),y.jsx("ul",{className:"flex flex-col gap-2",children:c.references.map(w=>y.jsx(XD,{skillName:e,file:w.name,lines:w.lines},w.name))})]})]})]})})}function XD({skillName:e,file:a,lines:i}){const[l,o]=B.useState(!1),{data:c,isLoading:u,isError:d,error:p}=tn({queryKey:["skill-ref",e,a],queryFn:()=>Dk(e,a),enabled:l,staleTime:1/0});return y.jsxs("li",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[y.jsxs("button",{type:"button",onClick:()=>o(h=>!h),"aria-label":`${l?"收起":"展开"} ${a}`,"aria-expanded":l,className:"w-full flex items-center gap-2 px-3 py-2 text-sm font-[family-name:var(--font-mono)] hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx(lx,{size:12,strokeWidth:3,className:["transition-transform",l?"rotate-90":""].join(" ")}),y.jsx(sx,{size:12,strokeWidth:2.5}),y.jsx("span",{className:"flex-1 text-left font-bold",children:a}),y.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[i," lines"]})]}),l&&y.jsxs("div",{className:"px-4 py-3 border-t-2 border-[var(--color-text)] bg-[var(--color-bg)] max-h-96 overflow-auto",children:[u&&y.jsx("p",{className:"text-xs text-[var(--color-text-muted)]",children:"加载中…"}),d&&y.jsxs("p",{className:"text-xs text-[var(--color-crashed)]",children:["加载失败: ",p instanceof Error?p.message:String(p)]}),c&&y.jsx("div",{className:"prose-chat text-sm",children:y.jsx(Jh,{remarkPlugins:[am],rehypePlugins:[lm],children:c.content})})]})]})}const ZD=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],WD={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function JD(){var E;const[e,a]=B.useState("all"),[i,l]=B.useState(""),[o,c]=B.useState(null),u=Ml(),{data:d,isLoading:p}=tn({queryKey:["skills"],queryFn:()=>Ok()}),h=tn({queryKey:["projects"],queryFn:au}),b=B.useMemo(()=>((d==null?void 0:d.data)??[]).filter(S=>!(e!=="all"&&S.category!==e||i&&!S.name.toLowerCase().includes(i.toLowerCase()))),[d,e,i]),g=B.useMemo(()=>{const x=(d==null?void 0:d.data)??[],S={all:x.length};for(const w of x)S[w.category]=(S[w.category]??0)+1;return S},[d]);return y.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:p?"加载中…":`${(d==null?void 0:d.data.length)??0} 个 user-level skill`})]}),y.jsx("div",{className:"flex gap-3 items-center",children:y.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await Bk(),u.invalidateQueries({queryKey:["skills"]})},type:"button",children:[y.jsx(ox,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Uh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:i,onChange:x=>l(x.target.value),"aria-label":"搜索 skill"})]}),y.jsx("div",{className:"flex gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:ZD.map(x=>y.jsxs("button",{type:"button",onClick:()=>a(x.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",e===x.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[x.label," ",g[x.value]]},x.value))})]}),y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:b.map(x=>{var S;return y.jsx(eL,{skill:x,projectCount:((S=h.data)==null?void 0:S.data.length)??0,onOpen:()=>c(x.name)},x.name)})}),o&&y.jsx(VD,{name:o,projects:((E=h.data)==null?void 0:E.data.map(x=>x.name))??[],onClose:()=>c(null),onChange:()=>u.invalidateQueries({queryKey:["skills"]})})]})}function eL({skill:e,projectCount:a,onOpen:i}){const l=WD[e.category];return y.jsxs("article",{onClick:i,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),i())},tabIndex:0,role:"button","aria-label":`Open ${e.name}`,className:"nb-card nb-card-interactive flex flex-col gap-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:e.name}),y.jsx("span",{className:"nb-badge text-[10px]",style:{background:l},children:e.category})]}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:e.description||"(no description)"}),y.jsxs("div",{className:"flex items-center justify-between text-xs font-[family-name:var(--font-mono)] pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[y.jsx("span",{className:"font-bold",children:e.linkedProjects.length>0?`● linked in ${e.linkedProjects.length}`:"○ not linked"}),y.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[a," projects"]})]})]})}function tL(){const e=tn({queryKey:["system-info"],queryFn:fx}),a=tn({queryKey:["system-env"],queryFn:IN}),i=tn({queryKey:["doctor"],queryFn:UN});return y.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[y.jsx("header",{children:y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),y.jsxs("section",{className:"nb-card",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"版本与运行时"}),e.data?y.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[y.jsx("dt",{className:"font-bold",children:"sps-cli"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.version}),y.jsx("dt",{className:"font-bold",children:"Node"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.nodeVersion}),y.jsx("dt",{className:"font-bold",children:"Platform"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.platform}),y.jsx("dt",{className:"font-bold",children:"PID"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.pid??"—"}),y.jsx("dt",{className:"font-bold",children:"Uptime"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:nL(e.data.uptimeMs)})]}):y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),y.jsxs("section",{className:"nb-card",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",y.jsx("code",{className:"text-sm font-[family-name:var(--font-mono)] font-normal bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"~/.coral/env"})]}),y.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:"敏感值脱敏"})]}),a.data&&a.data.exists?y.jsx("dl",{className:"grid grid-cols-[220px_1fr] gap-y-1 text-sm font-[family-name:var(--font-mono)]",children:a.data.entries.map(l=>y.jsxs("div",{className:"contents",children:[y.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[l.masked&&y.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),l.key]}),y.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:l.value})]},l.key))}):y.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:["env 文件不存在。运行 ",y.jsx("code",{className:"bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded font-[family-name:var(--font-mono)]",children:"sps setup"})," 配置。"]})]}),y.jsxs("section",{className:"nb-card",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),y.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>i.refetch(),type:"button",children:[y.jsx(ox,{size:12,strokeWidth:2.5}),"重跑"]})]}),i.data&&i.data.data.length>0?y.jsx("ul",{className:"flex flex-col gap-2",children:i.data.data.map(l=>y.jsxs("li",{className:"flex items-center gap-3 px-3 py-2 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[l.ok?y.jsx(Iw,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):y.jsx(Lw,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),y.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:l.project}),l.issues.length>0?y.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:l.issues.join("; ")}):y.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},l.project))}):y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function nL(e){const a=Math.floor(e/1e3),i=Math.floor(a/3600),l=Math.floor(a%3600/60),o=a%60;return i>0?`${i}h ${l}m ${o}s`:l>0?`${l}m ${o}s`:`${o}s`}function aL(){return Kn("/api/chat/sessions")}function iL(e){return Kn(`/api/chat/sessions/${e}`)}async function gv(e={}){const a=await fetch("/api/chat/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)throw new Error(`${a.status}: ${await a.text()}`);return await a.json()}async function rL(e){const a=await fetch(`/api/chat/sessions/${e}`,{method:"DELETE"});if(!a.ok)throw new Error(`${a.status}`)}async function lL(e,a){const i=await fetch(`/api/chat/sessions/${e}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:a})});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return await i.json()}function bv(){var N,z,M,H,K,L;const{sessionId:e}=k1(),a=eu(),i=Ml(),{confirm:l,alert:o}=lo(),c=tn({queryKey:["chat-sessions"],queryFn:aL}),u=tn({queryKey:["chat-session",e],queryFn:()=>iL(e??""),enabled:!!e}),[d,p]=B.useState(null),[h,b]=B.useState(""),[g,E]=B.useState(!1),x=B.useRef(null);B.useEffect(()=>{if(!e)return;const G=new EventSource(`/stream/chat/${encodeURIComponent(e)}`);return G.addEventListener("chat.message",X=>{try{const V=JSON.parse(X.data);i.setQueryData(["chat-session",e],C=>{if(!C||C.messages.some(ge=>ge.id===V.message.id))return C;const ie=C.messages.findIndex(ge=>ge.role==="user"&&ge.id.startsWith("optim-")&&ge.content===V.message.content);if(ie>=0){const ge=[...C.messages];return ge[ie]=V.message,{...C,messages:ge}}return{...C,messages:[...C.messages,V.message]}})}catch{}}),G.addEventListener("chat.message.pending",X=>{try{const V=JSON.parse(X.data);p({id:V.assistantId,blocks:[],done:!1,finalMessage:null})}catch{}}),G.addEventListener("chat.message.chunk.text",X=>{try{const V=JSON.parse(X.data);p(C=>{if(!C||C.id!==V.assistantId)return C;const ae=[...C.blocks],ie=ae[ae.length-1];return ie&&ie.type==="text"?ae[ae.length-1]={...ie,target:ie.target+V.text}:ae.push({type:"text",target:V.text,displayed:""}),{...C,blocks:ae}})}catch{}}),G.addEventListener("chat.message.chunk.tool_use",X=>{try{const V=JSON.parse(X.data);p(C=>!C||C.id!==V.assistantId?C:{...C,blocks:[...C.blocks,{type:"tool_use",id:V.id,title:V.title,kind:V.kind,status:V.status}]})}catch{}}),G.addEventListener("chat.message.chunk.tool_update",X=>{try{const V=JSON.parse(X.data);p(C=>!C||C.id!==V.assistantId?C:{...C,blocks:C.blocks.map(ae=>ae.type==="tool_use"&&ae.id===V.id?{...ae,status:V.status}:ae)})}catch{}}),G.addEventListener("chat.message.complete",X=>{try{const V=JSON.parse(X.data);p(C=>C&&C.id===V.assistantId?{...C,done:!0,finalMessage:V.message}:C)}catch{}}),()=>G.close()},[e,i]),B.useEffect(()=>{if(!d)return;const G=d.blocks.reduce((V,C)=>C.type==="text"?V+(C.target.length-C.displayed.length):V,0);if(G<=0){if(d.done&&d.finalMessage){const V=d.finalMessage;i.setQueryData(["chat-session",e],C=>!C||C.messages.some(ae=>ae.id===V.id)?C:{...C,messages:[...C.messages,V],lastMessageAt:V.ts,messageCount:C.messageCount+1}),i.invalidateQueries({queryKey:["chat-sessions"]}),p(null),E(!1)}return}const X=setTimeout(()=>{p(V=>{if(!V)return V;let C=Math.max(1,Math.ceil(G/40));const ae=V.blocks.map(ie=>{if(ie.type!=="text"||C<=0)return ie;const ge=ie.target.length-ie.displayed.length;if(ge<=0)return ie;const le=Math.min(ge,C);return C-=le,{...ie,displayed:ie.target.slice(0,ie.displayed.length+le)}});return{...V,blocks:ae}})},25);return()=>clearTimeout(X)},[d,i,e]),B.useEffect(()=>{const G=x.current;G&&(G.scrollTop=G.scrollHeight)},[u.data,d]);const S=B.useCallback(async()=>{const G=await gv();i.invalidateQueries({queryKey:["chat-sessions"]}),a(`/chat/${G.id}`)},[i,a]),w=B.useCallback(async()=>{const G=h.trim();if(!G||g)return;let X=e;if(!X){const C=await gv();i.invalidateQueries({queryKey:["chat-sessions"]}),X=C.id,a(`/chat/${X}`,{replace:!0})}const V={id:`optim-${Date.now()}`,role:"user",content:G,ts:new Date().toISOString(),status:"complete"};i.setQueryData(["chat-session",X],C=>C?{...C,messages:[...C.messages,V],lastMessageAt:V.ts,messageCount:C.messageCount+1}:{id:X,createdAt:V.ts,lastMessageAt:V.ts,title:G.slice(0,60),project:null,messageCount:1,messages:[V]}),b(""),E(!0);try{await lL(X,G)}catch(C){E(!1),console.error("sendMessage failed",C),o({title:"发送失败",body:C instanceof Error?C.message:String(C)})}},[h,g,e,i,a,o]),T=B.useCallback(async G=>{await l({title:"删除对话",body:"对话记录会永久删除,不可恢复。",confirm:"删除",danger:!0})&&(await rL(G),i.invalidateQueries({queryKey:["chat-sessions"]}),e===G&&a("/chat"))},[i,e,a,l]);return y.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[y.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[y.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:S,type:"button",children:[y.jsx(nu,{size:14,strokeWidth:3}),"新建对话"]}),y.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((N=c.data)==null?void 0:N.data.length)??0]}),y.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((z=c.data)==null?void 0:z.data)??[]).map(G=>y.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",e===G.id?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]":"hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)]"].join(" "),onClick:()=>a(`/chat/${G.id}`),onKeyDown:X=>{X.key==="Enter"&&a(`/chat/${G.id}`)},tabIndex:0,role:"button",children:[y.jsx(my,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("p",{className:"text-sm font-semibold truncate",children:G.title}),y.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[G.messageCount," msg · ",PE(G.lastMessageAt??G.createdAt)]})]}),y.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:X=>{X.stopPropagation(),T(G.id)},children:y.jsx(kN,{size:12})})]},G.id)),(((M=c.data)==null?void 0:M.data)??[]).length===0&&y.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),y.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:e?y.jsxs(y.Fragment,{children:[y.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((H=u.data)==null?void 0:H.title)??"新对话"}),y.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:e})]}),y.jsxs("div",{ref:x,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[(((K=u.data)==null?void 0:K.messages)??[]).map(G=>y.jsx(sL,{msg:G},G.id)),d&&y.jsx(oL,{pending:d}),!u.isLoading&&(((L=u.data)==null?void 0:L.messages)??[]).length===0&&!d&&!g&&y.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话 · Enter 发送 · Shift+Enter 换行"})]}),y.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:y.jsxs("div",{className:"flex gap-2 items-end",children:[y.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (Enter 发送,Shift+Enter 换行)",rows:2,value:h,onChange:G=>b(G.target.value),onKeyDown:G=>{G.key==="Enter"&&!G.shiftKey&&!G.nativeEvent.isComposing&&(G.preventDefault(),w())},"aria-label":"消息输入"}),y.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:w,disabled:!h.trim()||g,type:"button","aria-label":"发送",children:[g?y.jsx(Lh,{size:14,strokeWidth:3,className:"animate-spin"}):y.jsx(gN,{size:14,strokeWidth:3}),"发送"]})]})})]}):y.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:y.jsxs("div",{className:"text-center max-w-md",children:[y.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center mx-auto mb-4",children:y.jsx(my,{size:32,strokeWidth:2.5})}),y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:'点左上角"新建对话"开始一个 session。或直接在下方输入,会自动建 session。'}),y.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"Enter 发送 · Shift+Enter 换行 · 内容流式返回"})]})})})]})}function sL({msg:e}){const a=e.role==="user",i=e.role==="error",l=e.blocks&&e.blocks.length>0?e.blocks:[{type:"text",text:e.content}];return y.jsx("div",{className:a?"self-end max-w-3xl":"self-start max-w-3xl",children:y.jsxs("div",{className:["nb-card",a?"bg-[var(--color-secondary)]":i?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[y.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-2 flex items-center gap-2",children:[a?"你":i?"错误":"assistant",y.jsx("span",{className:"font-normal",children:"·"}),y.jsx("span",{className:"font-normal",children:PE(e.ts)})]}),y.jsx("div",{className:"flex flex-col gap-2",children:l.map((o,c)=>y.jsx(cL,{block:o},c))})]})})}function oL({pending:e}){const a=(()=>{for(let i=e.blocks.length-1;i>=0;i--)if(e.blocks[i].type==="text")return i;return-1})();return y.jsx("div",{className:"self-start max-w-3xl",children:y.jsxs("div",{className:"nb-card bg-[var(--color-bg)]",children:[y.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-2 flex items-center gap-2",children:["assistant",y.jsx("span",{className:"font-normal",children:"·"}),y.jsxs("span",{className:"flex items-center gap-1 font-normal text-[var(--color-running)]",children:[y.jsx(Lh,{size:10,strokeWidth:3,className:"animate-spin"}),"streaming"]})]}),y.jsxs("div",{className:"flex flex-col gap-2",children:[e.blocks.length===0&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"…"}),e.blocks.map((i,l)=>{if(i.type==="text"){const o=l===a;return y.jsxs("div",{className:"relative",children:[y.jsx(FE,{text:i.displayed}),o&&y.jsx("span",{className:"inline-block w-2 h-4 ml-1 bg-[var(--color-text)] animate-pulse align-middle"})]},l)}return y.jsx(qE,{tool:i},l)})]})]})})}function cL({block:e}){return e.type==="text"?y.jsx(FE,{text:e.text}):y.jsx(qE,{tool:e})}function FE({text:e}){return e?y.jsx("div",{className:"text-sm font-[family-name:var(--font-body)] break-words prose-chat",children:y.jsx(Jh,{remarkPlugins:[am],rehypePlugins:[lm],children:e})}):null}function qE({tool:e}){const[a,i]=B.useState(!1),l=e.status==="completed",o=e.status==="failed",c=!l&&!o;return y.jsxs("div",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[y.jsxs("button",{type:"button",onClick:()=>i(u=>!u),className:"w-full flex items-center gap-2 px-3 py-2 text-xs font-[family-name:var(--font-mono)] hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx(lx,{size:12,strokeWidth:3,className:["transition-transform",a?"rotate-90":""].join(" ")}),y.jsx(CN,{size:12,strokeWidth:2.5}),y.jsx("span",{className:"font-bold",children:e.kind}),y.jsx("span",{className:"flex-1 text-left text-[var(--color-text-muted)] truncate",children:e.title}),c&&y.jsx(Lh,{size:12,strokeWidth:3,className:"animate-spin text-[var(--color-running)]"}),l&&y.jsx(Bw,{size:12,strokeWidth:2.5,className:"text-[var(--color-running)]"}),o&&y.jsx(Hw,{size:12,strokeWidth:2.5,className:"text-[var(--color-crashed)]"})]}),a&&y.jsxs("div",{className:"px-3 py-2 text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] border-t-2 border-[var(--color-text)]",children:[y.jsxs("div",{children:["id: ",y.jsx("span",{className:"text-[var(--color-text)]",children:e.id})]}),y.jsxs("div",{children:["status: ",y.jsx("span",{className:"text-[var(--color-text)]",children:e.status})]})]})]})}function PE(e){if(!e)return"";const a=new Date(e),i=Date.now()-a.getTime();return i<6e4?"刚才":i<36e5?`${Math.floor(i/6e4)}m`:i<864e5?`${Math.floor(i/36e5)}h`:a.toLocaleDateString()}function uL(){return y.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),y.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),y.jsx(Il,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function fL(){return y.jsx(HN,{children:y.jsx(P1,{children:y.jsxs(na,{element:y.jsx(jN,{}),children:[y.jsx(na,{index:!0,element:y.jsx(H1,{to:"/board",replace:!0})}),y.jsx(na,{path:"/projects",element:y.jsx(FN,{})}),y.jsx(na,{path:"/board",element:y.jsx(pk,{})}),y.jsx(na,{path:"/workers",element:y.jsx(xk,{})}),y.jsx(na,{path:"/logs",element:y.jsx(Ak,{})}),y.jsx(na,{path:"/skills",element:y.jsx(JD,{})}),y.jsx(na,{path:"/system",element:y.jsx(tL,{})}),y.jsx(na,{path:"/chat",element:y.jsx(bv,{})}),y.jsx(na,{path:"/chat/:sessionId",element:y.jsx(bv,{})}),y.jsx(na,{path:"*",element:y.jsx(uL,{})})]})})})}const dL=new CS({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),GE=document.getElementById("root");if(!GE)throw new Error("#root not found");iS.createRoot(GE).render(y.jsx(B.StrictMode,{children:y.jsx(RS,{client:dL,children:y.jsx(mw,{children:y.jsx(uk,{children:y.jsx(fL,{})})})})}));