@venturewild/workspace 0.1.0 → 0.1.2
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/LICENSE +21 -21
- package/README.md +112 -73
- package/package.json +75 -69
- package/server/bin/wild-workspace.mjs +725 -95
- package/server/src/account.mjs +114 -0
- package/server/src/agent-identity.mjs +65 -0
- package/server/src/agent-readiness.mjs +200 -0
- package/server/src/agent.mjs +356 -335
- package/server/src/config.mjs +302 -236
- package/server/src/daemon-bin.mjs +6 -2
- package/server/src/daemon-supervisor.mjs +216 -0
- package/server/src/daemon.mjs +6 -0
- package/server/src/doctor.mjs +246 -0
- package/server/src/error-reporter.mjs +86 -0
- package/server/src/inbox.mjs +86 -81
- package/server/src/index.mjs +1330 -635
- package/server/src/logpaths.mjs +97 -0
- package/server/src/observability.mjs +45 -0
- package/server/src/operator.mjs +65 -0
- package/server/src/service.mjs +127 -0
- package/server/src/session-reporter.mjs +201 -0
- package/server/src/supervisor.mjs +217 -0
- package/server/src/sync.mjs +248 -176
- package/server/src/transcript.mjs +121 -0
- package/web/dist/assets/index-Bj-mdLGj.css +1 -0
- package/web/dist/assets/index-DLRgyr9j.js +89 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-DOwej8U4.js +0 -89
- package/web/dist/assets/index-DZkyDo10.css +0 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var gl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},Gl={},qf={exports:{}},ee={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 bi=Symbol.for("react.element"),xm=Symbol.for("react.portal"),vm=Symbol.for("react.fragment"),km=Symbol.for("react.strict_mode"),wm=Symbol.for("react.profiler"),bm=Symbol.for("react.provider"),Sm=Symbol.for("react.context"),Em=Symbol.for("react.forward_ref"),Cm=Symbol.for("react.suspense"),Nm=Symbol.for("react.memo"),jm=Symbol.for("react.lazy"),Iu=Symbol.iterator;function Tm(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var Qf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yf=Object.assign,Kf={};function Er(e,t,n){this.props=e,this.context=t,this.refs=Kf,this.updater=n||Qf}Er.prototype.isReactComponent={};Er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xf(){}Xf.prototype=Er.prototype;function gs(e,t,n){this.props=e,this.context=t,this.refs=Kf,this.updater=n||Qf}var ys=gs.prototype=new Xf;ys.constructor=gs;Yf(ys,Er.prototype);ys.isPureReactComponent=!0;var Au=Array.isArray,Zf=Object.prototype.hasOwnProperty,xs={current:null},Jf={key:!0,ref:!0,__self:!0,__source:!0};function ed(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Zf.call(t,r)&&!Jf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:bi,type:e,key:l,ref:o,props:i,_owner:xs.current}}function _m(e,t){return{$$typeof:bi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vs(e){return typeof e=="object"&&e!==null&&e.$$typeof===bi}function Im(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Pu=/\/+/g;function bo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Im(""+e.key):t.toString(36)}function tl(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case bi:case xm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+bo(o,0):r,Au(i)?(n="",e!=null&&(n=e.replace(Pu,"$&/")+"/"),tl(i,t,n,"",function(u){return u})):i!=null&&(vs(i)&&(i=_m(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Pu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Au(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+bo(l,a);o+=tl(l,t,n,s,i)}else if(s=Tm(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+bo(l,a++),o+=tl(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Li(e,t,n){if(e==null)return e;var r=[],i=0;return tl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Am(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},nl={transition:null},Pm={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:nl,ReactCurrentOwner:xs};function td(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Li,forEach:function(e,t,n){Li(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Li(e,function(){t++}),t},toArray:function(e){return Li(e,function(t){return t})||[]},only:function(e){if(!vs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Er;ee.Fragment=vm;ee.Profiler=wm;ee.PureComponent=gs;ee.StrictMode=km;ee.Suspense=Cm;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pm;ee.act=td;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Yf({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=xs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Zf.call(t,s)&&!Jf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:bi,type:e.type,key:i,ref:l,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:Sm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bm,_context:e},e.Consumer=e};ee.createElement=ed;ee.createFactory=function(e){var t=ed.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:Em,render:e}};ee.isValidElement=vs;ee.lazy=function(e){return{$$typeof:jm,_payload:{_status:-1,_result:e},_init:Am}};ee.memo=function(e,t){return{$$typeof:Nm,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=nl.transition;nl.transition={};try{e()}finally{nl.transition=t}};ee.unstable_act=td;ee.useCallback=function(e,t){return Ge.current.useCallback(e,t)};ee.useContext=function(e){return Ge.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Ge.current.useEffect(e,t)};ee.useId=function(){return Ge.current.useId()};ee.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ge.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};ee.useRef=function(e){return Ge.current.useRef(e)};ee.useState=function(e){return Ge.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ge.current.useTransition()};ee.version="18.3.1";qf.exports=ee;var A=qf.exports;const Lm=ms(A);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 Fm=A,Rm=Symbol.for("react.element"),Dm=Symbol.for("react.fragment"),Om=Object.prototype.hasOwnProperty,zm=Fm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mm={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Om.call(t,r)&&!Mm.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Rm,type:e,key:l,ref:o,props:i,_owner:zm.current}}Gl.Fragment=Dm;Gl.jsx=nd;Gl.jsxs=nd;Gf.exports=Gl;var p=Gf.exports,ca={},rd={exports:{}},ct={},id={exports:{}},ld={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(e){function t(O,V){var k=O.length;O.push(V);e:for(;0<k;){var Y=k-1>>>1,X=O[Y];if(0<i(X,V))O[Y]=V,O[k]=X,k=Y;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var V=O[0],k=O.pop();if(k!==V){O[0]=k;e:for(var Y=0,X=O.length,E=X>>>1;Y<E;){var se=2*(Y+1)-1,_e=O[se],ie=se+1,Ie=O[ie];if(0>i(_e,k))ie<X&&0>i(Ie,_e)?(O[Y]=Ie,O[ie]=k,Y=ie):(O[Y]=_e,O[se]=k,Y=se);else if(ie<X&&0>i(Ie,k))O[Y]=Ie,O[ie]=k,Y=ie;else break e}}return V}function i(O,V){var k=O.sortIndex-V.sortIndex;return k!==0?k:O.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],f=1,c=null,d=3,h=!1,m=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(O){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=O)r(u),V.sortIndex=V.expirationTime,t(s,V);else break;V=n(u)}}function b(O){if(v=!1,g(O),!m)if(n(s)!==null)m=!0,W(N);else{var V=n(u);V!==null&&te(b,V.startTime-O)}}function N(O,V){m=!1,v&&(v=!1,x(T),T=-1),h=!0;var k=d;try{for(g(V),c=n(s);c!==null&&(!(c.expirationTime>V)||O&&!R());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var X=Y(c.expirationTime<=V);V=e.unstable_now(),typeof X=="function"?c.callback=X:c===n(s)&&r(s),g(V)}else r(s);c=n(s)}if(c!==null)var E=!0;else{var se=n(u);se!==null&&te(b,se.startTime-V),E=!1}return E}finally{c=null,d=k,h=!1}}var S=!1,j=null,T=-1,L=5,C=-1;function R(){return!(e.unstable_now()-C<L)}function M(){if(j!==null){var O=e.unstable_now();C=O;var V=!0;try{V=j(!0,O)}finally{V?$():(S=!1,j=null)}}else S=!1}var $;if(typeof y=="function")$=function(){y(M)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,F=U.port2;U.port1.onmessage=M,$=function(){F.postMessage(null)}}else $=function(){w(M,0)};function W(O){j=O,S||(S=!0,$())}function te(O,V){T=w(function(){O(e.unstable_now())},V)}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(O){O.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,W(N))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var k=d;d=V;try{return O()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,V){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var k=d;d=O;try{return V()}finally{d=k}},e.unstable_scheduleCallback=function(O,V,k){var Y=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Y+k:Y):k=Y,O){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=k+X,O={id:f++,callback:V,priorityLevel:O,startTime:k,expirationTime:X,sortIndex:-1},k>Y?(O.sortIndex=k,t(u,O),n(s)===null&&O===n(u)&&(v?(x(T),T=-1):v=!0,te(b,k-Y))):(O.sortIndex=X,t(s,O),m||h||(m=!0,W(N))),O},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(O){var V=d;return function(){var k=d;d=V;try{return O.apply(this,arguments)}finally{d=k}}}})(ld);id.exports=ld;var Bm=id.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 $m=A,ut=Bm;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var od=new Set,ri={};function Un(e,t){gr(e,t),gr(e+"Capture",t)}function gr(e,t){for(ri[e]=t,e=0;e<t.length;e++)od.add(t[e])}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,Um=/^[: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]*$/,Lu={},Fu={};function Hm(e){return fa.call(Fu,e)?!0:fa.call(Lu,e)?!1:Um.test(e)?Fu[e]=!0:(Lu[e]=!0,!1)}function Vm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wm(e,t,n,r){if(t===null||typeof t>"u"||Vm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qe(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ks=/[\-:]([a-z])/g;function ws(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ks,ws);Le[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ks,ws);Le[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ks,ws);Le[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function bs(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wm(t,n,i,r)&&(n=null),r||i===null?Hm(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kt=$m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fi=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Zn=Symbol.for("react.fragment"),Ss=Symbol.for("react.strict_mode"),da=Symbol.for("react.profiler"),ad=Symbol.for("react.provider"),sd=Symbol.for("react.context"),Es=Symbol.for("react.forward_ref"),pa=Symbol.for("react.suspense"),ha=Symbol.for("react.suspense_list"),Cs=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),ud=Symbol.for("react.offscreen"),Ru=Symbol.iterator;function Ar(e){return e===null||typeof e!="object"?null:(e=Ru&&e[Ru]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,So;function $r(e){if(So===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);So=t&&t[1]||""}return`
|
|
34
|
+
`+So+e}var Eo=!1;function Co(e,t){if(!e||Eo)return"";Eo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,a=l.length-1;1<=o&&0<=a&&i[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==l[a]){var s=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{Eo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$r(e):""}function Gm(e){switch(e.tag){case 5:return $r(e.type);case 16:return $r("Lazy");case 13:return $r("Suspense");case 19:return $r("SuspenseList");case 0:case 2:case 15:return e=Co(e.type,!1),e;case 11:return e=Co(e.type.render,!1),e;case 1:return e=Co(e.type,!0),e;default:return""}}function ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zn:return"Fragment";case Xn:return"Portal";case da:return"Profiler";case Ss:return"StrictMode";case pa:return"Suspense";case ha:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sd:return(e.displayName||"Context")+".Consumer";case ad:return(e._context.displayName||"Context")+".Provider";case Es:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cs:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function qm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ma(t);case 8:return t===Ss?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qm(e){var t=cd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ri(e){e._valueTracker||(e._valueTracker=Qm(e))}function fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ga(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dd(e,t){t=t.checked,t!=null&&bs(e,"checked",t,!1)}function ya(e,t){dd(e,t);var n=vn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xa(e,t.type,n):t.hasOwnProperty("defaultValue")&&xa(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ou(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xa(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ur=Array.isArray;function ur(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function va(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Ur(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function pd(e,t){var n=vn(t.value),r=vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Mu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Di,md=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Di=Di||document.createElement("div"),Di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ym=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){Ym.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function gd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function yd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=gd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Km=xe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wa(e,t){if(t){if(Km[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ba(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ea=null,cr=null,fr=null;function Bu(e){if(e=Ci(e)){if(typeof Ea!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Xl(t),Ea(e.stateNode,e.type,t))}}function xd(e){cr?fr?fr.push(e):fr=[e]:cr=e}function vd(){if(cr){var e=cr,t=fr;if(fr=cr=null,Bu(e),t)for(e=0;e<t.length;e++)Bu(t[e])}}function kd(e,t){return e(t)}function wd(){}var No=!1;function bd(e,t,n){if(No)return e(t,n);No=!0;try{return kd(e,t,n)}finally{No=!1,(cr!==null||fr!==null)&&(wd(),vd())}}function li(e,t){var n=e.stateNode;if(n===null)return null;var r=Xl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Ca=!1;if(Gt)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){Ca=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{Ca=!1}function Xm(e,t,n,r,i,l,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Gr=!1,xl=null,vl=!1,Na=null,Zm={onError:function(e){Gr=!0,xl=e}};function Jm(e,t,n,r,i,l,o,a,s){Gr=!1,xl=null,Xm.apply(Zm,arguments)}function eg(e,t,n,r,i,l,o,a,s){if(Jm.apply(this,arguments),Gr){if(Gr){var u=xl;Gr=!1,xl=null}else throw Error(D(198));vl||(vl=!0,Na=u)}}function Hn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Sd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $u(e){if(Hn(e)!==e)throw Error(D(188))}function tg(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return $u(i),e;if(l===r)return $u(i),t;l=l.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Ed(e){return e=tg(e),e!==null?Cd(e):null}function Cd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cd(e);if(t!==null)return t;e=e.sibling}return null}var Nd=ut.unstable_scheduleCallback,Uu=ut.unstable_cancelCallback,ng=ut.unstable_shouldYield,rg=ut.unstable_requestPaint,be=ut.unstable_now,ig=ut.unstable_getCurrentPriorityLevel,js=ut.unstable_ImmediatePriority,jd=ut.unstable_UserBlockingPriority,kl=ut.unstable_NormalPriority,lg=ut.unstable_LowPriority,Td=ut.unstable_IdlePriority,ql=null,Ft=null;function og(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(ql,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:ug,ag=Math.log,sg=Math.LN2;function ug(e){return e>>>=0,e===0?32:31-(ag(e)/sg|0)|0}var Oi=64,zi=4194304;function Hr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Hr(a):(l&=o,l!==0&&(r=Hr(l)))}else o=n&~i,o!==0?r=Hr(o):l!==0&&(r=Hr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function cg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Nt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=cg(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function ja(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _d(){var e=Oi;return Oi<<=1,!(Oi&4194240)&&(Oi=64),e}function jo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function dg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Nt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function Ts(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function Id(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ad,_s,Pd,Ld,Fd,Ta=!1,Mi=[],fn=null,dn=null,pn=null,oi=new Map,ai=new Map,an=[],pg="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 submit".split(" ");function Hu(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function Lr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Ci(t),t!==null&&_s(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hg(e,t,n,r,i){switch(t){case"focusin":return fn=Lr(fn,e,t,n,r,i),!0;case"dragenter":return dn=Lr(dn,e,t,n,r,i),!0;case"mouseover":return pn=Lr(pn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return oi.set(l,Lr(oi.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ai.set(l,Lr(ai.get(l)||null,e,t,n,r,i)),!0}return!1}function Rd(e){var t=An(e.target);if(t!==null){var n=Hn(t);if(n!==null){if(t=n.tag,t===13){if(t=Sd(n),t!==null){e.blockedOn=t,Fd(e.priority,function(){Pd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_a(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sa=r,n.target.dispatchEvent(r),Sa=null}else return t=Ci(n),t!==null&&_s(t),e.blockedOn=n,!1;t.shift()}return!0}function Vu(e,t,n){rl(e)&&n.delete(t)}function mg(){Ta=!1,fn!==null&&rl(fn)&&(fn=null),dn!==null&&rl(dn)&&(dn=null),pn!==null&&rl(pn)&&(pn=null),oi.forEach(Vu),ai.forEach(Vu)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ta||(Ta=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,mg)))}function si(e){function t(i){return Fr(i,e)}if(0<Mi.length){Fr(Mi[0],e);for(var n=1;n<Mi.length;n++){var r=Mi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&Fr(fn,e),dn!==null&&Fr(dn,e),pn!==null&&Fr(pn,e),oi.forEach(t),ai.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Rd(n),n.blockedOn===null&&an.shift()}var dr=Kt.ReactCurrentBatchConfig,bl=!0;function gg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=1,Is(e,t,n,r)}finally{ae=i,dr.transition=l}}function yg(e,t,n,r){var i=ae,l=dr.transition;dr.transition=null;try{ae=4,Is(e,t,n,r)}finally{ae=i,dr.transition=l}}function Is(e,t,n,r){if(bl){var i=_a(e,t,n,r);if(i===null)Oo(e,t,r,Sl,n),Hu(e,r);else if(hg(i,e,t,n,r))r.stopPropagation();else if(Hu(e,r),t&4&&-1<pg.indexOf(e)){for(;i!==null;){var l=Ci(i);if(l!==null&&Ad(l),l=_a(e,t,n,r),l===null&&Oo(e,t,r,Sl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Oo(e,t,r,null,n)}}var Sl=null;function _a(e,t,n,r){if(Sl=null,e=Ns(r),e=An(e),e!==null)if(t=Hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Sd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sl=e,null}function Dd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ig()){case js:return 1;case jd:return 4;case kl:case lg:return 16;case Td:return 536870912;default:return 16}default:return 16}}var un=null,As=null,il=null;function Od(){if(il)return il;var e,t=As,n=t.length,r,i="value"in un?un.value:un.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return il=i.slice(e,1<r?1-r:void 0)}function ll(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bi(){return!0}function Wu(){return!1}function ft(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Bi:Wu,this.isPropagationStopped=Wu,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ps=ft(Cr),Ei=xe({},Cr,{view:0,detail:0}),xg=ft(Ei),To,_o,Rr,Ql=xe({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rr&&(Rr&&e.type==="mousemove"?(To=e.screenX-Rr.screenX,_o=e.screenY-Rr.screenY):_o=To=0,Rr=e),To)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Gu=ft(Ql),vg=xe({},Ql,{dataTransfer:0}),kg=ft(vg),wg=xe({},Ei,{relatedTarget:0}),Io=ft(wg),bg=xe({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=ft(bg),Eg=xe({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=ft(Eg),Ng=xe({},Cr,{data:0}),qu=ft(Ng),jg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tg={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"},_g={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_g[e])?!!t[e]:!1}function Ls(){return Ig}var Ag=xe({},Ei,{key:function(e){if(e.key){var t=jg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pg=ft(Ag),Lg=xe({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qu=ft(Lg),Fg=xe({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),Rg=ft(Fg),Dg=xe({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Og=ft(Dg),zg=xe({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mg=ft(zg),Bg=[9,13,27,32],Fs=Gt&&"CompositionEvent"in window,qr=null;Gt&&"documentMode"in document&&(qr=document.documentMode);var $g=Gt&&"TextEvent"in window&&!qr,zd=Gt&&(!Fs||qr&&8<qr&&11>=qr),Yu=" ",Ku=!1;function Md(e,t){switch(e){case"keyup":return Bg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jn=!1;function Ug(e,t){switch(e){case"compositionend":return Bd(t);case"keypress":return t.which!==32?null:(Ku=!0,Yu);case"textInput":return e=t.data,e===Yu&&Ku?null:e;default:return null}}function Hg(e,t){if(Jn)return e==="compositionend"||!Fs&&Md(e,t)?(e=Od(),il=As=un=null,Jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zd&&t.locale!=="ko"?null:t.data;default:return null}}var Vg={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 Xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vg[e.type]:t==="textarea"}function $d(e,t,n,r){xd(r),t=El(t,"onChange"),0<t.length&&(n=new Ps("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qr=null,ui=null;function Wg(e){Zd(e,0)}function Yl(e){var t=nr(e);if(fd(t))return e}function Gg(e,t){if(e==="change")return t}var Ud=!1;if(Gt){var Ao;if(Gt){var Po="oninput"in document;if(!Po){var Zu=document.createElement("div");Zu.setAttribute("oninput","return;"),Po=typeof Zu.oninput=="function"}Ao=Po}else Ao=!1;Ud=Ao&&(!document.documentMode||9<document.documentMode)}function Ju(){Qr&&(Qr.detachEvent("onpropertychange",Hd),ui=Qr=null)}function Hd(e){if(e.propertyName==="value"&&Yl(ui)){var t=[];$d(t,ui,e,Ns(e)),bd(Wg,t)}}function qg(e,t,n){e==="focusin"?(Ju(),Qr=t,ui=n,Qr.attachEvent("onpropertychange",Hd)):e==="focusout"&&Ju()}function Qg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(ui)}function Yg(e,t){if(e==="click")return Yl(t)}function Kg(e,t){if(e==="input"||e==="change")return Yl(t)}function Xg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Xg;function ci(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fa.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function ec(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tc(e,t){var n=ec(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ec(n)}}function Vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wd(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function Rs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Zg(e){var t=Wd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vd(n.ownerDocument.documentElement,n)){if(r!==null&&Rs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=tc(n,l);var o=tc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jg=Gt&&"documentMode"in document&&11>=document.documentMode,er=null,Ia=null,Yr=null,Aa=!1;function nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Aa||er==null||er!==yl(r)||(r=er,"selectionStart"in r&&Rs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&ci(Yr,r)||(Yr=r,r=El(Ia,"onSelect"),0<r.length&&(t=new Ps("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=er)))}function $i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tr={animationend:$i("Animation","AnimationEnd"),animationiteration:$i("Animation","AnimationIteration"),animationstart:$i("Animation","AnimationStart"),transitionend:$i("Transition","TransitionEnd")},Lo={},Gd={};Gt&&(Gd=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function Kl(e){if(Lo[e])return Lo[e];if(!tr[e])return e;var t=tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gd)return Lo[e]=t[n];return e}var qd=Kl("animationend"),Qd=Kl("animationiteration"),Yd=Kl("animationstart"),Kd=Kl("transitionend"),Xd=new Map,rc="abort auxClick 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(" ");function wn(e,t){Xd.set(e,t),Un(t,[e])}for(var Fo=0;Fo<rc.length;Fo++){var Ro=rc[Fo],ey=Ro.toLowerCase(),ty=Ro[0].toUpperCase()+Ro.slice(1);wn(ey,"on"+ty)}wn(qd,"onAnimationEnd");wn(Qd,"onAnimationIteration");wn(Yd,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(Kd,"onTransitionEnd");gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vr="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(" "),ny=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vr));function ic(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eg(r,t,void 0,e),e.currentTarget=null}function Zd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==l&&i.isPropagationStopped())break e;ic(i,a,u),l=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==l&&i.isPropagationStopped())break e;ic(i,a,u),l=s}}}if(vl)throw e=Na,vl=!1,Na=null,e}function de(e,t){var n=t[Da];n===void 0&&(n=t[Da]=new Set);var r=e+"__bubble";n.has(r)||(Jd(t,e,2,!1),n.add(r))}function Do(e,t,n){var r=0;t&&(r|=4),Jd(n,e,r,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function fi(e){if(!e[Ui]){e[Ui]=!0,od.forEach(function(n){n!=="selectionchange"&&(ny.has(n)||Do(n,!1,e),Do(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Do("selectionchange",!1,t))}}function Jd(e,t,n,r){switch(Dd(t)){case 1:var i=gg;break;case 4:i=yg;break;default:i=Is}n=i.bind(null,t,n,e),i=void 0,!Ca||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Oo(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;a!==null;){if(o=An(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}bd(function(){var u=l,f=Ns(n),c=[];e:{var d=Xd.get(e);if(d!==void 0){var h=Ps,m=e;switch(e){case"keypress":if(ll(n)===0)break e;case"keydown":case"keyup":h=Pg;break;case"focusin":m="focus",h=Io;break;case"focusout":m="blur",h=Io;break;case"beforeblur":case"afterblur":h=Io;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Gu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Rg;break;case qd:case Qd:case Yd:h=Sg;break;case Kd:h=Og;break;case"scroll":h=xg;break;case"wheel":h=Mg;break;case"copy":case"cut":case"paste":h=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Qu}var v=(t&4)!==0,w=!v&&e==="scroll",x=v?d!==null?d+"Capture":null:d;v=[];for(var y=u,g;y!==null;){g=y;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,x!==null&&(b=li(y,x),b!=null&&v.push(di(y,b,g)))),w)break;y=y.return}0<v.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Sa&&(m=n.relatedTarget||n.fromElement)&&(An(m)||m[qt]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?An(m):null,m!==null&&(w=Hn(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(v=Gu,b="onMouseLeave",x="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Qu,b="onPointerLeave",x="onPointerEnter",y="pointer"),w=h==null?d:nr(h),g=m==null?d:nr(m),d=new v(b,y+"leave",h,n,f),d.target=w,d.relatedTarget=g,b=null,An(f)===u&&(v=new v(x,y+"enter",m,n,f),v.target=g,v.relatedTarget=w,b=v),w=b,h&&m)t:{for(v=h,x=m,y=0,g=v;g;g=qn(g))y++;for(g=0,b=x;b;b=qn(b))g++;for(;0<y-g;)v=qn(v),y--;for(;0<g-y;)x=qn(x),g--;for(;y--;){if(v===x||x!==null&&v===x.alternate)break t;v=qn(v),x=qn(x)}v=null}else v=null;h!==null&&lc(c,d,h,v,!1),m!==null&&w!==null&&lc(c,w,m,v,!0)}}e:{if(d=u?nr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var N=Gg;else if(Xu(d))if(Ud)N=Kg;else{N=Qg;var S=qg}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=Yg);if(N&&(N=N(e,u))){$d(c,N,n,f);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&xa(d,"number",d.value)}switch(S=u?nr(u):window,e){case"focusin":(Xu(S)||S.contentEditable==="true")&&(er=S,Ia=u,Yr=null);break;case"focusout":Yr=Ia=er=null;break;case"mousedown":Aa=!0;break;case"contextmenu":case"mouseup":case"dragend":Aa=!1,nc(c,n,f);break;case"selectionchange":if(Jg)break;case"keydown":case"keyup":nc(c,n,f)}var j;if(Fs)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Jn?Md(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(zd&&n.locale!=="ko"&&(Jn||T!=="onCompositionStart"?T==="onCompositionEnd"&&Jn&&(j=Od()):(un=f,As="value"in un?un.value:un.textContent,Jn=!0)),S=El(u,T),0<S.length&&(T=new qu(T,e,null,n,f),c.push({event:T,listeners:S}),j?T.data=j:(j=Bd(n),j!==null&&(T.data=j)))),(j=$g?Ug(e,n):Hg(e,n))&&(u=El(u,"onBeforeInput"),0<u.length&&(f=new qu("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=j))}Zd(c,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function El(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=li(e,n),l!=null&&r.unshift(di(e,l,i)),l=li(e,t),l!=null&&r.push(di(e,l,i))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lc(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=li(n,l),s!=null&&o.unshift(di(n,s,a))):i||(s=li(n,l),s!=null&&o.push(di(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ry=/\r\n?/g,iy=/\u0000|\uFFFD/g;function oc(e){return(typeof e=="string"?e:""+e).replace(ry,`
|
|
38
|
+
`).replace(iy,"")}function Hi(e,t,n){if(t=oc(t),oc(e)!==t&&n)throw Error(D(425))}function Cl(){}var Pa=null,La=null;function Fa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ra=typeof setTimeout=="function"?setTimeout:void 0,ly=typeof clearTimeout=="function"?clearTimeout:void 0,ac=typeof Promise=="function"?Promise:void 0,oy=typeof queueMicrotask=="function"?queueMicrotask:typeof ac<"u"?function(e){return ac.resolve(null).then(e).catch(ay)}:Ra;function ay(e){setTimeout(function(){throw e})}function zo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),si(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);si(t)}function hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function sc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Nr,pi="__reactProps$"+Nr,qt="__reactContainer$"+Nr,Da="__reactEvents$"+Nr,sy="__reactListeners$"+Nr,uy="__reactHandles$"+Nr;function An(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qt]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sc(e);e!==null;){if(n=e[Lt])return n;e=sc(e)}return t}e=n,n=e.parentNode}return null}function Ci(e){return e=e[Lt]||e[qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Xl(e){return e[pi]||null}var Oa=[],rr=-1;function bn(e){return{current:e}}function pe(e){0>rr||(e.current=Oa[rr],Oa[rr]=null,rr--)}function fe(e,t){rr++,Oa[rr]=e.current,e.current=t}var kn={},Me=bn(kn),Ze=bn(!1),Dn=kn;function yr(e,t){var n=e.type.contextTypes;if(!n)return kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Je(e){return e=e.childContextTypes,e!=null}function Nl(){pe(Ze),pe(Me)}function uc(e,t,n){if(Me.current!==kn)throw Error(D(168));fe(Me,t),fe(Ze,n)}function ep(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,qm(e)||"Unknown",i));return xe({},n,r)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Dn=Me.current,fe(Me,e),fe(Ze,Ze.current),!0}function cc(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=ep(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,pe(Ze),pe(Me),fe(Me,e)):pe(Ze),fe(Ze,n)}var Ut=null,Zl=!1,Mo=!1;function tp(e){Ut===null?Ut=[e]:Ut.push(e)}function cy(e){Zl=!0,tp(e)}function Sn(){if(!Mo&&Ut!==null){Mo=!0;var e=0,t=ae;try{var n=Ut;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,Zl=!1}catch(i){throw Ut!==null&&(Ut=Ut.slice(e+1)),Nd(js,Sn),i}finally{ae=t,Mo=!1}}return null}var ir=[],lr=0,Tl=null,_l=0,mt=[],gt=0,On=null,Ht=1,Vt="";function Tn(e,t){ir[lr++]=_l,ir[lr++]=Tl,Tl=e,_l=t}function np(e,t,n){mt[gt++]=Ht,mt[gt++]=Vt,mt[gt++]=On,On=e;var r=Ht;e=Vt;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var l=32-Nt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ht=1<<32-Nt(t)+i|n<<i|r,Vt=l+e}else Ht=1<<l|n<<i|r,Vt=e}function Ds(e){e.return!==null&&(Tn(e,1),np(e,1,0))}function Os(e){for(;e===Tl;)Tl=ir[--lr],ir[lr]=null,_l=ir[--lr],ir[lr]=null;for(;e===On;)On=mt[--gt],mt[gt]=null,Vt=mt[--gt],mt[gt]=null,Ht=mt[--gt],mt[gt]=null}var at=null,ot=null,me=!1,Ct=null;function rp(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ot=hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=On!==null?{id:Ht,overflow:Vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ot=null,!0):!1;default:return!1}}function za(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ma(e){if(me){var t=ot;if(t){var n=t;if(!fc(e,t)){if(za(e))throw Error(D(418));t=hn(n.nextSibling);var r=at;t&&fc(e,t)?rp(r,n):(e.flags=e.flags&-4097|2,me=!1,at=e)}}else{if(za(e))throw Error(D(418));e.flags=e.flags&-4097|2,me=!1,at=e}}}function dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Vi(e){if(e!==at)return!1;if(!me)return dc(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fa(e.type,e.memoizedProps)),t&&(t=ot)){if(za(e))throw ip(),Error(D(418));for(;t;)rp(e,t),t=hn(t.nextSibling)}if(dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=at?hn(e.stateNode.nextSibling):null;return!0}function ip(){for(var e=ot;e;)e=hn(e.nextSibling)}function xr(){ot=at=null,me=!1}function zs(e){Ct===null?Ct=[e]:Ct.push(e)}var fy=Kt.ReactCurrentBatchConfig;function Dr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=i.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Wi(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pc(e){var t=e._init;return t(e._payload)}function lp(e){function t(x,y){if(e){var g=x.deletions;g===null?(x.deletions=[y],x.flags|=16):g.push(y)}}function n(x,y){if(!e)return null;for(;y!==null;)t(x,y),y=y.sibling;return null}function r(x,y){for(x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function i(x,y){return x=xn(x,y),x.index=0,x.sibling=null,x}function l(x,y,g){return x.index=g,e?(g=x.alternate,g!==null?(g=g.index,g<y?(x.flags|=2,y):g):(x.flags|=2,y)):(x.flags|=1048576,y)}function o(x){return e&&x.alternate===null&&(x.flags|=2),x}function a(x,y,g,b){return y===null||y.tag!==6?(y=Go(g,x.mode,b),y.return=x,y):(y=i(y,g),y.return=x,y)}function s(x,y,g,b){var N=g.type;return N===Zn?f(x,y,g.props.children,b,g.key):y!==null&&(y.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&pc(N)===y.type)?(b=i(y,g.props),b.ref=Dr(x,y,g),b.return=x,b):(b=dl(g.type,g.key,g.props,null,x.mode,b),b.ref=Dr(x,y,g),b.return=x,b)}function u(x,y,g,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=qo(g,x.mode,b),y.return=x,y):(y=i(y,g.children||[]),y.return=x,y)}function f(x,y,g,b,N){return y===null||y.tag!==7?(y=Rn(g,x.mode,b,N),y.return=x,y):(y=i(y,g),y.return=x,y)}function c(x,y,g){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Go(""+y,x.mode,g),y.return=x,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Fi:return g=dl(y.type,y.key,y.props,null,x.mode,g),g.ref=Dr(x,null,y),g.return=x,g;case Xn:return y=qo(y,x.mode,g),y.return=x,y;case ln:var b=y._init;return c(x,b(y._payload),g)}if(Ur(y)||Ar(y))return y=Rn(y,x.mode,g,null),y.return=x,y;Wi(x,y)}return null}function d(x,y,g,b){var N=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return N!==null?null:a(x,y,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fi:return g.key===N?s(x,y,g,b):null;case Xn:return g.key===N?u(x,y,g,b):null;case ln:return N=g._init,d(x,y,N(g._payload),b)}if(Ur(g)||Ar(g))return N!==null?null:f(x,y,g,b,null);Wi(x,g)}return null}function h(x,y,g,b,N){if(typeof b=="string"&&b!==""||typeof b=="number")return x=x.get(g)||null,a(y,x,""+b,N);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Fi:return x=x.get(b.key===null?g:b.key)||null,s(y,x,b,N);case Xn:return x=x.get(b.key===null?g:b.key)||null,u(y,x,b,N);case ln:var S=b._init;return h(x,y,g,S(b._payload),N)}if(Ur(b)||Ar(b))return x=x.get(g)||null,f(y,x,b,N,null);Wi(y,b)}return null}function m(x,y,g,b){for(var N=null,S=null,j=y,T=y=0,L=null;j!==null&&T<g.length;T++){j.index>T?(L=j,j=null):L=j.sibling;var C=d(x,j,g[T],b);if(C===null){j===null&&(j=L);break}e&&j&&C.alternate===null&&t(x,j),y=l(C,y,T),S===null?N=C:S.sibling=C,S=C,j=L}if(T===g.length)return n(x,j),me&&Tn(x,T),N;if(j===null){for(;T<g.length;T++)j=c(x,g[T],b),j!==null&&(y=l(j,y,T),S===null?N=j:S.sibling=j,S=j);return me&&Tn(x,T),N}for(j=r(x,j);T<g.length;T++)L=h(j,x,T,g[T],b),L!==null&&(e&&L.alternate!==null&&j.delete(L.key===null?T:L.key),y=l(L,y,T),S===null?N=L:S.sibling=L,S=L);return e&&j.forEach(function(R){return t(x,R)}),me&&Tn(x,T),N}function v(x,y,g,b){var N=Ar(g);if(typeof N!="function")throw Error(D(150));if(g=N.call(g),g==null)throw Error(D(151));for(var S=N=null,j=y,T=y=0,L=null,C=g.next();j!==null&&!C.done;T++,C=g.next()){j.index>T?(L=j,j=null):L=j.sibling;var R=d(x,j,C.value,b);if(R===null){j===null&&(j=L);break}e&&j&&R.alternate===null&&t(x,j),y=l(R,y,T),S===null?N=R:S.sibling=R,S=R,j=L}if(C.done)return n(x,j),me&&Tn(x,T),N;if(j===null){for(;!C.done;T++,C=g.next())C=c(x,C.value,b),C!==null&&(y=l(C,y,T),S===null?N=C:S.sibling=C,S=C);return me&&Tn(x,T),N}for(j=r(x,j);!C.done;T++,C=g.next())C=h(j,x,T,C.value,b),C!==null&&(e&&C.alternate!==null&&j.delete(C.key===null?T:C.key),y=l(C,y,T),S===null?N=C:S.sibling=C,S=C);return e&&j.forEach(function(M){return t(x,M)}),me&&Tn(x,T),N}function w(x,y,g,b){if(typeof g=="object"&&g!==null&&g.type===Zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Fi:e:{for(var N=g.key,S=y;S!==null;){if(S.key===N){if(N=g.type,N===Zn){if(S.tag===7){n(x,S.sibling),y=i(S,g.props.children),y.return=x,x=y;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ln&&pc(N)===S.type){n(x,S.sibling),y=i(S,g.props),y.ref=Dr(x,S,g),y.return=x,x=y;break e}n(x,S);break}else t(x,S);S=S.sibling}g.type===Zn?(y=Rn(g.props.children,x.mode,b,g.key),y.return=x,x=y):(b=dl(g.type,g.key,g.props,null,x.mode,b),b.ref=Dr(x,y,g),b.return=x,x=b)}return o(x);case Xn:e:{for(S=g.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(x,y.sibling),y=i(y,g.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else t(x,y);y=y.sibling}y=qo(g,x.mode,b),y.return=x,x=y}return o(x);case ln:return S=g._init,w(x,y,S(g._payload),b)}if(Ur(g))return m(x,y,g,b);if(Ar(g))return v(x,y,g,b);Wi(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(x,y.sibling),y=i(y,g),y.return=x,x=y):(n(x,y),y=Go(g,x.mode,b),y.return=x,x=y),o(x)):n(x,y)}return w}var vr=lp(!0),op=lp(!1),Il=bn(null),Al=null,or=null,Ms=null;function Bs(){Ms=or=Al=null}function $s(e){var t=Il.current;pe(Il),e._currentValue=t}function Ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pr(e,t){Al=e,Ms=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xe=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Ms!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Al===null)throw Error(D(308));or=e,Al.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Pn=null;function Us(e){Pn===null?Pn=[e]:Pn.push(e)}function ap(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Us(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var on=!1;function Hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qt(e,n)}return i=r.interleaved,i===null?(t.next=t,Us(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qt(e,n)}function ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ts(e,n)}}function hc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pl(e,t,n,r){var i=e.updateQueue;on=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?l=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(l!==null){var c=i.baseState;o=0,f=u=s=null,a=l;do{var d=a.lane,h=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,v=a;switch(d=t,h=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(h,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(h,c,d):m,d==null)break e;c=xe({},c,d);break e;case 2:on=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,s=c):f=f.next=h,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Mn|=o,e.lanes=o,e.memoizedState=c}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(D(191,i));i.call(r)}}}var Ni={},Rt=bn(Ni),hi=bn(Ni),mi=bn(Ni);function Ln(e){if(e===Ni)throw Error(D(174));return e}function Vs(e,t){switch(fe(mi,t),fe(hi,e),fe(Rt,Ni),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ka(t,e)}pe(Rt),fe(Rt,t)}function kr(){pe(Rt),pe(hi),pe(mi)}function up(e){Ln(mi.current);var t=Ln(Rt.current),n=ka(t,e.type);t!==n&&(fe(hi,e),fe(Rt,n))}function Ws(e){hi.current===e&&(pe(Rt),pe(hi))}var ge=bn(0);function Ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=[];function Gs(){for(var e=0;e<Bo.length;e++)Bo[e]._workInProgressVersionPrimary=null;Bo.length=0}var al=Kt.ReactCurrentDispatcher,$o=Kt.ReactCurrentBatchConfig,zn=0,ye=null,Ce=null,je=null,Fl=!1,Kr=!1,gi=0,dy=0;function Re(){throw Error(D(321))}function qs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Qs(e,t,n,r,i,l){if(zn=l,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,al.current=e===null||e.memoizedState===null?gy:yy,e=n(r,i),Kr){l=0;do{if(Kr=!1,gi=0,25<=l)throw Error(D(301));l+=1,je=Ce=null,t.updateQueue=null,al.current=xy,e=n(r,i)}while(Kr)}if(al.current=Rl,t=Ce!==null&&Ce.next!==null,zn=0,je=Ce=ye=null,Fl=!1,t)throw Error(D(300));return e}function Ys(){var e=gi!==0;return gi=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ye.memoizedState=je=e:je=je.next=e,je}function wt(){if(Ce===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=je===null?ye.memoizedState:je.next;if(t!==null)je=t,Ce=e;else{if(e===null)throw Error(D(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},je===null?ye.memoizedState=je=e:je=je.next=e}return je}function yi(e,t){return typeof t=="function"?t(e):t}function Uo(e){var t=wt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Ce,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var a=o=null,s=null,u=l;do{var f=u.lane;if((zn&f)===f)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=r):s=s.next=c,ye.lanes|=f,Mn|=f}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,_t(r,t.memoizedState)||(Xe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,ye.lanes|=l,Mn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ho(e){var t=wt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);_t(l,t.memoizedState)||(Xe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function cp(){}function fp(e,t){var n=ye,r=wt(),i=t(),l=!_t(r.memoizedState,i);if(l&&(r.memoizedState=i,Xe=!0),r=r.queue,Ks(hp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,xi(9,pp.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(D(349));zn&30||dp(n,t,i)}return i}function dp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pp(e,t,n,r){t.value=n,t.getSnapshot=r,mp(t)&&gp(e)}function hp(e,t,n){return n(function(){mp(t)&&gp(e)})}function mp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function gp(e){var t=Qt(e,1);t!==null&&jt(t,e,1,-1)}function gc(e){var t=At();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:e},t.queue=e,e=e.dispatch=my.bind(null,ye,e),[t.memoizedState,e]}function xi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function yp(){return wt().memoizedState}function sl(e,t,n,r){var i=At();ye.flags|=e,i.memoizedState=xi(1|t,n,void 0,r===void 0?null:r)}function Jl(e,t,n,r){var i=wt();r=r===void 0?null:r;var l=void 0;if(Ce!==null){var o=Ce.memoizedState;if(l=o.destroy,r!==null&&qs(r,o.deps)){i.memoizedState=xi(t,n,l,r);return}}ye.flags|=e,i.memoizedState=xi(1|t,n,l,r)}function yc(e,t){return sl(8390656,8,e,t)}function Ks(e,t){return Jl(2048,8,e,t)}function xp(e,t){return Jl(4,2,e,t)}function vp(e,t){return Jl(4,4,e,t)}function kp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wp(e,t,n){return n=n!=null?n.concat([e]):null,Jl(4,4,kp.bind(null,t,e),n)}function Xs(){}function bp(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sp(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ep(e,t,n){return zn&21?(_t(n,t)||(n=_d(),ye.lanes|=n,Mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xe=!0),e.memoizedState=n)}function py(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=$o.transition;$o.transition={};try{e(!1),t()}finally{ae=n,$o.transition=r}}function Cp(){return wt().memoizedState}function hy(e,t,n){var r=yn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Np(e))jp(t,n);else if(n=ap(e,t,n,r),n!==null){var i=We();jt(n,e,r,i),Tp(n,t,r)}}function my(e,t,n){var r=yn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Np(e))jp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(i.hasEagerState=!0,i.eagerState=a,_t(a,o)){var s=t.interleaved;s===null?(i.next=i,Us(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=ap(e,t,i,r),n!==null&&(i=We(),jt(n,e,r,i),Tp(n,t,r))}}function Np(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function jp(e,t){Kr=Fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ts(e,n)}}var Rl={readContext:kt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},gy={readContext:kt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:yc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,kp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hy.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:gc,useDebugValue:Xs,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=gc(!1),t=e[0];return e=py.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=At();if(me){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Te===null)throw Error(D(349));zn&30||dp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,yc(hp.bind(null,r,l,e),[e]),r.flags|=2048,xi(9,pp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(me){var n=Vt,r=Ht;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yy={readContext:kt,useCallback:bp,useContext:kt,useEffect:Ks,useImperativeHandle:wp,useInsertionEffect:xp,useLayoutEffect:vp,useMemo:Sp,useReducer:Uo,useRef:yp,useState:function(){return Uo(yi)},useDebugValue:Xs,useDeferredValue:function(e){var t=wt();return Ep(t,Ce.memoizedState,e)},useTransition:function(){var e=Uo(yi)[0],t=wt().memoizedState;return[e,t]},useMutableSource:cp,useSyncExternalStore:fp,useId:Cp,unstable_isNewReconciler:!1},xy={readContext:kt,useCallback:bp,useContext:kt,useEffect:Ks,useImperativeHandle:wp,useInsertionEffect:xp,useLayoutEffect:vp,useMemo:Sp,useReducer:Ho,useRef:yp,useState:function(){return Ho(yi)},useDebugValue:Xs,useDeferredValue:function(e){var t=wt();return Ce===null?t.memoizedState=e:Ep(t,Ce.memoizedState,e)},useTransition:function(){var e=Ho(yi)[0],t=wt().memoizedState;return[e,t]},useMutableSource:cp,useSyncExternalStore:fp,useId:Cp,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $a(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eo={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),i=yn(e),l=Wt(r,i);l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),ol(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),i=yn(e),l=Wt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=mn(e,l,i),t!==null&&(jt(t,e,i,r),ol(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=yn(e),i=Wt(n,r);i.tag=2,t!=null&&(i.callback=t),t=mn(e,i,r),t!==null&&(jt(t,e,r,n),ol(t,e,r))}};function xc(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ci(n,r)||!ci(i,l):!0}function _p(e,t,n){var r=!1,i=kn,l=t.contextType;return typeof l=="object"&&l!==null?l=kt(l):(i=Je(t)?Dn:Me.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):kn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function vc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eo.enqueueReplaceState(t,t.state,null)}function Ua(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Hs(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=kt(l):(l=Je(t)?Dn:Me.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&($a(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&eo.enqueueReplaceState(i,i.state,null),Pl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function wr(e,t){try{var n="",r=t;do n+=Gm(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Vo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ha(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vy=typeof WeakMap=="function"?WeakMap:Map;function Ip(e,t,n){n=Wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ol||(Ol=!0,Ja=r),Ha(e,t)},n}function Ap(e,t,n){n=Wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ha(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ha(e,t),typeof r!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function kc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ly.bind(null,e,t,n),t.then(e,e))}function wc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wt(-1,1),t.tag=2,mn(n,t,1))),n.lanes|=1),e)}var ky=Kt.ReactCurrentOwner,Xe=!1;function He(e,t,n,r){t.child=e===null?op(t,null,n,r):vr(t,e.child,n,r)}function Sc(e,t,n,r,i){n=n.render;var l=t.ref;return pr(t,i),r=Qs(e,t,n,r,l,i),n=Ys(),e!==null&&!Xe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yt(e,t,i)):(me&&n&&Ds(t),t.flags|=1,He(e,t,r,i),t.child)}function Ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!lu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Pp(e,t,l,r,i)):(e=dl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ci,n(o,r)&&e.ref===t.ref)return Yt(e,t,i)}return t.flags|=1,e=xn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Pp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ci(l,r)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Xe=!0);else return t.lanes=e.lanes,Yt(e,t,i)}return Va(e,t,n,r,i)}function Lp(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(sr,lt),lt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(sr,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,fe(sr,lt),lt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,fe(sr,lt),lt|=r;return He(e,t,i,n),t.child}function Fp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Va(e,t,n,r,i){var l=Je(n)?Dn:Me.current;return l=yr(t,l),pr(t,i),n=Qs(e,t,n,r,l,i),r=Ys(),e!==null&&!Xe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yt(e,t,i)):(me&&r&&Ds(t),t.flags|=1,He(e,t,n,i),t.child)}function Cc(e,t,n,r,i){if(Je(n)){var l=!0;jl(t)}else l=!1;if(pr(t,i),t.stateNode===null)ul(e,t),_p(t,n,r),Ua(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=kt(u):(u=Je(n)?Dn:Me.current,u=yr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&vc(t,o,r,u),on=!1;var d=t.memoizedState;o.state=d,Pl(t,r,o,i),s=t.memoizedState,a!==r||d!==s||Ze.current||on?(typeof f=="function"&&($a(t,n,f,r),s=t.memoizedState),(a=on||xc(t,n,a,r,d,s,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,sp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,c=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=kt(s):(s=Je(n)?Dn:Me.current,s=yr(t,s));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||d!==s)&&vc(t,o,r,s),on=!1,d=t.memoizedState,o.state=d,Pl(t,r,o,i);var m=t.memoizedState;a!==c||d!==m||Ze.current||on?(typeof h=="function"&&($a(t,n,h,r),m=t.memoizedState),(u=on||xc(t,n,u,r,d,m,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Wa(e,t,n,r,l,i)}function Wa(e,t,n,r,i,l){Fp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&cc(t,n,!1),Yt(e,t,l);r=t.stateNode,ky.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,l),t.child=vr(t,null,a,l)):He(e,t,a,l),t.memoizedState=r.state,i&&cc(t,n,!0),t.child}function Rp(e){var t=e.stateNode;t.pendingContext?uc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uc(e,t.context,!1),Vs(e,t.containerInfo)}function Nc(e,t,n,r,i){return xr(),zs(i),t.flags|=256,He(e,t,n,r),t.child}var Ga={dehydrated:null,treeContext:null,retryLane:0};function qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dp(e,t,n){var r=t.pendingProps,i=ge.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fe(ge,i&1),e===null)return Ma(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ro(o,r,0,null),e=Rn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=qa(n),t.memoizedState=Ga,e):Zs(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return wy(e,t,o,r,a,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=xn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=xn(a,l):(l=Rn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?qa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ga,r}return l=e.child,e=l.sibling,r=xn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Zs(e,t){return t=ro({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&zs(r),vr(t,e.child,null,n),e=Zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wy(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Vo(Error(D(422))),Gi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=ro({mode:"visible",children:r.children},i,0,null),l=Rn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=qa(o),t.memoizedState=Ga,l);if(!(t.mode&1))return Gi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(D(419)),r=Vo(l,r,void 0),Gi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Xe||a){if(r=Te,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Qt(e,i),jt(r,e,i,-1))}return iu(),r=Vo(Error(D(421))),Gi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,ot=hn(i.nextSibling),at=t,me=!0,Ct=null,e!==null&&(mt[gt++]=Ht,mt[gt++]=Vt,mt[gt++]=On,Ht=e.id,Vt=e.overflow,On=t),t=Zs(t,r.children),t.flags|=4096,t)}function jc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ba(e.return,t,n)}function Wo(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Op(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(He(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jc(e,n,t);else if(e.tag===19)jc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(ge,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ll(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Wo(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ll(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Wo(t,!0,n,null,l);break;case"together":Wo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function by(e,t,n){switch(t.tag){case 3:Rp(t),xr();break;case 5:up(t);break;case 1:Je(t.type)&&jl(t);break;case 4:Vs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fe(Il,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?Dp(e,t,n):(fe(ge,ge.current&1),e=Yt(e,t,n),e!==null?e.sibling:null);fe(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Op(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,Lp(e,t,n)}return Yt(e,t,n)}var zp,Qa,Mp,Bp;zp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qa=function(){};Mp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ln(Rt.current);var l=null;switch(n){case"input":i=ga(e,i),r=ga(e,r),l=[];break;case"select":i=xe({},i,{value:void 0}),r=xe({},r,{value:void 0}),l=[];break;case"textarea":i=va(e,i),r=va(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cl)}wa(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ri.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(l=l||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ri.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&de("scroll",e),l||a===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Bp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Or(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Sy(e,t,n){var r=t.pendingProps;switch(Os(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Je(t.type)&&Nl(),De(t),null;case 3:return r=t.stateNode,kr(),pe(Ze),pe(Me),Gs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(ns(Ct),Ct=null))),Qa(e,t),De(t),null;case 5:Ws(t);var i=Ln(mi.current);if(n=t.type,e!==null&&t.stateNode!=null)Mp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return De(t),null}if(e=Ln(Rt.current),Vi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Lt]=t,r[pi]=l,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<Vr.length;i++)de(Vr[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":Du(r,l),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},de("invalid",r);break;case"textarea":zu(r,l),de("invalid",r)}wa(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Hi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Hi(r.textContent,a,e),i=["children",""+a]):ri.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&de("scroll",r)}switch(n){case"input":Ri(r),Ou(r,l,!0);break;case"textarea":Ri(r),Mu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Cl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=hd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Lt]=t,e[pi]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ba(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;i<Vr.length;i++)de(Vr[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":Du(e,r),i=ga(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=xe({},r,{value:void 0}),de("invalid",e);break;case"textarea":zu(e,r),i=va(e,r),de("invalid",e);break;default:i=r}wa(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];l==="style"?yd(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&md(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&ii(e,s):typeof s=="number"&&ii(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ri.hasOwnProperty(l)?s!=null&&l==="onScroll"&&de("scroll",e):s!=null&&bs(e,l,s,o))}switch(n){case"input":Ri(e),Ou(e,r,!1);break;case"textarea":Ri(e),Mu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?ur(e,!!r.multiple,l,!1):r.defaultValue!=null&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return De(t),null;case 6:if(e&&t.stateNode!=null)Bp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Ln(mi.current),Ln(Rt.current),Vi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Lt]=t,(l=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:Hi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Lt]=t,t.stateNode=r}return De(t),null;case 13:if(pe(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ot!==null&&t.mode&1&&!(t.flags&128))ip(),xr(),t.flags|=98560,l=!1;else if(l=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(D(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(D(317));l[Lt]=t}else xr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;De(t),l=!1}else Ct!==null&&(ns(Ct),Ct=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Ne===0&&(Ne=3):iu())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return kr(),Qa(e,t),e===null&&fi(t.stateNode.containerInfo),De(t),null;case 10:return $s(t.type._context),De(t),null;case 17:return Je(t.type)&&Nl(),De(t),null;case 19:if(pe(ge),l=t.memoizedState,l===null)return De(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Or(l,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Or(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(ge,ge.current&1|2),t.child}e=e.sibling}l.tail!==null&&be()>br&&(t.flags|=128,r=!0,Or(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!me)return De(t),null}else 2*be()-l.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,Or(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=be(),t.sibling=null,n=ge.current,fe(ge,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function Ey(e,t){switch(Os(t),t.tag){case 1:return Je(t.type)&&Nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),pe(Ze),pe(Me),Gs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(pe(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ge),null;case 4:return kr(),null;case 10:return $s(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var qi=!1,Oe=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,H=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Ya(e,t,n){try{n()}catch(r){we(e,t,r)}}var Tc=!1;function Ny(e,t){if(Pa=bl,e=Wd(),Rs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(a=o+i),c!==l||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===i&&(a=o),d===l&&++f===r&&(s=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(La={focusedElem:e,selectionRange:n},bl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,w=m.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:St(t.type,v),w);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(b){we(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=Tc,Tc=!1,m}function Xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ya(t,n,l)}i=i.next}while(i!==r)}}function to(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ka(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $p(e){var t=e.alternate;t!==null&&(e.alternate=null,$p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[pi],delete t[Da],delete t[sy],delete t[uy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Up(e){return e.tag===5||e.tag===3||e.tag===4}function _c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Up(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(Xa(e,t,n),e=e.sibling;e!==null;)Xa(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}var Ae=null,Et=!1;function tn(e,t,n){for(n=n.child;n!==null;)Hp(e,t,n),n=n.sibling}function Hp(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(ql,n)}catch{}switch(n.tag){case 5:Oe||ar(n,t);case 6:var r=Ae,i=Et;Ae=null,tn(e,t,n),Ae=r,Et=i,Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(Et?(e=Ae,n=n.stateNode,e.nodeType===8?zo(e.parentNode,n):e.nodeType===1&&zo(e,n),si(e)):zo(Ae,n.stateNode));break;case 4:r=Ae,i=Et,Ae=n.stateNode.containerInfo,Et=!0,tn(e,t,n),Ae=r,Et=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ya(n,t,o),i=i.next}while(i!==r)}tn(e,t,n);break;case 1:if(!Oe&&(ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,tn(e,t,n),Oe=r):tn(e,t,n);break;default:tn(e,t,n)}}function Ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cy),t.forEach(function(r){var i=Ry.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ae=a.stateNode,Et=!1;break e;case 3:Ae=a.stateNode.containerInfo,Et=!0;break e;case 4:Ae=a.stateNode.containerInfo,Et=!0;break e}a=a.return}if(Ae===null)throw Error(D(160));Hp(l,o,i),Ae=null,Et=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){we(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vp(t,e),t=t.sibling}function Vp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),It(e),r&4){try{Xr(3,e,e.return),to(3,e)}catch(v){we(e,e.return,v)}try{Xr(5,e,e.return)}catch(v){we(e,e.return,v)}}break;case 1:bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return);break;case 5:if(bt(t,e),It(e),r&512&&n!==null&&ar(n,n.return),e.flags&32){var i=e.stateNode;try{ii(i,"")}catch(v){we(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&dd(i,l),ba(a,o);var u=ba(a,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?yd(i,c):f==="dangerouslySetInnerHTML"?md(i,c):f==="children"?ii(i,c):bs(i,f,c,u)}switch(a){case"input":ya(i,l);break;case"textarea":pd(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?ur(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?ur(i,!!l.multiple,l.defaultValue,!0):ur(i,!!l.multiple,l.multiple?[]:"",!1))}i[pi]=l}catch(v){we(e,e.return,v)}}break;case 6:if(bt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(v){we(e,e.return,v)}}break;case 3:if(bt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(v){we(e,e.return,v)}break;case 4:bt(t,e),It(e);break;case 13:bt(t,e),It(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(tu=be())),r&4&&Ic(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||f,bt(t,e),Oe=u):bt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(H=e,f=e.child;f!==null;){for(c=H=f;H!==null;){switch(d=H,h=d.child,d.tag){case 0:case 11:case 14:case 15:Xr(4,d,d.return);break;case 1:ar(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){we(r,n,v)}}break;case 5:ar(d,d.return);break;case 22:if(d.memoizedState!==null){Pc(c);continue}}h!==null?(h.return=d,H=h):Pc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=gd("display",o))}catch(v){we(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){we(e,e.return,v)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:bt(t,e),It(e),r&4&&Ic(e);break;case 21:break;default:bt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Up(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ii(i,""),r.flags&=-33);var l=_c(e);Za(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=_c(e);Xa(e,a,o);break;default:throw Error(D(161))}}catch(s){we(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jy(e,t,n){H=e,Wp(e)}function Wp(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var i=H,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||qi;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Oe;a=qi;var u=Oe;if(qi=o,(Oe=s)&&!u)for(H=i;H!==null;)o=H,s=o.child,o.tag===22&&o.memoizedState!==null?Lc(i):s!==null?(s.return=o,H=s):Lc(i);for(;l!==null;)H=l,Wp(l),l=l.sibling;H=i,qi=a,Oe=u}Ac(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,H=l):Ac(e)}}function Ac(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||to(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&mc(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&si(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Oe||t.flags&512&&Ka(t)}catch(d){we(t,t.return,d)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Pc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Lc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{to(4,t)}catch(s){we(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){we(t,i,s)}}var l=t.return;try{Ka(t)}catch(s){we(t,l,s)}break;case 5:var o=t.return;try{Ka(t)}catch(s){we(t,o,s)}}}catch(s){we(t,t.return,s)}if(t===e){H=null;break}var a=t.sibling;if(a!==null){a.return=t.return,H=a;break}H=t.return}}var Ty=Math.ceil,Dl=Kt.ReactCurrentDispatcher,Js=Kt.ReactCurrentOwner,vt=Kt.ReactCurrentBatchConfig,re=0,Te=null,Ee=null,Pe=0,lt=0,sr=bn(0),Ne=0,vi=null,Mn=0,no=0,eu=0,Zr=null,Ke=null,tu=0,br=1/0,$t=null,Ol=!1,Ja=null,gn=null,Qi=!1,cn=null,zl=0,Jr=0,es=null,cl=-1,fl=0;function We(){return re&6?be():cl!==-1?cl:cl=be()}function yn(e){return e.mode&1?re&2&&Pe!==0?Pe&-Pe:fy.transition!==null?(fl===0&&(fl=_d()),fl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Dd(e.type)),e):1}function jt(e,t,n,r){if(50<Jr)throw Jr=0,es=null,Error(D(185));Si(e,n,r),(!(re&2)||e!==Te)&&(e===Te&&(!(re&2)&&(no|=n),Ne===4&&sn(e,Pe)),et(e,r),n===1&&re===0&&!(t.mode&1)&&(br=be()+500,Zl&&Sn()))}function et(e,t){var n=e.callbackNode;fg(e,t);var r=wl(e,e===Te?Pe:0);if(r===0)n!==null&&Uu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Uu(n),t===1)e.tag===0?cy(Fc.bind(null,e)):tp(Fc.bind(null,e)),oy(function(){!(re&6)&&Sn()}),n=null;else{switch(Id(r)){case 1:n=js;break;case 4:n=jd;break;case 16:n=kl;break;case 536870912:n=Td;break;default:n=kl}n=Jp(n,Gp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gp(e,t){if(cl=-1,fl=0,re&6)throw Error(D(327));var n=e.callbackNode;if(hr()&&e.callbackNode!==n)return null;var r=wl(e,e===Te?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ml(e,r);else{t=r;var i=re;re|=2;var l=Qp();(Te!==e||Pe!==t)&&($t=null,br=be()+500,Fn(e,t));do try{Ay();break}catch(a){qp(e,a)}while(!0);Bs(),Dl.current=l,re=i,Ee!==null?t=0:(Te=null,Pe=0,t=Ne)}if(t!==0){if(t===2&&(i=ja(e),i!==0&&(r=i,t=ts(e,i))),t===1)throw n=vi,Fn(e,0),sn(e,r),et(e,be()),n;if(t===6)sn(e,r);else{if(i=e.current.alternate,!(r&30)&&!_y(i)&&(t=Ml(e,r),t===2&&(l=ja(e),l!==0&&(r=l,t=ts(e,l))),t===1))throw n=vi,Fn(e,0),sn(e,r),et(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:_n(e,Ke,$t);break;case 3:if(sn(e,r),(r&130023424)===r&&(t=tu+500-be(),10<t)){if(wl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ra(_n.bind(null,e,Ke,$t),t);break}_n(e,Ke,$t);break;case 4:if(sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ty(r/1960))-r,10<r){e.timeoutHandle=Ra(_n.bind(null,e,Ke,$t),r);break}_n(e,Ke,$t);break;case 5:_n(e,Ke,$t);break;default:throw Error(D(329))}}}return et(e,be()),e.callbackNode===n?Gp.bind(null,e):null}function ts(e,t){var n=Zr;return e.current.memoizedState.isDehydrated&&(Fn(e,t).flags|=256),e=Ml(e,t),e!==2&&(t=Ke,Ke=n,t!==null&&ns(t)),e}function ns(e){Ke===null?Ke=e:Ke.push.apply(Ke,e)}function _y(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!_t(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sn(e,t){for(t&=~eu,t&=~no,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function Fc(e){if(re&6)throw Error(D(327));hr();var t=wl(e,0);if(!(t&1))return et(e,be()),null;var n=Ml(e,t);if(e.tag!==0&&n===2){var r=ja(e);r!==0&&(t=r,n=ts(e,r))}if(n===1)throw n=vi,Fn(e,0),sn(e,t),et(e,be()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_n(e,Ke,$t),et(e,be()),null}function nu(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(br=be()+500,Zl&&Sn())}}function Bn(e){cn!==null&&cn.tag===0&&!(re&6)&&hr();var t=re;re|=1;var n=vt.transition,r=ae;try{if(vt.transition=null,ae=1,e)return e()}finally{ae=r,vt.transition=n,re=t,!(re&6)&&Sn()}}function ru(){lt=sr.current,pe(sr)}function Fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ly(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(Os(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nl();break;case 3:kr(),pe(Ze),pe(Me),Gs();break;case 5:Ws(r);break;case 4:kr();break;case 13:pe(ge);break;case 19:pe(ge);break;case 10:$s(r.type._context);break;case 22:case 23:ru()}n=n.return}if(Te=e,Ee=e=xn(e.current,null),Pe=lt=t,Ne=0,vi=null,eu=no=Mn=0,Ke=Zr=null,Pn!==null){for(t=0;t<Pn.length;t++)if(n=Pn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}Pn=null}return e}function qp(e,t){do{var n=Ee;try{if(Bs(),al.current=Rl,Fl){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Fl=!1}if(zn=0,je=Ce=ye=null,Kr=!1,gi=0,Js.current=null,n===null||n.return===null){Ne=1,vi=t,Ee=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Pe,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=wc(o);if(h!==null){h.flags&=-257,bc(h,o,a,l,t),h.mode&1&&kc(l,u,t),t=h,s=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){kc(l,u,t),iu();break e}s=Error(D(426))}}else if(me&&a.mode&1){var w=wc(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),bc(w,o,a,l,t),zs(wr(s,a));break e}}l=s=wr(s,a),Ne!==4&&(Ne=2),Zr===null?Zr=[l]:Zr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var x=Ip(l,s,t);hc(l,x);break e;case 1:a=s;var y=l.type,g=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(gn===null||!gn.has(g)))){l.flags|=65536,t&=-t,l.lanes|=t;var b=Ap(l,a,t);hc(l,b);break e}}l=l.return}while(l!==null)}Kp(n)}catch(N){t=N,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function Qp(){var e=Dl.current;return Dl.current=Rl,e===null?Rl:e}function iu(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Te===null||!(Mn&268435455)&&!(no&268435455)||sn(Te,Pe)}function Ml(e,t){var n=re;re|=2;var r=Qp();(Te!==e||Pe!==t)&&($t=null,Fn(e,t));do try{Iy();break}catch(i){qp(e,i)}while(!0);if(Bs(),re=n,Dl.current=r,Ee!==null)throw Error(D(261));return Te=null,Pe=0,Ne}function Iy(){for(;Ee!==null;)Yp(Ee)}function Ay(){for(;Ee!==null&&!ng();)Yp(Ee)}function Yp(e){var t=Zp(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Kp(e):Ee=t,Js.current=null}function Kp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ey(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Ee=null;return}}else if(n=Sy(n,t,lt),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ne===0&&(Ne=5)}function _n(e,t,n){var r=ae,i=vt.transition;try{vt.transition=null,ae=1,Py(e,t,n,r)}finally{vt.transition=i,ae=r}return null}function Py(e,t,n,r){do hr();while(cn!==null);if(re&6)throw Error(D(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(dg(e,l),e===Te&&(Ee=Te=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qi||(Qi=!0,Jp(kl,function(){return hr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=vt.transition,vt.transition=null;var o=ae;ae=1;var a=re;re|=4,Js.current=null,Ny(e,n),Vp(n,e),Zg(La),bl=!!Pa,La=Pa=null,e.current=n,jy(n),rg(),re=a,ae=o,vt.transition=l}else e.current=n;if(Qi&&(Qi=!1,cn=e,zl=i),l=e.pendingLanes,l===0&&(gn=null),og(n.stateNode),et(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ol)throw Ol=!1,e=Ja,Ja=null,e;return zl&1&&e.tag!==0&&hr(),l=e.pendingLanes,l&1?e===es?Jr++:(Jr=0,es=e):Jr=0,Sn(),null}function hr(){if(cn!==null){var e=Id(zl),t=vt.transition,n=ae;try{if(vt.transition=null,ae=16>e?16:e,cn===null)var r=!1;else{if(e=cn,cn=null,zl=0,re&6)throw Error(D(331));var i=re;for(re|=4,H=e.current;H!==null;){var l=H,o=l.child;if(H.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(H=u;H!==null;){var f=H;switch(f.tag){case 0:case 11:case 15:Xr(8,f,l)}var c=f.child;if(c!==null)c.return=f,H=c;else for(;H!==null;){f=H;var d=f.sibling,h=f.return;if($p(f),f===u){H=null;break}if(d!==null){d.return=h,H=d;break}H=h}}}var m=l.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}H=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,H=o;else e:for(;H!==null;){if(l=H,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Xr(9,l,l.return)}var x=l.sibling;if(x!==null){x.return=l.return,H=x;break e}H=l.return}}var y=e.current;for(H=y;H!==null;){o=H;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,H=g;else e:for(o=y;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:to(9,a)}}catch(N){we(a,a.return,N)}if(a===o){H=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,H=b;break e}H=a.return}}if(re=i,Sn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(ql,e)}catch{}r=!0}return r}finally{ae=n,vt.transition=t}}return!1}function Rc(e,t,n){t=wr(n,t),t=Ip(e,t,1),e=mn(e,t,1),t=We(),e!==null&&(Si(e,1,t),et(e,t))}function we(e,t,n){if(e.tag===3)Rc(e,e,n);else for(;t!==null;){if(t.tag===3){Rc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gn===null||!gn.has(r))){e=wr(n,e),e=Ap(t,e,1),t=mn(t,e,1),e=We(),t!==null&&(Si(t,1,e),et(t,e));break}}t=t.return}}function Ly(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Pe&n)===n&&(Ne===4||Ne===3&&(Pe&130023424)===Pe&&500>be()-tu?Fn(e,0):eu|=n),et(e,t)}function Xp(e,t){t===0&&(e.mode&1?(t=zi,zi<<=1,!(zi&130023424)&&(zi=4194304)):t=1);var n=We();e=Qt(e,t),e!==null&&(Si(e,t,n),et(e,n))}function Fy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xp(e,n)}function Ry(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Xp(e,n)}var Zp;Zp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xe=!1,by(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,me&&t.flags&1048576&&np(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var i=yr(t,Me.current);pr(t,n),i=Qs(null,t,r,e,i,n);var l=Ys();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(l=!0,jl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hs(t),i.updater=eo,t.stateNode=i,i._reactInternals=t,Ua(t,r,e,n),t=Wa(null,t,r,!0,l,n)):(t.tag=0,me&&l&&Ds(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Oy(r),e=St(r,e),i){case 0:t=Va(null,t,r,e,n);break e;case 1:t=Cc(null,t,r,e,n);break e;case 11:t=Sc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,St(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Va(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Cc(e,t,r,i,n);case 3:e:{if(Rp(t),e===null)throw Error(D(387));r=t.pendingProps,l=t.memoizedState,i=l.element,sp(e,t),Pl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=wr(Error(D(423)),t),t=Nc(e,t,r,n,i);break e}else if(r!==i){i=wr(Error(D(424)),t),t=Nc(e,t,r,n,i);break e}else for(ot=hn(t.stateNode.containerInfo.firstChild),at=t,me=!0,Ct=null,n=op(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===i){t=Yt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return up(t),e===null&&Ma(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Fa(r,i)?o=null:l!==null&&Fa(r,l)&&(t.flags|=32),Fp(e,t),He(e,t,o,n),t.child;case 6:return e===null&&Ma(t),null;case 13:return Dp(e,t,n);case 4:return Vs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Sc(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,fe(Il,r._currentValue),r._currentValue=o,l!==null)if(_t(l.value,o)){if(l.children===i.children&&!Ze.current){t=Yt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Wt(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ba(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ba(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pr(t,n),i=kt(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),Ec(e,t,r,i,n);case 15:return Pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),ul(e,t),t.tag=1,Je(r)?(e=!0,jl(t)):e=!1,pr(t,n),_p(t,r,i),Ua(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return Op(e,t,n);case 22:return Lp(e,t,n)}throw Error(D(156,t.tag))};function Jp(e,t){return Nd(e,t)}function Dy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,r){return new Dy(e,t,n,r)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oy(e){if(typeof e=="function")return lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Es)return 11;if(e===Cs)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")lu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Zn:return Rn(n.children,i,l,t);case Ss:o=8,i|=8;break;case da:return e=xt(12,n,t,i|2),e.elementType=da,e.lanes=l,e;case pa:return e=xt(13,n,t,i),e.elementType=pa,e.lanes=l,e;case ha:return e=xt(19,n,t,i),e.elementType=ha,e.lanes=l,e;case ud:return ro(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ad:o=10;break e;case sd:o=9;break e;case Es:o=11;break e;case Cs:o=14;break e;case ln:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=xt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Rn(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function ro(e,t,n,r){return e=xt(22,e,r,t),e.elementType=ud,e.lanes=n,e.stateNode={isHidden:!1},e}function Go(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function qo(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jo(0),this.expirationTimes=jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,r,i,l,o,a,s){return e=new zy(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=xt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hs(l),e}function My(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function eh(e){if(!e)return kn;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(Je(n))return ep(e,n,t)}return t}function th(e,t,n,r,i,l,o,a,s){return e=ou(n,r,!0,e,i,l,o,a,s),e.context=eh(null),n=e.current,r=We(),i=yn(n),l=Wt(r,i),l.callback=t??null,mn(n,l,i),e.current.lanes=i,Si(e,i,r),et(e,r),e}function io(e,t,n,r){var i=t.current,l=We(),o=yn(i);return n=eh(n),t.context===null?t.context=n:t.pendingContext=n,t=Wt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mn(i,t,o),e!==null&&(jt(e,i,o,l),ol(e,i,o)),o}function Bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function au(e,t){Dc(e,t),(e=e.alternate)&&Dc(e,t)}function By(){return null}var nh=typeof reportError=="function"?reportError:function(e){console.error(e)};function su(e){this._internalRoot=e}lo.prototype.render=su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));io(e,t,null,null)};lo.prototype.unmount=su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bn(function(){io(null,e,null,null)}),t[qt]=null}};function lo(e){this._internalRoot=e}lo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ld();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Rd(e)}};function uu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Oc(){}function $y(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Bl(o);l.call(u)}}var o=th(t,r,e,0,null,!1,!1,"",Oc);return e._reactRootContainer=o,e[qt]=o.current,fi(e.nodeType===8?e.parentNode:e),Bn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Bl(s);a.call(u)}}var s=ou(e,0,!1,null,null,!1,!1,"",Oc);return e._reactRootContainer=s,e[qt]=s.current,fi(e.nodeType===8?e.parentNode:e),Bn(function(){io(t,s,n,r)}),s}function ao(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var a=i;i=function(){var s=Bl(o);a.call(s)}}io(t,o,e,i)}else o=$y(n,t,e,i,r);return Bl(o)}Ad=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hr(t.pendingLanes);n!==0&&(Ts(t,n|1),et(t,be()),!(re&6)&&(br=be()+500,Sn()))}break;case 13:Bn(function(){var r=Qt(e,1);if(r!==null){var i=We();jt(r,e,1,i)}}),au(e,1)}};_s=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var n=We();jt(t,e,134217728,n)}au(e,134217728)}};Pd=function(e){if(e.tag===13){var t=yn(e),n=Qt(e,t);if(n!==null){var r=We();jt(n,e,t,r)}au(e,t)}};Ld=function(){return ae};Fd=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ea=function(e,t,n){switch(t){case"input":if(ya(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xl(r);if(!i)throw Error(D(90));fd(r),ya(r,i)}}}break;case"textarea":pd(e,n);break;case"select":t=n.value,t!=null&&ur(e,!!n.multiple,t,!1)}};kd=nu;wd=Bn;var Uy={usingClientEntryPoint:!1,Events:[Ci,nr,Xl,xd,vd,nu]},zr={findFiberByHostInstance:An,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hy={bundleType:zr.bundleType,version:zr.version,rendererPackageName:zr.rendererPackageName,rendererConfig:zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ed(e),e===null?null:e.stateNode},findFiberByHostInstance:zr.findFiberByHostInstance||By,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yi.isDisabled&&Yi.supportsFiber)try{ql=Yi.inject(Hy),Ft=Yi}catch{}}ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uy;ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uu(t))throw Error(D(200));return My(e,t,null,n)};ct.createRoot=function(e,t){if(!uu(e))throw Error(D(299));var n=!1,r="",i=nh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,r,i),e[qt]=t.current,fi(e.nodeType===8?e.parentNode:e),new su(t)};ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Ed(t),e=e===null?null:e.stateNode,e};ct.flushSync=function(e){return Bn(e)};ct.hydrate=function(e,t,n){if(!oo(t))throw Error(D(200));return ao(null,e,t,!0,n)};ct.hydrateRoot=function(e,t,n){if(!uu(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=nh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=th(t,null,e,1,n??null,i,!1,l,o),e[qt]=t.current,fi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lo(t)};ct.render=function(e,t,n){if(!oo(t))throw Error(D(200));return ao(null,e,t,!1,n)};ct.unmountComponentAtNode=function(e){if(!oo(e))throw Error(D(40));return e._reactRootContainer?(Bn(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[qt]=null})}),!0):!1};ct.unstable_batchedUpdates=nu;ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!oo(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return ao(e,t,n,!1,r)};ct.version="18.3.1-next-f1338f8080-20240426";function rh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rh)}catch(e){console.error(e)}}rh(),rd.exports=ct;var Vy=rd.exports,zc=Vy;ca.createRoot=zc.createRoot,ca.hydrateRoot=zc.hydrateRoot;function Wy(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qy={};function Mc(e,t){return(Qy.jsx?qy:Gy).test(e)}const Yy=/[ \t\n\f\r]/g;function Ky(e){return typeof e=="object"?e.type==="text"?Bc(e.value):!1:Bc(e)}function Bc(e){return e.replace(Yy,"")===""}class ji{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ji.prototype.normal={};ji.prototype.property={};ji.prototype.space=void 0;function ih(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ji(n,r,t)}function rs(e){return e.toLowerCase()}class tt{constructor(t,n){this.attribute=n,this.property=t}}tt.prototype.attribute="";tt.prototype.booleanish=!1;tt.prototype.boolean=!1;tt.prototype.commaOrSpaceSeparated=!1;tt.prototype.commaSeparated=!1;tt.prototype.defined=!1;tt.prototype.mustUseProperty=!1;tt.prototype.number=!1;tt.prototype.overloadedBoolean=!1;tt.prototype.property="";tt.prototype.spaceSeparated=!1;tt.prototype.space=void 0;let Xy=0;const K=Vn(),Se=Vn(),is=Vn(),z=Vn(),ce=Vn(),mr=Vn(),it=Vn();function Vn(){return 2**++Xy}const ls=Object.freeze(Object.defineProperty({__proto__:null,boolean:K,booleanish:Se,commaOrSpaceSeparated:it,commaSeparated:mr,number:z,overloadedBoolean:is,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Qo=Object.keys(ls);class cu extends tt{constructor(t,n,r,i){let l=-1;if(super(t,n),$c(this,"space",i),typeof r=="number")for(;++l<Qo.length;){const o=Qo[l];$c(this,Qo[l],(r&ls[o])===ls[o])}}}cu.prototype.defined=!0;function $c(e,t,n){n&&(e[t]=n)}function jr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new cu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[rs(r)]=r,n[rs(l.attribute)]=r}return new ji(t,n,e.space)}const lh=jr({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:ce,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:z,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:ce,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Se,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oh(e,t){return t in e?e[t]:t}function ah(e,t){return oh(e,t.toLowerCase())}const Zy=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mr,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:ce,autoFocus:K,autoPlay:K,blocking:ce,capture:null,charSet:null,checked:K,cite:null,className:ce,cols:z,colSpan:null,content:null,contentEditable:Se,controls:K,controlsList:ce,coords:z|mr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:is,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:ce,height:z,hidden:is,high:z,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:ce,itemRef:ce,itemScope:K,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,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:K,optimum:z,pattern:null,ping:ce,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:ce,required:K,reversed:K,rows:z,rowSpan:z,sandbox:ce,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:Se,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:ah}),Jy=jr({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:it,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:ce,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:mr,g2:mr,glyphName:mr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:it,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:it,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:it,rev:it,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:it,requiredFeatures:it,requiredFonts:it,requiredFormats:it,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:it,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:it,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:it,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oh}),sh=jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),uh=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ah}),ch=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ex={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"},tx=/[A-Z]/g,Uc=/-[a-z]/g,nx=/^data[-\w.:]+$/i;function rx(e,t){const n=rs(t);let r=t,i=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&nx.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Uc,lx);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Uc.test(l)){let o=l.replace(tx,ix);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=cu}return new i(r,t)}function ix(e){return"-"+e.toLowerCase()}function lx(e){return e.charAt(1).toUpperCase()}const ox=ih([lh,Zy,sh,uh,ch],"html"),fu=ih([lh,Jy,sh,uh,ch],"svg");function ax(e){return e.join(" ").trim()}var du={},Hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,sx=/\n/g,ux=/^\s*/,cx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fx=/^:\s*/,dx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,px=/^[;\s]*/,hx=/^\s+|\s+$/g,mx=`
|
|
41
|
+
`,Vc="/",Wc="*",In="",gx="comment",yx="declaration";function xx(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var v=m.match(sx);v&&(n+=v.length);var w=m.lastIndexOf(mx);r=~w?m.length-w:r+m.length}function l(){var m={line:n,column:r};return function(v){return v.position=new o(m),u(),v}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var v=new Error(t.source+":"+n+":"+r+": "+m);if(v.reason=m,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function s(m){var v=m.exec(e);if(v){var w=v[0];return i(w),e=e.slice(w.length),v}}function u(){s(ux)}function f(m){var v;for(m=m||[];v=c();)v!==!1&&m.push(v);return m}function c(){var m=l();if(!(Vc!=e.charAt(0)||Wc!=e.charAt(1))){for(var v=2;In!=e.charAt(v)&&(Wc!=e.charAt(v)||Vc!=e.charAt(v+1));)++v;if(v+=2,In===e.charAt(v-1))return a("End of comment missing");var w=e.slice(2,v-2);return r+=2,i(w),e=e.slice(v),r+=2,m({type:gx,comment:w})}}function d(){var m=l(),v=s(cx);if(v){if(c(),!s(fx))return a("property missing ':'");var w=s(dx),x=m({type:yx,property:Gc(v[0].replace(Hc,In)),value:w?Gc(w[0].replace(Hc,In)):In});return s(px),x}}function h(){var m=[];f(m);for(var v;v=d();)v!==!1&&(m.push(v),f(m));return m}return u(),h()}function Gc(e){return e?e.replace(hx,In):In}var vx=xx,kx=gl&&gl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(du,"__esModule",{value:!0});du.default=bx;const wx=kx(vx);function bx(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,wx.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?t(o,a,l):a&&(n=n||{},n[o]=a)}),n}var so={};Object.defineProperty(so,"__esModule",{value:!0});so.camelCase=void 0;var Sx=/^--[a-zA-Z0-9_-]+$/,Ex=/-([a-z])/g,Cx=/^[^-]+$/,Nx=/^-(webkit|moz|ms|o|khtml)-/,jx=/^-(ms)-/,Tx=function(e){return!e||Cx.test(e)||Sx.test(e)},_x=function(e,t){return t.toUpperCase()},qc=function(e,t){return"".concat(t,"-")},Ix=function(e,t){return t===void 0&&(t={}),Tx(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(jx,qc):e=e.replace(Nx,qc),e.replace(Ex,_x))};so.camelCase=Ix;var Ax=gl&&gl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Px=Ax(du),Lx=so;function os(e,t){var n={};return!e||typeof e!="string"||(0,Px.default)(e,function(r,i){r&&i&&(n[(0,Lx.camelCase)(r,t)]=i)}),n}os.default=os;var Fx=os;const Rx=ms(Fx),fh=dh("end"),pu=dh("start");function dh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Dx(e){const t=pu(e),n=fh(e);if(t&&n)return{start:t,end:n}}function ei(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qc(e.position):"start"in e||"end"in e?Qc(e):"line"in e||"column"in e?as(e):""}function as(e){return Yc(e&&e.line)+":"+Yc(e&&e.column)}function Qc(e){return as(e&&e.start)+"-"+as(e&&e.end)}function Yc(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=ei(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const hu={}.hasOwnProperty,Ox=new Map,zx=/[A-Z]/g,Mx=new Set(["table","tbody","thead","tfoot","tr"]),Bx=new Set(["td","th"]),ph="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $x(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Yx(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Qx(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fu:ox,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=hh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function hh(e,t,n){if(t.type==="element")return Ux(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Hx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Wx(e,t,n);if(t.type==="mdxjsEsm")return Vx(e,t);if(t.type==="root")return Gx(e,t,n);if(t.type==="text")return qx(e,t)}function Ux(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=fu,e.schema=i),e.ancestors.push(t);const l=gh(e,t.tagName,!1),o=Kx(e,t);let a=gu(e,t);return Mx.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Ky(s):!0})),mh(e,o,l,t),mu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Hx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ki(e,t.position)}function Vx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ki(e,t.position)}function Wx(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=fu,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:gh(e,t.name,!0),o=Xx(e,t),a=gu(e,t);return mh(e,o,l,t),mu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Gx(e,t,n){const r={};return mu(r,gu(e,t)),e.create(t,e.Fragment,r,n)}function qx(e,t){return t.value}function mh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function mu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Qx(e,t,n){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?n:t;return a?u(l,o,a):u(l,o)}}function Yx(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=pu(r);return t(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Kx(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&hu.call(t.properties,i)){const l=Zx(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Bx.has(t.tagName)?r=a:n[o]=a}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Xx(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ki(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else ki(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function gu(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ox;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=hh(e,l,o);a!==void 0&&n.push(a)}return n}function Zx(e,t,n){const r=rx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wy(n):ax(n)),r.property==="style"){let i=typeof n=="object"?n:Jx(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ev(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ex[r.property]||r.property:r.attribute,n]}}function Jx(e,t){try{return Rx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ph+"#cannot-parse-style-attribute",i}}function gh(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const a=Mc(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Mc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return hu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ki(e)}function ki(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ph+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ev(e){const t={};let n;for(n in e)hu.call(e,n)&&(t[tv(n)]=e[n]);return t}function tv(e){let t=e.replace(zx,nv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nv(e){return"-"+e.toLowerCase()}const Yo={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"]},rv={};function yu(e,t){const n=rv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yh(e,r,i)}function yh(e,t,n){if(iv(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Kc(e.children,t,n)}return Array.isArray(e)?Kc(e,t,n):""}function Kc(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yh(e[i],t,n);return r.join("")}function iv(e){return!!(e&&typeof e=="object")}const Xc=document.createElement("i");function xu(e){const t="&"+e+";";Xc.innerHTML=t;const n=Xc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function st(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function yt(e,t){return e.length>0?(st(e,e.length,0,t),e):t}const Zc={}.hasOwnProperty;function xh(e){const t={};let n=-1;for(;++n<e.length;)lv(t,e[n]);return t}function lv(e,t){let n;for(n in t){const i=(Zc.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Zc.call(i,o)||(i[o]=[]);const a=l[o];ov(i[o],Array.isArray(a)?a:a?[a]:[])}}}function ov(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);st(e,0,0,r)}function vh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ve=En(/[A-Za-z]/),ze=En(/[\dA-Za-z]/),av=En(/[#-'*+\--9=?A-Z^-~]/);function $l(e){return e!==null&&(e<32||e===127)}const ss=En(/\d/),sv=En(/[\dA-Fa-f]/),uv=En(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const uo=En(new RegExp("\\p{P}|\\p{S}","u")),$n=En(/\s/);function En(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return J(s)?(e.enter(n),a(s)):t(s)}function a(s){return J(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const cv={tokenize:fv};function fv(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return G(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const dv={tokenize:pv},Jc={tokenize:hv};function pv(e){const t=this,n=[];let r=0,i,l,o;return a;function a(g){if(r<n.length){const b=n[r];return t.containerState=b[1],e.attempt(b[0].continuation,s,u)(g)}return u(g)}function s(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const b=t.events.length;let N=b,S;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){S=t.events[N][1].end;break}x(r);let j=b;for(;j<t.events.length;)t.events[j][1].end={...S},j++;return st(t.events,N+1,0,t.events.slice(b)),t.events.length=j,u(g)}return a(g)}function u(g){if(r===n.length){if(!i)return d(g);if(i.currentConstruct&&i.currentConstruct.concrete)return m(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jc,f,c)(g)}function f(g){return i&&y(),x(r),d(g)}function c(g){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(g)}function d(g){return t.containerState={},e.attempt(Jc,h,m)(g)}function h(g){return r++,n.push([t.currentConstruct,t.containerState]),d(g)}function m(g){if(g===null){i&&y(),x(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),v(g)}function v(g){if(g===null){w(e.exit("chunkFlow"),!0),x(0),e.consume(g);return}return G(g)?(e.consume(g),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(g),v)}function w(g,b){const N=t.sliceStream(g);if(b&&N.push(null),g.previous=l,l&&(l.next=g),l=g,i.defineSkip(g.start),i.write(N),t.parser.lazy[g.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const j=t.events.length;let T=j,L,C;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(L){C=t.events[T][1].end;break}L=!0}for(x(r),S=j;S<t.events.length;)t.events[S][1].end={...C},S++;st(t.events,T+1,0,t.events.slice(j)),t.events.length=S}}function x(g){let b=n.length;for(;b-- >g;){const N=n[b];t.containerState=N[1],N[0].exit.call(t,e)}n.length=g}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function hv(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sr(e){if(e===null||ue(e)||$n(e))return 1;if(uo(e))return 2}function co(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const us={name:"attention",resolveAll:mv,tokenize:gv};function mv(e,t){let n=-1,r,i,l,o,a,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};ef(c,-s),ef(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=yt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=yt(u,co(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yt(u,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=yt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,st(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function gv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sr(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Sr(s),c=!f||f===2&&i||n.includes(s),d=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!d)),u._close=!!(l===42?d:d&&(f||!c)),t(s)}}function ef(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yv={name:"autolink",tokenize:xv};function xv(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Ve(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||ze(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ze(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||$l(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):av(h)?(e.consume(h),u):n(h)}function f(h){return ze(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||ze(h))&&r++<63){const m=h===45?d:c;return e.consume(h),m}return n(h)}}const Ti={partial:!0,tokenize:vv};function vv(e,t,n){return r;function r(l){return J(l)?ne(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||G(l)?t(l):n(l)}}const kh={continuation:{tokenize:wv},exit:bv,name:"blockQuote",tokenize:kv};function kv(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return J(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function wv(e,t,n){const r=this;return i;function i(o){return J(o)?ne(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(kh,t,n)(o)}}function bv(e){e.exit("blockQuote")}const wh={name:"characterEscape",tokenize:Sv};function Sv(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return uv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const bh={name:"characterReference",tokenize:Ev};function Ev(e,t,n){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ze,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=sv,f):(e.enter("characterReferenceValue"),l=7,o=ss,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===ze&&!xu(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const tf={partial:!0,tokenize:Nv},nf={concrete:!0,name:"codeFenced",tokenize:Cv};function Cv(e,t,n){const r=this,i={partial:!0,tokenize:N};let l=0,o=0,a;return s;function s(S){return u(S)}function u(S){const j=r.events[r.events.length-1];return l=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(o++,e.consume(S),f):o<3?n(S):(e.exit("codeFencedFenceSequence"),J(S)?ne(e,c,"whitespace")(S):c(S))}function c(S){return S===null||G(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(tf,v,b)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||G(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):J(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),d)}function h(S){return S===null||G(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||G(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?n(S):(e.consume(S),m)}function v(S){return e.attempt(i,b,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return l>0&&J(S)?ne(e,y,"linePrefix",l+1)(S):y(S)}function y(S){return S===null||G(S)?e.check(tf,v,b)(S):(e.enter("codeFlowValue"),g(S))}function g(S){return S===null||G(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),g)}function b(S){return e.exit("codeFenced"),t(S)}function N(S,j,T){let L=0;return C;function C(F){return S.enter("lineEnding"),S.consume(F),S.exit("lineEnding"),R}function R(F){return S.enter("codeFencedFence"),J(F)?ne(S,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):M(F)}function M(F){return F===a?(S.enter("codeFencedFenceSequence"),$(F)):T(F)}function $(F){return F===a?(L++,S.consume(F),$):L>=o?(S.exit("codeFencedFenceSequence"),J(F)?ne(S,U,"whitespace")(F):U(F)):T(F)}function U(F){return F===null||G(F)?(S.exit("codeFencedFence"),j(F)):T(F)}}}function Nv(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ko={name:"codeIndented",tokenize:Tv},jv={partial:!0,tokenize:_v};function Tv(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):G(u)?e.attempt(jv,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function _v(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):G(o)?i(o):n(o)}}const Iv={name:"codeText",previous:Pv,resolve:Av,tokenize:Lv};function Av(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Pv(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lv(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):G(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||G(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class Fv{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Mr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Mr(this.left,n.reverse())}}}function Mr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sh(e){const t={};let n=-1,r,i,l,o,a,s,u;const f=new Fv(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Rv(f,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return st(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Rv(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let f,c,d=-1,h=n,m=0,v=0;const w=[v];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(v=d+1,w.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),d=w.length;d--;){const x=a.slice(w[d],w[d+1]),y=l.pop();s.push([y,y+x.length-1]),e.splice(y,2,x)}for(s.reverse(),d=-1;++d<s.length;)u[m+s[d][0]]=m+s[d][1],m+=s[d][1]-s[d][0]-1;return u}const Dv={resolve:zv,tokenize:Mv},Ov={partial:!0,tokenize:Bv};function zv(e){return Sh(e),e}function Mv(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):G(a)?e.check(Ov,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Bv(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,l,"linePrefix")}function l(o){if(o===null||G(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Eh(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),d):x===null||x===32||x===41||$l(x)?n(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(x))}function d(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),d(x)):x===null||x===60||G(x)?n(x):(e.consume(x),x===92?m:h)}function m(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function v(x){return!f&&(x===null||x===41||ue(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(x)):f<u&&x===40?(e.consume(x),f++,v):x===41?(e.consume(x),f--,v):x===null||x===32||x===40||$l(x)?n(x):(e.consume(x),x===92?w:v)}function w(x){return x===40||x===41||x===92?(e.consume(x),v):v(x)}}function Ch(e,t,n,r,i,l){const o=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):G(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||G(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!J(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Nh(e,t,n,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),s(o)):d===null?n(d):G(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||G(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function ti(e,t){let n;return r;function r(i){return G(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):J(i)?ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const $v={name:"definition",tokenize:Hv},Uv={partial:!0,tokenize:Vv};function Hv(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Ch.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return ue(h)?ti(e,u)(h):u(h)}function u(h){return Eh(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Uv,c,c)(h)}function c(h){return J(h)?ne(e,d,"whitespace")(h):d(h)}function d(h){return h===null||G(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Vv(e,t,n){return r;function r(a){return ue(a)?ti(e,i)(a):n(a)}function i(a){return Nh(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?ne(e,o,"whitespace")(a):o(a)}function o(a){return a===null||G(a)?t(a):n(a)}}const Wv={name:"hardBreakEscape",tokenize:Gv};function Gv(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return G(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const qv={name:"headingAtx",resolve:Qv,tokenize:Yv};function Qv(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},st(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function Yv(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ue(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||G(f)?(e.exit("atxHeading"),t(f)):J(f)?ne(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||ue(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Kv=["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"],rf=["pre","script","style","textarea"],Xv={concrete:!0,name:"htmlFlow",resolveTo:ek,tokenize:tk},Zv={partial:!0,tokenize:rk},Jv={partial:!0,tokenize:nk};function ek(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function tk(e,t,n){const r=this;let i,l,o,a,s;return u;function u(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),l=!0,v):E===63?(e.consume(E),i=3,r.interrupt?t:k):Ve(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function d(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,a=0,m):Ve(E)?(e.consume(E),i=4,r.interrupt?t:k):n(E)}function h(E){return E===45?(e.consume(E),r.interrupt?t:k):n(E)}function m(E){const se="CDATA[";return E===se.charCodeAt(a++)?(e.consume(E),a===se.length?r.interrupt?t:M:m):n(E)}function v(E){return Ve(E)?(e.consume(E),o=String.fromCharCode(E),w):n(E)}function w(E){if(E===null||E===47||E===62||ue(E)){const se=E===47,_e=o.toLowerCase();return!se&&!l&&rf.includes(_e)?(i=1,r.interrupt?t(E):M(E)):Kv.includes(o.toLowerCase())?(i=6,se?(e.consume(E),x):r.interrupt?t(E):M(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?y(E):g(E))}return E===45||ze(E)?(e.consume(E),o+=String.fromCharCode(E),w):n(E)}function x(E){return E===62?(e.consume(E),r.interrupt?t:M):n(E)}function y(E){return J(E)?(e.consume(E),y):C(E)}function g(E){return E===47?(e.consume(E),C):E===58||E===95||Ve(E)?(e.consume(E),b):J(E)?(e.consume(E),g):C(E)}function b(E){return E===45||E===46||E===58||E===95||ze(E)?(e.consume(E),b):N(E)}function N(E){return E===61?(e.consume(E),S):J(E)?(e.consume(E),N):g(E)}function S(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,j):J(E)?(e.consume(E),S):T(E)}function j(E){return E===s?(e.consume(E),s=null,L):E===null||G(E)?n(E):(e.consume(E),j)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ue(E)?N(E):(e.consume(E),T)}function L(E){return E===47||E===62||J(E)?g(E):n(E)}function C(E){return E===62?(e.consume(E),R):n(E)}function R(E){return E===null||G(E)?M(E):J(E)?(e.consume(E),R):n(E)}function M(E){return E===45&&i===2?(e.consume(E),W):E===60&&i===1?(e.consume(E),te):E===62&&i===4?(e.consume(E),Y):E===63&&i===3?(e.consume(E),k):E===93&&i===5?(e.consume(E),V):G(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Zv,X,$)(E)):E===null||G(E)?(e.exit("htmlFlowData"),$(E)):(e.consume(E),M)}function $(E){return e.check(Jv,U,X)(E)}function U(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),F}function F(E){return E===null||G(E)?$(E):(e.enter("htmlFlowData"),M(E))}function W(E){return E===45?(e.consume(E),k):M(E)}function te(E){return E===47?(e.consume(E),o="",O):M(E)}function O(E){if(E===62){const se=o.toLowerCase();return rf.includes(se)?(e.consume(E),Y):M(E)}return Ve(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),O):M(E)}function V(E){return E===93?(e.consume(E),k):M(E)}function k(E){return E===62?(e.consume(E),Y):E===45&&i===2?(e.consume(E),k):M(E)}function Y(E){return E===null||G(E)?(e.exit("htmlFlowData"),X(E)):(e.consume(E),Y)}function X(E){return e.exit("htmlFlow"),t(E)}}function nk(e,t,n){const r=this;return i;function i(o){return G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function rk(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ti,t,n)}}const ik={name:"htmlText",tokenize:lk};function lk(e,t,n){const r=this;let i,l,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),N):k===63?(e.consume(k),g):Ve(k)?(e.consume(k),T):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Ve(k)?(e.consume(k),y):n(k)}function f(k){return k===45?(e.consume(k),h):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),d):G(k)?(o=c,te(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?W(k):k===45?d(k):c(k)}function m(k){const Y="CDATA[";return k===Y.charCodeAt(l++)?(e.consume(k),l===Y.length?v:m):n(k)}function v(k){return k===null?n(k):k===93?(e.consume(k),w):G(k)?(o=v,te(k)):(e.consume(k),v)}function w(k){return k===93?(e.consume(k),x):v(k)}function x(k){return k===62?W(k):k===93?(e.consume(k),x):v(k)}function y(k){return k===null||k===62?W(k):G(k)?(o=y,te(k)):(e.consume(k),y)}function g(k){return k===null?n(k):k===63?(e.consume(k),b):G(k)?(o=g,te(k)):(e.consume(k),g)}function b(k){return k===62?W(k):g(k)}function N(k){return Ve(k)?(e.consume(k),S):n(k)}function S(k){return k===45||ze(k)?(e.consume(k),S):j(k)}function j(k){return G(k)?(o=j,te(k)):J(k)?(e.consume(k),j):W(k)}function T(k){return k===45||ze(k)?(e.consume(k),T):k===47||k===62||ue(k)?L(k):n(k)}function L(k){return k===47?(e.consume(k),W):k===58||k===95||Ve(k)?(e.consume(k),C):G(k)?(o=L,te(k)):J(k)?(e.consume(k),L):W(k)}function C(k){return k===45||k===46||k===58||k===95||ze(k)?(e.consume(k),C):R(k)}function R(k){return k===61?(e.consume(k),M):G(k)?(o=R,te(k)):J(k)?(e.consume(k),R):L(k)}function M(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,$):G(k)?(o=M,te(k)):J(k)?(e.consume(k),M):(e.consume(k),U)}function $(k){return k===i?(e.consume(k),i=void 0,F):k===null?n(k):G(k)?(o=$,te(k)):(e.consume(k),$)}function U(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ue(k)?L(k):(e.consume(k),U)}function F(k){return k===47||k===62||ue(k)?L(k):n(k)}function W(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function te(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return J(k)?ne(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):V(k)}function V(k){return e.enter("htmlTextData"),o(k)}}const vu={name:"labelEnd",resolveAll:uk,resolveTo:ck,tokenize:fk},ok={tokenize:dk},ak={tokenize:pk},sk={tokenize:hk};function uk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&st(e,0,e.length,n),e}function ck(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=yt(a,e.slice(l+1,l+r+3)),a=yt(a,[["enter",f,t]]),a=yt(a,co(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=yt(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=yt(a,e.slice(o+1)),a=yt(a,[["exit",s,t]]),st(e,l,e.length,a),e}function fk(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(Tt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(ok,f,o?f:c)(d):d===91?e.attempt(ak,f,o?u:c)(d):o?f(d):c(d)}function u(d){return e.attempt(sk,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function dk(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ue(c)?ti(e,l)(c):l(c)}function l(c){return c===41?f(c):Eh(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ue(c)?ti(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?Nh(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ue(c)?ti(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function pk(e,t,n){const r=this;return i;function i(a){return Ch.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function hk(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const mk={name:"labelStartImage",resolveAll:vu.resolveAll,tokenize:gk};function gk(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const yk={name:"labelStartLink",resolveAll:vu.resolveAll,tokenize:xk};function xk(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Xo={name:"lineEnding",tokenize:vk};function vk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,t,"linePrefix")}}const pl={name:"thematicBreak",tokenize:kk};function kk(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||G(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?ne(e,a,"whitespace")(u):a(u))}}const Ye={continuation:{tokenize:Ek},exit:Nk,name:"list",tokenize:Sk},wk={partial:!0,tokenize:jk},bk={partial:!0,tokenize:Ck};function Sk(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:ss(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(pl,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return ss(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ti,r.interrupt?n:f,e.attempt(wk,d,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function c(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ek(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ti,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!J(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(bk,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ck(e,t,n){const r=this;return ne(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function Nk(e){e.exit(this.containerState.type)}function jk(e,t,n){const r=this;return ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!J(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const lf={name:"setextUnderline",resolveTo:Tk,tokenize:_k};function Tk(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function _k(e,t,n){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?ne(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ik={tokenize:Ak};function Ak(e){const t=this,n=e.attempt(Ti,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Dv,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Pk={resolveAll:Th()},Lk=jh("string"),Fk=jh("text");function jh(e){return{resolveAll:Th(e==="text"?Rk:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(f){return u(f)?l(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const h=c[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Th(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function Rk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Dk={42:Ye,43:Ye,45:Ye,48:Ye,49:Ye,50:Ye,51:Ye,52:Ye,53:Ye,54:Ye,55:Ye,56:Ye,57:Ye,62:kh},Ok={91:$v},zk={[-2]:Ko,[-1]:Ko,32:Ko},Mk={35:qv,42:pl,45:[lf,pl],60:Xv,61:lf,95:pl,96:nf,126:nf},Bk={38:bh,92:wh},$k={[-5]:Xo,[-4]:Xo,[-3]:Xo,33:mk,38:bh,42:us,60:[yv,ik],91:yk,92:[Wv,wh],93:vu,95:us,96:Iv},Uk={null:[us,Pk]},Hk={null:[42,95]},Vk={null:[]},Wk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Hk,contentInitial:Ok,disable:Vk,document:Dk,flow:Mk,flowInitial:zk,insideSpan:Uk,string:Bk,text:$k},Symbol.toStringTag,{value:"Module"}));function Gk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:j(N),check:j(S),consume:y,enter:g,exit:b,interrupt:j(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:m,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(R){return o=yt(o,R),w(),o[o.length-1]!==null?[]:(T(t,0),u.events=co(l,u.events,u),u.events)}function d(R,M){return Qk(h(R),M)}function h(R){return qk(o,R)}function m(){const{_bufferIndex:R,_index:M,line:$,column:U,offset:F}=r;return{_bufferIndex:R,_index:M,line:$,column:U,offset:F}}function v(R){i[R.line]=R.column,C()}function w(){let R;for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<M.length;)x(M.charCodeAt(r._bufferIndex));else x(M)}}function x(R){f=f(R)}function y(R){G(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,C()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function g(R,M){const $=M||{};return $.type=R,$.start=m(),u.events.push(["enter",$,u]),a.push($),$}function b(R){const M=a.pop();return M.end=m(),u.events.push(["exit",M,u]),M}function N(R,M){T(R,M.from)}function S(R,M){M.restore()}function j(R,M){return $;function $(U,F,W){let te,O,V,k;return Array.isArray(U)?X(U):"tokenize"in U?X([U]):Y(U);function Y(ie){return Ie;function Ie(nt){const dt=nt!==null&&ie[nt],$e=nt!==null&&ie.null,Zt=[...Array.isArray(dt)?dt:dt?[dt]:[],...Array.isArray($e)?$e:$e?[$e]:[]];return X(Zt)(nt)}}function X(ie){return te=ie,O=0,ie.length===0?W:E(ie[O])}function E(ie){return Ie;function Ie(nt){return k=L(),V=ie,ie.partial||(u.currentConstruct=ie),ie.name&&u.parser.constructs.disable.null.includes(ie.name)?_e():ie.tokenize.call(M?Object.assign(Object.create(u),M):u,s,se,_e)(nt)}}function se(ie){return R(V,k),F}function _e(ie){return k.restore(),++O<te.length?E(te[O]):W}}}function T(R,M){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&st(u.events,M,u.events.length-M,R.resolve(u.events.slice(M),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function L(){const R=m(),M=u.previous,$=u.currentConstruct,U=u.events.length,F=Array.from(a);return{from:U,restore:W};function W(){r=R,u.previous=M,u.currentConstruct=$,u.events.length=U,a=F,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function qk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Qk(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
42
|
+
`;break}case-3:{o=`\r
|
|
43
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Yk(e){const r={constructs:xh([Wk,...(e||{}).extensions||[]]),content:i(cv),defined:[],document:i(dv),flow:i(Ik),lazy:{},string:i(Lk),text:i(Fk)};return r;function i(l){return o;function o(a){return Gk(r,l,a)}}}function Kk(e){for(;!Sh(e););return e}const of=/[\0\t\n\r]/g;function Xk(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,d,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(of.lastIndex=c,u=of.exec(l),d=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(d),!u){t=l.slice(c);break}if(h===10&&c===d&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Zk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jk(e){return e.replace(Zk,ew)}function ew(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return vh(n.slice(l?2:1),l?16:10)}return xu(n)||e}const _h={}.hasOwnProperty;function tw(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),nw(n)(Kk(Yk(n).document().write(Xk()(e,t,!0))))}function nw(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ve),autolinkProtocol:L,autolinkEmail:L,atxHeading:l(xo),blockQuote:l($e),characterEscape:L,characterReference:L,codeFenced:l(Zt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Zt,o),codeText:l(yo,o),codeTextData:L,data:L,codeFlowValue:L,definition:l(Wn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(_r),hardBreakEscape:l(Gn),hardBreakTrailing:l(Gn),htmlFlow:l(Ir,o),htmlFlowData:L,htmlText:l(Ir,o),htmlTextData:L,image:l(Ii),label:o,link:l(ve),listItem:l(Pi),listItemValue:d,listOrdered:l(Ai,c),listUnordered:l(Ai),paragraph:l(Cn),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(xo),strong:l(vo),thematicBreak:l(wo)},exit:{atxHeading:s(),atxHeadingSequence:N,autolink:s(),autolinkEmail:dt,autolinkProtocol:nt,blockQuote:s(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:ie,characterReference:Ie,codeFenced:s(w),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:s(x),codeText:s(F),codeTextData:C,data:C,definition:s(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s($),htmlFlowData:C,htmlText:s(U),htmlTextData:C,image:s(te),label:V,labelText:O,lineEnding:R,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:se,resourceDestinationString:k,resourceTitleString:Y,resource:X,setextHeading:s(T),setextHeadingLineSequence:j,setextHeadingText:S,strong:s(),thematicBreak:s()}};Ih(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let B={type:"root",children:[]};const q={stack:[B],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},Z=[];let oe=-1;for(;++oe<_.length;)if(_[oe][1].type==="listOrdered"||_[oe][1].type==="listUnordered")if(_[oe][0]==="enter")Z.push(oe);else{const ke=Z.pop();oe=i(_,ke,oe)}for(oe=-1;++oe<_.length;){const ke=t[_[oe][0]];_h.call(ke,_[oe][1].type)&&ke[_[oe][1].type].call(Object.assign({sliceSerialize:_[oe][2].sliceSerialize},q),_[oe][1])}if(q.tokenStack.length>0){const ke=q.tokenStack[q.tokenStack.length-1];(ke[1]||af).call(q,void 0,ke[0])}for(B.position={start:nn(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:nn(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<t.transforms.length;)B=t.transforms[oe](B)||B;return B}function i(_,B,q){let Z=B-1,oe=-1,ke=!1,zt,pt,Jt,en;for(;++Z<=q;){const Fe=_[Z];switch(Fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Fe[0]==="enter"?oe++:oe--,en=void 0;break}case"lineEndingBlank":{Fe[0]==="enter"&&(zt&&!en&&!oe&&!Jt&&(Jt=Z),en=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:en=void 0}if(!oe&&Fe[0]==="enter"&&Fe[1].type==="listItemPrefix"||oe===-1&&Fe[0]==="exit"&&(Fe[1].type==="listUnordered"||Fe[1].type==="listOrdered")){if(zt){let P=Z;for(pt=void 0;P--;){const Q=_[P];if(Q[1].type==="lineEnding"||Q[1].type==="lineEndingBlank"){if(Q[0]==="exit")continue;pt&&(_[pt][1].type="lineEndingBlank",ke=!0),Q[1].type="lineEnding",pt=P}else if(!(Q[1].type==="linePrefix"||Q[1].type==="blockQuotePrefix"||Q[1].type==="blockQuotePrefixWhitespace"||Q[1].type==="blockQuoteMarker"||Q[1].type==="listItemIndent"))break}Jt&&(!pt||Jt<pt)&&(zt._spread=!0),zt.end=Object.assign({},pt?_[pt][1].start:Fe[1].end),_.splice(pt||Z,0,["exit",zt,Fe[2]]),Z++,q++}if(Fe[1].type==="listItemPrefix"){const P={type:"listItem",_spread:!1,start:Object.assign({},Fe[1].start),end:void 0};zt=P,_.splice(Z,0,["enter",P,Fe[2]]),Z++,q++,Jt=void 0,en=!0}}}return _[B][1]._spread=ke,q}function l(_,B){return q;function q(Z){a.call(this,_(Z),Z),B&&B.call(this,Z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(_,B,q){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([B,q||void 0]),_.position={start:nn(B.start),end:void 0}}function s(_){return B;function B(q){_&&_.call(this,q),u.call(this,q)}}function u(_,B){const q=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==_.type&&(B?B.call(this,_,Z[0]):(Z[1]||af).call(this,_,Z[0]));else throw new Error("Cannot close `"+_.type+"` ("+ei({start:_.start,end:_.end})+"): it’s not open");q.position.end=nn(_.end)}function f(){return yu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(_){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){const _=this.resume(),B=this.stack[this.stack.length-1];B.lang=_}function m(){const _=this.resume(),B=this.stack[this.stack.length-1];B.meta=_}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const _=this.resume(),B=this.stack[this.stack.length-1];B.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const _=this.resume(),B=this.stack[this.stack.length-1];B.value=_.replace(/(\r?\n|\r)$/g,"")}function y(_){const B=this.resume(),q=this.stack[this.stack.length-1];q.label=B,q.identifier=Tt(this.sliceSerialize(_)).toLowerCase()}function g(){const _=this.resume(),B=this.stack[this.stack.length-1];B.title=_}function b(){const _=this.resume(),B=this.stack[this.stack.length-1];B.url=_}function N(_){const B=this.stack[this.stack.length-1];if(!B.depth){const q=this.sliceSerialize(_).length;B.depth=q}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function j(_){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function L(_){const q=this.stack[this.stack.length-1].children;let Z=q[q.length-1];(!Z||Z.type!=="text")&&(Z=ko(),Z.position={start:nn(_.start),end:void 0},q.push(Z)),this.stack.push(Z)}function C(_){const B=this.stack.pop();B.value+=this.sliceSerialize(_),B.position.end=nn(_.end)}function R(_){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=B.children[B.children.length-1];q.position.end=nn(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(L.call(this,_),C.call(this,_))}function M(){this.data.atHardBreak=!0}function $(){const _=this.resume(),B=this.stack[this.stack.length-1];B.value=_}function U(){const _=this.resume(),B=this.stack[this.stack.length-1];B.value=_}function F(){const _=this.resume(),B=this.stack[this.stack.length-1];B.value=_}function W(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=B,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function te(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=B,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function O(_){const B=this.sliceSerialize(_),q=this.stack[this.stack.length-2];q.label=Jk(B),q.identifier=Tt(B).toLowerCase()}function V(){const _=this.stack[this.stack.length-1],B=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const Z=_.children;q.children=Z}else q.alt=B}function k(){const _=this.resume(),B=this.stack[this.stack.length-1];B.url=_}function Y(){const _=this.resume(),B=this.stack[this.stack.length-1];B.title=_}function X(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function se(_){const B=this.resume(),q=this.stack[this.stack.length-1];q.label=B,q.identifier=Tt(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function _e(_){this.data.characterReferenceType=_.type}function ie(_){const B=this.sliceSerialize(_),q=this.data.characterReferenceType;let Z;q?(Z=vh(B,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=xu(B);const oe=this.stack[this.stack.length-1];oe.value+=Z}function Ie(_){const B=this.stack.pop();B.position.end=nn(_.end)}function nt(_){C.call(this,_);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(_)}function dt(_){C.call(this,_);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(_)}function $e(){return{type:"blockquote",children:[]}}function Zt(){return{type:"code",lang:null,meta:null,value:""}}function yo(){return{type:"inlineCode",value:""}}function Wn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _r(){return{type:"emphasis",children:[]}}function xo(){return{type:"heading",depth:0,children:[]}}function Gn(){return{type:"break"}}function Ir(){return{type:"html",value:""}}function Ii(){return{type:"image",title:null,url:"",alt:null}}function ve(){return{type:"link",title:null,url:"",children:[]}}function Ai(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function Pi(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function vo(){return{type:"strong",children:[]}}function ko(){return{type:"text",value:""}}function wo(){return{type:"thematicBreak"}}}function nn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ih(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ih(e,r):rw(e,r)}}function rw(e,t){let n;for(n in t)if(_h.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function af(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ei({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ei({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ei({start:t.start,end:t.end})+") is still open")}function iw(e){const t=this;t.parser=n;function n(r){return tw(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function lw(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ow(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
44
|
+
`}]}function aw(e,t){const n=t.value?t.value+`
|
|
45
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function sw(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uw(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cw(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Tr(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function fw(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ah(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function pw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ah(e,t);const i={src:Tr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function hw(e,t){const n={src:Tr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mw(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function gw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ah(e,t);const i={href:Tr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function yw(e,t){const n={href:Tr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xw(e,t,n){const r=e.all(t),i=n?vw(n):Ph(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
|
|
46
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
47
|
+
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function vw(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ph(n[r])}return t}function Ph(e){const t=e.spread;return t??e.children.length>1}function kw(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function ww(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bw(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Sw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ew(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=pu(t.children[1]),s=fh(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function Cw(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],d={},h=o?o[s]:void 0;h&&(d.align=h);let m={type:"element",tagName:l,properties:d,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function Nw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const sf=9,uf=32;function jw(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(cf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(cf(t.slice(i),i>0,!1)),l.join("")}function cf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===sf||l===uf;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===sf||l===uf;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Tw(e,t){const n={type:"text",value:jw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _w(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Iw={blockquote:lw,break:ow,code:aw,delete:sw,emphasis:uw,footnoteReference:cw,heading:fw,html:dw,imageReference:pw,image:hw,inlineCode:mw,linkReference:gw,link:yw,listItem:xw,list:kw,paragraph:ww,root:bw,strong:Sw,table:Ew,tableCell:Nw,tableRow:Cw,text:Tw,thematicBreak:_w,toml:Ki,yaml:Ki,definition:Ki,footnoteDefinition:Ki};function Ki(){}const Lh=-1,fo=0,ni=1,Ul=2,ku=3,wu=4,bu=5,Su=6,Fh=7,Rh=8,Aw=typeof self=="object"?self:globalThis,ff=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Aw[e](t)},Pw=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case fo:case Lh:return n(o,i);case ni:{const a=n([],i);for(const s of o)a.push(r(s));return a}case Ul:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case ku:return n(new Date(o),i);case wu:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case bu:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case Su:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case Fh:{const{name:a,message:s}=o;return n(ff(a,s),i)}case Rh:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(ff(l,o),i)};return r},df=e=>Pw(new Map,e)(0),Qn="",{toString:Lw}={},{keys:Fw}=Object,Br=e=>{const t=typeof e;if(t!=="object"||!e)return[fo,t];const n=Lw.call(e).slice(8,-1);switch(n){case"Array":return[ni,Qn];case"Object":return[Ul,Qn];case"Date":return[ku,Qn];case"RegExp":return[wu,Qn];case"Map":return[bu,Qn];case"Set":return[Su,Qn];case"DataView":return[ni,n]}return n.includes("Array")?[ni,n]:n.includes("Error")?[Fh,n]:[Ul,n]},Xi=([e,t])=>e===fo&&(t==="function"||t==="symbol"),Rw=(e,t,n,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},l=o=>{if(n.has(o))return n.get(o);let[a,s]=Br(o);switch(a){case fo:{let f=o;switch(s){case"bigint":a=Rh,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Lh],o)}return i([a,f],o)}case ni:{if(s){let d=o;return s==="DataView"?d=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(d=new Uint8Array(o)),i([s,[...d]],o)}const f=[],c=i([a,f],o);for(const d of o)f.push(l(d));return c}case Ul:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const d of Fw(o))(e||!Xi(Br(o[d])))&&f.push([l(d),l(o[d])]);return c}case ku:return i([a,o.toISOString()],o);case wu:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case bu:{const f=[],c=i([a,f],o);for(const[d,h]of o)(e||!(Xi(Br(d))||Xi(Br(h))))&&f.push([l(d),l(h)]);return c}case Su:{const f=[],c=i([a,f],o);for(const d of o)(e||!Xi(Br(d)))&&f.push(l(d));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},pf=(e,{json:t,lossy:n}={})=>{const r=[];return Rw(!(t||n),!!t,new Map,r)(e),r},Hl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?df(pf(e,t)):structuredClone(e):(e,t)=>df(pf(e,t));function Dw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ow(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dw,r=e.options.footnoteBackLabel||Ow,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=Tr(c.toLowerCase());let h=0;const m=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++h<=v;){m.length>0&&m.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,h);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const y=w.children[w.children.length-1];y&&y.type==="text"?y.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else f.push(...m);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Hl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
48
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
49
|
+
`}]}}const po=function(e){if(e==null)return Uw;if(typeof e=="function")return ho(e);if(typeof e=="object")return Array.isArray(e)?Mw(e):Bw(e);if(typeof e=="string")return $w(e);throw new Error("Expected function, string, or object as test")};function Mw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=po(e[n]);return ho(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Bw(e){const t=e;return ho(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function $w(e){return ho(t);function t(n){return n&&n.type===e}}function ho(e){return t;function t(n,r,i){return!!(Hw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Uw(){return!0}function Hw(e){return e!==null&&typeof e=="object"&&"type"in e}const Dh=[],Vw=!0,cs=!1,Ww="skip";function Oh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=po(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=Dh,m,v,w;if((!t||l(s,u,f[f.length-1]||void 0))&&(h=Gw(n(s,f)),h[0]===cs))return h;if("children"in s&&s.children){const x=s;if(x.children&&h[0]!==Ww)for(v=(r?x.children.length:-1)+o,w=f.concat(x);v>-1&&v<x.children.length;){const y=x.children[v];if(m=a(y,v,w)(),m[0]===cs)return m;v=typeof m[1]=="number"?m[1]:v+o}}return h}}}function Gw(e){return Array.isArray(e)?e:typeof e=="number"?[Vw,e]:e==null?Dh:[e]}function Eu(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),Oh(e,l,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const fs={}.hasOwnProperty,qw={};function Qw(e,t){const n=t||qw,r=new Map,i=new Map,l=new Map,o={...Iw,...n.handlers},a={all:u,applyData:Kw,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:Yw,wrap:Zw};return Eu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),a;function s(f,c){const d=f.type,h=a.handlers[d];if(fs.call(a.handlers,d)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in f){const{children:v,...w}=f,x=Hl(w);return x.children=a.all(f),x}return Hl(f)}return(a.options.unknownHandler||Xw)(a,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let h=-1;for(;++h<d.length;){const m=a.one(d[h],f);if(m){if(h&&d[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=hf(m.value)),!Array.isArray(m)&&m.type==="element")){const v=m.children[0];v&&v.type==="text"&&(v.value=hf(v.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function Yw(e,t){e.position&&(t.position=Dx(e))}function Kw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,Hl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Xw(e,t){const n=t.data||{},r="value"in t&&!(fs.call(n,"hProperties")||fs.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
50
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
51
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
52
|
+
`}),n}function hf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function mf(e,t){const n=Qw(e,t),r=n.one(e,void 0),i=zw(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
53
|
+
`},i),l}function Jw(e,t){return e&&"run"in e?async function(n,r){const i=mf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return mf(n,{file:r,...e||t})}}function gf(e){if(e)throw e}var hl=Object.prototype.hasOwnProperty,zh=Object.prototype.toString,yf=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,vf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):zh.call(t)==="[object Array]"},kf=function(t){if(!t||zh.call(t)!=="[object Object]")return!1;var n=hl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&hl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||hl.call(t,i)},wf=function(t,n){yf&&n.name==="__proto__"?yf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bf=function(t,n){if(n==="__proto__")if(hl.call(t,n)){if(xf)return xf(t,n).value}else return;return t[n]},e1=function e(){var t,n,r,i,l,o,a=arguments[0],s=1,u=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=bf(a,n),i=bf(t,n),a!==i&&(f&&i&&(kf(i)||(l=vf(i)))?(l?(l=!1,o=r&&vf(r)?r:[]):o=r&&kf(r)?r:{},wf(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&wf(a,{name:n,newValue:i}));return a};const Zo=ms(e1);function ds(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function t1(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?n1(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function n1(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const Pt={basename:r1,dirname:i1,extname:l1,join:o1,sep:"/"};function r1(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_i(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function i1(e){if(_i(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function l1(e){_i(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function o1(...e){let t=-1,n;for(;++t<e.length;)_i(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":a1(n)}function a1(e){_i(e);const t=e.codePointAt(0)===47;let n=s1(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function s1(e,t){let n="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function _i(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const u1={cwd:c1};function c1(){return"/"}function ps(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function f1(e){if(typeof e=="string")e=new URL(e);else if(!ps(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return d1(e)}function d1(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Jo=["history","path","basename","stem","extname","dirname"];class Mh{constructor(t){let n;t?ps(t)?n={path:t}:typeof t=="string"||p1(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":u1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Jo.length;){const l=Jo[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Jo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Pt.basename(this.path):void 0}set basename(t){ta(t,"basename"),ea(t,"basename"),this.path=Pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pt.dirname(this.path):void 0}set dirname(t){Sf(this.basename,"dirname"),this.path=Pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pt.extname(this.path):void 0}set extname(t){if(ea(t,"extname"),Sf(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ps(t)&&(t=f1(t)),ta(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pt.basename(this.path,this.extname):void 0}set stem(t){ta(t,"stem"),ea(t,"stem"),this.path=Pt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Be(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ea(e,t){if(e&&e.includes(Pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pt.sep+"`")}function ta(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function p1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const h1=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},m1={}.hasOwnProperty;class Cu extends h1{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=t1()}copy(){const t=new Cu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Zo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ia("data",this.frozen),this.namespace[t]=n,this):m1.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ia("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Zi(t),r=this.parser||this.Parser;return na("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),na("process",this.parser||this.Parser),ra("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=Zi(t),s=r.parse(a);r.run(s,a,function(f,c,d){if(f||!c||!d)return u(f);const h=c,m=r.stringify(h,d);x1(m)?d.value=m:d.result=m,u(f,d)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),na("processSync",this.parser||this.Parser),ra("processSync",this.compiler||this.Compiler),this.process(t,i),Cf("processSync","process",n),r;function i(l,o){n=!0,gf(l),r=o}}run(t,n,r){Ef(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=Zi(n);i.run(t,s,u);function u(f,c,d){const h=c||t;f?a(f):o?o(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Cf("runSync","run",r),i;function l(o,a){gf(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Zi(n),i=this.compiler||this.Compiler;return ra("stringify",i),Ef(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ia("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=Zo(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[h,...m]=f;const v=r[d][1];ds(v)&&ds(h)&&(h=Zo(!0,v,h)),r[d]=[u,h,...m]}}}}const g1=new Cu().freeze();function na(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ra(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ia(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ef(e){if(!ds(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zi(e){return y1(e)?e:new Mh(e)}function y1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function x1(e){return typeof e=="string"||v1(e)}function v1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const k1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nf=[],jf={allowDangerousHtml:!0},w1=/^(https?|ircs?|mailto|xmpp)$/i,b1=[{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 S1(e){const t=E1(e),n=C1(e);return N1(t.runSync(t.parse(n),n),e)}function E1(e){const t=e.rehypePlugins||Nf,n=e.remarkPlugins||Nf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jf}:jf;return g1().use(iw).use(n).use(Jw,r).use(t)}function C1(e){const t=e.children||"",n=new Mh;return typeof t=="string"&&(n.value=t),n}function N1(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||j1;for(const f of b1)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+k1+f.id,void 0);return Eu(e,u),$x(e,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function u(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Yo)if(Object.hasOwn(Yo,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],v=Yo[h];(v===null||v.includes(f.tagName))&&(f.properties[h]=s(String(m||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return a&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function j1(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||w1.test(e.slice(0,t))?e:""}function Tf(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function T1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _1(e,t,n){const i=po((n||{}).ignore||[]),l=I1(t);let o=-1;for(;++o<l.length;)Oh(e,"text",a);function a(u,f){let c=-1,d;for(;++c<f.length;){const h=f[c],m=d?d.children:void 0;if(i(h,m?m.indexOf(h):void 0,d))return;d=h}if(d)return s(u,f)}function s(u,f){const c=f[f.length-1],d=l[o][0],h=l[o][1];let m=0;const w=c.children.indexOf(u);let x=!1,y=[];d.lastIndex=0;let g=d.exec(u.value);for(;g;){const b=g.index,N={index:g.index,input:g.input,stack:[...f,u]};let S=h(...g,N);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?d.lastIndex=b+1:(m!==b&&y.push({type:"text",value:u.value.slice(m,b)}),Array.isArray(S)?y.push(...S):S&&y.push(S),m=b+g[0].length,x=!0),!d.global)break;g=d.exec(u.value)}return x?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),c.children.splice(w,1,...y)):y=[u],w+y.length}}function I1(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([A1(i[0]),P1(i[1])])}return t}function A1(e){return typeof e=="string"?new RegExp(T1(e),"g"):e}function P1(e){return typeof e=="function"?e:function(){return e}}const la="phrasing",oa=["autolink","link","image","label"];function L1(){return{transforms:[B1],enter:{literalAutolink:R1,literalAutolinkEmail:aa,literalAutolinkHttp:aa,literalAutolinkWww:aa},exit:{literalAutolink:M1,literalAutolinkEmail:z1,literalAutolinkHttp:D1,literalAutolinkWww:O1}}}function F1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:la,notInConstruct:oa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:la,notInConstruct:oa},{character:":",before:"[ps]",after:"\\/",inConstruct:la,notInConstruct:oa}]}}function R1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function aa(e){this.config.enter.autolinkProtocol.call(this,e)}function D1(e){this.config.exit.autolinkProtocol.call(this,e)}function O1(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function z1(e){this.config.exit.autolinkEmail.call(this,e)}function M1(e){this.exit(e)}function B1(e){_1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),U1]],{ignore:["link","linkReference"]})}function $1(e,t,n,r,i){let l="";if(!Bh(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!H1(n)))return!1;const o=V1(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function U1(e,t,n,r){return!Bh(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function H1(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function V1(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Tf(e,"(");let l=Tf(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Bh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||$n(n)||uo(n))&&(!t||n!==47)}$h.peek=J1;function W1(){this.buffer()}function G1(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function q1(){this.buffer()}function Q1(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Y1(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function K1(e){this.exit(e)}function X1(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Z1(e){this.exit(e)}function J1(){return"["}function $h(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function e0(){return{enter:{gfmFootnoteCallString:W1,gfmFootnoteCall:G1,gfmFootnoteDefinitionLabelString:q1,gfmFootnoteDefinition:Q1},exit:{gfmFootnoteCallString:Y1,gfmFootnoteCall:K1,gfmFootnoteDefinitionLabelString:X1,gfmFootnoteDefinition:Z1}}}function t0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:$h},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
54
|
+
`:" ")+l.indentLines(l.containerFlow(r,a.current()),t?Uh:n0))),u(),s}}function n0(e,t,n){return t===0?e:Uh(e,t,n)}function Uh(e,t,n){return(n?"":" ")+e}const r0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Hh.peek=s0;function i0(){return{canContainEols:["delete"],enter:{strikethrough:o0},exit:{strikethrough:a0}}}function l0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:r0}],handlers:{delete:Hh}}}function o0(e){this.enter({type:"delete",children:[]},e)}function a0(e){this.exit(e)}function Hh(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function s0(){return"~"}function u0(e){return e.length}function c0(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||u0,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const v=[],w=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const y=f0(e[f][x]);if(n.alignDelimiters!==!1){const g=i(y);w[x]=g,(s[x]===void 0||g>s[x])&&(s[x]=g)}v.push(y)}o[f]=v,a[f]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=_f(r[c]);else{const v=_f(r);for(;++c<u;)l[c]=v}c=-1;const d=[],h=[];for(;++c<u;){const v=l[c];let w="",x="";v===99?(w=":",x=":"):v===108?w=":":v===114&&(x=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[c]-w.length-x.length);const g=w+"-".repeat(y)+x;n.alignDelimiters!==!1&&(y=w.length+y+x.length,y>s[c]&&(s[c]=y),h[c]=y),d[c]=g}o.splice(1,0,d),a.splice(1,0,h),f=-1;const m=[];for(;++f<o.length;){const v=o[f],w=a[f];c=-1;const x=[];for(;++c<u;){const y=v[c]||"";let g="",b="";if(n.alignDelimiters!==!1){const N=s[c]-(w[c]||0),S=l[c];S===114?g=" ".repeat(N):S===99?N%2?(g=" ".repeat(N/2+.5),b=" ".repeat(N/2-.5)):(g=" ".repeat(N/2),b=g):b=" ".repeat(N)}n.delimiterStart!==!1&&!c&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&x.push(" "),n.alignDelimiters!==!1&&x.push(g),x.push(y),n.alignDelimiters!==!1&&x.push(b),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&x.push("|")}m.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return m.join(`
|
|
55
|
+
`)}function f0(e){return e==null?"":String(e)}function _f(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function d0(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),p0);return i(),o}function p0(e,t,n){return">"+(n?"":" ")+e}function h0(e,t){return If(e,t.inConstruct,!0)&&!If(e,t.notInConstruct,!1)}function If(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Af(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
56
|
+
`&&h0(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
57
|
+
`}function m0(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function g0(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function y0(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function x0(e,t,n,r){const i=y0(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(g0(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,v0);return c(),d}const a=n.createTracker(r),s=i.repeat(Math.max(m0(l,i)+1,3)),u=n.enter("codeFenced");let f=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
58
|
+
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
59
|
+
`),l&&(f+=a.move(l+`
|
|
60
|
+
`)),f+=a.move(s),u(),f}function v0(e,t,n){return(n?"":" ")+e}function Nu(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function k0(e,t,n,r){const i=Nu(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
61
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function w0(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function wi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vl(e,t,n){const r=Sr(e),i=Sr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vh.peek=b0;function Vh(e,t,n,r){const i=w0(n),l=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i);let s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=Vl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=wi(u)+s.slice(1));const c=s.charCodeAt(s.length-1),d=Vl(r.after.charCodeAt(0),c,i);d.inside&&(s=s.slice(0,-1)+wi(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+s+h}function b0(e,t,n){return n.options.emphasis||"*"}function S0(e,t){let n=!1;return Eu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,cs}),!!((!e.depth||e.depth<3)&&yu(e)&&(t.options.setext||n))}function E0(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(S0(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
|
|
62
|
+
`,after:`
|
|
63
|
+
`});return c(),f(),d+`
|
|
64
|
+
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
65
|
+
`))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
66
|
+
`,...l.current()});return/^[\t ]/.test(u)&&(u=wi(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Wh.peek=C0;function Wh(e){return e.value||""}function C0(){return"<"}Gh.peek=N0;function Gh(e,t,n,r){const i=Nu(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function N0(){return"!"}qh.peek=j0;function qh(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function j0(){return"!"}Qh.peek=T0;function Qh(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],a=n.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function T0(){return"`"}function Yh(e,t){const n=yu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Kh.peek=_0;function Kh(e,t,n,r){const i=Nu(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(Yh(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),n.stack=f,c}a=n.enter("link"),s=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),a(),u}function _0(e,t,n){return Yh(e,n)?"<":"["}Xh.peek=I0;function Xh(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function I0(){return"["}function ju(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function A0(e){const t=ju(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function P0(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Zh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function L0(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?P0(n):ju(n);const a=e.ordered?o==="."?")":".":A0(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Zh(n)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),u}function F0(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function R0(e,t,n,r){const i=F0(n);let l=n.bulletCurrent||ju(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return s(),u;function f(c,d,h){return d?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function D0(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const O0=po(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function z0(e,t,n,r){return(e.children.some(function(o){return O0(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function M0(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Jh.peek=B0;function Jh(e,t,n,r){const i=M0(n),l=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=Vl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=wi(u)+s.slice(1));const c=s.charCodeAt(s.length-1),d=Vl(r.after.charCodeAt(0),c,i);d.inside&&(s=s.slice(0,-1)+wi(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},a+s+h}function B0(e,t,n){return n.options.strong||"*"}function $0(e,t,n,r){return n.safe(e.value,r)}function U0(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function H0(e,t,n){const r=(Zh(n)+(n.options.ruleSpaces?" ":"")).repeat(U0(n));return n.options.ruleSpaces?r.slice(0,-1):r}const em={blockquote:d0,break:Af,code:x0,definition:k0,emphasis:Vh,hardBreak:Af,heading:E0,html:Wh,image:Gh,imageReference:qh,inlineCode:Qh,link:Kh,linkReference:Xh,list:L0,listItem:R0,paragraph:D0,root:z0,strong:Jh,text:$0,thematicBreak:H0};function V0(){return{enter:{table:W0,tableData:Pf,tableHeader:Pf,tableRow:q0},exit:{codeText:Q0,table:G0,tableData:sa,tableHeader:sa,tableRow:sa}}}function W0(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function G0(e){this.exit(e),this.data.inTable=void 0}function q0(e){this.enter({type:"tableRow",children:[]},e)}function sa(e){this.exit(e)}function Pf(e){this.enter({type:"tableCell",children:[]},e)}function Q0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Y0));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Y0(e,t){return t==="|"?t:e}function K0(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
67
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:s,tableRow:a}};function o(h,m,v,w){return u(f(h,v,w),h.align)}function a(h,m,v,w){const x=c(h,v,w),y=u([x]);return y.slice(0,y.indexOf(`
|
|
68
|
+
`))}function s(h,m,v,w){const x=v.enter("tableCell"),y=v.enter("phrasing"),g=v.containerPhrasing(h,{...w,before:l,after:l});return y(),x(),g}function u(h,m){return c0(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,v){const w=h.children;let x=-1;const y=[],g=m.enter("table");for(;++x<w.length;)y[x]=c(w[x],m,v);return g(),y}function c(h,m,v){const w=h.children;let x=-1;const y=[],g=m.enter("tableRow");for(;++x<w.length;)y[x]=s(w[x],h,m,v);return g(),y}function d(h,m,v){let w=em.inlineCode(h,m,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function X0(){return{exit:{taskListCheckValueChecked:Lf,taskListCheckValueUnchecked:Lf,paragraph:J0}}}function Z0(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eb}}}function Lf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function J0(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function eb(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=em.listItem(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function tb(){return[L1(),e0(),i0(),V0(),X0()]}function nb(e){return{extensions:[F1(),t0(e),l0(),K0(e),Z0()]}}const rb={tokenize:ub,partial:!0},tm={tokenize:cb,partial:!0},nm={tokenize:fb,partial:!0},rm={tokenize:db,partial:!0},ib={tokenize:pb,partial:!0},im={name:"wwwAutolink",tokenize:ab,previous:om},lm={name:"protocolAutolink",tokenize:sb,previous:am},Xt={name:"emailAutolink",tokenize:ob,previous:sm},Ot={};function lb(){return{text:Ot}}let jn=48;for(;jn<123;)Ot[jn]=Xt,jn++,jn===58?jn=65:jn===91&&(jn=97);Ot[43]=Xt;Ot[45]=Xt;Ot[46]=Xt;Ot[95]=Xt;Ot[72]=[Xt,lm];Ot[104]=[Xt,lm];Ot[87]=[Xt,im];Ot[119]=[Xt,im];function ob(e,t,n){const r=this;let i,l;return o;function o(c){return!hs(c)||!sm.call(r,r.previous)||Tu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return hs(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(ib,f,u)(c):c===45||c===95||ze(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&Ve(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function ab(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!om.call(r,r.previous)||Tu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rb,e.attempt(tm,e.attempt(nm,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function sb(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&am.call(r,r.previous)&&!Tu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(Ve(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):n(c)}function u(c){return c===null||$l(c)||ue(c)||$n(c)||uo(c)?n(c):e.attempt(tm,e.attempt(nm,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function ub(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function cb(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(rm,s,a)(u):u===null||ue(u)||$n(u)||u!==45&&uo(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?n(u):t(u)}}function fb(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(rm,t,l)(o):o===null||ue(o)||$n(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function db(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||ue(a)||$n(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ue(a)||$n(a)?t(a):r(a)}function l(a){return Ve(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):Ve(a)?(e.consume(a),o):n(a)}}function pb(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return ze(l)?n(l):t(l)}}function om(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function am(e){return!Ve(e)}function sm(e){return!(e===47||hs(e))}function hs(e){return e===43||e===45||e===46||e===95||ze(e)}function Tu(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const hb={tokenize:bb,partial:!0};function mb(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vb,continuation:{tokenize:kb},exit:wb}},text:{91:{name:"gfmFootnoteCall",tokenize:xb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gb,resolveTo:yb}}}}function gb(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return n(s);const u=Tt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function yb(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function xb(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||ue(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Tt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ue(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function vb(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(o>999||m===93&&!a||m===null||m===91||ue(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=Tt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ue(m)||(a=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),ne(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function kb(e,t,n){return e.check(Ti,t,e.attempt(hb,t,n))}function wb(e){e.exit("gfmFootnoteDefinition")}function bb(e,t,n){const r=this;return ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function Sb(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},d=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&st(d,d.length,0,co(h,o.slice(u+1,s),a)),st(d,d.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),st(o,u-1,s-u+3,d),s=u+d.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return d;function d(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const v=Sr(u);if(m===126)return c>1?s(m):(o.consume(m),c++,h);if(c<2&&!n)return s(m);const w=o.exit("strikethroughSequenceTemporary"),x=Sr(m);return w._open=!x||x===2&&!!v,w._close=!v||v===2&&!!x,a(m)}}}class Eb{constructor(){this.map=[]}add(t,n,r){Cb(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function Cb(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Nb(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function jb(){return{flow:{null:{name:"table",tokenize:Tb,resolveAll:_b}}}}function Tb(e,t,n){const r=this;let i=0,l=0,o;return a;function a(C){let R=r.events.length-1;for(;R>-1;){const U=r.events[R][1].type;if(U==="lineEnding"||U==="linePrefix")R--;else break}const M=R>-1?r.events[R][1].type:null,$=M==="tableHead"||M==="tableRow"?S:s;return $===S&&r.parser.lazy[r.now().line]?n(C):$(C)}function s(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,l+=1),f(C)}function f(C){return C===null?n(C):G(C)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h):n(C):J(C)?ne(e,f,"whitespace")(C):(l+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(C)))}function c(C){return C===null||C===124||ue(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?d:c)}function d(C){return C===92||C===124?(e.consume(C),c):c(C)}function h(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,J(C)?ne(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?w(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),v):N(C)}function v(C){return J(C)?ne(e,w,"whitespace")(C):w(C)}function w(C){return C===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),x):C===45?(l+=1,x(C)):C===null||G(C)?b(C):N(C)}function x(C){return C===45?(e.enter("tableDelimiterFiller"),y(C)):N(C)}function y(C){return C===45?(e.consume(C),y):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(C))}function g(C){return J(C)?ne(e,b,"whitespace")(C):b(C)}function b(C){return C===124?m(C):C===null||G(C)?!o||i!==l?N(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):N(C)}function N(C){return n(C)}function S(C){return e.enter("tableRow"),j(C)}function j(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),j):C===null||G(C)?(e.exit("tableRow"),t(C)):J(C)?ne(e,j,"whitespace")(C):(e.enter("data"),T(C))}function T(C){return C===null||C===124||ue(C)?(e.exit("data"),j(C)):(e.consume(C),C===92?L:T)}function L(C){return C===92||C===124?(e.consume(C),T):T(C)}}function _b(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const d=new Eb;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,s!==0&&(Ff(d,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Ji(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Ji(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):m.type==="tableHead"?(a=!0,s=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=Ji(d,t,l,i,n,c)):o[1]!==0&&(c=Ji(d,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Ff(d,t,s,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Nb(t.events,n))}return e}function Ji(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(l.end=Object.assign({},Kn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=Kn(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=Kn(t.events,n[2]),f=Kn(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Kn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Ff(e,t,n,r,i){const l=[],o=Kn(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function Kn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ib={name:"tasklistCheck",tokenize:Pb};function Ab(){return{text:{91:Ib}}}function Pb(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ue(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return G(s)?t(s):J(s)?e.check({tokenize:Lb},t,n)(s):n(s)}}function Lb(e,t,n){return ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Fb(e){return xh([lb(),mb(),Sb(e),jb(),Ab()])}const Rb={};function Db(e){const t=this,n=e||Rb,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fb(n)),l.push(tb()),o.push(nb(n))}function um(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=um(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cm(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=um(e))&&(r&&(r+=" "),r+=t);return r}var Ob=Object.create,mo=Object.defineProperty,zb=Object.defineProperties,Mb=Object.getOwnPropertyDescriptor,Bb=Object.getOwnPropertyDescriptors,fm=Object.getOwnPropertyNames,Wl=Object.getOwnPropertySymbols,$b=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty,dm=Object.prototype.propertyIsEnumerable,Rf=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t)=>{for(var n in t||(t={}))_u.call(t,n)&&Rf(e,n,t[n]);if(Wl)for(var n of Wl(t))dm.call(t,n)&&Rf(e,n,t[n]);return e},go=(e,t)=>zb(e,Bb(t)),pm=(e,t)=>{var n={};for(var r in e)_u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Wl)for(var r of Wl(e))t.indexOf(r)<0&&dm.call(e,r)&&(n[r]=e[r]);return n},Ub=(e,t)=>function(){return t||(0,e[fm(e)[0]])((t={exports:{}}).exports,t),t.exports},Hb=(e,t)=>{for(var n in t)mo(e,n,{get:t[n],enumerable:!0})},Vb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fm(t))!_u.call(e,i)&&i!==n&&mo(e,i,{get:()=>t[i],enumerable:!(r=Mb(t,i))||r.enumerable});return e},Wb=(e,t,n)=>(n=e!=null?Ob($b(e)):{},Vb(!e||!e.__esModule?mo(n,"default",{value:e,enumerable:!0}):n,e)),Gb=Ub({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,l={},o={util:{encode:function m(v){return v instanceof a?new a(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++i}),m.__id},clone:function m(v,w){w=w||{};var x,y;switch(o.util.type(v)){case"Object":if(y=o.util.objId(v),w[y])return w[y];x={},w[y]=x;for(var g in v)v.hasOwnProperty(g)&&(x[g]=m(v[g],w));return x;case"Array":return y=o.util.objId(v),w[y]?w[y]:(x=[],w[y]=x,v.forEach(function(b,N){x[N]=m(b,w)}),x);default:return v}},getLanguage:function(m){for(;m;){var v=r.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(r,"gi"),""),m.classList.add("language-"+v)},isActive:function(m,v,w){for(var x="no-"+v;m;){var y=m.classList;if(y.contains(v))return!0;if(y.contains(x))return!1;m=m.parentElement}return!!w}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,v){var w=o.util.clone(o.languages[m]);for(var x in v)w[x]=v[x];return w},insertBefore:function(m,v,w,x){x=x||o.languages;var y=x[m],g={};for(var b in y)if(y.hasOwnProperty(b)){if(b==v)for(var N in w)w.hasOwnProperty(N)&&(g[N]=w[N]);w.hasOwnProperty(b)||(g[b]=y[b])}var S=x[m];return x[m]=g,o.languages.DFS(o.languages,function(j,T){T===S&&j!=m&&(this[j]=g)}),g},DFS:function m(v,w,x,y){y=y||{};var g=o.util.objId;for(var b in v)if(v.hasOwnProperty(b)){w.call(v,b,v[b],x||b);var N=v[b],S=o.util.type(N);S==="Object"&&!y[g(N)]?(y[g(N)]=!0,m(N,w,null,y)):S==="Array"&&!y[g(N)]&&(y[g(N)]=!0,m(N,w,b,y))}}},plugins:{},highlight:function(m,v,w){var x={code:m,grammar:v,language:w};if(o.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=o.tokenize(x.code,x.grammar),o.hooks.run("after-tokenize",x),a.stringify(o.util.encode(x.tokens),x.language)},tokenize:function(m,v){var w=v.rest;if(w){for(var x in w)v[x]=w[x];delete v.rest}var y=new f;return c(y,y.head,m),u(m,y,v,y.head,0),h(y)},hooks:{all:{},add:function(m,v){var w=o.hooks.all;w[m]=w[m]||[],w[m].push(v)},run:function(m,v){var w=o.hooks.all[m];if(!(!w||!w.length))for(var x=0,y;y=w[x++];)y(v)}},Token:a};function a(m,v,w,x){this.type=m,this.content=v,this.alias=w,this.length=(x||"").length|0}a.stringify=function m(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var x="";return v.forEach(function(S){x+=m(S,w)}),x}var y={type:v.type,content:m(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},g=v.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(y.classes,g):y.classes.push(g)),o.hooks.run("wrap",y);var b="";for(var N in y.attributes)b+=" "+N+'="'+(y.attributes[N]||"").replace(/"/g,""")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+b+">"+y.content+"</"+y.tag+">"};function s(m,v,w,x){m.lastIndex=v;var y=m.exec(w);if(y&&x&&y[1]){var g=y[1].length;y.index+=g,y[0]=y[0].slice(g)}return y}function u(m,v,w,x,y,g){for(var b in w)if(!(!w.hasOwnProperty(b)||!w[b])){var N=w[b];N=Array.isArray(N)?N:[N];for(var S=0;S<N.length;++S){if(g&&g.cause==b+","+S)return;var j=N[S],T=j.inside,L=!!j.lookbehind,C=!!j.greedy,R=j.alias;if(C&&!j.pattern.global){var M=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,M+"g")}for(var $=j.pattern||j,U=x.next,F=y;U!==v.tail&&!(g&&F>=g.reach);F+=U.value.length,U=U.next){var W=U.value;if(v.length>m.length)return;if(!(W instanceof a)){var te=1,O;if(C){if(O=s($,F,m,L),!O||O.index>=m.length)break;var X=O.index,V=O.index+O[0].length,k=F;for(k+=U.value.length;X>=k;)U=U.next,k+=U.value.length;if(k-=U.value.length,F=k,U.value instanceof a)continue;for(var Y=U;Y!==v.tail&&(k<V||typeof Y.value=="string");Y=Y.next)te++,k+=Y.value.length;te--,W=m.slice(F,k),O.index-=F}else if(O=s($,0,W,L),!O)continue;var X=O.index,E=O[0],se=W.slice(0,X),_e=W.slice(X+E.length),ie=F+W.length;g&&ie>g.reach&&(g.reach=ie);var Ie=U.prev;se&&(Ie=c(v,Ie,se),F+=se.length),d(v,Ie,te);var nt=new a(b,T?o.tokenize(E,T):E,R,E);if(U=c(v,Ie,nt),_e&&c(v,U,_e),te>1){var dt={cause:b+","+S,reach:ie};u(m,v,w,U.prev,F,dt),g&&dt.reach>g.reach&&(g.reach=dt.reach)}}}}}}function f(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function c(m,v,w){var x=v.next,y={value:w,prev:v,next:x};return v.next=y,x.prev=y,m.length++,y}function d(m,v,w){for(var x=v.next,y=0;y<w&&x!==m.tail;y++)x=x.next;v.next=x,x.prev=v,m.length-=y}function h(m){for(var v=[],w=m.head.next;w!==m.tail;)v.push(w.value),w=w.next;return v}return o}();t.exports=n,n.default=n}}),I=Wb(Gb());I.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},I.languages.markup.tag.inside["attr-value"].inside.entity=I.languages.markup.entity,I.languages.markup.doctype.inside["internal-subset"].inside=I.languages.markup,I.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(I.languages.markup.tag,"addInlined",{value:function(e,r){var n={},n=(n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:I.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:I.languages[r]},{});r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},I.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(I.languages.markup.tag,"addAttribute",{value:function(e,t){I.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:I.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),I.languages.html=I.languages.markup,I.languages.mathml=I.languages.markup,I.languages.svg=I.languages.markup,I.languages.xml=I.languages.extend("markup",{}),I.languages.ssml=I.languages.xml,I.languages.atom=I.languages.xml,I.languages.rss=I.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(I),I.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},I.languages.javascript=I.languages.extend("clike",{"class-name":[I.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),I.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,I.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:I.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:I.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:I.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:I.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:I.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),I.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:I.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),I.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),I.languages.markup&&(I.languages.markup.tag.addInlined("script","javascript"),I.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),I.languages.js=I.languages.javascript,I.languages.actionscript=I.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),I.languages.actionscript["class-name"].alias="function",delete I.languages.actionscript.parameter,delete I.languages.actionscript["literal-property"],I.languages.markup&&I.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:I.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(I),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(i){var l=function(c){c.inside||(c.inside={}),c.inside.rest=r},o="doc-comment";if(a=e.languages[i]){var a,s=a[o];if((s=s||(a=e.languages.insertBefore(i,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(s=a[o]={pattern:s}),Array.isArray(s))for(var u=0,f=s.length;u<f;u++)s[u]instanceof RegExp&&(s[u]={pattern:s[u]}),l(s[u]);else l(s)}})}}),t.addSupport(["java","javascript","php"],t)}(I),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(I),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(I),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(a,s){s=(s||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return a});return RegExp(u,s)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(l),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(I),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,o=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(f){u!==f&&(e.languages.markdown[u].inside.content.inside[f]=e.languages.markdown[f])})}),e.hooks.add("after-tokenize",function(u){u.language!=="markdown"&&u.language!=="md"||function f(c){if(c&&typeof c!="string")for(var d=0,h=c.length;d<h;d++){var m,v=c[d];v.type!=="code"?f(v.content):(m=v.content[1],v=v.content[3],m&&v&&m.type==="code-language"&&v.type==="code-block"&&typeof m.content=="string"&&(m=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,m]:v.alias.push(m):v.alias=[m]))}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var f="",c=0,d=u.classes.length;c<d;c++){var h=u.classes[c],h=/language-(.+)/.exec(h);if(h){f=h[1];break}}var m,v=e.languages[f];v?u.content=e.highlight(function(w){return w=w.replace(o,""),w=w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(x,y){var g;return(y=y.toLowerCase())[0]==="#"?(g=y[1]==="x"?parseInt(y.slice(2),16):Number(y.slice(1)),s(g)):a[y]||x})}(u.content),v,f):f&&f!=="none"&&e.plugins.autoloader&&(m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),u.attributes.id=m,e.plugins.autoloader.loadLanguages(f,function(){var w=document.getElementById(m);w&&(w.innerHTML=e.highlight(w.textContent,e.languages[f],f))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),a={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(I),I.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:I.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},I.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(m){return typeof m!="string"&&m.type!=="comment"&&m.type!=="scalar"}),n=0;n<t.length;){var r=t[n++];if(r.type==="keyword"&&r.content==="mutation"){var i=[];if(c(["definition-mutation","punctuation"])&&f(1).content==="("){n+=2;var l=d(/^\($/,/^\)$/);if(l===-1)continue;for(;n<l;n++){var o=f(0);o.type==="variable"&&(h(o,"variable-input"),i.push(o.content))}n=l+1}if(c(["punctuation","property-query"])&&f(0).content==="{"&&(n++,h(f(0),"property-mutation"),0<i.length)){var a=d(/^\{$/,/^\}$/);if(a!==-1)for(var s=n;s<a;s++){var u=t[s];u.type==="variable"&&0<=i.indexOf(u.content)&&h(u,"variable-input")}}}}function f(m){return t[n+m]}function c(m,v){v=v||0;for(var w=0;w<m.length;w++){var x=f(w+v);if(!x||x.type!==m[w])return}return 1}function d(m,v){for(var w=1,x=n;x<t.length;x++){var y=t[x],g=y.content;if(y.type==="punctuation"&&typeof g=="string"){if(m.test(g))w++;else if(v.test(g)&&--w===0)return x}}return-1}function h(m,v){var w=m.alias;w?Array.isArray(w)||(m.alias=w=[w]):m.alias=w=[],w.push(v)}}),I.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],l=r.pattern.source;function o(c,d){if(e.languages[c])return{pattern:RegExp("((?:"+d+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:c}}}}function a(c,d,h){return c={code:c,grammar:d,language:h},e.hooks.run("before-tokenize",c),c.tokens=e.tokenize(c.code,c.grammar),e.hooks.run("after-tokenize",c),c.tokens}function s(c,d,h){var w=e.tokenize(c,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),m=0,v={},w=a(w.map(function(y){if(typeof y=="string")return y;for(var g,b,y=y.content;c.indexOf((b=m++,g="___"+h.toUpperCase()+"_"+b+"___"))!==-1;);return v[g]=y,g}).join(""),d,h),x=Object.keys(v);return m=0,function y(g){for(var b=0;b<g.length;b++){if(m>=x.length)return;var N,S,j,T,L,C,R,M=g[b];typeof M=="string"||typeof M.content=="string"?(N=x[m],(R=(C=typeof M=="string"?M:M.content).indexOf(N))!==-1&&(++m,S=C.substring(0,R),L=v[N],j=void 0,(T={})["interpolation-punctuation"]=i,(T=e.tokenize(L,T)).length===3&&((j=[1,1]).push.apply(j,a(T[1],e.languages.javascript,"javascript")),T.splice.apply(T,j)),j=new e.Token("interpolation",T,r.alias,L),T=C.substring(R+N.length),L=[],S&&L.push(S),L.push(j),T&&(y(C=[T]),L.push.apply(L,C)),typeof M=="string"?(g.splice.apply(g,[b,1].concat(L)),b+=L.length-1):M.content=L)):(R=M.content,Array.isArray(R)?y(R):y([R]))}}(w),new e.Token(h,w,"language-"+h,c)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(c){return typeof c=="string"?c:Array.isArray(c)?c.map(f).join(""):f(c.content)}e.hooks.add("after-tokenize",function(c){c.language in u&&function d(h){for(var m=0,v=h.length;m<v;m++){var w,x,y,g=h[m];typeof g!="string"&&(w=g.content,Array.isArray(w)?g.type==="template-string"?(g=w[1],w.length===3&&typeof g!="string"&&g.type==="embedded-code"&&(x=f(g),g=g.alias,g=Array.isArray(g)?g[0]:g,y=e.languages[g])&&(w[1]=s(x,y,g))):d(w):typeof w!="string"&&d([w]))}}(c.tokens)})}(I),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(I),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(I),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(I),I.languages.n4js=I.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),I.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),I.languages.n4jsd=I.languages.n4js,function(e){function t(o,a){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),a)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var l=n[r],i=e.languages.javascript[l],l=(i=e.util.type(i)==="RegExp"?e.languages.javascript[l]={pattern:i}:i).inside||{};(i.inside=l)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(I),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function l(s,u){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(s,u)}i=l(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:l(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function o(s){for(var u=[],f=0;f<s.length;f++){var c=s[f],d=!1;typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?0<u.length&&u[u.length-1].tagName===a(c.content[0].content[1])&&u.pop():c.content[c.content.length-1].content!=="/>"&&u.push({tagName:a(c.content[0].content[1]),openedBraces:0}):0<u.length&&c.type==="punctuation"&&c.content==="{"?u[u.length-1].openedBraces++:0<u.length&&0<u[u.length-1].openedBraces&&c.type==="punctuation"&&c.content==="}"?u[u.length-1].openedBraces--:d=!0),(d||typeof c=="string")&&0<u.length&&u[u.length-1].openedBraces===0&&(d=a(c),f<s.length-1&&(typeof s[f+1]=="string"||s[f+1].type==="plain-text")&&(d+=a(s[f+1]),s.splice(f+1,1)),0<f&&(typeof s[f-1]=="string"||s[f-1].type==="plain-text")&&(d=a(s[f-1])+d,s.splice(f-1,1),f--),s[f]=new e.Token("plain-text",d,null,d)),c.content&&typeof c.content!="string"&&o(c.content)}}var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||o(s.tokens)})}(I),function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(I),I.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},I.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=I.languages.swift}),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(I),I.languages.c=I.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),I.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),I.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},I.languages.c.string],char:I.languages.c.char,comment:I.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:I.languages.c}}}}),I.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete I.languages.c.boolean,I.languages.objectivec=I.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete I.languages.objectivec["class-name"],I.languages.objc=I.languages.objectivec,I.languages.reason=I.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),I.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete I.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(I),I.languages.go=I.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),I.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete I.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(I),I.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},I.languages.python["string-interpolation"].inside.interpolation.inside.rest=I.languages.python,I.languages.py=I.languages.python,I.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},I.languages.webmanifest=I.languages.json;var hm={};Hb(hm,{dracula:()=>Qb,duotoneDark:()=>Kb,duotoneLight:()=>Zb,github:()=>eS,gruvboxMaterialDark:()=>_S,gruvboxMaterialLight:()=>AS,jettwaveDark:()=>wS,jettwaveLight:()=>SS,nightOwl:()=>nS,nightOwlLight:()=>iS,oceanicNext:()=>oS,okaidia:()=>sS,oneDark:()=>CS,oneLight:()=>jS,palenight:()=>cS,shadesOfPurple:()=>dS,synthwave84:()=>hS,ultramin:()=>gS,vsDark:()=>mm,vsLight:()=>vS});var qb={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Qb=qb,Yb={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Kb=Yb,Xb={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Zb=Xb,Jb={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},eS=Jb,tS={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},nS=tS,rS={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},iS=rS,rt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},lS={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:rt.keyword}},{types:["attr-value"],style:{color:rt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:rt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:rt.primitive}},{types:["boolean"],style:{color:rt.boolean}},{types:["tag"],style:{color:rt.tag}},{types:["string"],style:{color:rt.string}},{types:["punctuation"],style:{color:rt.string}},{types:["selector","char","builtin","inserted"],style:{color:rt.char}},{types:["function"],style:{color:rt.function}},{types:["operator","entity","url","variable"],style:{color:rt.variable}},{types:["keyword"],style:{color:rt.keyword}},{types:["atrule","class-name"],style:{color:rt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},oS=lS,aS={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},sS=aS,uS={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},cS=uS,fS={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},dS=fS,pS={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},hS=pS,mS={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},gS=mS,yS={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},mm=yS,xS={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},vS=xS,kS={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},wS=kS,bS={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},SS=bS,ES={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},CS=ES,NS={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},jS=NS,TS={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},_S=TS,IS={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},AS=IS,PS=e=>A.useCallback(t=>{var n=t,{className:r,style:i,line:l}=n,o=pm(n,["className","style","line"]);const a=go(Dt({},o),{className:cm("token-line",r)});return typeof e=="object"&&"plain"in e&&(a.style=e.plain),typeof i=="object"&&(a.style=Dt(Dt({},a.style||{}),i)),a},[e]),LS=e=>{const t=A.useCallback(({types:n,empty:r})=>{if(e!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return e[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(i=>e[i]))}},[e]);return A.useCallback(n=>{var r=n,{token:i,className:l,style:o}=r,a=pm(r,["token","className","style"]);const s=go(Dt({},a),{className:cm("token",...i.types,l),children:i.content,style:t(i)});return o!=null&&(s.style=Dt(Dt({},s.style||{}),o)),s},[t])},FS=/\r\n|\r|\n/,Df=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
69
|
+
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
70
|
+
`,e[0].empty=!0)},Of=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},RS=e=>{const t=[[]],n=[e],r=[0],i=[e.length];let l=0,o=0,a=[];const s=[a];for(;o>-1;){for(;(l=r[o]++)<i[o];){let u,f=t[o];const d=n[o][l];if(typeof d=="string"?(f=o>0?f:["plain"],u=d):(f=Of(f,d.type),d.alias&&(f=Of(f,d.alias)),u=d.content),typeof u!="string"){o++,t.push(f),n.push(u),r.push(0),i.push(u.length);continue}const h=u.split(FS),m=h.length;a.push({types:f,content:h[0]});for(let v=1;v<m;v++)Df(a),s.push(a=[]),a.push({types:f,content:h[v]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return Df(a),s},zf=RS,DS=({prism:e,code:t,grammar:n,language:r})=>A.useMemo(()=>{if(n==null)return zf([t]);const i={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",i),zf(i.tokens)},[t,n,r,e]),OS=(e,t)=>{const{plain:n}=e,r=e.styles.reduce((i,l)=>{const{languages:o,style:a}=l;return o&&!o.includes(t)||l.types.forEach(s=>{const u=Dt(Dt({},i[s]),a);i[s]=u}),i},{});return r.root=n,r.plain=go(Dt({},n),{backgroundColor:void 0}),r},zS=OS,MS=({children:e,language:t,code:n,theme:r,prism:i})=>{const l=t.toLowerCase(),o=zS(r,l),a=PS(o),s=LS(o),u=i.languages[l],f=DS({prism:i,language:l,code:n,grammar:u});return e({tokens:f,className:`prism-code language-${l}`,style:o!=null?o.root:{},getLineProps:a,getTokenProps:s})},BS=e=>A.createElement(MS,go(Dt({},e),{prism:e.prism||I,theme:e.theme||mm,code:e.code,language:e.language}));/*! Bundled license information:
|
|
71
|
+
|
|
72
|
+
prismjs/prism.js:
|
|
73
|
+
(**
|
|
74
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
75
|
+
*
|
|
76
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
77
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
78
|
+
* @namespace
|
|
79
|
+
* @public
|
|
80
|
+
*)
|
|
81
|
+
*/const $S={sh:"bash",shell:"bash",zsh:"bash",console:"bash",yml:"yaml",md:"markdown",mjs:"javascript",cjs:"javascript",node:"javascript",js:"javascript",ts:"typescript",py:"python",rs:"rust",html:"markup",xml:"markup",txt:"text"};function US(e){if(!e)return"text";const t=String(e).toLowerCase();return $S[t]||t}function HS({code:e,language:t}){const[n,r]=A.useState(!1),i=US(t),l=A.useCallback(()=>{var o;try{(o=navigator.clipboard)==null||o.writeText(e),r(!0),setTimeout(()=>r(!1),1400)}catch{}},[e]);return p.jsxs("div",{className:"code-block","data-testid":"code-block",children:[p.jsxs("div",{className:"code-block-head",children:[p.jsx("span",{className:"code-lang",children:i==="text"?"code":i}),p.jsx("button",{className:"code-copy",onClick:l,title:"Copy to clipboard",children:n?"✓ copied":"Copy"})]}),p.jsx(BS,{theme:hm.vsDark,code:e,language:i,children:({tokens:o,getLineProps:a,getTokenProps:s})=>p.jsx("pre",{className:"code-block-body",children:o.map((u,f)=>p.jsx("div",{...a({line:u}),children:u.map((c,d)=>p.jsx("span",{...s({token:c})},d))},f))})})]})}const VS={pre({children:e}){const t=Array.isArray(e)?e[0]:e,n=(t==null?void 0:t.props)||{},r=/language-([\w-]+)/.exec(n.className||""),i=n.children,l=(Array.isArray(i)?i.join(""):String(i??"")).replace(/\n+$/,"");return p.jsx(HS,{code:l,language:r?r[1]:""})},code({children:e}){return p.jsx("code",{className:"md-code-inline",children:e})},a({href:e,children:t}){return p.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})},table({children:e}){return p.jsx("div",{className:"md-table-wrap",children:p.jsx("table",{children:e})})}};function WS({text:e}){return p.jsx("div",{className:"markdown",children:p.jsx(S1,{remarkPlugins:[Db],components:VS,children:e||""})})}const GS=A.memo(WS);class qS{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const l=this.castInput(t,r),o=this.castInput(n,r),a=this.removeEmpty(this.tokenize(l,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,i)}diffWithOptionsObj(t,n,r,i){var l;const o=y=>{if(y=this.postProcess(y,r),i){setTimeout(function(){i(y)},0);return}else return y},a=n.length,s=t.length;let u=1,f=a+s;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));const c=(l=r.timeout)!==null&&l!==void 0?l:1/0,d=Date.now()+c,h=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(h[0],n,t,0,r);if(h[0].oldPos+1>=s&&m+1>=a)return o(this.buildValues(h[0].lastComponent,n,t));let v=-1/0,w=1/0;const x=()=>{for(let y=Math.max(v,-u);y<=Math.min(w,u);y+=2){let g;const b=h[y-1],N=h[y+1];b&&(h[y-1]=void 0);let S=!1;if(N){const T=N.oldPos-y;S=N&&0<=T&&T<a}const j=b&&b.oldPos+1<s;if(!S&&!j){h[y]=void 0;continue}if(!j||S&&b.oldPos<N.oldPos?g=this.addToPath(N,!0,!1,0,r):g=this.addToPath(b,!1,!0,1,r),m=this.extractCommon(g,n,t,y,r),g.oldPos+1>=s&&m+1>=a)return o(this.buildValues(g.lastComponent,n,t))||!0;h[y]=g,g.oldPos+1>=s&&(w=Math.min(w,y-1)),m+1>=a&&(v=Math.max(v,y+1))}u++};if(i)(function y(){setTimeout(function(){if(u>f||Date.now()>d)return i(void 0);x()||y()},0)})();else for(;u<=f&&Date.now()<=d;){const y=x();if(y)return y}}addToPath(t,n,r,i,l){const o=t.lastComponent;return o&&!l.oneChangePerToken&&o.added===n&&o.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:r,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:o}}}extractCommon(t,n,r,i,l){const o=n.length,a=r.length;let s=t.oldPos,u=s-i,f=0;for(;u+1<o&&s+1<a&&this.equals(r[s+1],n[u+1],l);)u++,s++,f++,l.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return f&&!l.oneChangePerToken&&(t.lastComponent={count:f,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=s,u}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){const i=[];let l;for(;t;)i.push(t),l=t.previousComponent,delete t.previousComponent,t=l;i.reverse();const o=i.length;let a=0,s=0,u=0;for(;a<o;a++){const f=i[a];if(f.removed)f.value=this.join(r.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&this.useLongestToken){let c=n.slice(s,s+f.count);c=c.map(function(d,h){const m=r[u+h];return m.length>d.length?m:d}),f.value=this.join(c)}else f.value=this.join(n.slice(s,s+f.count));s+=f.count,f.added||(u+=f.count)}}return i}}class QS extends qS{constructor(){super(...arguments),this.tokenize=XS}equals(t,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
|
|
82
|
+
`))&&(t=t.trim()),(!r.newlineIsToken||!n.includes(`
|
|
83
|
+
`))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
|
|
84
|
+
`)&&(t=t.slice(0,-1)),n.endsWith(`
|
|
85
|
+
`)&&(n=n.slice(0,-1))),super.equals(t,n,r)}}const YS=new QS;function KS(e,t,n){return YS.diff(e,t,n)}function XS(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
86
|
+
`));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){const l=r[i];i%2&&!t.newlineIsToken?n[n.length-1]+=l:n.push(l)}return n}function ZS(e,t){const n=KS(e??"",t??""),r=[];for(const i of n){const l=i.added?"add":i.removed?"del":"ctx",o=i.value.split(`
|
|
87
|
+
`);o.length>1&&o[o.length-1]===""&&o.pop();for(const a of o)r.push({type:l,text:a})}return r}const JS={add:"+",del:"−",ctx:" "};function ml({oldText:e,newText:t,maxRows:n=80}){const r=ZS(e,t),i=r.reduce((a,s)=>a+(s.type==="add"?1:0),0),l=r.reduce((a,s)=>a+(s.type==="del"?1:0),0),o=r.slice(0,n);return p.jsxs("div",{className:"diff-view","data-testid":"diff-view",children:[p.jsxs("div",{className:"diff-stat",children:[p.jsxs("span",{className:"diff-stat-add",children:["+",i]}),p.jsxs("span",{className:"diff-stat-del",children:["−",l]})]}),p.jsx("pre",{className:"diff-body",children:o.map((a,s)=>p.jsxs("div",{className:`diff-line ${a.type}`,children:[p.jsx("span",{className:"diff-gutter",children:JS[a.type]}),p.jsx("span",{className:"diff-text",children:a.text===""?" ":a.text})]},s))}),r.length>n&&p.jsxs("div",{className:"diff-more",children:["+",r.length-n," more lines"]})]})}function Mf(e){if(!e)return"";const t=String(e).split(/[\\/]+/).filter(Boolean);return t.length>2?"…/"+t.slice(-2).join("/"):t.join("/")}function eE(e){if(!e||typeof e!="object")return"";for(const t of Object.values(e))if(typeof t=="string"&&t)return t;return""}const tE={Read:{icon:"📄",verb:"Read"},Edit:{icon:"✏️",verb:"Edit"},MultiEdit:{icon:"✏️",verb:"Edit"},Write:{icon:"📝",verb:"Write"},NotebookEdit:{icon:"📓",verb:"Edit notebook"},Bash:{icon:"▶",verb:"Run"},PowerShell:{icon:"▶",verb:"Run"},Glob:{icon:"🔍",verb:"Find"},Grep:{icon:"🔍",verb:"Search"},Task:{icon:"🤖",verb:"Agent"},WebFetch:{icon:"🌐",verb:"Fetch"},WebSearch:{icon:"🌐",verb:"Web search"},Skill:{icon:"✨",verb:"Skill"},TodoWrite:{icon:"☑",verb:"Plan"}};function nE(e,t){if(!t)return"";switch(e){case"Read":case"Edit":case"MultiEdit":case"Write":return Mf(t.file_path);case"NotebookEdit":return Mf(t.notebook_path);case"Bash":case"PowerShell":return t.command||"";case"Glob":case"Grep":return t.pattern||"";case"Task":return t.description||t.subagent_type||"";case"WebFetch":return t.url||"";case"WebSearch":return t.query||"";case"Skill":return t.command||t.name||"";default:return eE(t)}}function rE({name:e,input:t}){return(t==null?void 0:t._raw)!=null?p.jsx("pre",{className:"tool-raw",children:String(t._raw)}):e==="Edit"?p.jsx(ml,{oldText:t.old_string||"",newText:t.new_string||""}):e==="MultiEdit"&&Array.isArray(t.edits)?p.jsx(p.Fragment,{children:t.edits.map((n,r)=>p.jsx(ml,{oldText:n.old_string||"",newText:n.new_string||""},r))}):e==="Write"?p.jsx(ml,{oldText:"",newText:t.content||""}):(e==="Bash"||e==="PowerShell")&&t.description?p.jsx("div",{className:"tool-desc",children:t.description}):null}function iE({content:e,isError:t}){if(e==null)return null;const n=String(e);if(!n.trim()&&!t)return null;const i=n.length>4e3?n.slice(0,4e3)+`
|
|
88
|
+
… (truncated)`:n,l=n.split(`
|
|
89
|
+
`).find(o=>o.trim())||(t?"error":"done");return p.jsxs("details",{className:`tool-result ${t?"err":""}`,open:t,children:[p.jsxs("summary",{children:[t?"✗ ":"",l.slice(0,140)]}),p.jsx("pre",{children:i})]})}function lE({block:e}){const{name:t,input:n={},result:r,done:i,isError:l}=e,o=tE[t]||{icon:"⚙",verb:t},a=nE(t,n),s=i?l?"error":"done":"running";return p.jsxs("div",{className:`tool-card ${s}`,"data-testid":"tool-card","data-tool":t,children:[p.jsxs("div",{className:"tool-head",children:[p.jsx("span",{className:"tool-icon",children:o.icon}),p.jsx("span",{className:"tool-verb",children:o.verb}),a&&p.jsx("code",{className:"tool-target",children:a}),t==="Edit"&&n.replace_all&&p.jsx("span",{className:"tool-tag",children:"all"}),p.jsx("span",{className:"tool-status","data-status":s,children:s==="running"?p.jsx("span",{className:"tool-spinner","aria-label":"running"}):s==="error"?"✗":"✓"})]}),p.jsx(rE,{name:t,input:n}),p.jsx(iE,{content:r,isError:l})]})}const el="wild-workspace.chat.v2";function oE(e,t){var i;const n=e.blocks?e.blocks.slice():[],r=n[n.length-1];switch(t.type){case"text":return r&&r.type==="text"?n[n.length-1]={...r,text:r.text+t.text}:n.push({type:"text",text:t.text}),{...e,blocks:n};case"thinking":return r&&r.type==="thinking"?n[n.length-1]={...r,text:r.text+t.text}:n.push({type:"thinking",text:t.text}),{...e,blocks:n};case"tool-use":return n.push({type:"tool",id:t.id,name:t.name,input:t.input||{},done:!1}),{...e,blocks:n};case"tool-result":{const l=n.findIndex(o=>o.type==="tool"&&o.id===t.id);return l>=0&&(n[l]={...n[l],result:t.content,isError:t.isError,done:!0}),{...e,blocks:n}}case"usage":return{...e,usage:t.usage,costUsd:(i=t.usage)==null?void 0:i.cost_usd,durationMs:t.durationMs};case"error":return n.push({type:"error",text:t.message||"agent error"}),{...e,blocks:n};default:return e}}function Bf(e,t,n){const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]=oE(i[r],n),i}function aE(e,t,n){if(!n||!n.trim())return e;const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]={...i[r],stderr:(i[r].stderr||"")+n},i}function sE({role:e,capabilities:t,mode:n,token:r}){const[i,l]=A.useState(()=>{try{const j=localStorage.getItem(el);if(j)return JSON.parse(j)}catch{}return[]}),[o,a]=A.useState(null),[s,u]=A.useState(!1),[f,c]=A.useState(""),[d,h]=A.useState(!1),m=A.useRef(null),v=A.useRef(null),w=A.useRef(!0);A.useEffect(()=>{try{localStorage.setItem(el,JSON.stringify(i.slice(-120)))}catch{}},[i]),A.useEffect(()=>{const j=v.current;j&&w.current&&(j.scrollTop=j.scrollHeight)},[i]);function x(){const j=v.current;j&&(w.current=j.scrollHeight-j.scrollTop-j.clientHeight<90)}A.useEffect(()=>{let j=!1,T=0,L=null,C=null;const R=()=>{if(j)return;const M=window.location.protocol==="https:"?"wss":"ws",$=new URL(`${M}://${window.location.host}/ws/chat`);r&&$.searchParams.set("t",r),C=new WebSocket($.toString()),m.current=C,C.onopen=()=>{T=0,h(!0)},C.onmessage=U=>{let F;try{F=JSON.parse(U.data)}catch{return}if(F.type==="chunk")l(W=>Bf(W,F.messageId,F.chunk));else if(F.type==="stderr")l(W=>aE(W,F.messageId,F.text));else if(F.type==="end")a(null),u(!1);else if(F.type==="error")a(null),u(!1),F.messageId?l(W=>Bf(W,F.messageId,{type:"error",message:F.message||"agent error"})):l(W=>[...W,{id:`err-${Date.now()}`,role:"error",text:F.message||"agent error"}]);else if(F.type==="turn-begin")l(W=>{if(W.some(O=>O.id===F.messageId))return W;const te=[];return F.userText&&te.push({id:`u-${F.messageId}`,role:"user",text:F.userText}),F.note&&te.push({id:`note-${F.messageId}`,role:"system",text:F.note}),te.push({id:F.messageId,role:"agent",blocks:[]}),[...W,...te]}),a(F.messageId),u(!0);else if(F.type==="reset"){l([]),a(null),u(!1);try{localStorage.removeItem(el)}catch{}}},C.onerror=()=>u(!1),C.onclose=()=>{if(h(!1),u(!1),a(null),j)return;const U=Math.min(1e3*2**T,1e4);T+=1,L=setTimeout(R,U)}};return R(),()=>{j=!0,clearTimeout(L);try{C==null||C.close()}catch{}}},[r]);function y(){if(!t.chatWrite)return;const j=f.trim();if(!j||s)return;const T=m.current,L=T==null?void 0:T.readyState;if(!T||L!==WebSocket.OPEN&&L!==WebSocket.CONNECTING){l(M=>[...M,{id:`err-${Date.now()}`,role:"error",text:"reconnecting to your agent — try again in a few seconds"}]);return}const C=`m-${Date.now()}`;w.current=!0,l(M=>[...M,{id:`u-${C}`,role:"user",text:j},{id:C,role:"agent",blocks:[]}]),a(C),u(!0),c("");const R=JSON.stringify({type:"send",text:j,mode:n,messageId:C});L===WebSocket.OPEN?T.send(R):T.addEventListener("open",()=>{try{T.send(R)}catch{}},{once:!0})}function g(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"cancel"})),u(!1),a(null)}function b(){var j;((j=m.current)==null?void 0:j.readyState)===WebSocket.OPEN&&m.current.send(JSON.stringify({type:"reset"})),l([]),a(null),u(!1);try{localStorage.removeItem(el)}catch{}}function N(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),y())}const S=i.length===0;return p.jsxs(p.Fragment,{children:[!S&&t.chatWrite&&p.jsx("div",{className:"chat-toolbar","data-testid":"chat-toolbar",children:p.jsx("button",{className:"chat-newbtn",onClick:b,disabled:s,"data-testid":"new-chat-btn",title:"Start a fresh conversation — the agent forgets the current thread",children:"+ New chat"})}),p.jsxs("div",{className:"chat-messages",ref:v,onScroll:x,"data-testid":"chat-messages",children:[S&&p.jsx(pE,{role:e,connected:d}),i.map(j=>p.jsx(uE,{message:j,streaming:j.id===o},j.id))]}),t.chatWrite&&p.jsxs("div",{className:"chat-input","data-testid":"chat-input",children:[p.jsx("textarea",{"data-testid":"chat-textarea",placeholder:e==="client"?"Describe the change you’d like…":"Ask the agent to build, fix, or explain something — Enter to send",value:f,onChange:j=>c(j.target.value),onKeyDown:N,disabled:s,rows:2}),s?p.jsx("button",{onClick:g,"data-testid":"cancel-btn",children:"Stop"}):p.jsx("button",{className:"primary send-btn",onClick:y,disabled:!f.trim(),"data-testid":"send-btn",children:"Send"})]}),!t.chatWrite&&e==="viewer"&&p.jsx("div",{className:"chat-readonly-banner",children:"You’re viewing a shared workspace (read-only)."})]})}function uE({message:e,streaming:t}){if(e.role==="user")return p.jsx("div",{className:"chat-msg user","data-testid":"chat-msg-user",children:p.jsx("div",{className:"msg-plain",children:e.text})});if(e.role==="system")return p.jsx("div",{className:"chat-msg system","data-testid":"chat-msg-system",children:e.text});if(e.role==="error")return p.jsxs("div",{className:"chat-msg error","data-testid":"chat-msg-error",children:["⚠ ",e.text]});const n=e.blocks||[],r=n[n.length-1],i=t&&(r==null?void 0:r.type)==="text"?n.length-1:-1,l=t&&(n.length===0||(r==null?void 0:r.type)==="tool"&&r.done);return p.jsxs("div",{className:"chat-msg agent","data-testid":"chat-msg-agent",children:[n.map((o,a)=>p.jsx(cE,{block:o,cursor:a===i},o.id||`${o.type}-${a}`)),l&&p.jsx(fE,{}),e.usage&&p.jsx(dE,{usage:e.usage,costUsd:e.costUsd,durationMs:e.durationMs}),e.stderr&&p.jsxs("details",{className:"stderr-block",children:[p.jsx("summary",{children:"stderr"}),p.jsx("pre",{children:e.stderr})]})]})}function cE({block:e,cursor:t}){return e.type==="text"?p.jsxs("div",{className:"agent-text",children:[p.jsx(GS,{text:e.text}),t&&p.jsx("span",{className:"stream-cursor"})]}):e.type==="thinking"?p.jsxs("details",{className:"thinking-block",children:[p.jsx("summary",{children:"💭 Thought process"}),p.jsx("div",{className:"thinking-body",children:e.text})]}):e.type==="tool"?p.jsx(lE,{block:e}):e.type==="error"?p.jsxs("div",{className:"agent-error",children:["⚠ ",e.text]}):null}function fE(){return p.jsxs("div",{className:"agent-working","data-testid":"agent-working",children:[p.jsxs("span",{className:"dots",children:[p.jsx("i",{}),p.jsx("i",{}),p.jsx("i",{})]}),"working"]})}function dE({usage:e,costUsd:t,durationMs:n}){const r=typeof t=="number"?t:e==null?void 0:e.cost_usd;return p.jsxs("div",{className:"usage-footer","data-testid":"usage-footer",children:[(e==null?void 0:e.output_tokens)!=null&&p.jsxs("span",{title:"output tokens",children:["↑ ",e.output_tokens.toLocaleString()]}),typeof r=="number"&&r>0&&p.jsxs("span",{title:"cost (USD)",children:["$",r.toFixed(4)]}),n!=null&&p.jsxs("span",{children:[(n/1e3).toFixed(1),"s"]})]})}function pE({role:e,connected:t}){return p.jsxs("div",{className:"chat-empty","data-testid":"chat-empty",children:[p.jsx("div",{className:"chat-empty-mark",children:"✦"}),p.jsx("p",{className:"chat-empty-title",children:e==="client"?"Describe what you’d like changed":"Build something by chatting"}),p.jsx("p",{className:"chat-empty-sub",children:e==="client"?"The team’s AI agent will pick it up and you’ll see it here.":"The agent can read, write, and run code in this workspace. It streams back here — edits show up as diffs."}),e!=="client"&&p.jsxs("div",{className:"chat-empty-hints",children:[p.jsx("span",{children:"“What’s in this workspace?”"}),p.jsx("span",{children:"“Build a landing page in /web”"}),p.jsx("span",{children:"“Fix the failing test”"})]}),!t&&p.jsx("p",{className:"chat-empty-warn",children:"connecting to the agent bridge…"})]})}function hE({onCollapse:e,workspaceRoot:t,onOpen:n}){const[r,i]=A.useState(null),[l,o]=A.useState(null),[a,s]=A.useState(new Set);A.useEffect(()=>{fetch("/api/workspace/tree").then(c=>c.json()).then(c=>{if(c.error){o(c.error);return}i(c.entries||[])}).catch(c=>o(c.message||String(c)))},[]);function u(c){s(d=>{const h=new Set(d);return h.has(c)?h.delete(c):h.add(c),h})}function f(c,d=0){var v;const h=c.type==="dir",m=a.has(c.path);return p.jsxs("div",{children:[p.jsxs("div",{className:`tree-node ${h?"dir":""}`,onClick:()=>h?u(c.path):n==null?void 0:n(c.path),style:{paddingLeft:d*12+4},"data-testid":`tree-node-${c.path}`,children:[p.jsx("span",{style:{width:12,display:"inline-block"},children:h?m?"▾":"▸":" "}),p.jsx("span",{children:c.name})]}),h&&m&&((v=c.children)==null?void 0:v.map(w=>f(w,d+1)))]},c.path)}return p.jsxs("aside",{className:"tree-pane","data-testid":"file-tree",children:[p.jsxs("div",{className:"tree-header",children:[p.jsx("span",{children:"Files"}),p.jsx("button",{onClick:e,style:{padding:"2px 6px",fontSize:11},children:"⟨"})]}),p.jsxs("div",{className:"tree-list",children:[l&&p.jsx("div",{style:{color:"var(--error)",padding:4},children:l}),!r&&!l&&p.jsxs("div",{style:{color:"var(--text-muted)",padding:4},children:[p.jsx("span",{className:"spinner"})," loading…"]}),(r==null?void 0:r.length)===0&&p.jsx("div",{style:{color:"var(--text-muted)",padding:4},children:"Empty workspace"}),r==null?void 0:r.map(c=>f(c,0))]})]})}const mE=[{id:"preview",label:"Preview"},{id:"code",label:"Code"},{id:"logs",label:"Logs"},{id:"deploy",label:"Deploy"}];function gE({focus:e,workspaceRoot:t}){const[n,r]=A.useState("preview"),[i,l]=A.useState([]),[o,a]=A.useState(null),[s,u]=A.useState("3000"),[f,c]=A.useState(null);return A.useEffect(()=>{e&&(r("code"),fetch(`/api/workspace/file?path=${encodeURIComponent(e)}`).then(d=>d.json()).then(d=>c(d)))},[e]),A.useEffect(()=>{if(n!=="preview")return;let d=!1;async function h(){var x;const v=await fetch("/api/preview/ports").catch(()=>null);if(!v||d)return;const w=await v.json();d||(l(w.ports||[]),!o&&((x=w.ports)==null?void 0:x.length)>0&&a(w.ports[0].port))}h();const m=setInterval(h,4e3);return()=>{d=!0,clearInterval(m)}},[n,o]),p.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[p.jsxs("div",{className:"preview-tabs","data-testid":"preview-tabs",children:[mE.map(d=>p.jsx("button",{className:n===d.id?"active":"",onClick:()=>r(d.id),"data-testid":`preview-tab-${d.id}`,children:d.label},d.id)),p.jsx("span",{style:{flex:1}}),n==="preview"&&p.jsxs("div",{className:"preview-port-input",children:[p.jsx("input",{value:s,onChange:d=>u(d.target.value),placeholder:"port","data-testid":"preview-port-input"}),p.jsx("button",{onClick:()=>a(Number(s)),"data-testid":"preview-port-go",children:"Load"})]})]}),p.jsxs("div",{className:"preview-body",children:[n==="preview"&&(o?p.jsx("iframe",{className:"preview-iframe",src:`http://localhost:${o}`,title:`localhost:${o}`,"data-testid":"preview-iframe"},o):p.jsxs("div",{className:"preview-empty","data-testid":"preview-empty",children:[p.jsxs("p",{style:{maxWidth:320,lineHeight:1.6},children:["No dev server detected yet. Ask the agent to start one (e.g. ",p.jsx("code",{children:"bun dev"}),", ",p.jsx("code",{children:"npm run dev"}),"), then I’ll auto-detect it."]}),i.length>0&&p.jsxs("p",{style:{fontSize:12},children:["Detected: ",i.map(d=>`:${d.port}`).join(", ")]})]})),n==="code"&&p.jsx("div",{className:"preview-code-view","data-testid":"preview-code",children:f?p.jsxs(p.Fragment,{children:[p.jsxs("div",{style:{color:"var(--text-muted)",fontSize:11,marginBottom:8},children:[e," (",f.size," bytes",f.truncated?", truncated":"",")"]}),p.jsx("pre",{children:f.content})]}):p.jsx("div",{className:"preview-empty",children:"Click a file in the tree to inspect it."})}),n==="logs"&&p.jsx("div",{className:"preview-empty","data-testid":"preview-logs",children:"Logs panel — wires up to the agent's stderr stream and dev-server stdout (v1.x)."}),n==="deploy"&&p.jsxs("div",{className:"preview-empty","data-testid":"preview-deploy",children:["Deploy — Cloudflare Pages + custom-domain wizard ships in v1.1.",p.jsx("br",{}),"For now: run ",p.jsx("code",{children:"npx wrangler pages deploy"})," in the terminal."]})]})]})}function yE({onClose:e}){const[t,n]=A.useState("viewer"),[r,i]=A.useState(24),[l,o]=A.useState(""),[a,s]=A.useState(null),[u,f]=A.useState([]),[c,d]=A.useState(null),[h,m]=A.useState(!1);A.useEffect(()=>{v()},[]);async function v(){const g=await fetch("/api/share").catch(()=>null);if(!g||!g.ok)return;const b=await g.json();f(b.tokens||[])}async function w(){d(null),m(!0);try{const g=await fetch("/api/share",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({role:t,ttlSeconds:Math.max(60,Number(r)*3600),label:l})}),b=await g.json();if(!g.ok)throw new Error(b.error||`HTTP ${g.status}`);s(b),v()}catch(g){d(g.message||String(g))}finally{m(!1)}}async function x(g){await fetch(`/api/share/${encodeURIComponent(g)}`,{method:"DELETE"}),v()}async function y(g){try{await navigator.clipboard.writeText(g)}catch{}}return p.jsx("div",{className:"modal-backdrop",onClick:e,children:p.jsxs("div",{className:"modal",onClick:g=>g.stopPropagation(),"data-testid":"share-dialog",children:[p.jsx("h2",{children:"Share workspace"}),p.jsx("p",{className:"muted",children:"Issue a token-protected URL. Anyone with the link opens this workspace in their browser with the role you choose."}),p.jsx("label",{children:"Role"}),p.jsx("div",{className:"row",children:p.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[p.jsx("input",{type:"radio",name:"role",value:"viewer",checked:t==="viewer",onChange:()=>n("viewer"),"data-testid":"share-role-viewer"}),p.jsx("span",{children:"Viewer — read-only chat + preview"})]})}),p.jsx("div",{className:"row",children:p.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[p.jsx("input",{type:"radio",name:"role",value:"client",checked:t==="client",onChange:()=>n("client"),"data-testid":"share-role-client"}),p.jsx("span",{children:"Client — chat + request changes (for AI-installer GTM)"})]})}),p.jsxs("div",{className:"row",children:[p.jsxs("div",{children:[p.jsx("label",{children:"Expires in"}),p.jsx("input",{type:"number",min:"1",value:r,onChange:g=>i(g.target.value),style:{width:80,background:"var(--bg)",color:"var(--text)",border:"1px solid var(--border)",padding:"4px 8px",borderRadius:6},"data-testid":"share-ttl"}),p.jsx("span",{style:{marginLeft:6,color:"var(--text-muted)",fontSize:12},children:"hours"})]}),p.jsxs("div",{style:{flex:1},children:[p.jsx("label",{children:"Label (optional)"}),p.jsx("input",{value:l,onChange:g=>o(g.target.value),placeholder:"e.g. Mel preview",style:{width:"100%",background:"var(--bg)",color:"var(--text)",border:"1px solid var(--border)",padding:"4px 8px",borderRadius:6},"data-testid":"share-label"})]})]}),c&&p.jsx("div",{style:{color:"var(--error)",fontSize:12,marginBottom:8},"data-testid":"share-error",children:c}),a&&p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Share URL"}),p.jsx("div",{className:"url-output","data-testid":"share-url",children:a.shareUrl}),p.jsxs("div",{style:{display:"flex",gap:8},children:[p.jsx("button",{onClick:()=>y(a.shareUrl),"data-testid":"share-copy",children:"Copy"}),p.jsx("a",{href:a.shareUrl,target:"_blank",rel:"noreferrer",children:p.jsx("button",{children:"Open"})})]})]}),u.length>0&&p.jsxs("div",{style:{marginTop:16},children:[p.jsx("label",{children:"Active share tokens"}),p.jsx("div",{style:{maxHeight:140,overflow:"auto",border:"1px solid var(--border)",borderRadius:6},children:u.map(g=>p.jsxs("div",{style:{padding:"6px 10px",borderBottom:"1px solid var(--border)",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12},"data-testid":`active-token-${g.sub}`,children:[p.jsxs("div",{children:[p.jsx("strong",{children:g.label||g.role})," ",p.jsxs("span",{style:{color:"var(--text-muted)"},children:["(",g.role,", expires ",new Date(g.exp*1e3).toLocaleString(),")"]})]}),p.jsx("button",{onClick:()=>x(g.sub),style:{fontSize:11},"data-testid":`revoke-${g.sub}`,children:"Revoke"})]},g.sub))})]}),p.jsxs("div",{className:"actions",children:[p.jsx("button",{onClick:e,"data-testid":"share-close",children:"Close"}),p.jsx("button",{className:"primary",onClick:w,disabled:h,"data-testid":"share-issue",children:h?p.jsx("span",{className:"spinner"}):"Issue URL"})]})]})})}function xE({onClose:e,token:t}){var R,M;const[n,r]=A.useState(null),[i,l]=A.useState(!1),[o,a]=A.useState(null),[s,u]=A.useState(!1),[f,c]=A.useState(""),[d,h]=A.useState(""),[m,v]=A.useState(168),[w,x]=A.useState(null);A.useEffect(()=>{g()},[]);function y($,U={}){const F={...U.headers||{}};return t&&(F.Authorization=`Bearer ${t}`),fetch($,{...U,headers:F})}async function g(){a(null),l(!1);const $=await y("/api/sync/status").catch(()=>null);if(!$||!$.ok){l(!0);return}r(await $.json())}async function b($){a(null),u(!0);try{await $()}catch(U){a(U.message||String(U))}finally{u(!1)}}const N=()=>b(async()=>{const $=await y("/api/sync/pair",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({inviteCode:f})}),U=await $.json();if(!$.ok)throw new Error(U.error||`HTTP ${$.status}`);c(""),await g()}),S=()=>b(async()=>{var F,W;const $=await y("/api/sync/invite",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectCode:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.projectId,displayName:d,expiresHours:Math.max(1,Number(m)||168)})}),U=await $.json();if(!$.ok)throw new Error(U.error||`HTTP ${$.status}`);x(U.invite)}),j=()=>b(async()=>{var F,W;const $=await y("/api/sync/detach",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({workspaceId:(W=(F=n==null?void 0:n.workspaces)==null?void 0:F[0])==null?void 0:W.workspaceId})}),U=await $.json();if(!$.ok)throw new Error(U.error||`HTTP ${$.status}`);x(null),await g()});async function T($){try{await navigator.clipboard.writeText($)}catch{}}const L=((R=n==null?void 0:n.workspaces)==null?void 0:R[0])||null,C=!!n&&!((M=n.daemon)!=null&&M.running);return p.jsx("div",{className:"modal-backdrop",onClick:e,children:p.jsxs("div",{className:"modal",onClick:$=>$.stopPropagation(),"data-testid":"sync-dialog",children:[p.jsx("h2",{children:"Collaborate on this folder"}),p.jsx("p",{className:"muted",children:"bmo-sync keeps this workspace folder identical across machines — yours and a collaborator's. Both of you edit; changes flow both ways. Like a shared drive, but built for workspaces."}),!n&&!i&&p.jsxs("div",{className:"muted",children:[p.jsx("span",{className:"spinner"})," Checking sync status…"]}),i&&p.jsxs("div",{className:"sync-state warn","data-testid":"sync-load-failed",children:[p.jsx("strong",{children:"Couldn't load sync status."}),p.jsx("span",{className:"muted",children:"The workspace server didn't answer. Try again."})]}),C&&p.jsxs("div",{className:"sync-state warn","data-testid":"sync-daemon-down",children:[p.jsx("strong",{children:"The bmo-sync daemon isn't running."}),p.jsx("span",{className:"muted",children:"Folder sharing needs the background sync service running on this machine. Start it, then recheck."})]}),n&&!C&&!L&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sync-state","data-testid":"sync-unpaired",children:[p.jsxs("strong",{children:[n.workspaceName," isn't shared yet."]}),p.jsx("span",{className:"muted",children:"Got an invite code from a collaborator? Paste it to sync this folder with theirs."})]}),p.jsx("label",{children:"Invite code"}),p.jsxs("div",{className:"row",children:[p.jsx("input",{className:"sync-input",style:{flex:1},value:f,onChange:$=>c($.target.value),placeholder:"e.g. CAFE-MILANO-A8X3","data-testid":"sync-invite-input"}),p.jsx("button",{className:"primary",onClick:N,disabled:s||!f.trim(),"data-testid":"sync-join",children:s?p.jsx("span",{className:"spinner"}):"Connect folder"})]})]}),n&&!C&&L&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sync-state ok","data-testid":"sync-paired",children:[p.jsxs("strong",{children:["✓ Synced — ",L.projectName||L.projectId]}),p.jsxs("span",{className:"muted",children:["This folder is shared. Edits sync both ways automatically",L.conflictCount?` · ${L.conflictCount} conflict${L.conflictCount>1?"s":""} resolved`:"","."]})]}),n.canInvite?p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Invite a collaborator"}),p.jsxs("div",{className:"row",children:[p.jsx("input",{className:"sync-input",style:{flex:1},value:d,onChange:$=>h($.target.value),placeholder:"Their name — e.g. Mel","data-testid":"sync-invite-name"}),p.jsx("input",{className:"sync-input",style:{width:64},type:"number",min:"1",value:m,onChange:$=>v($.target.value),title:"Invite expires in (hours)"}),p.jsx("button",{onClick:S,disabled:s,"data-testid":"sync-create-invite",children:s?p.jsx("span",{className:"spinner"}):"Create invite"})]}),w&&p.jsxs(p.Fragment,{children:[p.jsx("label",{children:"Send this code to your collaborator"}),p.jsx("div",{className:"url-output","data-testid":"sync-invite-code",children:w.code}),p.jsxs("div",{className:"row",style:{marginBottom:0},children:[p.jsx("button",{onClick:()=>T(w.code),"data-testid":"sync-copy-code",children:"Copy code"}),w.expiresAt&&p.jsxs("span",{className:"muted",style:{margin:0},children:["expires ",new Date(w.expiresAt*1e3).toLocaleDateString()]})]})]})]}):p.jsxs("p",{className:"muted","data-testid":"sync-no-invite",children:["Inviting from here needs a bmo-sync admin key (set"," ",p.jsx("span",{className:"md-code-inline",children:"BMO_SYNC_ADMIN_KEY"}),"). Without it, anyone you've already invited can still join with their own code."]})]}),o&&p.jsx("div",{style:{color:"var(--error)",fontSize:12,marginTop:8},"data-testid":"sync-error",children:o}),p.jsxs("div",{className:"actions",children:[(C||i)&&p.jsx("button",{onClick:g,disabled:s,"data-testid":"sync-recheck",children:"Recheck"}),L&&!C&&p.jsx("button",{onClick:j,disabled:s,"data-testid":"sync-disconnect",children:"Disconnect"}),p.jsx("button",{onClick:e,"data-testid":"sync-close",children:"Close"})]})]})})}function vE({alert:e,onDismiss:t}){if(!e)return null;const n=e.kind==="fatal";return p.jsxs("div",{className:"conflict-banner","data-testid":"conflict-banner",role:"status",children:[p.jsx("span",{className:"ico",children:n?"⛔":"⚠️"}),n?p.jsxs("span",{children:[p.jsx("strong",{children:"Sync stopped."})," ",e.message||"The sync engine hit a fatal error."," Reconnect from the Collaborate dialog."]}):p.jsxs("span",{children:[p.jsx("strong",{children:"Sync conflict"})," on ",p.jsx("code",{children:e.path||"a file"})," — bmo-sync kept ",p.jsx("strong",{children:e.resolution||"the latest edit"}),e.user?` (also edited by ${e.user})`:"","."]}),p.jsx("span",{className:"spacer"}),p.jsx("button",{onClick:t,"data-testid":"conflict-dismiss",children:"Dismiss"})]})}function kE({urlToken:e,onClose:t}){const[n,r]=A.useState([]),[i,l]=A.useState(!0),[o,a]=A.useState(null),[s,u]=A.useState(null),[f,c]=A.useState({}),[d,h]=A.useState(null),m=e?{Authorization:`Bearer ${e}`}:{};function v(){l(!0),fetch("/api/conflicts",{headers:m}).then(g=>g.ok?g.json():{conflicts:[]}).then(g=>{r(Array.isArray(g==null?void 0:g.conflicts)?g.conflicts:[]),a(null)}).catch(g=>a(String((g==null?void 0:g.message)||g))).finally(()=>l(!1))}A.useEffect(v,[]);function w(g){return`${g.workspaceId}:${g.path}`}async function x(g){const b=w(g);if(f[b])return;const N=new URL("/api/conflicts/view",window.location.origin);N.searchParams.set("workspaceId",g.workspaceId),N.searchParams.set("path",g.path);const S=await fetch(N.toString(),{headers:m});if(!S.ok){a(`Could not load ${g.path} (HTTP ${S.status})`);return}const j=await S.json().catch(()=>null);j&&c(T=>({...T,[b]:{mine:$f(j.mine),theirs:$f(j.theirs),conflict:j.conflict}}))}async function y(g,b){const N=w(g);h(N);try{const S=await fetch("/api/conflicts/resolve",{method:"POST",headers:{"content-type":"application/json",...m},body:JSON.stringify({workspaceId:g.workspaceId,path:g.path,action:b})});if(!S.ok){const j=await S.json().catch(()=>({}));a((j==null?void 0:j.error)||`Resolve failed (HTTP ${S.status}).`);return}v(),u(null)}finally{h(null)}}return p.jsxs("div",{className:"conflict-panel","data-testid":"conflict-panel",role:"dialog","aria-label":"Open conflicts",children:[p.jsxs("header",{className:"conflict-panel-header",children:[p.jsx("strong",{children:"Open conflicts"})," ",p.jsxs("span",{className:"muted",children:["(",n.length,") · changes saved to the daemon back-office until you resolve"]}),p.jsx("span",{className:"spacer"}),p.jsx("button",{onClick:v,children:"Refresh"}),p.jsx("button",{onClick:t,children:"Close"})]}),i&&p.jsx("div",{className:"muted",children:"Loading…"}),o&&p.jsx("div",{className:"conflict-panel-error",children:o}),!i&&n.length===0&&p.jsx("div",{className:"muted",children:"No open conflicts."}),p.jsx("ul",{className:"conflict-list",children:n.map(g=>{const b=w(g),N=s===b,S=f[b];return p.jsxs("li",{className:"conflict-row",children:[p.jsxs("div",{className:"conflict-row-head",onClick:()=>{N?u(null):(u(b),g.resolution!=="remote_announced"&&x(g))},children:[p.jsx("code",{children:g.path}),p.jsxs("span",{className:"muted",children:["·"," ",g.resolution==="remote_announced"?`${g.conflictingUser||"peer"} flagged`:g.conflictingUser||"peer"," ","·"," ",new Date((g.detectedAt||0)*1e3).toLocaleTimeString()]}),p.jsx("span",{className:"spacer"}),p.jsx("span",{className:"muted",children:N?"▲":"▼"})]}),N&&g.resolution==="remote_announced"&&p.jsxs("div",{className:"conflict-row-body",children:[p.jsxs("div",{className:"muted",children:[g.conflictingUser||"A peer"," reported a conflict on this file. Your local copy is unchanged here — open it, decide whether to keep your version or pull theirs, save, and the next sync will reconcile."]}),p.jsx("div",{className:"conflict-actions",children:p.jsx("button",{disabled:d===b,onClick:()=>y(g,"keep_mine"),"data-testid":"conflict-acknowledge",children:"Acknowledge"})})]}),N&&g.resolution!=="remote_announced"&&p.jsxs("div",{className:"conflict-row-body",children:[!S&&p.jsx("div",{className:"muted",children:"Loading diff…"}),S&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"conflict-meta",children:[p.jsxs("span",{children:["mine: ",p.jsx("code",{children:ua(g.mineSha256)})]}),p.jsxs("span",{children:["theirs: ",p.jsx("code",{children:ua(g.theirsSha256)})]}),g.baseSha256&&p.jsxs("span",{children:["base: ",p.jsx("code",{children:ua(g.baseSha256)})]})]}),p.jsx(wE,{mine:S.mine,theirs:S.theirs}),p.jsxs("div",{className:"conflict-actions",children:[p.jsx("button",{disabled:d===b,onClick:()=>y(g,"keep_mine"),"data-testid":"conflict-keep-mine",children:"Keep mine"}),p.jsx("button",{disabled:d===b,onClick:()=>y(g,"take_theirs"),"data-testid":"conflict-take-theirs",children:"Take theirs"})]})]})]})]},b)})})]})}function $f(e){if(typeof e!="string")return null;try{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return new TextDecoder().decode(n)}catch{return null}}function ua(e){return typeof e!="string"?"∅":e.length>12?`${e.slice(0,12)}…`:e}function wE({mine:e,theirs:t}){return e==null&&t==null?p.jsx("div",{className:"muted",children:"Both versions unavailable on disk."}):e==null||t==null?p.jsx("div",{className:"muted",children:"Only one side is available — the other was deleted before resolution."}):p.jsx(ml,{oldText:t,newText:e})}function bE({role:e,urlToken:t,onSyncAlert:n,onOpenConflicts:r}){const[i,l]=A.useState([]),[o,a]=A.useState({tokensIn:0,tokensOut:0,costUsd:0}),[s,u]=A.useState([]),[f,c]=A.useState(!1),[d,h]=A.useState(null),[m,v]=A.useState(0);A.useEffect(()=>{if(e!=="partner")return;const b=t?{Authorization:`Bearer ${t}`}:{};fetch("/api/sync/status",{headers:b}).then(N=>N.ok?N.json():null).then(N=>{var S;N&&h({paired:!!N.paired,daemonRunning:!!((S=N.daemon)!=null&&S.running),peer:null})}).catch(()=>{}),fetch("/api/conflicts",{headers:b}).then(N=>N.ok?N.json():{conflicts:[]}).then(N=>v(Array.isArray(N==null?void 0:N.conflicts)?N.conflicts.length:0)).catch(()=>{})},[e,t]),A.useEffect(()=>{const b=window.location.protocol==="https:"?"wss":"ws",N=new URL(`${b}://${window.location.host}/ws/activity`);t&&N.searchParams.set("t",t);const S=new WebSocket(N.toString());return S.onopen=()=>c(!0),S.onclose=()=>c(!1),S.onmessage=j=>{let T;try{T=JSON.parse(j.data)}catch{return}T.type==="snapshot"?(l(T.snapshot.presence||[]),a(T.snapshot.usage||{tokensIn:0,tokensOut:0,costUsd:0}),u(T.snapshot.recent||[])):(u(L=>[...L.slice(-49),T]),w(T))},()=>{try{S.close()}catch{}}},[t]);function w(b){b.type==="daemon-status"?h(N=>({...N||{paired:!1},daemonRunning:!!b.connected})):b.type==="sync-paired"?h(N=>({...N||{},paired:!0,daemonRunning:!0})):b.type==="sync-detached"?h(N=>({...N||{},paired:!1,peer:null})):b.type==="remote-presence"?h(N=>({...N||{paired:!0},peer:b.user||null})):b.type==="sync-conflict"?(n==null||n({kind:"conflict",path:b.path,resolution:b.resolution,user:b.conflictingUser}),(b.resolution==="local_pre_write_guard"||b.resolution==="remote_announced")&&v(N=>N+1)):b.type==="sync-conflict-resolved"?v(N=>Math.max(0,N-1)):b.type==="sync-fatal"&&(n==null||n({kind:"fatal",message:b.message}))}const x=[...s].reverse().find(b=>b.type==="chat-stream"||b.type==="chat-user"||b.type==="chat-end"),y=s.find(b=>b.type==="inbox-change");let g=null;return d!=null&&d.paired&&(g=d.daemonRunning?p.jsxs("span",{className:"pill synced","data-testid":"activity-sync",children:["⇄ Synced",d.peer?` · with ${d.peer}`:""]}):p.jsx("span",{className:"pill sync-off","data-testid":"activity-sync",children:"⇄ Sync paused"})),p.jsxs("footer",{className:"bottombar","data-testid":"activity-bar",children:[p.jsx("span",{className:`pill ${f?"live":""}`,"data-testid":"activity-connected",children:f?"live":"reconnecting…"}),p.jsxs("span",{className:"pill","data-testid":"activity-presence",children:["👥 ",i.length," viewing"]}),g,e==="partner"&&m>0&&p.jsxs("button",{type:"button",className:"pill conflict-badge","data-testid":"activity-conflicts",onClick:()=>r==null?void 0:r(),title:"Resolve open sync conflicts",children:["🛑 ",m," conflict",m===1?"":"s"]}),p.jsxs("span",{className:"pill","data-testid":"activity-usage",children:["↓",o.tokensIn," ↑",o.tokensOut," · $",(o.costUsd||0).toFixed(3)]}),x&&p.jsx("span",{className:"pill",style:{maxWidth:380,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"activity-last",children:x.type==="chat-end"?"✓ agent finished":"… agent streaming"}),y&&p.jsx("span",{className:"pill","data-testid":"activity-inbox",children:"📦 inbox updated"}),p.jsx("span",{style:{flex:1}}),p.jsxs("span",{style:{fontSize:11},children:["v0.1.0 · ",e]})]})}function SE(){var r;const[e,t]=A.useState(null);if(A.useEffect(()=>{let i=!1;async function l(){try{const s=await(await fetch("/api/inbox")).json();i||t(s)}catch{}}l();const o=setInterval(l,5e3);return()=>{i=!0,clearInterval(o)}},[]),!e||!e.hasInbox||!((r=e.imports)!=null&&r.length))return null;const n=e.imports.filter(i=>{var o;const l=Object.keys(e.installed||{}).find(a=>a.startsWith(i.replace(/-v[\d.]+$/,"")));return l?((o=e.installed[l])==null?void 0:o.integrated)!==!0:!0});return n.length===0?null:p.jsxs("div",{className:"inbox-card","data-testid":"inbox-card",children:["📦 ",p.jsx("strong",{children:"Component inbox"}),": ",n.length," pending integration",n.length!==1?"s":"",": ",n.join(", "),".",p.jsxs("span",{className:"muted",children:["Ask the agent: ",p.jsxs("em",{children:["“walk me through integrating ",n[0],"”"]})]})]})}const EE=[{id:"concise",label:"Concise",sample:"Got it. Done."},{id:"playful",label:"Playful",sample:"Oh nice — let's go!"},{id:"formal",label:"Formal",sample:"Understood. Proceeding now."},{id:"dry",label:"Dry",sample:"Sure. If we must."}],Uf=["#22d3ee","#a78bfa","#f472b6","#facc15","#34d399","#fb7185"],CE=[{id:"drive",label:"Google Drive",note:"Files & docs"},{id:"notion",label:"Notion",note:"Wiki & notes"},{id:"gmail",label:"Gmail",note:"Inbox & threads"},{id:"calendar",label:"Calendar",note:"Schedule"},{id:"canva",label:"Canva",note:"Designs"},{id:"github",label:"GitHub",note:"Code & PRs"}],NE=new Set(["login","missing","subscribe"]),jE=new Set(["login","missing"]),Hf={missing:{title:"Almost there — I need Claude installed before I can think.",subtitle:"That's the brain I run on. Install it once, then come back here.",cmdLabel:"Run this in your terminal",cmd:"curl -fsSL https://claude.ai/install.sh | bash",after:"Then come back and press the button below.",retry:"Still don't see Claude on this machine. Make sure the install finished, then try again."},login:{title:"One quick thing before we dig in — sign me in to Claude.",subtitle:"It's a one-time sign-in to your own Claude account — it runs on your machine, on your plan. After this you won't be asked again.",cmdLabel:"Run this once in your terminal",cmd:"claude auth login",after:"A browser window opens — sign in with your Claude account, then come back and press the button.",retry:"Hmm — still not signed in. Finish the sign-in in your browser, then press it again."},subscribe:{title:"You're in — I just need an active Claude plan to start thinking.",subtitle:"Claude Code runs on a Claude Pro plan (or higher). Grab one on your own account, then come back — you won’t be asked again.",cmdLabel:"Get a plan, then come back",link:"https://claude.ai/upgrade",linkLabel:"Open claude.ai →",after:"Subscribe at claude.ai, then come back and press the button.",retry:"Still no active plan showing. Give it a moment after subscribing, then try again."}},TE=new Set(["md","txt","json","yml","yaml","toml","js","mjs","cjs","ts","tsx","jsx","py","rb","go","rs","java","kt","swift","c","h","cpp","cc","hpp","css","scss","html","sh","env","sql","xml","svg","csv"]);function _E(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}function IE(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="localhost"||t.hostname==="127.0.0.1"?null:t.protocol==="http:"&&(t.port===""||t.port==="80")||t.protocol==="https:"&&(t.port===""||t.port==="443")?t.hostname:`${t.hostname}:${t.port}`}catch{return null}}async function AE(e){const t=Array.from(e||[]).slice(0,200);if(t.length===0)return{folderName:null,files:[]};const n=(t[0].webkitRelativePath||t[0].name).split("/")[0]||"folder",r=40,i=600,l=[];for(const a of t){if(l.length>=r)break;const s=a.webkitRelativePath||a.name,u=_E(a.name);if(!TE.has(u)){l.push({path:s,head:""});continue}if(a.size>100*1024){l.push({path:s,head:""});continue}try{const d=await a.slice(0,i).text();l.push({path:s,head:d})}catch{l.push({path:s,head:""})}}const o=Math.max(t.length-l.length,0);return{folderName:n,files:l,totalFiles:t.length,untouched:o}}function PE({peekSummary:e,services:t,agentName:n}){const r=[],i=e!=null&&e.folderName?` (you just glanced at "${e.folderName}")`:"";return r.push({kind:"survey",title:"Tell me what's in my workspace",sub:e!=null&&e.folderName?"I'll read the workspace I'm running in and summarize.":"I'll read what's here and summarize the project."}),(t==null?void 0:t.size)>0?r.push({kind:"startup",title:"Help me start something new",sub:`${n} will ask one question to figure out what to build.`}):r.push({kind:"startup",title:"Help me start a project",sub:"Tell me the rough idea — I'll scaffold it."}),r.push({kind:"chat",title:"Just chat — find me work",sub:"No agenda yet. Get me into the workspace."}),r}function Vf(e,t=55,n=380){const[r,i]=A.useState(""),[l,o]=A.useState(!1),[a,s]=A.useState(!1);return A.useEffect(()=>{if(!e){i(""),o(!1),s(!1);return}i(""),o(!1),s(!1);let u=0,f=null;const c=setTimeout(()=>{s(!0),f=setInterval(()=>{u+=1,i(e.slice(0,u)),u>=e.length&&(clearInterval(f),o(!0))},t)},n);return()=>{clearTimeout(c),f&&clearInterval(f)}},[e,t,n]),[r,l,a]}function rn({children:e,from:t="agent",accent:n,streaming:r=!1}){return p.jsx("div",{className:`ob-bubble ob-bubble-${t}${r?" ob-bubble-streaming":""}`,style:t==="user"?{borderColor:n}:void 0,children:e})}function Yn(){return p.jsx("span",{className:"ob-caret","aria-hidden":"true",children:"▍"})}function Wf(e){const t=Math.random().toString(36).slice(2,8);return`${e}-${Date.now().toString(36)}-${t}`}function LE({session:e,token:t,onComplete:n}){var pt,Jt,en,Fe;const[r,i]=A.useState(1),l=A.useMemo(()=>IE(e==null?void 0:e.shareBaseUrl),[e==null?void 0:e.shareBaseUrl]),[o,a]=A.useState(((pt=e==null?void 0:e.identity)==null?void 0:pt.name)||""),[s,u]=A.useState(((Jt=e==null?void 0:e.identity)==null?void 0:Jt.tone)||"concise"),[f,c]=A.useState(((en=e==null?void 0:e.identity)==null?void 0:en.color)||Uf[0]),[d,h]=A.useState(!1),[m,v]=A.useState(null),[w,x]=A.useState(null),[y,g]=A.useState(!1),[b,N]=A.useState(!1),[S,j]=A.useState(new Set(((Fe=e==null?void 0:e.identity)==null?void 0:Fe.connectedServices)||[])),[T,L]=A.useState(!1),[C,R]=A.useState(null),[M,$]=A.useState(null),[U,F]=A.useState(!1),W=A.useRef(null),te=A.useRef(null),O=A.useRef({}),[V,k]=A.useState({}),Y=A.useCallback((P,Q,le)=>{P&&k(he=>{const Qe=he[P]||{text:"",done:!1,error:null},Nn=Q==="text"?Qe.text+(le||""):Qe.text,ht={...he,[P]:{...Qe,text:Nn}};return O.current[P]=Nn,ht})},[]),X=A.useCallback((P,Q)=>{P&&k(le=>{const he=le[P]||{text:"",done:!1,error:null};return{...le,[P]:{...he,done:!0,error:Q||he.error}}})},[]);A.useEffect(()=>{let P=!1,Q=0,le=null,he=null;const Qe=()=>{if(P)return;const Nn=window.location.protocol==="https:"?"wss":"ws",ht=new URL(`${Nn}://${window.location.host}/ws/chat`);t&&ht.searchParams.set("t",t),he=new WebSocket(ht.toString()),te.current=he,he.onmessage=Mt=>{var Bt;let Ue;try{Ue=JSON.parse(Mt.data)}catch{return}Ue.type==="chunk"&&((Bt=Ue.chunk)==null?void 0:Bt.type)==="text"?Y(Ue.messageId,"text",Ue.chunk.text):Ue.type==="end"?X(Ue.messageId,null):Ue.type==="error"&&X(Ue.messageId,Ue.message||"agent error")},he.onopen=()=>{Q=0},he.onclose=()=>{if(te.current=null,P)return;const Mt=Math.min(1e3*2**Q,8e3);Q+=1,le=setTimeout(Qe,Mt)},he.onerror=()=>{}};return Qe(),()=>{P=!0,clearTimeout(le);try{he==null||he.close()}catch{}}},[t,Y,X]),A.useEffect(()=>{document.documentElement.style.setProperty("--accent",f),document.documentElement.style.setProperty("--accent-hot",f)},[f]);const E=A.useMemo(()=>{const P={"content-type":"application/json"};return t&&(P.Authorization=`Bearer ${t}`),P},[t]);async function se(P){const Q=await fetch("/api/agent/identity",{method:"POST",headers:E,body:JSON.stringify({name:o,tone:s,color:f,...P})});if(!Q.ok){const le=await Q.json().catch(()=>({}));throw new Error(le.error||`save failed (${Q.status})`)}return Q.json()}const _e=A.useCallback(async(P=!1)=>{g(!0);try{const Q=await fetch(`/api/agent/readiness${P?"?fresh=1":""}`,{headers:E});return Q.ok?await Q.json():{status:"unknown"}}catch{return{status:"unknown"}}finally{g(!1)}},[E]);async function ie(){if(v(null),!o.trim()){v("Pick a name — even just one syllable.");return}h(!0);try{await se({});const P=await _e(!1);if(NE.has(P.status)){x(P);return}i(2)}catch(P){v(String(P.message||P))}finally{h(!1)}}async function Ie(){const P=await _e(!0);if(N(!0),P.status==="login"||P.status==="missing"){x(P);return}x(null),i(2)}const[nt,dt]=A.useState(null),$e=nt?V[nt]:null;async function Zt(P){if($(null),!(!P||P.length===0)){L(!0);try{const Q=await AE(P);if(Q.files.length===0){$("That folder looks empty — try another?"),L(!1);return}R(Q);const le=Wf("peek");dt(le),k(Qe=>({...Qe,[le]:{text:"",done:!1,error:null}}));const he=await fetch("/api/onboarding/peek",{method:"POST",headers:E,body:JSON.stringify({folderName:Q.folderName,files:Q.files,totalFiles:Q.totalFiles,messageId:le})});if(!he.ok){const Qe=await he.json().catch(()=>({}));throw new Error(Qe.error||`peek failed (${he.status})`)}}catch(Q){$(String(Q.message||Q))}finally{L(!1)}}}function yo(P){j(Q=>{const le=new Set(Q);return le.has(P)?le.delete(P):le.add(P),le})}const[Wn,_r]=A.useState(null),[xo,Gn]=A.useState(null),[Ir,Ii]=A.useState(null),ve=Wn?V[Wn]:null;async function Ai(P){Ii(null),Gn(P);const Q=Wf("job");_r(Q),k(le=>({...le,[Q]:{text:"",done:!1,error:null}}));try{await se({connectedServices:[...S]});const le=await fetch("/api/onboarding/start-job",{method:"POST",headers:E,body:JSON.stringify({kind:P,messageId:Q,peekFolderName:(C==null?void 0:C.folderName)||null})});if(!le.ok){const he=await le.json().catch(()=>({}));throw new Error(he.error||`start-job failed (${le.status})`)}}catch(le){Ii(String(le.message||le)),_r(null),Gn(null)}}async function Pi(){try{await se({connectedServices:[...S]});const P=await fetch("/api/agent/onboarded",{method:"POST",headers:E});if(!P.ok){const Q=await P.json().catch(()=>({}));throw new Error(Q.error||`mark-onboarded failed (${P.status})`)}n==null||n()}catch(P){v(String(P.message||P))}}const Cn=o.trim()||"your agent",vo="Hey. I'm new here.",ko="Before we start — what should I call myself?",[wo,_]=Vf(r===1?vo:"",65,420),[B,q]=Vf(r===1&&_?ko:"",48,520),Z=r===1?q:!0,oe=A.useMemo(()=>PE({peekSummary:C,services:S,agentName:Cn}),[C,S,Cn]),ke=w?Hf[w.status]||Hf.login:null,zt=w?jE.has(w.status):!1;return p.jsx("div",{className:"ob-root",children:p.jsxs("div",{className:"ob-stage",children:[p.jsxs("header",{className:"ob-header",children:[p.jsx("div",{className:"ob-step-dots","aria-label":`Step ${r} of 5`,children:[1,2,3,4,5].map(P=>p.jsx("span",{className:`ob-dot ${P===r?"active":""} ${P<r?"done":""}`},P))}),r>1&&!w&&p.jsx("button",{className:"ob-back",onClick:()=>i(r-1),children:"← Back"})]}),w&&ke&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{children:[p.jsx("p",{className:"ob-bubble-text",children:ke.title}),p.jsx("p",{className:"ob-bubble-subtle",children:ke.subtitle})]}),p.jsxs("div",{className:"ob-card ob-reveal",children:[p.jsx("label",{className:"ob-label",children:ke.cmdLabel}),ke.cmd?p.jsx("div",{className:"ob-login-cmd",children:p.jsx("code",{children:ke.cmd})}):p.jsx("a",{className:"ob-login-link",href:ke.link,target:"_blank",rel:"noreferrer",children:ke.linkLabel}),p.jsx("p",{className:"ob-bubble-subtle",style:{marginTop:10},children:ke.after}),b&&p.jsx("div",{className:"ob-error",style:{marginTop:12},children:ke.retry}),p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-next primary",onClick:Ie,disabled:y,children:y?"Checking…":"I've done it — continue →"})}),!zt&&p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-skip",onClick:()=>{x(null),i(2)},children:"I already have a plan — continue"})})]})]}),r===1&&!w&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{streaming:!_||!q,children:[p.jsxs("p",{className:"ob-bubble-text",children:[wo,!_&&p.jsx(Yn,{})]}),_&&p.jsxs("p",{className:"ob-bubble-text",children:[B,!q&&p.jsx(Yn,{})]})]}),Z&&p.jsxs("div",{className:"ob-card ob-reveal",children:[p.jsx("label",{className:"ob-label",children:"Name"}),p.jsx("input",{autoFocus:!0,className:"ob-input",placeholder:"Echo, Pip, Atlas, Sage…",value:o,onChange:P=>a(P.target.value),onKeyDown:P=>{P.key==="Enter"&&ie()},maxLength:40}),p.jsx("label",{className:"ob-label",children:"Voice"}),p.jsx("div",{className:"ob-tone-grid",children:EE.map(P=>p.jsxs("button",{className:`ob-tone ${s===P.id?"selected":""}`,onClick:()=>u(P.id),children:[p.jsx("span",{className:"ob-tone-label",children:P.label}),p.jsx("span",{className:"ob-tone-sample",children:P.sample})]},P.id))}),p.jsx("label",{className:"ob-label",children:"Color"}),p.jsx("div",{className:"ob-color-row",children:Uf.map(P=>p.jsx("button",{className:`ob-color-swatch ${f===P?"selected":""}`,style:{background:P},onClick:()=>c(P),"aria-label":`Pick ${P}`},P))}),m&&p.jsx("div",{className:"ob-error",children:m}),p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-next primary",onClick:ie,disabled:d||!o.trim(),children:d?"Saving…":`I'm ${Cn}. Let's go →`})})]})]}),r===2&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"Cool. Now — show me something you're working on. Drag a folder onto me."}),p.jsx("p",{className:"ob-bubble-subtle",children:"I'll read filenames + a short sample of each text file (≤40 files, ≤600 bytes each) so I can react. Files stay on your machine; the sample goes to Anthropic the same way every chat turn does. Pick something you'd be OK talking about in chat."})]}),p.jsxs("div",{className:`ob-dropzone ${U?"over":""} ${T?"peeking":""}`,onDragOver:P=>{P.preventDefault(),F(!0)},onDragLeave:()=>F(!1),onDrop:async P=>{var le,he;P.preventDefault(),F(!1);const Q=(le=P.dataTransfer)==null?void 0:le.items;if(Q&&Q.length>0&&Q[0].webkitGetAsEntry){const Qe=[],Nn=async(ht,Mt="")=>{if(ht.isFile)await new Promise(Ue=>ht.file(Bt=>{try{Object.defineProperty(Bt,"webkitRelativePath",{value:`${Mt}${Bt.name}`})}catch{}Qe.push(Bt),Ue()},Ue));else if(ht.isDirectory){const Ue=ht.createReader();await new Promise(Bt=>Ue.readEntries(async gm=>{for(const ym of gm)await Nn(ym,`${Mt}${ht.name}/`);Bt()},Bt))}};for(const ht of Q){const Mt=ht.webkitGetAsEntry();Mt&&await Nn(Mt)}if(Qe.length>0){await Zt(Qe);return}}await Zt((he=P.dataTransfer)==null?void 0:he.files)},onClick:()=>{var P;return(P=W.current)==null?void 0:P.click()},children:[p.jsx("input",{ref:W,type:"file",webkitdirectory:"",directory:"",multiple:!0,style:{display:"none"},onChange:P=>Zt(P.target.files)}),T?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"👀"}),p.jsx("div",{className:"ob-drop-title",children:"Looking…"})]}):C?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"📁"}),p.jsx("div",{className:"ob-drop-title",children:C.folderName}),p.jsxs("div",{className:"ob-drop-sub",children:[C.totalFiles," file",C.totalFiles===1?"":"s"," · sampled ",C.files.length]})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ob-drop-icon",children:"📂"}),p.jsx("div",{className:"ob-drop-title",children:"Drop a folder here"}),p.jsx("div",{className:"ob-drop-sub",children:"or click to pick one"})]})]}),$e&&p.jsxs(rn,{streaming:!$e.done,children:[$e.text?p.jsxs("p",{className:"ob-bubble-text",children:[$e.text,!$e.done&&p.jsx(Yn,{})]}):p.jsxs("p",{className:"ob-bubble-subtle",children:["👀 ",Cn," is reading…",!$e.done&&p.jsx(Yn,{})]}),$e.error&&p.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:$e.error})]}),M&&p.jsx("div",{className:"ob-error",children:M}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(3),children:"Skip — I'd rather just chat"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(3),disabled:!C&&!M,children:"Next: connect data →"})]})]}),r===3&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"What should I have eyes on?"}),p.jsx("p",{className:"ob-bubble-subtle",children:"Pick anything I should know lives in your world. I'll wire them up later — this just plants the flags."})]}),p.jsx("div",{className:"ob-tile-grid",children:CE.map(P=>p.jsxs("button",{className:`ob-tile ${S.has(P.id)?"selected":""}`,onClick:()=>yo(P.id),children:[p.jsx("span",{className:"ob-tile-label",children:P.label}),p.jsx("span",{className:"ob-tile-note",children:P.note}),S.has(P.id)&&p.jsx("span",{className:"ob-tile-check",children:"✓"})]},P.id))}),p.jsx("div",{className:"ob-soon",children:"Connection flows for these arrive in the next release — your picks here are saved so I'll prompt you when they go live."}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(4),children:"Skip →"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(4),children:"Next: pair another device →"})]})]}),r===4&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"I don't live on this Mac. I live with you."}),p.jsx("p",{className:"ob-bubble-subtle",children:l?p.jsxs(p.Fragment,{children:["Open ",p.jsx("code",{children:l})," on your phone with the same login and I'll follow."]}):p.jsx(p.Fragment,{children:"Sign in on any device with the same token and I'll show up there — same memory, same conversation."})})]}),p.jsxs("div",{className:"ob-qr-placeholder",children:[p.jsx("div",{className:"ob-qr-box",children:p.jsxs("div",{className:"ob-qr-soon",children:["QR pairing",p.jsx("br",{}),"coming soon"]})}),p.jsx("p",{className:"ob-bubble-subtle",style:{textAlign:"center",marginTop:16},children:"For now, sign in on any device with the same token and we're synced."})]}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>i(5),children:"Skip →"}),p.jsx("button",{className:"ob-next primary",onClick:()=>i(5),children:"Next: first job →"})]})]}),r===5&&p.jsxs("section",{className:"ob-step",children:[p.jsxs(rn,{children:[p.jsx("p",{className:"ob-bubble-text",children:"Right — what should I actually do for you first?"}),p.jsx("p",{className:"ob-bubble-subtle",children:"Pick one and I'll start now. Or close this and just talk to me."})]}),Wn?p.jsxs(p.Fragment,{children:[p.jsxs(rn,{streaming:!ve||!ve.done,children:[ve!=null&&ve.text?p.jsxs("p",{className:"ob-bubble-text",children:[ve.text,!ve.done&&p.jsx(Yn,{})]}):p.jsxs("p",{className:"ob-bubble-subtle",children:[Cn," is on it…",(!ve||!ve.done)&&p.jsx(Yn,{})]}),(ve==null?void 0:ve.error)&&p.jsx("p",{className:"ob-bubble-subtle ob-bubble-error",children:ve.error})]}),p.jsxs("div",{className:"ob-actions",children:[p.jsx("button",{className:"ob-skip",onClick:()=>{_r(null),Gn(null)},children:"← Pick a different job"}),p.jsx("button",{className:"ob-next primary",onClick:Pi,disabled:!ve||!ve.done&&!ve.error,children:ve!=null&&ve.done?"Open my workspace →":"Streaming…"})]})]}):p.jsx("div",{className:"ob-jobs",children:oe.map(P=>p.jsxs("button",{className:"ob-job",onClick:()=>Ai(P.kind),children:[p.jsx("div",{className:"ob-job-title",children:P.title}),p.jsx("div",{className:"ob-job-sub",children:P.sub})]},P.kind))}),(m||Ir)&&p.jsx("div",{className:"ob-error",children:m||Ir}),!Wn&&p.jsx("div",{className:"ob-actions",children:p.jsx("button",{className:"ob-skip",onClick:Pi,children:"Skip to chat →"})})]}),!w&&p.jsx("p",{className:"ob-consent-note",children:"I quietly share how I'm doing — what's working, what breaks, my setup health — with the Venturewild team so they can help if you ever get stuck. Never your words or files. You can turn this off anytime."})]})})}const FE={partner:"Partner",viewer:"Viewer",client:"Client"};function RE(){var M,$;const[e,t]=A.useState(null),[n,r]=A.useState(null),[i,l]=A.useState(!1),[o,a]=A.useState(!1),[s,u]=A.useState(null),[f,c]=A.useState(!1),[d,h]=A.useState(!1),[m,v]=A.useState(!1),[w,x]=A.useState("build"),[y,g]=A.useState(null),b=A.useMemo(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("t"),[]);if(A.useEffect(()=>{async function U(){try{const F={};b&&(F.Authorization=`Bearer ${b}`);const W=await fetch("/api/session",{headers:F});if(!W.ok)throw new Error(`session fetch failed: ${W.status}`);const te=await W.json();t(te)}catch(F){r(F.message||String(F))}}U()},[b]),A.useEffect(()=>{var F;const U=(F=e==null?void 0:e.identity)==null?void 0:F.color;U&&(document.documentElement.style.setProperty("--accent",U),document.documentElement.style.setProperty("--accent-hot",U))},[(M=e==null?void 0:e.identity)==null?void 0:M.color]),n)return p.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:p.jsxs("div",{style:{padding:24},children:[p.jsx("h2",{children:"wild-workspace"}),p.jsxs("p",{style:{color:"var(--error)"},children:["Could not load session: ",n]}),p.jsx("p",{style:{color:"var(--text-muted)",fontSize:13},children:"Verify the server is running and the share URL token is valid."})]})});if(!e)return p.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:p.jsxs("div",{style:{padding:24,color:"var(--text-muted)"},children:[p.jsx("span",{className:"spinner"})," Loading workspace…"]})});if(($=e.capabilities)!=null&&$.chatWrite&&!e.onboarded)return p.jsx(LE,{session:e,token:b,onComplete:async()=>{try{const U={};b&&(U.Authorization=`Bearer ${b}`);const F=await fetch("/api/session",{headers:U});F.ok&&t(await F.json())}catch{t({...e,onboarded:!0})}}});const{role:N,capabilities:S,workspace:j,workspaceId:T,agent:L,identity:C}=e,R=["workspace"];return S.fileTree?d&&R.push("collapsed-tree"):R.push("no-tree"),S.preview||R.push("no-preview"),p.jsxs("div",{className:"app",children:[p.jsxs("header",{className:"topbar","data-testid":"topbar",children:[p.jsx("span",{className:"brand",children:"wild-workspace"}),p.jsx("span",{className:`badge ${N}`,"data-testid":"role-badge",children:FE[N]||N}),p.jsx("span",{className:"badge","data-testid":"workspace-name",children:(j==null?void 0:j.name)||T}),C!=null&&C.name?p.jsx("span",{className:"badge","data-testid":"agent-name",style:{borderColor:C.color,color:C.color},children:C.name}):L&&p.jsx("span",{className:"badge","data-testid":"agent-name",children:L.label||L.id}),p.jsx("span",{className:"spacer"}),S.sync&&p.jsx("button",{onClick:()=>a(!0),"data-testid":"collaborate-btn",children:"Collaborate"}),S.share&&p.jsx("button",{onClick:()=>l(!0),"data-testid":"share-btn",children:"Share"}),S.terminal&&p.jsx("button",{onClick:()=>v(U=>!U),"data-testid":"terminal-toggle",children:m?"Hide terminal":"Terminal"})]}),p.jsxs("main",{className:R.join(" "),children:[S.fileTree&&!d&&p.jsx(hE,{onCollapse:()=>h(!0),workspaceRoot:j==null?void 0:j.path,onOpen:g}),S.fileTree&&d&&p.jsx("aside",{className:"tree-collapsed-rail",children:p.jsx("button",{onClick:()=>h(!1),title:"Show file tree",children:"≡"})}),p.jsxs("section",{className:"chat-pane","data-testid":"chat-pane",children:[p.jsxs("div",{className:"chat-header","data-testid":"chat-header",children:[p.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Chat"}),S.chatWrite&&p.jsxs("span",{className:"chat-mode-toggle","data-testid":"mode-toggle",children:[p.jsx("button",{className:w==="build"?"active":"",onClick:()=>x("build"),"data-testid":"mode-build",children:"Build"}),p.jsx("button",{className:w==="plan"?"active":"",onClick:()=>x("plan"),"data-testid":"mode-plan",children:"Plan"})]}),p.jsx("span",{className:"spacer"}),p.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:L!=null&&L.available?`via ${L.label}`:"no agent installed — install Claude Code (npm i -g @anthropic-ai/claude-code)"})]}),S.inbox&&p.jsx(SE,{}),p.jsx(sE,{role:N,capabilities:S,mode:w,token:b})]}),S.preview&&p.jsx("section",{className:"preview-pane","data-testid":"preview-pane",children:p.jsx(gE,{focus:y,workspaceRoot:j==null?void 0:j.path})})]}),p.jsx(bE,{role:N,capabilities:S,session:e,urlToken:b,onSyncAlert:u,onOpenConflicts:()=>c(!0)}),p.jsx(vE,{alert:s,onDismiss:()=>u(null)}),f&&p.jsx(kE,{urlToken:b,onClose:()=>c(!1)}),i&&p.jsx(yE,{onClose:()=>l(!1),workspaceId:T}),o&&p.jsx(xE,{onClose:()=>a(!1),token:b}),m&&p.jsxs("div",{className:"terminal-overlay","data-testid":"terminal-overlay",children:[p.jsxs("header",{children:[p.jsx("strong",{children:"Terminal (preview)"}),p.jsx("button",{onClick:()=>v(!1),children:"close"})]}),p.jsx("p",{children:"Power-user terminal is a hidden-by-default toggle. The xterm.js + node-pty integration ships in v1.1. For now use your OS terminal — wild-workspace doesn't replace your shell, it surfaces the agent."})]})]})}(function(){if(typeof window>"u"||!window.fetch)return;const n=new URLSearchParams(window.location.search).get("t");if(!n)return;const r=window.fetch.bind(window);window.fetch=(i,l={})=>{const o=typeof i=="string"?i:(i==null?void 0:i.url)||"";if(!(o.startsWith("/api/")||o.includes("://")===!1&&o.startsWith("api/")))return r(i,l);const s=new Headers(l.headers||{});return s.has("Authorization")||s.set("Authorization",`Bearer ${n}`),r(i,{...l,headers:s})}})();ca.createRoot(document.getElementById("root")).render(p.jsx(Lm.StrictMode,{children:p.jsx(RE,{})}));
|