@coralai/sps-cli 0.47.1 → 0.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/console-assets/assets/index-BR3iEolY.js +338 -0
- package/dist/console-assets/assets/index-lsG7ZrzD.css +10 -0
- package/dist/console-assets/index.html +2 -2
- package/dist/console-server/routes/logs.d.ts.map +1 -1
- package/dist/console-server/routes/logs.js +13 -1
- package/dist/console-server/routes/logs.js.map +1 -1
- package/dist/console-server/routes/system.d.ts.map +1 -1
- package/dist/console-server/routes/system.js +164 -2
- package/dist/console-server/routes/system.js.map +1 -1
- package/dist/console-server/routes/workers.d.ts.map +1 -1
- package/dist/console-server/routes/workers.js +71 -1
- package/dist/console-server/routes/workers.js.map +1 -1
- package/package.json +1 -1
- package/dist/console-assets/assets/index-DinCCBGb.css +0 -10
- package/dist/console-assets/assets/index-Dz7dDRDM.js +0 -317
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
var w1=Object.defineProperty;var Wb=e=>{throw TypeError(e)};var N1=(e,a,i)=>a in e?w1(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i;var Jb=(e,a,i)=>N1(e,typeof a!="symbol"?a+"":a,i),Cd=(e,a,i)=>a.has(e)||Wb("Cannot "+i);var D=(e,a,i)=>(Cd(e,a,"read from private field"),i?i.call(e):a.get(e)),we=(e,a,i)=>a.has(e)?Wb("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(e):a.set(e,i),pe=(e,a,i,l)=>(Cd(e,a,"write to private field"),l?l.call(e,i):a.set(e,i),i),Ue=(e,a,i)=>(Cd(e,a,"access private method"),i);var Fc=(e,a,i,l)=>({set _(o){pe(e,a,o,i)},get _(){return D(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 zh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ad={exports:{}},Ks={};/**
|
|
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 ey;function k1(){if(ey)return Ks;ey=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 Ks.Fragment=a,Ks.jsx=i,Ks.jsxs=i,Ks}var ty;function T1(){return ty||(ty=1,Ad.exports=k1()),Ad.exports}var g=T1(),Rd={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 ny;function C1(){if(ny)return De;ny=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"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function E(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function N(M,X,k){this.props=M,this.context=X,this.refs=T,this.updater=k||_}N.prototype.isReactComponent={},N.prototype.setState=function(M,X){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,X,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function U(){}U.prototype=N.prototype;function z(M,X,k){this.props=M,this.context=X,this.refs=T,this.updater=k||_}var P=z.prototype=new U;P.constructor=z,w(P,N.prototype),P.isPureReactComponent=!0;var Z=Array.isArray;function A(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function ae(M,X,k){var he=k.ref;return{$$typeof:e,type:M,key:X,ref:he!==void 0?he:null,props:k}}function j(M,X){return ae(M.type,X,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Q(M){var X={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(k){return X[k]})}var oe=/\/+/g;function re(M,X){return typeof M=="object"&&M!==null&&M.key!=null?Q(""+M.key):X.toString(36)}function W(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(A,A):(M.status="pending",M.then(function(X){M.status==="pending"&&(M.status="fulfilled",M.value=X)},function(X){M.status==="pending"&&(M.status="rejected",M.reason=X)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function q(M,X,k,he,Ne){var xe=typeof M;(xe==="undefined"||xe==="boolean")&&(M=null);var Fe=!1;if(M===null)Fe=!0;else switch(xe){case"bigint":case"string":case"number":Fe=!0;break;case"object":switch(M.$$typeof){case e:case a:Fe=!0;break;case y:return Fe=M._init,q(Fe(M._payload),X,k,he,Ne)}}if(Fe)return Ne=Ne(M),Fe=he===""?"."+re(M,0):he,Z(Ne)?(k="",Fe!=null&&(k=Fe.replace(oe,"$&/")+"/"),q(Ne,X,k,"",function(Kt){return Kt})):Ne!=null&&(B(Ne)&&(Ne=j(Ne,k+(Ne.key==null||M&&M.key===Ne.key?"":(""+Ne.key).replace(oe,"$&/")+"/")+Fe)),X.push(Ne)),1;Fe=0;var rt=he===""?".":he+":";if(Z(M))for(var nt=0;nt<M.length;nt++)he=M[nt],xe=rt+re(he,nt),Fe+=q(he,X,k,xe,Ne);else if(nt=E(M),typeof nt=="function")for(M=nt.call(M),nt=0;!(he=M.next()).done;)he=he.value,xe=rt+re(he,nt++),Fe+=q(he,X,k,xe,Ne);else if(xe==="object"){if(typeof M.then=="function")return q(W(M),X,k,he,Ne);throw X=String(M),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Fe}function le(M,X,k){if(M==null)return M;var he=[],Ne=0;return q(M,he,"","",function(xe){return X.call(k,xe,Ne++)}),he}function ce(M){if(M._status===-1){var X=M._result;X=X(),X.then(function(k){(M._status===0||M._status===-1)&&(M._status=1,M._result=k)},function(k){(M._status===0||M._status===-1)&&(M._status=2,M._result=k)}),M._status===-1&&(M._status=0,M._result=X)}if(M._status===1)return M._result.default;throw M._result}var _e=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},C={map:le,forEach:function(M,X,k){le(M,function(){X.apply(this,arguments)},k)},count:function(M){var X=0;return le(M,function(){X++}),X},toArray:function(M){return le(M,function(X){return X})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return De.Activity=b,De.Children=C,De.Component=N,De.Fragment=i,De.Profiler=o,De.PureComponent=z,De.StrictMode=l,De.Suspense=m,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,De.__COMPILER_RUNTIME={__proto__:null,c:function(M){return V.H.useMemoCache(M)}},De.cache=function(M){return function(){return M.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(M,X,k){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var he=w({},M.props),Ne=M.key;if(X!=null)for(xe in X.key!==void 0&&(Ne=""+X.key),X)!H.call(X,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&X.ref===void 0||(he[xe]=X[xe]);var xe=arguments.length-2;if(xe===1)he.children=k;else if(1<xe){for(var Fe=Array(xe),rt=0;rt<xe;rt++)Fe[rt]=arguments[rt+2];he.children=Fe}return ae(M.type,Ne,he)},De.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:c,_context:M},M},De.createElement=function(M,X,k){var he,Ne={},xe=null;if(X!=null)for(he in X.key!==void 0&&(xe=""+X.key),X)H.call(X,he)&&he!=="key"&&he!=="__self"&&he!=="__source"&&(Ne[he]=X[he]);var Fe=arguments.length-2;if(Fe===1)Ne.children=k;else if(1<Fe){for(var rt=Array(Fe),nt=0;nt<Fe;nt++)rt[nt]=arguments[nt+2];Ne.children=rt}if(M&&M.defaultProps)for(he in Fe=M.defaultProps,Fe)Ne[he]===void 0&&(Ne[he]=Fe[he]);return ae(M,xe,Ne)},De.createRef=function(){return{current:null}},De.forwardRef=function(M){return{$$typeof:d,render:M}},De.isValidElement=B,De.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:ce}},De.memo=function(M,X){return{$$typeof:h,type:M,compare:X===void 0?null:X}},De.startTransition=function(M){var X=V.T,k={};V.T=k;try{var he=M(),Ne=V.S;Ne!==null&&Ne(k,he),typeof he=="object"&&he!==null&&typeof he.then=="function"&&he.then(A,_e)}catch(xe){_e(xe)}finally{X!==null&&k.types!==null&&(X.types=k.types),V.T=X}},De.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},De.use=function(M){return V.H.use(M)},De.useActionState=function(M,X,k){return V.H.useActionState(M,X,k)},De.useCallback=function(M,X){return V.H.useCallback(M,X)},De.useContext=function(M){return V.H.useContext(M)},De.useDebugValue=function(){},De.useDeferredValue=function(M,X){return V.H.useDeferredValue(M,X)},De.useEffect=function(M,X){return V.H.useEffect(M,X)},De.useEffectEvent=function(M){return V.H.useEffectEvent(M)},De.useId=function(){return V.H.useId()},De.useImperativeHandle=function(M,X,k){return V.H.useImperativeHandle(M,X,k)},De.useInsertionEffect=function(M,X){return V.H.useInsertionEffect(M,X)},De.useLayoutEffect=function(M,X){return V.H.useLayoutEffect(M,X)},De.useMemo=function(M,X){return V.H.useMemo(M,X)},De.useOptimistic=function(M,X){return V.H.useOptimistic(M,X)},De.useReducer=function(M,X,k){return V.H.useReducer(M,X,k)},De.useRef=function(M){return V.H.useRef(M)},De.useState=function(M){return V.H.useState(M)},De.useSyncExternalStore=function(M,X,k){return V.H.useSyncExternalStore(M,X,k)},De.useTransition=function(){return V.H.useTransition()},De.version="19.2.5",De}var ay;function jh(){return ay||(ay=1,Rd.exports=C1()),Rd.exports}var O=jh(),Od={exports:{}},Qs={},Md={exports:{}},Dd={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var iy;function A1(){return iy||(iy=1,(function(e){function a(q,le){var ce=q.length;q.push(le);e:for(;0<ce;){var _e=ce-1>>>1,C=q[_e];if(0<o(C,le))q[_e]=le,q[ce]=C,ce=_e;else break e}}function i(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var le=q[0],ce=q.pop();if(ce!==le){q[0]=ce;e:for(var _e=0,C=q.length,M=C>>>1;_e<M;){var X=2*(_e+1)-1,k=q[X],he=X+1,Ne=q[he];if(0>o(k,ce))he<C&&0>o(Ne,k)?(q[_e]=Ne,q[he]=ce,_e=he):(q[_e]=k,q[X]=ce,_e=X);else if(he<C&&0>o(Ne,ce))q[_e]=Ne,q[he]=ce,_e=he;else break e}}return le}function o(q,le){var ce=q.sortIndex-le.sortIndex;return ce!==0?ce:q.id-le.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 m=[],h=[],y=1,b=null,x=3,E=!1,_=!1,w=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function P(q){for(var le=i(h);le!==null;){if(le.callback===null)l(h);else if(le.startTime<=q)l(h),le.sortIndex=le.expirationTime,a(m,le);else break;le=i(h)}}function Z(q){if(w=!1,P(q),!_)if(i(m)!==null)_=!0,A||(A=!0,Q());else{var le=i(h);le!==null&&W(Z,le.startTime-q)}}var A=!1,V=-1,H=5,ae=-1;function j(){return T?!0:!(e.unstable_now()-ae<H)}function B(){if(T=!1,A){var q=e.unstable_now();ae=q;var le=!0;try{e:{_=!1,w&&(w=!1,U(V),V=-1),E=!0;var ce=x;try{t:{for(P(q),b=i(m);b!==null&&!(b.expirationTime>q&&j());){var _e=b.callback;if(typeof _e=="function"){b.callback=null,x=b.priorityLevel;var C=_e(b.expirationTime<=q);if(q=e.unstable_now(),typeof C=="function"){b.callback=C,P(q),le=!0;break t}b===i(m)&&l(m),P(q)}else l(m);b=i(m)}if(b!==null)le=!0;else{var M=i(h);M!==null&&W(Z,M.startTime-q),le=!1}}break e}finally{b=null,x=ce,E=!1}le=void 0}}finally{le?Q():A=!1}}}var Q;if(typeof z=="function")Q=function(){z(B)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,re=oe.port2;oe.port1.onmessage=B,Q=function(){re.postMessage(null)}}else Q=function(){N(B,0)};function W(q,le){V=N(function(){q(e.unstable_now())},le)}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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(q){switch(x){case 1:case 2:case 3:var le=3;break;default:le=x}var ce=x;x=le;try{return q()}finally{x=ce}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(q,le){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ce=x;x=q;try{return le()}finally{x=ce}},e.unstable_scheduleCallback=function(q,le,ce){var _e=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?_e+ce:_e):ce=_e,q){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ce+C,q={id:y++,callback:le,priorityLevel:q,startTime:ce,expirationTime:C,sortIndex:-1},ce>_e?(q.sortIndex=ce,a(h,q),i(m)===null&&q===i(h)&&(w?(U(V),V=-1):w=!0,W(Z,ce-_e))):(q.sortIndex=C,a(m,q),_||E||(_=!0,A||(A=!0,Q()))),q},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(q){var le=x;return function(){var ce=x;x=le;try{return q.apply(this,arguments)}finally{x=ce}}}})(Dd)),Dd}var ry;function R1(){return ry||(ry=1,Md.exports=A1()),Md.exports}var Ld={exports:{}},sn={};/**
|
|
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 ly;function O1(){if(ly)return sn;ly=1;var e=jh();function a(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; 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(m,h,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:m,containerInfo:h,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,sn.createPortal=function(m,h){var y=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(m,h,null,y)},sn.flushSync=function(m){var h=u.T,y=l.p;try{if(u.T=null,l.p=2,m)return m()}finally{u.T=h,l.p=y,l.d.f()}},sn.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(m,h))},sn.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},sn.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,b=d(y,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?l.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:E}):y==="script"&&l.d.X(m,{crossOrigin:b,integrity:x,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},sn.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);l.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(m)},sn.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,b=d(y,h.crossOrigin);l.d.L(m,y,{crossOrigin:b,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})}},sn.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=d(h.as,h.crossOrigin);l.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(m)},sn.requestFormReset=function(m){l.d.r(m)},sn.unstable_batchedUpdates=function(m,h){return m(h)},sn.useFormState=function(m,h,y){return u.H.useFormState(m,h,y)},sn.useFormStatus=function(){return u.H.useHostTransitionStatus()},sn.version="19.2.5",sn}var sy;function M1(){if(sy)return Ld.exports;sy=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(),Ld.exports=O1(),Ld.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 oy;function D1(){if(oy)return Qs;oy=1;var e=R1(),a=jh(),i=M1();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 m(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 p=f.alternate;if(p===null){if(s=f.return,s!==null){r=s;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===r)return m(f),t;if(p===s)return m(f),n;p=p.sibling}throw Error(l(188))}if(r.return!==s.return)r=f,s=p;else{for(var v=!1,S=f.child;S;){if(S===r){v=!0,r=f,s=p;break}if(S===s){v=!0,s=f,r=p;break}S=S.sibling}if(!v){for(S=p.child;S;){if(S===r){v=!0,r=p,s=f;break}if(S===s){v=!0,s=p,r=f;break}S=S.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 y(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=y(t),n!==null)return n;t=t.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),z=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=B&&t[B]||t["@@iterator"],typeof t=="function"?t:null)}var oe=Symbol.for("react.client.reference");function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===oe?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 Z:return"Suspense";case A:return"SuspenseList";case ae:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case _:return"Portal";case z:return t.displayName||"Context";case U:return(t._context.displayName||"Context")+".Consumer";case P:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case V:return n=t.displayName||null,n!==null?n:re(t.type)||"Memo";case H:n=t._payload,t=t._init;try{return re(t(n))}catch{}}return null}var W=Array.isArray,q=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},_e=[],C=-1;function M(t){return{current:t}}function X(t){0>C||(t.current=_e[C],_e[C]=null,C--)}function k(t,n){C++,_e[C]=t.current,t.current=n}var he=M(null),Ne=M(null),xe=M(null),Fe=M(null);function rt(t,n){switch(k(xe,n),k(Ne,t),k(he,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Eb(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Eb(n),t=_b(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(he),k(he,t)}function nt(){X(he),X(Ne),X(xe)}function Kt(t){t.memoizedState!==null&&k(Fe,t);var n=he.current,r=_b(n,t.type);n!==r&&(k(Ne,t),k(he,r))}function Dn(t){Ne.current===t&&(X(he),X(Ne)),Fe.current===t&&(X(Fe),qs._currentValue=ce)}var za,fi;function Ln(t){if(za===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);za=n&&n[1]||"",fi=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+za+t+fi}var va=!1;function Ve(t,n){if(!t||va)return"";va=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Y){var K=Y}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(Y){K=Y}t.call(ie.prototype)}}else{try{throw Error()}catch(Y){K=Y}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Y){if(Y&&K&&typeof Y.stack=="string")return[Y.stack,K.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 p=s.DetermineComponentFrameRoot(),v=p[0],S=p[1];if(v&&S){var R=v.split(`
|
|
44
|
+
`),G=S.split(`
|
|
45
|
+
`);for(f=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;f<G.length&&!G[f].includes("DetermineComponentFrameRoot");)f++;if(s===R.length||f===G.length)for(s=R.length-1,f=G.length-1;1<=s&&0<=f&&R[s]!==G[f];)f--;for(;1<=s&&0<=f;s--,f--)if(R[s]!==G[f]){if(s!==1||f!==1)do if(s--,f--,0>f||R[s]!==G[f]){var ee=`
|
|
46
|
+
`+R[s].replace(" at new "," at ");return t.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",t.displayName)),ee}while(1<=s&&0<=f);break}}}finally{va=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?Ln(r):""}function fa(t,n){switch(t.tag){case 26:case 27:case 5:return Ln(t.type);case 16:return Ln("Lazy");case 13:return t.child!==n&&n!==null?Ln("Suspense Fallback"):Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 15:return Ve(t.type,!1);case 11:return Ve(t.type.render,!1);case 1:return Ve(t.type,!0);case 31:return Ln("Activity");default:return""}}function Yn(t){try{var n="",r=null;do n+=fa(t,r),r=t,t=t.return;while(t);return n}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}var Ea=Object.prototype.hasOwnProperty,ja=e.unstable_scheduleCallback,tr=e.unstable_cancelCallback,Wl=e.unstable_shouldYield,Fr=e.unstable_requestPaint,Tt=e.unstable_now,Hr=e.unstable_getCurrentPriorityLevel,J=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,Ce=e.unstable_NormalPriority,He=e.unstable_LowPriority,Je=e.unstable_IdlePriority,fn=e.log,da=e.unstable_setDisableYieldValue,Zt=null,At=null;function an(t){if(typeof fn=="function"&&da(t),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Zt,t)}catch{}}var lt=Math.clz32?Math.clz32:wo,_a=Math.log,dn=Math.LN2;function wo(t){return t>>>=0,t===0?32:31-(_a(t)/dn|0)|0}var nr=256,qr=262144,ar=4194304;function xn(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 L(t,n,r){var s=t.pendingLanes;if(s===0)return 0;var f=0,p=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var S=s&134217727;return S!==0?(s=S&~p,s!==0?f=xn(s):(v&=S,v!==0?f=xn(v):r||(r=S&~t,r!==0&&(f=xn(r))))):(S=s&~p,S!==0?f=xn(S):v!==0?f=xn(v):r||(r=s&~t,r!==0&&(f=xn(r)))),f===0?0:n!==0&&n!==f&&(n&p)===0&&(p=f&-f,r=n&-n,p>=r||p===32&&(r&4194048)!==0)?n:f}function te(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function me(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=ar;return ar<<=1,(ar&62914560)===0&&(ar=4194304),t}function vt(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,p){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 S=t.entanglements,R=t.expirationTimes,G=t.hiddenUpdates;for(r=v&~r;0<r;){var ee=31-lt(r),ie=1<<ee;S[ee]=0,R[ee]=-1;var K=G[ee];if(K!==null)for(G[ee]=null,ee=0;ee<K.length;ee++){var Y=K[ee];Y!==null&&(Y.lane&=-536870913)}r&=~ie}s!==0&&ge(t,s,0),p!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=p&~(v&~n))}function ge(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 Dt(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 Ia(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pr(){var t=le.p;return t!==0?t:(t=window.event,t===void 0?32:Gb(t.type))}function $r(t,n){var r=le.p;try{return le.p=t,n()}finally{le.p=r}}var Sa=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Sa,rn="__reactProps$"+Sa,di="__reactContainer$"+Sa,Jl="__reactEvents$"+Sa,No="__reactListeners$"+Sa,Gr="__reactHandles$"+Sa,ko="__reactResources$"+Sa,ir="__reactMarker$"+Sa;function es(t){delete t[Lt],delete t[rn],delete t[Jl],delete t[No],delete t[Gr]}function hn(t){var n=t[Lt];if(n)return n;for(var r=t.parentNode;r;){if(n=r[di]||r[Lt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(t=Ab(t);t!==null;){if(r=t[Lt])return r;t=Ab(t)}return n}t=r,r=t.parentNode}return null}function Ua(t){if(t=t[Lt]||t[di]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function hi(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function mi(t){var n=t[ko];return n||(n=t[ko]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ut(t){t[ir]=!0}var To=new Set,rr={};function Ba(t,n){se(t,n),se(t+"Capture",n)}function se(t,n){for(rr[t]=n,t=0;t<n.length;t++)To.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]*$"),qe={},st={};function zt(t){return Ea.call(st,t)?!0:Ea.call(qe,t)?!1:Se.test(t)?st[t]=!0:(qe[t]=!0,!1)}function ln(t,n,r){if(zt(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 zn(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 vn(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 jn(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Co(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,p=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(v){r=""+v,p.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 Kr(t){if(!t._valueTracker){var n=jn(t)?"checked":"value";t._valueTracker=Co(t,n,""+t[n])}}function ts(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var r=n.getValue(),s="";return t&&(s=jn(t)?t.checked?"true":"false":t.value),t=s,t!==r?(n.setValue(t),!0):!1}function Qr(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 ku=/[\n"\\]/g;function En(t){return t.replace(ku,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ns(t,n,r,s,f,p,v,S){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?Yr(t,v,yt(n)):r!=null?Yr(t,v,yt(r)):s!=null&&t.removeAttribute("value"),f==null&&p!=null&&(t.defaultChecked=!!p),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+yt(S):t.removeAttribute("name")}function lr(t,n,r,s,f,p,v,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||r!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Kr(t);return}r=r!=null?""+yt(r):"",n=n!=null?""+yt(n):r,S||n===t.value||(t.value=n),t.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=S?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Kr(t)}function Yr(t,n,r){n==="number"&&Qr(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function Wt(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 Ao(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 Vr(t,n,r,s){if(n==null){if(s!=null){if(r!=null)throw Error(l(92));if(W(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),Kr(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 Ro=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||Ro.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 p in n)n.hasOwnProperty(p)&&Bt(t,p,n[p])}function pi(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 Fa=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"]]),as=/^[\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 gi(t){return as.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function de(){}var ve=null;function ze(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ke=null,Ct=null;function Vn(t){var n=Ua(t);if(n&&(t=n.stateNode)){var r=t[rn]||null;e:switch(t=n.stateNode,n.type){case"input":if(ns(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="'+En(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var s=r[n];if(s!==t&&s.form===t.form){var f=s[rn]||null;if(!f)throw Error(l(90));ns(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&&ts(s)}break e;case"textarea":Ao(t,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&Wt(t,!!r.multiple,n,!1)}}}var is=!1;function Oo(t,n,r){if(is)return t(n,r);is=!0;try{var s=t(n);return s}finally{if(is=!1,(Ke!==null||Ct!==null)&&(yc(),Ke&&(n=Ke,t=Ct,Ct=Ke=null,Vn(n),t)))for(n=0;n<t.length;n++)Vn(t[n])}}function rs(t,n){var r=t.stateNode;if(r===null)return null;var s=r[rn]||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 Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(Ha)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Tu=!1}var bi=null,Cu=null,Mo=null;function _m(){if(Mo)return Mo;var t,n=Cu,r=n.length,s,f="value"in bi?bi.value:bi.textContent,p=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[p-s];s++);return Mo=f.slice(t,1<s?1-s:void 0)}function Do(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 Lo(){return!0}function Sm(){return!1}function _n(t){function n(r,s,f,p,v){this._reactName=r,this._targetInst=f,this.type=s,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(r=t[S],this[S]=r?r(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Lo:Sm,this.isPropagationStopped=Sm,this}return b(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=Lo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),n}var sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zo=_n(sr),ss=b({},sr,{view:0,detail:0}),_0=_n(ss),Au,Ru,os,jo=b({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==os&&(os&&t.type==="mousemove"?(Au=t.screenX-os.screenX,Ru=t.screenY-os.screenY):Ru=Au=0,os=t),Au)},movementY:function(t){return"movementY"in t?t.movementY:Ru}}),wm=_n(jo),S0=b({},jo,{dataTransfer:0}),w0=_n(S0),N0=b({},ss,{relatedTarget:0}),Ou=_n(N0),k0=b({},sr,{animationName:0,elapsedTime:0,pseudoElement:0}),T0=_n(k0),C0=b({},sr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),A0=_n(C0),R0=b({},sr,{data:0}),Nm=_n(R0),O0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M0={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"},D0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L0(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=D0[t])?!!n[t]:!1}function Mu(){return L0}var z0=b({},ss,{key:function(t){if(t.key){var n=O0[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Do(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?M0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(t){return t.type==="keypress"?Do(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Do(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),j0=_n(z0),I0=b({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),km=_n(I0),U0=b({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),B0=_n(U0),F0=b({},sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),H0=_n(F0),q0=b({},jo,{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}),P0=_n(q0),$0=b({},sr,{newState:0,oldState:0}),G0=_n($0),K0=[9,13,27,32],Du=Ha&&"CompositionEvent"in window,cs=null;Ha&&"documentMode"in document&&(cs=document.documentMode);var Q0=Ha&&"TextEvent"in window&&!cs,Tm=Ha&&(!Du||cs&&8<cs&&11>=cs),Cm=" ",Am=!1;function Rm(t,n){switch(t){case"keyup":return K0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xr=!1;function Y0(t,n){switch(t){case"compositionend":return Om(n);case"keypress":return n.which!==32?null:(Am=!0,Cm);case"textInput":return t=n.data,t===Cm&&Am?null:t;default:return null}}function V0(t,n){if(Xr)return t==="compositionend"||!Du&&Rm(t,n)?(t=_m(),Mo=Cu=bi=null,Xr=!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 Tm&&n.locale!=="ko"?null:n.data;default:return null}}var X0={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 Mm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!X0[t.type]:n==="textarea"}function Dm(t,n,r,s){Ke?Ct?Ct.push(s):Ct=[s]:Ke=s,n=Nc(n,"onChange"),0<n.length&&(r=new zo("onChange","change",null,r,s),t.push({event:r,listeners:n}))}var us=null,fs=null;function Z0(t){pb(t,0)}function Io(t){var n=hi(t);if(ts(n))return t}function Lm(t,n){if(t==="change")return n}var zm=!1;if(Ha){var Lu;if(Ha){var zu="oninput"in document;if(!zu){var jm=document.createElement("div");jm.setAttribute("oninput","return;"),zu=typeof jm.oninput=="function"}Lu=zu}else Lu=!1;zm=Lu&&(!document.documentMode||9<document.documentMode)}function Im(){us&&(us.detachEvent("onpropertychange",Um),fs=us=null)}function Um(t){if(t.propertyName==="value"&&Io(fs)){var n=[];Dm(n,fs,t,ze(t)),Oo(Z0,n)}}function W0(t,n,r){t==="focusin"?(Im(),us=n,fs=r,us.attachEvent("onpropertychange",Um)):t==="focusout"&&Im()}function J0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Io(fs)}function e_(t,n){if(t==="click")return Io(n)}function t_(t,n){if(t==="input"||t==="change")return Io(n)}function n_(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var In=typeof Object.is=="function"?Object.is:n_;function ds(t,n){if(In(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(!Ea.call(n,f)||!In(t[f],n[f]))return!1}return!0}function Bm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fm(t,n){var r=Bm(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=Bm(r)}}function Hm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Hm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function qm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Qr(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=Qr(t.document)}return n}function ju(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 a_=Ha&&"documentMode"in document&&11>=document.documentMode,Zr=null,Iu=null,hs=null,Uu=!1;function Pm(t,n,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uu||Zr==null||Zr!==Qr(s)||(s=Zr,"selectionStart"in s&&ju(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}),hs&&ds(hs,s)||(hs=s,s=Nc(Iu,"onSelect"),0<s.length&&(n=new zo("onSelect","select",null,n,r),t.push({event:n,listeners:s}),n.target=Zr)))}function or(t,n){var r={};return r[t.toLowerCase()]=n.toLowerCase(),r["Webkit"+t]="webkit"+n,r["Moz"+t]="moz"+n,r}var Wr={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},Bu={},$m={};Ha&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function cr(t){if(Bu[t])return Bu[t];if(!Wr[t])return t;var n=Wr[t],r;for(r in n)if(n.hasOwnProperty(r)&&r in $m)return Bu[t]=n[r];return t}var Gm=cr("animationend"),Km=cr("animationiteration"),Qm=cr("animationstart"),i_=cr("transitionrun"),r_=cr("transitionstart"),l_=cr("transitioncancel"),Ym=cr("transitionend"),Vm=new Map,Fu="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(" ");Fu.push("scrollEnd");function ha(t,n){Vm.set(t,n),Ba(n,[t])}var Uo=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)},Xn=[],Jr=0,Hu=0;function Bo(){for(var t=Jr,n=Hu=Jr=0;n<t;){var r=Xn[n];Xn[n++]=null;var s=Xn[n];Xn[n++]=null;var f=Xn[n];Xn[n++]=null;var p=Xn[n];if(Xn[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}p!==0&&Xm(r,f,p)}}function Fo(t,n,r,s){Xn[Jr++]=t,Xn[Jr++]=n,Xn[Jr++]=r,Xn[Jr++]=s,Hu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function qu(t,n,r,s){return Fo(t,n,r,s),Ho(t)}function ur(t,n){return Fo(t,null,null,n),Ho(t)}function Xm(t,n,r){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r);for(var f=!1,p=t.return;p!==null;)p.childLanes|=r,s=p.alternate,s!==null&&(s.childLanes|=r),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(f=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,f&&n!==null&&(f=31-lt(r),t=p.hiddenUpdates,s=t[f],s===null?t[f]=[n]:s.push(n),n.lane=r|536870912),p):null}function Ho(t){if(50<zs)throw zs=0,Wf=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var el={};function s_(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 Un(t,n,r,s){return new s_(t,n,r,s)}function Pu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function qa(t,n){var r=t.alternate;return r===null?(r=Un(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 Zm(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 qo(t,n,r,s,f,p){var v=0;if(s=t,typeof t=="function")Pu(t)&&(v=1);else if(typeof t=="string")v=d1(t,r,he.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ae:return t=Un(31,r,n,f),t.elementType=ae,t.lanes=p,t;case w:return fr(r.children,f,p,n);case T:v=8,f|=24;break;case N:return t=Un(12,r,n,f|2),t.elementType=N,t.lanes=p,t;case Z:return t=Un(13,r,n,f),t.elementType=Z,t.lanes=p,t;case A:return t=Un(19,r,n,f),t.elementType=A,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:v=10;break e;case U:v=9;break e;case P:v=11;break e;case V:v=14;break e;case H:v=16,s=null;break e}v=29,r=Error(l(130,t===null?"null":typeof t,"")),s=null}return n=Un(v,r,n,f),n.elementType=t,n.type=s,n.lanes=p,n}function fr(t,n,r,s){return t=Un(7,t,s,n),t.lanes=r,t}function $u(t,n,r){return t=Un(6,t,null,n),t.lanes=r,t}function Wm(t){var n=Un(18,null,null,0);return n.stateNode=t,n}function Gu(t,n,r){return n=Un(4,t.children!==null?t.children:[],t.key,n),n.lanes=r,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Jm=new WeakMap;function Zn(t,n){if(typeof t=="object"&&t!==null){var r=Jm.get(t);return r!==void 0?r:(n={value:t,source:n,stack:Yn(n)},Jm.set(t,n),n)}return{value:t,source:n,stack:Yn(n)}}var tl=[],nl=0,Po=null,ms=0,Wn=[],Jn=0,yi=null,wa=1,Na="";function Pa(t,n){tl[nl++]=ms,tl[nl++]=Po,Po=t,ms=n}function ep(t,n,r){Wn[Jn++]=wa,Wn[Jn++]=Na,Wn[Jn++]=yi,yi=t;var s=wa;t=Na;var f=32-lt(s)-1;s&=~(1<<f),r+=1;var p=32-lt(n)+f;if(30<p){var v=f-f%5;p=(s&(1<<v)-1).toString(32),s>>=v,f-=v,wa=1<<32-lt(n)+f|r<<f|s,Na=p+t}else wa=1<<p|r<<f|s,Na=t}function Ku(t){t.return!==null&&(Pa(t,1),ep(t,1,0))}function Qu(t){for(;t===Po;)Po=tl[--nl],tl[nl]=null,ms=tl[--nl],tl[nl]=null;for(;t===yi;)yi=Wn[--Jn],Wn[Jn]=null,Na=Wn[--Jn],Wn[Jn]=null,wa=Wn[--Jn],Wn[Jn]=null}function tp(t,n){Wn[Jn++]=wa,Wn[Jn++]=Na,Wn[Jn++]=yi,wa=n.id,Na=n.overflow,yi=t}var Jt=null,Et=null,Xe=!1,xi=null,ea=!1,Yu=Error(l(519));function vi(t){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ps(Zn(n,t)),Yu}function np(t){var n=t.stateNode,r=t.type,s=t.memoizedProps;switch(n[Lt]=t,n[rn]=s,r){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(r=0;r<Is.length;r++)$e(Is[r],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":$e("invalid",n),lr(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":$e("invalid",n);break;case"textarea":$e("invalid",n),Vr(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||xb(n.textContent,r)?(s.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),s.onScroll!=null&&$e("scroll",n),s.onScrollEnd!=null&&$e("scrollend",n),s.onClick!=null&&(n.onclick=de),n=!0):n=!1,n||vi(t,!0)}function ap(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Jt=Jt.return}}function al(t){if(t!==Jt)return!1;if(!Xe)return ap(t),Xe=!0,!1;var n=t.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=t.type,r=!(r!=="form"&&r!=="button")||hd(t.type,t.memoizedProps)),r=!r),r&&Et&&vi(t),ap(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=Cb(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=Cb(t)}else n===27?(n=Et,Li(t.type)?(t=yd,yd=null,Et=t):Et=n):Et=Jt?na(t.stateNode.nextSibling):null;return!0}function dr(){Et=Jt=null,Xe=!1}function Vu(){var t=xi;return t!==null&&(kn===null?kn=t:kn.push.apply(kn,t),xi=null),t}function ps(t){xi===null?xi=[t]:xi.push(t)}var Xu=M(null),hr=null,$a=null;function Ei(t,n,r){k(Xu,n._currentValue),n._currentValue=r}function Ga(t){t._currentValue=Xu.current,X(Xu)}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 Wu(t,n,r,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var p=f.dependencies;if(p!==null){var v=f.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=f;for(var R=0;R<n.length;R++)if(S.context===n[R]){p.lanes|=r,S=p.alternate,S!==null&&(S.lanes|=r),Zu(p.return,r,t),s||(v=null);break e}p=S.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(l(341));v.lanes|=r,p=v.alternate,p!==null&&(p.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 il(t,n,r,s){t=null;for(var f=n,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!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 S=f.type;In(f.pendingProps.value,v.value)||(t!==null?t.push(S):t=[S])}}else if(f===Fe.current){if(v=f.alternate,v===null)throw Error(l(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(qs):t=[qs])}f=f.return}t!==null&&Wu(n,t,r,s),n.flags|=262144}function $o(t){for(t=t.firstContext;t!==null;){if(!In(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function mr(t){hr=t,$a=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function en(t){return ip(hr,t)}function Go(t,n){return hr===null&&mr(t),ip(t,n)}function ip(t,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},$a===null){if(t===null)throw Error(l(308));$a=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else $a=$a.next=n;return r}var o_=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()})}},c_=e.unstable_scheduleCallback,u_=e.unstable_NormalPriority,Ft={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ju(){return{controller:new o_,data:new Map,refCount:0}}function gs(t){t.refCount--,t.refCount===0&&c_(u_,function(){t.controller.abort()})}var bs=null,ef=0,rl=0,ll=null;function f_(t,n){if(bs===null){var r=bs=[];ef=0,rl=id(),ll={status:"pending",value:void 0,then:function(s){r.push(s)}}}return ef++,n.then(rp,rp),n}function rp(){if(--ef===0&&bs!==null){ll!==null&&(ll.status="fulfilled");var t=bs;bs=null,rl=0,ll=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function d_(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 lp=q.S;q.S=function(t,n){Pg=Tt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&f_(t,n),lp!==null&&lp(t,n)};var pr=M(null);function tf(){var t=pr.current;return t!==null?t:gt.pooledCache}function Ko(t,n){n===null?k(pr,pr.current):k(pr,n.pool)}function sp(){var t=tf();return t===null?null:{parent:Ft._currentValue,pool:t}}var sl=Error(l(460)),nf=Error(l(474)),Qo=Error(l(542)),Yo={then:function(){}};function op(t){return t=t.status,t==="fulfilled"||t==="rejected"}function cp(t,n,r){switch(r=t[r],r===void 0?t.push(n):r!==n&&(n.then(de,de),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,fp(t),t;default:if(typeof n.status=="string")n.then(de,de);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,fp(t),t}throw br=n,sl}}function gr(t){try{var n=t._init;return n(t._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(br=r,sl):r}}var br=null;function up(){if(br===null)throw Error(l(459));var t=br;return br=null,t}function fp(t){if(t===sl||t===Qo)throw Error(l(483))}var ol=null,ys=0;function Vo(t){var n=ys;return ys+=1,ol===null&&(ol=[]),cp(ol,t,n)}function xs(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Xo(t,n){throw n.$$typeof===x?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function dp(t){function n(F,I){if(t){var $=F.deletions;$===null?(F.deletions=[I],F.flags|=16):$.push(I)}}function r(F,I){if(!t)return null;for(;I!==null;)n(F,I),I=I.sibling;return null}function s(F){for(var I=new Map;F!==null;)F.key!==null?I.set(F.key,F):I.set(F.index,F),F=F.sibling;return I}function f(F,I){return F=qa(F,I),F.index=0,F.sibling=null,F}function p(F,I,$){return F.index=$,t?($=F.alternate,$!==null?($=$.index,$<I?(F.flags|=67108866,I):$):(F.flags|=67108866,I)):(F.flags|=1048576,I)}function v(F){return t&&F.alternate===null&&(F.flags|=67108866),F}function S(F,I,$,ne){return I===null||I.tag!==6?(I=$u($,F.mode,ne),I.return=F,I):(I=f(I,$),I.return=F,I)}function R(F,I,$,ne){var ke=$.type;return ke===w?ee(F,I,$.props.children,ne,$.key):I!==null&&(I.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===H&&gr(ke)===I.type)?(I=f(I,$.props),xs(I,$),I.return=F,I):(I=qo($.type,$.key,$.props,null,F.mode,ne),xs(I,$),I.return=F,I)}function G(F,I,$,ne){return I===null||I.tag!==4||I.stateNode.containerInfo!==$.containerInfo||I.stateNode.implementation!==$.implementation?(I=Gu($,F.mode,ne),I.return=F,I):(I=f(I,$.children||[]),I.return=F,I)}function ee(F,I,$,ne,ke){return I===null||I.tag!==7?(I=fr($,F.mode,ne,ke),I.return=F,I):(I=f(I,$),I.return=F,I)}function ie(F,I,$){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=$u(""+I,F.mode,$),I.return=F,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case E:return $=qo(I.type,I.key,I.props,null,F.mode,$),xs($,I),$.return=F,$;case _:return I=Gu(I,F.mode,$),I.return=F,I;case H:return I=gr(I),ie(F,I,$)}if(W(I)||Q(I))return I=fr(I,F.mode,$,null),I.return=F,I;if(typeof I.then=="function")return ie(F,Vo(I),$);if(I.$$typeof===z)return ie(F,Go(F,I),$);Xo(F,I)}return null}function K(F,I,$,ne){var ke=I!==null?I.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ke!==null?null:S(F,I,""+$,ne);if(typeof $=="object"&&$!==null){switch($.$$typeof){case E:return $.key===ke?R(F,I,$,ne):null;case _:return $.key===ke?G(F,I,$,ne):null;case H:return $=gr($),K(F,I,$,ne)}if(W($)||Q($))return ke!==null?null:ee(F,I,$,ne,null);if(typeof $.then=="function")return K(F,I,Vo($),ne);if($.$$typeof===z)return K(F,I,Go(F,$),ne);Xo(F,$)}return null}function Y(F,I,$,ne,ke){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return F=F.get($)||null,S(I,F,""+ne,ke);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case E:return F=F.get(ne.key===null?$:ne.key)||null,R(I,F,ne,ke);case _:return F=F.get(ne.key===null?$:ne.key)||null,G(I,F,ne,ke);case H:return ne=gr(ne),Y(F,I,$,ne,ke)}if(W(ne)||Q(ne))return F=F.get($)||null,ee(I,F,ne,ke,null);if(typeof ne.then=="function")return Y(F,I,$,Vo(ne),ke);if(ne.$$typeof===z)return Y(F,I,$,Go(I,ne),ke);Xo(I,ne)}return null}function be(F,I,$,ne){for(var ke=null,et=null,Ee=I,Ie=I=0,Ye=null;Ee!==null&&Ie<$.length;Ie++){Ee.index>Ie?(Ye=Ee,Ee=null):Ye=Ee.sibling;var tt=K(F,Ee,$[Ie],ne);if(tt===null){Ee===null&&(Ee=Ye);break}t&&Ee&&tt.alternate===null&&n(F,Ee),I=p(tt,I,Ie),et===null?ke=tt:et.sibling=tt,et=tt,Ee=Ye}if(Ie===$.length)return r(F,Ee),Xe&&Pa(F,Ie),ke;if(Ee===null){for(;Ie<$.length;Ie++)Ee=ie(F,$[Ie],ne),Ee!==null&&(I=p(Ee,I,Ie),et===null?ke=Ee:et.sibling=Ee,et=Ee);return Xe&&Pa(F,Ie),ke}for(Ee=s(Ee);Ie<$.length;Ie++)Ye=Y(Ee,F,Ie,$[Ie],ne),Ye!==null&&(t&&Ye.alternate!==null&&Ee.delete(Ye.key===null?Ie:Ye.key),I=p(Ye,I,Ie),et===null?ke=Ye:et.sibling=Ye,et=Ye);return t&&Ee.forEach(function(Bi){return n(F,Bi)}),Xe&&Pa(F,Ie),ke}function Ae(F,I,$,ne){if($==null)throw Error(l(151));for(var ke=null,et=null,Ee=I,Ie=I=0,Ye=null,tt=$.next();Ee!==null&&!tt.done;Ie++,tt=$.next()){Ee.index>Ie?(Ye=Ee,Ee=null):Ye=Ee.sibling;var Bi=K(F,Ee,tt.value,ne);if(Bi===null){Ee===null&&(Ee=Ye);break}t&&Ee&&Bi.alternate===null&&n(F,Ee),I=p(Bi,I,Ie),et===null?ke=Bi:et.sibling=Bi,et=Bi,Ee=Ye}if(tt.done)return r(F,Ee),Xe&&Pa(F,Ie),ke;if(Ee===null){for(;!tt.done;Ie++,tt=$.next())tt=ie(F,tt.value,ne),tt!==null&&(I=p(tt,I,Ie),et===null?ke=tt:et.sibling=tt,et=tt);return Xe&&Pa(F,Ie),ke}for(Ee=s(Ee);!tt.done;Ie++,tt=$.next())tt=Y(Ee,F,Ie,tt.value,ne),tt!==null&&(t&&tt.alternate!==null&&Ee.delete(tt.key===null?Ie:tt.key),I=p(tt,I,Ie),et===null?ke=tt:et.sibling=tt,et=tt);return t&&Ee.forEach(function(S1){return n(F,S1)}),Xe&&Pa(F,Ie),ke}function ht(F,I,$,ne){if(typeof $=="object"&&$!==null&&$.type===w&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case E:e:{for(var ke=$.key;I!==null;){if(I.key===ke){if(ke=$.type,ke===w){if(I.tag===7){r(F,I.sibling),ne=f(I,$.props.children),ne.return=F,F=ne;break e}}else if(I.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===H&&gr(ke)===I.type){r(F,I.sibling),ne=f(I,$.props),xs(ne,$),ne.return=F,F=ne;break e}r(F,I);break}else n(F,I);I=I.sibling}$.type===w?(ne=fr($.props.children,F.mode,ne,$.key),ne.return=F,F=ne):(ne=qo($.type,$.key,$.props,null,F.mode,ne),xs(ne,$),ne.return=F,F=ne)}return v(F);case _:e:{for(ke=$.key;I!==null;){if(I.key===ke)if(I.tag===4&&I.stateNode.containerInfo===$.containerInfo&&I.stateNode.implementation===$.implementation){r(F,I.sibling),ne=f(I,$.children||[]),ne.return=F,F=ne;break e}else{r(F,I);break}else n(F,I);I=I.sibling}ne=Gu($,F.mode,ne),ne.return=F,F=ne}return v(F);case H:return $=gr($),ht(F,I,$,ne)}if(W($))return be(F,I,$,ne);if(Q($)){if(ke=Q($),typeof ke!="function")throw Error(l(150));return $=ke.call($),Ae(F,I,$,ne)}if(typeof $.then=="function")return ht(F,I,Vo($),ne);if($.$$typeof===z)return ht(F,I,Go(F,$),ne);Xo(F,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,I!==null&&I.tag===6?(r(F,I.sibling),ne=f(I,$),ne.return=F,F=ne):(r(F,I),ne=$u($,F.mode,ne),ne.return=F,F=ne),v(F)):r(F,I)}return function(F,I,$,ne){try{ys=0;var ke=ht(F,I,$,ne);return ol=null,ke}catch(Ee){if(Ee===sl||Ee===Qo)throw Ee;var et=Un(29,Ee,null,F.mode);return et.lanes=ne,et.return=F,et}finally{}}}var yr=dp(!0),hp=dp(!1),_i=!1;function af(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rf(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 Si(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wi(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=Ho(t),Xm(t,null,r),n}return Fo(t,s,n,r),Ho(t)}function vs(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 lf(t,n){var r=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var f=null,p=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};p===null?f=p=v:p=p.next=v,r=r.next}while(r!==null);p===null?f=p=n:p=p.next=n}else f=p=n;r={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:p,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 sf=!1;function Es(){if(sf){var t=ll;if(t!==null)throw t}}function _s(t,n,r,s){sf=!1;var f=t.updateQueue;_i=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var R=S,G=R.next;R.next=null,v===null?p=G:v.next=G,v=R;var ee=t.alternate;ee!==null&&(ee=ee.updateQueue,S=ee.lastBaseUpdate,S!==v&&(S===null?ee.firstBaseUpdate=G:S.next=G,ee.lastBaseUpdate=R))}if(p!==null){var ie=f.baseState;v=0,ee=G=R=null,S=p;do{var K=S.lane&-536870913,Y=K!==S.lane;if(Y?(Qe&K)===K:(s&K)===K){K!==0&&K===rl&&(sf=!0),ee!==null&&(ee=ee.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var be=t,Ae=S;K=n;var ht=r;switch(Ae.tag){case 1:if(be=Ae.payload,typeof be=="function"){ie=be.call(ht,ie,K);break e}ie=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ae.payload,K=typeof be=="function"?be.call(ht,ie,K):be,K==null)break e;ie=b({},ie,K);break e;case 2:_i=!0}}K=S.callback,K!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[K]:Y.push(K))}else Y={lane:K,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ee===null?(G=ee=Y,R=ie):ee=ee.next=Y,v|=K;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);ee===null&&(R=ie),f.baseState=R,f.firstBaseUpdate=G,f.lastBaseUpdate=ee,p===null&&(f.shared.lanes=0),Ai|=v,t.lanes=v,t.memoizedState=ie}}function mp(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function pp(t,n){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)mp(r[t],n)}var cl=M(null),Zo=M(0);function gp(t,n){t=ei,k(Zo,t),k(cl,n),ei=t|n.baseLanes}function of(){k(Zo,ei),k(cl,cl.current)}function cf(){ei=Zo.current,X(cl),X(Zo)}var Bn=M(null),ta=null;function Ni(t){var n=t.alternate;k(jt,jt.current&1),k(Bn,t),ta===null&&(n===null||cl.current!==null||n.memoizedState!==null)&&(ta=t)}function uf(t){k(jt,jt.current),k(Bn,t),ta===null&&(ta=t)}function bp(t){t.tag===22?(k(jt,jt.current),k(Bn,t),ta===null&&(ta=t)):ki()}function ki(){k(jt,jt.current),k(Bn,Bn.current)}function Fn(t){X(Bn),ta===t&&(ta=null),X(jt)}var jt=M(0);function Wo(t){for(var n=t;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||gd(r)||bd(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 Ka=0,je=null,ft=null,Ht=null,Jo=!1,ul=!1,xr=!1,ec=0,Ss=0,fl=null,h_=0;function Rt(){throw Error(l(321))}function ff(t,n){if(n===null)return!1;for(var r=0;r<n.length&&r<t.length;r++)if(!In(t[r],n[r]))return!1;return!0}function df(t,n,r,s,f,p){return Ka=p,je=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,q.H=t===null||t.memoizedState===null?eg:Tf,xr=!1,p=r(s,f),xr=!1,ul&&(p=xp(n,r,s,f)),yp(t),p}function yp(t){q.H=ks;var n=ft!==null&&ft.next!==null;if(Ka=0,Ht=ft=je=null,Jo=!1,Ss=0,fl=null,n)throw Error(l(300));t===null||qt||(t=t.dependencies,t!==null&&$o(t)&&(qt=!0))}function xp(t,n,r,s){je=t;var f=0;do{if(ul&&(fl=null),Ss=0,ul=!1,25<=f)throw Error(l(301));if(f+=1,Ht=ft=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}q.H=tg,p=n(r,s)}while(ul);return p}function m_(){var t=q.H,n=t.useState()[0];return n=typeof n.then=="function"?ws(n):n,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(je.flags|=1024),n}function hf(){var t=ec!==0;return ec=0,t}function mf(t,n,r){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~r}function pf(t){if(Jo){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Jo=!1}Ka=0,Ht=ft=je=null,ul=!1,Ss=ec=0,fl=null}function mn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?je.memoizedState=Ht=t:Ht=Ht.next=t,Ht}function It(){if(ft===null){var t=je.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var n=Ht===null?je.memoizedState:Ht.next;if(n!==null)Ht=n,ft=t;else{if(t===null)throw je.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?je.memoizedState=Ht=t:Ht=Ht.next=t}return Ht}function tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ws(t){var n=Ss;return Ss+=1,fl===null&&(fl=[]),t=cp(fl,t,n),n=je,(Ht===null?n.memoizedState:Ht.next)===null&&(n=n.alternate,q.H=n===null||n.memoizedState===null?eg:Tf),t}function nc(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ws(t);if(t.$$typeof===z)return en(t)}throw Error(l(438,String(t)))}function gf(t){var n=null,r=je.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var s=je.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=tc(),je.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]=j;return n.index++,r}function Qa(t,n){return typeof n=="function"?n(t):n}function ac(t){var n=It();return bf(n,ft,t)}function bf(t,n,r){var s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=r;var f=t.baseQueue,p=s.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}n.baseQueue=f=p,s.pending=null}if(p=t.baseState,f===null)t.memoizedState=p;else{n=f.next;var S=v=null,R=null,G=n,ee=!1;do{var ie=G.lane&-536870913;if(ie!==G.lane?(Qe&ie)===ie:(Ka&ie)===ie){var K=G.revertLane;if(K===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ie===rl&&(ee=!0);else if((Ka&K)===K){G=G.next,K===rl&&(ee=!0);continue}else ie={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},R===null?(S=R=ie,v=p):R=R.next=ie,je.lanes|=K,Ai|=K;ie=G.action,xr&&r(p,ie),p=G.hasEagerState?G.eagerState:r(p,ie)}else K={lane:ie,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},R===null?(S=R=K,v=p):R=R.next=K,je.lanes|=ie,Ai|=ie;G=G.next}while(G!==null&&G!==n);if(R===null?v=p:R.next=S,!In(p,t.memoizedState)&&(qt=!0,ee&&(r=ll,r!==null)))throw r;t.memoizedState=p,t.baseState=v,t.baseQueue=R,s.lastRenderedState=p}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function yf(t){var n=It(),r=n.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=t;var s=r.dispatch,f=r.pending,p=n.memoizedState;if(f!==null){r.pending=null;var v=f=f.next;do p=t(p,v.action),v=v.next;while(v!==f);In(p,n.memoizedState)||(qt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),r.lastRenderedState=p}return[p,s]}function vp(t,n,r){var s=je,f=It(),p=Xe;if(p){if(r===void 0)throw Error(l(407));r=r()}else r=n();var v=!In((ft||f).memoizedState,r);if(v&&(f.memoizedState=r,qt=!0),f=f.queue,Ef(Sp.bind(null,s,f,t),[t]),f.getSnapshot!==n||v||Ht!==null&&Ht.memoizedState.tag&1){if(s.flags|=2048,dl(9,{destroy:void 0},_p.bind(null,s,f,r,n),null),gt===null)throw Error(l(349));p||(Ka&127)!==0||Ep(s,n,r)}return r}function Ep(t,n,r){t.flags|=16384,t={getSnapshot:n,value:r},n=je.updateQueue,n===null?(n=tc(),je.updateQueue=n,n.stores=[t]):(r=n.stores,r===null?n.stores=[t]:r.push(t))}function _p(t,n,r,s){n.value=r,n.getSnapshot=s,wp(n)&&Np(t)}function Sp(t,n,r){return r(function(){wp(n)&&Np(t)})}function wp(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!In(t,r)}catch{return!0}}function Np(t){var n=ur(t,2);n!==null&&Tn(n,t,2)}function xf(t){var n=mn();if(typeof t=="function"){var r=t;if(t=r(),xr){an(!0);try{r()}finally{an(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:t},n}function kp(t,n,r,s){return t.baseState=r,bf(t,ft,typeof s=="function"?s:Qa)}function p_(t,n,r,s,f){if(lc(t))throw Error(l(485));if(t=n.action,t!==null){var p={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};q.T!==null?r(!0):p.isTransition=!1,s(p),r=n.pending,r===null?(p.next=n.pending=p,Tp(n,p)):(p.next=r.next,n.pending=r.next=p)}}function Tp(t,n){var r=n.action,s=n.payload,f=t.state;if(n.isTransition){var p=q.T,v={};q.T=v;try{var S=r(f,s),R=q.S;R!==null&&R(v,S),Cp(t,n,S)}catch(G){vf(t,n,G)}finally{p!==null&&v.types!==null&&(p.types=v.types),q.T=p}}else try{p=r(f,s),Cp(t,n,p)}catch(G){vf(t,n,G)}}function Cp(t,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(s){Ap(t,n,s)},function(s){return vf(t,n,s)}):Ap(t,n,r)}function Ap(t,n,r){n.status="fulfilled",n.value=r,Rp(n),t.state=r,n=t.pending,n!==null&&(r=n.next,r===n?t.pending=null:(r=r.next,n.next=r,Tp(t,r)))}function vf(t,n,r){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=r,Rp(n),n=n.next;while(n!==s)}t.action=null}function Rp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Op(t,n){return n}function Mp(t,n){if(Xe){var r=gt.formState;if(r!==null){e:{var s=je;if(Xe){if(Et){t:{for(var f=Et,p=ea;f.nodeType!==8;){if(!p){f=null;break t}if(f=na(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Et=na(f.nextSibling),s=f.data==="F!";break e}}vi(s)}s=!1}s&&(n=r[0])}}return r=mn(),r.memoizedState=r.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Op,lastRenderedState:n},r.queue=s,r=Zp.bind(null,je,s),s.dispatch=r,s=xf(!1),p=kf.bind(null,je,!1,s.queue),s=mn(),f={state:n,dispatch:null,action:t,pending:null},s.queue=f,r=p_.bind(null,je,f,p,r),f.dispatch=r,s.memoizedState=t,[n,r,!1]}function Dp(t){var n=It();return Lp(n,ft,t)}function Lp(t,n,r){if(n=bf(t,n,Op)[0],t=ac(Qa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ws(n)}catch(v){throw v===sl?Qo:v}else s=n;n=It();var f=n.queue,p=f.dispatch;return r!==n.memoizedState&&(je.flags|=2048,dl(9,{destroy:void 0},g_.bind(null,f,r),null)),[s,p,t]}function g_(t,n){t.action=n}function zp(t){var n=It(),r=ft;if(r!==null)return Lp(n,r,t);It(),n=n.memoizedState,r=It();var s=r.queue.dispatch;return r.memoizedState=t,[n,s,!1]}function dl(t,n,r,s){return t={tag:t,create:r,deps:s,inst:n,next:null},n=je.updateQueue,n===null&&(n=tc(),je.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 jp(){return It().memoizedState}function ic(t,n,r,s){var f=mn();je.flags|=t,f.memoizedState=dl(1|n,{destroy:void 0},r,s===void 0?null:s)}function rc(t,n,r,s){var f=It();s=s===void 0?null:s;var p=f.memoizedState.inst;ft!==null&&s!==null&&ff(s,ft.memoizedState.deps)?f.memoizedState=dl(n,p,r,s):(je.flags|=t,f.memoizedState=dl(1|n,p,r,s))}function Ip(t,n){ic(8390656,8,t,n)}function Ef(t,n){rc(2048,8,t,n)}function b_(t){je.flags|=4;var n=je.updateQueue;if(n===null)n=tc(),je.updateQueue=n,n.events=[t];else{var r=n.events;r===null?n.events=[t]:r.push(t)}}function Up(t){var n=It().memoizedState;return b_({ref:n,nextImpl:t}),function(){if((at&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function Bp(t,n){return rc(4,2,t,n)}function Fp(t,n){return rc(4,4,t,n)}function Hp(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 qp(t,n,r){r=r!=null?r.concat([t]):null,rc(4,4,Hp.bind(null,n,t),r)}function _f(){}function Pp(t,n){var r=It();n=n===void 0?null:n;var s=r.memoizedState;return n!==null&&ff(n,s[1])?s[0]:(r.memoizedState=[t,n],t)}function $p(t,n){var r=It();n=n===void 0?null:n;var s=r.memoizedState;if(n!==null&&ff(n,s[1]))return s[0];if(s=t(),xr){an(!0);try{t()}finally{an(!1)}}return r.memoizedState=[s,n],s}function Sf(t,n,r){return r===void 0||(Ka&1073741824)!==0&&(Qe&261930)===0?t.memoizedState=n:(t.memoizedState=r,t=Gg(),je.lanes|=t,Ai|=t,r)}function Gp(t,n,r,s){return In(r,n)?r:cl.current!==null?(t=Sf(t,r,s),In(t,n)||(qt=!0),t):(Ka&42)===0||(Ka&1073741824)!==0&&(Qe&261930)===0?(qt=!0,t.memoizedState=r):(t=Gg(),je.lanes|=t,Ai|=t,n)}function Kp(t,n,r,s,f){var p=le.p;le.p=p!==0&&8>p?p:8;var v=q.T,S={};q.T=S,kf(t,!1,n,r);try{var R=f(),G=q.S;if(G!==null&&G(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ee=d_(R,s);Ns(t,n,ee,Pn(t))}else Ns(t,n,s,Pn(t))}catch(ie){Ns(t,n,{then:function(){},status:"rejected",reason:ie},Pn())}finally{le.p=p,v!==null&&S.types!==null&&(v.types=S.types),q.T=v}}function y_(){}function wf(t,n,r,s){if(t.tag!==5)throw Error(l(476));var f=Qp(t).queue;Kp(t,f,n,ce,r===null?y_:function(){return Yp(t),r(s)})}function Qp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:ce},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:r},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Yp(t){var n=Qp(t);n.next===null&&(n=t.alternate.memoizedState),Ns(t,n.next.queue,{},Pn())}function Nf(){return en(qs)}function Vp(){return It().memoizedState}function Xp(){return It().memoizedState}function x_(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var r=Pn();t=Si(r);var s=wi(n,t,r);s!==null&&(Tn(s,n,r),vs(s,n,r)),n={cache:Ju()},t.payload=n;return}n=n.return}}function v_(t,n,r){var s=Pn();r={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(t)?Wp(n,r):(r=qu(t,n,r,s),r!==null&&(Tn(r,t,s),Jp(r,n,s)))}function Zp(t,n,r){var s=Pn();Ns(t,n,r,s)}function Ns(t,n,r,s){var f={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(lc(t))Wp(n,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var v=n.lastRenderedState,S=p(v,r);if(f.hasEagerState=!0,f.eagerState=S,In(S,v))return Fo(t,n,f,0),gt===null&&Bo(),!1}catch{}finally{}if(r=qu(t,n,f,s),r!==null)return Tn(r,t,s),Jp(r,n,s),!0}return!1}function kf(t,n,r,s){if(s={lane:2,revertLane:id(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},lc(t)){if(n)throw Error(l(479))}else n=qu(t,r,s,2),n!==null&&Tn(n,t,2)}function lc(t){var n=t.alternate;return t===je||n!==null&&n===je}function Wp(t,n){ul=Jo=!0;var r=t.pending;r===null?n.next=n:(n.next=r.next,r.next=n),t.pending=n}function Jp(t,n,r){if((r&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,r|=s,n.lanes=r,Oe(t,r)}}var ks={readContext:en,use:nc,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};ks.useEffectEvent=Rt;var eg={readContext:en,use:nc,useCallback:function(t,n){return mn().memoizedState=[t,n===void 0?null:n],t},useContext:en,useEffect:Ip,useImperativeHandle:function(t,n,r){r=r!=null?r.concat([t]):null,ic(4194308,4,Hp.bind(null,n,t),r)},useLayoutEffect:function(t,n){return ic(4194308,4,t,n)},useInsertionEffect:function(t,n){ic(4,2,t,n)},useMemo:function(t,n){var r=mn();n=n===void 0?null:n;var s=t();if(xr){an(!0);try{t()}finally{an(!1)}}return r.memoizedState=[s,n],s},useReducer:function(t,n,r){var s=mn();if(r!==void 0){var f=r(n);if(xr){an(!0);try{r(n)}finally{an(!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=v_.bind(null,je,t),[s.memoizedState,t]},useRef:function(t){var n=mn();return t={current:t},n.memoizedState=t},useState:function(t){t=xf(t);var n=t.queue,r=Zp.bind(null,je,n);return n.dispatch=r,[t.memoizedState,r]},useDebugValue:_f,useDeferredValue:function(t,n){var r=mn();return Sf(r,t,n)},useTransition:function(){var t=xf(!1);return t=Kp.bind(null,je,t.queue,!0,!1),mn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,r){var s=je,f=mn();if(Xe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=n(),gt===null)throw Error(l(349));(Qe&127)!==0||Ep(s,n,r)}f.memoizedState=r;var p={value:r,getSnapshot:n};return f.queue=p,Ip(Sp.bind(null,s,p,t),[t]),s.flags|=2048,dl(9,{destroy:void 0},_p.bind(null,s,p,r,n),null),r},useId:function(){var t=mn(),n=gt.identifierPrefix;if(Xe){var r=Na,s=wa;r=(s&~(1<<32-lt(s)-1)).toString(32)+r,n="_"+n+"R_"+r,r=ec++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=h_++,n="_"+n+"r_"+r.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Nf,useFormState:Mp,useActionState:Mp,useOptimistic:function(t){var n=mn();n.memoizedState=n.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=kf.bind(null,je,!0,r),r.dispatch=n,[t,n]},useMemoCache:gf,useCacheRefresh:function(){return mn().memoizedState=x_.bind(null,je)},useEffectEvent:function(t){var n=mn(),r={impl:t};return n.memoizedState=r,function(){if((at&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},Tf={readContext:en,use:nc,useCallback:Pp,useContext:en,useEffect:Ef,useImperativeHandle:qp,useInsertionEffect:Bp,useLayoutEffect:Fp,useMemo:$p,useReducer:ac,useRef:jp,useState:function(){return ac(Qa)},useDebugValue:_f,useDeferredValue:function(t,n){var r=It();return Gp(r,ft.memoizedState,t,n)},useTransition:function(){var t=ac(Qa)[0],n=It().memoizedState;return[typeof t=="boolean"?t:ws(t),n]},useSyncExternalStore:vp,useId:Vp,useHostTransitionStatus:Nf,useFormState:Dp,useActionState:Dp,useOptimistic:function(t,n){var r=It();return kp(r,ft,t,n)},useMemoCache:gf,useCacheRefresh:Xp};Tf.useEffectEvent=Up;var tg={readContext:en,use:nc,useCallback:Pp,useContext:en,useEffect:Ef,useImperativeHandle:qp,useInsertionEffect:Bp,useLayoutEffect:Fp,useMemo:$p,useReducer:yf,useRef:jp,useState:function(){return yf(Qa)},useDebugValue:_f,useDeferredValue:function(t,n){var r=It();return ft===null?Sf(r,t,n):Gp(r,ft.memoizedState,t,n)},useTransition:function(){var t=yf(Qa)[0],n=It().memoizedState;return[typeof t=="boolean"?t:ws(t),n]},useSyncExternalStore:vp,useId:Vp,useHostTransitionStatus:Nf,useFormState:zp,useActionState:zp,useOptimistic:function(t,n){var r=It();return ft!==null?kp(r,ft,t,n):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:gf,useCacheRefresh:Xp};tg.useEffectEvent=Up;function Cf(t,n,r,s){n=t.memoizedState,r=r(s,n),r=r==null?n:b({},n,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var Af={enqueueSetState:function(t,n,r){t=t._reactInternals;var s=Pn(),f=Si(s);f.payload=n,r!=null&&(f.callback=r),n=wi(t,f,s),n!==null&&(Tn(n,t,s),vs(n,t,s))},enqueueReplaceState:function(t,n,r){t=t._reactInternals;var s=Pn(),f=Si(s);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=wi(t,f,s),n!==null&&(Tn(n,t,s),vs(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var r=Pn(),s=Si(r);s.tag=2,n!=null&&(s.callback=n),n=wi(t,s,r),n!==null&&(Tn(n,t,r),vs(n,t,r))}};function ng(t,n,r,s,f,p,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,v):n.prototype&&n.prototype.isPureReactComponent?!ds(r,s)||!ds(f,p):!0}function ag(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&&Af.enqueueReplaceState(n,n.state,null)}function vr(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=b({},r));for(var f in t)r[f]===void 0&&(r[f]=t[f])}return r}function ig(t){Uo(t)}function rg(t){console.error(t)}function lg(t){Uo(t)}function sc(t,n){try{var r=t.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function sg(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 Rf(t,n,r){return r=Si(r),r.tag=3,r.payload={element:null},r.callback=function(){sc(t,n)},r}function og(t){return t=Si(t),t.tag=3,t}function cg(t,n,r,s){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var p=s.value;t.payload=function(){return f(p)},t.callback=function(){sg(n,r,s)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){sg(n,r,s),typeof f!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function E_(t,n,r,s,f){if(r.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=r.alternate,n!==null&&il(n,r,f,!0),r=Bn.current,r!==null){switch(r.tag){case 31:case 13:return ta===null?xc():r.alternate===null&&Ot===0&&(Ot=3),r.flags&=-257,r.flags|=65536,r.lanes=f,s===Yo?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([s]):n.add(s),td(t,s,f)),!1;case 22:return r.flags|=65536,s===Yo?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)),td(t,s,f)),!1}throw Error(l(435,r.tag))}return td(t,s,f),xc(),!1}if(Xe)return n=Bn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==Yu&&(t=Error(l(422),{cause:s}),ps(Zn(t,r)))):(s!==Yu&&(n=Error(l(423),{cause:s}),ps(Zn(n,r))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=Zn(s,r),f=Rf(t.stateNode,s,f),lf(t,f),Ot!==4&&(Ot=2)),!1;var p=Error(l(520),{cause:s});if(p=Zn(p,r),Ls===null?Ls=[p]:Ls.push(p),Ot!==4&&(Ot=2),n===null)return!0;s=Zn(s,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,t=f&-f,r.lanes|=t,t=Rf(r.stateNode,s,t),lf(r,t),!1;case 1:if(n=r.type,p=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ri===null||!Ri.has(p))))return r.flags|=65536,f&=-f,r.lanes|=f,f=og(f),cg(f,t,r,s),lf(r,f),!1}r=r.return}while(r!==null);return!1}var Of=Error(l(461)),qt=!1;function tn(t,n,r,s){n.child=t===null?hp(n,null,r,s):yr(n,t.child,r,s)}function ug(t,n,r,s,f){r=r.render;var p=n.ref;if("ref"in s){var v={};for(var S in s)S!=="ref"&&(v[S]=s[S])}else v=s;return mr(n),s=df(t,n,r,v,p,f),S=hf(),t!==null&&!qt?(mf(t,n,f),Ya(t,n,f)):(Xe&&S&&Ku(n),n.flags|=1,tn(t,n,s,f),n.child)}function fg(t,n,r,s,f){if(t===null){var p=r.type;return typeof p=="function"&&!Pu(p)&&p.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=p,dg(t,n,p,s,f)):(t=qo(r.type,null,s,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Bf(t,f)){var v=p.memoizedProps;if(r=r.compare,r=r!==null?r:ds,r(v,s)&&t.ref===n.ref)return Ya(t,n,f)}return n.flags|=1,t=qa(p,s),t.ref=n.ref,t.return=n,n.child=t}function dg(t,n,r,s,f){if(t!==null){var p=t.memoizedProps;if(ds(p,s)&&t.ref===n.ref)if(qt=!1,n.pendingProps=s=p,Bf(t,f))(t.flags&131072)!==0&&(qt=!0);else return n.lanes=t.lanes,Ya(t,n,f)}return Mf(t,n,r,s,f)}function hg(t,n,r,s){var f=s.children,p=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(p=p!==null?p.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&~p}else s=0,n.child=null;return mg(t,n,p,r,s)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ko(n,p!==null?p.cachePool:null),p!==null?gp(n,p):of(),bp(n);else return s=n.lanes=536870912,mg(t,n,p!==null?p.baseLanes|r:r,r,s)}else p!==null?(Ko(n,p.cachePool),gp(n,p),ki(),n.memoizedState=null):(t!==null&&Ko(n,null),of(),ki());return tn(t,n,f,r),n.child}function Ts(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function mg(t,n,r,s,f){var p=tf();return p=p===null?null:{parent:Ft._currentValue,pool:p},n.memoizedState={baseLanes:r,cachePool:p},t!==null&&Ko(n,null),of(),bp(n),t!==null&&il(t,n,s,!0),n.childLanes=f,null}function oc(t,n){return n=uc({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function pg(t,n,r){return yr(n,t.child,null,r),t=oc(n,n.pendingProps),t.flags|=2,Fn(n),n.memoizedState=null,t}function __(t,n,r){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Xe){if(s.mode==="hidden")return t=oc(n,s),n.lanes=536870912,Ts(null,t);if(uf(n),(t=Et)?(t=Tb(t,ea),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:yi!==null?{id:wa,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},r=Wm(t),r.return=n,n.child=r,Jt=n,Et=null)):t=null,t===null)throw vi(n);return n.lanes=536870912,null}return oc(n,s)}var p=t.memoizedState;if(p!==null){var v=p.dehydrated;if(uf(n),f)if(n.flags&256)n.flags&=-257,n=pg(t,n,r);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(l(558));else if(qt||il(t,n,r,!1),f=(r&t.childLanes)!==0,qt||f){if(s=gt,s!==null&&(v=Dt(s,r),v!==0&&v!==p.retryLane))throw p.retryLane=v,ur(t,v),Tn(s,t,v),Of;xc(),n=pg(t,n,r)}else t=p.treeContext,Et=na(v.nextSibling),Jt=n,Xe=!0,xi=null,ea=!1,t!==null&&tp(n,t),n=oc(n,s),n.flags|=4096;return n}return t=qa(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function cc(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 Mf(t,n,r,s,f){return mr(n),r=df(t,n,r,s,void 0,f),s=hf(),t!==null&&!qt?(mf(t,n,f),Ya(t,n,f)):(Xe&&s&&Ku(n),n.flags|=1,tn(t,n,r,f),n.child)}function gg(t,n,r,s,f,p){return mr(n),n.updateQueue=null,r=xp(n,s,r,f),yp(t),s=hf(),t!==null&&!qt?(mf(t,n,p),Ya(t,n,p)):(Xe&&s&&Ku(n),n.flags|=1,tn(t,n,r,p),n.child)}function bg(t,n,r,s,f){if(mr(n),n.stateNode===null){var p=el,v=r.contextType;typeof v=="object"&&v!==null&&(p=en(v)),p=new r(s,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Af,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=s,p.state=n.memoizedState,p.refs={},af(n),v=r.contextType,p.context=typeof v=="object"&&v!==null?en(v):el,p.state=n.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(Cf(n,r,v,s),p.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&Af.enqueueReplaceState(p,p.state,null),_s(n,s,p,f),Es(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){p=n.stateNode;var S=n.memoizedProps,R=vr(r,S);p.props=R;var G=p.context,ee=r.contextType;v=el,typeof ee=="object"&&ee!==null&&(v=en(ee));var ie=r.getDerivedStateFromProps;ee=typeof ie=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,ee||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||G!==v)&&ag(n,p,s,v),_i=!1;var K=n.memoizedState;p.state=K,_s(n,s,p,f),Es(),G=n.memoizedState,S||K!==G||_i?(typeof ie=="function"&&(Cf(n,r,ie,s),G=n.memoizedState),(R=_i||ng(n,r,R,s,K,G,v))?(ee||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=G),p.props=s,p.state=G,p.context=v,s=R):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,rf(t,n),v=n.memoizedProps,ee=vr(r,v),p.props=ee,ie=n.pendingProps,K=p.context,G=r.contextType,R=el,typeof G=="object"&&G!==null&&(R=en(G)),S=r.getDerivedStateFromProps,(G=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==ie||K!==R)&&ag(n,p,s,R),_i=!1,K=n.memoizedState,p.state=K,_s(n,s,p,f),Es();var Y=n.memoizedState;v!==ie||K!==Y||_i||t!==null&&t.dependencies!==null&&$o(t.dependencies)?(typeof S=="function"&&(Cf(n,r,S,s),Y=n.memoizedState),(ee=_i||ng(n,r,ee,s,K,Y,R)||t!==null&&t.dependencies!==null&&$o(t.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Y,R),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Y,R)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),p.props=s,p.state=Y,p.context=R,s=ee):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),s=!1)}return p=s,cc(t,n),s=(n.flags&128)!==0,p||s?(p=n.stateNode,r=s&&typeof r.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&s?(n.child=yr(n,t.child,null,f),n.child=yr(n,null,r,f)):tn(t,n,r,f),n.memoizedState=p.state,t=n.child):t=Ya(t,n,f),t}function yg(t,n,r,s){return dr(),n.flags|=256,tn(t,n,r,s),n.child}var Df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lf(t){return{baseLanes:t,cachePool:sp()}}function zf(t,n,r){return t=t!==null?t.childLanes&~r:0,n&&(t|=qn),t}function xg(t,n,r){var s=n.pendingProps,f=!1,p=(n.flags&128)!==0,v;if((v=p)||(v=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),v&&(f=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,t===null){if(Xe){if(f?Ni(n):ki(),(t=Et)?(t=Tb(t,ea),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:yi!==null?{id:wa,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},r=Wm(t),r.return=n,n.child=r,Jt=n,Et=null)):t=null,t===null)throw vi(n);return bd(t)?n.lanes=32:n.lanes=536870912,null}var S=s.children;return s=s.fallback,f?(ki(),f=n.mode,S=uc({mode:"hidden",children:S},f),s=fr(s,f,r,null),S.return=n,s.return=n,S.sibling=s,n.child=S,s=n.child,s.memoizedState=Lf(r),s.childLanes=zf(t,v,r),n.memoizedState=Df,Ts(null,s)):(Ni(n),jf(n,S))}var R=t.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(p)n.flags&256?(Ni(n),n.flags&=-257,n=If(t,n,r)):n.memoizedState!==null?(ki(),n.child=t.child,n.flags|=128,n=null):(ki(),S=s.fallback,f=n.mode,s=uc({mode:"visible",children:s.children},f),S=fr(S,f,r,null),S.flags|=2,s.return=n,S.return=n,s.sibling=S,n.child=s,yr(n,t.child,null,r),s=n.child,s.memoizedState=Lf(r),s.childLanes=zf(t,v,r),n.memoizedState=Df,n=Ts(null,s));else if(Ni(n),bd(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var G=v.dgst;v=G,s=Error(l(419)),s.stack="",s.digest=v,ps({value:s,source:null,stack:null}),n=If(t,n,r)}else if(qt||il(t,n,r,!1),v=(r&t.childLanes)!==0,qt||v){if(v=gt,v!==null&&(s=Dt(v,r),s!==0&&s!==R.retryLane))throw R.retryLane=s,ur(t,s),Tn(v,t,s),Of;gd(S)||xc(),n=If(t,n,r)}else gd(S)?(n.flags|=192,n.child=t.child,n=null):(t=R.treeContext,Et=na(S.nextSibling),Jt=n,Xe=!0,xi=null,ea=!1,t!==null&&tp(n,t),n=jf(n,s.children),n.flags|=4096);return n}return f?(ki(),S=s.fallback,f=n.mode,R=t.child,G=R.sibling,s=qa(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,G!==null?S=qa(G,S):(S=fr(S,f,r,null),S.flags|=2),S.return=n,s.return=n,s.sibling=S,n.child=s,Ts(null,s),s=n.child,S=t.child.memoizedState,S===null?S=Lf(r):(f=S.cachePool,f!==null?(R=Ft._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=sp(),S={baseLanes:S.baseLanes|r,cachePool:f}),s.memoizedState=S,s.childLanes=zf(t,v,r),n.memoizedState=Df,Ts(t.child,s)):(Ni(n),r=t.child,t=r.sibling,r=qa(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 jf(t,n){return n=uc({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function uc(t,n){return t=Un(22,t,null,n),t.lanes=0,t}function If(t,n,r){return yr(n,t.child,null,r),t=jf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function vg(t,n,r){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Zu(t.return,n,r)}function Uf(t,n,r,s,f,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:f,treeForkCount:p}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=r,v.tailMode=f,v.treeForkCount=p)}function Eg(t,n,r){var s=n.pendingProps,f=s.revealOrder,p=s.tail;s=s.children;var v=jt.current,S=(v&2)!==0;if(S?(v=v&1|2,n.flags|=128):v&=1,k(jt,v),tn(t,n,s,r),s=Xe?ms:0,!S&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vg(t,r,n);else if(t.tag===19)vg(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&&Wo(t)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),Uf(n,!1,f,r,p,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&&Wo(t)===null){n.child=f;break}t=f.sibling,f.sibling=r,r=f,f=t}Uf(n,!0,r,null,p,s);break;case"together":Uf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Ya(t,n,r){if(t!==null&&(n.dependencies=t.dependencies),Ai|=n.lanes,(r&n.childLanes)===0)if(t!==null){if(il(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=qa(t,t.pendingProps),n.child=r,r.return=n;t.sibling!==null;)t=t.sibling,r=r.sibling=qa(t,t.pendingProps),r.return=n;r.sibling=null}return n.child}function Bf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&$o(t)))}function S_(t,n,r){switch(n.tag){case 3:rt(n,n.stateNode.containerInfo),Ei(n,Ft,t.memoizedState.cache),dr();break;case 27:case 5:Kt(n);break;case 4:rt(n,n.stateNode.containerInfo);break;case 10:Ei(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,uf(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Ni(n),n.flags|=128,null):(r&n.child.childLanes)!==0?xg(t,n,r):(Ni(n),t=Ya(t,n,r),t!==null?t.sibling:null);Ni(n);break;case 19:var f=(t.flags&128)!==0;if(s=(r&n.childLanes)!==0,s||(il(t,n,r,!1),s=(r&n.childLanes)!==0),f){if(s)return Eg(t,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),k(jt,jt.current),s)break;return null;case 22:return n.lanes=0,hg(t,n,r,n.pendingProps);case 24:Ei(n,Ft,t.memoizedState.cache)}return Ya(t,n,r)}function _g(t,n,r){if(t!==null)if(t.memoizedProps!==n.pendingProps)qt=!0;else{if(!Bf(t,r)&&(n.flags&128)===0)return qt=!1,S_(t,n,r);qt=(t.flags&131072)!==0}else qt=!1,Xe&&(n.flags&1048576)!==0&&ep(n,ms,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=gr(n.elementType),n.type=t,typeof t=="function")Pu(t)?(s=vr(t,s),n.tag=1,n=bg(null,n,t,s,r)):(n.tag=0,n=Mf(null,n,t,s,r));else{if(t!=null){var f=t.$$typeof;if(f===P){n.tag=11,n=ug(null,n,t,s,r);break e}else if(f===V){n.tag=14,n=fg(null,n,t,s,r);break e}}throw n=re(t)||t,Error(l(306,n,""))}}return n;case 0:return Mf(t,n,n.type,n.pendingProps,r);case 1:return s=n.type,f=vr(s,n.pendingProps),bg(t,n,s,f,r);case 3:e:{if(rt(n,n.stateNode.containerInfo),t===null)throw Error(l(387));s=n.pendingProps;var p=n.memoizedState;f=p.element,rf(t,n),_s(n,s,null,r);var v=n.memoizedState;if(s=v.cache,Ei(n,Ft,s),s!==p.cache&&Wu(n,[Ft],r,!0),Es(),s=v.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=yg(t,n,s,r);break e}else if(s!==f){f=Zn(Error(l(424)),n),ps(f),n=yg(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=na(t.firstChild),Jt=n,Xe=!0,xi=null,ea=!0,r=hp(n,null,s,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(dr(),s===f){n=Ya(t,n,r);break e}tn(t,n,s,r)}n=n.child}return n;case 26:return cc(t,n),t===null?(r=Db(n.type,null,n.pendingProps,null))?n.memoizedState=r:Xe||(r=n.type,t=n.pendingProps,s=kc(xe.current).createElement(r),s[Lt]=n,s[rn]=t,nn(s,r,t),Ut(s),n.stateNode=s):n.memoizedState=Db(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Kt(n),t===null&&Xe&&(s=n.stateNode=Rb(n.type,n.pendingProps,xe.current),Jt=n,ea=!0,f=Et,Li(n.type)?(yd=f,Et=na(s.firstChild)):Et=f),tn(t,n,n.pendingProps.children,r),cc(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Xe&&((f=s=Et)&&(s=J_(s,n.type,n.pendingProps,ea),s!==null?(n.stateNode=s,Jt=n,Et=na(s.firstChild),ea=!1,f=!0):f=!1),f||vi(n)),Kt(n),f=n.type,p=n.pendingProps,v=t!==null?t.memoizedProps:null,s=p.children,hd(f,p)?s=null:v!==null&&hd(f,v)&&(n.flags|=32),n.memoizedState!==null&&(f=df(t,n,m_,null,null,r),qs._currentValue=f),cc(t,n),tn(t,n,s,r),n.child;case 6:return t===null&&Xe&&((t=r=Et)&&(r=e1(r,n.pendingProps,ea),r!==null?(n.stateNode=r,Jt=n,Et=null,t=!0):t=!1),t||vi(n)),null;case 13:return xg(t,n,r);case 4:return rt(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=yr(n,null,s,r):tn(t,n,s,r),n.child;case 11:return ug(t,n,n.type,n.pendingProps,r);case 7:return tn(t,n,n.pendingProps,r),n.child;case 8:return tn(t,n,n.pendingProps.children,r),n.child;case 12:return tn(t,n,n.pendingProps.children,r),n.child;case 10:return s=n.pendingProps,Ei(n,n.type,s.value),tn(t,n,s.children,r),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,mr(n),f=en(f),s=s(f),n.flags|=1,tn(t,n,s,r),n.child;case 14:return fg(t,n,n.type,n.pendingProps,r);case 15:return dg(t,n,n.type,n.pendingProps,r);case 19:return Eg(t,n,r);case 31:return __(t,n,r);case 22:return hg(t,n,r,n.pendingProps);case 24:return mr(n),s=en(Ft),t===null?(f=tf(),f===null&&(f=gt,p=Ju(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=r),f=p),n.memoizedState={parent:s,cache:f},af(n),Ei(n,Ft,f)):((t.lanes&r)!==0&&(rf(t,n),_s(n,null,null,r),Es()),f=t.memoizedState,p=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Ei(n,Ft,s)):(s=p.cache,Ei(n,Ft,s),s!==f.cache&&Wu(n,[Ft],r,!0))),tn(t,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Va(t){t.flags|=4}function Ff(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(Vg())t.flags|=8192;else throw br=Yo,nf}else t.flags&=-16777217}function Sg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ub(n))if(Vg())t.flags|=8192;else throw br=Yo,nf}function fc(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Me():536870912,t.lanes|=n,gl|=n)}function Cs(t,n){if(!Xe)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 w_(t,n,r){var s=n.pendingProps;switch(Qu(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),Ga(Ft),nt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(al(n)?Va(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Vu())),_t(n),null;case 26:var f=n.type,p=n.memoizedState;return t===null?(Va(n),p!==null?(_t(n),Sg(n,p)):(_t(n),Ff(n,f,null,s,r))):p?p!==t.memoizedState?(Va(n),_t(n),Sg(n,p)):(_t(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Va(n),_t(n),Ff(n,f,t,s,r)),null;case 27:if(Dn(n),r=xe.current,f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Va(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}t=he.current,al(n)?np(n):(t=Rb(f,s,r),n.stateNode=t,Va(n))}return _t(n),null;case 5:if(Dn(n),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Va(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}if(p=he.current,al(n))np(n);else{var v=kc(xe.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?v.createElement(f,{is:s.is}):v.createElement(f)}}p[Lt]=n,p[rn]=s;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)p.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=p;e:switch(nn(p,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&&Va(n)}}return _t(n),Ff(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,r),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Va(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(t=xe.current,al(n)){if(t=n.stateNode,r=n.memoizedProps,s=null,f=Jt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[Lt]=n,t=!!(t.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||xb(t.nodeValue,r)),t||vi(n,!0)}else t=kc(t).createTextNode(s),t[Lt]=n,n.stateNode=t}return _t(n),null;case 31:if(r=n.memoizedState,t===null||t.memoizedState!==null){if(s=al(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[Lt]=n}else dr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),t=!1}else r=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),t=!0;if(!t)return n.flags&256?(Fn(n),n):(Fn(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=al(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[Lt]=n}else dr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),f=!1}else f=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Fn(n),n):(Fn(n),null)}return Fn(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),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==f&&(s.flags|=2048)),r!==t&&r&&(n.child.flags|=8192),fc(n,n.updateQueue),_t(n),null);case 4:return nt(),t===null&&od(n.stateNode.containerInfo),_t(n),null;case 10:return Ga(n.type),_t(n),null;case 19:if(X(jt),s=n.memoizedState,s===null)return _t(n),null;if(f=(n.flags&128)!==0,p=s.rendering,p===null)if(f)Cs(s,!1);else{if(Ot!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(p=Wo(t),p!==null){for(n.flags|=128,Cs(s,!1),t=p.updateQueue,n.updateQueue=t,fc(n,t),n.subtreeFlags=0,t=r,r=n.child;r!==null;)Zm(r,t),r=r.sibling;return k(jt,jt.current&1|2),Xe&&Pa(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&Tt()>gc&&(n.flags|=128,f=!0,Cs(s,!1),n.lanes=4194304)}else{if(!f)if(t=Wo(p),t!==null){if(n.flags|=128,f=!0,t=t.updateQueue,n.updateQueue=t,fc(n,t),Cs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Xe)return _t(n),null}else 2*Tt()-s.renderingStartTime>gc&&r!==536870912&&(n.flags|=128,f=!0,Cs(s,!1),n.lanes=4194304);s.isBackwards?(p.sibling=n.child,n.child=p):(t=s.last,t!==null?t.sibling=p:n.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Tt(),t.sibling=null,r=jt.current,k(jt,f?r&1|2:r&1),Xe&&Pa(n,s.treeForkCount),t):(_t(n),null);case 22:case 23:return Fn(n),cf(),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&&fc(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&&X(pr),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Ga(Ft),_t(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function N_(t,n){switch(Qu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Ga(Ft),nt(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Dn(n),null;case 31:if(n.memoizedState!==null){if(Fn(n),n.alternate===null)throw Error(l(340));dr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Fn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));dr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return X(jt),null;case 4:return nt(),null;case 10:return Ga(n.type),null;case 22:case 23:return Fn(n),cf(),t!==null&&X(pr),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Ga(Ft),null;case 25:return null;default:return null}}function wg(t,n){switch(Qu(n),n.tag){case 3:Ga(Ft),nt();break;case 26:case 27:case 5:Dn(n);break;case 4:nt();break;case 31:n.memoizedState!==null&&Fn(n);break;case 13:Fn(n);break;case 19:X(jt);break;case 10:Ga(n.type);break;case 22:case 23:Fn(n),cf(),t!==null&&X(pr);break;case 24:Ga(Ft)}}function As(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 p=r.create,v=r.inst;s=p(),v.destroy=s}r=r.next}while(r!==f)}}catch(S){ut(n,n.return,S)}}function Ti(t,n,r){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next;s=p;do{if((s.tag&t)===t){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,f=n;var R=r,G=S;try{G()}catch(ee){ut(f,R,ee)}}}s=s.next}while(s!==p)}}catch(ee){ut(n,n.return,ee)}}function Ng(t){var n=t.updateQueue;if(n!==null){var r=t.stateNode;try{pp(n,r)}catch(s){ut(t,t.return,s)}}}function kg(t,n,r){r.props=vr(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(s){ut(t,n,s)}}function Rs(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 ka(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 Tg(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 Hf(t,n,r){try{var s=t.stateNode;Q_(s,t.type,r,n),s[rn]=n}catch(f){ut(t,t.return,f)}}function Cg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Li(t.type)||t.tag===4}function qf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Cg(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&&Li(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 Pf(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=de));else if(s!==4&&(s===27&&Li(t.type)&&(r=t.stateNode,n=null),t=t.child,t!==null))for(Pf(t,n,r),t=t.sibling;t!==null;)Pf(t,n,r),t=t.sibling}function dc(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&&Li(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(dc(t,n,r),t=t.sibling;t!==null;)dc(t,n,r),t=t.sibling}function Ag(t){var n=t.stateNode,r=t.memoizedProps;try{for(var s=t.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);nn(n,s,r),n[Lt]=t,n[rn]=r}catch(p){ut(t,t.return,p)}}var Xa=!1,Pt=!1,$f=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function k_(t,n){if(t=t.containerInfo,fd=Dc,t=qm(t),ju(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,p=s.focusNode;s=s.focusOffset;try{r.nodeType,p.nodeType}catch{r=null;break e}var v=0,S=-1,R=-1,G=0,ee=0,ie=t,K=null;t:for(;;){for(var Y;ie!==r||f!==0&&ie.nodeType!==3||(S=v+f),ie!==p||s!==0&&ie.nodeType!==3||(R=v+s),ie.nodeType===3&&(v+=ie.nodeValue.length),(Y=ie.firstChild)!==null;)K=ie,ie=Y;for(;;){if(ie===t)break t;if(K===r&&++G===f&&(S=v),K===p&&++ee===s&&(R=v),(Y=ie.nextSibling)!==null)break;ie=K,K=ie.parentNode}ie=Y}r=S===-1||R===-1?null:{start:S,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(dd={focusedElem:t,selectionRange:r},Dc=!1,Vt=n;Vt!==null;)if(n=Vt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Vt=t;else for(;Vt!==null;){switch(n=Vt,p=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&&p!==null){t=void 0,r=n,f=p.memoizedProps,p=p.memoizedState,s=r.stateNode;try{var be=vr(r.type,f);t=s.getSnapshotBeforeUpdate(be,p),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)pd(t);else if(r===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":pd(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,Vt=t;break}Vt=n.return}}function Og(t,n,r){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Wa(t,r),s&4&&As(5,r);break;case 1:if(Wa(t,r),s&4)if(t=r.stateNode,n===null)try{t.componentDidMount()}catch(v){ut(r,r.return,v)}else{var f=vr(r.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(f,n,t.__reactInternalSnapshotBeforeUpdate)}catch(v){ut(r,r.return,v)}}s&64&&Ng(r),s&512&&Rs(r,r.return);break;case 3:if(Wa(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{pp(t,n)}catch(v){ut(r,r.return,v)}}break;case 27:n===null&&s&4&&Ag(r);case 26:case 5:Wa(t,r),n===null&&s&4&&Tg(r),s&512&&Rs(r,r.return);break;case 12:Wa(t,r);break;case 31:Wa(t,r),s&4&&Lg(t,r);break;case 13:Wa(t,r),s&4&&zg(t,r),s&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=z_.bind(null,r),t1(t,r))));break;case 22:if(s=r.memoizedState!==null||Xa,!s){n=n!==null&&n.memoizedState!==null||Pt,f=Xa;var p=Pt;Xa=s,(Pt=n)&&!p?Ja(t,r,(r.subtreeFlags&8772)!==0):Wa(t,r),Xa=f,Pt=p}break;case 30:break;default:Wa(t,r)}}function Mg(t){var n=t.alternate;n!==null&&(t.alternate=null,Mg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&es(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,Sn=!1;function Za(t,n,r){for(r=r.child;r!==null;)Dg(t,n,r),r=r.sibling}function Dg(t,n,r){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Zt,r)}catch{}switch(r.tag){case 26:Pt||ka(r,n),Za(t,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Pt||ka(r,n);var s=wt,f=Sn;Li(r.type)&&(wt=r.stateNode,Sn=!1),Za(t,n,r),Bs(r.stateNode),wt=s,Sn=f;break;case 5:Pt||ka(r,n);case 6:if(s=wt,f=Sn,wt=null,Za(t,n,r),wt=s,Sn=f,wt!==null)if(Sn)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(r.stateNode)}catch(p){ut(r,n,p)}else try{wt.removeChild(r.stateNode)}catch(p){ut(r,n,p)}break;case 18:wt!==null&&(Sn?(t=wt,Nb(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,r.stateNode),wl(t)):Nb(wt,r.stateNode));break;case 4:s=wt,f=Sn,wt=r.stateNode.containerInfo,Sn=!0,Za(t,n,r),wt=s,Sn=f;break;case 0:case 11:case 14:case 15:Ti(2,r,n),Pt||Ti(4,r,n),Za(t,n,r);break;case 1:Pt||(ka(r,n),s=r.stateNode,typeof s.componentWillUnmount=="function"&&kg(r,n,s)),Za(t,n,r);break;case 21:Za(t,n,r);break;case 22:Pt=(s=Pt)||r.memoizedState!==null,Za(t,n,r),Pt=s;break;default:Za(t,n,r)}}function Lg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{wl(t)}catch(r){ut(n,n.return,r)}}}function zg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{wl(t)}catch(r){ut(n,n.return,r)}}function T_(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Rg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Rg),n;default:throw Error(l(435,t.tag))}}function hc(t,n){var r=T_(t);n.forEach(function(s){if(!r.has(s)){r.add(s);var f=j_.bind(null,t,s);s.then(f,f)}})}function wn(t,n){var r=n.deletions;if(r!==null)for(var s=0;s<r.length;s++){var f=r[s],p=t,v=n,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Li(S.type)){wt=S.stateNode,Sn=!1;break e}break;case 5:wt=S.stateNode,Sn=!1;break e;case 3:case 4:wt=S.stateNode.containerInfo,Sn=!0;break e}S=S.return}if(wt===null)throw Error(l(160));Dg(p,v,f),wt=null,Sn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)jg(n,t),n=n.sibling}var ma=null;function jg(t,n){var r=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:wn(n,t),Nn(t),s&4&&(Ti(3,t,t.return),As(3,t),Ti(5,t,t.return));break;case 1:wn(n,t),Nn(t),s&512&&(Pt||r===null||ka(r,r.return)),s&64&&Xa&&(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=ma;if(wn(n,t),Nn(t),s&512&&(Pt||r===null||ka(r,r.return)),s&4){var p=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":p=f.getElementsByTagName("title")[0],(!p||p[ir]||p[Lt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(s),f.head.insertBefore(p,f.querySelector("head > title"))),nn(p,s,r),p[Lt]=t,Ut(p),s=p;break e;case"link":var v=jb("link","href",f).get(s+(r.href||""));if(v){for(var S=0;S<v.length;S++)if(p=v[S],p.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&p.getAttribute("rel")===(r.rel==null?null:r.rel)&&p.getAttribute("title")===(r.title==null?null:r.title)&&p.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(S,1);break t}}p=f.createElement(s),nn(p,s,r),f.head.appendChild(p);break;case"meta":if(v=jb("meta","content",f).get(s+(r.content||""))){for(S=0;S<v.length;S++)if(p=v[S],p.getAttribute("content")===(r.content==null?null:""+r.content)&&p.getAttribute("name")===(r.name==null?null:r.name)&&p.getAttribute("property")===(r.property==null?null:r.property)&&p.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&p.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(S,1);break t}}p=f.createElement(s),nn(p,s,r),f.head.appendChild(p);break;default:throw Error(l(468,s))}p[Lt]=t,Ut(p),s=p}t.stateNode=s}else Ib(f,t.type,t.stateNode);else t.stateNode=zb(f,s,t.memoizedProps);else p!==s?(p===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):p.count--,s===null?Ib(f,t.type,t.stateNode):zb(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Hf(t,t.memoizedProps,r.memoizedProps)}break;case 27:wn(n,t),Nn(t),s&512&&(Pt||r===null||ka(r,r.return)),r!==null&&s&4&&Hf(t,t.memoizedProps,r.memoizedProps);break;case 5:if(wn(n,t),Nn(t),s&512&&(Pt||r===null||ka(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,Hf(t,f,r!==null?r.memoizedProps:f)),s&1024&&($f=!0);break;case 6:if(wn(n,t),Nn(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(Ac=null,f=ma,ma=Tc(n.containerInfo),wn(n,t),ma=f,Nn(t),s&4&&r!==null&&r.memoizedState.isDehydrated)try{wl(n.containerInfo)}catch(be){ut(t,t.return,be)}$f&&($f=!1,Ig(t));break;case 4:s=ma,ma=Tc(t.stateNode.containerInfo),wn(n,t),Nn(t),ma=s;break;case 12:wn(n,t),Nn(t);break;case 31:wn(n,t),Nn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,hc(t,s)));break;case 13:wn(n,t),Nn(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pc=Tt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,hc(t,s)));break;case 22:f=t.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,G=Xa,ee=Pt;if(Xa=G||f,Pt=ee||R,wn(n,t),Pt=ee,Xa=G,Nn(t),s&8192)e:for(n=t.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||R||Xa||Pt||Er(t)),r=null,n=t;;){if(n.tag===5||n.tag===26){if(r===null){R=r=n;try{if(p=R.stateNode,f)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=R.stateNode;var ie=R.memoizedProps.style,K=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;S.style.display=K==null||typeof K=="boolean"?"":(""+K).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?kb(Y,!0):kb(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,hc(t,r))));break;case 19:wn(n,t),Nn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,hc(t,s)));break;case 30:break;case 21:break;default:wn(n,t),Nn(t)}}function Nn(t){var n=t.flags;if(n&2){try{for(var r,s=t.return;s!==null;){if(Cg(s)){r=s;break}s=s.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,p=qf(t);dc(t,p,f);break;case 5:var v=r.stateNode;r.flags&32&&(Re(v,""),r.flags&=-33);var S=qf(t);dc(t,S,v);break;case 3:case 4:var R=r.stateNode.containerInfo,G=qf(t);Pf(t,G,R);break;default:throw Error(l(161))}}catch(ee){ut(t,t.return,ee)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Ig(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Ig(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Wa(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Og(t,n.alternate,n),n=n.sibling}function Er(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Ti(4,n,n.return),Er(n);break;case 1:ka(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&kg(n,n.return,r),Er(n);break;case 27:Bs(n.stateNode);case 26:case 5:ka(n,n.return),Er(n);break;case 22:n.memoizedState===null&&Er(n);break;case 30:Er(n);break;default:Er(n)}t=t.sibling}}function Ja(t,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=t,p=n,v=p.flags;switch(p.tag){case 0:case 11:case 15:Ja(f,p,r),As(4,p);break;case 1:if(Ja(f,p,r),s=p,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(G){ut(s,s.return,G)}if(s=p,f=s.updateQueue,f!==null){var S=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)mp(R[f],S)}catch(G){ut(s,s.return,G)}}r&&v&64&&Ng(p),Rs(p,p.return);break;case 27:Ag(p);case 26:case 5:Ja(f,p,r),r&&s===null&&v&4&&Tg(p),Rs(p,p.return);break;case 12:Ja(f,p,r);break;case 31:Ja(f,p,r),r&&v&4&&Lg(f,p);break;case 13:Ja(f,p,r),r&&v&4&&zg(f,p);break;case 22:p.memoizedState===null&&Ja(f,p,r),Rs(p,p.return);break;case 30:break;default:Ja(f,p,r)}n=n.sibling}}function Gf(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&&gs(r))}function Kf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&gs(t))}function pa(t,n,r,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ug(t,n,r,s),n=n.sibling}function Ug(t,n,r,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:pa(t,n,r,s),f&2048&&As(9,n);break;case 1:pa(t,n,r,s);break;case 3:pa(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&&gs(t)));break;case 12:if(f&2048){pa(t,n,r,s),t=n.stateNode;try{var p=n.memoizedProps,v=p.id,S=p.onPostCommit;typeof S=="function"&&S(v,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){ut(n,n.return,R)}}else pa(t,n,r,s);break;case 31:pa(t,n,r,s);break;case 13:pa(t,n,r,s);break;case 23:break;case 22:p=n.stateNode,v=n.alternate,n.memoizedState!==null?p._visibility&2?pa(t,n,r,s):Os(t,n):p._visibility&2?pa(t,n,r,s):(p._visibility|=2,hl(t,n,r,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Gf(v,n);break;case 24:pa(t,n,r,s),f&2048&&Kf(n.alternate,n);break;default:pa(t,n,r,s)}}function hl(t,n,r,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=t,v=n,S=r,R=s,G=v.flags;switch(v.tag){case 0:case 11:case 15:hl(p,v,S,R,f),As(8,v);break;case 23:break;case 22:var ee=v.stateNode;v.memoizedState!==null?ee._visibility&2?hl(p,v,S,R,f):Os(p,v):(ee._visibility|=2,hl(p,v,S,R,f)),f&&G&2048&&Gf(v.alternate,v);break;case 24:hl(p,v,S,R,f),f&&G&2048&&Kf(v.alternate,v);break;default:hl(p,v,S,R,f)}n=n.sibling}}function Os(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:Os(r,s),f&2048&&Gf(s.alternate,s);break;case 24:Os(r,s),f&2048&&Kf(s.alternate,s);break;default:Os(r,s)}n=n.sibling}}var Ms=8192;function ml(t,n,r){if(t.subtreeFlags&Ms)for(t=t.child;t!==null;)Bg(t,n,r),t=t.sibling}function Bg(t,n,r){switch(t.tag){case 26:ml(t,n,r),t.flags&Ms&&t.memoizedState!==null&&h1(r,ma,t.memoizedState,t.memoizedProps);break;case 5:ml(t,n,r);break;case 3:case 4:var s=ma;ma=Tc(t.stateNode.containerInfo),ml(t,n,r),ma=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Ms,Ms=16777216,ml(t,n,r),Ms=s):ml(t,n,r));break;default:ml(t,n,r)}}function Fg(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 Ds(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];Vt=s,qg(s,t)}Fg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hg(t),t=t.sibling}function Hg(t){switch(t.tag){case 0:case 11:case 15:Ds(t),t.flags&2048&&Ti(9,t,t.return);break;case 3:Ds(t);break;case 12:Ds(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,mc(t)):Ds(t);break;default:Ds(t)}}function mc(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];Vt=s,qg(s,t)}Fg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Ti(8,n,n.return),mc(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,mc(n));break;default:mc(n)}t=t.sibling}}function qg(t,n){for(;Vt!==null;){var r=Vt;switch(r.tag){case 0:case 11:case 15:Ti(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:gs(r.memoizedState.cache)}if(s=r.child,s!==null)s.return=r,Vt=s;else e:for(r=t;Vt!==null;){s=Vt;var f=s.sibling,p=s.return;if(Mg(s),s===r){Vt=null;break e}if(f!==null){f.return=p,Vt=f;break e}Vt=p}}}var C_={getCacheForType:function(t){var n=en(Ft),r=n.data.get(t);return r===void 0&&(r=t(),n.data.set(t,r)),r},cacheSignal:function(){return en(Ft).controller.signal}},A_=typeof WeakMap=="function"?WeakMap:Map,at=0,gt=null,Pe=null,Qe=0,ct=0,Hn=null,Ci=!1,pl=!1,Qf=!1,ei=0,Ot=0,Ai=0,_r=0,Yf=0,qn=0,gl=0,Ls=null,kn=null,Vf=!1,pc=0,Pg=0,gc=1/0,bc=null,Ri=null,Qt=0,Oi=null,bl=null,ti=0,Xf=0,Zf=null,$g=null,zs=0,Wf=null;function Pn(){return(at&2)!==0&&Qe!==0?Qe&-Qe:q.T!==null?id():Pr()}function Gg(){if(qn===0)if((Qe&536870912)===0||Xe){var t=qr;qr<<=1,(qr&3932160)===0&&(qr=262144),qn=t}else qn=536870912;return t=Bn.current,t!==null&&(t.flags|=32),qn}function Tn(t,n,r){(t===gt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(yl(t,0),Mi(t,Qe,qn,!1)),pt(t,r),((at&2)===0||t!==gt)&&(t===gt&&((at&2)===0&&(_r|=r),Ot===4&&Mi(t,Qe,qn,!1)),Ta(t))}function Kg(t,n,r){if((at&6)!==0)throw Error(l(327));var s=!r&&(n&127)===0&&(n&t.expiredLanes)===0||te(t,n),f=s?M_(t,n):ed(t,n,!0),p=s;do{if(f===0){pl&&!s&&Mi(t,n,0,!1);break}else{if(r=t.current.alternate,p&&!R_(r)){f=ed(t,n,!1),p=!1;continue}if(f===2){if(p=n,t.errorRecoveryDisabledLanes&p)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var S=t;f=Ls;var R=S.current.memoizedState.isDehydrated;if(R&&(yl(S,v).flags|=256),v=ed(S,v,!1),v!==2){if(Qf&&!R){S.errorRecoveryDisabledLanes|=p,_r|=p,f=4;break e}p=kn,kn=f,p!==null&&(kn===null?kn=p:kn.push.apply(kn,p))}f=v}if(p=!1,f!==2)continue}}if(f===1){yl(t,0),Mi(t,n,0,!0);break}e:{switch(s=t,p=f,p){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Mi(s,n,qn,!Ci);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=pc+300-Tt(),10<f)){if(Mi(s,n,qn,!Ci),L(s,0,!0)!==0)break e;ti=n,s.timeoutHandle=Sb(Qg.bind(null,s,r,kn,bc,Vf,n,qn,_r,gl,Ci,p,"Throttled",-0,0),f);break e}Qg(s,r,kn,bc,Vf,n,qn,_r,gl,Ci,p,null,-0,0)}}break}while(!0);Ta(t)}function Qg(t,n,r,s,f,p,v,S,R,G,ee,ie,K,Y){if(t.timeoutHandle=-1,ie=n.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:de},Bg(n,p,ie);var be=(p&62914560)===p?pc-Tt():(p&4194048)===p?Pg-Tt():0;if(be=m1(ie,be),be!==null){ti=p,t.cancelPendingCommit=be(tb.bind(null,t,n,p,r,s,f,v,S,R,ee,ie,null,K,Y)),Mi(t,p,v,!G);return}}tb(t,n,p,r,s,f,v,S,R)}function R_(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],p=f.getSnapshot;f=f.value;try{if(!In(p(),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 Mi(t,n,r,s){n&=~Yf,n&=~_r,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var f=n;0<f;){var p=31-lt(f),v=1<<p;s[p]=-1,f&=~v}r!==0&&ge(t,r,n)}function yc(){return(at&6)===0?(js(0),!1):!0}function Jf(){if(Pe!==null){if(ct===0)var t=Pe.return;else t=Pe,$a=hr=null,pf(t),ol=null,ys=0,t=Pe;for(;t!==null;)wg(t.alternate,t),t=t.return;Pe=null}}function yl(t,n){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,X_(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),ti=0,Jf(),gt=t,Pe=r=qa(t.current,null),Qe=n,ct=0,Hn=null,Ci=!1,pl=te(t,n),Qf=!1,gl=qn=Yf=_r=Ai=Ot=0,kn=Ls=null,Vf=!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),p=1<<f;n|=t[f],s&=~p}return ei=n,Bo(),r}function Yg(t,n){je=null,q.H=ks,n===sl||n===Qo?(n=up(),ct=3):n===nf?(n=up(),ct=4):ct=n===Of?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Hn=n,Pe===null&&(Ot=1,sc(t,Zn(n,t.current)))}function Vg(){var t=Bn.current;return t===null?!0:(Qe&4194048)===Qe?ta===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?t===ta:!1}function Xg(){var t=q.H;return q.H=ks,t===null?ks:t}function Zg(){var t=q.A;return q.A=C_,t}function xc(){Ot=4,Ci||(Qe&4194048)!==Qe&&Bn.current!==null||(pl=!0),(Ai&134217727)===0&&(_r&134217727)===0||gt===null||Mi(gt,Qe,qn,!1)}function ed(t,n,r){var s=at;at|=2;var f=Xg(),p=Zg();(gt!==t||Qe!==n)&&(bc=null,yl(t,n)),n=!1;var v=Ot;e:do try{if(ct!==0&&Pe!==null){var S=Pe,R=Hn;switch(ct){case 8:Jf(),v=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(n=!0);var G=ct;if(ct=0,Hn=null,xl(t,S,R,G),r&&pl){v=0;break e}break;default:G=ct,ct=0,Hn=null,xl(t,S,R,G)}}O_(),v=Ot;break}catch(ee){Yg(t,ee)}while(!0);return n&&t.shellSuspendCounter++,$a=hr=null,at=s,q.H=f,q.A=p,Pe===null&&(gt=null,Qe=0,Bo()),v}function O_(){for(;Pe!==null;)Wg(Pe)}function M_(t,n){var r=at;at|=2;var s=Xg(),f=Zg();gt!==t||Qe!==n?(bc=null,gc=Tt()+500,yl(t,n)):pl=te(t,n);e:do try{if(ct!==0&&Pe!==null){n=Pe;var p=Hn;t:switch(ct){case 1:ct=0,Hn=null,xl(t,n,p,1);break;case 2:case 9:if(op(p)){ct=0,Hn=null,Jg(n);break}n=function(){ct!==2&&ct!==9||gt!==t||(ct=7),Ta(t)},p.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:op(p)?(ct=0,Hn=null,Jg(n)):(ct=0,Hn=null,xl(t,n,p,7));break;case 5:var v=null;switch(Pe.tag){case 26:v=Pe.memoizedState;case 5:case 27:var S=Pe;if(v?Ub(v):S.stateNode.complete){ct=0,Hn=null;var R=S.sibling;if(R!==null)Pe=R;else{var G=S.return;G!==null?(Pe=G,vc(G)):Pe=null}break t}}ct=0,Hn=null,xl(t,n,p,5);break;case 6:ct=0,Hn=null,xl(t,n,p,6);break;case 8:Jf(),Ot=6;break e;default:throw Error(l(462))}}D_();break}catch(ee){Yg(t,ee)}while(!0);return $a=hr=null,q.H=s,q.A=f,at=r,Pe!==null?0:(gt=null,Qe=0,Bo(),Ot)}function D_(){for(;Pe!==null&&!Wl();)Wg(Pe)}function Wg(t){var n=_g(t.alternate,t,ei);t.memoizedProps=t.pendingProps,n===null?vc(t):Pe=n}function Jg(t){var n=t,r=n.alternate;switch(n.tag){case 15:case 0:n=gg(r,n,n.pendingProps,n.type,void 0,Qe);break;case 11:n=gg(r,n,n.pendingProps,n.type.render,n.ref,Qe);break;case 5:pf(n);default:wg(r,n),n=Pe=Zm(n,ei),n=_g(r,n,ei)}t.memoizedProps=t.pendingProps,n===null?vc(t):Pe=n}function xl(t,n,r,s){$a=hr=null,pf(n),ol=null,ys=0;var f=n.return;try{if(E_(t,f,n,r,Qe)){Ot=1,sc(t,Zn(r,t.current)),Pe=null;return}}catch(p){if(f!==null)throw Pe=f,p;Ot=1,sc(t,Zn(r,t.current)),Pe=null;return}n.flags&32768?(Xe||s===1?t=!0:pl||(Qe&536870912)!==0?t=!1:(Ci=t=!0,(s===2||s===9||s===3||s===6)&&(s=Bn.current,s!==null&&s.tag===13&&(s.flags|=16384))),eb(n,t)):vc(n)}function vc(t){var n=t;do{if((n.flags&32768)!==0){eb(n,Ci);return}t=n.return;var r=w_(n.alternate,n,ei);if(r!==null){Pe=r;return}if(n=n.sibling,n!==null){Pe=n;return}Pe=n=t}while(n!==null);Ot===0&&(Ot=5)}function eb(t,n){do{var r=N_(t.alternate,t);if(r!==null){r.flags&=32767,Pe=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(t=t.sibling,t!==null)){Pe=t;return}Pe=t=r}while(t!==null);Ot=6,Pe=null}function tb(t,n,r,s,f,p,v,S,R){t.cancelPendingCommit=null;do Ec();while(Qt!==0);if((at&6)!==0)throw Error(l(327));if(n!==null){if(n===t.current)throw Error(l(177));if(p=n.lanes|n.childLanes,p|=Hu,ye(t,r,p,v,S,R),t===gt&&(Pe=gt=null,Qe=0),bl=n,Oi=t,ti=r,Xf=p,Zf=f,$g=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,I_(Ce,function(){return lb(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=q.T,q.T=null,f=le.p,le.p=2,v=at,at|=4;try{k_(t,n,r)}finally{at=v,le.p=f,q.T=s}}Qt=1,nb(),ab(),ib()}}function nb(){if(Qt===1){Qt=0;var t=Oi,n=bl,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=q.T,q.T=null;var s=le.p;le.p=2;var f=at;at|=4;try{jg(n,t);var p=dd,v=qm(t.containerInfo),S=p.focusedElem,R=p.selectionRange;if(v!==S&&S&&S.ownerDocument&&Hm(S.ownerDocument.documentElement,S)){if(R!==null&&ju(S)){var G=R.start,ee=R.end;if(ee===void 0&&(ee=G),"selectionStart"in S)S.selectionStart=G,S.selectionEnd=Math.min(ee,S.value.length);else{var ie=S.ownerDocument||document,K=ie&&ie.defaultView||window;if(K.getSelection){var Y=K.getSelection(),be=S.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 F=Fm(S,Ae),I=Fm(S,ht);if(F&&I&&(Y.rangeCount!==1||Y.anchorNode!==F.node||Y.anchorOffset!==F.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var $=ie.createRange();$.setStart(F.node,F.offset),Y.removeAllRanges(),Ae>ht?(Y.addRange($),Y.extend(I.node,I.offset)):($.setEnd(I.node,I.offset),Y.addRange($))}}}}for(ie=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&ie.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ie.length;S++){var ne=ie[S];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Dc=!!fd,dd=fd=null}finally{at=f,le.p=s,q.T=r}}t.current=n,Qt=2}}function ab(){if(Qt===2){Qt=0;var t=Oi,n=bl,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=q.T,q.T=null;var s=le.p;le.p=2;var f=at;at|=4;try{Og(t,n.alternate,n)}finally{at=f,le.p=s,q.T=r}}Qt=3}}function ib(){if(Qt===4||Qt===3){Qt=0,Fr();var t=Oi,n=bl,r=ti,s=$g;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Qt=5:(Qt=0,bl=Oi=null,rb(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Ri=null),Ia(r),n=n.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Zt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=q.T,f=le.p,le.p=2,q.T=null;try{for(var p=t.onRecoverableError,v=0;v<s.length;v++){var S=s[v];p(S.value,{componentStack:S.stack})}}finally{q.T=n,le.p=f}}(ti&3)!==0&&Ec(),Ta(t),f=t.pendingLanes,(r&261930)!==0&&(f&42)!==0?t===Wf?zs++:(zs=0,Wf=t):zs=0,js(0)}}function rb(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,gs(n)))}function Ec(){return nb(),ab(),ib(),lb()}function lb(){if(Qt!==5)return!1;var t=Oi,n=Xf;Xf=0;var r=Ia(ti),s=q.T,f=le.p;try{le.p=32>r?32:r,q.T=null,r=Zf,Zf=null;var p=Oi,v=ti;if(Qt=0,bl=Oi=null,ti=0,(at&6)!==0)throw Error(l(331));var S=at;if(at|=4,Hg(p.current),Ug(p,p.current,v,r),at=S,js(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Zt,p)}catch{}return!0}finally{le.p=f,q.T=s,rb(t,n)}}function sb(t,n,r){n=Zn(r,n),n=Rf(t.stateNode,n,2),t=wi(t,n,2),t!==null&&(pt(t,2),Ta(t))}function ut(t,n,r){if(t.tag===3)sb(t,t,r);else for(;n!==null;){if(n.tag===3){sb(n,t,r);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ri===null||!Ri.has(s))){t=Zn(r,t),r=og(2),s=wi(n,r,2),s!==null&&(cg(r,s,n,t),pt(s,2),Ta(s));break}}n=n.return}}function td(t,n,r){var s=t.pingCache;if(s===null){s=t.pingCache=new A_;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)||(Qf=!0,f.add(r),t=L_.bind(null,t,n,r),n.then(t,t))}function L_(t,n,r){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,gt===t&&(Qe&r)===r&&(Ot===4||Ot===3&&(Qe&62914560)===Qe&&300>Tt()-pc?(at&2)===0&&yl(t,0):Yf|=r,gl===Qe&&(gl=0)),Ta(t)}function ob(t,n){n===0&&(n=Me()),t=ur(t,n),t!==null&&(pt(t,n),Ta(t))}function z_(t){var n=t.memoizedState,r=0;n!==null&&(r=n.retryLane),ob(t,r)}function j_(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),ob(t,r)}function I_(t,n){return ja(t,n)}var _c=null,vl=null,nd=!1,Sc=!1,ad=!1,Di=0;function Ta(t){t!==vl&&t.next===null&&(vl===null?_c=vl=t:vl=vl.next=t),Sc=!0,nd||(nd=!0,B_())}function js(t,n){if(!ad&&Sc){ad=!0;do for(var r=!1,s=_c;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var p=0;else{var v=s.suspendedLanes,S=s.pingedLanes;p=(1<<31-lt(42|t)+1)-1,p&=f&~(v&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(r=!0,db(s,p))}else p=Qe,p=L(s,s===gt?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||te(s,p)||(r=!0,db(s,p));s=s.next}while(r);ad=!1}}function U_(){cb()}function cb(){Sc=nd=!1;var t=0;Di!==0&&V_()&&(t=Di);for(var n=Tt(),r=null,s=_c;s!==null;){var f=s.next,p=ub(s,n);p===0?(s.next=null,r===null?_c=f:r.next=f,f===null&&(vl=r)):(r=s,(t!==0||(p&3)!==0)&&(Sc=!0)),s=f}Qt!==0&&Qt!==5||js(t),Di!==0&&(Di=0)}function ub(t,n){for(var r=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var v=31-lt(p),S=1<<v,R=f[v];R===-1?((S&r)===0||(S&s)!==0)&&(f[v]=me(S,n)):R<=n&&(t.expiredLanes|=S),p&=~S}if(n=gt,r=Qe,r=L(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&&tr(s),t.callbackNode=null,t.callbackPriority=0;if((r&3)===0||te(t,r)){if(n=r&-r,n===t.callbackPriority)return n;switch(s!==null&&tr(s),Ia(r)){case 2:case 8:r=fe;break;case 32:r=Ce;break;case 268435456:r=Je;break;default:r=Ce}return s=fb.bind(null,t),r=ja(r,s),t.callbackPriority=n,t.callbackNode=r,n}return s!==null&&s!==null&&tr(s),t.callbackPriority=2,t.callbackNode=null,2}function fb(t,n){if(Qt!==0&&Qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(Ec()&&t.callbackNode!==r)return null;var s=Qe;return s=L(t,t===gt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Kg(t,s,n),ub(t,Tt()),t.callbackNode!=null&&t.callbackNode===r?fb.bind(null,t):null)}function db(t,n){if(Ec())return null;Kg(t,n,!0)}function B_(){Z_(function(){(at&6)!==0?ja(J,U_):cb()})}function id(){if(Di===0){var t=rl;t===0&&(t=nr,nr<<=1,(nr&261888)===0&&(nr=256)),Di=t}return Di}function hb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:gi(""+t)}function mb(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 F_(t,n,r,s,f){if(n==="submit"&&r&&r.stateNode===f){var p=hb((f[rn]||null).action),v=s.submitter;v&&(n=(n=v[rn]||null)?hb(n.formAction):v.getAttribute("formAction"),n!==null&&(p=n,v=null));var S=new zo("action","action",null,s,f);t.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Di!==0){var R=v?mb(f,v):new FormData(f);wf(r,{pending:!0,data:R,method:f.method,action:p},null,R)}}else typeof p=="function"&&(S.preventDefault(),R=v?mb(f,v):new FormData(f),wf(r,{pending:!0,data:R,method:f.method,action:p},p,R))},currentTarget:f}]})}}for(var rd=0;rd<Fu.length;rd++){var ld=Fu[rd],H_=ld.toLowerCase(),q_=ld[0].toUpperCase()+ld.slice(1);ha(H_,"on"+q_)}ha(Gm,"onAnimationEnd"),ha(Km,"onAnimationIteration"),ha(Qm,"onAnimationStart"),ha("dblclick","onDoubleClick"),ha("focusin","onFocus"),ha("focusout","onBlur"),ha(i_,"onTransitionRun"),ha(r_,"onTransitionStart"),ha(l_,"onTransitionCancel"),ha(Ym,"onTransitionEnd"),se("onMouseEnter",["mouseout","mouseover"]),se("onMouseLeave",["mouseout","mouseover"]),se("onPointerEnter",["pointerout","pointerover"]),se("onPointerLeave",["pointerout","pointerover"]),Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),P_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Is));function pb(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 p=void 0;if(n)for(var v=s.length-1;0<=v;v--){var S=s[v],R=S.instance,G=S.currentTarget;if(S=S.listener,R!==p&&f.isPropagationStopped())break e;p=S,f.currentTarget=G;try{p(f)}catch(ee){Uo(ee)}f.currentTarget=null,p=R}else for(v=0;v<s.length;v++){if(S=s[v],R=S.instance,G=S.currentTarget,S=S.listener,R!==p&&f.isPropagationStopped())break e;p=S,f.currentTarget=G;try{p(f)}catch(ee){Uo(ee)}f.currentTarget=null,p=R}}}}function $e(t,n){var r=n[Jl];r===void 0&&(r=n[Jl]=new Set);var s=t+"__bubble";r.has(s)||(gb(n,t,2,!1),r.add(s))}function sd(t,n,r){var s=0;n&&(s|=4),gb(r,t,s,n)}var wc="_reactListening"+Math.random().toString(36).slice(2);function od(t){if(!t[wc]){t[wc]=!0,To.forEach(function(r){r!=="selectionchange"&&(P_.has(r)||sd(r,!1,t),sd(r,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[wc]||(n[wc]=!0,sd("selectionchange",!1,n))}}function gb(t,n,r,s){switch(Gb(n)){case 2:var f=b1;break;case 8:f=y1;break;default:f=Sd}r=f.bind(null,n,r,t),f=void 0,!Tu||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 cd(t,n,r,s,f){var p=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=s.stateNode.containerInfo;if(S===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(;S!==null;){if(v=hn(S),v===null)return;if(R=v.tag,R===5||R===6||R===26||R===27){s=p=v;continue e}S=S.parentNode}}s=s.return}Oo(function(){var G=p,ee=ze(r),ie=[];e:{var K=Vm.get(t);if(K!==void 0){var Y=zo,be=t;switch(t){case"keypress":if(Do(r)===0)break e;case"keydown":case"keyup":Y=j0;break;case"focusin":be="focus",Y=Ou;break;case"focusout":be="blur",Y=Ou;break;case"beforeblur":case"afterblur":Y=Ou;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=wm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=w0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=B0;break;case Gm:case Km:case Qm:Y=T0;break;case Ym:Y=H0;break;case"scroll":case"scrollend":Y=_0;break;case"wheel":Y=P0;break;case"copy":case"cut":case"paste":Y=A0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=km;break;case"toggle":case"beforetoggle":Y=G0}var Ae=(n&4)!==0,ht=!Ae&&(t==="scroll"||t==="scrollend"),F=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var I=G,$;I!==null;){var ne=I;if($=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||$===null||F===null||(ne=rs(I,F),ne!=null&&Ae.push(Us(I,ne,$))),ht)break;I=I.return}0<Ae.length&&(K=new Y(K,be,null,r,ee),ie.push({event:K,listeners:Ae}))}}if((n&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",K&&r!==ve&&(be=r.relatedTarget||r.fromElement)&&(hn(be)||be[di]))break e;if((Y||K)&&(K=ee.window===ee?ee:(K=ee.ownerDocument)?K.defaultView||K.parentWindow:window,Y?(be=r.relatedTarget||r.toElement,Y=G,be=be?hn(be):null,be!==null&&(ht=c(be),Ae=be.tag,be!==ht||Ae!==5&&Ae!==27&&Ae!==6)&&(be=null)):(Y=null,be=G),Y!==be)){if(Ae=wm,ne="onMouseLeave",F="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Ae=km,ne="onPointerLeave",F="onPointerEnter",I="pointer"),ht=Y==null?K:hi(Y),$=be==null?K:hi(be),K=new Ae(ne,I+"leave",Y,r,ee),K.target=ht,K.relatedTarget=$,ne=null,hn(ee)===G&&(Ae=new Ae(F,I+"enter",be,r,ee),Ae.target=$,Ae.relatedTarget=ht,ne=Ae),ht=ne,Y&&be)t:{for(Ae=$_,F=Y,I=be,$=0,ne=F;ne;ne=Ae(ne))$++;ne=0;for(var ke=I;ke;ke=Ae(ke))ne++;for(;0<$-ne;)F=Ae(F),$--;for(;0<ne-$;)I=Ae(I),ne--;for(;$--;){if(F===I||I!==null&&F===I.alternate){Ae=F;break t}F=Ae(F),I=Ae(I)}Ae=null}else Ae=null;Y!==null&&bb(ie,K,Y,Ae,!1),be!==null&&ht!==null&&bb(ie,ht,be,Ae,!0)}}e:{if(K=G?hi(G):window,Y=K.nodeName&&K.nodeName.toLowerCase(),Y==="select"||Y==="input"&&K.type==="file")var et=Lm;else if(Mm(K))if(zm)et=t_;else{et=J0;var Ee=W0}else Y=K.nodeName,!Y||Y.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?G&&pi(G.elementType)&&(et=Lm):et=e_;if(et&&(et=et(t,G))){Dm(ie,et,r,ee);break e}Ee&&Ee(t,K,G),t==="focusout"&&G&&K.type==="number"&&G.memoizedProps.value!=null&&Yr(K,"number",K.value)}switch(Ee=G?hi(G):window,t){case"focusin":(Mm(Ee)||Ee.contentEditable==="true")&&(Zr=Ee,Iu=G,hs=null);break;case"focusout":hs=Iu=Zr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,Pm(ie,r,ee);break;case"selectionchange":if(a_)break;case"keydown":case"keyup":Pm(ie,r,ee)}var Ie;if(Du)e:{switch(t){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else Xr?Rm(t,r)&&(Ye="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(Ye="onCompositionStart");Ye&&(Tm&&r.locale!=="ko"&&(Xr||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&Xr&&(Ie=_m()):(bi=ee,Cu="value"in bi?bi.value:bi.textContent,Xr=!0)),Ee=Nc(G,Ye),0<Ee.length&&(Ye=new Nm(Ye,t,null,r,ee),ie.push({event:Ye,listeners:Ee}),Ie?Ye.data=Ie:(Ie=Om(r),Ie!==null&&(Ye.data=Ie)))),(Ie=Q0?Y0(t,r):V0(t,r))&&(Ye=Nc(G,"onBeforeInput"),0<Ye.length&&(Ee=new Nm("onBeforeInput","beforeinput",null,r,ee),ie.push({event:Ee,listeners:Ye}),Ee.data=Ie)),F_(ie,t,G,r,ee)}pb(ie,n)})}function Us(t,n,r){return{instance:t,listener:n,currentTarget:r}}function Nc(t,n){for(var r=n+"Capture",s=[];t!==null;){var f=t,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=rs(t,r),f!=null&&s.unshift(Us(t,f,p)),f=rs(t,n),f!=null&&s.push(Us(t,f,p))),t.tag===3)return s;t=t.return}return[]}function $_(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function bb(t,n,r,s,f){for(var p=n._reactName,v=[];r!==null&&r!==s;){var S=r,R=S.alternate,G=S.stateNode;if(S=S.tag,R!==null&&R===s)break;S!==5&&S!==26&&S!==27||G===null||(R=G,f?(G=rs(r,p),G!=null&&v.unshift(Us(r,G,R))):f||(G=rs(r,p),G!=null&&v.push(Us(r,G,R)))),r=r.return}v.length!==0&&t.push({event:n,listeners:v})}var G_=/\r\n?/g,K_=/\u0000|\uFFFD/g;function yb(t){return(typeof t=="string"?t:""+t).replace(G_,`
|
|
49
|
+
`).replace(K_,"")}function xb(t,n){return n=yb(n),yb(t)===n}function dt(t,n,r,s,f,p){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":zn(t,"class",s);break;case"tabIndex":zn(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":zn(t,r,s);break;case"style":ot(t,s,p);break;case"data":if(n!=="object"){zn(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=gi(""+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 p=="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=gi(""+s),t.setAttribute(r,s);break;case"onClick":s!=null&&(t.onclick=de);break;case"onScroll":s!=null&&$e("scroll",t);break;case"onScrollEnd":s!=null&&$e("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=gi(""+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":$e("beforetoggle",t),$e("toggle",t),ln(t,"popover",s);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ln(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=Fa.get(r)||r,ln(t,r,s))}}function ud(t,n,r,s,f,p){switch(r){case"style":ot(t,s,p);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&&$e("scroll",t);break;case"onScrollEnd":s!=null&&$e("scrollend",t);break;case"onClick":s!=null&&(t.onclick=de);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rr.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),p=t[rn]||null,p=p!=null?p[r]:null,typeof p=="function"&&t.removeEventListener(n,p,f),typeof s=="function")){typeof p!="function"&&p!==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,""):ln(t,r,s)}}}function nn(t,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var s=!1,f=!1,p;for(p in r)if(r.hasOwnProperty(p)){var v=r[p];if(v!=null)switch(p){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,p,v,r,null)}}f&&dt(t,n,"srcSet",r.srcSet,r,null),s&&dt(t,n,"src",r.src,r,null);return;case"input":$e("invalid",t);var S=p=v=f=null,R=null,G=null;for(s in r)if(r.hasOwnProperty(s)){var ee=r[s];if(ee!=null)switch(s){case"name":f=ee;break;case"type":v=ee;break;case"checked":R=ee;break;case"defaultChecked":G=ee;break;case"value":p=ee;break;case"defaultValue":S=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,n));break;default:dt(t,n,s,ee,r,null)}}lr(t,p,S,R,G,v,f,!1);return;case"select":$e("invalid",t),s=v=p=null;for(f in r)if(r.hasOwnProperty(f)&&(S=r[f],S!=null))switch(f){case"value":p=S;break;case"defaultValue":v=S;break;case"multiple":s=S;default:dt(t,n,f,S,r,null)}n=p,r=v,t.multiple=!!s,n!=null?Wt(t,!!s,n,!1):r!=null&&Wt(t,!!s,r,!0);return;case"textarea":$e("invalid",t),p=f=s=null;for(v in r)if(r.hasOwnProperty(v)&&(S=r[v],S!=null))switch(v){case"value":s=S;break;case"defaultValue":f=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(l(91));break;default:dt(t,n,v,S,r,null)}Vr(t,s,f,p);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":$e("beforetoggle",t),$e("toggle",t),$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(s=0;s<Is.length;s++)$e(Is[s],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in r)if(r.hasOwnProperty(G)&&(s=r[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,G,s,r,null)}return;default:if(pi(n)){for(ee in r)r.hasOwnProperty(ee)&&(s=r[ee],s!==void 0&&ud(t,n,ee,s,r,void 0));return}}for(S in r)r.hasOwnProperty(S)&&(s=r[S],s!=null&&dt(t,n,S,s,r,null))}function Q_(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,p=null,v=null,S=null,R=null,G=null,ee=null;for(Y in r){var ie=r[Y];if(r.hasOwnProperty(Y)&&ie!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":R=ie;default:s.hasOwnProperty(Y)||dt(t,n,Y,null,s,ie)}}for(var K in s){var Y=s[K];if(ie=r[K],s.hasOwnProperty(K)&&(Y!=null||ie!=null))switch(K){case"type":p=Y;break;case"name":f=Y;break;case"checked":G=Y;break;case"defaultChecked":ee=Y;break;case"value":v=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,n));break;default:Y!==ie&&dt(t,n,K,Y,s,ie)}}ns(t,v,S,R,G,ee,p,f);return;case"select":Y=v=S=K=null;for(p in r)if(R=r[p],r.hasOwnProperty(p)&&R!=null)switch(p){case"value":break;case"multiple":Y=R;default:s.hasOwnProperty(p)||dt(t,n,p,null,s,R)}for(f in s)if(p=s[f],R=r[f],s.hasOwnProperty(f)&&(p!=null||R!=null))switch(f){case"value":K=p;break;case"defaultValue":S=p;break;case"multiple":v=p;default:p!==R&&dt(t,n,f,p,s,R)}n=S,r=v,s=Y,K!=null?Wt(t,!!r,K,!1):!!s!=!!r&&(n!=null?Wt(t,!!r,n,!0):Wt(t,!!r,r?[]:"",!1));return;case"textarea":Y=K=null;for(S in r)if(f=r[S],r.hasOwnProperty(S)&&f!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:dt(t,n,S,null,s,f)}for(v in s)if(f=s[v],p=r[v],s.hasOwnProperty(v)&&(f!=null||p!=null))switch(v){case"value":K=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==p&&dt(t,n,v,f,s,p)}Ao(t,K,Y);return;case"option":for(var be in r)if(K=r[be],r.hasOwnProperty(be)&&K!=null&&!s.hasOwnProperty(be))switch(be){case"selected":t.selected=!1;break;default:dt(t,n,be,null,s,K)}for(R in s)if(K=s[R],Y=r[R],s.hasOwnProperty(R)&&K!==Y&&(K!=null||Y!=null))switch(R){case"selected":t.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:dt(t,n,R,K,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)K=r[Ae],r.hasOwnProperty(Ae)&&K!=null&&!s.hasOwnProperty(Ae)&&dt(t,n,Ae,null,s,K);for(G in s)if(K=s[G],Y=r[G],s.hasOwnProperty(G)&&K!==Y&&(K!=null||Y!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,n));break;default:dt(t,n,G,K,s,Y)}return;default:if(pi(n)){for(var ht in r)K=r[ht],r.hasOwnProperty(ht)&&K!==void 0&&!s.hasOwnProperty(ht)&&ud(t,n,ht,void 0,s,K);for(ee in s)K=s[ee],Y=r[ee],!s.hasOwnProperty(ee)||K===Y||K===void 0&&Y===void 0||ud(t,n,ee,K,s,Y);return}}for(var F in r)K=r[F],r.hasOwnProperty(F)&&K!=null&&!s.hasOwnProperty(F)&&dt(t,n,F,null,s,K);for(ie in s)K=s[ie],Y=r[ie],!s.hasOwnProperty(ie)||K===Y||K==null&&Y==null||dt(t,n,ie,K,s,Y)}function vb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y_(){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],p=f.transferSize,v=f.initiatorType,S=f.duration;if(p&&S&&vb(v)){for(v=0,S=f.responseEnd,s+=1;s<r.length;s++){var R=r[s],G=R.startTime;if(G>S)break;var ee=R.transferSize,ie=R.initiatorType;ee&&vb(ie)&&(R=R.responseEnd,v+=ee*(R<S?1:(S-G)/(R-G)))}if(--s,n+=8*(p+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 fd=null,dd=null;function kc(t){return t.nodeType===9?t:t.ownerDocument}function Eb(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 _b(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 hd(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 md=null;function V_(){var t=window.event;return t&&t.type==="popstate"?t===md?!1:(md=t,!0):(md=null,!1)}var Sb=typeof setTimeout=="function"?setTimeout:void 0,X_=typeof clearTimeout=="function"?clearTimeout:void 0,wb=typeof Promise=="function"?Promise:void 0,Z_=typeof queueMicrotask=="function"?queueMicrotask:typeof wb<"u"?function(t){return wb.resolve(null).then(t).catch(W_)}:Sb;function W_(t){setTimeout(function(){throw t})}function Li(t){return t==="head"}function Nb(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),wl(n);return}s--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")s++;else if(r==="html")Bs(t.ownerDocument.documentElement);else if(r==="head"){r=t.ownerDocument.head,Bs(r);for(var p=r.firstChild;p;){var v=p.nextSibling,S=p.nodeName;p[ir]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||r.removeChild(p),p=v}}else r==="body"&&Bs(t.ownerDocument.body);r=f}while(r);wl(n)}function kb(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 pd(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":pd(r),es(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}t.removeChild(r)}}function J_(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[ir])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==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(p=t.getAttribute("src"),(p!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=na(t.nextSibling),t===null)break}return null}function e1(t,n,r){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=na(t.nextSibling),t===null))return null;return t}function Tb(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=na(t.nextSibling),t===null))return null;return t}function gd(t){return t.data==="$?"||t.data==="$~"}function bd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function t1(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 na(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 yd=null;function Cb(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"||r==="/&"){if(n===0)return na(t.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}t=t.nextSibling}return null}function Ab(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 Rb(t,n,r){switch(n=kc(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 Bs(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);es(t)}var aa=new Map,Ob=new Set;function Tc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ni=le.d;le.d={f:n1,r:a1,D:i1,C:r1,L:l1,m:s1,X:c1,S:o1,M:u1};function n1(){var t=ni.f(),n=yc();return t||n}function a1(t){var n=Ua(t);n!==null&&n.tag===5&&n.type==="form"?Yp(n):ni.r(t)}var El=typeof document>"u"?null:document;function Mb(t,n,r){var s=El;if(s&&typeof n=="string"&&n){var f=En(n);f='link[rel="'+t+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Ob.has(f)||(Ob.add(f),t={rel:t,crossOrigin:r,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),nn(n,"link",t),Ut(n),s.head.appendChild(n)))}}function i1(t){ni.D(t),Mb("dns-prefetch",t,null)}function r1(t,n){ni.C(t,n),Mb("preconnect",t,n)}function l1(t,n,r){ni.L(t,n,r);var s=El;if(s&&t&&n){var f='link[rel="preload"][as="'+En(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+En(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+En(r.imageSizes)+'"]')):f+='[href="'+En(t)+'"]';var p=f;switch(n){case"style":p=_l(t);break;case"script":p=Sl(t)}aa.has(p)||(t=b({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:t,as:n},r),aa.set(p,t),s.querySelector(f)!==null||n==="style"&&s.querySelector(Fs(p))||n==="script"&&s.querySelector(Hs(p))||(n=s.createElement("link"),nn(n,"link",t),Ut(n),s.head.appendChild(n)))}}function s1(t,n){ni.m(t,n);var r=El;if(r&&t){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+En(s)+'"][href="'+En(t)+'"]',p=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Sl(t)}if(!aa.has(p)&&(t=b({rel:"modulepreload",href:t},n),aa.set(p,t),r.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Hs(p)))return}s=r.createElement("link"),nn(s,"link",t),Ut(s),r.head.appendChild(s)}}}function o1(t,n,r){ni.S(t,n,r);var s=El;if(s&&t){var f=mi(s).hoistableStyles,p=_l(t);n=n||"default";var v=f.get(p);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(Fs(p)))S.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":n},r),(r=aa.get(p))&&xd(t,r);var R=v=s.createElement("link");Ut(R),nn(R,"link",t),R._p=new Promise(function(G,ee){R.onload=G,R.onerror=ee}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Cc(v,n,s)}v={type:"stylesheet",instance:v,count:1,state:S},f.set(p,v)}}}function c1(t,n){ni.X(t,n);var r=El;if(r&&t){var s=mi(r).hoistableScripts,f=Sl(t),p=s.get(f);p||(p=r.querySelector(Hs(f)),p||(t=b({src:t,async:!0},n),(n=aa.get(f))&&vd(t,n),p=r.createElement("script"),Ut(p),nn(p,"link",t),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function u1(t,n){ni.M(t,n);var r=El;if(r&&t){var s=mi(r).hoistableScripts,f=Sl(t),p=s.get(f);p||(p=r.querySelector(Hs(f)),p||(t=b({src:t,async:!0,type:"module"},n),(n=aa.get(f))&&vd(t,n),p=r.createElement("script"),Ut(p),nn(p,"link",t),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function Db(t,n,r,s){var f=(f=xe.current)?Tc(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=_l(r.href),r=mi(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=_l(r.href);var p=mi(f).hoistableStyles,v=p.get(t);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,v),(p=f.querySelector(Fs(t)))&&!p._p&&(v.instance=p,v.state.loading=5),aa.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},aa.set(t,r),p||f1(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=Sl(r),r=mi(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 _l(t){return'href="'+En(t)+'"'}function Fs(t){return'link[rel="stylesheet"]['+t+"]"}function Lb(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function f1(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}),nn(n,"link",r),Ut(n),t.head.appendChild(n))}function Sl(t){return'[src="'+En(t)+'"]'}function Hs(t){return"script[async]"+t}function zb(t,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+En(r.href)+'"]');if(s)return n.instance=s,Ut(s),s;var f=b({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),Ut(s),nn(s,"style",f),Cc(s,r.precedence,t),n.instance=s;case"stylesheet":f=_l(r.href);var p=t.querySelector(Fs(f));if(p)return n.state.loading|=4,n.instance=p,Ut(p),p;s=Lb(r),(f=aa.get(f))&&xd(s,f),p=(t.ownerDocument||t).createElement("link"),Ut(p);var v=p;return v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),nn(p,"link",s),n.state.loading|=4,Cc(p,r.precedence,t),n.instance=p;case"script":return p=Sl(r.src),(f=t.querySelector(Hs(p)))?(n.instance=f,Ut(f),f):(s=r,(f=aa.get(p))&&(s=b({},r),vd(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),Ut(f),nn(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,Cc(s,r.precedence,t));return n.instance}function Cc(t,n,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,p=f,v=0;v<s.length;v++){var S=s[v];if(S.dataset.precedence===n)p=S;else if(p!==f)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(t,n.firstChild))}function xd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function vd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var Ac=null;function jb(t,n,r){if(Ac===null){var s=new Map,f=Ac=new Map;f.set(r,s)}else f=Ac,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 p=r[f];if(!(p[ir]||p[Lt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(n)||"";v=t+v;var S=s.get(v);S?S.push(p):s.set(v,[p])}}return s}function Ib(t,n,r){t=t.ownerDocument||t,t.head.insertBefore(r,n==="title"?t.querySelector("head > title"):null)}function d1(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 Ub(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function h1(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=_l(s.href),p=n.querySelector(Fs(f));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Rc.bind(t),n.then(t,t)),r.state.loading|=4,r.instance=p,Ut(p);return}p=n.ownerDocument||n,s=Lb(s),(f=aa.get(f))&&xd(s,f),p=p.createElement("link"),Ut(p);var v=p;v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),nn(p,"link",s),r.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(t.count++,r=Rc.bind(t),n.addEventListener("load",r),n.addEventListener("error",r))}}var Ed=0;function m1(t,n){return t.stylesheets&&t.count===0&&Mc(t,t.stylesheets),0<t.count||0<t.imgCount?function(r){var s=setTimeout(function(){if(t.stylesheets&&Mc(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+n);0<t.imgBytes&&Ed===0&&(Ed=62500*Y_());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Mc(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Ed?50:800)+n);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Oc=null;function Mc(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Oc=new Map,n.forEach(p1,t),Oc=null,Rc.call(t))}function p1(t,n){if(!(n.state.loading&4)){var r=Oc.get(t);if(r)var s=r.get(null);else{r=new Map,Oc.set(t,r);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var v=f[p];(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"),p=r.get(v)||s,p===s&&r.set(null,f),r.set(v,f),this.count++,s=Rc.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),p?p.parentNode.insertBefore(f,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),n.state.loading|=4}}var qs={$$typeof:z,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function g1(t,n,r,s,f,p,v,S,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=vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.hiddenUpdates=vt(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Bb(t,n,r,s,f,p,v,S,R,G,ee,ie){return t=new g1(t,n,r,v,R,G,ee,ie,S),n=1,p===!0&&(n|=24),p=Un(3,null,null,n),t.current=p,p.stateNode=t,n=Ju(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:s,isDehydrated:r,cache:n},af(p),t}function Fb(t){return t?(t=el,t):el}function Hb(t,n,r,s,f,p){f=Fb(f),s.context===null?s.context=f:s.pendingContext=f,s=Si(n),s.payload={element:r},p=p===void 0?null:p,p!==null&&(s.callback=p),r=wi(t,s,n),r!==null&&(Tn(r,t,n),vs(r,t,n))}function qb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<n?r:n}}function _d(t,n){qb(t,n),(t=t.alternate)&&qb(t,n)}function Pb(t){if(t.tag===13||t.tag===31){var n=ur(t,67108864);n!==null&&Tn(n,t,67108864),_d(t,67108864)}}function $b(t){if(t.tag===13||t.tag===31){var n=Pn();n=St(n);var r=ur(t,n);r!==null&&Tn(r,t,n),_d(t,n)}}var Dc=!0;function b1(t,n,r,s){var f=q.T;q.T=null;var p=le.p;try{le.p=2,Sd(t,n,r,s)}finally{le.p=p,q.T=f}}function y1(t,n,r,s){var f=q.T;q.T=null;var p=le.p;try{le.p=8,Sd(t,n,r,s)}finally{le.p=p,q.T=f}}function Sd(t,n,r,s){if(Dc){var f=wd(s);if(f===null)cd(t,n,s,Lc,r),Kb(t,s);else if(v1(f,t,n,r,s))s.stopPropagation();else if(Kb(t,s),n&4&&-1<x1.indexOf(t)){for(;f!==null;){var p=Ua(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=xn(p.pendingLanes);if(v!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var R=1<<31-lt(v);S.entanglements[1]|=R,v&=~R}Ta(p),(at&6)===0&&(gc=Tt()+500,js(0))}}break;case 31:case 13:S=ur(p,2),S!==null&&Tn(S,p,2),yc(),_d(p,2)}if(p=wd(s),p===null&&cd(t,n,s,Lc,r),p===f)break;f=p}f!==null&&s.stopPropagation()}else cd(t,n,s,null,r)}}function wd(t){return t=ze(t),Nd(t)}var Lc=null;function Nd(t){if(Lc=null,t=hn(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 Lc=t,null}function Gb(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(Hr()){case J:return 2;case fe:return 8;case Ce:case He:return 32;case Je:return 268435456;default:return 32}default:return 32}}var kd=!1,zi=null,ji=null,Ii=null,Ps=new Map,$s=new Map,Ui=[],x1="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 Kb(t,n){switch(t){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":Ps.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(n.pointerId)}}function Gs(t,n,r,s,f,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:r,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]},n!==null&&(n=Ua(n),n!==null&&Pb(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function v1(t,n,r,s,f){switch(n){case"focusin":return zi=Gs(zi,t,n,r,s,f),!0;case"dragenter":return ji=Gs(ji,t,n,r,s,f),!0;case"mouseover":return Ii=Gs(Ii,t,n,r,s,f),!0;case"pointerover":var p=f.pointerId;return Ps.set(p,Gs(Ps.get(p)||null,t,n,r,s,f)),!0;case"gotpointercapture":return p=f.pointerId,$s.set(p,Gs($s.get(p)||null,t,n,r,s,f)),!0}return!1}function Qb(t){var n=hn(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,$r(t.priority,function(){$b(r)});return}}else if(n===31){if(n=d(r),n!==null){t.blockedOn=n,$r(t.priority,function(){$b(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 zc(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var r=wd(t.nativeEvent);if(r===null){r=t.nativeEvent;var s=new r.constructor(r.type,r);ve=s,r.target.dispatchEvent(s),ve=null}else return n=Ua(r),n!==null&&Pb(n),t.blockedOn=r,!1;n.shift()}return!0}function Yb(t,n,r){zc(t)&&r.delete(n)}function E1(){kd=!1,zi!==null&&zc(zi)&&(zi=null),ji!==null&&zc(ji)&&(ji=null),Ii!==null&&zc(Ii)&&(Ii=null),Ps.forEach(Yb),$s.forEach(Yb)}function jc(t,n){t.blockedOn===n&&(t.blockedOn=null,kd||(kd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,E1)))}var Ic=null;function Vb(t){Ic!==t&&(Ic=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ic===t&&(Ic=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(Nd(s||r)===null)continue;break}var p=Ua(r);p!==null&&(t.splice(n,3),n-=3,wf(p,{pending:!0,data:f,method:r.method,action:s},s,f))}}))}function wl(t){function n(R){return jc(R,t)}zi!==null&&jc(zi,t),ji!==null&&jc(ji,t),Ii!==null&&jc(Ii,t),Ps.forEach(n),$s.forEach(n);for(var r=0;r<Ui.length;r++){var s=Ui[r];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Ui.length&&(r=Ui[0],r.blockedOn===null);)Qb(r),r.blockedOn===null&&Ui.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var f=r[s],p=r[s+1],v=f[rn]||null;if(typeof p=="function")v||Vb(r);else if(v){var S=null;if(p&&p.hasAttribute("formAction")){if(f=p,v=p[rn]||null)S=v.formAction;else if(Nd(f)!==null)continue}else S=v.action;typeof S=="function"?r[s+1]=S:(r.splice(s,3),s-=3),Vb(r)}}}function Xb(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.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 p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,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 Td(t){this._internalRoot=t}Uc.prototype.render=Td.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var r=n.current,s=Pn();Hb(r,s,t,n,null,null)},Uc.prototype.unmount=Td.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Hb(t.current,2,null,t,null,null),yc(),n[di]=null}};function Uc(t){this._internalRoot=t}Uc.prototype.unstable_scheduleHydration=function(t){if(t){var n=Pr();t={blockedOn:null,target:t,priority:n};for(var r=0;r<Ui.length&&n!==0&&n<Ui[r].priority;r++);Ui.splice(r,0,t),r===0&&Qb(t)}};var Zb=a.version;if(Zb!=="19.2.5")throw Error(l(527,Zb,"19.2.5"));le.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?y(t):null,t=t===null?null:t.stateNode,t};var _1={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bc.isDisabled&&Bc.supportsFiber)try{Zt=Bc.inject(_1),At=Bc}catch{}}return Qs.createRoot=function(t,n){if(!o(t))throw Error(l(299));var r=!1,s="",f=ig,p=rg,v=lg;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&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=Bb(t,1,!1,null,null,r,s,null,f,p,v,Xb),t[di]=n.current,od(t),new Td(n)},Qs.hydrateRoot=function(t,n,r){if(!o(t))throw Error(l(299));var s=!1,f="",p=ig,v=rg,S=lg,R=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),n=Bb(t,1,!0,n,r??null,s,f,R,p,v,S,Xb),n.context=Fb(null),r=n.current,s=Pn(),s=St(s),f=Si(s),f.callback=null,wi(r,f,s),r=s,n.current.lanes=r,pt(n,r),Ta(n),t[di]=n.current,od(t),new Uc(n)},Qs.version="19.2.5",Qs}var cy;function L1(){if(cy)return Od.exports;cy=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(),Od.exports=D1(),Od.exports}var z1=L1(),$l=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(){}},Tr,qi,Ol,Lx,j1=(Lx=class extends $l{constructor(){super();we(this,Tr);we(this,qi);we(this,Ol);pe(this,Ol,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){D(this,qi)||this.setEventListener(D(this,Ol))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,qi))==null||a.call(this),pe(this,qi,void 0))}setEventListener(a){var i;pe(this,Ol,a),(i=D(this,qi))==null||i.call(this),pe(this,qi,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){D(this,Tr)!==a&&(pe(this,Tr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof D(this,Tr)=="boolean"?D(this,Tr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Tr=new WeakMap,qi=new WeakMap,Ol=new WeakMap,Lx),Ih=new j1,I1={setTimeout:(e,a)=>setTimeout(e,a),clearTimeout:e=>clearTimeout(e),setInterval:(e,a)=>setInterval(e,a),clearInterval:e=>clearInterval(e)},Pi,Lh,zx,U1=(zx=class{constructor(){we(this,Pi,I1);we(this,Lh,!1)}setTimeoutProvider(e){pe(this,Pi,e)}setTimeout(e,a){return D(this,Pi).setTimeout(e,a)}clearTimeout(e){D(this,Pi).clearTimeout(e)}setInterval(e,a){return D(this,Pi).setInterval(e,a)}clearInterval(e){D(this,Pi).clearInterval(e)}},Pi=new WeakMap,Lh=new WeakMap,zx),kr=new U1;function B1(e){setTimeout(e,0)}var F1=typeof window>"u"||"Deno"in globalThis;function bn(){}function H1(e,a){return typeof e=="function"?e(a):e}function rh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gx(e,a){return Math.max(e+(a||0)-Date.now(),0)}function Zi(e,a){return typeof e=="function"?e(a):e}function ra(e,a){return typeof e=="function"?e(a):e}function uy(e,a){const{type:i="all",exact:l,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(l){if(a.queryHash!==Uh(u,a.options))return!1}else if(!io(a.queryKey,u))return!1}if(i!=="all"){const m=a.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof d=="boolean"&&a.isStale()!==d||o&&o!==a.state.fetchStatus||c&&!c(a))}function fy(e,a){const{exact:i,status:l,predicate:o,mutationKey:c}=e;if(c){if(!a.options.mutationKey)return!1;if(i){if(jr(a.options.mutationKey)!==jr(c))return!1}else if(!io(a.options.mutationKey,c))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function Uh(e,a){return((a==null?void 0:a.queryKeyHashFn)||jr)(e)}function jr(e){return JSON.stringify(e,(a,i)=>lh(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function io(e,a){return e===a?!0:typeof e!=typeof a?!1:e&&a&&typeof e=="object"&&typeof a=="object"?Object.keys(a).every(i=>io(e[i],a[i])):!1}var q1=Object.prototype.hasOwnProperty;function Kx(e,a,i=0){if(e===a)return e;if(i>500)return a;const l=dy(e)&&dy(a);if(!l&&!(lh(e)&&lh(a)))return a;const c=(l?e:Object.keys(e)).length,u=l?a:Object.keys(a),d=u.length,m=l?new Array(d):{};let h=0;for(let y=0;y<d;y++){const b=l?y:u[y],x=e[b],E=a[b];if(x===E){m[b]=x,(l?y<c:q1.call(e,b))&&h++;continue}if(x===null||E===null||typeof x!="object"||typeof E!="object"){m[b]=E;continue}const _=Kx(x,E,i+1);m[b]=_,_===x&&h++}return c===d&&h===c?e:m}function au(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 dy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lh(e){if(!hy(e))return!1;const a=e.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!hy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hy(e){return Object.prototype.toString.call(e)==="[object Object]"}function P1(e){return new Promise(a=>{kr.setTimeout(a,e)})}function sh(e,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,a):i.structuralSharing!==!1?Kx(e,a):a}function $1(e,a,i=0){const l=[...e,a];return i&&l.length>i?l.slice(1):l}function G1(e,a,i=0){const l=[a,...e];return i&&l.length>i?l.slice(0,-1):l}var Bh=Symbol();function Qx(e,a){return!e.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!e.queryFn||e.queryFn===Bh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Fh(e,a){return typeof e=="function"?e(...a):!!e}function K1(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 ro=(()=>{let e=()=>F1;return{isServer(){return e()},setIsServer(a){e=a}}})();function oh(){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 Q1=B1;function Y1(){let e=[],a=0,i=d=>{d()},l=d=>{d()},o=Q1;const c=d=>{a?e.push(d):o(()=>{i(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{l(()=>{d.forEach(m=>{i(m)})})})};return{batch:d=>{let m;a++;try{m=d()}finally{a--,a||u()}return m},batchCalls:d=>(...m)=>{c(()=>{d(...m)})},schedule:c,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{o=d}}}var Yt=Y1(),Ml,$i,Dl,jx,V1=(jx=class extends $l{constructor(){super();we(this,Ml,!0);we(this,$i);we(this,Dl);pe(this,Dl,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(){D(this,$i)||this.setEventListener(D(this,Dl))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,$i))==null||a.call(this),pe(this,$i,void 0))}setEventListener(a){var i;pe(this,Dl,a),(i=D(this,$i))==null||i.call(this),pe(this,$i,a(this.setOnline.bind(this)))}setOnline(a){D(this,Ml)!==a&&(pe(this,Ml,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return D(this,Ml)}},Ml=new WeakMap,$i=new WeakMap,Dl=new WeakMap,jx),iu=new V1;function X1(e){return Math.min(1e3*2**e,3e4)}function Yx(e){return(e??"online")==="online"?iu.isOnline():!0}var ch=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vx(e){let a=!1,i=0,l;const o=oh(),c=()=>o.status!=="pending",u=w=>{var T;if(!c()){const N=new ch(w);x(N),(T=e.onCancel)==null||T.call(e,N)}},d=()=>{a=!0},m=()=>{a=!1},h=()=>Ih.isFocused()&&(e.networkMode==="always"||iu.isOnline())&&e.canRun(),y=()=>Yx(e.networkMode)&&e.canRun(),b=w=>{c()||(l==null||l(),o.resolve(w))},x=w=>{c()||(l==null||l(),o.reject(w))},E=()=>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)}),_=()=>{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(b).catch(N=>{var A;if(c())return;const U=e.retry??(ro.isServer()?0:3),z=e.retryDelay??X1,P=typeof z=="function"?z(i,N):z,Z=U===!0||typeof U=="number"&&i<U||typeof U=="function"&&U(i,N);if(a||!Z){x(N);return}i++,(A=e.onFail)==null||A.call(e,i,N),P1(P).then(()=>h()?void 0:E()).then(()=>{a?x(N):_()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(l==null||l(),o),cancelRetry:d,continueRetry:m,canStart:y,start:()=>(y()?_():E().then(_),o)}}var Cr,Ix,Xx=(Ix=class{constructor(){we(this,Cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rh(this.gcTime)&&pe(this,Cr,kr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ro.isServer()?1/0:300*1e3))}clearGcTimeout(){D(this,Cr)!==void 0&&(kr.clearTimeout(D(this,Cr)),pe(this,Cr,void 0))}},Cr=new WeakMap,Ix),Ar,Ll,ia,Rr,Xt,co,Or,Gn,Zx,ai,Ux,Z1=(Ux=class extends Xx{constructor(a){super();we(this,Gn);we(this,Ar);we(this,Ll);we(this,ia);we(this,Rr);we(this,Xt);we(this,co);we(this,Or);pe(this,Or,!1),pe(this,co,a.defaultOptions),this.setOptions(a.options),this.observers=[],pe(this,Rr,a.client),pe(this,ia,D(this,Rr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,pe(this,Ar,py(this.options)),this.state=a.state??D(this,Ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,Xt))==null?void 0:a.promise}setOptions(a){if(this.options={...D(this,co),...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=py(this.options);i.data!==void 0&&(this.setState(my(i.data,i.dataUpdatedAt)),pe(this,Ar,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,ia).remove(this)}setData(a,i){const l=sh(this.state.data,a,this.options);return Ue(this,Gn,ai).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(a,i){Ue(this,Gn,ai).call(this,{type:"setState",state:a,setStateOptions:i})}cancel(a){var l,o;const i=(l=D(this,Xt))==null?void 0:l.promise;return(o=D(this,Xt))==null||o.cancel(a),i?i.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(this,Ar)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>ra(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Zi(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:!Gx(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=D(this,Xt))==null||i.continue()}onOnline(){var i;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=D(this,Xt))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,ia).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(D(this,Xt)&&(D(this,Or)||Ue(this,Gn,Zx).call(this)?D(this,Xt).cancel({revert:!0}):D(this,Xt).cancelRetry()),this.scheduleGc()),D(this,ia).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,Gn,ai).call(this,{type:"invalidate"})}async fetch(a,i){var m,h,y,b,x,E,_,w,T,N,U,z;if(this.state.fetchStatus!=="idle"&&((m=D(this,Xt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(D(this,Xt))return D(this,Xt).continueRetry(),D(this,Xt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const P=this.observers.find(Z=>Z.options.queryFn);P&&this.setOptions(P.options)}const l=new AbortController,o=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(pe(this,Or,!0),l.signal)})},c=()=>{const P=Qx(this.options,i),A=(()=>{const V={client:D(this,Rr),queryKey:this.queryKey,meta:this.meta};return o(V),V})();return pe(this,Or,!1),this.options.persister?this.options.persister(P,A,this):P(A)},d=(()=>{const P={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:D(this,Rr),state:this.state,fetchFn:c};return o(P),P})();(h=this.options.behavior)==null||h.onFetch(d,this),pe(this,Ll,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&Ue(this,Gn,ai).call(this,{type:"fetch",meta:(b=d.fetchOptions)==null?void 0:b.meta}),pe(this,Xt,Vx({initialPromise:i==null?void 0:i.initialPromise,fn:d.fetchFn,onCancel:P=>{P instanceof ch&&P.revert&&this.setState({...D(this,Ll),fetchStatus:"idle"}),l.abort()},onFail:(P,Z)=>{Ue(this,Gn,ai).call(this,{type:"failed",failureCount:P,error:Z})},onPause:()=>{Ue(this,Gn,ai).call(this,{type:"pause"})},onContinue:()=>{Ue(this,Gn,ai).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const P=await D(this,Xt).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(E=(x=D(this,ia).config).onSuccess)==null||E.call(x,P,this),(w=(_=D(this,ia).config).onSettled)==null||w.call(_,P,this.state.error,this),P}catch(P){if(P instanceof ch){if(P.silent)return D(this,Xt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Ue(this,Gn,ai).call(this,{type:"error",error:P}),(N=(T=D(this,ia).config).onError)==null||N.call(T,P,this),(z=(U=D(this,ia).config).onSettled)==null||z.call(U,this.state.data,P,this),P}finally{this.scheduleGc()}}},Ar=new WeakMap,Ll=new WeakMap,ia=new WeakMap,Rr=new WeakMap,Xt=new WeakMap,co=new WeakMap,Or=new WeakMap,Gn=new WeakSet,Zx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ai=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,...Wx(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,...my(a.data,a.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return pe(this,Ll,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),Yt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),D(this,ia).notify({query:this,type:"updated",action:a})})},Ux);function Wx(e,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yx(a.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function my(e,a){return{data:e,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function py(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 Rn,Ze,uo,pn,Mr,zl,ii,Gi,fo,jl,Il,Dr,Lr,Ki,Ul,it,eo,uh,fh,dh,hh,mh,ph,gh,Jx,Bx,W1=(Bx=class extends $l{constructor(a,i){super();we(this,it);we(this,Rn);we(this,Ze);we(this,uo);we(this,pn);we(this,Mr);we(this,zl);we(this,ii);we(this,Gi);we(this,fo);we(this,jl);we(this,Il);we(this,Dr);we(this,Lr);we(this,Ki);we(this,Ul,new Set);this.options=i,pe(this,Rn,a),pe(this,Gi,null),pe(this,ii,oh()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Ze).addObserver(this),gy(D(this,Ze),this.options)?Ue(this,it,eo).call(this):this.updateResult(),Ue(this,it,hh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bh(D(this,Ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bh(D(this,Ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,it,mh).call(this),Ue(this,it,ph).call(this),D(this,Ze).removeObserver(this)}setOptions(a){const i=this.options,l=D(this,Ze);if(this.options=D(this,Rn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ra(this.options.enabled,D(this,Ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,it,gh).call(this),D(this,Ze).setOptions(this.options),i._defaulted&&!au(this.options,i)&&D(this,Rn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Ze),observer:this});const o=this.hasListeners();o&&by(D(this,Ze),l,this.options,i)&&Ue(this,it,eo).call(this),this.updateResult(),o&&(D(this,Ze)!==l||ra(this.options.enabled,D(this,Ze))!==ra(i.enabled,D(this,Ze))||Zi(this.options.staleTime,D(this,Ze))!==Zi(i.staleTime,D(this,Ze)))&&Ue(this,it,uh).call(this);const c=Ue(this,it,fh).call(this);o&&(D(this,Ze)!==l||ra(this.options.enabled,D(this,Ze))!==ra(i.enabled,D(this,Ze))||c!==D(this,Ki))&&Ue(this,it,dh).call(this,c)}getOptimisticResult(a){const i=D(this,Rn).getQueryCache().build(D(this,Rn),a),l=this.createResult(i,a);return eS(this,l)&&(pe(this,pn,l),pe(this,zl,this.options),pe(this,Mr,D(this,Ze).state)),l}getCurrentResult(){return D(this,pn)}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&&D(this,ii).status==="pending"&&D(this,ii).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){D(this,Ul).add(a)}getCurrentQuery(){return D(this,Ze)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=D(this,Rn).defaultQueryOptions(a),l=D(this,Rn).getQueryCache().build(D(this,Rn),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(a){return Ue(this,it,eo).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,pn)))}createResult(a,i){var ae;const l=D(this,Ze),o=this.options,c=D(this,pn),u=D(this,Mr),d=D(this,zl),h=a!==l?a.state:D(this,uo),{state:y}=a;let b={...y},x=!1,E;if(i._optimisticResults){const j=this.hasListeners(),B=!j&&gy(a,i),Q=j&&by(a,l,i,o);(B||Q)&&(b={...b,...Wx(y.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:T}=b;E=b.data;let N=!1;if(i.placeholderData!==void 0&&E===void 0&&T==="pending"){let j;c!=null&&c.isPlaceholderData&&i.placeholderData===(d==null?void 0:d.placeholderData)?(j=c.data,N=!0):j=typeof i.placeholderData=="function"?i.placeholderData((ae=D(this,Il))==null?void 0:ae.state.data,D(this,Il)):i.placeholderData,j!==void 0&&(T="success",E=sh(c==null?void 0:c.data,j,i),x=!0)}if(i.select&&E!==void 0&&!N)if(c&&E===(u==null?void 0:u.data)&&i.select===D(this,fo))E=D(this,jl);else try{pe(this,fo,i.select),E=i.select(E),E=sh(c==null?void 0:c.data,E,i),pe(this,jl,E),pe(this,Gi,null)}catch(j){pe(this,Gi,j)}D(this,Gi)&&(_=D(this,Gi),E=D(this,jl),w=Date.now(),T="error");const U=b.fetchStatus==="fetching",z=T==="pending",P=T==="error",Z=z&&U,A=E!==void 0,H={status:T,fetchStatus:b.fetchStatus,isPending:z,isSuccess:T==="success",isError:P,isInitialLoading:Z,isLoading:Z,data:E,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:b.dataUpdateCount>h.dataUpdateCount||b.errorUpdateCount>h.errorUpdateCount,isFetching:U,isRefetching:U&&!z,isLoadingError:P&&!A,isPaused:b.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:P&&A,isStale:Hh(a,i),refetch:this.refetch,promise:D(this,ii),isEnabled:ra(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const j=H.data!==void 0,B=H.status==="error"&&!j,Q=W=>{B?W.reject(H.error):j&&W.resolve(H.data)},oe=()=>{const W=pe(this,ii,H.promise=oh());Q(W)},re=D(this,ii);switch(re.status){case"pending":a.queryHash===l.queryHash&&Q(re);break;case"fulfilled":(B||H.data!==re.value)&&oe();break;case"rejected":(!B||H.error!==re.reason)&&oe();break}}return H}updateResult(){const a=D(this,pn),i=this.createResult(D(this,Ze),this.options);if(pe(this,Mr,D(this,Ze).state),pe(this,zl,this.options),D(this,Mr).data!==void 0&&pe(this,Il,D(this,Ze)),au(i,a))return;pe(this,pn,i);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!D(this,Ul).size)return!0;const u=new Set(c??D(this,Ul));return this.options.throwOnError&&u.add("error"),Object.keys(D(this,pn)).some(d=>{const m=d;return D(this,pn)[m]!==a[m]&&u.has(m)})};Ue(this,it,Jx).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,it,hh).call(this)}},Rn=new WeakMap,Ze=new WeakMap,uo=new WeakMap,pn=new WeakMap,Mr=new WeakMap,zl=new WeakMap,ii=new WeakMap,Gi=new WeakMap,fo=new WeakMap,jl=new WeakMap,Il=new WeakMap,Dr=new WeakMap,Lr=new WeakMap,Ki=new WeakMap,Ul=new WeakMap,it=new WeakSet,eo=function(a){Ue(this,it,gh).call(this);let i=D(this,Ze).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(bn)),i},uh=function(){Ue(this,it,mh).call(this);const a=Zi(this.options.staleTime,D(this,Ze));if(ro.isServer()||D(this,pn).isStale||!rh(a))return;const l=Gx(D(this,pn).dataUpdatedAt,a)+1;pe(this,Dr,kr.setTimeout(()=>{D(this,pn).isStale||this.updateResult()},l))},fh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Ze)):this.options.refetchInterval)??!1},dh=function(a){Ue(this,it,ph).call(this),pe(this,Ki,a),!(ro.isServer()||ra(this.options.enabled,D(this,Ze))===!1||!rh(D(this,Ki))||D(this,Ki)===0)&&pe(this,Lr,kr.setInterval(()=>{(this.options.refetchIntervalInBackground||Ih.isFocused())&&Ue(this,it,eo).call(this)},D(this,Ki)))},hh=function(){Ue(this,it,uh).call(this),Ue(this,it,dh).call(this,Ue(this,it,fh).call(this))},mh=function(){D(this,Dr)!==void 0&&(kr.clearTimeout(D(this,Dr)),pe(this,Dr,void 0))},ph=function(){D(this,Lr)!==void 0&&(kr.clearInterval(D(this,Lr)),pe(this,Lr,void 0))},gh=function(){const a=D(this,Rn).getQueryCache().build(D(this,Rn),this.options);if(a===D(this,Ze))return;const i=D(this,Ze);pe(this,Ze,a),pe(this,uo,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},Jx=function(a){Yt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(D(this,pn))}),D(this,Rn).getQueryCache().notify({query:D(this,Ze),type:"observerResultsUpdated"})})},Bx);function J1(e,a){return ra(a.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&a.retryOnMount===!1)}function gy(e,a){return J1(e,a)||e.state.data!==void 0&&bh(e,a,a.refetchOnMount)}function bh(e,a,i){if(ra(a.enabled,e)!==!1&&Zi(a.staleTime,e)!=="static"){const l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&Hh(e,a)}return!1}function by(e,a,i,l){return(e!==a||ra(l.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&Hh(e,i)}function Hh(e,a){return ra(a.enabled,e)!==!1&&e.isStaleByTime(Zi(a.staleTime,e))}function eS(e,a){return!au(e.getCurrentResult(),a)}function yy(e){return{onFetch:(a,i)=>{var y,b,x,E,_;const l=a.options,o=(x=(b=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:x.direction,c=((E=a.state.data)==null?void 0:E.pages)||[],u=((_=a.state.data)==null?void 0:_.pageParams)||[];let d={pages:[],pageParams:[]},m=0;const h=async()=>{let w=!1;const T=z=>{K1(z,()=>a.signal,()=>w=!0)},N=Qx(a.options,a.fetchOptions),U=async(z,P,Z)=>{if(w)return Promise.reject();if(P==null&&z.pages.length)return Promise.resolve(z);const V=(()=>{const B={client:a.client,queryKey:a.queryKey,pageParam:P,direction:Z?"backward":"forward",meta:a.options.meta};return T(B),B})(),H=await N(V),{maxPages:ae}=a.options,j=Z?G1:$1;return{pages:j(z.pages,H,ae),pageParams:j(z.pageParams,P,ae)}};if(o&&c.length){const z=o==="backward",P=z?tS:xy,Z={pages:c,pageParams:u},A=P(l,Z);d=await U(Z,A,z)}else{const z=e??c.length;do{const P=m===0?u[0]??l.initialPageParam:xy(l,d);if(m>0&&P==null)break;d=await U(d,P),m++}while(m<z)}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 xy(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 tS(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 ho,Ra,on,zr,Oa,Hi,Fx,nS=(Fx=class extends Xx{constructor(a){super();we(this,Oa);we(this,ho);we(this,Ra);we(this,on);we(this,zr);pe(this,ho,a.client),this.mutationId=a.mutationId,pe(this,on,a.mutationCache),pe(this,Ra,[]),this.state=a.state||ev(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,Ra).includes(a)||(D(this,Ra).push(a),this.clearGcTimeout(),D(this,on).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){pe(this,Ra,D(this,Ra).filter(i=>i!==a)),this.scheduleGc(),D(this,on).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():D(this,on).remove(this))}continue(){var a;return((a=D(this,zr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,d,m,h,y,b,x,E,_,w,T,N,U,z,P,Z,A,V;const i=()=>{Ue(this,Oa,Hi).call(this,{type:"continue"})},l={client:D(this,ho),meta:this.options.meta,mutationKey:this.options.mutationKey};pe(this,zr,Vx({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(H,ae)=>{Ue(this,Oa,Hi).call(this,{type:"failed",failureCount:H,error:ae})},onPause:()=>{Ue(this,Oa,Hi).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,on).canRun(this)}));const o=this.state.status==="pending",c=!D(this,zr).canStart();try{if(o)i();else{Ue(this,Oa,Hi).call(this,{type:"pending",variables:a,isPaused:c}),D(this,on).config.onMutate&&await D(this,on).config.onMutate(a,this,l);const ae=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,a,l));ae!==this.state.context&&Ue(this,Oa,Hi).call(this,{type:"pending",context:ae,variables:a,isPaused:c})}const H=await D(this,zr).start();return await((h=(m=D(this,on).config).onSuccess)==null?void 0:h.call(m,H,a,this.state.context,this,l)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,H,a,this.state.context,l)),await((E=(x=D(this,on).config).onSettled)==null?void 0:E.call(x,H,null,this.state.variables,this.state.context,this,l)),await((w=(_=this.options).onSettled)==null?void 0:w.call(_,H,null,a,this.state.context,l)),Ue(this,Oa,Hi).call(this,{type:"success",data:H}),H}catch(H){try{await((N=(T=D(this,on).config).onError)==null?void 0:N.call(T,H,a,this.state.context,this,l))}catch(ae){Promise.reject(ae)}try{await((z=(U=this.options).onError)==null?void 0:z.call(U,H,a,this.state.context,l))}catch(ae){Promise.reject(ae)}try{await((Z=(P=D(this,on).config).onSettled)==null?void 0:Z.call(P,void 0,H,this.state.variables,this.state.context,this,l))}catch(ae){Promise.reject(ae)}try{await((V=(A=this.options).onSettled)==null?void 0:V.call(A,void 0,H,a,this.state.context,l))}catch(ae){Promise.reject(ae)}throw Ue(this,Oa,Hi).call(this,{type:"error",error:H}),H}finally{D(this,on).runNext(this)}}},ho=new WeakMap,Ra=new WeakMap,on=new WeakMap,zr=new WeakMap,Oa=new WeakSet,Hi=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),Yt.batch(()=>{D(this,Ra).forEach(l=>{l.onMutationUpdate(a)}),D(this,on).notify({mutation:this,type:"updated",action:a})})},Fx);function ev(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ri,ga,mo,Hx,aS=(Hx=class extends $l{constructor(a={}){super();we(this,ri);we(this,ga);we(this,mo);this.config=a,pe(this,ri,new Set),pe(this,ga,new Map),pe(this,mo,0)}build(a,i,l){const o=new nS({client:a,mutationCache:this,mutationId:++Fc(this,mo)._,options:a.defaultMutationOptions(i),state:l});return this.add(o),o}add(a){D(this,ri).add(a);const i=Hc(a);if(typeof i=="string"){const l=D(this,ga).get(i);l?l.push(a):D(this,ga).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,ri).delete(a)){const i=Hc(a);if(typeof i=="string"){const l=D(this,ga).get(i);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&D(this,ga).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Hc(a);if(typeof i=="string"){const l=D(this,ga).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=Hc(a);if(typeof i=="string"){const o=(l=D(this,ga).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(){Yt.batch(()=>{D(this,ri).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,ri).clear(),D(this,ga).clear()})}getAll(){return Array.from(D(this,ri))}find(a){const i={exact:!0,...a};return this.getAll().find(l=>fy(i,l))}findAll(a={}){return this.getAll().filter(i=>fy(a,i))}notify(a){Yt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Yt.batch(()=>Promise.all(a.map(i=>i.continue().catch(bn))))}},ri=new WeakMap,ga=new WeakMap,mo=new WeakMap,Hx);function Hc(e){var a;return(a=e.options.scope)==null?void 0:a.id}var li,Qi,On,si,oi,Jc,yh,qx,iS=(qx=class extends $l{constructor(i,l){super();we(this,oi);we(this,li);we(this,Qi);we(this,On);we(this,si);pe(this,li,i),this.setOptions(l),this.bindMethods(),Ue(this,oi,Jc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const l=this.options;this.options=D(this,li).defaultMutationOptions(i),au(this.options,l)||D(this,li).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,On),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&jr(l.mutationKey)!==jr(this.options.mutationKey)?this.reset():((o=D(this,On))==null?void 0:o.state.status)==="pending"&&D(this,On).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=D(this,On))==null||i.removeObserver(this)}onMutationUpdate(i){Ue(this,oi,Jc).call(this),Ue(this,oi,yh).call(this,i)}getCurrentResult(){return D(this,Qi)}reset(){var i;(i=D(this,On))==null||i.removeObserver(this),pe(this,On,void 0),Ue(this,oi,Jc).call(this),Ue(this,oi,yh).call(this)}mutate(i,l){var o;return pe(this,si,l),(o=D(this,On))==null||o.removeObserver(this),pe(this,On,D(this,li).getMutationCache().build(D(this,li),this.options)),D(this,On).addObserver(this),D(this,On).execute(i)}},li=new WeakMap,Qi=new WeakMap,On=new WeakMap,si=new WeakMap,oi=new WeakSet,Jc=function(){var l;const i=((l=D(this,On))==null?void 0:l.state)??ev();pe(this,Qi,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},yh=function(i){Yt.batch(()=>{var l,o,c,u,d,m,h,y;if(D(this,si)&&this.hasListeners()){const b=D(this,Qi).variables,x=D(this,Qi).context,E={client:D(this,li),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(l=D(this,si)).onSuccess)==null||o.call(l,i.data,b,x,E)}catch(_){Promise.reject(_)}try{(u=(c=D(this,si)).onSettled)==null||u.call(c,i.data,null,b,x,E)}catch(_){Promise.reject(_)}}else if((i==null?void 0:i.type)==="error"){try{(m=(d=D(this,si)).onError)==null||m.call(d,i.error,b,x,E)}catch(_){Promise.reject(_)}try{(y=(h=D(this,si)).onSettled)==null||y.call(h,void 0,i.error,b,x,E)}catch(_){Promise.reject(_)}}}this.listeners.forEach(b=>{b(D(this,Qi))})})},qx),Ma,Px,rS=(Px=class extends $l{constructor(a={}){super();we(this,Ma);this.config=a,pe(this,Ma,new Map)}build(a,i,l){const o=i.queryKey,c=i.queryHash??Uh(o,i);let u=this.get(c);return u||(u=new Z1({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(i),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(u)),u}add(a){D(this,Ma).has(a.queryHash)||(D(this,Ma).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=D(this,Ma).get(a.queryHash);i&&(a.destroy(),i===a&&D(this,Ma).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Yt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Ma).get(a)}getAll(){return[...D(this,Ma).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(l=>uy(i,l))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(l=>uy(a,l)):i}notify(a){Yt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ma=new WeakMap,Px),Mt,Yi,Vi,Bl,Fl,Xi,Hl,ql,$x,lS=($x=class{constructor(e={}){we(this,Mt);we(this,Yi);we(this,Vi);we(this,Bl);we(this,Fl);we(this,Xi);we(this,Hl);we(this,ql);pe(this,Mt,e.queryCache||new rS),pe(this,Yi,e.mutationCache||new aS),pe(this,Vi,e.defaultOptions||{}),pe(this,Bl,new Map),pe(this,Fl,new Map),pe(this,Xi,0)}mount(){Fc(this,Xi)._++,D(this,Xi)===1&&(pe(this,Hl,Ih.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Mt).onFocus())})),pe(this,ql,iu.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,Mt).onOnline())})))}unmount(){var e,a;Fc(this,Xi)._--,D(this,Xi)===0&&((e=D(this,Hl))==null||e.call(this),pe(this,Hl,void 0),(a=D(this,ql))==null||a.call(this),pe(this,ql,void 0))}isFetching(e){return D(this,Mt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,Yi).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=D(this,Mt).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const a=this.defaultQueryOptions(e),i=D(this,Mt).build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Zi(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(e){return D(this,Mt).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=D(this,Mt).get(l.queryHash),c=o==null?void 0:o.state.data,u=H1(a,c);if(u!==void 0)return D(this,Mt).build(this,l).setData(u,{...i,manual:!0})}setQueriesData(e,a,i){return Yt.batch(()=>D(this,Mt).findAll(e).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=D(this,Mt).get(a.queryHash))==null?void 0:i.state}removeQueries(e){const a=D(this,Mt);Yt.batch(()=>{a.findAll(e).forEach(i=>{a.remove(i)})})}resetQueries(e,a){const i=D(this,Mt);return Yt.batch(()=>(i.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...e},a)))}cancelQueries(e,a={}){const i={revert:!0,...a},l=Yt.batch(()=>D(this,Mt).findAll(e).map(o=>o.cancel(i)));return Promise.all(l).then(bn).catch(bn)}invalidateQueries(e,a={}){return Yt.batch(()=>(D(this,Mt).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=Yt.batch(()=>D(this,Mt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(bn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(bn)}fetchQuery(e){const a=this.defaultQueryOptions(e);a.retry===void 0&&(a.retry=!1);const i=D(this,Mt).build(this,a);return i.isStaleByTime(Zi(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=yy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=yy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return iu.isOnline()?D(this,Yi).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Mt)}getMutationCache(){return D(this,Yi)}getDefaultOptions(){return D(this,Vi)}setDefaultOptions(e){pe(this,Vi,e)}setQueryDefaults(e,a){D(this,Bl).set(jr(e),{queryKey:e,defaultOptions:a})}getQueryDefaults(e){const a=[...D(this,Bl).values()],i={};return a.forEach(l=>{io(e,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(e,a){D(this,Fl).set(jr(e),{mutationKey:e,defaultOptions:a})}getMutationDefaults(e){const a=[...D(this,Fl).values()],i={};return a.forEach(l=>{io(e,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const a={...D(this,Vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return a.queryHash||(a.queryHash=Uh(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===Bh&&(a.enabled=!1),a}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,Vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,Mt).clear(),D(this,Yi).clear()}},Mt=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,Bl=new WeakMap,Fl=new WeakMap,Xi=new WeakMap,Hl=new WeakMap,ql=new WeakMap,$x),tv=O.createContext(void 0),oa=e=>{const a=O.useContext(tv);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},sS=({client:e,children:a})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(tv.Provider,{value:e,children:a})),nv=O.createContext(!1),oS=()=>O.useContext(nv);nv.Provider;function cS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var uS=O.createContext(cS()),fS=()=>O.useContext(uS),dS=(e,a,i)=>{const l=i!=null&&i.state.error&&typeof e.throwOnError=="function"?Fh(e.throwOnError,[i.state.error,i]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||l)&&(a.isReset()||(e.retryOnMount=!1))},hS=e=>{O.useEffect(()=>{e.clearReset()},[e])},mS=({result:e,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>e.isError&&!a.isReset()&&!e.isFetching&&l&&(o&&e.data===void 0||Fh(i,[e.error,l])),pS=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))}},gS=(e,a)=>e.isLoading&&e.isFetching&&!a,bS=(e,a)=>(e==null?void 0:e.suspense)&&a.isPending,vy=(e,a,i)=>a.fetchOptimistic(e).catch(()=>{i.clearReset()});function yS(e,a,i){var x,E,_,w;const l=oS(),o=fS(),c=oa(),u=c.defaultQueryOptions(e);(E=(x=c.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||E.call(x,u);const d=c.getQueryCache().get(u.queryHash);u._optimisticResults=l?"isRestoring":"optimistic",pS(u),dS(u,o,d),hS(o);const m=!c.getQueryCache().get(u.queryHash),[h]=O.useState(()=>new a(c,u)),y=h.getOptimisticResult(u),b=!l&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(T=>{const N=b?h.subscribe(Yt.batchCalls(T)):bn;return h.updateResult(),N},[h,b]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),O.useEffect(()=>{h.setOptions(u)},[u,h]),bS(u,y))throw vy(u,h,o);if(mS({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw y.error;if((w=(_=c.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||w.call(_,u,y),u.experimental_prefetchInRender&&!ro.isServer()&&gS(y,l)){const T=m?vy(u,h,o):d==null?void 0:d.promise;T==null||T.catch(bn).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?y:h.trackResult(y)}function Nt(e,a){return yS(e,W1)}function po(e,a){const i=oa(),[l]=O.useState(()=>new iS(i,e));O.useEffect(()=>{l.setOptions(e)},[l,e]);const o=O.useSyncExternalStore(O.useCallback(u=>l.subscribe(Yt.batchCalls(u)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=O.useCallback((u,d)=>{l.mutate(u,d).catch(bn)},[l]);if(o.error&&Fh(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}/**
|
|
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 Ey="popstate";function _y(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function xS(e={}){function a(l,o){var h;let c=(h=o.state)==null?void 0:h.masked,{pathname:u,search:d,hash:m}=c||l.location;return xh("",{pathname:u,search:d,hash:m},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:lo(o)}return ES(a,i,null,e)}function kt(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function sa(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function vS(){return Math.random().toString(36).substring(2,10)}function Sy(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 xh(e,a,i=null,l,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Gl(a):a,state:i,key:a&&a.key||l||vS(),unstable_mask:o}}function lo({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 Gl(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 ES(e,a,i,l={}){let{window:o=document.defaultView,v5Compat:c=!1}=l,u=o.history,d="POP",m=null,h=y();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function y(){return(u.state||{idx:null}).idx}function b(){d="POP";let T=y(),N=T==null?null:T-h;h=T,m&&m({action:d,location:w.location,delta:N})}function x(T,N){d="PUSH";let U=_y(T)?T:xh(w.location,T,N);h=y()+1;let z=Sy(U,h),P=w.createHref(U.unstable_mask||U);try{u.pushState(z,"",P)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;o.location.assign(P)}c&&m&&m({action:d,location:w.location,delta:1})}function E(T,N){d="REPLACE";let U=_y(T)?T:xh(w.location,T,N);h=y();let z=Sy(U,h),P=w.createHref(U.unstable_mask||U);u.replaceState(z,"",P),c&&m&&m({action:d,location:w.location,delta:0})}function _(T){return _S(T)}let w={get action(){return d},get location(){return e(o,u)},listen(T){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Ey,b),m=T,()=>{o.removeEventListener(Ey,b),m=null}},createHref(T){return a(o,T)},createURL:_,encodeLocation(T){let N=_(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:x,replace:E,go(T){return u.go(T)}};return w}function _S(e,a=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),kt(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:lo(e);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function av(e,a,i="/"){return SS(e,a,i,!1)}function SS(e,a,i,l){let o=typeof a=="string"?Gl(a):a,c=ci(o.pathname||"/",i);if(c==null)return null;let u=iv(e);wS(u);let d=null;for(let m=0;d==null&&m<u.length;++m){let h=zS(c);d=DS(u[m],h,l)}return d}function iv(e,a=[],i=[],l="",o=!1){let c=(u,d,m=o,h)=>{let y={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(l)&&m)return;kt(y.relativePath.startsWith(l),`Absolute route path "${y.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(l.length)}let b=ba([l,y.relativePath]),x=i.concat(y);u.children&&u.children.length>0&&(kt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),iv(u.children,a,x,b,m)),!(u.path==null&&!u.index)&&a.push({path:b,score:OS(b,u.index),routesMeta:x})};return e.forEach((u,d)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))c(u,d);else for(let h of rv(u.path))c(u,d,!0,h)}),a}function rv(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=rv(l.join("/")),d=[];return d.push(...u.map(m=>m===""?c:[c,m].join("/"))),o&&d.push(...u),d.map(m=>e.startsWith("/")&&m===""?"/":m)}function wS(e){e.sort((a,i)=>a.score!==i.score?i.score-a.score:MS(a.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var NS=/^:[\w-]+$/,kS=3,TS=2,CS=1,AS=10,RS=-2,wy=e=>e==="*";function OS(e,a){let i=e.split("/"),l=i.length;return i.some(wy)&&(l+=RS),a&&(l+=TS),i.filter(o=>!wy(o)).reduce((o,c)=>o+(NS.test(c)?kS:c===""?CS:AS),l)}function MS(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 DS(e,a,i=!1){let{routesMeta:l}=e,o={},c="/",u=[];for(let d=0;d<l.length;++d){let m=l[d],h=d===l.length-1,y=c==="/"?a:a.slice(c.length)||"/",b=ru({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},y),x=m.route;if(!b&&h&&i&&!l[l.length-1].route.index&&(b=ru({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!b)return null;Object.assign(o,b.params),u.push({params:o,pathname:ba([c,b.pathname]),pathnameBase:BS(ba([c,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(c=ba([c,b.pathnameBase]))}return u}function ru(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=LS(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:y,isOptional:b},x)=>{if(y==="*"){let _=d[x]||"";u=c.slice(0,c.length-_.length).replace(/(.)\/+$/,"$1")}const E=d[x];return b&&!E?h[y]=void 0:h[y]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:c,pathnameBase:u,pattern:e}}function LS(e,a=!1,i=!0){sa(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,m,h,y)=>{if(l.push({paramName:d,isOptional:m!=null}),m){let b=y.charAt(h+u.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 zS(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return sa(!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 ci(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 jS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function IS(e,a="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?Gl(e):e,c;return i?(i=lv(i),i.startsWith("/")?c=Ny(i.substring(1),"/"):c=Ny(i,a)):c=a,{pathname:c,search:FS(l),hash:HS(o)}}function Ny(e,a){let i=lu(a).split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function zd(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 US(e){return e.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function qh(e){let a=US(e);return a.map((i,l)=>l===a.length-1?i.pathname:i.pathnameBase)}function pu(e,a,i,l=!1){let o;typeof e=="string"?o=Gl(e):(o={...e},kt(!o.pathname||!o.pathname.includes("?"),zd("?","pathname","search",o)),kt(!o.pathname||!o.pathname.includes("#"),zd("#","pathname","hash",o)),kt(!o.search||!o.search.includes("#"),zd("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,d;if(u==null)d=i;else{let b=a.length-1;if(!l&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),b-=1;o.pathname=x.join("/")}d=b>=0?a[b]:"/"}let m=IS(o,d),h=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(h||y)&&(m.pathname+="/"),m}var lv=e=>e.replace(/\/\/+/g,"/"),ba=e=>lv(e.join("/")),lu=e=>e.replace(/\/+$/,""),BS=e=>lu(e).replace(/^\/*/,"/"),FS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,HS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qS=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 PS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $S(e){let a=e.map(i=>i.route.path).filter(Boolean);return ba(a)||"/"}var sv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ov(e,a){let i=e;if(typeof i!="string"||!jS.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,o=!1;if(sv)try{let c=new URL(window.location.href),u=i.startsWith("//")?new URL(c.protocol+i):new URL(i),d=ci(u.pathname,a);u.origin===c.origin&&d!=null?i=d+u.search+u.hash:o=!0}catch{sa(!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 cv=["POST","PUT","PATCH","DELETE"];new Set(cv);var GS=["GET",...cv];new Set(GS);var Kl=O.createContext(null);Kl.displayName="DataRouter";var gu=O.createContext(null);gu.displayName="DataRouterState";var uv=O.createContext(!1);function KS(){return O.useContext(uv)}var fv=O.createContext({isTransitioning:!1});fv.displayName="ViewTransition";var QS=O.createContext(new Map);QS.displayName="Fetchers";var YS=O.createContext(null);YS.displayName="Await";var Qn=O.createContext(null);Qn.displayName="Navigation";var go=O.createContext(null);go.displayName="Location";var ca=O.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var Ph=O.createContext(null);Ph.displayName="RouteError";var dv="REACT_ROUTER_ERROR",VS="REDIRECT",XS="ROUTE_ERROR_RESPONSE";function ZS(e){if(e.startsWith(`${dv}:${VS}:{`))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 WS(e){if(e.startsWith(`${dv}:${XS}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new qS(a.status,a.statusText,a.data)}catch{}}function JS(e,{relative:a}={}){kt(Ql(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=O.useContext(Qn),{hash:o,pathname:c,search:u}=bo(e,{relative:a}),d=c;return i!=="/"&&(d=c==="/"?i:ba([i,c])),l.createHref({pathname:d,search:u,hash:o})}function Ql(){return O.useContext(go)!=null}function xa(){return kt(Ql(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(go).location}var hv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mv(e){O.useContext(Qn).static||O.useLayoutEffect(e)}function Wi(){let{isDataRoute:e}=O.useContext(ca);return e?mw():ew()}function ew(){kt(Ql(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Kl),{basename:a,navigator:i}=O.useContext(Qn),{matches:l}=O.useContext(ca),{pathname:o}=xa(),c=JSON.stringify(qh(l)),u=O.useRef(!1);return mv(()=>{u.current=!0}),O.useCallback((m,h={})=>{if(sa(u.current,hv),!u.current)return;if(typeof m=="number"){i.go(m);return}let y=pu(m,JSON.parse(c),o,h.relative==="path");e==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:ba([a,y.pathname])),(h.replace?i.replace:i.push)(y,h.state,h)},[a,i,c,o,e])}var tw=O.createContext(null);function nw(e){let a=O.useContext(ca).outlet;return O.useMemo(()=>a&&O.createElement(tw.Provider,{value:e},a),[a,e])}function pv(){let{matches:e}=O.useContext(ca),a=e[e.length-1];return(a==null?void 0:a.params)??{}}function bo(e,{relative:a}={}){let{matches:i}=O.useContext(ca),{pathname:l}=xa(),o=JSON.stringify(qh(i));return O.useMemo(()=>pu(e,JSON.parse(o),l,a==="path"),[e,o,l,a])}function aw(e,a){return gv(e,a)}function gv(e,a,i){var T;kt(Ql(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=O.useContext(Qn),{matches:o}=O.useContext(ca),c=o[o.length-1],u=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",h=c&&c.route;{let N=h&&h.path||"";yv(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 y=xa(),b;if(a){let N=typeof a=="string"?Gl(a):a;kt(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=y;let x=b.pathname||"/",E=x;if(m!=="/"){let N=m.replace(/^\//,"").split("/");E="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let _=av(e,{pathname:E});sa(h||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),sa(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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=ow(_&&_.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:ba([m,l.encodeLocation?l.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ba([m,l.encodeLocation?l.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),o,i);return a&&w?O.createElement(go.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},w):w}function iw(){let e=hw(),a=PS(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=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:c},"ErrorBoundary")," or"," ",O.createElement("code",{style:c},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},a),i?O.createElement("pre",{style:o},i):null,u)}var rw=O.createElement(iw,null),bv=class extends O.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=WS(e.digest);i&&(e=i)}let a=e!==void 0?O.createElement(ca.Provider,{value:this.props.routeContext},O.createElement(Ph.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(lw,{error:e},a):a}};bv.contextType=uv;var jd=new WeakMap;function lw({children:e,error:a}){let{basename:i}=O.useContext(Qn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=ZS(a.digest);if(l){let o=jd.get(a);if(o)throw o;let c=ov(l.location,i);if(sv&&!jd.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 jd.set(a,u),u}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function sw({routeContext:e,match:a,children:i}){let l=O.useContext(Kl);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),O.createElement(ca.Provider,{value:e},i)}function ow(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 y=o.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);kt(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let u=!1,d=-1;if(i&&l){u=l.renderFallback;for(let y=0;y<o.length;y++){let b=o[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(d=y),b.route.id){let{loaderData:x,errors:E}=l,_=b.route.loader&&!x.hasOwnProperty(b.route.id)&&(!E||E[b.route.id]===void 0);if(b.route.lazy||_){i.isStatic&&(u=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=i==null?void 0:i.onError,h=l&&m?(y,b)=>{var x,E;m(y,{location:l.location,params:((E=(x=l.matches)==null?void 0:x[0])==null?void 0:E.params)??{},unstable_pattern:$S(l.matches),errorInfo:b})}:void 0;return o.reduceRight((y,b,x)=>{let E,_=!1,w=null,T=null;l&&(E=c&&b.route.id?c[b.route.id]:void 0,w=b.route.errorElement||rw,u&&(d<0&&x===0?(yv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,T=null):d===x&&(_=!0,T=b.route.hydrateFallbackElement||null)));let N=a.concat(o.slice(0,x+1)),U=()=>{let z;return E?z=w:_?z=T:b.route.Component?z=O.createElement(b.route.Component,null):b.route.element?z=b.route.element:z=y,O.createElement(sw,{match:b,routeContext:{outlet:y,matches:N,isDataRoute:l!=null},children:z})};return l&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?O.createElement(bv,{location:l.location,revalidation:l.revalidation,component:w,error:E,children:U(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):U()},null)}function $h(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cw(e){let a=O.useContext(Kl);return kt(a,$h(e)),a}function uw(e){let a=O.useContext(gu);return kt(a,$h(e)),a}function fw(e){let a=O.useContext(ca);return kt(a,$h(e)),a}function Gh(e){let a=fw(e),i=a.matches[a.matches.length-1];return kt(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function dw(){return Gh("useRouteId")}function hw(){var l;let e=O.useContext(Ph),a=uw("useRouteError"),i=Gh("useRouteError");return e!==void 0?e:(l=a.errors)==null?void 0:l[i]}function mw(){let{router:e}=cw("useNavigate"),a=Gh("useNavigate"),i=O.useRef(!1);return mv(()=>{i.current=!0}),O.useCallback(async(o,c={})=>{sa(i.current,hv),i.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:a,...c}))},[e,a])}var ky={};function yv(e,a,i){!a&&!ky[e]&&(ky[e]=!0,sa(!1,i))}O.memo(pw);function pw({routes:e,future:a,state:i,isStatic:l,onError:o}){return gv(e,void 0,{state:i,isStatic:l,onError:o})}function gw({to:e,replace:a,state:i,relative:l}){kt(Ql(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=O.useContext(Qn);sa(!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}=O.useContext(ca),{pathname:u}=xa(),d=Wi(),m=pu(e,qh(c),u,l==="path"),h=JSON.stringify(m);return O.useEffect(()=>{d(JSON.parse(h),{replace:a,state:i,relative:l})},[d,h,l,a,i]),null}function bw(e){return nw(e.context)}function Cn(e){kt(!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 yw({basename:e="/",children:a=null,location:i,navigationType:l="POP",navigator:o,static:c=!1,unstable_useTransitions:u}){kt(!Ql(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),m=O.useMemo(()=>({basename:d,navigator:o,static:c,unstable_useTransitions:u,future:{}}),[d,o,c,u]);typeof i=="string"&&(i=Gl(i));let{pathname:h="/",search:y="",hash:b="",state:x=null,key:E="default",unstable_mask:_}=i,w=O.useMemo(()=>{let T=ci(h,d);return T==null?null:{location:{pathname:T,search:y,hash:b,state:x,key:E,unstable_mask:_},navigationType:l}},[d,h,y,b,x,E,l,_]);return sa(w!=null,`<Router basename="${d}"> is not able to match the URL "${h}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:O.createElement(Qn.Provider,{value:m},O.createElement(go.Provider,{children:a,value:w}))}function xw({children:e,location:a}){return aw(vh(e),a)}function vh(e,a=[]){let i=[];return O.Children.forEach(e,(l,o)=>{if(!O.isValidElement(l))return;let c=[...a,o];if(l.type===O.Fragment){i.push.apply(i,vh(l.props.children,c));return}kt(l.type===Cn,`[${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>`),kt(!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=vh(l.props.children,c)),i.push(u)}),i}var eu="get",tu="application/x-www-form-urlencoded";function bu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function vw(e){return bu(e)&&e.tagName.toLowerCase()==="button"}function Ew(e){return bu(e)&&e.tagName.toLowerCase()==="form"}function _w(e){return bu(e)&&e.tagName.toLowerCase()==="input"}function Sw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ww(e,a){return e.button===0&&(!a||a==="_self")&&!Sw(e)}function Eh(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 Nw(e,a){let i=Eh(e);return a&&a.forEach((l,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var qc=null;function kw(){if(qc===null)try{new FormData(document.createElement("form"),0),qc=!1}catch{qc=!0}return qc}var Tw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Id(e){return e!=null&&!Tw.has(e)?(sa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tu}"`),null):e}function Cw(e,a){let i,l,o,c,u;if(Ew(e)){let d=e.getAttribute("action");l=d?ci(d,a):null,i=e.getAttribute("method")||eu,o=Id(e.getAttribute("enctype"))||tu,c=new FormData(e)}else if(vw(e)||_w(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 m=e.getAttribute("formaction")||d.getAttribute("action");if(l=m?ci(m,a):null,i=e.getAttribute("formmethod")||d.getAttribute("method")||eu,o=Id(e.getAttribute("formenctype"))||Id(d.getAttribute("enctype"))||tu,c=new FormData(d,e),!kw()){let{name:h,type:y,value:b}=e;if(y==="image"){let x=h?`${h}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else h&&c.append(h,b)}}else{if(bu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=eu,l=null,o=tu,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 Kh(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function xv(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&&ci(o.pathname,a)==="/"?o.pathname=`${lu(a)}/_root.${l}`:o.pathname=`${lu(o.pathname)}.${l}`,o}async function Aw(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 Rw(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 Ow(e,a,i){let l=await Promise.all(e.map(async o=>{let c=a.routes[o.route.id];if(c){let u=await Aw(c,i);return u.links?u.links():[]}return[]}));return zw(l.flat(1).filter(Rw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Ty(e,a,i,l,o,c){let u=(m,h)=>i[h]?m.route.id!==i[h].route.id:!0,d=(m,h)=>{var y;return i[h].pathname!==m.pathname||((y=i[h].route.path)==null?void 0:y.endsWith("*"))&&i[h].params["*"]!==m.params["*"]};return c==="assets"?a.filter((m,h)=>u(m,h)||d(m,h)):c==="data"?a.filter((m,h)=>{var b;let y=l.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(u(m,h)||d(m,h))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=i[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Mw(e,a,{includeHydrateFallback:i}={}){return Dw(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 Dw(e){return[...new Set(e)]}function Lw(e){let a={},i=Object.keys(e).sort();for(let l of i)a[l]=e[l];return a}function zw(e,a){let i=new Set;return new Set(a),e.reduce((l,o)=>{let c=JSON.stringify(Lw(o));return i.has(c)||(i.add(c),l.push({key:c,link:o})),l},[])}function Qh(){let e=O.useContext(Kl);return Kh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jw(){let e=O.useContext(gu);return Kh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yh=O.createContext(void 0);Yh.displayName="FrameworkContext";function Vh(){let e=O.useContext(Yh);return Kh(e,"You must render this element inside a <HydratedRouter> element"),e}function Iw(e,a){let i=O.useContext(Yh),[l,o]=O.useState(!1),[c,u]=O.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:h,onMouseLeave:y,onTouchStart:b}=a,x=O.useRef(null);O.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let w=N=>{N.forEach(U=>{u(U.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return x.current&&T.observe(x.current),()=>{T.disconnect()}}},[e]),O.useEffect(()=>{if(l){let w=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(w)}}},[l]);let E=()=>{o(!0)},_=()=>{o(!1),u(!1)};return i?e!=="intent"?[c,x,{}]:[c,x,{onFocus:Ys(d,E),onBlur:Ys(m,_),onMouseEnter:Ys(h,E),onMouseLeave:Ys(y,_),onTouchStart:Ys(b,E)}]:[!1,x,{}]}function Ys(e,a){return i=>{e&&e(i),i.defaultPrevented||a(i)}}function Uw({page:e,...a}){let i=KS(),{router:l}=Qh(),o=O.useMemo(()=>av(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?i?O.createElement(Fw,{page:e,matches:o,...a}):O.createElement(Hw,{page:e,matches:o,...a}):null}function Bw(e){let{manifest:a,routeModules:i}=Vh(),[l,o]=O.useState([]);return O.useEffect(()=>{let c=!1;return Ow(e,a,i).then(u=>{c||o(u)}),()=>{c=!0}},[e,a,i]),l}function Fw({page:e,matches:a,...i}){let l=xa(),{future:o}=Vh(),{basename:c}=Qh(),u=O.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let d=xv(e,c,o.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,h=[];for(let y of a)typeof y.route.shouldRevalidate=="function"?m=!0:h.push(y.route.id);return m&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[c,o.unstable_trailingSlashAwareDataRequests,e,l,a]);return O.createElement(O.Fragment,null,u.map(d=>O.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...i})))}function Hw({page:e,matches:a,...i}){let l=xa(),{future:o,manifest:c,routeModules:u}=Vh(),{basename:d}=Qh(),{loaderData:m,matches:h}=jw(),y=O.useMemo(()=>Ty(e,a,h,c,l,"data"),[e,a,h,c,l]),b=O.useMemo(()=>Ty(e,a,h,c,l,"assets"),[e,a,h,c,l]),x=O.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(a.forEach(U=>{var P;let z=c.routes[U.route.id];!z||!z.hasLoader||(!y.some(Z=>Z.route.id===U.route.id)&&U.route.id in m&&((P=u[U.route.id])!=null&&P.shouldRevalidate)||z.hasClientLoader?T=!0:w.add(U.route.id))}),w.size===0)return[];let N=xv(e,d,o.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&N.searchParams.set("_routes",a.filter(U=>w.has(U.route.id)).map(U=>U.route.id).join(",")),[N.pathname+N.search]},[d,o.unstable_trailingSlashAwareDataRequests,m,l,c,y,a,e,u]),E=O.useMemo(()=>Mw(b,c),[b,c]),_=Bw(b);return O.createElement(O.Fragment,null,x.map(w=>O.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),E.map(w=>O.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),_.map(({key:w,link:T})=>O.createElement("link",{key:w,nonce:i.nonce,...T,crossOrigin:T.crossOrigin??i.crossOrigin})))}function qw(...e){return a=>{e.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var Pw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pw&&(window.__reactRouterVersion="7.14.2")}catch{}function $w({basename:e,children:a,unstable_useTransitions:i,window:l}){let o=O.useRef();o.current==null&&(o.current=xS({window:l,v5Compat:!0}));let c=o.current,[u,d]=O.useState({action:c.action,location:c.location}),m=O.useCallback(h=>{i===!1?d(h):O.startTransition(()=>d(h))},[i]);return O.useLayoutEffect(()=>c.listen(m),[c,m]),O.createElement(yw,{basename:e,children:a,location:u.location,navigationType:u.action,navigator:c,unstable_useTransitions:i})}var vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ji=O.forwardRef(function({onClick:a,discover:i="render",prefetch:l="none",relative:o,reloadDocument:c,replace:u,unstable_mask:d,state:m,target:h,to:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:E,..._},w){let{basename:T,navigator:N,unstable_useTransitions:U}=O.useContext(Qn),z=typeof y=="string"&&vv.test(y),P=ov(y,T);y=P.to;let Z=JS(y,{relative:o}),A=xa(),V=null;if(d){let W=pu(d,[],A.unstable_mask?A.unstable_mask.pathname:"/",!0);T!=="/"&&(W.pathname=W.pathname==="/"?T:ba([T,W.pathname])),V=N.createHref(W)}let[H,ae,j]=Iw(l,_),B=Qw(y,{replace:u,unstable_mask:d,state:m,target:h,preventScrollReset:b,relative:o,viewTransition:x,unstable_defaultShouldRevalidate:E,unstable_useTransitions:U});function Q(W){a&&a(W),W.defaultPrevented||B(W)}let oe=!(P.isExternal||c),re=O.createElement("a",{..._,...j,href:(oe?V:void 0)||P.absoluteURL||Z,onClick:oe?Q:a,ref:qw(w,ae),target:h,"data-discover":!z&&i==="render"?"true":void 0});return H&&!z?O.createElement(O.Fragment,null,re,O.createElement(Uw,{page:Z})):re});Ji.displayName="Link";var Ev=O.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:l="",end:o=!1,style:c,to:u,viewTransition:d,children:m,...h},y){let b=bo(u,{relative:h.relative}),x=xa(),E=O.useContext(gu),{navigator:_,basename:w}=O.useContext(Qn),T=E!=null&&Ww(b)&&d===!0,N=_.encodeLocation?_.encodeLocation(b).pathname:b.pathname,U=x.pathname,z=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;i||(U=U.toLowerCase(),z=z?z.toLowerCase():null,N=N.toLowerCase()),z&&w&&(z=ci(z,w)||z);const P=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let Z=U===N||!o&&U.startsWith(N)&&U.charAt(P)==="/",A=z!=null&&(z===N||!o&&z.startsWith(N)&&z.charAt(N.length)==="/"),V={isActive:Z,isPending:A,isTransitioning:T},H=Z?a:void 0,ae;typeof l=="function"?ae=l(V):ae=[l,Z?"active":null,A?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let j=typeof c=="function"?c(V):c;return O.createElement(Ji,{...h,"aria-current":H,className:ae,ref:y,style:j,to:u,viewTransition:d},typeof m=="function"?m(V):m)});Ev.displayName="NavLink";var Gw=O.forwardRef(({discover:e="render",fetcherKey:a,navigate:i,reloadDocument:l,replace:o,state:c,method:u=eu,action:d,onSubmit:m,relative:h,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:x,...E},_)=>{let{unstable_useTransitions:w}=O.useContext(Qn),T=Xw(),N=Zw(d,{relative:h}),U=u.toLowerCase()==="get"?"get":"post",z=typeof d=="string"&&vv.test(d),P=Z=>{if(m&&m(Z),Z.defaultPrevented)return;Z.preventDefault();let A=Z.nativeEvent.submitter,V=(A==null?void 0:A.getAttribute("formmethod"))||u,H=()=>T(A||Z.currentTarget,{fetcherKey:a,method:V,navigate:i,replace:o,state:c,relative:h,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:x});w&&i!==!1?O.startTransition(()=>H()):H()};return O.createElement("form",{ref:_,method:U,action:N,onSubmit:l?m:P,...E,"data-discover":!z&&e==="render"?"true":void 0})});Gw.displayName="Form";function Kw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _v(e){let a=O.useContext(Kl);return kt(a,Kw(e)),a}function Qw(e,{target:a,replace:i,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let y=Wi(),b=xa(),x=bo(e,{relative:u});return O.useCallback(E=>{if(ww(E,a)){E.preventDefault();let _=i!==void 0?i:lo(b)===lo(x),w=()=>y(e,{replace:_,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:m});h?O.startTransition(()=>w()):w()}},[b,y,x,i,l,o,a,e,c,u,d,m,h])}function Xh(e){sa(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=O.useRef(Eh(e)),i=O.useRef(!1),l=xa(),o=O.useMemo(()=>Nw(l.search,i.current?null:a.current),[l.search]),c=Wi(),u=O.useCallback((d,m)=>{const h=Eh(typeof d=="function"?d(new URLSearchParams(o)):d);i.current=!0,c("?"+h,m)},[c,o]);return[o,u]}var Yw=0,Vw=()=>`__${String(++Yw)}__`;function Xw(){let{router:e}=_v("useSubmit"),{basename:a}=O.useContext(Qn),i=dw(),l=e.fetch,o=e.navigate;return O.useCallback(async(c,u={})=>{let{action:d,method:m,encType:h,formData:y,body:b}=Cw(c,a);if(u.navigate===!1){let x=u.fetcherKey||Vw();await l(x,i,u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||m,formEncType:u.encType||h,flushSync:u.flushSync})}else await o(u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||m,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:i,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,o,a,i])}function Zw(e,{relative:a}={}){let{basename:i}=O.useContext(Qn),l=O.useContext(ca);kt(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),c={...bo(e||".",{relative:a})},u=xa();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(b=>b).forEach(b=>d.append("index",b));let y=d.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:ba([i,c.pathname])),lo(c)}function Ww(e,{relative:a}={}){let i=O.useContext(fv);kt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=_v("useViewTransitionState"),o=bo(e,{relative:a});if(!i.isTransitioning)return!1;let c=ci(i.currentLocation.pathname,l)||i.currentLocation.pathname,u=ci(i.nextLocation.pathname,l)||i.nextLocation.pathname;return ru(o.pathname,u)!=null||ru(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 Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,l)=>l?l.toUpperCase():i.toLowerCase()),Cy=e=>{const a=eN(e);return a.charAt(0).toUpperCase()+a.slice(1)},Sv=(...e)=>e.filter((a,i,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===i).join(" ").trim(),tN=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 nN={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 aN=O.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:c,iconNode:u,...d},m)=>O.createElement("svg",{ref:m,...nN,width:a,height:a,stroke:e,strokeWidth:l?Number(i)*24/Number(a):i,className:Sv("lucide",o),...!c&&!tN(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,y])=>O.createElement(h,y)),...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 Le=(e,a)=>{const i=O.forwardRef(({className:l,...o},c)=>O.createElement(aN,{ref:c,iconNode:a,className:Sv(`lucide-${Jw(Cy(e))}`,`lucide-${e}`,l),...o}));return i.displayName=Cy(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 iN=[["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"}]],wv=Le("activity",iN);/**
|
|
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 rN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Nv=Le("arrow-left",rN);/**
|
|
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 lN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sN=Le("check",lN);/**
|
|
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 oN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kv=Le("chevron-down",oN);/**
|
|
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 cN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Tv=Le("chevron-right",cN);/**
|
|
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 uN=[["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"}]],Cv=Le("circle-alert",uN);/**
|
|
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 fN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],dN=Le("circle-check-big",fN);/**
|
|
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 hN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mN=Le("circle-check",hN);/**
|
|
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 pN=[["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"}]],gN=Le("circle-x",pN);/**
|
|
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 bN=[["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"}]],Av=Le("download",bN);/**
|
|
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 yN=[["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"}]],Rv=Le("file-text",yN);/**
|
|
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 xN=[["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"}]],vN=Le("flame",xN);/**
|
|
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 EN=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],_N=Le("folder-git-2",EN);/**
|
|
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 SN=[["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"}]],wN=Le("funnel",SN);/**
|
|
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 NN=[["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"}]],kN=Le("git-branch",NN);/**
|
|
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 TN=[["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"}]],CN=Le("globe",TN);/**
|
|
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 AN=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],RN=Le("history",AN);/**
|
|
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 ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],MN=Le("info",ON);/**
|
|
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 DN=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],LN=Le("kanban",DN);/**
|
|
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 zN=[["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"}]],jN=Le("layout-grid",zN);/**
|
|
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 IN=[["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"}]],UN=Le("link",IN);/**
|
|
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 BN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Da=Le("loader-circle",BN);/**
|
|
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 FN=[["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"}]],Ay=Le("message-circle",FN);/**
|
|
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:"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"}]],qN=Le("message-square",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 PN=[["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"}]],$N=Le("pause",PN);/**
|
|
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 GN=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],KN=Le("pen-line",GN);/**
|
|
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 QN=[["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=Le("play",QN);/**
|
|
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 YN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yo=Le("plus",YN);/**
|
|
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 VN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Ov=Le("radio",VN);/**
|
|
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 XN=[["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"}]],Yl=Le("refresh-cw",XN);/**
|
|
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 ZN=[["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"}]],yu=Le("rotate-ccw",ZN);/**
|
|
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 WN=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Mv=Le("save",WN);/**
|
|
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 JN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],su=Le("search",JN);/**
|
|
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 ek=[["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"}]],tk=Le("send",ek);/**
|
|
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 nk=[["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"}]],Dv=Le("settings",nk);/**
|
|
256
|
+
* @license lucide-react v0.544.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const ak=[["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"}]],ik=Le("snowflake",ak);/**
|
|
261
|
+
* @license lucide-react v0.544.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const rk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Lv=Le("square",rk);/**
|
|
266
|
+
* @license lucide-react v0.544.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const lk=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],sk=Le("terminal",lk);/**
|
|
271
|
+
* @license lucide-react v0.544.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const ok=[["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"}]],Wh=Le("trash-2",ok);/**
|
|
276
|
+
* @license lucide-react v0.544.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const ck=[["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"}]],zv=Le("users",ck);/**
|
|
281
|
+
* @license lucide-react v0.544.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const uk=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],jv=Le("workflow",uk);/**
|
|
286
|
+
* @license lucide-react v0.544.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const fk=[["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"}]],dk=Le("wrench",fk);/**
|
|
291
|
+
* @license lucide-react v0.544.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const hk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xu=Le("x",hk);/**
|
|
296
|
+
* @license lucide-react v0.544.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const mk=[["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"}]],Iv=Le("zap",mk),pk=[{to:"/chat",label:"对话",icon:qN},{to:"/projects",label:"项目",icon:jN},{to:"/board",label:"看板",icon:LN},{to:"/workers",label:"Workers",icon:zv},{to:"/logs",label:"Logs",icon:Rv},{to:"/skills",label:"Skills",icon:CN},{to:"/system",label:"系统",icon:Dv}];function gk(){return g.jsxs(g.Fragment,{children:[g.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:[g.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",g.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),g.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:pk.map(e=>{const a=e.icon;return g.jsxs(Ev,{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:[g.jsx(a,{size:18,strokeWidth:2.5}),e.label]},e.to)})})]})}class bk extends Error{constructor(a,i,l){super(i),this.status=a,this.detail=l,this.name="ApiError"}}async function Gt(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 bk(a.status,`${a.status} ${a.statusText}`,i)}return await a.json()}function Uv(){return Gt("/api/system/info")}function yk(){return Gt("/api/system/env")}function xk(){return Gt("/api/system/doctor/all")}function vk(){return Gt("/api/system/env/raw")}async function Ek(e,a){const i=await fetch("/api/system/env",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e,etag:a})});if(!i.ok){const l=await i.text(),o=new Error(`${i.status}: ${l}`);throw o.status=i.status,o}return i.json()}function _k(){return Gt("/api/system/latest-version")}async function Sk(){const e=await fetch("/api/system/upgrade",{method:"POST"});if(!e.ok&&e.status!==409)throw new Error(`${e.status}: ${await e.text()}`);return e.json()}function xo(){return Gt("/api/projects")}function wk(e){return Gt(`/api/projects/${encodeURIComponent(e)}`)}async function Nk(e){const a=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const i=await a.text();throw new Error(`${a.status}: ${i}`)}return a.json()}function kk(e){return Gt(`/api/projects/${encodeURIComponent(e)}/conf`)}async function Tk(e,a,i){const l=await fetch(`/api/projects/${encodeURIComponent(e)}/conf`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:a,etag:i})});if(!l.ok){const o=await l.text(),c=new Error(`${l.status}: ${o}`);throw c.status=l.status,c}return l.json()}async function Ck(e,a={}){const i=await fetch(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok){const l=await i.text();throw new Error(`${i.status}: ${l}`)}return i.json()}function Ak(e){return Gt(`/api/projects/${encodeURIComponent(e)}/pipelines`)}async function Rk(e,a){const i=await fetch(`/api/projects/${encodeURIComponent(e)}/pipeline`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({pipeline:a})});if(!i.ok){const l=await i.text();throw new Error(`${i.status}: ${l}`)}return i.json()}function Ok(){var d;const e=Nt({queryKey:["system-info"],queryFn:Uv,refetchInterval:3e4}),a=Nt({queryKey:["projects"],queryFn:xo,refetchInterval:1e4}),i=Dk(),l=!e.isError,o=((d=a.data)==null?void 0:d.data)??[],c=o.filter(m=>m.pipelineStatus==="running").length,u=o.reduce((m,h)=>m+h.workers.active,0);return g.jsxs("div",{className:"h-10 flex items-center gap-3 px-6 font-[family-name:var(--font-mono)] text-[11px] text-[var(--color-text-muted)]",children:[g.jsx("span",{className:"nb-status",style:{background:l?"var(--color-running-bg)":"var(--color-crashed-bg)",color:l?"var(--color-running)":"var(--color-crashed)",padding:"2px 8px 2px 7px"},children:l?"server":"offline"}),g.jsx(Mk,{state:i}),g.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),g.jsxs("span",{className:"flex items-center gap-1",title:"活跃 pipeline 数",children:[g.jsx(wv,{size:10,strokeWidth:2.5}),g.jsx("span",{className:"font-bold text-[var(--color-text)]",children:c})," pipeline"]}),g.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),g.jsxs("span",{className:"flex items-center gap-1",title:"活跃 worker 数",children:[g.jsx(Ov,{size:10,strokeWidth:2.5}),g.jsx("span",{className:"font-bold text-[var(--color-text)]",children:u})," worker"]}),g.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),g.jsxs("span",{children:["localhost:",window.location.port]}),e.data&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),g.jsxs("span",{children:["v",e.data.version]}),g.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),g.jsxs("span",{children:["node ",e.data.nodeVersion]})]})]})}function Mk({state:e}){return e==="open"?g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)",padding:"2px 8px 2px 7px"},children:"SSE"}):e==="connecting"?g.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)",padding:"2px 8px 2px 7px"},children:"SSE·connect"}):g.jsxs("span",{className:"nb-status",style:{background:"var(--color-crashed-bg)",color:"var(--color-crashed)",padding:"2px 8px 2px 7px"},children:[g.jsx(Cv,{size:9,strokeWidth:2.5}),"SSE·down"]})}function Dk(){const[e,a]=O.useState("connecting"),i=O.useRef(null);return O.useEffect(()=>{const l=new EventSource("/stream/heartbeat");return i.current=l,l.addEventListener("server.heartbeat",()=>a("open")),l.addEventListener("error",()=>a("closed")),l.addEventListener("open",()=>a("open")),()=>{l.close(),i.current=null}},[]),e}function Lk(){return g.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[g.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:g.jsx(gk,{})}),g.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:g.jsx(bw,{})}),g.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:g.jsx(Ok,{})})]})}class zk extends O.Component{constructor(){super(...arguments);Jb(this,"state",{error:null})}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i,l){console.error("[ErrorBoundary]",i,l)}render(){return this.state.error?g.jsx("div",{className:"p-6",children:g.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),g.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),g.jsxs("details",{className:"text-xs mb-4",children:[g.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),g.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)"})]}),g.jsx("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"刷新页面"})]})}):this.props.children}}function jk(){const e=Wi(),{data:a,isLoading:i,isError:l,error:o,refetch:c}=Nt({queryKey:["projects"],queryFn:xo});return g.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[g.jsxs("header",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),g.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:a?`${a.data.length} 个本机项目`:i?"加载中…":"点击刷新重试"})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>c(),type:"button",children:[g.jsx(wv,{size:16,strokeWidth:2.5}),"刷新"]}),g.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:()=>e("/projects/new"),"aria-label":"新建项目",children:[g.jsx(yo,{size:16,strokeWidth:3}),"新建项目"]})]})]}),i&&g.jsx(Bk,{}),l&&g.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),g.jsx("p",{className:"text-sm text-[var(--color-text)]",children:o instanceof Error?o.message:String(o)}),g.jsx("button",{className:"nb-btn mt-4",onClick:()=>c(),type:"button",children:"重试"})]}),a&&a.data.length===0&&g.jsx(Fk,{}),a&&a.data.length>0&&g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:a.data.map(u=>g.jsx(Ik,{project:u},u.name))})]})}function Ik({project:e}){const a=e.pipelineStatus==="running";return g.jsxs(Ji,{to:`/projects/${encodeURIComponent(e.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:e.name}),g.jsx(Uk,{status:e.pipelineStatus})]}),e.repoDir&&g.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:e.repoDir}),g.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:[g.jsx(Ud,{label:"cards",value:e.cards.total,accent:"purple"}),g.jsx(Ud,{label:"inprogress",value:e.cards.inprogress,accent:e.cards.inprogress>0?"yellow":"idle"}),g.jsx(Ud,{label:"workers",value:`${e.workers.active}/${e.workers.total}`,accent:a?"mint":"idle"})]})]})}function Ud({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 g.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:[g.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:a}),g.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:e})]})}function Uk({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 g.jsx("span",{className:"nb-status",style:{background:i,color:o},children:l})}function Bk(){return g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(e=>g.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[g.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),g.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),g.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},e))})}function Fk(){return g.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[g.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:g.jsx(zv,{size:32,strokeWidth:2.5})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),g.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",g.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>"})," 创建第一个项目。"]}),g.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[g.jsx(yo,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function Hk({title:e,body:a,confirm:i,onConfirm:l,onCancel:o,danger:c}){return O.useEffect(()=>{const u=d=>{d.key==="Escape"&&o()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o]),g.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:g.jsxs("div",{onClick:u=>u.stopPropagation(),className:"nb-card max-w-md w-full",children:[g.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:a}),g.jsxs("div",{className:"flex gap-3 justify-end",children:[g.jsx("button",{className:"nb-btn",onClick:o,type:"button",children:"取消"}),g.jsx("button",{className:c?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await l()},type:"button",children:i})]})]})})}const Bv=O.createContext(null);function qk({children:e}){const[a,i]=O.useState(null),l=O.useCallback(u=>new Promise(d=>{i({kind:"confirm",opts:u,resolve:m=>{i(null),d(m)}})}),[]),o=O.useCallback(u=>new Promise(d=>{i({kind:"alert",opts:u,resolve:()=>{i(null),d()}})}),[]),c=O.useCallback(u=>new Promise(d=>{i({kind:"prompt",opts:u,resolve:m=>{i(null),d(m)}})}),[]);return g.jsxs(Bv.Provider,{value:{confirm:l,alert:o,prompt:c},children:[e,(a==null?void 0:a.kind)==="confirm"&&g.jsx(Hk,{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"&&g.jsx(Pk,{title:a.opts.title,body:a.opts.body,confirm:a.opts.confirm??"知道了",onClose:()=>a.resolve()}),(a==null?void 0:a.kind)==="prompt"&&g.jsx($k,{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 ua(){const e=O.useContext(Bv);if(!e)throw new Error("useDialog must be used inside <DialogProvider>");return e}function Pk({title:e,body:a,confirm:i,onClose:l}){return O.useEffect(()=>{const o=c=>{(c.key==="Escape"||c.key==="Enter")&&l()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[l]),g.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:g.jsxs("div",{onClick:o=>o.stopPropagation(),className:"nb-card max-w-md w-full",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5 whitespace-pre-wrap break-words",children:a}),g.jsx("div",{className:"flex gap-3 justify-end",children:g.jsx("button",{className:"nb-btn nb-btn-primary",onClick:l,type:"button",autoFocus:!0,children:i})})]})})}function $k({title:e,body:a,placeholder:i,defaultValue:l,confirm:o,cancel:c,onConfirm:u,onCancel:d}){const[m,h]=O.useState(l??""),y=O.useRef(null);O.useEffect(()=>{var E,_;(E=y.current)==null||E.focus(),(_=y.current)==null||_.select();const x=w=>{w.key==="Escape"&&d()};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[d]);const b=()=>{const x=m.trim();x&&u(x)};return g.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:g.jsxs("div",{onClick:x=>x.stopPropagation(),className:"nb-card max-w-md w-full",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),a&&g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-3 whitespace-pre-wrap break-words",children:a}),g.jsx("input",{ref:y,type:"text",className:"nb-input w-full mb-5",placeholder:i,value:m,onChange:x=>h(x.target.value),onKeyDown:x=>{x.key==="Enter"&&!x.nativeEvent.isComposing&&(x.preventDefault(),b())}}),g.jsxs("div",{className:"flex gap-3 justify-end",children:[g.jsx("button",{className:"nb-btn",onClick:d,type:"button",children:c}),g.jsx("button",{className:"nb-btn nb-btn-primary",onClick:b,type:"button",disabled:!m.trim(),children:o})]})]})})}function Gk(){const e=Wi(),a=oa(),{alert:i}=ua(),[l,o]=O.useState({name:"",projectDir:"",mergeBranch:"main",maxWorkers:"1"}),c=po({mutationFn:m=>Nk(m),onSuccess:m=>{a.invalidateQueries({queryKey:["projects"]}),e(`/projects/${encodeURIComponent(m.name)}`)},onError:m=>{i({title:"创建失败",body:m instanceof Error?m.message:String(m)})}}),u=/^[a-zA-Z0-9_-]+$/.test(l.name),d=u&&l.projectDir.trim()!==""&&!c.isPending;return g.jsxs("div",{className:"flex flex-col gap-5 max-w-2xl",children:[g.jsxs("header",{className:"flex items-center gap-3",children:[g.jsxs("button",{type:"button",onClick:()=>e("/projects"),className:"nb-btn",style:{padding:"6px 12px"},"aria-label":"返回项目列表",children:[g.jsx(Nv,{size:14,strokeWidth:3}),"返回"]}),g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:"新建项目"})]}),g.jsx("div",{className:"nb-card",children:g.jsxs("form",{onSubmit:m=>{m.preventDefault(),d&&c.mutate(l)},className:"flex flex-col gap-5",children:[g.jsxs(Sr,{label:"项目名",hint:"只能用字母、数字、下划线、连字符。例如 acme-web",children:[g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"例如: acme-web",value:l.name,onChange:m=>o({...l,name:m.target.value}),autoFocus:!0,required:!0}),l.name&&!u&&g.jsx("p",{className:"text-xs text-[var(--color-crashed)] mt-1",children:"名称只能包含 a-z A-Z 0-9 _ -"})]}),g.jsx(Sr,{label:"Git 仓库路径",hint:"本机绝对路径,如 /home/coral/code/acme",children:g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"/home/coral/code/acme",value:l.projectDir,onChange:m=>o({...l,projectDir:m.target.value}),required:!0})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx(Sr,{label:"合并分支",children:g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:l.mergeBranch,onChange:m=>o({...l,mergeBranch:m.target.value})})}),g.jsx(Sr,{label:"最大 Worker 数",children:g.jsx("input",{type:"number",min:"1",max:"8",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:l.maxWorkers,onChange:m=>o({...l,maxWorkers:m.target.value})})})]}),g.jsxs("div",{className:"pt-2 border-t-2 border-[var(--color-text)] border-dashed",children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold uppercase tracking-wider mb-3 text-[var(--color-text-muted)]",children:"可选配置"}),g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsx(Sr,{label:"Git 远程项目路径",hint:"如 user/repo,空则跳过 Git API",children:g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"user/repo",value:l.gitlabProject??"",onChange:m=>o({...l,gitlabProject:m.target.value})})}),l.gitlabProject&&g.jsx(Sr,{label:"GitLab 项目 ID",hint:"数字,GitHub 用户可留空",children:g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"42",value:l.gitlabProjectId??"",onChange:m=>o({...l,gitlabProjectId:m.target.value})})}),g.jsx(Sr,{label:"Matrix 房间 ID",hint:"空则使用全局配置",children:g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"!abc:matrix.example.com",value:l.matrixRoomId??"",onChange:m=>o({...l,matrixRoomId:m.target.value})})})]})]}),g.jsxs("div",{className:"flex gap-3 justify-end pt-3",children:[g.jsx("button",{type:"button",className:"nb-btn",onClick:()=>e("/projects"),disabled:c.isPending,children:"取消"}),g.jsx("button",{type:"submit",className:"nb-btn nb-btn-primary",disabled:!d,"aria-label":"创建项目",children:c.isPending?g.jsxs(g.Fragment,{children:[g.jsx(Da,{size:14,strokeWidth:3,className:"animate-spin"}),"创建中…"]}):g.jsxs(g.Fragment,{children:[g.jsx(yo,{size:14,strokeWidth:3}),"创建"]})})]})]})})]})}function Sr({label:e,hint:a,children:i}){return g.jsxs("label",{className:"flex flex-col gap-1.5",children:[g.jsx("span",{className:"text-sm font-bold",children:e}),i,a&&g.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:a})]})}function Kk(){var c;const{name:e=""}=pv(),a=Wi(),[i,l]=O.useState("overview"),o=Nt({queryKey:["project",e],queryFn:()=>wk(e),enabled:!!e});return g.jsxs("div",{className:"flex flex-col gap-5 max-w-4xl",children:[g.jsxs("header",{className:"flex items-center gap-3",children:[g.jsxs("button",{type:"button",onClick:()=>a("/projects"),className:"nb-btn",style:{padding:"6px 12px"},"aria-label":"返回项目列表",children:[g.jsx(Nv,{size:14,strokeWidth:3}),"返回"]}),g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold flex-1",children:e}),g.jsx(Ji,{to:`/board?project=${encodeURIComponent(e)}`,className:"nb-btn nb-btn-mint",children:"看板"})]}),g.jsxs("nav",{className:"flex gap-2 flex-wrap",children:[g.jsx(Pc,{current:i,value:"overview",onSelect:l,icon:_N,children:"概览"}),g.jsx(Pc,{current:i,value:"config",onSelect:l,icon:Dv,children:"配置"}),g.jsx(Pc,{current:i,value:"pipelines",onSelect:l,icon:jv,children:"Pipelines"}),g.jsx(Pc,{current:i,value:"danger",onSelect:l,icon:Wh,children:"危险操作"})]}),i==="overview"&&g.jsx(Qk,{name:e,data:o.data,loading:o.isLoading}),i==="config"&&g.jsx(Yk,{name:e}),i==="pipelines"&&g.jsx(Vk,{name:e}),i==="danger"&&g.jsx(Xk,{name:e,repoDir:((c=o.data)==null?void 0:c.repoDir)??null})]})}function Pc({current:e,value:a,onSelect:i,icon:l,children:o}){const c=e===a;return g.jsxs("button",{type:"button",onClick:()=>i(a),"aria-current":c?"page":void 0,className:["nb-btn",c?"nb-btn-primary":""].join(" "),style:{padding:"6px 14px",fontSize:13},children:[g.jsx(l,{size:13,strokeWidth:2.5}),o]})}function Qk({name:e,data:a,loading:i}){return i?g.jsx("div",{className:"nb-card",children:g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):a?g.jsx("div",{className:"nb-card",children:g.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-3 text-sm",children:[g.jsx("dt",{className:"font-bold",children:"仓库路径"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.repoDir??"—"}),g.jsx("dt",{className:"font-bold",children:"PM 后端"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.pmBackend}),g.jsx("dt",{className:"font-bold",children:"Agent"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.agentProvider}),g.jsx("dt",{className:"font-bold",children:"卡片"}),g.jsxs("dd",{className:"font-[family-name:var(--font-mono)]",children:[a.cards.total," 张 · ",a.cards.inprogress," 进行中 · ",a.cards.done," 完成"]}),g.jsx("dt",{className:"font-bold",children:"Worker"}),g.jsxs("dd",{className:"font-[family-name:var(--font-mono)]",children:[a.workers.total," 个(",a.workers.active," 活跃)"]}),g.jsx("dt",{className:"font-bold",children:"Pipeline"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.pipelineStatus}),g.jsx("dt",{className:"font-bold",children:"最近活动"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.lastActivityAt?new Date(a.lastActivityAt).toLocaleString():"—"})]})}):g.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:g.jsxs("p",{children:["项目 ",e," 不存在或无法读取。"]})})}function Yk({name:e}){const a=oa(),{alert:i}=ua(),{data:l,isLoading:o,isError:c,error:u,refetch:d}=Nt({queryKey:["project-conf",e],queryFn:()=>kk(e)}),[m,h]=O.useState(null),[y,b]=O.useState(null);l&&m===null&&(h(l.content),b(l.etag));const x=m!==null&&l!==void 0&&m!==l.content,E=po({mutationFn:()=>{if(m===null||y===null)throw new Error("no draft");return Tk(e,m,y)},onSuccess:_=>{b(_.etag),a.invalidateQueries({queryKey:["project-conf",e]}),a.invalidateQueries({queryKey:["project",e]})},onError:_=>{const w=_.status;i({title:w===409?"配置已被其他地方修改":"保存失败",body:w===409?'conf 文件在你编辑期间被改过。点"重新加载"后再编辑。':_ instanceof Error?_.message:String(_)})}});return o?g.jsx("div",{className:"nb-card",children:g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):c?g.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:g.jsxs("p",{children:["加载失败: ",u instanceof Error?u.message:String(u)]})}):g.jsxs("div",{className:"nb-card",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold",children:g.jsxs("code",{className:"font-[family-name:var(--font-mono)] text-sm bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:["~/.coral/projects/",e,"/conf"]})}),y&&g.jsxs("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] mt-1",children:["etag: ",y]})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{type:"button",className:"nb-btn",style:{padding:"6px 12px"},onClick:()=>{h(null),d()},disabled:E.isPending,"aria-label":"重新加载",children:[g.jsx(Yl,{size:13,strokeWidth:2.5}),"重新加载"]}),g.jsxs("button",{type:"button",className:"nb-btn nb-btn-primary",style:{padding:"6px 12px"},onClick:()=>E.mutate(),disabled:!x||E.isPending,"aria-label":"保存配置",children:[E.isPending?g.jsx(Da,{size:13,strokeWidth:3,className:"animate-spin"}):E.isSuccess&&!x?g.jsx(sN,{size:13,strokeWidth:3}):g.jsx(Mv,{size:13,strokeWidth:3}),"保存"]})]})]}),g.jsx("textarea",{className:"nb-input w-full font-[family-name:var(--font-mono)] text-xs",style:{minHeight:480,resize:"vertical"},value:m??"",onChange:_=>h(_.target.value),spellCheck:!1,"aria-label":"conf 文件编辑器"}),x&&g.jsx("p",{className:"text-xs text-[var(--color-stuck)] mt-2 font-bold",children:"● 未保存的修改"})]})}function Vk({name:e}){const a=oa(),{confirm:i,alert:l}=ua(),{data:o,isLoading:c}=Nt({queryKey:["project-pipelines",e],queryFn:()=>Ak(e)}),u=po({mutationFn:d=>Rk(e,d),onSuccess:()=>a.invalidateQueries({queryKey:["project-pipelines",e]}),onError:d=>{l({title:"切换失败",body:d instanceof Error?d.message:String(d)})}});return c?g.jsx("div",{className:"nb-card",children:g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):!o||o.available.length===0?g.jsx("div",{className:"nb-card bg-[var(--color-accent-yellow)]",children:g.jsxs("p",{className:"text-sm",children:["还没有 pipeline 文件。去"," ",g.jsxs("code",{className:"font-[family-name:var(--font-mono)] bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:["~/.coral/projects/",e,"/pipelines/"]})," ","里放一个 .yaml 再来切。"]})}):g.jsxs("div",{className:"nb-card",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold mb-3",children:"可用 Pipelines"}),g.jsx("ul",{className:"flex flex-col gap-2",children:o.available.map(d=>g.jsxs("li",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[g.jsx(jv,{size:16,strokeWidth:2.5}),g.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold flex-1",children:d.name}),d.isActive?g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"active"}):g.jsx("button",{type:"button",className:"nb-btn nb-btn-primary",style:{padding:"4px 12px",fontSize:12},onClick:async()=>{await i({title:`切换到 ${d.name}`,body:`当前 project.yaml 会被 ${d.name} 的内容覆盖。继续?`,confirm:"切换"})&&u.mutate(d.name)},disabled:u.isPending,"aria-label":`切换到 ${d.name}`,children:"切换"})]},d.name))})]})}function Xk({name:e,repoDir:a}){const i=Wi(),l=oa(),{alert:o}=ua(),[c,u]=O.useState(""),[d,m]=O.useState(!0),h=po({mutationFn:()=>Ck(e,{includeClaudeDir:d}),onSuccess:y=>{l.invalidateQueries({queryKey:["projects"]});const b=y.claudeRemoved.filter(x=>x.ok).map(x=>x.path);o({title:"已删除",body:b.length>0?`项目已删除。同时清理了:
|
|
301
|
+
${b.join(`
|
|
302
|
+
`)}`:"项目已删除。"}).then(()=>i("/projects"))},onError:y=>{o({title:"删除失败",body:y instanceof Error?y.message:String(y)})}});return g.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold mb-2 text-[var(--color-crashed)]",children:"删除项目"}),g.jsxs("p",{className:"text-sm mb-4",children:["这会清理 ",g.jsxs("code",{className:"font-[family-name:var(--font-mono)] bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-1.5 py-0.5 rounded",children:["~/.coral/projects/",e,"/"]}),"(包括所有卡片、runtime、logs)。"]}),a&&g.jsxs("label",{className:"flex items-start gap-2 mb-4 p-3 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:d,onChange:y=>m(y.target.checked),className:"mt-0.5"}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-sm font-bold",children:"同时清理 repo 的 .claude/"}),g.jsxs("div",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:[a,"/.claude/"]}),g.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"repo 本身不动,只清这个目录。"})]})]}),g.jsx("div",{className:"mb-4",children:g.jsxs("label",{className:"flex flex-col gap-1.5",children:[g.jsxs("span",{className:"text-sm font-bold",children:["输入项目名 ",g.jsx("code",{className:"font-[family-name:var(--font-mono)] text-xs",children:e})," 确认:"]}),g.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:c,onChange:y=>u(y.target.value),placeholder:e})]})}),g.jsxs("button",{type:"button",className:"nb-btn nb-btn-danger",disabled:c!==e||h.isPending,onClick:()=>h.mutate(),"aria-label":"永久删除项目",children:[h.isPending?g.jsx(Da,{size:14,strokeWidth:3,className:"animate-spin"}):g.jsx(Wh,{size:14,strokeWidth:3}),"永久删除"]})]})}function Zk(e){return Gt(`/api/projects/${encodeURIComponent(e)}/cards`)}function Wk(e,a){return Gt(`/api/projects/${encodeURIComponent(e)}/cards/${a}`)}async function Vl(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 Jk(e,a){return Vl(`/api/projects/${encodeURIComponent(e)}/cards/${a}/reset`)}function eT(e,a){return Vl(`/api/projects/${encodeURIComponent(e)}/cards/${a}/launch`)}function tT(e,a){return Vl(`/api/projects/${encodeURIComponent(e)}/cards`,{title:a})}function nT(e){return Vl(`/api/projects/${encodeURIComponent(e)}/pipeline/start`)}function aT(e){return Vl(`/api/projects/${encodeURIComponent(e)}/pipeline/stop`)}function iT(e,a){return Vl(`/api/projects/${encodeURIComponent(e)}/pipeline/reset`,a??{})}function Fv(e){const a=oa();O.useEffect(()=>{if(!e)return;const i=`/stream/projects/${encodeURIComponent(e)}`,l=new EventSource(i),o=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["cards",m.project]}),m.card&&a.setQueryData(["card",m.project,m.seq],{...a.getQueryData(["card",m.project,m.seq])??{},...m.card}),a.invalidateQueries({queryKey:["projects"]})}catch{}},c=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["workers",m.project]}),a.invalidateQueries({queryKey:["projects"]})}catch{}},u=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["pipeline-status",m.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 rT=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),lT=new Set(["frontend","backend","mobile","database","devops"]),sT=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),oT=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function cT(e){return rT.has(e)?"lang":lT.has(e)?"end":sT.has(e)?"persona":oT.has(e)?"workflow":"other"}const uT={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function Hv({name:e}){const a=uT[cT(e)];return g.jsx("span",{className:"nb-badge",style:{background:a},children:e})}function qv({label:e,kind:a="default"}){const i=a==="warn"?"var(--color-accent-pink)":a==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return g.jsx("span",{className:"nb-badge",style:{background:i},children:e})}function fT({card:e,onClick:a,done:i}){const l=e.labels.some(o=>o.startsWith("STARTED-"))&&!i;return g.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:[g.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[g.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&&g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),g.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)&&g.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[e.skills.slice(0,3).map(o=>g.jsx(Hv,{name:o},o)),e.labels.filter(o=>o==="NEEDS-FIX").map(o=>g.jsx(qv,{label:o,kind:"warn"},o))]}),g.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:[g.jsx("span",{children:dT(e.updatedAt??e.createdAt)}),e.branch&&g.jsxs("span",{className:"truncate",children:["· ",e.branch]})]})]})}function dT(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 hT({label:e,bg:a,cards:i,onCardClick:l}){return g.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:[g.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[g.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:e}),g.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})]}),g.jsxs("div",{className:"flex flex-col gap-2",children:[i.length===0&&g.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),i.map(o=>g.jsx(fT,{card:o,onClick:()=>l(o),done:e==="Done"},o.seq))]})]})}function mT({project:e,seq:a,onClose:i,onChanged:l}){const{confirm:o}=ua(),{data:c,isLoading:u,isError:d,error:m}=Nt({queryKey:["card",e,a],queryFn:()=>Wk(e,a)});return O.useEffect(()=>{const h=y=>{y.key==="Escape"&&i()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i]),g.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:g.jsxs("div",{onClick:h=>h.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[g.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[g.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)&&g.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})]}),g.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(c==null?void 0:c.title)??"加载中…"})]}),g.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:g.jsx(xu,{size:16,strokeWidth:3})})]}),u&&g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),d&&g.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&g.jsxs("div",{className:"flex flex-col gap-4",children:[c.branch&&g.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[g.jsx(kN,{size:14}),g.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:c.branch})]}),(c.skills.length>0||c.labels.length>0)&&g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.skills.map(h=>g.jsx(Hv,{name:h},h)),c.labels.map(h=>g.jsx(qv,{label:h,kind:h==="NEEDS-FIX"?"warn":"default"},h))]}),c.checklist.total>0&&g.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",c.checklist.done,"/",c.checklist.total]}),g.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:g.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${c.checklist.percent}%`}})})]}),g.jsx("ul",{className:"text-sm space-y-1",children:c.checklist.items.map((h,y)=>g.jsxs("li",{className:`flex items-start gap-2 ${h.done?"opacity-60 line-through":""}`,children:[g.jsx("span",{children:h.done?"✓":"○"}),g.jsx("span",{children:h.text})]},y))})]}),c.body&&g.jsxs("div",{children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),g.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()||"(空)"})]}),g.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[g.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await eT(e,a),l()},children:[g.jsx(Zh,{size:14,strokeWidth:3}),"启动 worker"]}),g.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await o({title:`重置卡片 #${a}`,body:"卡片状态会回到初始,已做的 checklist 会清空。",confirm:"重置",danger:!0})&&(await Jk(e,a),l(),i())},children:[g.jsx(yu,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Jh({current:e,onChange:a}){const[i,l]=O.useState(!1),o=O.useRef(null),{data:c}=Nt({queryKey:["projects"],queryFn:xo});return O.useEffect(()=>{const u=d=>{var m;(m=o.current)!=null&&m.contains(d.target)||l(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),g.jsxs("div",{className:"relative",ref:o,children:[g.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,g.jsx(kv,{size:14,strokeWidth:2.5})]}),i&&c&&g.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=>g.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:[g.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:u.name}),g.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[u.cards.total," cards"]})]},u.name))})]})}const pT=[{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 gT(){var H,ae,j;const[e,a]=Xh(),i=e.get("project"),[l,o]=O.useState(null),[c,u]=O.useState(""),[d,m]=O.useState(()=>new Set),[h,y]=O.useState(()=>new Set),{confirm:b,prompt:x}=ua();Fv(i);const E=Nt({queryKey:["projects"],queryFn:xo}),_=Nt({queryKey:["cards",i],queryFn:()=>Zk(i??""),enabled:!!i}),w=oa(),T=()=>{w.invalidateQueries({queryKey:["cards",i]}),w.invalidateQueries({queryKey:["projects"]}),w.invalidateQueries({queryKey:["pipeline-status",i]})},N=B=>{a({project:B})};if(!i)return g.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),g.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),g.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),g.jsx("div",{className:"flex flex-wrap gap-2",children:(H=E.data)==null?void 0:H.data.map(B=>g.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>N(B.name),type:"button",children:B.name},B.name))})]})]});const U=((ae=_.data)==null?void 0:ae.data)??[],{allSkills:z,allLabels:P}=O.useMemo(()=>{const B=new Set,Q=new Set;for(const oe of U){for(const re of oe.skills)B.add(re);for(const re of oe.labels)Q.add(re)}return{allSkills:[...B].sort(),allLabels:[...Q].sort()}},[U]),Z=U.filter(B=>{if(c){const Q=c.toLowerCase();if(!(B.title.toLowerCase().includes(Q)||B.skills.some(re=>re.toLowerCase().includes(Q))||B.labels.some(re=>re.toLowerCase().includes(Q))))return!1}return!(d.size>0&&!B.skills.some(oe=>d.has(oe))||h.size>0&&!B.labels.some(oe=>h.has(oe)))}),A=(j=E.data)==null?void 0:j.data.find(B=>B.name===i),V=(A==null?void 0:A.pipelineStatus)==="running";return g.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[g.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),g.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:A?`${A.name} · ${A.cards.total} cards · ${A.workers.active} workers 活跃`:"加载中…"})]}),g.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[g.jsx(Jh,{current:i,onChange:N}),V?g.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await aT(i),T()},type:"button",children:[g.jsx(Lv,{size:14,strokeWidth:3})," 停止"]}):g.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await nT(i),T()},type:"button",children:[g.jsx(Zh,{size:14,strokeWidth:3})," 启动 pipeline"]}),g.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await b({title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",danger:!0})&&(await iT(i,{all:!0}),T())},children:[g.jsx(yu,{size:14,strokeWidth:2.5})," 重置"]}),g.jsxs("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:async()=>{const B=await x({title:"新建卡片",body:"输入卡片标题,会作为 markdown 文件的 title。",placeholder:"例如:接入 GitHub OAuth"});B&&(await tT(i,B),T())},children:[g.jsx(yo,{size:14,strokeWidth:3})," 新卡片"]})]})]}),g.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[g.jsxs("div",{className:"relative flex-1 max-w-md",children:[g.jsx(su,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),g.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:c,onChange:B=>u(B.target.value),"aria-label":"搜索卡片"})]}),g.jsx(Ry,{label:"skill",options:z,selected:d,onChange:m}),g.jsx(Ry,{label:"label",options:P,selected:h,onChange:y}),(c||d.size>0||h.size>0)&&g.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>{u(""),m(new Set),y(new Set)},type:"button","aria-label":"清空筛选",children:[g.jsx(xu,{size:11,strokeWidth:3}),"清空"]}),g.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[g.jsx(wN,{size:12}),Z.length," / ",U.length]})]}),_.isError&&g.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[g.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),g.jsx("p",{className:"text-sm mt-1 text-[var(--color-text-muted)]",children:_.error instanceof Error?_.error.message:String(_.error)})]}),!_.isError&&g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:pT.map(B=>g.jsx(hT,{label:B.label,bg:B.bg,cards:Z.filter(bT(B.state)),onCardClick:Q=>o(Q.seq)},B.state))}),l!==null&&g.jsx(mT,{project:i,seq:l,onClose:()=>o(null),onChanged:T})]})}function bT(e){return a=>e==="Backlog"?a.state==="Backlog"||a.state==="Planning":e==="Done"?a.state==="Done"||a.state==="Canceled":a.state===e}function Ry({label:e,options:a,selected:i,onChange:l}){const[o,c]=O.useState(!1),u=O.useRef(null);O.useEffect(()=>{if(!o)return;const y=x=>{var E;(E=u.current)!=null&&E.contains(x.target)||c(!1)},b=x=>{x.key==="Escape"&&c(!1)};return window.addEventListener("click",y),window.addEventListener("keydown",b),()=>{window.removeEventListener("click",y),window.removeEventListener("keydown",b)}},[o]);const d=y=>{const b=new Set(i);b.has(y)?b.delete(y):b.add(y),l(b)},m=a.length===0,h=i.size;return g.jsxs("div",{ref:u,className:"relative",children:[g.jsxs("button",{type:"button",className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>!m&&c(y=>!y),disabled:m,"aria-haspopup":"listbox","aria-expanded":o,"aria-label":`按 ${e} 筛选`,children:[e,h>0&&g.jsx("span",{className:"ml-1 px-1.5 py-0.5 text-[10px] font-bold rounded-full bg-[var(--color-primary)] text-[var(--color-text)] border border-[var(--color-text)]",children:h}),g.jsx(kv,{size:11,strokeWidth:3,className:["transition-transform",o?"rotate-180":""].join(" ")})]}),o&&g.jsxs("div",{role:"listbox",className:"absolute left-0 top-full mt-2 z-20 min-w-[200px] max-h-64 overflow-auto nb-card p-2",style:{padding:8},children:[a.map(y=>{const b=i.has(y);return g.jsxs("label",{className:["flex items-center gap-2 px-2 py-1.5 rounded cursor-pointer text-sm font-[family-name:var(--font-mono)]",b?"bg-[var(--color-accent-mint)]":"hover:bg-[var(--color-bg-cream)]"].join(" "),children:[g.jsx("input",{type:"checkbox",checked:b,onChange:()=>d(y),className:"flex-shrink-0"}),g.jsx("span",{className:"truncate",children:y})]},y)}),h>0&&g.jsx("button",{type:"button",className:"w-full mt-2 pt-2 border-t-2 border-dashed border-[var(--color-text)] text-xs font-bold text-[var(--color-crashed)] text-center",onClick:()=>l(new Set),children:"清空选择"})]})]})}function yT(e){return Gt(`/api/projects/${encodeURIComponent(e)}/workers`)}function xT(e,a){return Gt(`/api/projects/${encodeURIComponent(e)}/workers/${a}`)}async function Pv(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 ou(e,a){return Pv(`/api/projects/${encodeURIComponent(e)}/workers/${a}/kill`)}function $v(e,a,i){return Pv(`/api/projects/${encodeURIComponent(e)}/workers/${a}/launch`,i?{seq:i}:void 0)}function vT(){const[e,a]=Xh(),i=e.get("project");Fv(i);const l=oa(),[o,c]=O.useState(null),{data:u,isLoading:d,isError:m,error:h,refetch:y}=Nt({queryKey:["workers",i],queryFn:()=>yT(i??""),enabled:!!i,refetchInterval:5e3});if(!i)return g.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),g.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",g.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",g.jsx(Ji,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const b=(u==null?void 0:u.data)??[],x=b.filter(w=>w.state==="running").length,E=b.filter(w=>w.state==="stuck").length,_=b.filter(w=>w.state==="crashed").length;return g.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[g.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),g.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[b.length," 个 slot · ",x," running · ",E," stuck · ",_," crashed"]})]}),g.jsxs("div",{className:"flex gap-3 items-center",children:[g.jsx(Jh,{current:i,onChange:w=>a({project:w})}),g.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>y(),type:"button",children:[g.jsx(yu,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),d&&g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),m&&g.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:g.jsxs("p",{className:"font-semibold",children:["加载失败: ",h instanceof Error?h.message:String(h)]})}),!d&&b.length===0&&g.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),b.length>0&&g.jsx("div",{className:"nb-card p-0 overflow-hidden",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[g.jsx(wr,{w:"70px",children:"Slot"}),g.jsx(wr,{children:"Card"}),g.jsx(wr,{w:"110px",children:"Status"}),g.jsx(wr,{w:"90px",children:"Stage"}),g.jsx(wr,{w:"90px",children:"PID"}),g.jsx(wr,{w:"120px",children:"Runtime"}),g.jsx(wr,{w:"260px",right:!0,children:"Action"})]})}),g.jsx("tbody",{children:b.map(w=>g.jsx(ET,{project:i,worker:w,onChange:()=>l.invalidateQueries({queryKey:["workers",i]}),onDetail:()=>c(w.slot)},w.slot))})]})}),o!==null&&g.jsx(_T,{project:i,slot:o,onClose:()=>c(null),onChange:()=>l.invalidateQueries({queryKey:["workers",i]})})]})}function wr({children:e,w:a,right:i}){return g.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 ET({project:e,worker:a,onChange:i,onDetail:l}){const{confirm:o,alert:c}=ua(),u=a.state==="idle",d=a.state==="crashed"||a.state==="stuck";return g.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[g.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:a.slot}),g.jsx("td",{className:"px-4 py-3",children:a.card?g.jsxs("span",{className:"font-semibold",children:[g.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]}):g.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),g.jsx("td",{className:"px-4 py-3",children:g.jsx(Gv,{state:a.state})}),g.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.stage||"—"}),g.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.pid??"—"}),g.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:Kv(a.runtimeMs)}),g.jsxs("td",{className:"px-4 py-3 text-right space-x-2",children:[g.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:l,type:"button","aria-label":`查看 worker-${a.slot} 详情`,children:[g.jsx(MN,{size:12,strokeWidth:2.5})," 详情"]}),d&&a.card&&g.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{if(await o({title:`重启 worker-${a.slot}`,body:`先杀掉当前进程,然后重新 launch 到卡 #${a.card.seq}。`,confirm:"重启"})){try{await ou(e,a.slot)}catch{}try{await $v(e,a.slot,a.card.seq),i()}catch(h){c({title:"重启失败",body:h instanceof Error?h.message:String(h)})}}},type:"button",children:[g.jsx(Yl,{size:12,strokeWidth:2.5})," 重启"]}),!u&&g.jsxs(g.Fragment,{children:[g.jsxs(Ji,{to:`/logs?project=${encodeURIComponent(e)}&worker=${a.slot}`,className:"nb-btn",style:{display:"inline-flex",padding:"4px 10px",fontSize:11},children:[g.jsx(sk,{size:12,strokeWidth:2.5})," log"]}),g.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{await o({title:`终止 worker-${a.slot}`,body:"当前任务会被强制中断,未保存的工作可能丢失。",confirm:"终止",danger:!0})&&(await ou(e,a.slot),i())},type:"button",children:[g.jsx(Iv,{size:12,strokeWidth:2.5})," 终止"]})]})]})]})}function _T({project:e,slot:a,onClose:i,onChange:l}){const{confirm:o,alert:c}=ua(),{data:u,isLoading:d,isError:m,error:h,refetch:y}=Nt({queryKey:["worker-detail",e,a],queryFn:()=>xT(e,a),refetchInterval:3e3});return g.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:g.jsxs("div",{onClick:b=>b.stopPropagation(),className:"nb-card mt-8 w-full max-w-3xl",children:[g.jsxs("header",{className:"flex items-center justify-between mb-3",children:[g.jsxs("div",{children:[g.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:["worker-",a]}),g.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] mt-0.5",children:e})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px"},onClick:()=>y(),type:"button","aria-label":"刷新",children:[g.jsx(yu,{size:12,strokeWidth:2.5})," 刷新"]}),g.jsx("button",{className:"nb-btn nb-btn-mint p-2",onClick:i,type:"button","aria-label":"关闭",children:"✕"})]})]}),d&&g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),m&&g.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",h instanceof Error?h.message:String(h)]}),u&&g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:g.jsxs("dl",{className:"grid grid-cols-[130px_1fr] gap-y-2 text-sm",children:[g.jsx("dt",{className:"font-bold",children:"状态"}),g.jsx("dd",{children:g.jsx(Gv,{state:u.state})}),g.jsx("dt",{className:"font-bold",children:"PID"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:u.pid??"—"}),g.jsx("dt",{className:"font-bold",children:"Card"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:u.card?`#${u.card.seq} · ${u.card.title}`:"—"}),g.jsx("dt",{className:"font-bold",children:"Stage"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:u.stage??"—"}),g.jsx("dt",{className:"font-bold",children:"Runtime"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:Kv(u.runtimeMs)}),g.jsx("dt",{className:"font-bold",children:"Marker"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)] text-xs text-[var(--color-text-muted)] break-all",children:u.markerPath}),g.jsx("dt",{className:"font-bold",children:"Marker 更新"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)] text-xs",children:u.markerUpdatedAt?`${new Date(u.markerUpdatedAt).toLocaleString()} (${ST(u.markerUpdatedAt)})`:"—"})]})}),g.jsxs("div",{children:[g.jsxs("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:["最近 ",u.recentLogs.length," 行日志"]}),u.recentLogs.length===0?g.jsxs("p",{className:"text-xs text-[var(--color-text-muted)] italic",children:["没找到带 worker-",a," 标签的日志。去 Logs 页看全量。"]}):g.jsx("pre",{className:"text-xs font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-3 max-h-64 overflow-auto whitespace-pre-wrap break-words",children:u.recentLogs.map(b=>`${b.ts??""} [${b.level}] ${b.msg}`).join(`
|
|
303
|
+
`)}),g.jsx(Ji,{to:`/logs?project=${encodeURIComponent(e)}&worker=${a}`,className:"inline-block mt-2 text-xs underline text-[var(--color-running)]",children:"查看完整 log →"})]}),g.jsxs("div",{className:"flex gap-2 justify-end border-t-2 border-dashed border-[var(--color-text)] pt-3",children:[(u.state==="crashed"||u.state==="stuck")&&u.card&&g.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{if(await o({title:`重启 worker-${a}`,body:`先杀掉当前进程,重新 launch 到卡 #${u.card.seq}。`,confirm:"重启"})){try{await ou(e,a)}catch{}try{await $v(e,a,u.card.seq),l(),y()}catch(x){c({title:"重启失败",body:x instanceof Error?x.message:String(x)})}}},type:"button",children:[g.jsx(Yl,{size:14,strokeWidth:2.5})," 重启"]}),u.state!=="idle"&&g.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{if(await o({title:`终止 worker-${a}`,body:"当前任务会被强制中断。",confirm:"终止",danger:!0}))try{await ou(e,a),l(),y()}catch(x){c({title:"终止失败",body:x instanceof Error?x.message:String(x)})}},type:"button",children:[g.jsx(Iv,{size:14,strokeWidth:3})," 终止"]}),u.state==="running"&&g.jsx(Da,{size:14,strokeWidth:3,className:"animate-spin self-center text-[var(--color-running)]"})]})]})]})})}function ST(e){const a=Date.now()-new Date(e).getTime();return a<6e4?`${Math.floor(a/1e3)}s 前`:a<36e5?`${Math.floor(a/6e4)}m 前`:`${Math.floor(a/36e5)}h 前`}function Gv({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 g.jsx("span",{className:"nb-status",style:{background:i,color:l},children:e})}function Kv(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 wT(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),a.set("limit",String(e.limit)),e.since&&a.set("since",e.since),Gt(`/api/logs?${a}`)}function NT(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),`/stream/logs?${a}`}const kT=["error","warn","info","debug"],TT=["error","warn","info"];function CT(){const[e,a]=Xh(),i=e.get("project"),l=e.get("worker")??"",[o,c]=O.useState([]),[u,d]=O.useState(!1),[m,h]=O.useState(!0),[y,b]=O.useState(()=>new Set(TT)),[x,E]=O.useState(""),[_,w]=O.useState("live"),[T,N]=O.useState(()=>{const A=new Date(Date.now()-36e5),V=H=>String(H).padStart(2,"0");return`${A.getFullYear()}-${V(A.getMonth()+1)}-${V(A.getDate())}T${V(A.getHours())}:${V(A.getMinutes())}`}),U=O.useRef(null),{data:z,refetch:P}=Nt({queryKey:["logs",i,l,_,_==="history"?T:"live"],queryFn:()=>wT({project:i??"",worker:l||void 0,limit:_==="history"?2e3:500,since:_==="history"?new Date(T).toISOString():void 0}),enabled:!!i});O.useEffect(()=>{z!=null&&z.data&&c(z.data)},[z]),O.useEffect(()=>{if(!i||_!=="live")return;const A=NT({project:i,worker:l||void 0}),V=new EventSource(A);return V.addEventListener("log.line",H=>{if(!u)try{const ae=JSON.parse(H.data);c(j=>{const B=[...j,ae];return B.length>5e3&&B.splice(0,B.length-5e3),B})}catch{}}),()=>V.close()},[i,l,u,_]),O.useEffect(()=>{if(!m)return;const A=U.current;A&&(A.scrollTop=A.scrollHeight)},[o,m]);const Z=O.useMemo(()=>{const A=x.toLowerCase();return o.filter(V=>!(!y.has(V.level)||A&&!V.msg.toLowerCase().includes(A)))},[o,y,x]);return i?g.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[g.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),g.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[i,l&&` · worker-${l}`," · tail -f · ",o.length," lines",u&&g.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),g.jsx("div",{className:"flex gap-3 items-center",children:g.jsx(Jh,{current:i,onChange:A=>a({project:A})})})]}),g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsxs("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:[g.jsxs("button",{type:"button",onClick:()=>w("live"),"aria-pressed":_==="live",className:["px-3 py-1 rounded-full text-xs font-bold flex items-center gap-1.5",_==="live"?"bg-[var(--color-primary)] text-[var(--color-text)] shadow-[1px_1px_0_var(--color-text)]":"text-[var(--color-text-muted)]"].join(" "),children:[g.jsx(Ov,{size:11,strokeWidth:2.5}),"实时"]}),g.jsxs("button",{type:"button",onClick:()=>w("history"),"aria-pressed":_==="history",className:["px-3 py-1 rounded-full text-xs font-bold flex items-center gap-1.5",_==="history"?"bg-[var(--color-primary)] text-[var(--color-text)] shadow-[1px_1px_0_var(--color-text)]":"text-[var(--color-text-muted)]"].join(" "),children:[g.jsx(RN,{size:11,strokeWidth:2.5}),"历史"]})]}),_==="history"&&g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"datetime-local",className:"nb-input",style:{padding:"4px 8px",fontSize:12},value:T,onChange:A=>N(A.target.value),"aria-label":"查询起始时间"}),g.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"6px 12px",fontSize:12},onClick:()=>P(),type:"button","aria-label":"查询",children:[g.jsx(su,{size:11,strokeWidth:3}),"查询"]})]}),g.jsxs("div",{className:"relative flex-1 max-w-md",children:[g.jsx(su,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),g.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:x,onChange:A=>E(A.target.value),"aria-label":"过滤日志"})]}),g.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:kT.map(A=>g.jsx(AT,{level:A,enabled:y.has(A),onToggle:()=>{b(V=>{const H=new Set(V);return H.has(A)?H.delete(A):H.add(A),H})}},A))}),g.jsxs("div",{className:"ml-auto flex gap-2",children:[_==="live"&&g.jsxs(g.Fragment,{children:[g.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>h(A=>!A),type:"button",children:m?"✓ Auto-scroll":"Auto-scroll"}),g.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>d(A=>!A),type:"button",children:u?g.jsxs(g.Fragment,{children:[g.jsx(Zh,{size:12,strokeWidth:3})," Resume"]}):g.jsxs(g.Fragment,{children:[g.jsx($N,{size:12,strokeWidth:3})," Pause"]})})]}),g.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const A=new Blob([Z.map(ae=>ae.raw).join(`
|
|
304
|
+
`)],{type:"text/plain"}),V=URL.createObjectURL(A),H=document.createElement("a");H.href=V,H.download=`${i}-log-${Date.now()}.log`,H.click(),URL.revokeObjectURL(V)},type:"button",children:[g.jsx(Av,{size:12,strokeWidth:2.5})," Export"]})]})]}),g.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[g.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:[g.jsx("span",{className:"text-[var(--color-text-muted)]",children:(z==null?void 0:z.file)??"~/.coral/projects/.../logs/*.log"}),_==="live"?g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"}):g.jsx("span",{className:"nb-status",style:{background:"var(--color-accent-purple)",color:"var(--color-text)"},children:"history"})]}),g.jsxs("div",{ref:U,className:"overflow-auto font-[family-name:var(--font-mono)] text-[12px] leading-[22px] max-h-[70vh] bg-[var(--color-bg)] p-2",onScroll:A=>{const V=A.currentTarget;!(V.scrollHeight-V.scrollTop-V.clientHeight<40)&&m&&h(!1)},children:[Z.map((A,V)=>g.jsx(RT,{line:A},V)),Z.length===0&&g.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):g.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),g.jsxs("p",{className:"text-sm",children:["需要 ",g.jsx("code",{children:"?project=xx"}),"。"]})]})}function AT({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 g.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 RT({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 g.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[g.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:"--"}),g.jsx("span",{className:`text-center font-bold ${a[e.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:e.level.toUpperCase()}),g.jsx("span",{className:"truncate text-[var(--color-text)]",children:e.msg})]})}function OT(e){return Gt("/api/skills")}function MT(e){return Gt(`/api/skills/${encodeURIComponent(e)}`)}function DT(e,a){return Gt(`/api/skills/${encodeURIComponent(e)}/references/${encodeURIComponent(a)}`)}async function vu(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 LT(e,a){return vu(`/api/skills/${encodeURIComponent(e)}/link`,{project:a})}function zT(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 jT(e,a){return vu(`/api/skills/${encodeURIComponent(e)}/freeze`,{project:a})}function IT(e,a){return vu(`/api/skills/${encodeURIComponent(e)}/unfreeze`,{project:a})}function UT(){return vu("/api/skills/sync")}function BT(e,a){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const FT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qT={};function Oy(e,a){return(qT.jsx?HT:FT).test(e)}const PT=/[ \t\n\f\r]/g;function $T(e){return typeof e=="object"?e.type==="text"?My(e.value):!1:My(e)}function My(e){return e.replace(PT,"")===""}class vo{constructor(a,i,l){this.normal=i,this.property=a,l&&(this.space=l)}}vo.prototype.normal={};vo.prototype.property={};vo.prototype.space=void 0;function Qv(e,a){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new vo(i,l,a)}function _h(e){return e.toLowerCase()}class Mn{constructor(a,i){this.attribute=i,this.property=a}}Mn.prototype.attribute="";Mn.prototype.booleanish=!1;Mn.prototype.boolean=!1;Mn.prototype.commaOrSpaceSeparated=!1;Mn.prototype.commaSeparated=!1;Mn.prototype.defined=!1;Mn.prototype.mustUseProperty=!1;Mn.prototype.number=!1;Mn.prototype.overloadedBoolean=!1;Mn.prototype.property="";Mn.prototype.spaceSeparated=!1;Mn.prototype.space=void 0;let GT=0;const Be=Ur(),$t=Ur(),Sh=Ur(),ue=Ur(),xt=Ur(),Rl=Ur(),$n=Ur();function Ur(){return 2**++GT}const wh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:$t,commaOrSpaceSeparated:$n,commaSeparated:Rl,number:ue,overloadedBoolean:Sh,spaceSeparated:xt},Symbol.toStringTag,{value:"Module"})),Bd=Object.keys(wh);class em extends Mn{constructor(a,i,l,o){let c=-1;if(super(a,i),Dy(this,"space",o),typeof l=="number")for(;++c<Bd.length;){const u=Bd[c];Dy(this,Bd[c],(l&wh[u])===wh[u])}}}em.prototype.defined=!0;function Dy(e,a,i){i&&(e[a]=i)}function Xl(e){const a={},i={};for(const[l,o]of Object.entries(e.properties)){const c=new em(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(c.mustUseProperty=!0),a[l]=c,i[_h(l)]=l,i[_h(c.attribute)]=l}return new vo(a,i,e.space)}const Yv=Xl({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:xt,ariaCurrent:null,ariaDescribedBy:xt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:xt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:xt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xt,ariaLevel:ue,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:xt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:xt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:$t,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Vv(e,a){return a in e?e[a]:a}function Xv(e,a){return Vv(e,a.toLowerCase())}const KT=Xl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rl,acceptCharset:xt,accessKey:xt,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:xt,autoFocus:Be,autoPlay:Be,blocking:xt,capture:null,charSet:null,checked:Be,cite:null,className:xt,cols:ue,colSpan:null,content:null,contentEditable:$t,controls:Be,controlsList:xt,coords:ue|Rl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:Sh,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:xt,height:ue,hidden:Sh,high:ue,href:null,hrefLang:null,htmlFor:xt,httpEquiv:xt,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:xt,itemRef:xt,itemScope:Be,itemType:xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,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:Be,optimum:ue,pattern:null,ping:xt,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:xt,required:Be,reversed:Be,rows:ue,rowSpan:ue,sandbox:xt,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:$t,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Xv}),QT=Xl({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:$n,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Rl,g2:Rl,glyphName:Rl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:$n,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$n,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$n,rev:$n,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$n,requiredFeatures:$n,requiredFonts:$n,requiredFormats:$n,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:$n,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$n,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$n,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vv}),Zv=Xl({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()}}),Wv=Xl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xv}),Jv=Xl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,a){return"xml:"+a.slice(3).toLowerCase()}}),YT={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"},VT=/[A-Z]/g,Ly=/-[a-z]/g,XT=/^data[-\w.:]+$/i;function ZT(e,a){const i=_h(a);let l=a,o=Mn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&XT.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Ly,JT);l="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Ly.test(c)){let u=c.replace(VT,WT);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}o=em}return new o(l,a)}function WT(e){return"-"+e.toLowerCase()}function JT(e){return e.charAt(1).toUpperCase()}const eC=Qv([Yv,KT,Zv,Wv,Jv],"html"),tm=Qv([Yv,QT,Zv,Wv,Jv],"svg");function tC(e){return e.join(" ").trim()}var Nl={},Fd,zy;function nC(){if(zy)return Fd;zy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
305
|
+
`,h="/",y="*",b="",x="comment",E="declaration";function _(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var U=1,z=1;function P(re){var W=re.match(a);W&&(U+=W.length);var q=re.lastIndexOf(m);z=~q?re.length-q:z+re.length}function Z(){var re={line:U,column:z};return function(W){return W.position=new A(re),ae(),W}}function A(re){this.start=re,this.end={line:U,column:z},this.source=N.source}A.prototype.content=T;function V(re){var W=new Error(N.source+":"+U+":"+z+": "+re);if(W.reason=re,W.filename=N.source,W.line=U,W.column=z,W.source=T,!N.silent)throw W}function H(re){var W=re.exec(T);if(W){var q=W[0];return P(q),T=T.slice(q.length),W}}function ae(){H(i)}function j(re){var W;for(re=re||[];W=B();)W!==!1&&re.push(W);return re}function B(){var re=Z();if(!(h!=T.charAt(0)||y!=T.charAt(1))){for(var W=2;b!=T.charAt(W)&&(y!=T.charAt(W)||h!=T.charAt(W+1));)++W;if(W+=2,b===T.charAt(W-1))return V("End of comment missing");var q=T.slice(2,W-2);return z+=2,P(q),T=T.slice(W),z+=2,re({type:x,comment:q})}}function Q(){var re=Z(),W=H(l);if(W){if(B(),!H(o))return V("property missing ':'");var q=H(c),le=re({type:E,property:w(W[0].replace(e,b)),value:q?w(q[0].replace(e,b)):b});return H(u),le}}function oe(){var re=[];j(re);for(var W;W=Q();)W!==!1&&(re.push(W),j(re));return re}return ae(),oe()}function w(T){return T?T.replace(d,b):b}return Fd=_,Fd}var jy;function aC(){if(jy)return Nl;jy=1;var e=Nl&&Nl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=i;const a=e(nC());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(m=>{if(m.type!=="declaration")return;const{property:h,value:y}=m;d?o(h,y,m):y&&(c=c||{},c[h]=y)}),c}return Nl}var Vs={},Iy;function iC(){if(Iy)return Vs;Iy=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.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,y){return y.toUpperCase()},d=function(h,y){return"".concat(y,"-")},m=function(h,y){return y===void 0&&(y={}),c(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(o,d):h=h.replace(l,d),h.replace(a,u))};return Vs.camelCase=m,Vs}var Xs,Uy;function rC(){if(Uy)return Xs;Uy=1;var e=Xs&&Xs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=e(aC()),i=iC();function l(o,c){var u={};return!o||typeof o!="string"||(0,a.default)(o,function(d,m){d&&m&&(u[(0,i.camelCase)(d,c)]=m)}),u}return l.default=l,Xs=l,Xs}var lC=rC();const sC=zh(lC),eE=tE("end"),nm=tE("start");function tE(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 oC(e){const a=nm(e),i=eE(e);if(a&&i)return{start:a,end:i}}function to(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?By(e.position):"start"in e||"end"in e?By(e):"line"in e||"column"in e?Nh(e):""}function Nh(e){return Fy(e&&e.line)+":"+Fy(e&&e.column)}function By(e){return Nh(e&&e.start)+"-"+Nh(e&&e.end)}function Fy(e){return e&&typeof e=="number"?e:1}class un 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 m=l.indexOf(":");m===-1?c.ruleId=l:(c.source=l.slice(0,m),c.ruleId=l.slice(m+1))}if(!c.place&&c.ancestors&&c.ancestors){const m=c.ancestors[c.ancestors.length-1];m&&(c.place=m.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=to(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}}un.prototype.file="";un.prototype.name="";un.prototype.reason="";un.prototype.message="";un.prototype.stack="";un.prototype.column=void 0;un.prototype.line=void 0;un.prototype.ancestors=void 0;un.prototype.cause=void 0;un.prototype.fatal=void 0;un.prototype.place=void 0;un.prototype.ruleId=void 0;un.prototype.source=void 0;const am={}.hasOwnProperty,cC=new Map,uC=/[A-Z]/g,fC=new Set(["table","tbody","thead","tfoot","tr"]),dC=new Set(["td","th"]),nE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hC(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=EC(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=vC(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"?tm:eC,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=aE(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function aE(e,a,i){if(a.type==="element")return mC(e,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return pC(e,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return bC(e,a,i);if(a.type==="mdxjsEsm")return gC(e,a);if(a.type==="root")return yC(e,a,i);if(a.type==="text")return xC(e,a)}function mC(e,a,i){const l=e.schema;let o=l;a.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=tm,e.schema=o),e.ancestors.push(a);const c=rE(e,a.tagName,!1),u=_C(e,a);let d=rm(e,a);return fC.has(a.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!$T(m):!0})),iE(e,u,c,a),im(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function pC(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)}so(e,a.position)}function gC(e,a){if(a.data&&a.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(a.data.estree);so(e,a.position)}function bC(e,a,i){const l=e.schema;let o=l;a.name==="svg"&&l.space==="html"&&(o=tm,e.schema=o),e.ancestors.push(a);const c=a.name===null?e.Fragment:rE(e,a.name,!0),u=SC(e,a),d=rm(e,a);return iE(e,u,c,a),im(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function yC(e,a,i){const l={};return im(l,rm(e,a)),e.create(a,e.Fragment,l,i)}function xC(e,a){return a.value}function iE(e,a,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(a.node=l)}function im(e,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(e.children=i)}}function vC(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 EC(e,a){return i;function i(l,o,c,u){const d=Array.isArray(c.children),m=nm(l);return a(o,c,u,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function _C(e,a){const i={};let l,o;for(o in a.properties)if(o!=="children"&&am.call(a.properties,o)){const c=wC(e,o,a.properties[o]);if(c){const[u,d]=c;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&dC.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 SC(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 so(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 so(e,a.position);else c=l.value===null?!0:l.value;i[o]=c}return i}function rm(e,a){const i=[];let l=-1;const o=e.passKeys?new Map:cC;for(;++l<a.children.length;){const c=a.children[l];let u;if(e.passKeys){const m=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(m){const h=o.get(m)||0;u=m+"-"+h,o.set(m,h+1)}}const d=aE(e,c,u);d!==void 0&&i.push(d)}return i}function wC(e,a,i){const l=ZT(e.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?BT(i):tC(i)),l.property==="style"){let o=typeof i=="object"?i:NC(e,String(i));return e.stylePropertyNameCase==="css"&&(o=kC(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?YT[l.property]||l.property:l.attribute,i]}}function NC(e,a){try{return sC(a,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new un("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=nE+"#cannot-parse-style-attribute",o}}function rE(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=Oy(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=Oy(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(l.type==="Literal"){const o=l.value;return am.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);so(e)}function so(e,a){const i=new un("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=nE+"#cannot-handle-mdx-estrees-without-createevaluater",i}function kC(e){const a={};let i;for(i in e)am.call(e,i)&&(a[TC(i)]=e[i]);return a}function TC(e){let a=e.replace(uC,CC);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function CC(e){return"-"+e.toLowerCase()}const Hd={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"]},AC={};function lm(e,a){const i=AC,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return lE(e,l,o)}function lE(e,a,i){if(RC(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 Hy(e.children,a,i)}return Array.isArray(e)?Hy(e,a,i):""}function Hy(e,a,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=lE(e[o],a,i);return l.join("")}function RC(e){return!!(e&&typeof e=="object")}const qy=document.createElement("i");function sm(e){const a="&"+e+";";qy.innerHTML=a;const i=qy.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===a?!1:i}function Kn(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 la(e,a){return e.length>0?(Kn(e,e.length,0,a),e):a}const Py={}.hasOwnProperty;function sE(e){const a={};let i=-1;for(;++i<e.length;)OC(a,e[i]);return a}function OC(e,a){let i;for(i in a){const o=(Py.call(e,i)?e[i]:void 0)||(e[i]={}),c=a[i];let u;if(c)for(u in c){Py.call(o,u)||(o[u]=[]);const d=c[u];MC(o[u],Array.isArray(d)?d:d?[d]:[])}}}function MC(e,a){let i=-1;const l=[];for(;++i<a.length;)(a[i].add==="after"?e:l).push(a[i]);Kn(e,0,0,l)}function oE(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 ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yn=er(/[A-Za-z]/),cn=er(/[\dA-Za-z]/),DC=er(/[#-'*+\--9=?A-Z^-~]/);function cu(e){return e!==null&&(e<32||e===127)}const kh=er(/\d/),LC=er(/[\dA-Fa-f]/),zC=er(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function bt(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const Eu=er(new RegExp("\\p{P}|\\p{S}","u")),Ir=er(/\s/);function er(e){return a;function a(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Zl(e){const a=[];let i=-1,l=0,o=0;for(;++i<e.length;){const c=e.charCodeAt(i);let u="";if(c===37&&cn(e.charCodeAt(i+1))&&cn(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(m){return Ge(m)?(e.enter(i),d(m)):a(m)}function d(m){return Ge(m)&&c++<o?(e.consume(m),d):(e.exit(i),a(m))}}const jC={tokenize:IC};function IC(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 m=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Te(d)?(e.consume(d),e.exit("chunkText"),c):(e.consume(d),u)}}const UC={tokenize:BC},$y={tokenize:FC};function BC(e){const a=this,i=[];let l=0,o,c,u;return d;function d(z){if(l<i.length){const P=i[l];return a.containerState=P[1],e.attempt(P[0].continuation,m,h)(z)}return h(z)}function m(z){if(l++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&U();const P=a.events.length;let Z=P,A;for(;Z--;)if(a.events[Z][0]==="exit"&&a.events[Z][1].type==="chunkFlow"){A=a.events[Z][1].end;break}N(l);let V=P;for(;V<a.events.length;)a.events[V][1].end={...A},V++;return Kn(a.events,Z+1,0,a.events.slice(P)),a.events.length=V,h(z)}return d(z)}function h(z){if(l===i.length){if(!o)return x(z);if(o.currentConstruct&&o.currentConstruct.concrete)return _(z);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},e.check($y,y,b)(z)}function y(z){return o&&U(),N(l),x(z)}function b(z){return a.parser.lazy[a.now().line]=l!==i.length,u=a.now().offset,_(z)}function x(z){return a.containerState={},e.attempt($y,E,_)(z)}function E(z){return l++,i.push([a.currentConstruct,a.containerState]),x(z)}function _(z){if(z===null){o&&U(),N(0),e.consume(z);return}return o=o||a.parser.flow(a.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),w(z)}function w(z){if(z===null){T(e.exit("chunkFlow"),!0),N(0),e.consume(z);return}return Te(z)?(e.consume(z),T(e.exit("chunkFlow")),l=0,a.interrupt=void 0,d):(e.consume(z),w)}function T(z,P){const Z=a.sliceStream(z);if(P&&Z.push(null),z.previous=c,c&&(c.next=z),c=z,o.defineSkip(z.start),o.write(Z),a.parser.lazy[z.start.line]){let A=o.events.length;for(;A--;)if(o.events[A][1].start.offset<u&&(!o.events[A][1].end||o.events[A][1].end.offset>u))return;const V=a.events.length;let H=V,ae,j;for(;H--;)if(a.events[H][0]==="exit"&&a.events[H][1].type==="chunkFlow"){if(ae){j=a.events[H][1].end;break}ae=!0}for(N(l),A=V;A<a.events.length;)a.events[A][1].end={...j},A++;Kn(a.events,H+1,0,a.events.slice(V)),a.events.length=A}}function N(z){let P=i.length;for(;P-- >z;){const Z=i[P];a.containerState=Z[1],Z[0].exit.call(a,e)}i.length=z}function U(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function FC(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 Pl(e){if(e===null||bt(e)||Ir(e))return 1;if(Eu(e))return 2}function _u(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 Th={name:"attention",resolveAll:HC,tokenize:qC};function HC(e,a){let i=-1,l,o,c,u,d,m,h,y;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;m=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 b={...e[l][1].end},x={...e[i][1].start};Gy(b,-m),Gy(x,m),u={type:m>1?"strongSequence":"emphasisSequence",start:b,end:{...e[l][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},c={type:m>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:m>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=la(h,[["enter",e[l][1],a],["exit",e[l][1],a]])),h=la(h,[["enter",o,a],["enter",u,a],["exit",u,a],["enter",c,a]]),h=la(h,_u(a.parser.constructs.insideSpan.null,e.slice(l+1,i),a)),h=la(h,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",o,a]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,h=la(h,[["enter",e[i][1],a],["exit",e[i][1],a]])):y=0,Kn(e,l-1,i-l+3,h),i=l+h.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function qC(e,a){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=Pl(l);let c;return u;function u(m){return c=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===c)return e.consume(m),d;const h=e.exit("attentionSequence"),y=Pl(m),b=!y||y===2&&o||i.includes(m),x=!o||o===2&&y||i.includes(l);return h._open=!!(c===42?b:b&&(o||!x)),h._close=!!(c===42?x:x&&(y||!b)),a(m)}}function Gy(e,a){e.column+=a,e.offset+=a,e._bufferIndex+=a}const PC={name:"autolink",tokenize:$C};function $C(e,a,i){let l=0;return o;function o(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(E){return yn(E)?(e.consume(E),u):E===64?i(E):h(E)}function u(E){return E===43||E===45||E===46||cn(E)?(l=1,d(E)):h(E)}function d(E){return E===58?(e.consume(E),l=0,m):(E===43||E===45||E===46||cn(E))&&l++<32?(e.consume(E),d):(l=0,h(E))}function m(E){return E===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),a):E===null||E===32||E===60||cu(E)?i(E):(e.consume(E),m)}function h(E){return E===64?(e.consume(E),y):DC(E)?(e.consume(E),h):i(E)}function y(E){return cn(E)?b(E):i(E)}function b(E){return E===46?(e.consume(E),l=0,y):E===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),a):x(E)}function x(E){if((E===45||cn(E))&&l++<63){const _=E===45?x:b;return e.consume(E),_}return i(E)}}const Eo={partial:!0,tokenize:GC};function GC(e,a,i){return l;function l(c){return Ge(c)?We(e,o,"linePrefix")(c):o(c)}function o(c){return c===null||Te(c)?a(c):i(c)}}const cE={continuation:{tokenize:QC},exit:YC,name:"blockQuote",tokenize:KC};function KC(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 Ge(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),a):(e.exit("blockQuotePrefix"),a(u))}}function QC(e,a,i){const l=this;return o;function o(u){return Ge(u)?We(e,c,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):c(u)}function c(u){return e.attempt(cE,a,i)(u)}}function YC(e){e.exit("blockQuote")}const uE={name:"characterEscape",tokenize:VC};function VC(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 zC(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),a):i(c)}}const fE={name:"characterReference",tokenize:XC};function XC(e,a,i){const l=this;let o=0,c,u;return d;function d(b){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),m}function m(b){return b===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(b),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),c=31,u=cn,y(b))}function h(b){return b===88||b===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(b),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,u=LC,y):(e.enter("characterReferenceValue"),c=7,u=kh,y(b))}function y(b){if(b===59&&o){const x=e.exit("characterReferenceValue");return u===cn&&!sm(l.sliceSerialize(x))?i(b):(e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),e.exit("characterReference"),a)}return u(b)&&o++<c?(e.consume(b),y):i(b)}}const Ky={partial:!0,tokenize:WC},Qy={concrete:!0,name:"codeFenced",tokenize:ZC};function ZC(e,a,i){const l=this,o={partial:!0,tokenize:Z};let c=0,u=0,d;return m;function m(A){return h(A)}function h(A){const V=l.events[l.events.length-1];return c=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(A)}function y(A){return A===d?(u++,e.consume(A),y):u<3?i(A):(e.exit("codeFencedFenceSequence"),Ge(A)?We(e,b,"whitespace")(A):b(A))}function b(A){return A===null||Te(A)?(e.exit("codeFencedFence"),l.interrupt?a(A):e.check(Ky,w,P)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||Te(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b(A)):Ge(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,E,"whitespace")(A)):A===96&&A===d?i(A):(e.consume(A),x)}function E(A){return A===null||Te(A)?b(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(A))}function _(A){return A===null||Te(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(A)):A===96&&A===d?i(A):(e.consume(A),_)}function w(A){return e.attempt(o,P,T)(A)}function T(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),N}function N(A){return c>0&&Ge(A)?We(e,U,"linePrefix",c+1)(A):U(A)}function U(A){return A===null||Te(A)?e.check(Ky,w,P)(A):(e.enter("codeFlowValue"),z(A))}function z(A){return A===null||Te(A)?(e.exit("codeFlowValue"),U(A)):(e.consume(A),z)}function P(A){return e.exit("codeFenced"),a(A)}function Z(A,V,H){let ae=0;return j;function j(W){return A.enter("lineEnding"),A.consume(W),A.exit("lineEnding"),B}function B(W){return A.enter("codeFencedFence"),Ge(W)?We(A,Q,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Q(W)}function Q(W){return W===d?(A.enter("codeFencedFenceSequence"),oe(W)):H(W)}function oe(W){return W===d?(ae++,A.consume(W),oe):ae>=u?(A.exit("codeFencedFenceSequence"),Ge(W)?We(A,re,"whitespace")(W):re(W)):H(W)}function re(W){return W===null||Te(W)?(A.exit("codeFencedFence"),V(W)):H(W)}}}function WC(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 qd={name:"codeIndented",tokenize:eA},JC={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 y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(h):i(h)}function u(h){return h===null?m(h):Te(h)?e.attempt(JC,u,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Te(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function m(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):Te(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):Te(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(b){return e.enter("codeText"),e.enter("codeTextSequence"),d(b)}function d(b){return b===96?(e.consume(b),l++,d):(e.exit("codeTextSequence"),m(b))}function m(b){return b===null?i(b):b===32?(e.enter("space"),e.consume(b),e.exit("space"),m):b===96?(c=e.enter("codeTextSequence"),o=0,y(b)):Te(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(b))}function h(b){return b===null||b===32||b===96||Te(b)?(e.exit("codeTextData"),m(b)):(e.consume(b),h)}function y(b){return b===96?(e.consume(b),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),a(b)):(c.type="codeTextData",h(b))}}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&&Zs(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),Zs(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Zs(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);Zs(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Zs(this.left,i.reverse())}}}function Zs(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 dE(e){const a={};let i=-1,l,o,c,u,d,m,h;const y=new lA(e);for(;++i<y.length;){for(;i in a;)i=a[i];if(l=y.get(i),i&&l[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(m=l[1]._tokenizer.events,c=0,c<m.length&&m[c][1].type==="lineEndingBlank"&&(c+=2),c<m.length&&m[c][1].type==="content"))for(;++c<m.length&&m[c][1].type!=="content";)m[c][1].type==="chunkText"&&(m[c][1]._isInFirstContentOfListItem=!0,c++);if(l[0]==="enter")l[1].contentType&&(Object.assign(a,sA(y,i)),i=a[i],h=!0);else if(l[1]._container){for(c=i,o=void 0;c--;)if(u=y.get(c),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(y.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={...y.get(o)[1].start},d=y.slice(o,i),d.unshift(l),y.splice(o,i-o+1,d))}}return Kn(e,0,Number.POSITIVE_INFINITY,y.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,m=[],h={};let y,b,x=-1,E=i,_=0,w=0;const T=[w];for(;E;){for(;e.get(++o)[1]!==E;);c.push(o),E._tokenizer||(y=l.sliceStream(E),E.next||y.push(null),b&&u.defineSkip(E.start),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),b=E,E=E.next}for(E=i;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(w=x+1,T.push(w),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(u.events=[],E?(E._tokenizer=void 0,E.previous=void 0):T.pop(),x=T.length;x--;){const N=d.slice(T[x],T[x+1]),U=c.pop();m.push([U,U+N.length-1]),e.splice(U,2,N)}for(m.reverse(),x=-1;++x<m.length;)h[_+m[x][0]]=_+m[x][1],_+=m[x][1]-m[x][0]-1;return h}const oA={resolve:uA,tokenize:fA},cA={partial:!0,tokenize:dA};function uA(e){return dE(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):Te(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||Te(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 hE(e,a,i,l,o,c,u,d,m){const h=m||Number.POSITIVE_INFINITY;let y=0;return b;function b(N){return N===60?(e.enter(l),e.enter(o),e.enter(c),e.consume(N),e.exit(c),x):N===null||N===32||N===41||cu(N)?i(N):(e.enter(l),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(N))}function x(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"}),E(N))}function E(N){return N===62?(e.exit("chunkString"),e.exit(d),x(N)):N===null||N===60||Te(N)?i(N):(e.consume(N),N===92?_:E)}function _(N){return N===60||N===62||N===92?(e.consume(N),E):E(N)}function w(N){return!y&&(N===null||N===41||bt(N))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(l),a(N)):y<h&&N===40?(e.consume(N),y++,w):N===41?(e.consume(N),y--,w):N===null||N===32||N===40||cu(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 mE(e,a,i,l,o,c){const u=this;let d=0,m;return h;function h(E){return e.enter(l),e.enter(o),e.consume(E),e.exit(o),e.enter(c),y}function y(E){return d>999||E===null||E===91||E===93&&!m||E===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?i(E):E===93?(e.exit(c),e.enter(o),e.consume(E),e.exit(o),e.exit(l),a):Te(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===null||E===91||E===93||Te(E)||d++>999?(e.exit("chunkString"),y(E)):(e.consume(E),m||(m=!Ge(E)),E===92?x:b)}function x(E){return E===91||E===92||E===93?(e.consume(E),d++,b):b(E)}}function pE(e,a,i,l,o,c){let u;return d;function d(x){return x===34||x===39||x===40?(e.enter(l),e.enter(o),e.consume(x),e.exit(o),u=x===40?41:x,m):i(x)}function m(x){return x===u?(e.enter(o),e.consume(x),e.exit(o),e.exit(l),a):(e.enter(c),h(x))}function h(x){return x===u?(e.exit(c),m(u)):x===null?i(x):Te(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),We(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===u||x===null||Te(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?b:y)}function b(x){return x===u||x===92?(e.consume(x),y):y(x)}}function no(e,a){let i;return l;function l(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):Ge(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(E){return e.enter("definition"),u(E)}function u(E){return mE.call(l,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function d(E){return o=ya(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),m):i(E)}function m(E){return bt(E)?no(e,h)(E):h(E)}function h(E){return hE(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function y(E){return e.attempt(mA,b,b)(E)}function b(E){return Ge(E)?We(e,x,"whitespace")(E):x(E)}function x(E){return E===null||Te(E)?(e.exit("definition"),l.parser.defined.push(o),a(E)):i(E)}}function gA(e,a,i){return l;function l(d){return bt(d)?no(e,o)(d):i(d)}function o(d){return pE(e,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ge(d)?We(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Te(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 Te(c)?(e.exit("hardBreakEscape"),a(c)):i(c)}}const xA={name:"headingAtx",resolve:vA,tokenize:EA};function vA(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"},Kn(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(y){return e.enter("atxHeading"),c(y)}function c(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&l++<6?(e.consume(y),u):y===null||bt(y)?(e.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(e.enter("atxHeadingSequence"),m(y)):y===null||Te(y)?(e.exit("atxHeading"),a(y)):Ge(y)?We(e,d,"whitespace")(y):(e.enter("atxHeadingText"),h(y))}function m(y){return y===35?(e.consume(y),m):(e.exit("atxHeadingSequence"),d(y))}function h(y){return y===null||y===35||bt(y)?(e.exit("atxHeadingText"),d(y)):(e.consume(y),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"],Yy=["pre","script","style","textarea"],SA={concrete:!0,name:"htmlFlow",resolveTo:kA,tokenize:TA},wA={partial:!0,tokenize:AA},NA={partial:!0,tokenize:CA};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,m;return h;function h(k){return y(k)}function y(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),b}function b(k){return k===33?(e.consume(k),x):k===47?(e.consume(k),c=!0,w):k===63?(e.consume(k),o=3,l.interrupt?a:C):yn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function x(k){return k===45?(e.consume(k),o=2,E):k===91?(e.consume(k),o=5,d=0,_):yn(k)?(e.consume(k),o=4,l.interrupt?a:C):i(k)}function E(k){return k===45?(e.consume(k),l.interrupt?a:C):i(k)}function _(k){const he="CDATA[";return k===he.charCodeAt(d++)?(e.consume(k),d===he.length?l.interrupt?a:Q:_):i(k)}function w(k){return yn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function T(k){if(k===null||k===47||k===62||bt(k)){const he=k===47,Ne=u.toLowerCase();return!he&&!c&&Yy.includes(Ne)?(o=1,l.interrupt?a(k):Q(k)):_A.includes(u.toLowerCase())?(o=6,he?(e.consume(k),N):l.interrupt?a(k):Q(k)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(k):c?U(k):z(k))}return k===45||cn(k)?(e.consume(k),u+=String.fromCharCode(k),T):i(k)}function N(k){return k===62?(e.consume(k),l.interrupt?a:Q):i(k)}function U(k){return Ge(k)?(e.consume(k),U):j(k)}function z(k){return k===47?(e.consume(k),j):k===58||k===95||yn(k)?(e.consume(k),P):Ge(k)?(e.consume(k),z):j(k)}function P(k){return k===45||k===46||k===58||k===95||cn(k)?(e.consume(k),P):Z(k)}function Z(k){return k===61?(e.consume(k),A):Ge(k)?(e.consume(k),Z):z(k)}function A(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(e.consume(k),m=k,V):Ge(k)?(e.consume(k),A):H(k)}function V(k){return k===m?(e.consume(k),m=null,ae):k===null||Te(k)?i(k):(e.consume(k),V)}function H(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||bt(k)?Z(k):(e.consume(k),H)}function ae(k){return k===47||k===62||Ge(k)?z(k):i(k)}function j(k){return k===62?(e.consume(k),B):i(k)}function B(k){return k===null||Te(k)?Q(k):Ge(k)?(e.consume(k),B):i(k)}function Q(k){return k===45&&o===2?(e.consume(k),q):k===60&&o===1?(e.consume(k),le):k===62&&o===4?(e.consume(k),M):k===63&&o===3?(e.consume(k),C):k===93&&o===5?(e.consume(k),_e):Te(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(wA,X,oe)(k)):k===null||Te(k)?(e.exit("htmlFlowData"),oe(k)):(e.consume(k),Q)}function oe(k){return e.check(NA,re,X)(k)}function re(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),W}function W(k){return k===null||Te(k)?oe(k):(e.enter("htmlFlowData"),Q(k))}function q(k){return k===45?(e.consume(k),C):Q(k)}function le(k){return k===47?(e.consume(k),u="",ce):Q(k)}function ce(k){if(k===62){const he=u.toLowerCase();return Yy.includes(he)?(e.consume(k),M):Q(k)}return yn(k)&&u.length<8?(e.consume(k),u+=String.fromCharCode(k),ce):Q(k)}function _e(k){return k===93?(e.consume(k),C):Q(k)}function C(k){return k===62?(e.consume(k),M):k===45&&o===2?(e.consume(k),C):Q(k)}function M(k){return k===null||Te(k)?(e.exit("htmlFlowData"),X(k)):(e.consume(k),M)}function X(k){return e.exit("htmlFlow"),a(k)}}function CA(e,a,i){const l=this;return o;function o(u){return Te(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 AA(e,a,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Eo,a,i)}}const RA={name:"htmlText",tokenize:OA};function OA(e,a,i){const l=this;let o,c,u;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),m}function m(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),Z):C===63?(e.consume(C),z):yn(C)?(e.consume(C),H):i(C)}function h(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),c=0,_):yn(C)?(e.consume(C),U):i(C)}function y(C){return C===45?(e.consume(C),E):i(C)}function b(C){return C===null?i(C):C===45?(e.consume(C),x):Te(C)?(u=b,le(C)):(e.consume(C),b)}function x(C){return C===45?(e.consume(C),E):b(C)}function E(C){return C===62?q(C):C===45?x(C):b(C)}function _(C){const M="CDATA[";return C===M.charCodeAt(c++)?(e.consume(C),c===M.length?w:_):i(C)}function w(C){return C===null?i(C):C===93?(e.consume(C),T):Te(C)?(u=w,le(C)):(e.consume(C),w)}function T(C){return C===93?(e.consume(C),N):w(C)}function N(C){return C===62?q(C):C===93?(e.consume(C),N):w(C)}function U(C){return C===null||C===62?q(C):Te(C)?(u=U,le(C)):(e.consume(C),U)}function z(C){return C===null?i(C):C===63?(e.consume(C),P):Te(C)?(u=z,le(C)):(e.consume(C),z)}function P(C){return C===62?q(C):z(C)}function Z(C){return yn(C)?(e.consume(C),A):i(C)}function A(C){return C===45||cn(C)?(e.consume(C),A):V(C)}function V(C){return Te(C)?(u=V,le(C)):Ge(C)?(e.consume(C),V):q(C)}function H(C){return C===45||cn(C)?(e.consume(C),H):C===47||C===62||bt(C)?ae(C):i(C)}function ae(C){return C===47?(e.consume(C),q):C===58||C===95||yn(C)?(e.consume(C),j):Te(C)?(u=ae,le(C)):Ge(C)?(e.consume(C),ae):q(C)}function j(C){return C===45||C===46||C===58||C===95||cn(C)?(e.consume(C),j):B(C)}function B(C){return C===61?(e.consume(C),Q):Te(C)?(u=B,le(C)):Ge(C)?(e.consume(C),B):ae(C)}function Q(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),o=C,oe):Te(C)?(u=Q,le(C)):Ge(C)?(e.consume(C),Q):(e.consume(C),re)}function oe(C){return C===o?(e.consume(C),o=void 0,W):C===null?i(C):Te(C)?(u=oe,le(C)):(e.consume(C),oe)}function re(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||bt(C)?ae(C):(e.consume(C),re)}function W(C){return C===47||C===62||bt(C)?ae(C):i(C)}function q(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),a):i(C)}function le(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ce}function ce(C){return Ge(C)?We(e,_e,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):_e(C)}function _e(C){return e.enter("htmlTextData"),u(C)}}const om={name:"labelEnd",resolveAll:zA,resolveTo:jA,tokenize:IA},MA={tokenize:UA},DA={tokenize:BA},LA={tokenize:FA};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&&Kn(e,0,e.length,i),e}function jA(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 m={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}},y={type:"labelText",start:{...e[c+l+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",m,a],["enter",h,a]],d=la(d,e.slice(c+1,c+l+3)),d=la(d,[["enter",y,a]]),d=la(d,_u(a.parser.constructs.insideSpan.null,e.slice(c+l+4,u-3),a)),d=la(d,[["exit",y,a],e[u-2],e[u-1],["exit",h,a]]),d=la(d,e.slice(u+1)),d=la(d,[["exit",m,a]]),Kn(e,c,e.length,d),e}function IA(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(x){return c?c._inactive?b(x):(u=l.parser.defined.includes(ya(l.sliceSerialize({start:c.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),m):i(x)}function m(x){return x===40?e.attempt(MA,y,u?y:b)(x):x===91?e.attempt(DA,y,u?h:b)(x):u?y(x):b(x)}function h(x){return e.attempt(LA,y,b)(x)}function y(x){return a(x)}function b(x){return c._balanced=!0,i(x)}}function UA(e,a,i){return l;function l(b){return e.enter("resource"),e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),o}function o(b){return bt(b)?no(e,c)(b):c(b)}function c(b){return b===41?y(b):hE(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function u(b){return bt(b)?no(e,m)(b):y(b)}function d(b){return i(b)}function m(b){return b===34||b===39||b===40?pE(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):y(b)}function h(b){return bt(b)?no(e,y)(b):y(b)}function y(b){return b===41?(e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),e.exit("resource"),a):i(b)}}function BA(e,a,i){const l=this;return o;function o(d){return mE.call(l,e,c,u,"reference","referenceMarker","referenceString")(d)}function c(d){return l.parser.defined.includes(ya(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function u(d){return i(d)}}function FA(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 HA={name:"labelStartImage",resolveAll:om.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:om.resolveAll,tokenize:$A};function $A(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 Pd={name:"lineEnding",tokenize:GA};function GA(e,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),We(e,a,"linePrefix")}}const nu={name:"thematicBreak",tokenize:KA};function KA(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"),m(h)):l>=3&&(h===null||Te(h))?(e.exit("thematicBreak"),a(h)):i(h)}function m(h){return h===o?(e.consume(h),l++,m):(e.exit("thematicBreakSequence"),Ge(h)?We(e,d,"whitespace")(h):d(h))}}const An={continuation:{tokenize:XA},exit:WA,name:"list",tokenize:VA},QA={partial:!0,tokenize:JA},YA={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(E){const _=l.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!l.containerState.marker||E===l.containerState.marker:kh(E)){if(l.containerState.type||(l.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(nu,i,h)(E):h(E);if(!l.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(E)}return i(E)}function m(E){return kh(E)&&++u<10?(e.consume(E),m):(!l.interrupt||u<2)&&(l.containerState.marker?E===l.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),h(E)):i(E)}function h(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||E,e.check(Eo,l.interrupt?i:y,e.attempt(QA,x,b))}function y(E){return l.containerState.initialBlankLine=!0,c++,x(E)}function b(E){return Ge(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),x):i(E)}function x(E){return l.containerState.size=c+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,a(E)}}function XA(e,a,i){const l=this;return l.containerState._closeFlow=void 0,e.check(Eo,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||!Ge(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(YA,a,u)(d))}function u(d){return l.containerState._closeFlow=!0,l.interrupt=void 0,We(e,e.attempt(An,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!Ge(c)&&u&&u[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const Vy={name:"setextUnderline",resolveTo:eR,tokenize:tR};function eR(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 tR(e,a,i){const l=this;let o;return c;function c(h){let y=l.events.length,b;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){b=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||b)?(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"),Ge(h)?We(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||Te(h)?(e.exit("setextHeadingLine"),a(h)):i(h)}}const nR={tokenize:aR};function aR(e){const a=this,i=e.attempt(Eo,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 iR={resolveAll:bE()},rR=gE("string"),lR=gE("text");function gE(e){return{resolveAll:bE(e==="text"?sR: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(y){return h(y)?c(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),m}function m(y){return h(y)?(i.exit("data"),c(y)):(i.consume(y),m)}function h(y){if(y===null)return!0;const b=o[y];let x=-1;if(b)for(;++x<b.length;){const E=b[x];if(!E.previous||E.previous.call(l,l.previous))return!0}return!1}}}function bE(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 sR(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,m;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)m=!0,d++;else if(h!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===e.length&&(d=0),d){const h={type:i===e.length||m||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 oR={42:An,43:An,45:An,48:An,49:An,50:An,51:An,52:An,53:An,54:An,55:An,56:An,57:An,62:cE},cR={91:hA},uR={[-2]:qd,[-1]:qd,32:qd},fR={35:xA,42:nu,45:[Vy,nu],60:SA,61:Vy,95:nu,96:Qy,126:Qy},dR={38:fE,92:uE},hR={[-5]:Pd,[-4]:Pd,[-3]:Pd,33:HA,38:fE,42:Th,60:[PC,RA],91:PA,92:[bA,uE],93:om,95:Th,96:nA},mR={null:[Th,iR]},pR={null:[42,95]},gR={null:[]},bR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pR,contentInitial:cR,disable:gR,document:oR,flow:fR,flowInitial:uR,insideSpan:mR,string:dR,text:hR},Symbol.toStringTag,{value:"Module"}));function yR(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 m={attempt:V(Z),check:V(A),consume:U,enter:z,exit:P,interrupt:V(A,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:_,parser:e,previous:null,sliceSerialize:x,sliceStream:E,write:b};let y=a.tokenize.call(h,m);return a.resolveAll&&c.push(a),h;function b(B){return u=la(u,B),T(),u[u.length-1]!==null?[]:(H(a,0),h.events=_u(c,h.events,h),h.events)}function x(B,Q){return vR(E(B),Q)}function E(B){return xR(u,B)}function _(){const{_bufferIndex:B,_index:Q,line:oe,column:re,offset:W}=l;return{_bufferIndex:B,_index:Q,line:oe,column:re,offset:W}}function w(B){o[B.line]=B.column,j()}function T(){let B;for(;l._index<u.length;){const Q=u[l._index];if(typeof Q=="string")for(B=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===B&&l._bufferIndex<Q.length;)N(Q.charCodeAt(l._bufferIndex));else N(Q)}}function N(B){y=y(B)}function U(B){Te(B)?(l.line++,l.column=1,l.offset+=B===-3?2:1,j()):B!==-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=B}function z(B,Q){const oe=Q||{};return oe.type=B,oe.start=_(),h.events.push(["enter",oe,h]),d.push(oe),oe}function P(B){const Q=d.pop();return Q.end=_(),h.events.push(["exit",Q,h]),Q}function Z(B,Q){H(B,Q.from)}function A(B,Q){Q.restore()}function V(B,Q){return oe;function oe(re,W,q){let le,ce,_e,C;return Array.isArray(re)?X(re):"tokenize"in re?X([re]):M(re);function M(xe){return Fe;function Fe(rt){const nt=rt!==null&&xe[rt],Kt=rt!==null&&xe.null,Dn=[...Array.isArray(nt)?nt:nt?[nt]:[],...Array.isArray(Kt)?Kt:Kt?[Kt]:[]];return X(Dn)(rt)}}function X(xe){return le=xe,ce=0,xe.length===0?q:k(xe[ce])}function k(xe){return Fe;function Fe(rt){return C=ae(),_e=xe,xe.partial||(h.currentConstruct=xe),xe.name&&h.parser.constructs.disable.null.includes(xe.name)?Ne():xe.tokenize.call(Q?Object.assign(Object.create(h),Q):h,m,he,Ne)(rt)}}function he(xe){return B(_e,C),W}function Ne(xe){return C.restore(),++ce<le.length?k(le[ce]):q}}}function H(B,Q){B.resolveAll&&!c.includes(B)&&c.push(B),B.resolve&&Kn(h.events,Q,h.events.length-Q,B.resolve(h.events.slice(Q),h)),B.resolveTo&&(h.events=B.resolveTo(h.events,h))}function ae(){const B=_(),Q=h.previous,oe=h.currentConstruct,re=h.events.length,W=Array.from(d);return{from:re,restore:q};function q(){l=B,h.previous=Q,h.currentConstruct=oe,h.events.length=re,d=W,j()}}function j(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function xR(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 vR(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=`
|
|
306
|
+
`;break}case-3:{u=`\r
|
|
307
|
+
`;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 ER(e){const l={constructs:sE([bR,...(e||{}).extensions||[]]),content:o(jC),defined:[],document:o(UC),flow:o(nR),lazy:{},string:o(rR),text:o(lR)};return l;function o(c){return u;function u(d){return yR(l,c,d)}}}function _R(e){for(;!dE(e););return e}const Xy=/[\0\t\n\r]/g;function SR(){let e=1,a="",i=!0,l;return o;function o(c,u,d){const m=[];let h,y,b,x,E;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c)),b=0,a="",i&&(c.charCodeAt(0)===65279&&b++,i=void 0);b<c.length;){if(Xy.lastIndex=b,h=Xy.exec(c),x=h&&h.index!==void 0?h.index:c.length,E=c.charCodeAt(x),!h){a=c.slice(b);break}if(E===10&&b===x&&l)m.push(-3),l=void 0;else switch(l&&(m.push(-5),l=void 0),b<x&&(m.push(c.slice(b,x)),e+=x-b),E){case 0:{m.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,m.push(-2);e++<y;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:l=!0,e=1}b=x+1}return d&&(l&&m.push(-5),a&&m.push(a),m.push(null)),m}}const wR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NR(e){return e.replace(wR,kR)}function kR(e,a,i){if(a)return a;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return oE(i.slice(c?2:1),c?16:10)}return sm(i)||e}const yE={}.hasOwnProperty;function TR(e,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),CR(i)(_R(ER(i).document().write(SR()(e,a,!0))))}function CR(e){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Ea),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:c(va),blockQuote:c(Kt),characterEscape:ae,characterReference:ae,codeFenced:c(Dn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Dn,u),codeText:c(za,u),codeTextData:ae,data:ae,codeFlowValue:ae,definition:c(fi),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(Ln),hardBreakEscape:c(Ve),hardBreakTrailing:c(Ve),htmlFlow:c(fa,u),htmlFlowData:ae,htmlText:c(fa,u),htmlTextData:ae,image:c(Yn),label:u,link:c(Ea),listItem:c(tr),listItemValue:x,listOrdered:c(ja,b),listUnordered:c(ja),paragraph:c(Wl),reference:k,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(va),strong:c(Fr),thematicBreak:c(Hr)},exit:{atxHeading:m(),atxHeadingSequence:Z,autolink:m(),autolinkEmail:nt,autolinkProtocol:rt,blockQuote:m(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:xe,characterReference:Fe,codeFenced:m(T),codeFencedFence:w,codeFencedFenceInfo:E,codeFencedFenceMeta:_,codeFlowValue:j,codeIndented:m(N),codeText:m(W),codeTextData:j,data:j,definition:m(),definitionDestinationString:P,definitionLabelString:U,definitionTitleString:z,emphasis:m(),hardBreakEscape:m(Q),hardBreakTrailing:m(Q),htmlFlow:m(oe),htmlFlowData:j,htmlText:m(re),htmlTextData:j,image:m(le),label:_e,labelText:ce,lineEnding:B,link:m(q),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:he,resourceDestinationString:C,resourceTitleString:M,resource:X,setextHeading:m(H),setextHeadingLineSequence:V,setextHeadingText:A,strong:m(),thematicBreak:m()}};xE(a,(e||{}).mdastExtensions||[]);const i={};return l;function l(J){let fe={type:"root",children:[]};const Ce={stack:[fe],tokenStack:[],config:a,enter:d,exit:h,buffer:u,resume:y,data:i},He=[];let Je=-1;for(;++Je<J.length;)if(J[Je][1].type==="listOrdered"||J[Je][1].type==="listUnordered")if(J[Je][0]==="enter")He.push(Je);else{const fn=He.pop();Je=o(J,fn,Je)}for(Je=-1;++Je<J.length;){const fn=a[J[Je][0]];yE.call(fn,J[Je][1].type)&&fn[J[Je][1].type].call(Object.assign({sliceSerialize:J[Je][2].sliceSerialize},Ce),J[Je][1])}if(Ce.tokenStack.length>0){const fn=Ce.tokenStack[Ce.tokenStack.length-1];(fn[1]||Zy).call(Ce,void 0,fn[0])}for(fe.position={start:Fi(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:Fi(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<a.transforms.length;)fe=a.transforms[Je](fe)||fe;return fe}function o(J,fe,Ce){let He=fe-1,Je=-1,fn=!1,da,Zt,At,an;for(;++He<=Ce;){const lt=J[He];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?Je++:Je--,an=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(da&&!an&&!Je&&!At&&(At=He),an=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:an=void 0}if(!Je&<[0]==="enter"&<[1].type==="listItemPrefix"||Je===-1&<[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(da){let _a=He;for(Zt=void 0;_a--;){const dn=J[_a];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;Zt&&(J[Zt][1].type="lineEndingBlank",fn=!0),dn[1].type="lineEnding",Zt=_a}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}At&&(!Zt||At<Zt)&&(da._spread=!0),da.end=Object.assign({},Zt?J[Zt][1].start:lt[1].end),J.splice(Zt||He,0,["exit",da,lt[2]]),He++,Ce++}if(lt[1].type==="listItemPrefix"){const _a={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};da=_a,J.splice(He,0,["enter",_a,lt[2]]),He++,Ce++,At=void 0,an=!0}}}return J[fe][1]._spread=fn,Ce}function c(J,fe){return Ce;function Ce(He){d.call(this,J(He),He),fe&&fe.call(this,He)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,fe,Ce){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([fe,Ce||void 0]),J.position={start:Fi(fe.start),end:void 0}}function m(J){return fe;function fe(Ce){J&&J.call(this,Ce),h.call(this,Ce)}}function h(J,fe){const Ce=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==J.type&&(fe?fe.call(this,J,He[0]):(He[1]||Zy).call(this,J,He[0]));else throw new Error("Cannot close `"+J.type+"` ("+to({start:J.start,end:J.end})+"): it’s not open");Ce.position.end=Fi(J.end)}function y(){return lm(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function x(J){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function E(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=J}function _(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=J}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J.replace(/(\r?\n|\r)$/g,"")}function U(J){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=ya(this.sliceSerialize(J)).toLowerCase()}function z(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.title=J}function P(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.url=J}function Z(J){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Ce=this.sliceSerialize(J).length;fe.depth=Ce}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function V(J){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(J){const Ce=this.stack[this.stack.length-1].children;let He=Ce[Ce.length-1];(!He||He.type!=="text")&&(He=Tt(),He.position={start:Fi(J.start),end:void 0},Ce.push(He)),this.stack.push(He)}function j(J){const fe=this.stack.pop();fe.value+=this.sliceSerialize(J),fe.position.end=Fi(J.end)}function B(J){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=fe.children[fe.children.length-1];Ce.position.end=Fi(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(fe.type)&&(ae.call(this,J),j.call(this,J))}function Q(){this.data.atHardBreak=!0}function oe(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function re(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function W(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.value=J}function q(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=fe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function le(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=fe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ce(J){const fe=this.sliceSerialize(J),Ce=this.stack[this.stack.length-2];Ce.label=NR(fe),Ce.identifier=ya(fe).toLowerCase()}function _e(){const J=this.stack[this.stack.length-1],fe=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const He=J.children;Ce.children=He}else Ce.alt=fe}function C(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.url=J}function M(){const J=this.resume(),fe=this.stack[this.stack.length-1];fe.title=J}function X(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function he(J){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=ya(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Ne(J){this.data.characterReferenceType=J.type}function xe(J){const fe=this.sliceSerialize(J),Ce=this.data.characterReferenceType;let He;Ce?(He=oE(fe,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=sm(fe);const Je=this.stack[this.stack.length-1];Je.value+=He}function Fe(J){const fe=this.stack.pop();fe.position.end=Fi(J.end)}function rt(J){j.call(this,J);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(J)}function nt(J){j.call(this,J);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(J)}function Kt(){return{type:"blockquote",children:[]}}function Dn(){return{type:"code",lang:null,meta:null,value:""}}function za(){return{type:"inlineCode",value:""}}function fi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ln(){return{type:"emphasis",children:[]}}function va(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function fa(){return{type:"html",value:""}}function Yn(){return{type:"image",title:null,url:"",alt:null}}function Ea(){return{type:"link",title:null,url:"",children:[]}}function ja(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function tr(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Wl(){return{type:"paragraph",children:[]}}function Fr(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function Hr(){return{type:"thematicBreak"}}}function Fi(e){return{line:e.line,column:e.column,offset:e.offset}}function xE(e,a){let i=-1;for(;++i<a.length;){const l=a[i];Array.isArray(l)?xE(e,l):AR(e,l)}}function AR(e,a){let i;for(i in a)if(yE.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+"` ("+to({start:e.start,end:e.end})+"): a different token (`"+a.type+"`, "+to({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+to({start:a.start,end:a.end})+") is still open")}function RR(e){const a=this;a.parser=i;function i(l){return TR(l,{...a.data("settings"),...e,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function OR(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 MR(e,a){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(a,i),[e.applyData(a,i),{type:"text",value:`
|
|
308
|
+
`}]}function DR(e,a){const i=a.value?a.value+`
|
|
309
|
+
`:"",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 LR(e,a){const i={type:"element",tagName:"del",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function zR(e,a){const i={type:"element",tagName:"em",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function jR(e,a){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(a.identifier).toUpperCase(),o=Zl(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 m={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,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(a,h),e.applyData(a,h)}function IR(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 UR(e,a){if(e.options.allowDangerousHtml){const i={type:"raw",value:a.value};return e.patch(a,i),e.applyData(a,i)}}function vE(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 BR(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return vE(e,a);const o={src:Zl(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 FR(e,a){const i={src:Zl(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 HR(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 qR(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return vE(e,a);const o={href:Zl(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 PR(e,a){const i={href:Zl(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 $R(e,a,i){const l=e.all(a),o=i?GR(i):EE(a),c={},u=[];if(typeof a.checked=="boolean"){const y=l[0];let b;y&&y.type==="element"&&y.tagName==="p"?b=y:(b={type:"element",tagName:"p",properties:{},children:[]},l.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.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 y=l[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
310
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?u.push(...y.children):u.push(y)}const m=l[l.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
311
|
+
`});const h={type:"element",tagName:"li",properties:c,children:u};return e.patch(a,h),e.applyData(a,h)}function GR(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=EE(i[l])}return a}function EE(e){const a=e.spread;return a??e.children.length>1}function KR(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 QR(e,a){const i={type:"element",tagName:"p",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function YR(e,a){const i={type:"root",children:e.wrap(e.all(a))};return e.patch(a,i),e.applyData(a,i)}function VR(e,a){const i={type:"element",tagName:"strong",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function XR(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=nm(a.children[1]),m=eE(a.children[a.children.length-1]);d&&m&&(u.position={start:d,end:m}),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 ZR(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 m=-1;const h=[];for(;++m<d;){const b=a.children[m],x={},E=u?u[m]:void 0;E&&(x.align=E);let _={type:"element",tagName:c,properties:x,children:[]};b&&(_.children=e.all(b),e.patch(b,_),_=e.applyData(b,_)),h.push(_)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(a,y),e.applyData(a,y)}function WR(e,a){const i={type:"element",tagName:"td",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}const Wy=9,Jy=32;function JR(e){const a=String(e),i=/\r?\n|\r/g;let l=i.exec(a),o=0;const c=[];for(;l;)c.push(ex(a.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(a);return c.push(ex(a.slice(o),o>0,!1)),c.join("")}function ex(e,a,i){let l=0,o=e.length;if(a){let c=e.codePointAt(l);for(;c===Wy||c===Jy;)l++,c=e.codePointAt(l)}if(i){let c=e.codePointAt(o-1);for(;c===Wy||c===Jy;)o--,c=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function e2(e,a){const i={type:"text",value:JR(String(a.value))};return e.patch(a,i),e.applyData(a,i)}function t2(e,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(a,i),e.applyData(a,i)}const n2={blockquote:OR,break:MR,code:DR,delete:LR,emphasis:zR,footnoteReference:jR,heading:IR,html:UR,imageReference:BR,image:FR,inlineCode:HR,linkReference:qR,link:PR,listItem:$R,list:KR,paragraph:QR,root:YR,strong:VR,table:XR,tableCell:WR,tableRow:ZR,text:e2,thematicBreak:t2,toml:$c,yaml:$c,definition:$c,footnoteDefinition:$c};function $c(){}const _E=-1,Su=0,ao=1,uu=2,cm=3,um=4,fm=5,dm=6,SE=7,wE=8,tx=typeof self=="object"?self:globalThis,a2=(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 _E:return i(u,o);case ao:{const d=i([],o);for(const m of u)d.push(l(m));return d}case uu:{const d=i({},o);for(const[m,h]of u)d[l(m)]=l(h);return d}case cm:return i(new Date(u),o);case um:{const{source:d,flags:m}=u;return i(new RegExp(d,m),o)}case fm:{const d=i(new Map,o);for(const[m,h]of u)d.set(l(m),l(h));return d}case dm:{const d=i(new Set,o);for(const m of u)d.add(l(m));return d}case SE:{const{name:d,message:m}=u;return i(new tx[d](m),o)}case wE: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 tx[c](u),o)};return l},nx=e=>a2(new Map,e)(0),kl="",{toString:i2}={},{keys:r2}=Object,Ws=e=>{const a=typeof e;if(a!=="object"||!e)return[Su,a];const i=i2.call(e).slice(8,-1);switch(i){case"Array":return[ao,kl];case"Object":return[uu,kl];case"Date":return[cm,kl];case"RegExp":return[um,kl];case"Map":return[fm,kl];case"Set":return[dm,kl];case"DataView":return[ao,i]}return i.includes("Array")?[ao,i]:i.includes("Error")?[SE,i]:[uu,i]},Gc=([e,a])=>e===Su&&(a==="function"||a==="symbol"),l2=(e,a,i,l)=>{const o=(u,d)=>{const m=l.push(u)-1;return i.set(d,m),m},c=u=>{if(i.has(u))return i.get(u);let[d,m]=Ws(u);switch(d){case Su:{let y=u;switch(m){case"bigint":d=wE,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([_E],u)}return o([d,y],u)}case ao:{if(m){let x=u;return m==="DataView"?x=new Uint8Array(u.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(u)),o([m,[...x]],u)}const y=[],b=o([d,y],u);for(const x of u)y.push(c(x));return b}case uu:{if(m)switch(m){case"BigInt":return o([m,u.toString()],u);case"Boolean":case"Number":case"String":return o([m,u.valueOf()],u)}if(a&&"toJSON"in u)return c(u.toJSON());const y=[],b=o([d,y],u);for(const x of r2(u))(e||!Gc(Ws(u[x])))&&y.push([c(x),c(u[x])]);return b}case cm:return o([d,u.toISOString()],u);case um:{const{source:y,flags:b}=u;return o([d,{source:y,flags:b}],u)}case fm:{const y=[],b=o([d,y],u);for(const[x,E]of u)(e||!(Gc(Ws(x))||Gc(Ws(E))))&&y.push([c(x),c(E)]);return b}case dm:{const y=[],b=o([d,y],u);for(const x of u)(e||!Gc(Ws(x)))&&y.push(c(x));return b}}const{message:h}=u;return o([d,{name:m,message:h}],u)};return c},ax=(e,{json:a,lossy:i}={})=>{const l=[];return l2(!(a||i),!!a,new Map,l)(e),l},fu=typeof structuredClone=="function"?(e,a)=>a&&("json"in a||"lossy"in a)?nx(ax(e,a)):structuredClone(e):(e,a)=>nx(ax(e,a));function s2(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 o2(e,a){return"Back to reference "+(e+1)+(a>1?"-"+a:"")}function c2(e){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||s2,l=e.options.footnoteBackLabel||o2,o=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const y=e.all(h),b=String(h.identifier).toUpperCase(),x=Zl(b.toLowerCase());let E=0;const _=[],w=e.footnoteCounts.get(b);for(;w!==void 0&&++E<=w;){_.length>0&&_.push({type:"text",value:" "});let U=typeof i=="string"?i:i(m,E);typeof U=="string"&&(U={type:"text",value:U}),_.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(m,E),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const U=T.children[T.children.length-1];U&&U.type==="text"?U.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(..._)}else y.push(..._);const N={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:e.wrap(y,!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:{...fu(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
312
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
313
|
+
`}]}}const _o=(function(e){if(e==null)return h2;if(typeof e=="function")return wu(e);if(typeof e=="object")return Array.isArray(e)?u2(e):f2(e);if(typeof e=="string")return d2(e);throw new Error("Expected function, string, or object as test")});function u2(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=_o(e[i]);return wu(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function f2(e){const a=e;return wu(i);function i(l){const o=l;let c;for(c in e)if(o[c]!==a[c])return!1;return!0}}function d2(e){return wu(a);function a(i){return i&&i.type===e}}function wu(e){return a;function a(i,l,o){return!!(m2(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function h2(){return!0}function m2(e){return e!==null&&typeof e=="object"&&"type"in e}const NE=[],p2=!0,Ch=!1,g2="skip";function kE(e,a,i,l){let o;typeof a=="function"&&typeof i!="function"?(l=i,i=a):o=a;const c=_o(o),u=l?-1:1;d(e,void 0,[])();function d(m,h,y){const b=m&&typeof m=="object"?m:{};if(typeof b.type=="string"){const E=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(E?"<"+E+">":""))+")"})}return x;function x(){let E=NE,_,w,T;if((!a||c(m,h,y[y.length-1]||void 0))&&(E=b2(i(m,y)),E[0]===Ch))return E;if("children"in m&&m.children){const N=m;if(N.children&&E[0]!==g2)for(w=(l?N.children.length:-1)+u,T=y.concat(N);w>-1&&w<N.children.length;){const U=N.children[w];if(_=d(U,w,T)(),_[0]===Ch)return _;w=typeof _[1]=="number"?_[1]:w+u}}return E}}}function b2(e){return Array.isArray(e)?e:typeof e=="number"?[p2,e]:e==null?NE:[e]}function Nu(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),kE(e,c,d,o);function d(m,h){const y=h[h.length-1],b=y?y.children.indexOf(m):void 0;return u(m,b,y)}}const Ah={}.hasOwnProperty,y2={};function x2(e,a){const i=a||y2,l=new Map,o=new Map,c=new Map,u={...n2,...i.handlers},d={all:h,applyData:E2,definitionById:l,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:m,options:i,patch:v2,wrap:S2};return Nu(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const b=y.type==="definition"?l:o,x=String(y.identifier).toUpperCase();b.has(x)||b.set(x,y)}}),d;function m(y,b){const x=y.type,E=d.handlers[x];if(Ah.call(d.handlers,x)&&E)return E(d,y,b);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in y){const{children:w,...T}=y,N=fu(T);return N.children=d.all(y),N}return fu(y)}return(d.options.unknownHandler||_2)(d,y,b)}function h(y){const b=[];if("children"in y){const x=y.children;let E=-1;for(;++E<x.length;){const _=d.one(x[E],y);if(_){if(E&&x[E-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=ix(_.value)),!Array.isArray(_)&&_.type==="element")){const w=_.children[0];w&&w.type==="text"&&(w.value=ix(w.value))}Array.isArray(_)?b.push(..._):b.push(_)}}}return b}}function v2(e,a){e.position&&(a.position=oC(e))}function E2(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,fu(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function _2(e,a){const i=a.data||{},l="value"in a&&!(Ah.call(i,"hProperties")||Ah.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 S2(e,a){const i=[];let l=-1;for(a&&i.push({type:"text",value:`
|
|
314
|
+
`});++l<e.length;)l&&i.push({type:"text",value:`
|
|
315
|
+
`}),i.push(e[l]);return a&&e.length>0&&i.push({type:"text",value:`
|
|
316
|
+
`}),i}function ix(e){let a=0,i=e.charCodeAt(a);for(;i===9||i===32;)a++,i=e.charCodeAt(a);return e.slice(a)}function rx(e,a){const i=x2(e,a),l=i.one(e,void 0),o=c2(i),c=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
317
|
+
`},o),c}function w2(e,a){return e&&"run"in e?async function(i,l){const o=rx(i,{file:l,...a});await e.run(o,l)}:function(i,l){return rx(i,{file:l,...e||a})}}function lx(e){if(e)throw e}var $d,sx;function N2(){if(sx)return $d;sx=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 y=e.call(h,"constructor"),b=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!b)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},u=function(h,y){i&&y.name==="__proto__"?i(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},d=function(h,y){if(y==="__proto__")if(e.call(h,y)){if(l)return l(h,y).value}else return;return h[y]};return $d=function m(){var h,y,b,x,E,_,w=arguments[0],T=1,N=arguments.length,U=!1;for(typeof w=="boolean"&&(U=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(y in h)b=d(w,y),x=d(h,y),w!==x&&(U&&x&&(c(x)||(E=o(x)))?(E?(E=!1,_=b&&o(b)?b:[]):_=b&&c(b)?b:{},u(w,{name:y,newValue:m(U,_,x)})):typeof x<"u"&&u(w,{name:y,newValue:x}));return w},$d}var k2=N2();const Gd=zh(k2);function Rh(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 T2(){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(m,...h){const y=e[++c];let b=-1;if(m){u(m);return}for(;++b<o.length;)(h[b]===null||h[b]===void 0)&&(h[b]=o[b]);o=h,y?C2(y,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 C2(e,a){let i;return l;function l(...u){const d=e.length>u.length;let m;d&&u.push(o);try{m=e.apply(this,u)}catch(h){const y=h;if(d&&i)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(c,o):m instanceof Error?o(m):c(m))}function o(u,...d){i||(i=!0,a(u,...d))}function c(u){o(null,u)}}const Aa={basename:A2,dirname:R2,extname:O2,join:M2,sep:"/"};function A2(e,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');So(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 R2(e){if(So(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 O2(e){So(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 M2(...e){let a=-1,i;for(;++a<e.length;)So(e[a]),e[a]&&(i=i===void 0?e[a]:i+"/"+e[a]);return i===void 0?".":D2(i)}function D2(e){So(e);const a=e.codePointAt(0)===47;let i=L2(e,!a);return i.length===0&&!a&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),a?"/"+i:i}function L2(e,a){let i="",l=0,o=-1,c=0,u=-1,d,m;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(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",l=0):(i=i.slice(0,m),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 So(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const z2={cwd:j2};function j2(){return"/"}function Oh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function I2(e){if(typeof e=="string")e=new URL(e);else if(!Oh(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 U2(e)}function U2(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 Kd=["history","path","basename","stem","extname","dirname"];class TE{constructor(a){let i;a?Oh(a)?i={path:a}:typeof a=="string"||B2(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":z2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Kd.length;){const c=Kd[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)Kd.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?Aa.basename(this.path):void 0}set basename(a){Yd(a,"basename"),Qd(a,"basename"),this.path=Aa.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Aa.dirname(this.path):void 0}set dirname(a){ox(this.basename,"dirname"),this.path=Aa.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Aa.extname(this.path):void 0}set extname(a){if(Qd(a,"extname"),ox(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=Aa.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Oh(a)&&(a=I2(a)),Yd(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Aa.basename(this.path,this.extname):void 0}set stem(a){Yd(a,"stem"),Qd(a,"stem"),this.path=Aa.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 un(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 Qd(e,a){if(e&&e.includes(Aa.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Aa.sep+"`")}function Yd(e,a){if(!e)throw new Error("`"+a+"` cannot be empty")}function ox(e,a){if(!e)throw new Error("Setting `"+a+"` requires `path` to be set too")}function B2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const F2=(function(e){const l=this.constructor.prototype,o=l[e],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,l),c}),H2={}.hasOwnProperty;class hm extends F2{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=T2()}copy(){const a=new hm;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];a.use(...l)}return a.data(Gd(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Zd("data",this.frozen),this.namespace[a]=i,this):H2.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=Kc(a),l=this.parser||this.Parser;return Vd("parse",l),l(String(i),i)}process(a,i){const l=this;return this.freeze(),Vd("process",this.parser||this.Parser),Xd("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,u){const d=Kc(a),m=l.parse(d);l.run(m,d,function(y,b,x){if(y||!b||!x)return h(y);const E=b,_=l.stringify(E,x);$2(_)?x.value=_:x.result=_,h(y,x)});function h(y,b){y||!b?u(y):c?c(b):i(void 0,b)}}}processSync(a){let i=!1,l;return this.freeze(),Vd("processSync",this.parser||this.Parser),Xd("processSync",this.compiler||this.Compiler),this.process(a,o),ux("processSync","process",i),l;function o(c,u){i=!0,lx(c),l=u}}run(a,i,l){cx(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 m=Kc(i);o.run(a,m,h);function h(y,b,x){const E=b||a;y?d(y):u?u(E):l(void 0,E,x)}}}runSync(a,i){let l=!1,o;return this.run(a,i,c),ux("runSync","run",l),o;function c(u,d){lx(u),o=d,l=!0}}stringify(a,i){this.freeze();const l=Kc(i),o=this.compiler||this.Compiler;return Xd("stringify",o),cx(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")m(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")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...b]=h;m(y,b)}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=Gd(!0,o.settings,h.settings))}function d(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const b=h[y];c(b)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,y){let b=-1,x=-1;for(;++b<l.length;)if(l[b][0]===h){x=b;break}if(x===-1)l.push([h,...y]);else if(y.length>0){let[E,..._]=y;const w=l[x][1];Rh(w)&&Rh(E)&&(E=Gd(!0,w,E)),l[x]=[h,E,..._]}}}}const q2=new hm().freeze();function Vd(e,a){if(typeof a!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Xd(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 cx(e){if(!Rh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ux(e,a,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+a+"` instead")}function Kc(e){return P2(e)?e:new TE(e)}function P2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $2(e){return typeof e=="string"||G2(e)}function G2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const K2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fx=[],dx={allowDangerousHtml:!0},Q2=/^(https?|ircs?|mailto|xmpp)$/i,Y2=[{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 mm(e){const a=V2(e),i=X2(e);return Z2(a.runSync(a.parse(i),i),e)}function V2(e){const a=e.rehypePlugins||fx,i=e.remarkPlugins||fx,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dx}:dx;return q2().use(RR).use(i).use(w2,l).use(a)}function X2(e){const a=e.children||"",i=new TE;return typeof a=="string"&&(i.value=a),i}function Z2(e,a){const i=a.allowedElements,l=a.allowElement,o=a.components,c=a.disallowedElements,u=a.skipHtml,d=a.unwrapDisallowed,m=a.urlTransform||W2;for(const y of Y2)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+K2+y.id,void 0);return Nu(e,h),hC(e,{Fragment:g.Fragment,components:o,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(y,b,x){if(y.type==="raw"&&x&&typeof b=="number")return u?x.children.splice(b,1):x.children[b]={type:"text",value:y.value},b;if(y.type==="element"){let E;for(E in Hd)if(Object.hasOwn(Hd,E)&&Object.hasOwn(y.properties,E)){const _=y.properties[E],w=Hd[E];(w===null||w.includes(y.tagName))&&(y.properties[E]=m(String(_||""),E,y))}}if(y.type==="element"){let E=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!E&&l&&typeof b=="number"&&(E=!l(y,b,x)),E&&x&&typeof b=="number")return d&&y.children?x.children.splice(b,1,...y.children):x.children.splice(b,1),b}}}function W2(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||Q2.test(e.slice(0,a))?e:""}function hx(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 J2(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=_o((i||{}).ignore||[]),c=tO(a);let u=-1;for(;++u<c.length;)kE(e,"text",d);function d(h,y){let b=-1,x;for(;++b<y.length;){const E=y[b],_=x?x.children:void 0;if(o(E,_?_.indexOf(E):void 0,x))return;x=E}if(x)return m(h,y)}function m(h,y){const b=y[y.length-1],x=c[u][0],E=c[u][1];let _=0;const T=b.children.indexOf(h);let N=!1,U=[];x.lastIndex=0;let z=x.exec(h.value);for(;z;){const P=z.index,Z={index:z.index,input:z.input,stack:[...y,h]};let A=E(...z,Z);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?x.lastIndex=P+1:(_!==P&&U.push({type:"text",value:h.value.slice(_,P)}),Array.isArray(A)?U.push(...A):A&&U.push(A),_=P+z[0].length,N=!0),!x.global)break;z=x.exec(h.value)}return N?(_<h.value.length&&U.push({type:"text",value:h.value.slice(_)}),b.children.splice(T,1,...U)):U=[h],T+U.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(J2(e),"g"):e}function aO(e){return typeof e=="function"?e:function(){return e}}const Wd="phrasing",Jd=["autolink","link","image","label"];function iO(){return{transforms:[fO],enter:{literalAutolink:lO,literalAutolinkEmail:eh,literalAutolinkHttp:eh,literalAutolinkWww:eh},exit:{literalAutolink:uO,literalAutolinkEmail:cO,literalAutolinkHttp:sO,literalAutolinkWww:oO}}}function rO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Wd,notInConstruct:Jd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Wd,notInConstruct:Jd},{character:":",before:"[ps]",after:"\\/",inConstruct:Wd,notInConstruct:Jd}]}}function lO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function eh(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(!CE(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!CE(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=hx(e,"(");let c=hx(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 CE(e,a){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Ir(i)||Eu(i))&&(!a||i!==47)}AE.peek=wO;function gO(){this.buffer()}function bO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yO(){this.buffer()}function xO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vO(e){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ya(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=ya(this.sliceSerialize(e)).toLowerCase(),i.label=a}function SO(e){this.exit(e)}function wO(){return"["}function AE(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:xO},exit:{gfmFootnoteCallString:vO,gfmFootnoteCall:EO,gfmFootnoteDefinitionLabelString:_O,gfmFootnoteDefinition:SO}}}function kO(e){let a=!1;return e&&e.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:AE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,c,u){const d=c.createTracker(u);let m=d.move("[^");const h=c.enter("footnoteDefinition"),y=c.enter("label");return m+=d.move(c.safe(c.associationId(l),{before:m,after:"]"})),y(),m+=d.move("]:"),l.children&&l.children.length>0&&(d.shift(4),m+=d.move((a?`
|
|
318
|
+
`:" ")+c.indentLines(c.containerFlow(l,d.current()),a?RE:TO))),h(),m}}function TO(e,a,i){return a===0?e:RE(e,a,i)}function RE(e,a,i){return(i?"":" ")+e}const CO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];OE.peek=DO;function AO(){return{canContainEols:["delete"],enter:{strikethrough:OO},exit:{strikethrough:MO}}}function RO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CO}],handlers:{delete:OE}}}function OO(e){this.enter({type:"delete",children:[]},e)}function MO(e){this.exit(e)}function OE(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=[],m=[];let h=0,y=-1;for(;++y<e.length;){const w=[],T=[];let N=-1;for(e[y].length>h&&(h=e[y].length);++N<e[y].length;){const U=jO(e[y][N]);if(i.alignDelimiters!==!1){const z=o(U);T[N]=z,(m[N]===void 0||z>m[N])&&(m[N]=z)}w.push(U)}u[y]=w,d[y]=T}let b=-1;if(typeof l=="object"&&"length"in l)for(;++b<h;)c[b]=mx(l[b]);else{const w=mx(l);for(;++b<h;)c[b]=w}b=-1;const x=[],E=[];for(;++b<h;){const w=c[b];let T="",N="";w===99?(T=":",N=":"):w===108?T=":":w===114&&(N=":");let U=i.alignDelimiters===!1?1:Math.max(1,m[b]-T.length-N.length);const z=T+"-".repeat(U)+N;i.alignDelimiters!==!1&&(U=T.length+U+N.length,U>m[b]&&(m[b]=U),E[b]=U),x[b]=z}u.splice(1,0,x),d.splice(1,0,E),y=-1;const _=[];for(;++y<u.length;){const w=u[y],T=d[y];b=-1;const N=[];for(;++b<h;){const U=w[b]||"";let z="",P="";if(i.alignDelimiters!==!1){const Z=m[b]-(T[b]||0),A=c[b];A===114?z=" ".repeat(Z):A===99?Z%2?(z=" ".repeat(Z/2+.5),P=" ".repeat(Z/2-.5)):(z=" ".repeat(Z/2),P=z):P=" ".repeat(Z)}i.delimiterStart!==!1&&!b&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&U==="")&&(i.delimiterStart!==!1||b)&&N.push(" "),i.alignDelimiters!==!1&&N.push(z),N.push(U),i.alignDelimiters!==!1&&N.push(P),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||b!==h-1)&&N.push("|")}_.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return _.join(`
|
|
319
|
+
`)}function jO(e){return e==null?"":String(e)}function mx(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 IO(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()),UO);return o(),u}function UO(e,a,i){return">"+(i?"":" ")+e}function BO(e,a){return px(e,a.inConstruct,!0)&&!px(e,a.notInConstruct,!1)}function px(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 gx(e,a,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
|
|
320
|
+
`&&BO(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
|
|
321
|
+
`}function FO(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 HO(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(HO(e,i)){const b=i.enter("codeIndented"),x=i.indentLines(c,$O);return b(),x}const d=i.createTracker(l),m=o.repeat(Math.max(FO(c,o)+1,3)),h=i.enter("codeFenced");let y=d.move(m);if(e.lang){const b=i.enter(`codeFencedLang${u}`);y+=d.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...d.current()})),b()}if(e.lang&&e.meta){const b=i.enter(`codeFencedMeta${u}`);y+=d.move(" "),y+=d.move(i.safe(e.meta,{before:y,after:`
|
|
322
|
+
`,encode:["`"],...d.current()})),b()}return y+=d.move(`
|
|
323
|
+
`),c&&(y+=d.move(c+`
|
|
324
|
+
`)),y+=d.move(m),h(),y}function $O(e,a,i){return(i?"":" ")+e}function pm(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 GO(e,a,i,l){const o=pm(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("definition");let d=i.enter("label");const m=i.createTracker(l);let h=m.move("[");return h+=m.move(i.safe(i.associationId(e),{before:h,after:"]",...m.current()})),h+=m.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(i.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(d=i.enter("destinationRaw"),h+=m.move(i.safe(e.url,{before:h,after:e.title?" ":`
|
|
325
|
+
`,...m.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=m.move(" "+o),h+=m.move(i.safe(e.title,{before:h,after:o,...m.current()})),h+=m.move(o),d()),u(),h}function KO(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 oo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function du(e,a,i){const l=Pl(e),o=Pl(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}}ME.peek=QO;function ME(e,a,i,l){const o=KO(i),c=i.enter("emphasis"),u=i.createTracker(l),d=u.move(o);let m=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=m.charCodeAt(0),y=du(l.before.charCodeAt(l.before.length-1),h,o);y.inside&&(m=oo(h)+m.slice(1));const b=m.charCodeAt(m.length-1),x=du(l.after.charCodeAt(0),b,o);x.inside&&(m=m.slice(0,-1)+oo(b));const E=u.move(o);return c(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+m+E}function QO(e,a,i){return i.options.emphasis||"*"}function YO(e,a){let i=!1;return Nu(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Ch}),!!((!e.depth||e.depth<3)&&lm(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(YO(e,i)){const y=i.enter("headingSetext"),b=i.enter("phrasing"),x=i.containerPhrasing(e,{...c.current(),before:`
|
|
326
|
+
`,after:`
|
|
327
|
+
`});return b(),y(),x+`
|
|
328
|
+
`+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
329
|
+
`))+1))}const u="#".repeat(o),d=i.enter("headingAtx"),m=i.enter("phrasing");c.move(u+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
|
|
330
|
+
`,...c.current()});return/^[\t ]/.test(h)&&(h=oo(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,i.options.closeAtx&&(h+=" "+u),m(),d(),h}DE.peek=XO;function DE(e){return e.value||""}function XO(){return"<"}LE.peek=ZO;function LE(e,a,i,l){const o=pm(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("image");let d=i.enter("label");const m=i.createTracker(l);let h=m.move("![");return h+=m.move(i.safe(e.alt,{before:h,after:"]",...m.current()})),h+=m.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(i.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(d=i.enter("destinationRaw"),h+=m.move(i.safe(e.url,{before:h,after:e.title?" ":")",...m.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=m.move(" "+o),h+=m.move(i.safe(e.title,{before:h,after:o,...m.current()})),h+=m.move(o),d()),h+=m.move(")"),u(),h}function ZO(){return"!"}zE.peek=WO;function zE(e,a,i,l){const o=e.referenceType,c=i.enter("imageReference");let u=i.enter("label");const d=i.createTracker(l);let m=d.move("![");const h=i.safe(e.alt,{before:m,after:"]",...d.current()});m+=d.move(h+"]["),u();const y=i.stack;i.stack=[],u=i.enter("reference");const b=i.safe(i.associationId(e),{before:m,after:"]",...d.current()});return u(),i.stack=y,c(),o==="full"||!h||h!==b?m+=d.move(b+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function WO(){return"!"}jE.peek=JO;function jE(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 m;if(u.atBreak)for(;m=d.exec(l);){let h=m.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(m.index+1)}}return o+l+o}function JO(){return"`"}function IE(e,a){const i=lm(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))}UE.peek=eM;function UE(e,a,i,l){const o=pm(i),c=o==='"'?"Quote":"Apostrophe",u=i.createTracker(l);let d,m;if(IE(e,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let b=u.move("<");return b+=u.move(i.containerPhrasing(e,{before:b,after:">",...u.current()})),b+=u.move(">"),d(),i.stack=y,b}d=i.enter("link"),m=i.enter("label");let h=u.move("[");return h+=u.move(i.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),m(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(m=i.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(i.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(m=i.enter("destinationRaw"),h+=u.move(i.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),m(),e.title&&(m=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),m()),h+=u.move(")"),d(),h}function eM(e,a,i){return IE(e,i)?"<":"["}BE.peek=tM;function BE(e,a,i,l){const o=e.referenceType,c=i.enter("linkReference");let u=i.enter("label");const d=i.createTracker(l);let m=d.move("[");const h=i.containerPhrasing(e,{before:m,after:"]",...d.current()});m+=d.move(h+"]["),u();const y=i.stack;i.stack=[],u=i.enter("reference");const b=i.safe(i.associationId(e),{before:m,after:"]",...d.current()});return u(),i.stack=y,c(),o==="full"||!h||h!==b?m+=d.move(b+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function tM(){return"["}function gm(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=gm(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 FE(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):gm(i);const d=e.ordered?u==="."?")":".":nM(i);let m=a&&i.bulletLastUsed?u===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),FE(i)===u&&y){let b=-1;for(;++b<e.children.length;){const x=e.children[b];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(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||gm(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 m=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,d.current()),y);return m(),h;function y(b,x,E){return x?(E?"":" ".repeat(u))+b:(E?c:c+" ".repeat(u-c.length))+b}}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=_o(["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}HE.peek=fM;function HE(e,a,i,l){const o=uM(i),c=i.enter("strong"),u=i.createTracker(l),d=u.move(o+o);let m=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=m.charCodeAt(0),y=du(l.before.charCodeAt(l.before.length-1),h,o);y.inside&&(m=oo(h)+m.slice(1));const b=m.charCodeAt(m.length-1),x=du(l.after.charCodeAt(0),b,o);x.inside&&(m=m.slice(0,-1)+oo(b));const E=u.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+m+E}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=(FE(i)+(i.options.ruleSpaces?" ":"")).repeat(hM(i));return i.options.ruleSpaces?l.slice(0,-1):l}const qE={blockquote:IO,break:gx,code:PO,definition:GO,emphasis:ME,hardBreak:gx,heading:VO,html:DE,image:LE,imageReference:zE,inlineCode:jE,link:UE,linkReference:BE,list:iM,listItem:lM,paragraph:sM,root:cM,strong:HE,text:dM,thematicBreak:mM};function pM(){return{enter:{table:gM,tableData:bx,tableHeader:bx,tableRow:yM},exit:{codeText:xM,table:bM,tableData:th,tableHeader:th,tableRow:th}}}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 th(e){this.exit(e)}function bx(e){this.enter({type:"tableCell",children:[]},e)}function xM(e){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,vM));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(e)}function vM(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:`
|
|
331
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:u,tableCell:m,tableRow:d}};function u(E,_,w,T){return h(y(E,w,T),E.align)}function d(E,_,w,T){const N=b(E,w,T),U=h([N]);return U.slice(0,U.indexOf(`
|
|
332
|
+
`))}function m(E,_,w,T){const N=w.enter("tableCell"),U=w.enter("phrasing"),z=w.containerPhrasing(E,{...T,before:c,after:c});return U(),N(),z}function h(E,_){return zO(E,{align:_,alignDelimiters:l,padding:i,stringLength:o})}function y(E,_,w){const T=E.children;let N=-1;const U=[],z=_.enter("table");for(;++N<T.length;)U[N]=b(T[N],_,w);return z(),U}function b(E,_,w){const T=E.children;let N=-1;const U=[],z=_.enter("tableRow");for(;++N<T.length;)U[N]=m(T[N],E,_,w);return z(),U}function x(E,_,w){let T=qE.inlineCode(E,_,w);return w.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function _M(){return{exit:{taskListCheckValueChecked:yx,taskListCheckValueUnchecked:yx,paragraph:wM}}}function SM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:NM}}}function yx(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 m=qE.listItem(e,a,i,{...l,...d.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(y){return y+u}}function kM(){return[iO(),NO(),AO(),pM(),_M()]}function TM(e){return{extensions:[rO(),kO(e),RO(),EM(e),SM()]}}const CM={tokenize:LM,partial:!0},PE={tokenize:zM,partial:!0},$E={tokenize:jM,partial:!0},GE={tokenize:IM,partial:!0},AM={tokenize:UM,partial:!0},KE={name:"wwwAutolink",tokenize:MM,previous:YE},QE={name:"protocolAutolink",tokenize:DM,previous:VE},ui={name:"emailAutolink",tokenize:OM,previous:XE},La={};function RM(){return{text:La}}let Nr=48;for(;Nr<123;)La[Nr]=ui,Nr++,Nr===58?Nr=65:Nr===91&&(Nr=97);La[43]=ui;La[45]=ui;La[46]=ui;La[95]=ui;La[72]=[ui,QE];La[104]=[ui,QE];La[87]=[ui,KE];La[119]=[ui,KE];function OM(e,a,i){const l=this;let o,c;return u;function u(b){return!Mh(b)||!XE.call(l,l.previous)||bm(l.events)?i(b):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(b))}function d(b){return Mh(b)?(e.consume(b),d):b===64?(e.consume(b),m):i(b)}function m(b){return b===46?e.check(AM,y,h)(b):b===45||b===95||cn(b)?(c=!0,e.consume(b),m):y(b)}function h(b){return e.consume(b),o=!0,m}function y(b){return c&&o&&yn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),a(b)):i(b)}}function MM(e,a,i){const l=this;return o;function o(u){return u!==87&&u!==119||!YE.call(l,l.previous)||bm(l.events)?i(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(CM,e.attempt(PE,e.attempt($E,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(b){return(b===72||b===104)&&VE.call(l,l.previous)&&!bm(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(b),e.consume(b),d):i(b)}function d(b){if(yn(b)&&o.length<5)return o+=String.fromCodePoint(b),e.consume(b),d;if(b===58){const x=o.toLowerCase();if(x==="http"||x==="https")return e.consume(b),m}return i(b)}function m(b){return b===47?(e.consume(b),c?h:(c=!0,m)):i(b)}function h(b){return b===null||cu(b)||bt(b)||Ir(b)||Eu(b)?i(b):e.attempt(PE,e.attempt($E,y),i)(b)}function y(b){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),a(b)}}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(GE,m,d)(h):h===null||bt(h)||Ir(h)||h!==45&&Eu(h)?m(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 m(h){return o||l||!c?i(h):a(h)}}function jM(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(GE,a,c)(u):u===null||bt(u)||Ir(u)?a(u):(e.consume(u),o)}function c(u){return u===41&&l++,e.consume(u),o}}function IM(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)||Ir(d)?a(d):i(d)}function o(d){return d===null||d===40||d===91||bt(d)||Ir(d)?a(d):l(d)}function c(d){return yn(d)?u(d):i(d)}function u(d){return d===59?(e.consume(d),l):yn(d)?(e.consume(d),u):i(d)}}function UM(e,a,i){return l;function l(c){return e.consume(c),o}function o(c){return cn(c)?i(c):a(c)}}function YE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||bt(e)}function VE(e){return!yn(e)}function XE(e){return!(e===47||Mh(e))}function Mh(e){return e===43||e===45||e===46||e===95||cn(e)}function bm(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 BM={tokenize:QM,partial:!0};function FM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$M,continuation:{tokenize:GM},exit:KM}},text:{91:{name:"gfmFootnoteCall",tokenize:PM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:HM,resolveTo:qM}}}}function HM(e,a,i){const l=this;let o=l.events.length;const c=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u;for(;o--;){const m=l.events[o][1];if(m.type==="labelImage"){u=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!u||!u._balanced)return i(m);const h=ya(l.sliceSerialize({start:u.end,end:l.now()}));return h.codePointAt(0)!==94||!c.includes(h.slice(1))?i(m):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),a(m))}}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(b){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(b),e.exit("gfmFootnoteCallLabelMarker"),m}function m(b){return b!==94?i(b):(e.enter("gfmFootnoteCallMarker"),e.consume(b),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(b){if(c>999||b===93&&!u||b===null||b===91||bt(b))return i(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(ya(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(b),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),a):i(b)}return bt(b)||(u=!0),c++,e.consume(b),b===92?y:h}function y(b){return b===91||b===92||b===93?(e.consume(b),c++,h):h(b)}}function $M(e,a,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c,u=0,d;return m;function m(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):i(_)}function y(_){if(u>999||_===93&&!d||_===null||_===91||bt(_))return i(_);if(_===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return c=ya(l.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return bt(_)||(d=!0),u++,e.consume(_),_===92?b:y}function b(_){return _===91||_===92||_===93?(e.consume(_),u++,y):y(_)}function x(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),o.includes(c)||o.push(c),We(e,E,"gfmFootnoteDefinitionWhitespace")):i(_)}function E(_){return a(_)}}function GM(e,a,i){return e.check(Eo,a,e.attempt(BM,a,i))}function KM(e){e.exit("gfmFootnoteDefinition")}function QM(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 YM(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 m=-1;for(;++m<u.length;)if(u[m][0]==="enter"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._close){let h=m;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[m][1].end.offset-u[m][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[m][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[m][1].end)},b={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[m][1].start)},x=[["enter",y,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",b,d]],E=d.parser.constructs.insideSpan.null;E&&Kn(x,x.length,0,_u(E,u.slice(h+1,m),d)),Kn(x,x.length,0,[["exit",b,d],["enter",u[m][1],d],["exit",u[m][1],d],["exit",y,d]]),Kn(u,h-1,m-h+3,x),m=h+x.length-2;break}}for(m=-1;++m<u.length;)u[m][1].type==="strikethroughSequenceTemporary"&&(u[m][1].type="data");return u}function c(u,d,m){const h=this.previous,y=this.events;let b=0;return x;function x(_){return h===126&&y[y.length-1][1].type!=="characterEscape"?m(_):(u.enter("strikethroughSequenceTemporary"),E(_))}function E(_){const w=Pl(h);if(_===126)return b>1?m(_):(u.consume(_),b++,E);if(b<2&&!i)return m(_);const T=u.exit("strikethroughSequenceTemporary"),N=Pl(_);return T._open=!N||N===2&&!!w,T._close=!w||w===2&&!!N,d(_)}}}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:eD}}}}function JM(e,a,i){const l=this;let o=0,c=0,u;return d;function d(j){let B=l.events.length-1;for(;B>-1;){const re=l.events[B][1].type;if(re==="lineEnding"||re==="linePrefix")B--;else break}const Q=B>-1?l.events[B][1].type:null,oe=Q==="tableHead"||Q==="tableRow"?A:m;return oe===A&&l.parser.lazy[l.now().line]?i(j):oe(j)}function m(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(u=!0,c+=1),y(j)}function y(j){return j===null?i(j):Te(j)?c>1?(c=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),E):i(j):Ge(j)?We(e,y,"whitespace")(j):(c+=1,u&&(u=!1,o+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),b(j)))}function b(j){return j===null||j===124||bt(j)?(e.exit("data"),y(j)):(e.consume(j),j===92?x:b)}function x(j){return j===92||j===124?(e.consume(j),b):b(j)}function E(j){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(j):(e.enter("tableDelimiterRow"),u=!1,Ge(j)?We(e,_,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j))}function _(j){return j===45||j===58?T(j):j===124?(u=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),w):Z(j)}function w(j){return Ge(j)?We(e,T,"whitespace")(j):T(j)}function T(j){return j===58?(c+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),N):j===45?(c+=1,N(j)):j===null||Te(j)?P(j):Z(j)}function N(j){return j===45?(e.enter("tableDelimiterFiller"),U(j)):Z(j)}function U(j){return j===45?(e.consume(j),U):j===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),z):(e.exit("tableDelimiterFiller"),z(j))}function z(j){return Ge(j)?We(e,P,"whitespace")(j):P(j)}function P(j){return j===124?_(j):j===null||Te(j)?!u||o!==c?Z(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),a(j)):Z(j)}function Z(j){return i(j)}function A(j){return e.enter("tableRow"),V(j)}function V(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),V):j===null||Te(j)?(e.exit("tableRow"),a(j)):Ge(j)?We(e,V,"whitespace")(j):(e.enter("data"),H(j))}function H(j){return j===null||j===124||bt(j)?(e.exit("data"),V(j)):(e.consume(j),j===92?ae:H)}function ae(j){return j===92||j===124?(e.consume(j),H):H(j)}}function eD(e,a){let i=-1,l=!0,o=0,c=[0,0,0,0],u=[0,0,0,0],d=!1,m=0,h,y,b;const x=new VM;for(;++i<e.length;){const E=e[i],_=E[1];E[0]==="enter"?_.type==="tableHead"?(d=!1,m!==0&&(xx(x,a,m,h,y),y=void 0,m=0),h={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(i,0,[["enter",h,a]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(l=!0,b=void 0,c=[0,0,0,0],u=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},x.add(i,0,[["enter",y,a]])),o=_.type==="tableDelimiterRow"?2:y?3:1):o&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],b=Qc(x,a,c,o,void 0,b),c=[0,0,0,0]),u[2]=i)):_.type==="tableCellDivider"&&(l?l=!1:(c[1]!==0&&(u[0]=u[1],b=Qc(x,a,c,o,void 0,b)),c=u,u=[c[1],i,0,0])):_.type==="tableHead"?(d=!0,m=i):_.type==="tableRow"||_.type==="tableDelimiterRow"?(m=i,c[1]!==0?(u[0]=u[1],b=Qc(x,a,c,o,i,b)):u[1]!==0&&(b=Qc(x,a,u,o,i,b)),o=0):o&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(u[3]=i)}for(m!==0&&xx(x,a,m,h,y),x.consume(a.events),i=-1;++i<a.events.length;){const E=a.events[i];E[0]==="enter"&&E[1].type==="table"&&(E[1]._align=ZM(a.events,i))}return e}function Qc(e,a,i,l,o,c){const u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},Tl(a.events,i[0])),e.add(i[0],0,[["exit",c,a]]));const m=Tl(a.events,i[1]);if(c={type:u,start:Object.assign({},m),end:Object.assign({},m)},e.add(i[1],0,[["enter",c,a]]),i[2]!==0){const h=Tl(a.events,i[2]),y=Tl(a.events,i[3]),b={type:d,start:Object.assign({},h),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",b,a]]),l!==2){const x=a.events[i[2]],E=a.events[i[3]];if(x[1].end=Object.assign({},E[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const _=i[2]+1,w=i[3]-i[2]-1;e.add(_,w,[])}}e.add(i[3]+1,0,[["exit",b,a]])}return o!==void 0&&(c.end=Object.assign({},Tl(a.events,o)),e.add(o,0,[["exit",c,a]]),c=void 0),c}function xx(e,a,i,l,o){const c=[],u=Tl(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 Tl(e,a){const i=e[a],l=i[0]==="enter"?"start":"end";return i[1][l]}const tD={name:"tasklistCheck",tokenize:aD};function nD(){return{text:{91:tD}}}function aD(e,a,i){const l=this;return o;function o(m){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(m):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),c)}function c(m){return bt(m)?(e.enter("taskListCheckValueUnchecked"),e.consume(m),e.exit("taskListCheckValueUnchecked"),u):m===88||m===120?(e.enter("taskListCheckValueChecked"),e.consume(m),e.exit("taskListCheckValueChecked"),u):i(m)}function u(m){return m===93?(e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(m)}function d(m){return Te(m)?a(m):Ge(m)?e.check({tokenize:iD},a,i)(m):i(m)}}function iD(e,a,i){return We(e,l,"whitespace");function l(o){return o===null?i(o):a(o)}}function rD(e){return sE([RM(),FM(),YM(e),WM(),nD()])}const lD={};function ym(e){const a=this,i=e||lD,l=a.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),c=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(rD(i)),c.push(kM()),u.push(TM(i))}const vx=(function(e,a,i){const l=_o(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]}),Br=(function(e){if(e==null)return cD;if(typeof e=="string")return oD(e);if(typeof e=="object")return sD(e);if(typeof e=="function")return xm(e);throw new Error("Expected function, string, or array as `test`")});function sD(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=Br(e[i]);return xm(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function oD(e){return xm(a);function a(i){return i.tagName===e}}function xm(e){return a;function a(i,l,o){return!!(uD(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function cD(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function uD(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ex=/\n/g,_x=/[\t ]+/g,Dh=Br("br"),Sx=Br(yD),fD=Br("p"),wx=Br("tr"),dD=Br(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",bD,xD]),ZE=Br(["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 hD(e,a){const i=a||{},l="children"in e?e.children:[],o=ZE(e),c=e0(e,{whitespace:i.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...JE(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<l.length;)u.push(...WE(l[d],e,{whitespace:c,breakBefore:d?void 0:o,breakAfter:d<l.length-1?Dh(l[d+1]):o}));const m=[];let h;for(d=-1;++d<u.length;){const y=u[d];typeof y=="number"?h!==void 0&&y>h&&(h=y):y&&(h!==void 0&&h>-1&&m.push(`
|
|
333
|
+
`.repeat(h)||" "),h=-1,m.push(y))}return m.join("")}function WE(e,a,i){return e.type==="element"?mD(e,a,i):e.type==="text"?i.whitespace==="normal"?JE(e,i):pD(e):[]}function mD(e,a,i){const l=e0(e,i),o=e.children||[];let c=-1,u=[];if(dD(e))return u;let d,m;for(Dh(e)||wx(e)&&vx(a,e,wx)?m=`
|
|
334
|
+
`:fD(e)?(d=2,m=2):ZE(e)&&(d=1,m=1);++c<o.length;)u=u.concat(WE(o[c],e,{whitespace:l,breakBefore:c?void 0:d,breakAfter:c<o.length-1?Dh(o[c+1]):m}));return Sx(e)&&vx(a,e,Sx)&&u.push(" "),d&&u.unshift(d),m&&u.push(m),u}function JE(e,a){const i=String(e.value),l=[],o=[];let c=0;for(;c<=i.length;){Ex.lastIndex=c;const m=Ex.exec(i),h=m&&"index"in m?m.index:i.length;l.push(gD(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 pD(e){return[String(e.value)]}function gD(e,a,i){const l=[];let o=0,c;for(;o<e.length;){_x.lastIndex=o;const u=_x.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 e0(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 bD(e){return!!(e.properties||{}).hidden}function yD(e){return e.tagName==="td"||e.tagName==="th"}function xD(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function vD(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})"/})]},y={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},b={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]},x={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},E=a.optional(o)+e.IDENT_RE+"\\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"],P={type:w,keyword:_,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},Z={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},A=[Z,b,d,i,e.C_BLOCK_COMMENT_MODE,y,h],V={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:P,contains:A.concat([{begin:/\(/,end:/\)/,keywords:P,contains:A.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+u+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:P,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:P,relevance:0},{begin:E,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,y]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,y,d,{begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,y,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:P,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(V,H,Z,A,[b,{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:P,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:P},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ED(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=vD(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 _D(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 m={match:/\\"/},h={className:"string",begin:/'/,end:/'/},y={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],E=e.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),_={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._-]+)+/},U=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],z=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],P=["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"],Z=["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:[...U,...z,"set","shopt",...P,...Z]},contains:[E,e.SHEBANG(),_,b,c,u,N,d,m,h,y,i]}}function SD(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})"/})]},y={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},b={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]},x={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},E=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=[b,d,i,e.C_BLOCK_COMMENT_MODE,y,h],U={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},z={begin:"("+u+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:T,relevance:0},{begin:E,returnBegin:!0,contains:[e.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,y,d,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,y,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"</",contains:[].concat(U,z,N,[b,{begin:e.IDENT_RE+"::",keywords:T},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:b,strings:h,keywords:T}}}function wD(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})"/})]},y={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},b={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]},x={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},E=a.optional(o)+e.IDENT_RE+"\\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"],P={type:w,keyword:_,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},Z={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},A=[Z,b,d,i,e.C_BLOCK_COMMENT_MODE,y,h],V={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:P,contains:A.concat([{begin:/\(/,end:/\)/,keywords:P,contains:A.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+u+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:P,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:P,relevance:0},{begin:E,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,y]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,y,d,{begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,y,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,b]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:P,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(V,H,Z,A,[b,{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:P,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:P},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ND(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)*"}),m={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},y={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=e.inherit(y,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:u},E=e.inherit(x,{illegal:/\n/}),_={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,E]},w={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},T=e.inherit(w,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]});x.contains=[w,_,y,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.C_BLOCK_COMMENT_MODE],E.contains=[T,_,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const N={variants:[h,w,_,y,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},U={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},z=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",P={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,m,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,U,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,U,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:"("+z+"\\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,U],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[N,m,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},P]}}const kD=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_-]*/}}),TD=["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"],CD=["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"],AD=[...TD,...CD],RD=["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(),OD=["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(),MD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),DD=["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 LD(e){const a=e.regex,i=kD(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:":("+OD.join("|")+")"},{begin:":(:)?("+MD.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+DD.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:RD.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+AD.join("|")+")\\b"}]}}function zD(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 jD(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 ID(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 UD(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},m=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,y=/'[^']*'/,b=a.either(m,h,y),x=a.concat(b,"(\\s*\\.\\s*",b,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[l,d,c,o,u,i]}}]}}var Cl="[0-9](_*[0-9])*",Yc=`\\.(${Cl})`,Vc="[0-9a-fA-F](_*[0-9a-fA-F])*",Nx={className:"number",variants:[{begin:`(\\b(${Cl})((${Yc})|\\.)?|(${Yc}))[eE][+-]?(${Cl})[fFdD]?\\b`},{begin:`\\b(${Cl})((${Yc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Yc})[fFdD]?\\b`},{begin:`\\b(${Cl})[fFdD]\\b`},{begin:`\\b0[xX]((${Vc})\\.?|(${Vc})?\\.(${Vc}))[pP][+-]?(${Cl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Vc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function t0(e,a,i){return i===-1?"":e.replace(a,l=>t0(e,a,i-1))}function BD(e){const a=e.regex,i="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=i+t0("(?:<"+i+"~~~(?:\\s*,\\s*"+i+"~~~)*>)?",/~~~/g,2),m={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"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,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:[y,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:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Nx,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Nx,h]}}const kx="[A-Za-z$_][0-9A-Za-z$_]*",FD=["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"],HD=["true","false","null","undefined","NaN","Infinity"],n0=["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"],a0=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i0=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qD=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],PD=[].concat(i0,n0,a0);function $D(e){const a=e.regex,i=(ce,{after:_e})=>{const C="</"+ce[0].slice(1);return ce.input.indexOf(C,_e)!==-1},l=kx,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ce,_e)=>{const C=ce[0].length+ce.index,M=ce.input[C];if(M==="<"||M===","){_e.ignoreMatch();return}M===">"&&(i(ce,{after:C})||_e.ignoreMatch());let X;const k=ce.input.substring(C);if(X=k.match(/^\s*=/)){_e.ignoreMatch();return}if((X=k.match(/^\s+extends\s+/))&&X.index===0){_e.ignoreMatch();return}}},d={$pattern:kx,keyword:FD,literal:HD,built_in:PD,"variable.language":qD},m="[0-9](_?[0-9])*",h=`\\.(${m})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${y})\\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},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},U={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]},z=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,w,T,{match:/\$\d+/},b];x.contains=z.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(z)});const P=[].concat(U,x.contains),Z=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(P)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:Z},V={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"}}]},H={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:{_:[...n0,...a0]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(ce){return a.concat("(?!",ce.join("|"),")")}const oe={match:a.concat(/\b/,Q([...i0,"super","import"].map(ce=>`${ce}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",le={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:Z,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,w,T,U,{match:/\$\d+/},b,H,{scope:"attr",match:l+a.lookahead(":"),relevance:0},le,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[U,e.REGEXP_MODE,{className:"function",begin:q,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:Z}]}]},{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"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},oe,B,V,W,{match:/\$[(.]/}]}}function GD(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 Al="[0-9](_*[0-9])*",Xc=`\\.(${Al})`,Zc="[0-9a-fA-F](_*[0-9a-fA-F])*",KD={className:"number",variants:[{begin:`(\\b(${Al})((${Xc})|\\.)?|(${Xc}))[eE][+-]?(${Al})[fFdD]?\\b`},{begin:`\\b(${Al})((${Xc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Xc})[fFdD]?\\b`},{begin:`\\b(${Al})[fFdD]\\b`},{begin:`\\b0[xX]((${Zc})\\.?|(${Zc})?\\.(${Zc}))[pP][+-]?(${Al})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Zc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function QD(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+")?"},m={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},h=KD,y=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},x=b;return x.variants[1].contains=[b],b.variants[1].contains=[x],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,y,i,l,d,m,{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:[b,e.C_LINE_COMMENT_MODE,y],relevance:0},e.C_LINE_COMMENT_MODE,y,d,m,u,e.C_NUMBER_MODE]},y]},{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,m]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
335
|
+
`},h]}}const YD=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_-]*/}}),VD=["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"],XD=["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"],ZD=[...VD,...XD],WD=["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(),r0=["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(),l0=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),JD=["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(),eL=r0.concat(l0).sort().reverse();function tL(e){const a=YD(e),i=eL,l="and or not only",o="[\\w-]+",c="("+o+"|@\\{"+o+"\\})",u=[],d=[],m=function(z){return{className:"string",begin:"~?"+z+".*?"+z}},h=function(z,P,Z){return{className:z,begin:P,relevance:Z}},y={$pattern:/[a-z-]+/,keyword:l,attribute:WD.join(" ")},b={begin:"\\(",end:"\\)",contains:d,keywords:y,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,b,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 x=d.concat({begin:/\{/,end:/\}/,contains:u}),E={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},_={begin:c+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+JD.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:y,returnEnd:!0,contains:d,relevance:0}},T={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:x}},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,E,h("keyword","all\\b"),h("variable","@\\{"+o+"\\}"),{begin:"\\b("+ZD.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:":("+r0.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l0.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:x},{begin:"!important"},a.FUNCTION_DISPATCH]},U={begin:o+`:(:)?(${i.join("|")})`,returnBegin:!0,contains:[N]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,w,T,U,_,N,E,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function nL(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 aL(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 iL(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+.-]*/,m={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}/}]},y={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},b=e.inherit(h,{contains:[]}),x=e.inherit(y,{contains:[]});h.contains.push(x),y.contains.push(b);let E=[i,m];return[h,y,b,x].forEach(N=>{N.contains=N.contains.concat(E)}),E=E.concat(h,y),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},i,c,h,y,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},o,l,m,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function rL(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"]},m={$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:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function lL(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*\(.*?\))?/},m={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},y=[e.BACKSLASH_ESCAPE,c,m],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(w,T,N="\\1")=>{const U=N==="\\1"?N:a.concat(N,T);return a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,U,/(?:\\.|[^\\\/])*?/,N,l)},E=(w,T,N)=>a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,N,l),_=[m,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:y,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:x("s|tr|y",a.either(...b,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:E("(?:m|qr)?",/\//,/\//)},{begin:E("m|qr",a.either(...b,{capture:!0}),/\1/)},{begin:E("m|qr",/\(/,/\)/)},{begin:E("m|qr",/\[/,/\]/)},{begin:E("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=_,u.contains=_,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:_}}function sL(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:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),y=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(m)}),b={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(re,W)=>{W.data._beginMatch=re[1]||re[2]},"on:end":(re,W)=>{W.data._beginMatch!==re[1]&&W.ignoreMatch()}},x=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),E=`[
|
|
336
|
+
]`,_={scope:"string",variants:[y,h,b,x]},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"],U=["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"],P={keyword:N,literal:(re=>{const W=[];return re.forEach(q=>{W.push(q),q.toLowerCase()===q?W.push(q.toUpperCase()):W.push(q.toLowerCase())}),W})(T),built_in:U},Z=re=>re.map(W=>W.replace(/\|\d+$/,"")),A={variants:[{match:[/new/,a.concat(E,"+"),a.concat("(?!",Z(U).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},V=a.concat(l,"\\b(?!\\()"),H={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),V],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,a.concat(/::/,a.lookahead(/(?!class\b)/)),V],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"}}]},ae={scope:"attr",match:a.concat(l,a.lookahead(":"),a.lookahead(/(?!::)/))},j={relevance:0,begin:/\(/,end:/\)/,keywords:P,contains:[ae,u,H,e.C_BLOCK_COMMENT_MODE,_,w,A]},B={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",Z(N).join("\\b|"),"|",Z(U).join("\\b|"),"\\b)"),l,a.concat(E,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[j]};j.contains.push(B);const Q=[ae,H,e.C_BLOCK_COMMENT_MODE,_,w,A],oe={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",...Q]},...Q,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:P,contains:[oe,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,B,H,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},A,{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:P,contains:["self",oe,u,H,e.C_BLOCK_COMMENT_MODE,_,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]},_,w]}}function oL(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 cL(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function uL(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"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},y={begin:/\{\{/,relevance:0},b={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m,y,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m,y,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,y,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,y,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",E=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,_=`\\b|${l.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${E}))[eE][+-]?(${x})[jJ]?(?=${_})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${_})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${_})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${_})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${_})`},{begin:`\\b(${x})[jJ](?=${_})`}]},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",m,w,b,e.HASH_COMMENT_MODE]}]};return h.contains=[b,w,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[m,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,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,b]}]}}function fL(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function dL(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 hL(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]+"},m={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],y={className:"subst",begin:/#\{/,end:/\}/,keywords:u},b={className:"string",contains:[e.BACKSLASH_ESCAPE,y],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,y]})]}]},x="[1-9](_?[0-9])*|0",E="[0-9](_?[0-9])*",_={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${E}))?([eE][+-]?(${E})|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}]},A=[b,{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:[b,{begin:i}],relevance:0},_,{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,y],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(m,h),relevance:0}].concat(m,h);y.contains=A,w.contains=A;const j=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:A}}];return h.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(j).concat(h).concat(A)}}function mL(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"],m=["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!"],y=["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:y,keyword:d,literal:m,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:y}},{className:"punctuation",begin:"->"},c]}}const pL=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_-]*/}}),gL=["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"],bL=["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"],yL=[...gL,...bL],xL=["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(),vL=["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(),EL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_L=["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 SL(e){const a=pL(e),i=EL,l=vL,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("+yL.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("+_L.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:xL.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 wL(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function NL(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"],m=["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"],y=["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"],b=["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"],x=["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"],E=y,_=[...h,...m].filter(Z=>!y.includes(Z)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},N={match:a.concat(/\b/,a.either(...E),/\s*\(/),relevance:0,keywords:{built_in:E}};function U(Z){return a.concat(/\b/,a.either(...Z.map(A=>A.replace(/\s+/,"\\s+"))),/\b/)}const z={scope:"keyword",match:U(x),relevance:0};function P(Z,{exceptions:A,when:V}={}){const H=V;return A=A||[],Z.map(ae=>ae.match(/\|\d+$/)||A.includes(ae)?ae:H(ae)?`${ae}|0`:ae)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:P(_,{when:Z=>Z.length<3}),literal:c,type:d,built_in:b},contains:[{scope:"type",match:U(u)},z,N,w,l,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,T]}}function s0(e){return e?typeof e=="string"?e:e.source:null}function Js(e){return mt("(?=",e,")")}function mt(...e){return e.map(i=>s0(i)).join("")}function kL(e){const a=e[e.length-1];return typeof a=="object"&&a.constructor===Object?(e.splice(e.length-1,1),a):{}}function gn(...e){return"("+(kL(e).capture?"":"?:")+e.map(l=>s0(l)).join("|")+")"}const vm=e=>mt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),TL=["Protocol","Type"].map(vm),Tx=["init","self"].map(vm),CL=["Any","Self"],nh=["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"],Cx=["false","nil","true"],AL=["assignment","associativity","higherThan","left","lowerThan","none","right"],RL=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Ax=["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"],o0=gn(/[/=\-+!*%<>&|^~?]/,/[\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]/),c0=gn(o0,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ah=mt(o0,c0,"*"),u0=gn(/[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]/),hu=gn(u0,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ca=mt(u0,hu,"*"),Wc=mt(/[A-Z]/,hu,"*"),OL=["attached","autoclosure",mt(/convention\(/,gn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",mt(/objc\(/,Ca,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ML=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function DL(e){const a={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),l=[e.C_LINE_COMMENT_MODE,i],o={match:[/\./,gn(...TL,...Tx)],className:{2:"keyword"}},c={match:mt(/\./,gn(...nh)),relevance:0},u=nh.filter(Ve=>typeof Ve=="string").concat(["_|0"]),d=nh.filter(Ve=>typeof Ve!="string").concat(CL).map(vm),m={variants:[{className:"keyword",match:gn(...d,...Tx)}]},h={$pattern:gn(/\b\w+/,/#\w+/),keyword:u.concat(RL),literal:Cx},y=[o,c,m],b={match:mt(/\./,gn(...Ax)),relevance:0},x={className:"built_in",match:mt(/\b/,gn(...Ax),/(?=\()/)},E=[b,x],_={match:/->/,relevance:0},w={className:"operator",relevance:0,variants:[{match:ah},{match:`\\.(\\.|${c0})+`}]},T=[_,w],N="([0-9]_*)+",U="([0-9a-fA-F]_*)+",z={className:"number",relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${U})(\\.(${U}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},P=(Ve="")=>({className:"subst",variants:[{match:mt(/\\/,Ve,/[0\\tnr"']/)},{match:mt(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Z=(Ve="")=>({className:"subst",match:mt(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),A=(Ve="")=>({className:"subst",label:"interpol",begin:mt(/\\/,Ve,/\(/),end:/\)/}),V=(Ve="")=>({begin:mt(Ve,/"""/),end:mt(/"""/,Ve),contains:[P(Ve),Z(Ve),A(Ve)]}),H=(Ve="")=>({begin:mt(Ve,/"/),end:mt(/"/,Ve),contains:[P(Ve),A(Ve)]}),ae={className:"string",variants:[V(),V("#"),V("##"),V("###"),H(),H("#"),H("##"),H("###")]},j=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],B={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:j},Q=Ve=>{const fa=mt(Ve,/\//),Yn=mt(/\//,Ve);return{begin:fa,end:Yn,contains:[...j,{scope:"comment",begin:`#(?!.*${Yn})`,end:/$/}]}},oe={scope:"regexp",variants:[Q("###"),Q("##"),Q("#"),B]},re={match:mt(/`/,Ca,/`/)},W={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${hu}+`},le=[re,W,q],ce={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ML,contains:[...T,z,ae]}]}},_e={scope:"keyword",match:mt(/@/,gn(...OL),Js(gn(/\(/,/\s+/)))},C={scope:"meta",match:mt(/@/,Ca)},M=[ce,_e,C],X={match:Js(/\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)/,hu,"+")},{className:"type",match:Wc,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:mt(/\s+&\s+/,Js(Wc)),relevance:0}]},k={begin:/</,end:/>/,keywords:h,contains:[...l,...y,...M,_,X]};X.contains.push(k);const he={match:mt(Ca,/\s*:/),keywords:"_|0",relevance:0},Ne={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",he,...l,oe,...y,...E,...T,z,ae,...le,...M,X]},xe={begin:/</,end:/>/,keywords:"repeat each",contains:[...l,X]},Fe={begin:gn(Js(mt(Ca,/\s*:/)),Js(mt(Ca,/\s+/,Ca,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ca}]},rt={begin:/\(/,end:/\)/,keywords:h,contains:[Fe,...l,...y,...T,z,ae,...M,X,Ne],endsParent:!0,illegal:/["']/},nt={match:[/(func|macro)/,/\s+/,gn(re.match,Ca,ah)],className:{1:"keyword",3:"title.function"},contains:[xe,rt,a],illegal:[/\[/,/%/]},Kt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,rt,a],illegal:/\[|%/},Dn={match:[/operator/,/\s+/,ah],className:{1:"keyword",3:"title"}},za={begin:[/precedencegroup/,/\s+/,Wc],className:{1:"keyword",3:"title"},contains:[X],keywords:[...AL,...Cx],end:/}/},fi={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ln={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},va={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ca,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[xe,...y,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:Wc},...y],relevance:0}]};for(const Ve of ae.variants){const fa=Ve.contains.find(Ea=>Ea.label==="interpol");fa.keywords=h;const Yn=[...y,...E,...T,z,ae,...le];fa.contains=[...Yn,{begin:/\(/,end:/\)/,contains:["self",...Yn]}]}return{name:"Swift",keywords:h,contains:[...l,nt,Kt,fi,Ln,va,Dn,za,{beginKeywords:"import",end:/$/,contains:[...l],relevance:0},oe,...y,...E,...T,z,ae,...le,...M,X,Ne]}}const mu="[A-Za-z$_][0-9A-Za-z$_]*",f0=["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"],d0=["true","false","null","undefined","NaN","Infinity"],h0=["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"],m0=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],p0=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g0=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],b0=[].concat(p0,h0,m0);function LL(e){const a=e.regex,i=(ce,{after:_e})=>{const C="</"+ce[0].slice(1);return ce.input.indexOf(C,_e)!==-1},l=mu,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ce,_e)=>{const C=ce[0].length+ce.index,M=ce.input[C];if(M==="<"||M===","){_e.ignoreMatch();return}M===">"&&(i(ce,{after:C})||_e.ignoreMatch());let X;const k=ce.input.substring(C);if(X=k.match(/^\s*=/)){_e.ignoreMatch();return}if((X=k.match(/^\s+extends\s+/))&&X.index===0){_e.ignoreMatch();return}}},d={$pattern:mu,keyword:f0,literal:d0,built_in:b0,"variable.language":g0},m="[0-9](_?[0-9])*",h=`\\.(${m})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${y})\\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},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},U={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]},z=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,w,T,{match:/\$\d+/},b];x.contains=z.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(z)});const P=[].concat(U,x.contains),Z=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(P)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:Z},V={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"}}]},H={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:{_:[...h0,...m0]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(ce){return a.concat("(?!",ce.join("|"),")")}const oe={match:a.concat(/\b/,Q([...p0,"super","import"].map(ce=>`${ce}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",le={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:Z,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,_,w,T,U,{match:/\$\d+/},b,H,{scope:"attr",match:l+a.lookahead(":"),relevance:0},le,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[U,e.REGEXP_MODE,{className:"function",begin:q,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:Z}]}]},{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"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},oe,B,V,W,{match:/\$[(.]/}]}}function zL(e){const a=e.regex,i=LL(e),l=mu,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['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:mu,keyword:f0.concat(m),literal:d0,built_in:b0.concat(o),"variable.language":g0},y={className:"meta",begin:"@"+l},b=(w,T,N)=>{const U=w.contains.findIndex(z=>z.label===T);if(U===-1)throw new Error("can not find mode to replace");w.contains.splice(U,1,N)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(y);const x=i.contains.find(w=>w.scope==="attr"),E=Object.assign({},x,{match:a.concat(l,a.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,x,E]),i.contains=i.contains.concat([y,c,u,E]),b(i,"shebang",e.SHEBANG()),b(i,"use_strict",d);const _=i.contains.find(w=>w.label==="func.def");return _.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function jL(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}/,m={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])|[%&])?/}]},y={className:"label",begin:/^\w+:/},b=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=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,m,h,y,b,x,{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:[x]}]}}function IL(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/},m={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,m,h,d]}}function UL(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"}),m=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,m,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,m,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{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 BL(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,{}[\]]+/}]}),x={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"},E={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},_={begin:/\{/,end:/\}/,contains:[E],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[E],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}},x,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},_,w,c,u],N=[...T];return N.pop(),N.push(d),E.contains=N,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}const FL={arduino:ED,bash:_D,c:SD,cpp:wD,csharp:ND,css:LD,diff:zD,go:jD,graphql:ID,ini:UD,java:BD,javascript:$D,json:GD,kotlin:QD,less:tL,lua:nL,makefile:aL,markdown:iL,objectivec:rL,perl:lL,php:sL,"php-template":oL,plaintext:cL,python:uL,"python-repl":fL,r:dL,ruby:hL,rust:mL,scss:SL,shell:wL,sql:NL,swift:DL,typescript:zL,vbnet:jL,wasm:IL,xml:UL,yaml:BL};var ih,Rx;function HL(){if(Rx)return ih;Rx=1;function e(L){return L instanceof Map?L.clear=L.delete=L.set=function(){throw new Error("map is read-only")}:L instanceof Set&&(L.add=L.clear=L.delete=function(){throw new Error("set is read-only")}),Object.freeze(L),Object.getOwnPropertyNames(L).forEach(te=>{const me=L[te],Me=typeof me;(Me==="object"||Me==="function")&&!Object.isFrozen(me)&&e(me)}),L}class a{constructor(te){te.data===void 0&&(te.data={}),this.data=te.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(L){return L.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(L,...te){const me=Object.create(null);for(const Me in L)me[Me]=L[Me];return te.forEach(function(Me){for(const vt in Me)me[vt]=Me[vt]}),me}const o="</span>",c=L=>!!L.scope,u=(L,{prefix:te})=>{if(L.startsWith("language:"))return L.replace("language:","language-");if(L.includes(".")){const me=L.split(".");return[`${te}${me.shift()}`,...me.map((Me,vt)=>`${Me}${"_".repeat(vt+1)}`)].join(" ")}return`${te}${L}`};class d{constructor(te,me){this.buffer="",this.classPrefix=me.classPrefix,te.walk(this)}addText(te){this.buffer+=i(te)}openNode(te){if(!c(te))return;const me=u(te.scope,{prefix:this.classPrefix});this.span(me)}closeNode(te){c(te)&&(this.buffer+=o)}value(){return this.buffer}span(te){this.buffer+=`<span class="${te}">`}}const m=(L={})=>{const te={children:[]};return Object.assign(te,L),te};class h{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(te){this.top.children.push(te)}openNode(te){const me=m({scope:te});this.add(me),this.stack.push(me)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(te){return this.constructor._walk(te,this.rootNode)}static _walk(te,me){return typeof me=="string"?te.addText(me):me.children&&(te.openNode(me),me.children.forEach(Me=>this._walk(te,Me)),te.closeNode(me)),te}static _collapse(te){typeof te!="string"&&te.children&&(te.children.every(me=>typeof me=="string")?te.children=[te.children.join("")]:te.children.forEach(me=>{h._collapse(me)}))}}class y extends h{constructor(te){super(),this.options=te}addText(te){te!==""&&this.add(te)}startScope(te){this.openNode(te)}endScope(){this.closeNode()}__addSublanguage(te,me){const Me=te.root;me&&(Me.scope=`language:${me}`),this.add(Me)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function b(L){return L?typeof L=="string"?L:L.source:null}function x(L){return w("(?=",L,")")}function E(L){return w("(?:",L,")*")}function _(L){return w("(?:",L,")?")}function w(...L){return L.map(me=>b(me)).join("")}function T(L){const te=L[L.length-1];return typeof te=="object"&&te.constructor===Object?(L.splice(L.length-1,1),te):{}}function N(...L){return"("+(T(L).capture?"":"?:")+L.map(Me=>b(Me)).join("|")+")"}function U(L){return new RegExp(L.toString()+"|").exec("").length-1}function z(L,te){const me=L&&L.exec(te);return me&&me.index===0}const P=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Z(L,{joinWith:te}){let me=0;return L.map(Me=>{me+=1;const vt=me;let pt=b(Me),ye="";for(;pt.length>0;){const ge=P.exec(pt);if(!ge){ye+=pt;break}ye+=pt.substring(0,ge.index),pt=pt.substring(ge.index+ge[0].length),ge[0][0]==="\\"&&ge[1]?ye+="\\"+String(Number(ge[1])+vt):(ye+=ge[0],ge[0]==="("&&me++)}return ye}).map(Me=>`(${Me})`).join(te)}const A=/\b\B/,V="[a-zA-Z]\\w*",H="[a-zA-Z_]\\w*",ae="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",B="\\b(0b[01]+)",Q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oe=(L={})=>{const te=/^#![ ]*\//;return L.binary&&(L.begin=w(te,/.*\b/,L.binary,/\b.*/)),l({scope:"meta",begin:te,end:/$/,relevance:0,"on:begin":(me,Me)=>{me.index!==0&&Me.ignoreMatch()}},L)},re={begin:"\\\\[\\s\\S]",relevance:0},W={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},le={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/},ce=function(L,te,me={}){const Me=l({scope:"comment",begin:L,end:te,contains:[]},me);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 vt=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(/[ ]+/,"(",vt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},_e=ce("//","$"),C=ce("/\\*","\\*/"),M=ce("#","$"),X={scope:"number",begin:ae,relevance:0},k={scope:"number",begin:j,relevance:0},he={scope:"number",begin:B,relevance:0},Ne={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},xe={scope:"title",begin:V,relevance:0},Fe={scope:"title",begin:H,relevance:0},rt={begin:"\\.\\s*"+H,relevance:0};var Kt=Object.freeze({__proto__:null,APOS_STRING_MODE:W,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:he,BINARY_NUMBER_RE:B,COMMENT:ce,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:_e,C_NUMBER_MODE:k,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(L){return Object.assign(L,{"on:begin":(te,me)=>{me.data._beginMatch=te[1]},"on:end":(te,me)=>{me.data._beginMatch!==te[1]&&me.ignoreMatch()}})},HASH_COMMENT_MODE:M,IDENT_RE:V,MATCH_NOTHING_RE:A,METHOD_GUARD:rt,NUMBER_MODE:X,NUMBER_RE:ae,PHRASAL_WORDS_MODE:le,QUOTE_STRING_MODE:q,REGEXP_MODE:Ne,RE_STARTERS_RE:Q,SHEBANG:oe,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:H,UNDERSCORE_TITLE_MODE:Fe});function Dn(L,te){L.input[L.index-1]==="."&&te.ignoreMatch()}function za(L,te){L.className!==void 0&&(L.scope=L.className,delete L.className)}function fi(L,te){te&&L.beginKeywords&&(L.begin="\\b("+L.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",L.__beforeBegin=Dn,L.keywords=L.keywords||L.beginKeywords,delete L.beginKeywords,L.relevance===void 0&&(L.relevance=0))}function Ln(L,te){Array.isArray(L.illegal)&&(L.illegal=N(...L.illegal))}function va(L,te){if(L.match){if(L.begin||L.end)throw new Error("begin & end are not supported with match");L.begin=L.match,delete L.match}}function Ve(L,te){L.relevance===void 0&&(L.relevance=1)}const fa=(L,te)=>{if(!L.beforeMatch)return;if(L.starts)throw new Error("beforeMatch cannot be used with starts");const me=Object.assign({},L);Object.keys(L).forEach(Me=>{delete L[Me]}),L.keywords=me.keywords,L.begin=w(me.beforeMatch,x(me.begin)),L.starts={relevance:0,contains:[Object.assign(me,{endsParent:!0})]},L.relevance=0,delete me.beforeMatch},Yn=["of","and","for","in","not","or","if","then","parent","list","value"],Ea="keyword";function ja(L,te,me=Ea){const Me=Object.create(null);return typeof L=="string"?vt(me,L.split(" ")):Array.isArray(L)?vt(me,L):Object.keys(L).forEach(function(pt){Object.assign(Me,ja(L[pt],te,pt))}),Me;function vt(pt,ye){te&&(ye=ye.map(ge=>ge.toLowerCase())),ye.forEach(function(ge){const Oe=ge.split("|");Me[Oe[0]]=[pt,tr(Oe[0],Oe[1])]})}}function tr(L,te){return te?Number(te):Wl(L)?0:1}function Wl(L){return Yn.includes(L.toLowerCase())}const Fr={},Tt=L=>{console.error(L)},Hr=(L,...te)=>{console.log(`WARN: ${L}`,...te)},J=(L,te)=>{Fr[`${L}/${te}`]||(console.log(`Deprecated as of ${L}. ${te}`),Fr[`${L}/${te}`]=!0)},fe=new Error;function Ce(L,te,{key:me}){let Me=0;const vt=L[me],pt={},ye={};for(let ge=1;ge<=te.length;ge++)ye[ge+Me]=vt[ge],pt[ge+Me]=!0,Me+=U(te[ge-1]);L[me]=ye,L[me]._emit=pt,L[me]._multi=!0}function He(L){if(Array.isArray(L.begin)){if(L.skip||L.excludeBegin||L.returnBegin)throw Tt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fe;if(typeof L.beginScope!="object"||L.beginScope===null)throw Tt("beginScope must be object"),fe;Ce(L,L.begin,{key:"beginScope"}),L.begin=Z(L.begin,{joinWith:""})}}function Je(L){if(Array.isArray(L.end)){if(L.skip||L.excludeEnd||L.returnEnd)throw Tt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fe;if(typeof L.endScope!="object"||L.endScope===null)throw Tt("endScope must be object"),fe;Ce(L,L.end,{key:"endScope"}),L.end=Z(L.end,{joinWith:""})}}function fn(L){L.scope&&typeof L.scope=="object"&&L.scope!==null&&(L.beginScope=L.scope,delete L.scope)}function da(L){fn(L),typeof L.beginScope=="string"&&(L.beginScope={_wrap:L.beginScope}),typeof L.endScope=="string"&&(L.endScope={_wrap:L.endScope}),He(L),Je(L)}function Zt(L){function te(ye,ge){return new RegExp(b(ye),"m"+(L.case_insensitive?"i":"")+(L.unicodeRegex?"u":"")+(ge?"g":""))}class me{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ge,Oe){Oe.position=this.position++,this.matchIndexes[this.matchAt]=Oe,this.regexes.push([Oe,ge]),this.matchAt+=U(ge)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ge=this.regexes.map(Oe=>Oe[1]);this.matcherRe=te(Z(ge,{joinWith:"|"}),!0),this.lastIndex=0}exec(ge){this.matcherRe.lastIndex=this.lastIndex;const Oe=this.matcherRe.exec(ge);if(!Oe)return null;const Dt=Oe.findIndex((Ia,Pr)=>Pr>0&&Ia!==void 0),St=this.matchIndexes[Dt];return Oe.splice(0,Dt),Object.assign(Oe,St)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ge){if(this.multiRegexes[ge])return this.multiRegexes[ge];const Oe=new me;return this.rules.slice(ge).forEach(([Dt,St])=>Oe.addRule(Dt,St)),Oe.compile(),this.multiRegexes[ge]=Oe,Oe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ge,Oe){this.rules.push([ge,Oe]),Oe.type==="begin"&&this.count++}exec(ge){const Oe=this.getMatcher(this.regexIndex);Oe.lastIndex=this.lastIndex;let Dt=Oe.exec(ge);if(this.resumingScanAtSamePosition()&&!(Dt&&Dt.index===this.lastIndex)){const St=this.getMatcher(0);St.lastIndex=this.lastIndex+1,Dt=St.exec(ge)}return Dt&&(this.regexIndex+=Dt.position+1,this.regexIndex===this.count&&this.considerAll()),Dt}}function vt(ye){const ge=new Me;return ye.contains.forEach(Oe=>ge.addRule(Oe.begin,{rule:Oe,type:"begin"})),ye.terminatorEnd&&ge.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&ge.addRule(ye.illegal,{type:"illegal"}),ge}function pt(ye,ge){const Oe=ye;if(ye.isCompiled)return Oe;[za,va,da,fa].forEach(St=>St(ye,ge)),L.compilerExtensions.forEach(St=>St(ye,ge)),ye.__beforeBegin=null,[fi,Ln,Ve].forEach(St=>St(ye,ge)),ye.isCompiled=!0;let Dt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Dt=ye.keywords.$pattern,delete ye.keywords.$pattern),Dt=Dt||/\w+/,ye.keywords&&(ye.keywords=ja(ye.keywords,L.case_insensitive)),Oe.keywordPatternRe=te(Dt,!0),ge&&(ye.begin||(ye.begin=/\B|\b/),Oe.beginRe=te(Oe.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(Oe.endRe=te(Oe.end)),Oe.terminatorEnd=b(Oe.end)||"",ye.endsWithParent&&ge.terminatorEnd&&(Oe.terminatorEnd+=(ye.end?"|":"")+ge.terminatorEnd)),ye.illegal&&(Oe.illegalRe=te(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(St){return an(St==="self"?ye:St)})),ye.contains.forEach(function(St){pt(St,Oe)}),ye.starts&&pt(ye.starts,ge),Oe.matcher=vt(Oe),Oe}if(L.compilerExtensions||(L.compilerExtensions=[]),L.contains&&L.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return L.classNameAliases=l(L.classNameAliases||{}),pt(L)}function At(L){return L?L.endsWithParent||At(L.starts):!1}function an(L){return L.variants&&!L.cachedVariants&&(L.cachedVariants=L.variants.map(function(te){return l(L,{variants:null},te)})),L.cachedVariants?L.cachedVariants:At(L)?l(L,{starts:L.starts?l(L.starts):null}):Object.isFrozen(L)?l(L):L}var lt="11.11.1";class _a extends Error{constructor(te,me){super(te),this.name="HTMLInjectionError",this.html=me}}const dn=i,wo=l,nr=Symbol("nomatch"),qr=7,ar=function(L){const te=Object.create(null),me=Object.create(null),Me=[];let vt=!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 ge={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function Oe(se){return ge.noHighlightRe.test(se)}function Dt(se){let Se=se.className+" ";Se+=se.parentNode?se.parentNode.className:"";const qe=ge.languageDetectRe.exec(Se);if(qe){const st=hn(qe[1]);return st||(Hr(pt.replace("{}",qe[1])),Hr("Falling back to no-highlight mode for this block.",se)),st?qe[1]:"no-highlight"}return Se.split(/\s+/).find(st=>Oe(st)||hn(st))}function St(se,Se,qe){let st="",zt="";typeof Se=="object"?(st=se,qe=Se.ignoreIllegals,zt=Se.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0",`Please use highlight(code, options) instead.
|
|
337
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),zt=se,st=Se),qe===void 0&&(qe=!0);const ln={code:st,language:zt};rr("before:highlight",ln);const zn=ln.result?ln.result:Ia(ln.language,ln.code,qe);return zn.code=ln.code,rr("after:highlight",zn),zn}function Ia(se,Se,qe,st){const zt=Object.create(null);function ln(de,ve){return de.keywords[ve]}function zn(){if(!Re.keywords){Bt.addText(ot);return}let de=0;Re.keywordPatternRe.lastIndex=0;let ve=Re.keywordPatternRe.exec(ot),ze="";for(;ve;){ze+=ot.substring(de,ve.index);const Ke=Wt.case_insensitive?ve[0].toLowerCase():ve[0],Ct=ln(Re,Ke);if(Ct){const[Vn,is]=Ct;if(Bt.addText(ze),ze="",zt[Ke]=(zt[Ke]||0)+1,zt[Ke]<=qr&&(pi+=is),Vn.startsWith("_"))ze+=ve[0];else{const Oo=Wt.classNameAliases[Vn]||Vn;jn(ve[0],Oo)}}else ze+=ve[0];de=Re.keywordPatternRe.lastIndex,ve=Re.keywordPatternRe.exec(ot)}ze+=ot.substring(de),Bt.addText(ze)}function vn(){if(ot==="")return;let de=null;if(typeof Re.subLanguage=="string"){if(!te[Re.subLanguage]){Bt.addText(ot);return}de=Ia(Re.subLanguage,ot,!0,Ro[Re.subLanguage]),Ro[Re.subLanguage]=de._top}else de=$r(ot,Re.subLanguage.length?Re.subLanguage:null);Re.relevance>0&&(pi+=de.relevance),Bt.__addSublanguage(de._emitter,de.language)}function yt(){Re.subLanguage!=null?vn():zn(),ot=""}function jn(de,ve){de!==""&&(Bt.startScope(ve),Bt.addText(de),Bt.endScope())}function Co(de,ve){let ze=1;const Ke=ve.length-1;for(;ze<=Ke;){if(!de._emit[ze]){ze++;continue}const Ct=Wt.classNameAliases[de[ze]]||de[ze],Vn=ve[ze];Ct?jn(Vn,Ct):(ot=Vn,zn(),ot=""),ze++}}function Kr(de,ve){return de.scope&&typeof de.scope=="string"&&Bt.openNode(Wt.classNameAliases[de.scope]||de.scope),de.beginScope&&(de.beginScope._wrap?(jn(ot,Wt.classNameAliases[de.beginScope._wrap]||de.beginScope._wrap),ot=""):de.beginScope._multi&&(Co(de.beginScope,ve),ot="")),Re=Object.create(de,{parent:{value:Re}}),Re}function ts(de,ve,ze){let Ke=z(de.endRe,ze);if(Ke){if(de["on:end"]){const Ct=new a(de);de["on:end"](ve,Ct),Ct.isMatchIgnored&&(Ke=!1)}if(Ke){for(;de.endsParent&&de.parent;)de=de.parent;return de}}if(de.endsWithParent)return ts(de.parent,ve,ze)}function Qr(de){return Re.matcher.regexIndex===0?(ot+=de[0],1):(gi=!0,0)}function ku(de){const ve=de[0],ze=de.rule,Ke=new a(ze),Ct=[ze.__beforeBegin,ze["on:begin"]];for(const Vn of Ct)if(Vn&&(Vn(de,Ke),Ke.isMatchIgnored))return Qr(ve);return ze.skip?ot+=ve:(ze.excludeBegin&&(ot+=ve),yt(),!ze.returnBegin&&!ze.excludeBegin&&(ot=ve)),Kr(ze,de),ze.returnBegin?0:ve.length}function En(de){const ve=de[0],ze=Se.substring(de.index),Ke=ts(Re,de,ze);if(!Ke)return nr;const Ct=Re;Re.endScope&&Re.endScope._wrap?(yt(),jn(ve,Re.endScope._wrap)):Re.endScope&&Re.endScope._multi?(yt(),Co(Re.endScope,de)):Ct.skip?ot+=ve:(Ct.returnEnd||Ct.excludeEnd||(ot+=ve),yt(),Ct.excludeEnd&&(ot=ve));do Re.scope&&Bt.closeNode(),!Re.skip&&!Re.subLanguage&&(pi+=Re.relevance),Re=Re.parent;while(Re!==Ke.parent);return Ke.starts&&Kr(Ke.starts,de),Ct.returnEnd?0:ve.length}function ns(){const de=[];for(let ve=Re;ve!==Wt;ve=ve.parent)ve.scope&&de.unshift(ve.scope);de.forEach(ve=>Bt.openNode(ve))}let lr={};function Yr(de,ve){const ze=ve&&ve[0];if(ot+=de,ze==null)return yt(),0;if(lr.type==="begin"&&ve.type==="end"&&lr.index===ve.index&&ze===""){if(ot+=Se.slice(ve.index,ve.index+1),!vt){const Ke=new Error(`0 width match regex (${se})`);throw Ke.languageName=se,Ke.badRule=lr.rule,Ke}return 1}if(lr=ve,ve.type==="begin")return ku(ve);if(ve.type==="illegal"&&!qe){const Ke=new Error('Illegal lexeme "'+ze+'" for mode "'+(Re.scope||"<unnamed>")+'"');throw Ke.mode=Re,Ke}else if(ve.type==="end"){const Ke=En(ve);if(Ke!==nr)return Ke}if(ve.type==="illegal"&&ze==="")return ot+=`
|
|
338
|
+
`,1;if(as>1e5&&as>ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=ze,ze.length}const Wt=hn(se);if(!Wt)throw Tt(pt.replace("{}",se)),new Error('Unknown language: "'+se+'"');const Ao=Zt(Wt);let Vr="",Re=st||Ao;const Ro={},Bt=new ge.__emitter(ge);ns();let ot="",pi=0,Fa=0,as=0,gi=!1;try{if(Wt.__emitTokens)Wt.__emitTokens(Se,Bt);else{for(Re.matcher.considerAll();;){as++,gi?gi=!1:Re.matcher.considerAll(),Re.matcher.lastIndex=Fa;const de=Re.matcher.exec(Se);if(!de)break;const ve=Se.substring(Fa,de.index),ze=Yr(ve,de);Fa=de.index+ze}Yr(Se.substring(Fa))}return Bt.finalize(),Vr=Bt.toHTML(),{language:se,value:Vr,relevance:pi,illegal:!1,_emitter:Bt,_top:Re}}catch(de){if(de.message&&de.message.includes("Illegal"))return{language:se,value:dn(Se),illegal:!0,relevance:0,_illegalBy:{message:de.message,index:Fa,context:Se.slice(Fa-100,Fa+100),mode:de.mode,resultSoFar:Vr},_emitter:Bt};if(vt)return{language:se,value:dn(Se),illegal:!1,relevance:0,errorRaised:de,_emitter:Bt,_top:Re};throw de}}function Pr(se){const Se={value:dn(se),illegal:!1,relevance:0,_top:ye,_emitter:new ge.__emitter(ge)};return Se._emitter.addText(se),Se}function $r(se,Se){Se=Se||ge.languages||Object.keys(te);const qe=Pr(se),st=Se.filter(hn).filter(hi).map(yt=>Ia(yt,se,!1));st.unshift(qe);const zt=st.sort((yt,jn)=>{if(yt.relevance!==jn.relevance)return jn.relevance-yt.relevance;if(yt.language&&jn.language){if(hn(yt.language).supersetOf===jn.language)return 1;if(hn(jn.language).supersetOf===yt.language)return-1}return 0}),[ln,zn]=zt,vn=ln;return vn.secondBest=zn,vn}function Sa(se,Se,qe){const st=Se&&me[Se]||qe;se.classList.add("hljs"),se.classList.add(`language-${st}`)}function Lt(se){let Se=null;const qe=Dt(se);if(Oe(qe))return;if(rr("before:highlightElement",{el:se,language:qe}),se.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",se);return}if(se.children.length>0&&(ge.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)),ge.throwUnescapedHTML))throw new _a("One of your code blocks includes unescaped HTML.",se.innerHTML);Se=se;const st=Se.textContent,zt=qe?St(st,{language:qe,ignoreIllegals:!0}):$r(st);se.innerHTML=zt.value,se.dataset.highlighted="yes",Sa(se,qe,zt.language),se.result={language:zt.language,re:zt.relevance,relevance:zt.relevance},zt.secondBest&&(se.secondBest={language:zt.secondBest.language,relevance:zt.secondBest.relevance}),rr("after:highlightElement",{el:se,result:zt,text:st})}function rn(se){ge=wo(ge,se)}const di=()=>{Gr(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Jl(){Gr(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let No=!1;function Gr(){function se(){Gr()}if(document.readyState==="loading"){No||window.addEventListener("DOMContentLoaded",se,!1),No=!0;return}document.querySelectorAll(ge.cssSelector).forEach(Lt)}function ko(se,Se){let qe=null;try{qe=Se(L)}catch(st){if(Tt("Language definition for '{}' could not be registered.".replace("{}",se)),vt)Tt(st);else throw st;qe=ye}qe.name||(qe.name=se),te[se]=qe,qe.rawDefinition=Se.bind(null,L),qe.aliases&&Ua(qe.aliases,{languageName:se})}function ir(se){delete te[se];for(const Se of Object.keys(me))me[Se]===se&&delete me[Se]}function es(){return Object.keys(te)}function hn(se){return se=(se||"").toLowerCase(),te[se]||te[me[se]]}function Ua(se,{languageName:Se}){typeof se=="string"&&(se=[se]),se.forEach(qe=>{me[qe.toLowerCase()]=Se})}function hi(se){const Se=hn(se);return Se&&!Se.disableAutodetect}function mi(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){mi(se),Me.push(se)}function To(se){const Se=Me.indexOf(se);Se!==-1&&Me.splice(Se,1)}function rr(se,Se){const qe=se;Me.forEach(function(st){st[qe]&&st[qe](Se)})}function Ba(se){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),Lt(se)}Object.assign(L,{highlight:St,highlightAuto:$r,highlightAll:Gr,highlightElement:Lt,highlightBlock:Ba,configure:rn,initHighlighting:di,initHighlightingOnLoad:Jl,registerLanguage:ko,unregisterLanguage:ir,listLanguages:es,getLanguage:hn,registerAliases:Ua,autoDetection:hi,inherit:wo,addPlugin:Ut,removePlugin:To}),L.debugMode=function(){vt=!1},L.safeMode=function(){vt=!0},L.versionString=lt,L.regex={concat:w,lookahead:x,either:N,optional:_,anyNumberOfTimes:E};for(const se in Kt)typeof Kt[se]=="object"&&e(Kt[se]);return Object.assign(L,Kt),L},xn=ar({});return xn.newInstance=()=>ar({}),ih=xn,xn.HighlightJS=xn,xn.default=xn,ih}var qL=HL();const PL=zh(qL),Ox={},$L="hljs-";function GL(e){const a=PL.newInstance();return e&&c(e),{highlight:i,highlightAuto:l,listLanguages:o,register:c,registerAlias:u,registered:d};function i(m,h,y){const b=y||Ox,x=typeof b.prefix=="string"?b.prefix:$L;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:KL,classPrefix:x});const E=a.highlight(h,{ignoreIllegals:!0,language:m});if(E.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:E.errorRaised});const _=E._emitter.root,w=_.data;return w.language=E.language,w.relevance=E.relevance,_}function l(m,h){const b=(h||Ox).subset||o();let x=-1,E=0,_;for(;++x<b.length;){const w=b[x];if(!a.getLanguage(w))continue;const T=i(w,m,h);T.data&&T.data.relevance!==void 0&&T.data.relevance>E&&(E=T.data.relevance,_=T)}return _||{type:"root",children:[],data:{language:void 0,relevance:E}}}function o(){return a.listLanguages()}function c(m,h){if(typeof m=="string")a.registerLanguage(m,h);else{let y;for(y in m)Object.hasOwn(m,y)&&a.registerLanguage(y,m[y])}}function u(m,h){if(typeof m=="string")a.registerAliases(typeof h=="string"?h:[...h],{languageName:m});else{let y;for(y in m)if(Object.hasOwn(m,y)){const b=m[y];a.registerAliases(typeof b=="string"?b:[...b],{languageName:y})}}}function d(m){return!!a.getLanguage(m)}}class KL{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 QL={};function Em(e){const a=e||QL,i=a.aliases,l=a.detect||!1,o=a.languages||FL,c=a.plainText,u=a.prefix,d=a.subset;let m="hljs";const h=GL(o);if(i&&h.registerAlias(i),u){const y=u.indexOf("-");m=y===-1?u:u.slice(0,y)}return function(y,b){Nu(y,"element",function(x,E,_){if(x.tagName!=="code"||!_||_.type!=="element"||_.tagName!=="pre")return;const w=YL(x);if(w===!1||!w&&!l||w&&c&&c.includes(w))return;Array.isArray(x.properties.className)||(x.properties.className=[]),x.properties.className.includes(m)||x.properties.className.unshift(m);const T=hD(x,{whitespace:"pre"});let N;try{N=w?h.highlight(w,T,{prefix:u}):h.highlightAuto(T,{prefix:u,subset:d})}catch(U){const z=U;if(w&&/Unknown language/.test(z.message)){b.message("Cannot highlight as `"+w+"`, it’s not registered",{ancestors:[_,x],cause:z,place:x.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw z}!w&&N.data&&N.data.language&&x.properties.className.push("language-"+N.data.language),N.children.length>0&&(x.children=N.children)})}}function YL(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 VL({name:e,projects:a,onClose:i,onChange:l}){const{confirm:o}=ua(),{data:c,isLoading:u,isError:d,error:m,refetch:h}=Nt({queryKey:["skill",e],queryFn:()=>MT(e)});O.useEffect(()=>{const w=T=>{T.key==="Escape"&&i()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[i]);const y=async w=>{await LT(e,w),h(),l()},b=async w=>{await o({title:`从 ${w} 移除 ${e}`,body:"skill 链接会被解除,项目后续运行时将无法使用该 skill。",confirm:"移除",danger:!0})&&(await zT(e,w),h(),l())},x=async w=>{await jT(e,w),h(),l()},E=async w=>{await o({title:`解冻 ${e} @ ${w}`,body:"本地对这个 skill 的改动会被覆盖,回到最新共享版本。",confirm:"解冻",danger:!0})&&(await IT(e,w),h(),l())},_=new Map(((c==null?void 0:c.linkedProjects)??[]).map(w=>[w.project,w.state]));return g.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:g.jsxs("div",{onClick:w=>w.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[g.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:e}),c&&g.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[c.category," · ",c.origin||"local"]})]}),g.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:g.jsx(xu,{size:16,strokeWidth:3})})]}),u&&g.jsx("p",{children:"加载中…"}),d&&g.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&g.jsxs("div",{className:"flex flex-col gap-4",children:[g.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),g.jsxs("div",{className:"flex flex-col gap-2",children:[a.map(w=>{const T=_.get(w);return g.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:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:w}),T==="linked"&&g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),T==="frozen"&&g.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!T&&g.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),g.jsxs("div",{className:"flex gap-2",children:[!T&&g.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>y(w),type:"button",children:[g.jsx(UN,{size:11})," link"]}),T==="linked"&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>x(w),type:"button",children:[g.jsx(ik,{size:11})," freeze"]}),g.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>b(w),type:"button",children:"unlink"})]}),T==="frozen"&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>E(w),type:"button",children:[g.jsx(vN,{size:11})," unfreeze"]}),g.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>b(w),type:"button",children:"unlink"})]})]})]},w)}),a.length===0&&g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),g.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?g.jsx(mm,{remarkPlugins:[ym],rehypePlugins:[Em],children:c.body}):g.jsx("p",{className:"text-[var(--color-text-muted)] italic",children:"(empty)"})})]}),c.references.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),g.jsx("ul",{className:"flex flex-col gap-2",children:c.references.map(w=>g.jsx(XL,{skillName:e,file:w.name,lines:w.lines},w.name))})]})]})]})})}function XL({skillName:e,file:a,lines:i}){const[l,o]=O.useState(!1),{data:c,isLoading:u,isError:d,error:m}=Nt({queryKey:["skill-ref",e,a],queryFn:()=>DT(e,a),enabled:l,staleTime:1/0});return g.jsxs("li",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[g.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:[g.jsx(Tv,{size:12,strokeWidth:3,className:["transition-transform",l?"rotate-90":""].join(" ")}),g.jsx(Rv,{size:12,strokeWidth:2.5}),g.jsx("span",{className:"flex-1 text-left font-bold",children:a}),g.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[i," lines"]})]}),l&&g.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&&g.jsx("p",{className:"text-xs text-[var(--color-text-muted)]",children:"加载中…"}),d&&g.jsxs("p",{className:"text-xs text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&g.jsx("div",{className:"prose-chat text-sm",children:g.jsx(mm,{remarkPlugins:[ym],rehypePlugins:[Em],children:c.content})})]})]})}const ZL=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],WL={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function JL(){var x;const[e,a]=O.useState("all"),[i,l]=O.useState(""),[o,c]=O.useState(null),u=oa(),{data:d,isLoading:m}=Nt({queryKey:["skills"],queryFn:()=>OT()}),h=Nt({queryKey:["projects"],queryFn:xo}),y=O.useMemo(()=>((d==null?void 0:d.data)??[]).filter(_=>!(e!=="all"&&_.category!==e||i&&!_.name.toLowerCase().includes(i.toLowerCase()))),[d,e,i]),b=O.useMemo(()=>{const E=(d==null?void 0:d.data)??[],_={all:E.length};for(const w of E)_[w.category]=(_[w.category]??0)+1;return _},[d]);return g.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[g.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:m?"加载中…":`${(d==null?void 0:d.data.length)??0} 个 user-level skill`})]}),g.jsx("div",{className:"flex gap-3 items-center",children:g.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await UT(),u.invalidateQueries({queryKey:["skills"]})},type:"button",children:[g.jsx(Yl,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),g.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[g.jsxs("div",{className:"relative flex-1 max-w-md",children:[g.jsx(su,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),g.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:i,onChange:E=>l(E.target.value),"aria-label":"搜索 skill"})]}),g.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:ZL.map(E=>g.jsxs("button",{type:"button",onClick:()=>a(E.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",e===E.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[E.label," ",b[E.value]]},E.value))})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:y.map(E=>{var _;return g.jsx(e3,{skill:E,projectCount:((_=h.data)==null?void 0:_.data.length)??0,onOpen:()=>c(E.name)},E.name)})}),o&&g.jsx(VL,{name:o,projects:((x=h.data)==null?void 0:x.data.map(E=>E.name))??[],onClose:()=>c(null),onChange:()=>u.invalidateQueries({queryKey:["skills"]})})]})}function e3({skill:e,projectCount:a,onOpen:i}){const l=WL[e.category];return g.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:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:e.name}),g.jsx("span",{className:"nb-badge text-[10px]",style:{background:l},children:e.category})]}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:e.description||"(no description)"}),g.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:[g.jsx("span",{className:"font-bold",children:e.linkedProjects.length>0?`● linked in ${e.linkedProjects.length}`:"○ not linked"}),g.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[a," projects"]})]})]})}function t3(){var c;const e=Nt({queryKey:["system-info"],queryFn:Uv}),a=Nt({queryKey:["system-env"],queryFn:yk}),i=Nt({queryKey:["doctor"],queryFn:xk}),[l,o]=O.useState(!1);return g.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[g.jsx("header",{children:g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),g.jsx(n3,{current:(c=e.data)==null?void 0:c.version}),g.jsxs("section",{className:"nb-card",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"运行时"}),e.data?g.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[g.jsx("dt",{className:"font-bold",children:"Node"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.nodeVersion}),g.jsx("dt",{className:"font-bold",children:"Platform"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.platform}),g.jsx("dt",{className:"font-bold",children:"PID"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.pid??"—"}),g.jsx("dt",{className:"font-bold",children:"Uptime"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:i3(e.data.uptimeMs)})]}):g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),g.jsxs("section",{className:"nb-card",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",g.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"})]}),l?g.jsx("span",{className:"text-xs text-[var(--color-stuck)] font-bold",children:"⚠ 编辑模式"}):g.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>o(!0),type:"button","aria-label":"编辑 env 文件",children:[g.jsx(KN,{size:12,strokeWidth:2.5})," 编辑"]})]}),l?g.jsx(a3,{onClose:()=>{o(!1),a.refetch()}}):a.data&&a.data.exists?g.jsx("dl",{className:"grid grid-cols-[220px_1fr] gap-y-1 text-sm font-[family-name:var(--font-mono)]",children:a.data.entries.map(u=>g.jsxs("div",{className:"contents",children:[g.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[u.masked&&g.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),u.key]}),g.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:u.value})]},u.key))}):g.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:['env 文件不存在。点"编辑"或者终端运行 ',g.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"}),"。"]})]}),g.jsxs("section",{className:"nb-card",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),g.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>i.refetch(),type:"button",children:[g.jsx(Yl,{size:12,strokeWidth:2.5}),"重跑"]})]}),i.data&&i.data.data.length>0?g.jsx("ul",{className:"flex flex-col gap-2",children:i.data.data.map(u=>g.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:[u.ok?g.jsx(dN,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):g.jsx(Cv,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),g.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:u.project}),u.issues.length>0?g.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:u.issues.join("; ")}):g.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},u.project))}):g.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function n3({current:e}){const{confirm:a,alert:i}=ua(),[l,o]=O.useState(!1),[c,u]=O.useState(null),d=Nt({queryKey:["latest-version"],queryFn:_k,enabled:!1}),m=async()=>{var y;if(await a({title:"升级 sps-cli",body:`当前 ${e},升级到 ${(y=d.data)==null?void 0:y.latest}。要求所有 pipeline 已停止。升级后请重启 sps console 生效。`,confirm:"升级"})){o(!0),u(null);try{const b=await Sk();u(b.output),b.ok?i({title:"升级完成",body:'请手动 `pkill -f "sps console"` 再重新启动以生效。'}):i({title:"升级失败",body:b.output.slice(-500)})}catch(b){u(b.message),i({title:"升级失败",body:b.message})}finally{o(!1)}}};return g.jsxs("section",{className:"nb-card",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"版本"}),g.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>d.refetch(),disabled:d.isFetching||!e,type:"button","aria-label":"检查最新版本",children:[d.isFetching?g.jsx(Da,{size:12,strokeWidth:3,className:"animate-spin"}):g.jsx(Yl,{size:12,strokeWidth:2.5}),"检查更新"]})]}),g.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[g.jsx("dt",{className:"font-bold",children:"sps-cli (当前)"}),g.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e??"—"}),d.data&&g.jsxs(g.Fragment,{children:[g.jsx("dt",{className:"font-bold",children:"npm (最新)"}),g.jsxs("dd",{className:"font-[family-name:var(--font-mono)] flex items-center gap-2",children:[d.data.latest,d.data.upToDate?g.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"最新"}):g.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"3px 10px",fontSize:11},onClick:m,disabled:l,type:"button","aria-label":"升级到最新版本",children:[l?g.jsx(Da,{size:11,strokeWidth:3,className:"animate-spin"}):g.jsx(Av,{size:11,strokeWidth:2.5}),"升级"]})]})]}),d.isError&&g.jsxs(g.Fragment,{children:[g.jsx("dt",{className:"font-bold",children:"检查"}),g.jsx("dd",{className:"text-[var(--color-crashed)] text-xs",children:d.error instanceof Error?d.error.message:String(d.error)})]})]}),c&&g.jsx("pre",{className:"mt-3 text-xs font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-3 max-h-40 overflow-auto whitespace-pre-wrap",children:c})]})}function a3({onClose:e}){const a=oa(),{alert:i}=ua(),l=Nt({queryKey:["system-env-raw"],queryFn:vk}),[o,c]=O.useState(null),[u,d]=O.useState(null);l.data&&o===null&&(c(l.data.content),d(l.data.etag));const m=o!==null&&l.data&&o!==l.data.content,h=po({mutationFn:()=>{if(o===null)throw new Error("no draft");return Ek(o,u??"")},onSuccess:()=>{a.invalidateQueries({queryKey:["system-env"]}),a.invalidateQueries({queryKey:["system-env-raw"]}),e()},onError:y=>{const b=y.status;i({title:b===409?"env 被其他地方修改了":"保存失败",body:b===409?"请点取消后重开编辑。":y instanceof Error?y.message:String(y)})}});return l.isLoading?g.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}):g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-[var(--color-stuck)] font-bold mb-2",children:"⚠ 文件包含凭证明文。保存时保持 0600 权限。"}),g.jsx("textarea",{className:"nb-input w-full font-[family-name:var(--font-mono)] text-xs",style:{minHeight:320,resize:"vertical"},value:o??"",onChange:y=>c(y.target.value),spellCheck:!1,"aria-label":"env 文件编辑器"}),g.jsxs("div",{className:"flex items-center justify-between mt-3",children:[g.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:[u?`etag: ${u}`:"",m?" · ● 未保存":""]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px"},onClick:e,disabled:h.isPending,type:"button",children:[g.jsx(xu,{size:12,strokeWidth:3})," 取消"]}),g.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"6px 12px"},onClick:()=>h.mutate(),disabled:!m||h.isPending,type:"button","aria-label":"保存 env",children:[h.isPending?g.jsx(Da,{size:12,strokeWidth:3,className:"animate-spin"}):g.jsx(Mv,{size:12,strokeWidth:3}),"保存"]})]})]})]})}function i3(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 r3(){return Gt("/api/chat/sessions")}function l3(e){return Gt(`/api/chat/sessions/${e}`)}async function Mx(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 s3(e){const a=await fetch(`/api/chat/sessions/${e}`,{method:"DELETE"});if(!a.ok)throw new Error(`${a.status}`)}async function o3(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()}async function c3(e){const a=await fetch(`/api/chat/sessions/${e}/interrupt`,{method:"POST"});if(!a.ok&&a.status!==204)throw new Error(`${a.status}: ${await a.text()}`)}function u3(e,a){const i=a?`?since=${encodeURIComponent(a)}`:"";return Gt(`/api/chat/sessions/${e}/messages${i}`)}function Dx(){var U,z,P,Z,A,V;const{sessionId:e}=pv(),a=Wi(),i=oa(),{confirm:l,alert:o}=ua(),c=Nt({queryKey:["chat-sessions"],queryFn:r3}),u=Nt({queryKey:["chat-session",e],queryFn:()=>l3(e??""),enabled:!!e}),[d,m]=O.useState(null),[h,y]=O.useState(""),[b,x]=O.useState(!1),E=O.useRef(null);O.useEffect(()=>{if(!e)return;const H=new EventSource(`/stream/chat/${encodeURIComponent(e)}`);let ae=!0;return H.addEventListener("open",()=>{if(ae){ae=!1;return}const j=i.getQueryData(["chat-session",e]),B=j!=null&&j.messages.length?j.messages[j.messages.length-1].ts:void 0;u3(e,B).then(Q=>{Q.data.length!==0&&i.setQueryData(["chat-session",e],oe=>{if(!oe)return oe;const re=new Set(oe.messages.map(q=>q.id)),W=Q.data.filter(q=>!re.has(q.id));return W.length===0?oe:{...oe,messages:[...oe.messages,...W],lastMessageAt:W[W.length-1].ts,messageCount:oe.messageCount+W.length}})}).catch(()=>{})}),H.addEventListener("chat.message",j=>{try{const B=JSON.parse(j.data);i.setQueryData(["chat-session",e],Q=>{if(!Q||Q.messages.some(W=>W.id===B.message.id))return Q;const re=Q.messages.findIndex(W=>W.role==="user"&&W.id.startsWith("optim-")&&W.content===B.message.content);if(re>=0){const W=[...Q.messages];return W[re]=B.message,{...Q,messages:W}}return{...Q,messages:[...Q.messages,B.message]}})}catch{}}),H.addEventListener("chat.message.pending",j=>{try{const B=JSON.parse(j.data);m({id:B.assistantId,blocks:[],done:!1,finalMessage:null})}catch{}}),H.addEventListener("chat.message.chunk.text",j=>{try{const B=JSON.parse(j.data);m(Q=>{if(!Q||Q.id!==B.assistantId)return Q;const oe=[...Q.blocks],re=oe[oe.length-1];return re&&re.type==="text"?oe[oe.length-1]={...re,target:re.target+B.text}:oe.push({type:"text",target:B.text,displayed:""}),{...Q,blocks:oe}})}catch{}}),H.addEventListener("chat.message.chunk.tool_use",j=>{try{const B=JSON.parse(j.data);m(Q=>!Q||Q.id!==B.assistantId?Q:{...Q,blocks:[...Q.blocks,{type:"tool_use",id:B.id,title:B.title,kind:B.kind,status:B.status}]})}catch{}}),H.addEventListener("chat.message.chunk.tool_update",j=>{try{const B=JSON.parse(j.data);m(Q=>!Q||Q.id!==B.assistantId?Q:{...Q,blocks:Q.blocks.map(oe=>oe.type==="tool_use"&&oe.id===B.id?{...oe,status:B.status}:oe)})}catch{}}),H.addEventListener("chat.message.complete",j=>{try{const B=JSON.parse(j.data);m(Q=>Q&&Q.id===B.assistantId?{...Q,done:!0,finalMessage:B.message}:Q)}catch{}}),()=>H.close()},[e,i]),O.useEffect(()=>{if(!d)return;const H=d.blocks.reduce((j,B)=>B.type==="text"?j+(B.target.length-B.displayed.length):j,0);if(H<=0){if(d.done&&d.finalMessage){const j=d.finalMessage;i.setQueryData(["chat-session",e],B=>!B||B.messages.some(Q=>Q.id===j.id)?B:{...B,messages:[...B.messages,j],lastMessageAt:j.ts,messageCount:B.messageCount+1}),i.invalidateQueries({queryKey:["chat-sessions"]}),m(null),x(!1)}return}const ae=setTimeout(()=>{m(j=>{if(!j)return j;let B=Math.max(1,Math.ceil(H/40));const Q=j.blocks.map(oe=>{if(oe.type!=="text"||B<=0)return oe;const re=oe.target.length-oe.displayed.length;if(re<=0)return oe;const W=Math.min(re,B);return B-=W,{...oe,displayed:oe.target.slice(0,oe.displayed.length+W)}});return{...j,blocks:Q}})},25);return()=>clearTimeout(ae)},[d,i,e]),O.useEffect(()=>{const H=E.current;H&&(H.scrollTop=H.scrollHeight)},[u.data,d]);const _=O.useCallback(async()=>{const H=await Mx();i.invalidateQueries({queryKey:["chat-sessions"]}),a(`/chat/${H.id}`)},[i,a]),w=O.useCallback(async()=>{const H=h.trim();if(!H||b)return;let ae=e;if(!ae){const B=await Mx();i.invalidateQueries({queryKey:["chat-sessions"]}),ae=B.id,a(`/chat/${ae}`,{replace:!0})}const j={id:`optim-${Date.now()}`,role:"user",content:H,ts:new Date().toISOString(),status:"complete"};i.setQueryData(["chat-session",ae],B=>B?{...B,messages:[...B.messages,j],lastMessageAt:j.ts,messageCount:B.messageCount+1}:{id:ae,createdAt:j.ts,lastMessageAt:j.ts,title:H.slice(0,60),project:null,messageCount:1,messages:[j]}),y(""),x(!0);try{await o3(ae,H)}catch(B){x(!1),console.error("sendMessage failed",B),o({title:"发送失败",body:B instanceof Error?B.message:String(B)})}},[h,b,e,i,a,o]),T=O.useCallback(async H=>{await l({title:"删除对话",body:"对话记录会永久删除,不可恢复。",confirm:"删除",danger:!0})&&(await s3(H),i.invalidateQueries({queryKey:["chat-sessions"]}),e===H&&a("/chat"))},[i,e,a,l]),N=O.useCallback(async()=>{if(e)try{await c3(e)}catch(H){o({title:"中断失败",body:H instanceof Error?H.message:String(H)})}},[e,o]);return g.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[g.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[g.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:_,type:"button",children:[g.jsx(yo,{size:14,strokeWidth:3}),"新建对话"]}),g.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((U=c.data)==null?void 0:U.data.length)??0]}),g.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((z=c.data)==null?void 0:z.data)??[]).map(H=>g.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",e===H.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/${H.id}`),onKeyDown:ae=>{ae.key==="Enter"&&a(`/chat/${H.id}`)},tabIndex:0,role:"button",children:[g.jsx(Ay,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:"text-sm font-semibold truncate",children:H.title}),g.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[H.messageCount," msg · ",v0(H.lastMessageAt??H.createdAt)]})]}),g.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:ae=>{ae.stopPropagation(),T(H.id)},children:g.jsx(Wh,{size:12})})]},H.id)),(((P=c.data)==null?void 0:P.data)??[]).length===0&&g.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),g.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:e?g.jsxs(g.Fragment,{children:[g.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[g.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((Z=u.data)==null?void 0:Z.title)??"新对话"}),g.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:e})]}),g.jsxs("div",{ref:E,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[(((A=u.data)==null?void 0:A.messages)??[]).map(H=>g.jsx(f3,{msg:H},H.id)),d&&g.jsx(d3,{pending:d}),!u.isLoading&&(((V=u.data)==null?void 0:V.messages)??[]).length===0&&!d&&!b&&g.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话 · Enter 发送 · Shift+Enter 换行"})]}),g.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:g.jsxs("div",{className:"flex gap-2 items-end",children:[g.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (Enter 发送,Shift+Enter 换行)",rows:2,value:h,onChange:H=>y(H.target.value),onKeyDown:H=>{H.key==="Enter"&&!H.shiftKey&&!H.nativeEvent.isComposing&&(H.preventDefault(),w())},"aria-label":"消息输入"}),d?g.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:N,type:"button","aria-label":"中断生成",children:[g.jsx(Lv,{size:14,strokeWidth:3}),"中断"]}):g.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:w,disabled:!h.trim()||b,type:"button","aria-label":"发送",children:[b?g.jsx(Da,{size:14,strokeWidth:3,className:"animate-spin"}):g.jsx(tk,{size:14,strokeWidth:3}),"发送"]})]})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:g.jsxs("div",{className:"text-center max-w-md",children:[g.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:g.jsx(Ay,{size:32,strokeWidth:2.5})}),g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),g.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:'点左上角"新建对话"开始一个 session。或直接在下方输入,会自动建 session。'}),g.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"Enter 发送 · Shift+Enter 换行 · 内容流式返回"})]})})})]})}function f3({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 g.jsx("div",{className:a?"self-end max-w-3xl":"self-start max-w-3xl",children:g.jsxs("div",{className:["nb-card",a?"bg-[var(--color-secondary)]":i?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[g.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",g.jsx("span",{className:"font-normal",children:"·"}),g.jsx("span",{className:"font-normal",children:v0(e.ts)})]}),g.jsx("div",{className:"flex flex-col gap-2",children:l.map((o,c)=>g.jsx(h3,{block:o},c))}),e.truncated&&g.jsx("p",{className:"mt-3 px-3 py-2 bg-[var(--color-stuck-bg)] border-2 border-[var(--color-stuck)] rounded-lg text-xs text-[var(--color-stuck)] font-bold",children:"⚠ 输出超过 10MB,已截断"})]})})}function d3({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 g.jsx("div",{className:"self-start max-w-3xl",children:g.jsxs("div",{className:"nb-card bg-[var(--color-bg)]",children:[g.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-2 flex items-center gap-2",children:["assistant",g.jsx("span",{className:"font-normal",children:"·"}),g.jsxs("span",{className:"flex items-center gap-1 font-normal text-[var(--color-running)]",children:[g.jsx(Da,{size:10,strokeWidth:3,className:"animate-spin"}),"streaming"]})]}),g.jsxs("div",{className:"flex flex-col gap-2",children:[e.blocks.length===0&&g.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 g.jsxs("div",{className:"relative",children:[g.jsx(y0,{text:i.displayed}),o&&g.jsx("span",{className:"inline-block w-2 h-4 ml-1 bg-[var(--color-text)] animate-pulse align-middle"})]},l)}return g.jsx(x0,{tool:i},l)})]})]})})}function h3({block:e}){return e.type==="text"?g.jsx(y0,{text:e.text}):g.jsx(x0,{tool:e})}function y0({text:e}){return e?g.jsx("div",{className:"text-sm font-[family-name:var(--font-body)] break-words prose-chat",children:g.jsx(mm,{remarkPlugins:[ym],rehypePlugins:[Em],children:e})}):null}function x0({tool:e}){const[a,i]=O.useState(!1),l=e.status==="completed",o=e.status==="failed",c=!l&&!o;return g.jsxs("div",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[g.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:[g.jsx(Tv,{size:12,strokeWidth:3,className:["transition-transform",a?"rotate-90":""].join(" ")}),g.jsx(dk,{size:12,strokeWidth:2.5}),g.jsx("span",{className:"font-bold",children:e.kind}),g.jsx("span",{className:"flex-1 text-left text-[var(--color-text-muted)] truncate",children:e.title}),c&&g.jsx(Da,{size:12,strokeWidth:3,className:"animate-spin text-[var(--color-running)]"}),l&&g.jsx(mN,{size:12,strokeWidth:2.5,className:"text-[var(--color-running)]"}),o&&g.jsx(gN,{size:12,strokeWidth:2.5,className:"text-[var(--color-crashed)]"})]}),a&&g.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:[g.jsxs("div",{children:["id: ",g.jsx("span",{className:"text-[var(--color-text)]",children:e.id})]}),g.jsxs("div",{children:["status: ",g.jsx("span",{className:"text-[var(--color-text)]",children:e.status})]})]})]})}function v0(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 m3(){return g.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[g.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),g.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),g.jsx(Ji,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function p3(){return g.jsx(zk,{children:g.jsx(xw,{children:g.jsxs(Cn,{element:g.jsx(Lk,{}),children:[g.jsx(Cn,{index:!0,element:g.jsx(gw,{to:"/projects",replace:!0})}),g.jsx(Cn,{path:"/projects",element:g.jsx(jk,{})}),g.jsx(Cn,{path:"/projects/new",element:g.jsx(Gk,{})}),g.jsx(Cn,{path:"/projects/:name",element:g.jsx(Kk,{})}),g.jsx(Cn,{path:"/board",element:g.jsx(gT,{})}),g.jsx(Cn,{path:"/workers",element:g.jsx(vT,{})}),g.jsx(Cn,{path:"/logs",element:g.jsx(CT,{})}),g.jsx(Cn,{path:"/skills",element:g.jsx(JL,{})}),g.jsx(Cn,{path:"/system",element:g.jsx(t3,{})}),g.jsx(Cn,{path:"/chat",element:g.jsx(Dx,{})}),g.jsx(Cn,{path:"/chat/:sessionId",element:g.jsx(Dx,{})}),g.jsx(Cn,{path:"*",element:g.jsx(m3,{})})]})})})}const g3=new lS({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),E0=document.getElementById("root");if(!E0)throw new Error("#root not found");z1.createRoot(E0).render(g.jsx(O.StrictMode,{children:g.jsx(sS,{client:g3,children:g.jsx($w,{children:g.jsx(qk,{children:g.jsx(p3,{})})})})}));
|