@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.
@@ -1,89 +0,0 @@
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 Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wf={exports:{}},Cl={},Sf={exports:{}},Y={};/**
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 li=Symbol.for("react.element"),eg=Symbol.for("react.portal"),tg=Symbol.for("react.fragment"),ng=Symbol.for("react.strict_mode"),rg=Symbol.for("react.profiler"),ig=Symbol.for("react.provider"),lg=Symbol.for("react.context"),og=Symbol.for("react.forward_ref"),ag=Symbol.for("react.suspense"),sg=Symbol.for("react.memo"),ug=Symbol.for("react.lazy"),uu=Symbol.iterator;function cg(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ef=Object.assign,Cf={};function ar(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||bf}ar.prototype.isReactComponent={};ar.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")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _f(){}_f.prototype=ar.prototype;function Va(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||bf}var Wa=Va.prototype=new _f;Wa.constructor=Va;Ef(Wa,ar.prototype);Wa.isPureReactComponent=!0;var cu=Array.isArray,Tf=Object.prototype.hasOwnProperty,Ga={current:null},If={key:!0,ref:!0,__self:!0,__source:!0};function Af(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)Tf.call(t,r)&&!If.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:li,type:e,key:l,ref:o,props:i,_owner:Ga.current}}function fg(e,t){return{$$typeof:li,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===li}function pg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var fu=/\/+/g;function Yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pg(""+e.key):t.toString(36)}function Ri(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 li:case eg:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Yl(o,0):r,cu(i)?(n="",e!=null&&(n=e.replace(fu,"$&/")+"/"),Ri(i,t,n,"",function(u){return u})):i!=null&&(Qa(i)&&(i=fg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(fu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",cu(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+Yl(l,a);o+=Ri(l,t,n,s,i)}else if(s=cg(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+Yl(l,a++),o+=Ri(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 hi(e,t,n){if(e==null)return e;var r=[],i=0;return Ri(e,r,"","",function(l){return t.call(n,l,i++)}),r}function dg(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 ze={current:null},zi={transition:null},hg={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:zi,ReactCurrentOwner:Ga};function Nf(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:hi,forEach:function(e,t,n){hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hi(e,function(){t++}),t},toArray:function(e){return hi(e,function(t){return t})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=ar;Y.Fragment=tg;Y.Profiler=rg;Y.PureComponent=Va;Y.StrictMode=ng;Y.Suspense=ag;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hg;Y.act=Nf;Y.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=Ef({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Ga.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Tf.call(t,s)&&!If.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:li,type:e.type,key:i,ref:l,props:r,_owner:o}};Y.createContext=function(e){return e={$$typeof:lg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ig,_context:e},e.Consumer=e};Y.createElement=Af;Y.createFactory=function(e){var t=Af.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:og,render:e}};Y.isValidElement=Qa;Y.lazy=function(e){return{$$typeof:ug,_payload:{_status:-1,_result:e},_init:dg}};Y.memo=function(e,t){return{$$typeof:sg,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=zi.transition;zi.transition={};try{e()}finally{zi.transition=t}};Y.unstable_act=Nf;Y.useCallback=function(e,t){return ze.current.useCallback(e,t)};Y.useContext=function(e){return ze.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return ze.current.useDeferredValue(e)};Y.useEffect=function(e,t){return ze.current.useEffect(e,t)};Y.useId=function(){return ze.current.useId()};Y.useImperativeHandle=function(e,t,n){return ze.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return ze.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return ze.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return ze.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return ze.current.useReducer(e,t,n)};Y.useRef=function(e){return ze.current.useRef(e)};Y.useState=function(e){return ze.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return ze.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return ze.current.useTransition()};Y.version="18.3.1";Sf.exports=Y;var O=Sf.exports;const gg=Ha(O);/**
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 mg=O,yg=Symbol.for("react.element"),vg=Symbol.for("react.fragment"),kg=Object.prototype.hasOwnProperty,xg=mg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wg={key:!0,ref:!0,__self:!0,__source:!0};function Pf(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)kg.call(t,r)&&!wg.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:yg,type:e,key:l,ref:o,props:i,_owner:xg.current}}Cl.Fragment=vg;Cl.jsx=Pf;Cl.jsxs=Pf;wf.exports=Cl;var k=wf.exports,Oo={},Lf={exports:{}},et={},Ff={exports:{}},jf={};/**
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(j,H){var x=j.length;j.push(H);e:for(;0<x;){var Q=x-1>>>1,J=j[Q];if(0<i(J,H))j[Q]=H,j[x]=J,x=Q;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var H=j[0],x=j.pop();if(x!==H){j[0]=x;e:for(var Q=0,J=j.length,b=J>>>1;Q<b;){var fe=2*(Q+1)-1,Oe=j[fe],te=fe+1,Le=j[te];if(0>i(Oe,x))te<J&&0>i(Le,Oe)?(j[Q]=Le,j[te]=x,Q=te):(j[Q]=Oe,j[fe]=x,Q=fe);else if(te<J&&0>i(Le,x))j[Q]=Le,j[te]=x,Q=te;else break e}}return H}function i(j,H){var x=j.sortIndex-H.sortIndex;return x!==0?x:j.id-H.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,p=3,d=!1,h=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var H=n(u);H!==null;){if(H.callback===null)r(u);else if(H.startTime<=j)r(u),H.sortIndex=H.expirationTime,t(s,H);else break;H=n(u)}}function C(j){if(v=!1,y(j),!h)if(n(s)!==null)h=!0,Z(_);else{var H=n(u);H!==null&&le(C,H.startTime-j)}}function _(j,H){h=!1,v&&(v=!1,m(I),I=-1),d=!0;var x=p;try{for(y(H),c=n(s);c!==null&&(!(c.expirationTime>H)||j&&!L());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,p=c.priorityLevel;var J=Q(c.expirationTime<=H);H=e.unstable_now(),typeof J=="function"?c.callback=J:c===n(s)&&r(s),y(H)}else r(s);c=n(s)}if(c!==null)var b=!0;else{var fe=n(u);fe!==null&&le(C,fe.startTime-H),b=!1}return b}finally{c=null,p=x,d=!1}}var S=!1,T=null,I=-1,R=5,E=-1;function L(){return!(e.unstable_now()-E<R)}function D(){if(T!==null){var j=e.unstable_now();E=j;var H=!0;try{H=T(!0,j)}finally{H?M():(S=!1,T=null)}}else S=!1}var M;if(typeof g=="function")M=function(){g(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=D,M=function(){U.postMessage(null)}}else M=function(){w(D,0)};function Z(j){T=j,S||(S=!0,M())}function le(j,H){I=w(function(){j(e.unstable_now())},H)}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(j){j.callback=null},e.unstable_continueExecution=function(){h||d||(h=!0,Z(_))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var H=3;break;default:H=p}var x=p;p=H;try{return j()}finally{p=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,H){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var x=p;p=j;try{return H()}finally{p=x}},e.unstable_scheduleCallback=function(j,H,x){var Q=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?Q+x:Q):x=Q,j){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=x+J,j={id:f++,callback:H,priorityLevel:j,startTime:x,expirationTime:J,sortIndex:-1},x>Q?(j.sortIndex=x,t(u,j),n(s)===null&&j===n(u)&&(v?(m(I),I=-1):v=!0,le(C,x-Q))):(j.sortIndex=J,t(s,j),h||d||(h=!0,Z(_))),j},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(j){var H=p;return function(){var x=p;p=H;try{return j.apply(this,arguments)}finally{p=x}}}})(jf);Ff.exports=jf;var Sg=Ff.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 bg=O,Je=Sg;function P(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 Rf=new Set,Br={};function _n(e,t){Jn(e,t),Jn(e+"Capture",t)}function Jn(e,t){for(Br[e]=t,e=0;e<t.length;e++)Rf.add(t[e])}var Rt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mo=Object.prototype.hasOwnProperty,Eg=/^[: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]*$/,pu={},du={};function Cg(e){return Mo.call(du,e)?!0:Mo.call(pu,e)?!1:Eg.test(e)?du[e]=!0:(pu[e]=!0,!1)}function _g(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 Tg(e,t,n,r){if(t===null||typeof t>"u"||_g(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 De(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 Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new De(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){Ce[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var qa=/[\-:]([a-z])/g;function Ya(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(qa,Ya);Ce[t]=new De(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(qa,Ya);Ce[t]=new De(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(qa,Ya);Ce[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ka(e,t,n,r){var i=Ce.hasOwnProperty(t)?Ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Tg(t,n,i,r)&&(n=null),r||i===null?Cg(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 Mt=bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gi=Symbol.for("react.element"),jn=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),Xa=Symbol.for("react.strict_mode"),Bo=Symbol.for("react.profiler"),zf=Symbol.for("react.provider"),Df=Symbol.for("react.context"),Za=Symbol.for("react.forward_ref"),$o=Symbol.for("react.suspense"),Uo=Symbol.for("react.suspense_list"),Ja=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Of=Symbol.for("react.offscreen"),hu=Symbol.iterator;function hr(e){return e===null||typeof e!="object"?null:(e=hu&&e[hu]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,Kl;function Er(e){if(Kl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kl=t&&t[1]||""}return`
34
- `+Kl+e}var Xl=!1;function Zl(e,t){if(!e||Xl)return"";Xl=!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{Xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Er(e):""}function Ig(e){switch(e.tag){case 5:return Er(e.type);case 16:return Er("Lazy");case 13:return Er("Suspense");case 19:return Er("SuspenseList");case 0:case 2:case 15:return e=Zl(e.type,!1),e;case 11:return e=Zl(e.type.render,!1),e;case 1:return e=Zl(e.type,!0),e;default:return""}}function Ho(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 Rn:return"Fragment";case jn:return"Portal";case Bo:return"Profiler";case Xa:return"StrictMode";case $o:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Df:return(e.displayName||"Context")+".Consumer";case zf:return(e._context.displayName||"Context")+".Provider";case Za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ja:return t=e.displayName||null,t!==null?t:Ho(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return Ho(e(t))}catch{}}return null}function Ag(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 Ho(t);case 8:return t===Xa?"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 rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ng(e){var t=Mf(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 mi(e){e._valueTracker||(e._valueTracker=Ng(e))}function Bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ki(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 Vo(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(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 $f(e,t){t=t.checked,t!=null&&Ka(e,"checked",t,!1)}function Wo(e,t){$f(e,t);var n=rn(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")?Go(e,t.type,n):t.hasOwnProperty("defaultValue")&&Go(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mu(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 Go(e,t,n){(t!=="number"||Ki(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cr=Array.isArray;function Gn(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=""+rn(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 Qo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Cr(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rn(n)}}function Uf(e,t){var n=rn(t.value),r=rn(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 vu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hf(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 qo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yi,Vf=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(yi=yi||document.createElement("div"),yi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={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},Pg=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function Gf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Lg=he({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 Yo(e,t){if(t){if(Lg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Ko(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 Xo=null;function es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zo=null,Qn=null,qn=null;function ku(e){if(e=si(e)){if(typeof Zo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Nl(t),Zo(e.stateNode,e.type,t))}}function Qf(e){Qn?qn?qn.push(e):qn=[e]:Qn=e}function qf(){if(Qn){var e=Qn,t=qn;if(qn=Qn=null,ku(e),t)for(e=0;e<t.length;e++)ku(t[e])}}function Yf(e,t){return e(t)}function Kf(){}var Jl=!1;function Xf(e,t,n){if(Jl)return e(t,n);Jl=!0;try{return Yf(e,t,n)}finally{Jl=!1,(Qn!==null||qn!==null)&&(Kf(),qf())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Nl(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(P(231,t,typeof n));return n}var Jo=!1;if(Rt)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){Jo=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Jo=!1}function Fg(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 Ar=!1,Xi=null,Zi=!1,ea=null,jg={onError:function(e){Ar=!0,Xi=e}};function Rg(e,t,n,r,i,l,o,a,s){Ar=!1,Xi=null,Fg.apply(jg,arguments)}function zg(e,t,n,r,i,l,o,a,s){if(Rg.apply(this,arguments),Ar){if(Ar){var u=Xi;Ar=!1,Xi=null}else throw Error(P(198));Zi||(Zi=!0,ea=u)}}function Tn(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 Zf(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 xu(e){if(Tn(e)!==e)throw Error(P(188))}function Dg(e){var t=e.alternate;if(!t){if(t=Tn(e),t===null)throw Error(P(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 xu(i),e;if(l===r)return xu(i),t;l=l.sibling}throw Error(P(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(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Jf(e){return e=Dg(e),e!==null?ep(e):null}function ep(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ep(e);if(t!==null)return t;e=e.sibling}return null}var tp=Je.unstable_scheduleCallback,wu=Je.unstable_cancelCallback,Og=Je.unstable_shouldYield,Mg=Je.unstable_requestPaint,me=Je.unstable_now,Bg=Je.unstable_getCurrentPriorityLevel,ts=Je.unstable_ImmediatePriority,np=Je.unstable_UserBlockingPriority,Ji=Je.unstable_NormalPriority,$g=Je.unstable_LowPriority,rp=Je.unstable_IdlePriority,_l=null,Et=null;function Ug(e){if(Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:Wg,Hg=Math.log,Vg=Math.LN2;function Wg(e){return e>>>=0,e===0?32:31-(Hg(e)/Vg|0)|0}var vi=64,ki=4194304;function _r(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 el(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=_r(a):(l&=o,l!==0&&(r=_r(l)))}else o=n&~i,o!==0?r=_r(o):l!==0&&(r=_r(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-ht(t),i=1<<n,r|=e[n],t&=~i;return r}function Gg(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 Qg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-ht(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=Gg(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function ta(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ip(){var e=vi;return vi<<=1,!(vi&4194240)&&(vi=64),e}function eo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function qg(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-ht(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function ns(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ht(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ne=0;function lp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var op,rs,ap,sp,up,na=!1,xi=[],Yt=null,Kt=null,Xt=null,Hr=new Map,Vr=new Map,Wt=[],Yg="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 Su(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Kt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":Hr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(t.pointerId)}}function mr(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=si(t),t!==null&&rs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Kg(e,t,n,r,i){switch(t){case"focusin":return Yt=mr(Yt,e,t,n,r,i),!0;case"dragenter":return Kt=mr(Kt,e,t,n,r,i),!0;case"mouseover":return Xt=mr(Xt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Hr.set(l,mr(Hr.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Vr.set(l,mr(Vr.get(l)||null,e,t,n,r,i)),!0}return!1}function cp(e){var t=gn(e.target);if(t!==null){var n=Tn(t);if(n!==null){if(t=n.tag,t===13){if(t=Zf(n),t!==null){e.blockedOn=t,up(e.priority,function(){ap(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 Di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ra(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xo=r,n.target.dispatchEvent(r),Xo=null}else return t=si(n),t!==null&&rs(t),e.blockedOn=n,!1;t.shift()}return!0}function bu(e,t,n){Di(e)&&n.delete(t)}function Xg(){na=!1,Yt!==null&&Di(Yt)&&(Yt=null),Kt!==null&&Di(Kt)&&(Kt=null),Xt!==null&&Di(Xt)&&(Xt=null),Hr.forEach(bu),Vr.forEach(bu)}function yr(e,t){e.blockedOn===t&&(e.blockedOn=null,na||(na=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,Xg)))}function Wr(e){function t(i){return yr(i,e)}if(0<xi.length){yr(xi[0],e);for(var n=1;n<xi.length;n++){var r=xi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&yr(Yt,e),Kt!==null&&yr(Kt,e),Xt!==null&&yr(Xt,e),Hr.forEach(t),Vr.forEach(t),n=0;n<Wt.length;n++)r=Wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wt.length&&(n=Wt[0],n.blockedOn===null);)cp(n),n.blockedOn===null&&Wt.shift()}var Yn=Mt.ReactCurrentBatchConfig,tl=!0;function Zg(e,t,n,r){var i=ne,l=Yn.transition;Yn.transition=null;try{ne=1,is(e,t,n,r)}finally{ne=i,Yn.transition=l}}function Jg(e,t,n,r){var i=ne,l=Yn.transition;Yn.transition=null;try{ne=4,is(e,t,n,r)}finally{ne=i,Yn.transition=l}}function is(e,t,n,r){if(tl){var i=ra(e,t,n,r);if(i===null)co(e,t,r,nl,n),Su(e,r);else if(Kg(i,e,t,n,r))r.stopPropagation();else if(Su(e,r),t&4&&-1<Yg.indexOf(e)){for(;i!==null;){var l=si(i);if(l!==null&&op(l),l=ra(e,t,n,r),l===null&&co(e,t,r,nl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else co(e,t,r,null,n)}}var nl=null;function ra(e,t,n,r){if(nl=null,e=es(r),e=gn(e),e!==null)if(t=Tn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zf(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 nl=e,null}function fp(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(Bg()){case ts:return 1;case np:return 4;case Ji:case $g:return 16;case rp:return 536870912;default:return 16}default:return 16}}var Qt=null,ls=null,Oi=null;function pp(){if(Oi)return Oi;var e,t=ls,n=t.length,r,i="value"in Qt?Qt.value:Qt.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 Oi=i.slice(e,1<r?1-r:void 0)}function Mi(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 wi(){return!0}function Eu(){return!1}function tt(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)?wi:Eu,this.isPropagationStopped=Eu,this}return he(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=wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},os=tt(sr),ai=he({},sr,{view:0,detail:0}),em=tt(ai),to,no,vr,Tl=he({},ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,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!==vr&&(vr&&e.type==="mousemove"?(to=e.screenX-vr.screenX,no=e.screenY-vr.screenY):no=to=0,vr=e),to)},movementY:function(e){return"movementY"in e?e.movementY:no}}),Cu=tt(Tl),tm=he({},Tl,{dataTransfer:0}),nm=tt(tm),rm=he({},ai,{relatedTarget:0}),ro=tt(rm),im=he({},sr,{animationName:0,elapsedTime:0,pseudoElement:0}),lm=tt(im),om=he({},sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),am=tt(om),sm=he({},sr,{data:0}),_u=tt(sm),um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cm={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"},fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fm[e])?!!t[e]:!1}function as(){return pm}var dm=he({},ai,{key:function(e){if(e.key){var t=um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?Mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hm=tt(dm),gm=he({},Tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tu=tt(gm),mm=he({},ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),ym=tt(mm),vm=he({},sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),km=tt(vm),xm=he({},Tl,{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}),wm=tt(xm),Sm=[9,13,27,32],ss=Rt&&"CompositionEvent"in window,Nr=null;Rt&&"documentMode"in document&&(Nr=document.documentMode);var bm=Rt&&"TextEvent"in window&&!Nr,dp=Rt&&(!ss||Nr&&8<Nr&&11>=Nr),Iu=" ",Au=!1;function hp(e,t){switch(e){case"keyup":return Sm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function Em(e,t){switch(e){case"compositionend":return gp(t);case"keypress":return t.which!==32?null:(Au=!0,Iu);case"textInput":return e=t.data,e===Iu&&Au?null:e;default:return null}}function Cm(e,t){if(zn)return e==="compositionend"||!ss&&hp(e,t)?(e=pp(),Oi=ls=Qt=null,zn=!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 dp&&t.locale!=="ko"?null:t.data;default:return null}}var _m={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 Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_m[e.type]:t==="textarea"}function mp(e,t,n,r){Qf(r),t=rl(t,"onChange"),0<t.length&&(n=new os("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Pr=null,Gr=null;function Tm(e){Tp(e,0)}function Il(e){var t=Mn(e);if(Bf(t))return e}function Im(e,t){if(e==="change")return t}var yp=!1;if(Rt){var io;if(Rt){var lo="oninput"in document;if(!lo){var Pu=document.createElement("div");Pu.setAttribute("oninput","return;"),lo=typeof Pu.oninput=="function"}io=lo}else io=!1;yp=io&&(!document.documentMode||9<document.documentMode)}function Lu(){Pr&&(Pr.detachEvent("onpropertychange",vp),Gr=Pr=null)}function vp(e){if(e.propertyName==="value"&&Il(Gr)){var t=[];mp(t,Gr,e,es(e)),Xf(Tm,t)}}function Am(e,t,n){e==="focusin"?(Lu(),Pr=t,Gr=n,Pr.attachEvent("onpropertychange",vp)):e==="focusout"&&Lu()}function Nm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Il(Gr)}function Pm(e,t){if(e==="click")return Il(t)}function Lm(e,t){if(e==="input"||e==="change")return Il(t)}function Fm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:Fm;function Qr(e,t){if(yt(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(!Mo.call(t,i)||!yt(e[i],t[i]))return!1}return!0}function Fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ju(e,t){var n=Fu(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=Fu(n)}}function kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xp(){for(var e=window,t=Ki();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ki(e.document)}return t}function us(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 jm(e){var t=xp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kp(n.ownerDocument.documentElement,n)){if(r!==null&&us(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=ju(n,l);var o=ju(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 Rm=Rt&&"documentMode"in document&&11>=document.documentMode,Dn=null,ia=null,Lr=null,la=!1;function Ru(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;la||Dn==null||Dn!==Ki(r)||(r=Dn,"selectionStart"in r&&us(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}),Lr&&Qr(Lr,r)||(Lr=r,r=rl(ia,"onSelect"),0<r.length&&(t=new os("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dn)))}function Si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var On={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionend:Si("Transition","TransitionEnd")},oo={},wp={};Rt&&(wp=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function Al(e){if(oo[e])return oo[e];if(!On[e])return e;var t=On[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wp)return oo[e]=t[n];return e}var Sp=Al("animationend"),bp=Al("animationiteration"),Ep=Al("animationstart"),Cp=Al("transitionend"),_p=new Map,zu="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 on(e,t){_p.set(e,t),_n(t,[e])}for(var ao=0;ao<zu.length;ao++){var so=zu[ao],zm=so.toLowerCase(),Dm=so[0].toUpperCase()+so.slice(1);on(zm,"on"+Dm)}on(Sp,"onAnimationEnd");on(bp,"onAnimationIteration");on(Ep,"onAnimationStart");on("dblclick","onDoubleClick");on("focusin","onFocus");on("focusout","onBlur");on(Cp,"onTransitionEnd");Jn("onMouseEnter",["mouseout","mouseover"]);Jn("onMouseLeave",["mouseout","mouseover"]);Jn("onPointerEnter",["pointerout","pointerover"]);Jn("onPointerLeave",["pointerout","pointerover"]);_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_n("onBeforeInput",["compositionend","keypress","textInput","paste"]);_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="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(" "),Om=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Du(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,zg(r,t,void 0,e),e.currentTarget=null}function Tp(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;Du(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;Du(i,a,u),l=s}}}if(Zi)throw e=ea,Zi=!1,ea=null,e}function se(e,t){var n=t[ca];n===void 0&&(n=t[ca]=new Set);var r=e+"__bubble";n.has(r)||(Ip(t,e,2,!1),n.add(r))}function uo(e,t,n){var r=0;t&&(r|=4),Ip(n,e,r,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[bi]){e[bi]=!0,Rf.forEach(function(n){n!=="selectionchange"&&(Om.has(n)||uo(n,!1,e),uo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,uo("selectionchange",!1,t))}}function Ip(e,t,n,r){switch(fp(t)){case 1:var i=Zg;break;case 4:i=Jg;break;default:i=is}n=i.bind(null,t,n,e),i=void 0,!Jo||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 co(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=gn(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Xf(function(){var u=l,f=es(n),c=[];e:{var p=_p.get(e);if(p!==void 0){var d=os,h=e;switch(e){case"keypress":if(Mi(n)===0)break e;case"keydown":case"keyup":d=hm;break;case"focusin":h="focus",d=ro;break;case"focusout":h="blur",d=ro;break;case"beforeblur":case"afterblur":d=ro;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":d=Cu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=nm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=ym;break;case Sp:case bp:case Ep:d=lm;break;case Cp:d=km;break;case"scroll":d=em;break;case"wheel":d=wm;break;case"copy":case"cut":case"paste":d=am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Tu}var v=(t&4)!==0,w=!v&&e==="scroll",m=v?p!==null?p+"Capture":null:p;v=[];for(var g=u,y;g!==null;){y=g;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,m!==null&&(C=Ur(g,m),C!=null&&v.push(Yr(g,C,y)))),w)break;g=g.return}0<v.length&&(p=new d(p,h,null,n,f),c.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==Xo&&(h=n.relatedTarget||n.fromElement)&&(gn(h)||h[zt]))break e;if((d||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,d?(h=n.relatedTarget||n.toElement,d=u,h=h?gn(h):null,h!==null&&(w=Tn(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(d=null,h=u),d!==h)){if(v=Cu,C="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Tu,C="onPointerLeave",m="onPointerEnter",g="pointer"),w=d==null?p:Mn(d),y=h==null?p:Mn(h),p=new v(C,g+"leave",d,n,f),p.target=w,p.relatedTarget=y,C=null,gn(f)===u&&(v=new v(m,g+"enter",h,n,f),v.target=y,v.relatedTarget=w,C=v),w=C,d&&h)t:{for(v=d,m=h,g=0,y=v;y;y=Pn(y))g++;for(y=0,C=m;C;C=Pn(C))y++;for(;0<g-y;)v=Pn(v),g--;for(;0<y-g;)m=Pn(m),y--;for(;g--;){if(v===m||m!==null&&v===m.alternate)break t;v=Pn(v),m=Pn(m)}v=null}else v=null;d!==null&&Ou(c,p,d,v,!1),h!==null&&w!==null&&Ou(c,w,h,v,!0)}}e:{if(p=u?Mn(u):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var _=Im;else if(Nu(p))if(yp)_=Lm;else{_=Nm;var S=Am}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(_=Pm);if(_&&(_=_(e,u))){mp(c,_,n,f);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&Go(p,"number",p.value)}switch(S=u?Mn(u):window,e){case"focusin":(Nu(S)||S.contentEditable==="true")&&(Dn=S,ia=u,Lr=null);break;case"focusout":Lr=ia=Dn=null;break;case"mousedown":la=!0;break;case"contextmenu":case"mouseup":case"dragend":la=!1,Ru(c,n,f);break;case"selectionchange":if(Rm)break;case"keydown":case"keyup":Ru(c,n,f)}var T;if(ss)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else zn?hp(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(dp&&n.locale!=="ko"&&(zn||I!=="onCompositionStart"?I==="onCompositionEnd"&&zn&&(T=pp()):(Qt=f,ls="value"in Qt?Qt.value:Qt.textContent,zn=!0)),S=rl(u,I),0<S.length&&(I=new _u(I,e,null,n,f),c.push({event:I,listeners:S}),T?I.data=T:(T=gp(n),T!==null&&(I.data=T)))),(T=bm?Em(e,n):Cm(e,n))&&(u=rl(u,"onBeforeInput"),0<u.length&&(f=new _u("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=T))}Tp(c,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=Ur(e,n),l!=null&&r.unshift(Yr(e,l,i)),l=Ur(e,t),l!=null&&r.push(Yr(e,l,i))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ou(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=Ur(n,l),s!=null&&o.unshift(Yr(n,s,a))):i||(s=Ur(n,l),s!=null&&o.push(Yr(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Mm=/\r\n?/g,Bm=/\u0000|\uFFFD/g;function Mu(e){return(typeof e=="string"?e:""+e).replace(Mm,`
38
- `).replace(Bm,"")}function Ei(e,t,n){if(t=Mu(t),Mu(e)!==t&&n)throw Error(P(425))}function il(){}var oa=null,aa=null;function sa(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 ua=typeof setTimeout=="function"?setTimeout:void 0,$m=typeof clearTimeout=="function"?clearTimeout:void 0,Bu=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof Bu<"u"?function(e){return Bu.resolve(null).then(e).catch(Hm)}:ua;function Hm(e){setTimeout(function(){throw e})}function fo(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),Wr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wr(t)}function Zt(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 $u(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 ur=Math.random().toString(36).slice(2),bt="__reactFiber$"+ur,Kr="__reactProps$"+ur,zt="__reactContainer$"+ur,ca="__reactEvents$"+ur,Vm="__reactListeners$"+ur,Wm="__reactHandles$"+ur;function gn(e){var t=e[bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zt]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$u(e);e!==null;){if(n=e[bt])return n;e=$u(e)}return t}e=n,n=e.parentNode}return null}function si(e){return e=e[bt]||e[zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Nl(e){return e[Kr]||null}var fa=[],Bn=-1;function an(e){return{current:e}}function ue(e){0>Bn||(e.current=fa[Bn],fa[Bn]=null,Bn--)}function ae(e,t){Bn++,fa[Bn]=e.current,e.current=t}var ln={},Ne=an(ln),Ue=an(!1),xn=ln;function er(e,t){var n=e.type.contextTypes;if(!n)return ln;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 He(e){return e=e.childContextTypes,e!=null}function ll(){ue(Ue),ue(Ne)}function Uu(e,t,n){if(Ne.current!==ln)throw Error(P(168));ae(Ne,t),ae(Ue,n)}function Ap(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(P(108,Ag(e)||"Unknown",i));return he({},n,r)}function ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,xn=Ne.current,ae(Ne,e),ae(Ue,Ue.current),!0}function Hu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Ap(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,ue(Ue),ue(Ne),ae(Ne,e)):ue(Ue),ae(Ue,n)}var Pt=null,Pl=!1,po=!1;function Np(e){Pt===null?Pt=[e]:Pt.push(e)}function Gm(e){Pl=!0,Np(e)}function sn(){if(!po&&Pt!==null){po=!0;var e=0,t=ne;try{var n=Pt;for(ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pt=null,Pl=!1}catch(i){throw Pt!==null&&(Pt=Pt.slice(e+1)),tp(ts,sn),i}finally{ne=t,po=!1}}return null}var $n=[],Un=0,al=null,sl=0,nt=[],rt=0,wn=null,Lt=1,Ft="";function pn(e,t){$n[Un++]=sl,$n[Un++]=al,al=e,sl=t}function Pp(e,t,n){nt[rt++]=Lt,nt[rt++]=Ft,nt[rt++]=wn,wn=e;var r=Lt;e=Ft;var i=32-ht(r)-1;r&=~(1<<i),n+=1;var l=32-ht(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Lt=1<<32-ht(t)+i|n<<i|r,Ft=l+e}else Lt=1<<l|n<<i|r,Ft=e}function cs(e){e.return!==null&&(pn(e,1),Pp(e,1,0))}function fs(e){for(;e===al;)al=$n[--Un],$n[Un]=null,sl=$n[--Un],$n[Un]=null;for(;e===wn;)wn=nt[--rt],nt[rt]=null,Ft=nt[--rt],nt[rt]=null,Lt=nt[--rt],nt[rt]=null}var Xe=null,Ke=null,ce=!1,dt=null;function Lp(e,t){var n=lt(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 Vu(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,Xe=e,Ke=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wn!==null?{id:Lt,overflow:Ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ke=null,!0):!1;default:return!1}}function pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function da(e){if(ce){var t=Ke;if(t){var n=t;if(!Vu(e,t)){if(pa(e))throw Error(P(418));t=Zt(n.nextSibling);var r=Xe;t&&Vu(e,t)?Lp(r,n):(e.flags=e.flags&-4097|2,ce=!1,Xe=e)}}else{if(pa(e))throw Error(P(418));e.flags=e.flags&-4097|2,ce=!1,Xe=e}}}function Wu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function Ci(e){if(e!==Xe)return!1;if(!ce)return Wu(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!sa(e.type,e.memoizedProps)),t&&(t=Ke)){if(pa(e))throw Fp(),Error(P(418));for(;t;)Lp(e,t),t=Zt(t.nextSibling)}if(Wu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=Zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Xe?Zt(e.stateNode.nextSibling):null;return!0}function Fp(){for(var e=Ke;e;)e=Zt(e.nextSibling)}function tr(){Ke=Xe=null,ce=!1}function ps(e){dt===null?dt=[e]:dt.push(e)}var Qm=Mt.ReactCurrentBatchConfig;function kr(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(P(309));var r=n.stateNode}if(!r)throw Error(P(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(P(284));if(!n._owner)throw Error(P(290,e))}return e}function _i(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gu(e){var t=e._init;return t(e._payload)}function jp(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=nn(m,g),m.index=0,m.sibling=null,m}function l(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,C){return g===null||g.tag!==6?(g=xo(y,m.mode,C),g.return=m,g):(g=i(g,y),g.return=m,g)}function s(m,g,y,C){var _=y.type;return _===Rn?f(m,g,y.props.children,C,y.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ht&&Gu(_)===g.type)?(C=i(g,y.props),C.ref=kr(m,g,y),C.return=m,C):(C=Gi(y.type,y.key,y.props,null,m.mode,C),C.ref=kr(m,g,y),C.return=m,C)}function u(m,g,y,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=wo(y,m.mode,C),g.return=m,g):(g=i(g,y.children||[]),g.return=m,g)}function f(m,g,y,C,_){return g===null||g.tag!==7?(g=kn(y,m.mode,C,_),g.return=m,g):(g=i(g,y),g.return=m,g)}function c(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=xo(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gi:return y=Gi(g.type,g.key,g.props,null,m.mode,y),y.ref=kr(m,null,g),y.return=m,y;case jn:return g=wo(g,m.mode,y),g.return=m,g;case Ht:var C=g._init;return c(m,C(g._payload),y)}if(Cr(g)||hr(g))return g=kn(g,m.mode,y,null),g.return=m,g;_i(m,g)}return null}function p(m,g,y,C){var _=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:a(m,g,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gi:return y.key===_?s(m,g,y,C):null;case jn:return y.key===_?u(m,g,y,C):null;case Ht:return _=y._init,p(m,g,_(y._payload),C)}if(Cr(y)||hr(y))return _!==null?null:f(m,g,y,C,null);_i(m,y)}return null}function d(m,g,y,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(y)||null,a(g,m,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case gi:return m=m.get(C.key===null?y:C.key)||null,s(g,m,C,_);case jn:return m=m.get(C.key===null?y:C.key)||null,u(g,m,C,_);case Ht:var S=C._init;return d(m,g,y,S(C._payload),_)}if(Cr(C)||hr(C))return m=m.get(y)||null,f(g,m,C,_,null);_i(g,C)}return null}function h(m,g,y,C){for(var _=null,S=null,T=g,I=g=0,R=null;T!==null&&I<y.length;I++){T.index>I?(R=T,T=null):R=T.sibling;var E=p(m,T,y[I],C);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(m,T),g=l(E,g,I),S===null?_=E:S.sibling=E,S=E,T=R}if(I===y.length)return n(m,T),ce&&pn(m,I),_;if(T===null){for(;I<y.length;I++)T=c(m,y[I],C),T!==null&&(g=l(T,g,I),S===null?_=T:S.sibling=T,S=T);return ce&&pn(m,I),_}for(T=r(m,T);I<y.length;I++)R=d(T,m,I,y[I],C),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?I:R.key),g=l(R,g,I),S===null?_=R:S.sibling=R,S=R);return e&&T.forEach(function(L){return t(m,L)}),ce&&pn(m,I),_}function v(m,g,y,C){var _=hr(y);if(typeof _!="function")throw Error(P(150));if(y=_.call(y),y==null)throw Error(P(151));for(var S=_=null,T=g,I=g=0,R=null,E=y.next();T!==null&&!E.done;I++,E=y.next()){T.index>I?(R=T,T=null):R=T.sibling;var L=p(m,T,E.value,C);if(L===null){T===null&&(T=R);break}e&&T&&L.alternate===null&&t(m,T),g=l(L,g,I),S===null?_=L:S.sibling=L,S=L,T=R}if(E.done)return n(m,T),ce&&pn(m,I),_;if(T===null){for(;!E.done;I++,E=y.next())E=c(m,E.value,C),E!==null&&(g=l(E,g,I),S===null?_=E:S.sibling=E,S=E);return ce&&pn(m,I),_}for(T=r(m,T);!E.done;I++,E=y.next())E=d(T,m,I,E.value,C),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?I:E.key),g=l(E,g,I),S===null?_=E:S.sibling=E,S=E);return e&&T.forEach(function(D){return t(m,D)}),ce&&pn(m,I),_}function w(m,g,y,C){if(typeof y=="object"&&y!==null&&y.type===Rn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case gi:e:{for(var _=y.key,S=g;S!==null;){if(S.key===_){if(_=y.type,_===Rn){if(S.tag===7){n(m,S.sibling),g=i(S,y.props.children),g.return=m,m=g;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ht&&Gu(_)===S.type){n(m,S.sibling),g=i(S,y.props),g.ref=kr(m,S,y),g.return=m,m=g;break e}n(m,S);break}else t(m,S);S=S.sibling}y.type===Rn?(g=kn(y.props.children,m.mode,C,y.key),g.return=m,m=g):(C=Gi(y.type,y.key,y.props,null,m.mode,C),C.ref=kr(m,g,y),C.return=m,m=C)}return o(m);case jn:e:{for(S=y.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=i(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=wo(y,m.mode,C),g.return=m,m=g}return o(m);case Ht:return S=y._init,w(m,g,S(y._payload),C)}if(Cr(y))return h(m,g,y,C);if(hr(y))return v(m,g,y,C);_i(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,y),g.return=m,m=g):(n(m,g),g=xo(y,m.mode,C),g.return=m,m=g),o(m)):n(m,g)}return w}var nr=jp(!0),Rp=jp(!1),ul=an(null),cl=null,Hn=null,ds=null;function hs(){ds=Hn=cl=null}function gs(e){var t=ul.current;ue(ul),e._currentValue=t}function ha(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 Kn(e,t){cl=e,ds=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(ds!==e)if(e={context:e,memoizedValue:t,next:null},Hn===null){if(cl===null)throw Error(P(308));Hn=e,cl.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return t}var mn=null;function ms(e){mn===null?mn=[e]:mn.push(e)}function zp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ms(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dt(e,r)}function Dt(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 Vt=!1;function ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dp(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 jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dt(e,n)}return i=r.interleaved,i===null?(t.next=t,ms(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dt(e,n)}function Bi(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,ns(e,n)}}function Qu(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 fl(e,t,n,r){var i=e.updateQueue;Vt=!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 p=a.lane,d=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(p=t,d=n,v.tag){case 1:if(h=v.payload,typeof h=="function"){c=h.call(d,c,p);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,p=typeof h=="function"?h.call(d,c,p):h,p==null)break e;c=he({},c,p);break e;case 2:Vt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else d={eventTime:d,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=d,s=c):f=f.next=d,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,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);bn|=o,e.lanes=o,e.memoizedState=c}}function qu(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(P(191,i));i.call(r)}}}var ui={},Ct=an(ui),Xr=an(ui),Zr=an(ui);function yn(e){if(e===ui)throw Error(P(174));return e}function vs(e,t){switch(ae(Zr,t),ae(Xr,e),ae(Ct,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qo(t,e)}ue(Ct),ae(Ct,t)}function rr(){ue(Ct),ue(Xr),ue(Zr)}function Op(e){yn(Zr.current);var t=yn(Ct.current),n=qo(t,e.type);t!==n&&(ae(Xr,e),ae(Ct,n))}function ks(e){Xr.current===e&&(ue(Ct),ue(Xr))}var pe=an(0);function pl(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 ho=[];function xs(){for(var e=0;e<ho.length;e++)ho[e]._workInProgressVersionPrimary=null;ho.length=0}var $i=Mt.ReactCurrentDispatcher,go=Mt.ReactCurrentBatchConfig,Sn=0,de=null,ke=null,we=null,dl=!1,Fr=!1,Jr=0,qm=0;function _e(){throw Error(P(321))}function ws(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function Ss(e,t,n,r,i,l){if(Sn=l,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$i.current=e===null||e.memoizedState===null?Zm:Jm,e=n(r,i),Fr){l=0;do{if(Fr=!1,Jr=0,25<=l)throw Error(P(301));l+=1,we=ke=null,t.updateQueue=null,$i.current=ey,e=n(r,i)}while(Fr)}if($i.current=hl,t=ke!==null&&ke.next!==null,Sn=0,we=ke=de=null,dl=!1,t)throw Error(P(300));return e}function bs(){var e=Jr!==0;return Jr=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?de.memoizedState=we=e:we=we.next=e,we}function st(){if(ke===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=we===null?de.memoizedState:we.next;if(t!==null)we=t,ke=e;else{if(e===null)throw Error(P(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},we===null?de.memoizedState=we=e:we=we.next=e}return we}function ei(e,t){return typeof t=="function"?t(e):t}function mo(e){var t=st(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ke,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((Sn&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,de.lanes|=f,bn|=f}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,yt(r,t.memoizedState)||($e=!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,de.lanes|=l,bn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yo(e){var t=st(),n=t.queue;if(n===null)throw Error(P(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);yt(l,t.memoizedState)||($e=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Mp(){}function Bp(e,t){var n=de,r=st(),i=t(),l=!yt(r.memoizedState,i);if(l&&(r.memoizedState=i,$e=!0),r=r.queue,Es(Hp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||we!==null&&we.memoizedState.tag&1){if(n.flags|=2048,ti(9,Up.bind(null,n,r,i,t),void 0,null),Se===null)throw Error(P(349));Sn&30||$p(n,t,i)}return i}function $p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Up(e,t,n,r){t.value=n,t.getSnapshot=r,Vp(t)&&Wp(e)}function Hp(e,t,n){return n(function(){Vp(t)&&Wp(e)})}function Vp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function Wp(e){var t=Dt(e,1);t!==null&&gt(t,e,1,-1)}function Yu(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=Xm.bind(null,de,e),[t.memoizedState,e]}function ti(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.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 Gp(){return st().memoizedState}function Ui(e,t,n,r){var i=wt();de.flags|=e,i.memoizedState=ti(1|t,n,void 0,r===void 0?null:r)}function Ll(e,t,n,r){var i=st();r=r===void 0?null:r;var l=void 0;if(ke!==null){var o=ke.memoizedState;if(l=o.destroy,r!==null&&ws(r,o.deps)){i.memoizedState=ti(t,n,l,r);return}}de.flags|=e,i.memoizedState=ti(1|t,n,l,r)}function Ku(e,t){return Ui(8390656,8,e,t)}function Es(e,t){return Ll(2048,8,e,t)}function Qp(e,t){return Ll(4,2,e,t)}function qp(e,t){return Ll(4,4,e,t)}function Yp(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 Kp(e,t,n){return n=n!=null?n.concat([e]):null,Ll(4,4,Yp.bind(null,t,e),n)}function Cs(){}function Xp(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ws(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zp(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ws(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jp(e,t,n){return Sn&21?(yt(n,t)||(n=ip(),de.lanes|=n,bn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function Ym(e,t){var n=ne;ne=n!==0&&4>n?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{ne=n,go.transition=r}}function ed(){return st().memoizedState}function Km(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},td(e))nd(t,n);else if(n=zp(e,t,n,r),n!==null){var i=Re();gt(n,e,r,i),rd(n,t,r)}}function Xm(e,t,n){var r=tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(td(e))nd(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,yt(a,o)){var s=t.interleaved;s===null?(i.next=i,ms(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=zp(e,t,i,r),n!==null&&(i=Re(),gt(n,e,r,i),rd(n,t,r))}}function td(e){var t=e.alternate;return e===de||t!==null&&t===de}function nd(e,t){Fr=dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ns(e,n)}}var hl={readContext:at,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},Zm={readContext:at,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4194308,4,Yp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();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=Km.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:Cs,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=Ym.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=wt();if(ce){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Se===null)throw Error(P(349));Sn&30||$p(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Ku(Hp.bind(null,r,l,e),[e]),r.flags|=2048,ti(9,Up.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=wt(),t=Se.identifierPrefix;if(ce){var n=Ft,r=Lt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Jm={readContext:at,useCallback:Xp,useContext:at,useEffect:Es,useImperativeHandle:Kp,useInsertionEffect:Qp,useLayoutEffect:qp,useMemo:Zp,useReducer:mo,useRef:Gp,useState:function(){return mo(ei)},useDebugValue:Cs,useDeferredValue:function(e){var t=st();return Jp(t,ke.memoizedState,e)},useTransition:function(){var e=mo(ei)[0],t=st().memoizedState;return[e,t]},useMutableSource:Mp,useSyncExternalStore:Bp,useId:ed,unstable_isNewReconciler:!1},ey={readContext:at,useCallback:Xp,useContext:at,useEffect:Es,useImperativeHandle:Kp,useInsertionEffect:Qp,useLayoutEffect:qp,useMemo:Zp,useReducer:yo,useRef:Gp,useState:function(){return yo(ei)},useDebugValue:Cs,useDeferredValue:function(e){var t=st();return ke===null?t.memoizedState=e:Jp(t,ke.memoizedState,e)},useTransition:function(){var e=yo(ei)[0],t=st().memoizedState;return[e,t]},useMutableSource:Mp,useSyncExternalStore:Bp,useId:ed,unstable_isNewReconciler:!1};function ft(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ga(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fl={isMounted:function(e){return(e=e._reactInternals)?Tn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Re(),i=tn(e),l=jt(r,i);l.payload=t,n!=null&&(l.callback=n),t=Jt(e,l,i),t!==null&&(gt(t,e,i,r),Bi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Re(),i=tn(e),l=jt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Jt(e,l,i),t!==null&&(gt(t,e,i,r),Bi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Re(),r=tn(e),i=jt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jt(e,i,r),t!==null&&(gt(t,e,r,n),Bi(t,e,r))}};function Xu(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?!Qr(n,r)||!Qr(i,l):!0}function id(e,t,n){var r=!1,i=ln,l=t.contextType;return typeof l=="object"&&l!==null?l=at(l):(i=He(t)?xn:Ne.current,r=t.contextTypes,l=(r=r!=null)?er(e,i):ln),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Zu(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&&Fl.enqueueReplaceState(t,t.state,null)}function ma(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ys(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=at(l):(l=He(t)?xn:Ne.current,i.context=er(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(ga(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&&Fl.enqueueReplaceState(i,i.state,null),fl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ir(e,t){try{var n="",r=t;do n+=Ig(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 ya(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function ld(e,t,n){n=jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ml||(ml=!0,Ta=r),ya(e,t)},n}function od(e,t,n){n=jt(-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(){ya(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ya(e,t),typeof r!="function"&&(en===null?en=new Set([this]):en.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ty;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=gy.bind(null,e,t,n),t.then(e,e))}function ec(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 tc(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=jt(-1,1),t.tag=2,Jt(n,t,1))),n.lanes|=1),e)}var ny=Mt.ReactCurrentOwner,$e=!1;function Fe(e,t,n,r){t.child=e===null?Rp(t,null,n,r):nr(t,e.child,n,r)}function nc(e,t,n,r,i){n=n.render;var l=t.ref;return Kn(t,i),r=Ss(e,t,n,r,l,i),n=bs(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(ce&&n&&cs(t),t.flags|=1,Fe(e,t,r,i),t.child)}function rc(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Fs(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,ad(e,t,l,r,i)):(e=Gi(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:Qr,n(o,r)&&e.ref===t.ref)return Ot(e,t,i)}return t.flags|=1,e=nn(l,r),e.ref=t.ref,e.return=t,t.child=e}function ad(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Qr(l,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,Ot(e,t,i)}return va(e,t,n,r,i)}function sd(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},ae(Wn,Ye),Ye|=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,ae(Wn,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ae(Wn,Ye),Ye|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ae(Wn,Ye),Ye|=r;return Fe(e,t,i,n),t.child}function ud(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=He(n)?xn:Ne.current;return l=er(t,l),Kn(t,i),n=Ss(e,t,n,r,l,i),r=bs(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(ce&&r&&cs(t),t.flags|=1,Fe(e,t,n,i),t.child)}function ic(e,t,n,r,i){if(He(n)){var l=!0;ol(t)}else l=!1;if(Kn(t,i),t.stateNode===null)Hi(e,t),id(t,n,r),ma(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=at(u):(u=He(n)?xn:Ne.current,u=er(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)&&Zu(t,o,r,u),Vt=!1;var p=t.memoizedState;o.state=p,fl(t,r,o,i),s=t.memoizedState,a!==r||p!==s||Ue.current||Vt?(typeof f=="function"&&(ga(t,n,f,r),s=t.memoizedState),(a=Vt||Xu(t,n,a,r,p,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,Dp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:ft(t.type,a),o.props=u,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=at(s):(s=He(n)?xn:Ne.current,s=er(t,s));var d=n.getDerivedStateFromProps;(f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||p!==s)&&Zu(t,o,r,s),Vt=!1,p=t.memoizedState,o.state=p,fl(t,r,o,i);var h=t.memoizedState;a!==c||p!==h||Ue.current||Vt?(typeof d=="function"&&(ga(t,n,d,r),h=t.memoizedState),(u=Vt||Xu(t,n,u,r,p,h,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ka(e,t,n,r,l,i)}function ka(e,t,n,r,i,l){ud(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Hu(t,n,!1),Ot(e,t,l);r=t.stateNode,ny.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=nr(t,e.child,null,l),t.child=nr(t,null,a,l)):Fe(e,t,a,l),t.memoizedState=r.state,i&&Hu(t,n,!0),t.child}function cd(e){var t=e.stateNode;t.pendingContext?Uu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uu(e,t.context,!1),vs(e,t.containerInfo)}function lc(e,t,n,r,i){return tr(),ps(i),t.flags|=256,Fe(e,t,n,r),t.child}var xa={dehydrated:null,treeContext:null,retryLane:0};function wa(e){return{baseLanes:e,cachePool:null,transitions:null}}function fd(e,t,n){var r=t.pendingProps,i=pe.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),ae(pe,i&1),e===null)return da(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=zl(o,r,0,null),e=kn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=wa(n),t.memoizedState=xa,e):_s(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ry(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=nn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=nn(a,l):(l=kn(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?wa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=xa,r}return l=e.child,e=l.sibling,r=nn(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 _s(e,t){return t=zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ti(e,t,n,r){return r!==null&&ps(r),nr(t,e.child,null,n),e=_s(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=vo(Error(P(422))),Ti(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=zl({mode:"visible",children:r.children},i,0,null),l=kn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&nr(t,e.child,null,o),t.child.memoizedState=wa(o),t.memoizedState=xa,l);if(!(t.mode&1))return Ti(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(P(419)),r=vo(l,r,void 0),Ti(e,t,o,r)}if(a=(o&e.childLanes)!==0,$e||a){if(r=Se,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,Dt(e,i),gt(r,e,i,-1))}return Ls(),r=vo(Error(P(421))),Ti(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=my.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ke=Zt(i.nextSibling),Xe=t,ce=!0,dt=null,e!==null&&(nt[rt++]=Lt,nt[rt++]=Ft,nt[rt++]=wn,Lt=e.id,Ft=e.overflow,wn=t),t=_s(t,r.children),t.flags|=4096,t)}function oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function ko(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 pd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Fe(e,t,r.children,n),r=pe.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&&oc(e,n,t);else if(e.tag===19)oc(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(ae(pe,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&&pl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ko(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&&pl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ko(t,!0,n,null,l);break;case"together":ko(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iy(e,t,n){switch(t.tag){case 3:cd(t),tr();break;case 5:Op(t);break;case 1:He(t.type)&&ol(t);break;case 4:vs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(ul,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?fd(e,t,n):(ae(pe,pe.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);ae(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,sd(e,t,n)}return Ot(e,t,n)}var dd,Sa,hd,gd;dd=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}};Sa=function(){};hd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yn(Ct.current);var l=null;switch(n){case"input":i=Vo(e,i),r=Vo(e,r),l=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),l=[];break;case"textarea":i=Qo(e,i),r=Qo(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Yo(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"&&(Br.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"&&(Br.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&se("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)}};gd=function(e,t,n,r){n!==r&&(t.flags|=4)};function xr(e,t){if(!ce)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 Te(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 ly(e,t,n){var r=t.pendingProps;switch(fs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return He(t.type)&&ll(),Te(t),null;case 3:return r=t.stateNode,rr(),ue(Ue),ue(Ne),xs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dt!==null&&(Na(dt),dt=null))),Sa(e,t),Te(t),null;case 5:ks(t);var i=yn(Zr.current);if(n=t.type,e!==null&&t.stateNode!=null)hd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return Te(t),null}if(e=yn(Ct.current),Ci(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[bt]=t,r[Kr]=l,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(i=0;i<Tr.length;i++)se(Tr[i],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":gu(r,l),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},se("invalid",r);break;case"textarea":yu(r,l),se("invalid",r)}Yo(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&&Ei(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Ei(r.textContent,a,e),i=["children",""+a]):Br.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&se("scroll",r)}switch(n){case"input":mi(r),mu(r,l,!0);break;case"textarea":mi(r),vu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=il)}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=Hf(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[bt]=t,e[Kr]=r,dd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ko(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;i<Tr.length;i++)se(Tr[i],e);i=r;break;case"source":se("error",e),i=r;break;case"img":case"image":case"link":se("error",e),se("load",e),i=r;break;case"details":se("toggle",e),i=r;break;case"input":gu(e,r),i=Vo(e,r),se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),se("invalid",e);break;case"textarea":yu(e,r),i=Qo(e,r),se("invalid",e);break;default:i=r}Yo(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];l==="style"?Gf(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Vf(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&$r(e,s):typeof s=="number"&&$r(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Br.hasOwnProperty(l)?s!=null&&l==="onScroll"&&se("scroll",e):s!=null&&Ka(e,l,s,o))}switch(n){case"input":mi(e),mu(e,r,!1);break;case"textarea":mi(e),vu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Gn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=il)}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 Te(t),null;case 6:if(e&&t.stateNode!=null)gd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=yn(Zr.current),yn(Ct.current),Ci(t)){if(r=t.stateNode,n=t.memoizedProps,r[bt]=t,(l=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:Ei(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ei(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bt]=t,t.stateNode=r}return Te(t),null;case 13:if(ue(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Ke!==null&&t.mode&1&&!(t.flags&128))Fp(),tr(),t.flags|=98560,l=!1;else if(l=Ci(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(P(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(P(317));l[bt]=t}else tr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Te(t),l=!1}else dt!==null&&(Na(dt),dt=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||pe.current&1?xe===0&&(xe=3):Ls())),t.updateQueue!==null&&(t.flags|=4),Te(t),null);case 4:return rr(),Sa(e,t),e===null&&qr(t.stateNode.containerInfo),Te(t),null;case 10:return gs(t.type._context),Te(t),null;case 17:return He(t.type)&&ll(),Te(t),null;case 19:if(ue(pe),l=t.memoizedState,l===null)return Te(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)xr(l,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=pl(e),o!==null){for(t.flags|=128,xr(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 ae(pe,pe.current&1|2),t.child}e=e.sibling}l.tail!==null&&me()>lr&&(t.flags|=128,r=!0,xr(l,!1),t.lanes=4194304)}else{if(!r)if(e=pl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ce)return Te(t),null}else 2*me()-l.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,xr(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=me(),t.sibling=null,n=pe.current,ae(pe,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function oy(e,t){switch(fs(t),t.tag){case 1:return He(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),ue(Ue),ue(Ne),xs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ks(t),null;case 13:if(ue(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(pe),null;case 4:return rr(),null;case 10:return gs(t.type._context),null;case 22:case 23:return Ps(),null;case 24:return null;default:return null}}var Ii=!1,Ie=!1,ay=typeof WeakSet=="function"?WeakSet:Set,B=null;function Vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function ba(e,t,n){try{n()}catch(r){ge(e,t,r)}}var ac=!1;function sy(e,t){if(oa=tl,e=xp(),us(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,p=null;t:for(;;){for(var d;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),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=o),p===l&&++f===r&&(s=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(aa={focusedElem:e,selectionRange:n},tl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,w=h.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ft(t.type,v),w);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(C){ge(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=ac,ac=!1,h}function jr(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&&ba(t,n,l)}i=i.next}while(i!==r)}}function jl(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 Ea(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 md(e){var t=e.alternate;t!==null&&(e.alternate=null,md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[Kr],delete t[ca],delete t[Vm],delete t[Wm])),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 yd(e){return e.tag===5||e.tag===3||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(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 Ca(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=il));else if(r!==4&&(e=e.child,e!==null))for(Ca(e,t,n),e=e.sibling;e!==null;)Ca(e,t,n),e=e.sibling}function _a(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(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}var be=null,pt=!1;function $t(e,t,n){for(n=n.child;n!==null;)vd(e,t,n),n=n.sibling}function vd(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 5:Ie||Vn(n,t);case 6:var r=be,i=pt;be=null,$t(e,t,n),be=r,pt=i,be!==null&&(pt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(pt?(e=be,n=n.stateNode,e.nodeType===8?fo(e.parentNode,n):e.nodeType===1&&fo(e,n),Wr(e)):fo(be,n.stateNode));break;case 4:r=be,i=pt,be=n.stateNode.containerInfo,pt=!0,$t(e,t,n),be=r,pt=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(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)&&ba(n,t,o),i=i.next}while(i!==r)}$t(e,t,n);break;case 1:if(!Ie&&(Vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,$t(e,t,n),Ie=r):$t(e,t,n);break;default:$t(e,t,n)}}function uc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ay),t.forEach(function(r){var i=yy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ct(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:be=a.stateNode,pt=!1;break e;case 3:be=a.stateNode.containerInfo,pt=!0;break e;case 4:be=a.stateNode.containerInfo,pt=!0;break e}a=a.return}if(be===null)throw Error(P(160));vd(l,o,i),be=null,pt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){ge(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kd(t,e),t=t.sibling}function kd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ct(t,e),xt(e),r&4){try{jr(3,e,e.return),jl(3,e)}catch(v){ge(e,e.return,v)}try{jr(5,e,e.return)}catch(v){ge(e,e.return,v)}}break;case 1:ct(t,e),xt(e),r&512&&n!==null&&Vn(n,n.return);break;case 5:if(ct(t,e),xt(e),r&512&&n!==null&&Vn(n,n.return),e.flags&32){var i=e.stateNode;try{$r(i,"")}catch(v){ge(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&&$f(i,l),Ko(a,o);var u=Ko(a,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?Gf(i,c):f==="dangerouslySetInnerHTML"?Vf(i,c):f==="children"?$r(i,c):Ka(i,f,c,u)}switch(a){case"input":Wo(i,l);break;case"textarea":Uf(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var d=l.value;d!=null?Gn(i,!!l.multiple,d,!1):p!==!!l.multiple&&(l.defaultValue!=null?Gn(i,!!l.multiple,l.defaultValue,!0):Gn(i,!!l.multiple,l.multiple?[]:"",!1))}i[Kr]=l}catch(v){ge(e,e.return,v)}}break;case 6:if(ct(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(v){ge(e,e.return,v)}}break;case 3:if(ct(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wr(t.containerInfo)}catch(v){ge(e,e.return,v)}break;case 4:ct(t,e),xt(e);break;case 13:ct(t,e),xt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(As=me())),r&4&&uc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ie=(u=Ie)||f,ct(t,e),Ie=u):ct(t,e),xt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(B=e,f=e.child;f!==null;){for(c=B=f;B!==null;){switch(p=B,d=p.child,p.tag){case 0:case 11:case 14:case 15:jr(4,p,p.return);break;case 1:Vn(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){ge(r,n,v)}}break;case 5:Vn(p,p.return);break;case 22:if(p.memoizedState!==null){fc(c);continue}}d!==null?(d.return=p,B=d):fc(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=Wf("display",o))}catch(v){ge(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){ge(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:ct(t,e),xt(e),r&4&&uc(e);break;case 21:break;default:ct(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yd(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($r(i,""),r.flags&=-33);var l=sc(e);_a(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=sc(e);Ca(e,a,o);break;default:throw Error(P(161))}}catch(s){ge(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uy(e,t,n){B=e,xd(e)}function xd(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var i=B,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Ii;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Ie;a=Ii;var u=Ie;if(Ii=o,(Ie=s)&&!u)for(B=i;B!==null;)o=B,s=o.child,o.tag===22&&o.memoizedState!==null?pc(i):s!==null?(s.return=o,B=s):pc(i);for(;l!==null;)B=l,xd(l),l=l.sibling;B=i,Ii=a,Ie=u}cc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,B=l):cc(e)}}function cc(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ie||jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ie)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ft(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&qu(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}qu(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&&Wr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Ie||t.flags&512&&Ea(t)}catch(p){ge(t,t.return,p)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function fc(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function pc(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jl(4,t)}catch(s){ge(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ge(t,i,s)}}var l=t.return;try{Ea(t)}catch(s){ge(t,l,s)}break;case 5:var o=t.return;try{Ea(t)}catch(s){ge(t,o,s)}}}catch(s){ge(t,t.return,s)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var cy=Math.ceil,gl=Mt.ReactCurrentDispatcher,Ts=Mt.ReactCurrentOwner,ot=Mt.ReactCurrentBatchConfig,ee=0,Se=null,ve=null,Ee=0,Ye=0,Wn=an(0),xe=0,ni=null,bn=0,Rl=0,Is=0,Rr=null,Be=null,As=0,lr=1/0,Nt=null,ml=!1,Ta=null,en=null,Ai=!1,qt=null,yl=0,zr=0,Ia=null,Vi=-1,Wi=0;function Re(){return ee&6?me():Vi!==-1?Vi:Vi=me()}function tn(e){return e.mode&1?ee&2&&Ee!==0?Ee&-Ee:Qm.transition!==null?(Wi===0&&(Wi=ip()),Wi):(e=ne,e!==0||(e=window.event,e=e===void 0?16:fp(e.type)),e):1}function gt(e,t,n,r){if(50<zr)throw zr=0,Ia=null,Error(P(185));oi(e,n,r),(!(ee&2)||e!==Se)&&(e===Se&&(!(ee&2)&&(Rl|=n),xe===4&&Gt(e,Ee)),Ve(e,r),n===1&&ee===0&&!(t.mode&1)&&(lr=me()+500,Pl&&sn()))}function Ve(e,t){var n=e.callbackNode;Qg(e,t);var r=el(e,e===Se?Ee:0);if(r===0)n!==null&&wu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&wu(n),t===1)e.tag===0?Gm(dc.bind(null,e)):Np(dc.bind(null,e)),Um(function(){!(ee&6)&&sn()}),n=null;else{switch(lp(r)){case 1:n=ts;break;case 4:n=np;break;case 16:n=Ji;break;case 536870912:n=rp;break;default:n=Ji}n=Id(n,wd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wd(e,t){if(Vi=-1,Wi=0,ee&6)throw Error(P(327));var n=e.callbackNode;if(Xn()&&e.callbackNode!==n)return null;var r=el(e,e===Se?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=vl(e,r);else{t=r;var i=ee;ee|=2;var l=bd();(Se!==e||Ee!==t)&&(Nt=null,lr=me()+500,vn(e,t));do try{dy();break}catch(a){Sd(e,a)}while(!0);hs(),gl.current=l,ee=i,ve!==null?t=0:(Se=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(i=ta(e),i!==0&&(r=i,t=Aa(e,i))),t===1)throw n=ni,vn(e,0),Gt(e,r),Ve(e,me()),n;if(t===6)Gt(e,r);else{if(i=e.current.alternate,!(r&30)&&!fy(i)&&(t=vl(e,r),t===2&&(l=ta(e),l!==0&&(r=l,t=Aa(e,l))),t===1))throw n=ni,vn(e,0),Gt(e,r),Ve(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:dn(e,Be,Nt);break;case 3:if(Gt(e,r),(r&130023424)===r&&(t=As+500-me(),10<t)){if(el(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Re(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ua(dn.bind(null,e,Be,Nt),t);break}dn(e,Be,Nt);break;case 4:if(Gt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-ht(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cy(r/1960))-r,10<r){e.timeoutHandle=ua(dn.bind(null,e,Be,Nt),r);break}dn(e,Be,Nt);break;case 5:dn(e,Be,Nt);break;default:throw Error(P(329))}}}return Ve(e,me()),e.callbackNode===n?wd.bind(null,e):null}function Aa(e,t){var n=Rr;return e.current.memoizedState.isDehydrated&&(vn(e,t).flags|=256),e=vl(e,t),e!==2&&(t=Be,Be=n,t!==null&&Na(t)),e}function Na(e){Be===null?Be=e:Be.push.apply(Be,e)}function fy(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(!yt(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 Gt(e,t){for(t&=~Is,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function dc(e){if(ee&6)throw Error(P(327));Xn();var t=el(e,0);if(!(t&1))return Ve(e,me()),null;var n=vl(e,t);if(e.tag!==0&&n===2){var r=ta(e);r!==0&&(t=r,n=Aa(e,r))}if(n===1)throw n=ni,vn(e,0),Gt(e,t),Ve(e,me()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dn(e,Be,Nt),Ve(e,me()),null}function Ns(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(lr=me()+500,Pl&&sn())}}function En(e){qt!==null&&qt.tag===0&&!(ee&6)&&Xn();var t=ee;ee|=1;var n=ot.transition,r=ne;try{if(ot.transition=null,ne=1,e)return e()}finally{ne=r,ot.transition=n,ee=t,!(ee&6)&&sn()}}function Ps(){Ye=Wn.current,ue(Wn)}function vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$m(n)),ve!==null)for(n=ve.return;n!==null;){var r=n;switch(fs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ll();break;case 3:rr(),ue(Ue),ue(Ne),xs();break;case 5:ks(r);break;case 4:rr();break;case 13:ue(pe);break;case 19:ue(pe);break;case 10:gs(r.type._context);break;case 22:case 23:Ps()}n=n.return}if(Se=e,ve=e=nn(e.current,null),Ee=Ye=t,xe=0,ni=null,Is=Rl=bn=0,Be=Rr=null,mn!==null){for(t=0;t<mn.length;t++)if(n=mn[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}mn=null}return e}function Sd(e,t){do{var n=ve;try{if(hs(),$i.current=hl,dl){for(var r=de.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}dl=!1}if(Sn=0,we=ke=de=null,Fr=!1,Jr=0,Ts.current=null,n===null||n.return===null){xe=1,ni=t,ve=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=Ee,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 p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var d=ec(o);if(d!==null){d.flags&=-257,tc(d,o,a,l,t),d.mode&1&&Ju(l,u,t),t=d,s=u;var h=t.updateQueue;if(h===null){var v=new Set;v.add(s),t.updateQueue=v}else h.add(s);break e}else{if(!(t&1)){Ju(l,u,t),Ls();break e}s=Error(P(426))}}else if(ce&&a.mode&1){var w=ec(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),tc(w,o,a,l,t),ps(ir(s,a));break e}}l=s=ir(s,a),xe!==4&&(xe=2),Rr===null?Rr=[l]:Rr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=ld(l,s,t);Qu(l,m);break e;case 1:a=s;var g=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(en===null||!en.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=od(l,a,t);Qu(l,C);break e}}l=l.return}while(l!==null)}Cd(n)}catch(_){t=_,ve===n&&n!==null&&(ve=n=n.return);continue}break}while(!0)}function bd(){var e=gl.current;return gl.current=hl,e===null?hl:e}function Ls(){(xe===0||xe===3||xe===2)&&(xe=4),Se===null||!(bn&268435455)&&!(Rl&268435455)||Gt(Se,Ee)}function vl(e,t){var n=ee;ee|=2;var r=bd();(Se!==e||Ee!==t)&&(Nt=null,vn(e,t));do try{py();break}catch(i){Sd(e,i)}while(!0);if(hs(),ee=n,gl.current=r,ve!==null)throw Error(P(261));return Se=null,Ee=0,xe}function py(){for(;ve!==null;)Ed(ve)}function dy(){for(;ve!==null&&!Og();)Ed(ve)}function Ed(e){var t=Td(e.alternate,e,Ye);e.memoizedProps=e.pendingProps,t===null?Cd(e):ve=t,Ts.current=null}function Cd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oy(n,t),n!==null){n.flags&=32767,ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,ve=null;return}}else if(n=ly(n,t,Ye),n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);xe===0&&(xe=5)}function dn(e,t,n){var r=ne,i=ot.transition;try{ot.transition=null,ne=1,hy(e,t,n,r)}finally{ot.transition=i,ne=r}return null}function hy(e,t,n,r){do Xn();while(qt!==null);if(ee&6)throw Error(P(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(P(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(qg(e,l),e===Se&&(ve=Se=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ai||(Ai=!0,Id(Ji,function(){return Xn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ot.transition,ot.transition=null;var o=ne;ne=1;var a=ee;ee|=4,Ts.current=null,sy(e,n),kd(n,e),jm(aa),tl=!!oa,aa=oa=null,e.current=n,uy(n),Mg(),ee=a,ne=o,ot.transition=l}else e.current=n;if(Ai&&(Ai=!1,qt=e,yl=i),l=e.pendingLanes,l===0&&(en=null),Ug(n.stateNode),Ve(e,me()),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(ml)throw ml=!1,e=Ta,Ta=null,e;return yl&1&&e.tag!==0&&Xn(),l=e.pendingLanes,l&1?e===Ia?zr++:(zr=0,Ia=e):zr=0,sn(),null}function Xn(){if(qt!==null){var e=lp(yl),t=ot.transition,n=ne;try{if(ot.transition=null,ne=16>e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,yl=0,ee&6)throw Error(P(331));var i=ee;for(ee|=4,B=e.current;B!==null;){var l=B,o=l.child;if(B.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(B=u;B!==null;){var f=B;switch(f.tag){case 0:case 11:case 15:jr(8,f,l)}var c=f.child;if(c!==null)c.return=f,B=c;else for(;B!==null;){f=B;var p=f.sibling,d=f.return;if(md(f),f===u){B=null;break}if(p!==null){p.return=d,B=p;break}B=d}}}var h=l.alternate;if(h!==null){var v=h.child;if(v!==null){h.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}B=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,B=o;else e:for(;B!==null;){if(l=B,l.flags&2048)switch(l.tag){case 0:case 11:case 15:jr(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,B=m;break e}B=l.return}}var g=e.current;for(B=g;B!==null;){o=B;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,B=y;else e:for(o=g;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jl(9,a)}}catch(_){ge(a,a.return,_)}if(a===o){B=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,B=C;break e}B=a.return}}if(ee=i,sn(),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(_l,e)}catch{}r=!0}return r}finally{ne=n,ot.transition=t}}return!1}function hc(e,t,n){t=ir(n,t),t=ld(e,t,1),e=Jt(e,t,1),t=Re(),e!==null&&(oi(e,1,t),Ve(e,t))}function ge(e,t,n){if(e.tag===3)hc(e,e,n);else for(;t!==null;){if(t.tag===3){hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(en===null||!en.has(r))){e=ir(n,e),e=od(t,e,1),t=Jt(t,e,1),e=Re(),t!==null&&(oi(t,1,e),Ve(t,e));break}}t=t.return}}function gy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Re(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>me()-As?vn(e,0):Is|=n),Ve(e,t)}function _d(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=Re();e=Dt(e,t),e!==null&&(oi(e,t,n),Ve(e,n))}function my(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_d(e,n)}function yy(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(P(314))}r!==null&&r.delete(t),_d(e,n)}var Td;Td=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,iy(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ce&&t.flags&1048576&&Pp(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var i=er(t,Ne.current);Kn(t,n),i=Ss(null,t,r,e,i,n);var l=bs();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,He(r)?(l=!0,ol(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ys(t),i.updater=Fl,t.stateNode=i,i._reactInternals=t,ma(t,r,e,n),t=ka(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&cs(t),Fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ky(r),e=ft(r,e),i){case 0:t=va(null,t,r,e,n);break e;case 1:t=ic(null,t,r,e,n);break e;case 11:t=nc(null,t,r,e,n);break e;case 14:t=rc(null,t,r,ft(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ft(r,i),va(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ft(r,i),ic(e,t,r,i,n);case 3:e:{if(cd(t),e===null)throw Error(P(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Dp(e,t),fl(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=ir(Error(P(423)),t),t=lc(e,t,r,n,i);break e}else if(r!==i){i=ir(Error(P(424)),t),t=lc(e,t,r,n,i);break e}else for(Ke=Zt(t.stateNode.containerInfo.firstChild),Xe=t,ce=!0,dt=null,n=Rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tr(),r===i){t=Ot(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return Op(t),e===null&&da(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,sa(r,i)?o=null:l!==null&&sa(r,l)&&(t.flags|=32),ud(e,t),Fe(e,t,o,n),t.child;case 6:return e===null&&da(t),null;case 13:return fd(e,t,n);case 4:return vs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ft(r,i),nc(e,t,r,i,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(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,ae(ul,r._currentValue),r._currentValue=o,l!==null)if(yt(l.value,o)){if(l.children===i.children&&!Ue.current){t=Ot(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=jt(-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),ha(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(P(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ha(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}Fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Kn(t,n),i=at(i),r=r(i),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,i=ft(r,t.pendingProps),i=ft(r.type,i),rc(e,t,r,i,n);case 15:return ad(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ft(r,i),Hi(e,t),t.tag=1,He(r)?(e=!0,ol(t)):e=!1,Kn(t,n),id(t,r,i),ma(t,r,i,n),ka(null,t,r,!0,e,n);case 19:return pd(e,t,n);case 22:return sd(e,t,n)}throw Error(P(156,t.tag))};function Id(e,t){return tp(e,t)}function vy(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 lt(e,t,n,r){return new vy(e,t,n,r)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ky(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Za)return 11;if(e===Ja)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=lt(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 Gi(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Fs(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Rn:return kn(n.children,i,l,t);case Xa:o=8,i|=8;break;case Bo:return e=lt(12,n,t,i|2),e.elementType=Bo,e.lanes=l,e;case $o:return e=lt(13,n,t,i),e.elementType=$o,e.lanes=l,e;case Uo:return e=lt(19,n,t,i),e.elementType=Uo,e.lanes=l,e;case Of:return zl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zf:o=10;break e;case Df:o=9;break e;case Za:o=11;break e;case Ja:o=14;break e;case Ht:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=lt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function zl(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Of,e.lanes=n,e.stateNode={isHidden:!1},e}function xo(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xy(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=eo(0),this.expirationTimes=eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function js(e,t,n,r,i,l,o,a,s){return e=new xy(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=lt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ys(l),e}function wy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ad(e){if(!e)return ln;e=e._reactInternals;e:{if(Tn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(He(n))return Ap(e,n,t)}return t}function Nd(e,t,n,r,i,l,o,a,s){return e=js(n,r,!0,e,i,l,o,a,s),e.context=Ad(null),n=e.current,r=Re(),i=tn(n),l=jt(r,i),l.callback=t??null,Jt(n,l,i),e.current.lanes=i,oi(e,i,r),Ve(e,r),e}function Dl(e,t,n,r){var i=t.current,l=Re(),o=tn(i);return n=Ad(n),t.context===null?t.context=n:t.pendingContext=n,t=jt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jt(i,t,o),e!==null&&(gt(e,i,o,l),Bi(e,i,o)),o}function kl(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 gc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rs(e,t){gc(e,t),(e=e.alternate)&&gc(e,t)}function Sy(){return null}var Pd=typeof reportError=="function"?reportError:function(e){console.error(e)};function zs(e){this._internalRoot=e}Ol.prototype.render=zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Dl(e,t,null,null)};Ol.prototype.unmount=zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;En(function(){Dl(null,e,null,null)}),t[zt]=null}};function Ol(e){this._internalRoot=e}Ol.prototype.unstable_scheduleHydration=function(e){if(e){var t=sp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&t!==0&&t<Wt[n].priority;n++);Wt.splice(n,0,e),n===0&&cp(e)}};function Ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mc(){}function by(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=kl(o);l.call(u)}}var o=Nd(t,r,e,0,null,!1,!1,"",mc);return e._reactRootContainer=o,e[zt]=o.current,qr(e.nodeType===8?e.parentNode:e),En(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=kl(s);a.call(u)}}var s=js(e,0,!1,null,null,!1,!1,"",mc);return e._reactRootContainer=s,e[zt]=s.current,qr(e.nodeType===8?e.parentNode:e),En(function(){Dl(t,s,n,r)}),s}function Bl(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=kl(o);a.call(s)}}Dl(t,o,e,i)}else o=by(n,t,e,i,r);return kl(o)}op=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_r(t.pendingLanes);n!==0&&(ns(t,n|1),Ve(t,me()),!(ee&6)&&(lr=me()+500,sn()))}break;case 13:En(function(){var r=Dt(e,1);if(r!==null){var i=Re();gt(r,e,1,i)}}),Rs(e,1)}};rs=function(e){if(e.tag===13){var t=Dt(e,134217728);if(t!==null){var n=Re();gt(t,e,134217728,n)}Rs(e,134217728)}};ap=function(e){if(e.tag===13){var t=tn(e),n=Dt(e,t);if(n!==null){var r=Re();gt(n,e,t,r)}Rs(e,t)}};sp=function(){return ne};up=function(e,t){var n=ne;try{return ne=e,t()}finally{ne=n}};Zo=function(e,t,n){switch(t){case"input":if(Wo(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=Nl(r);if(!i)throw Error(P(90));Bf(r),Wo(r,i)}}}break;case"textarea":Uf(e,n);break;case"select":t=n.value,t!=null&&Gn(e,!!n.multiple,t,!1)}};Yf=Ns;Kf=En;var Ey={usingClientEntryPoint:!1,Events:[si,Mn,Nl,Qf,qf,Ns]},wr={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cy={bundleType:wr.bundleType,version:wr.version,rendererPackageName:wr.rendererPackageName,rendererConfig:wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jf(e),e===null?null:e.stateNode},findFiberByHostInstance:wr.findFiberByHostInstance||Sy,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 Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ni.isDisabled&&Ni.supportsFiber)try{_l=Ni.inject(Cy),Et=Ni}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ey;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ds(t))throw Error(P(200));return wy(e,t,null,n)};et.createRoot=function(e,t){if(!Ds(e))throw Error(P(299));var n=!1,r="",i=Pd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=js(e,1,!1,null,null,n,!1,r,i),e[zt]=t.current,qr(e.nodeType===8?e.parentNode:e),new zs(t)};et.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(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Jf(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return En(e)};et.hydrate=function(e,t,n){if(!Ml(t))throw Error(P(200));return Bl(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!Ds(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Pd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Nd(t,null,e,1,n??null,i,!1,l,o),e[zt]=t.current,qr(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 Ol(t)};et.render=function(e,t,n){if(!Ml(t))throw Error(P(200));return Bl(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(P(40));return e._reactRootContainer?(En(function(){Bl(null,null,e,!1,function(){e._reactRootContainer=null,e[zt]=null})}),!0):!1};et.unstable_batchedUpdates=Ns;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Bl(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function Ld(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ld)}catch(e){console.error(e)}}Ld(),Lf.exports=et;var _y=Lf.exports,yc=_y;Oo.createRoot=yc.createRoot,Oo.hydrateRoot=yc.hydrateRoot;function Ty(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Iy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ay=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ny={};function vc(e,t){return(Ny.jsx?Ay:Iy).test(e)}const Py=/[ \t\n\f\r]/g;function Ly(e){return typeof e=="object"?e.type==="text"?kc(e.value):!1:kc(e)}function kc(e){return e.replace(Py,"")===""}class ci{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ci.prototype.normal={};ci.prototype.property={};ci.prototype.space=void 0;function Fd(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ci(n,r,t)}function Pa(e){return e.toLowerCase()}class We{constructor(t,n){this.attribute=n,this.property=t}}We.prototype.attribute="";We.prototype.booleanish=!1;We.prototype.boolean=!1;We.prototype.commaOrSpaceSeparated=!1;We.prototype.commaSeparated=!1;We.prototype.defined=!1;We.prototype.mustUseProperty=!1;We.prototype.number=!1;We.prototype.overloadedBoolean=!1;We.prototype.property="";We.prototype.spaceSeparated=!1;We.prototype.space=void 0;let Fy=0;const G=In(),ye=In(),La=In(),F=In(),oe=In(),Zn=In(),qe=In();function In(){return 2**++Fy}const Fa=Object.freeze(Object.defineProperty({__proto__:null,boolean:G,booleanish:ye,commaOrSpaceSeparated:qe,commaSeparated:Zn,number:F,overloadedBoolean:La,spaceSeparated:oe},Symbol.toStringTag,{value:"Module"})),So=Object.keys(Fa);class Os extends We{constructor(t,n,r,i){let l=-1;if(super(t,n),xc(this,"space",i),typeof r=="number")for(;++l<So.length;){const o=So[l];xc(this,So[l],(r&Fa[o])===Fa[o])}}}Os.prototype.defined=!0;function xc(e,t,n){n&&(e[t]=n)}function cr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new Os(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Pa(r)]=r,n[Pa(l.attribute)]=r}return new ci(t,n,e.space)}const jd=cr({properties:{ariaActiveDescendant:null,ariaAtomic:ye,ariaAutoComplete:null,ariaBusy:ye,ariaChecked:ye,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:oe,ariaCurrent:null,ariaDescribedBy:oe,ariaDetails:null,ariaDisabled:ye,ariaDropEffect:oe,ariaErrorMessage:null,ariaExpanded:ye,ariaFlowTo:oe,ariaGrabbed:ye,ariaHasPopup:null,ariaHidden:ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:oe,ariaLevel:F,ariaLive:null,ariaModal:ye,ariaMultiLine:ye,ariaMultiSelectable:ye,ariaOrientation:null,ariaOwns:oe,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:ye,ariaReadOnly:ye,ariaRelevant:null,ariaRequired:ye,ariaRoleDescription:oe,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:ye,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Rd(e,t){return t in e?e[t]:t}function zd(e,t){return Rd(e,t.toLowerCase())}const jy=cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zn,acceptCharset:oe,accessKey:oe,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:oe,autoFocus:G,autoPlay:G,blocking:oe,capture:null,charSet:null,checked:G,cite:null,className:oe,cols:F,colSpan:null,content:null,contentEditable:ye,controls:G,controlsList:oe,coords:F|Zn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:La,draggable:ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:oe,height:F,hidden:La,high:F,href:null,hrefLang:null,htmlFor:oe,httpEquiv:oe,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:oe,itemRef:oe,itemScope:G,itemType:oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,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:G,optimum:F,pattern:null,ping:oe,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:oe,required:G,reversed:G,rows:F,rowSpan:F,sandbox:oe,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:ye,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:oe,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:ye,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:G,disableRemotePlayback:G,prefix:null,property:null,results:F,security:null,unselectable:null},space:"html",transform:zd}),Ry=cr({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:qe,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:oe,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:Zn,g2:Zn,glyphName:Zn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,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:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rd}),Dd=cr({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()}}),Od=cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zd}),Md=cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),zy={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"},Dy=/[A-Z]/g,wc=/-[a-z]/g,Oy=/^data[-\w.:]+$/i;function My(e,t){const n=Pa(t);let r=t,i=We;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Oy.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(wc,$y);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!wc.test(l)){let o=l.replace(Dy,By);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Os}return new i(r,t)}function By(e){return"-"+e.toLowerCase()}function $y(e){return e.charAt(1).toUpperCase()}const Uy=Fd([jd,jy,Dd,Od,Md],"html"),Ms=Fd([jd,Ry,Dd,Od,Md],"svg");function Hy(e){return e.join(" ").trim()}var Bs={},Sc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Vy=/\n/g,Wy=/^\s*/,Gy=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qy=/^:\s*/,qy=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Yy=/^[;\s]*/,Ky=/^\s+|\s+$/g,Xy=`
41
- `,bc="/",Ec="*",hn="",Zy="comment",Jy="declaration";function ev(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(h){var v=h.match(Vy);v&&(n+=v.length);var w=h.lastIndexOf(Xy);r=~w?h.length-w:r+h.length}function l(){var h={line:n,column:r};return function(v){return v.position=new o(h),u(),v}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(h){var v=new Error(t.source+":"+n+":"+r+": "+h);if(v.reason=h,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function s(h){var v=h.exec(e);if(v){var w=v[0];return i(w),e=e.slice(w.length),v}}function u(){s(Wy)}function f(h){var v;for(h=h||[];v=c();)v!==!1&&h.push(v);return h}function c(){var h=l();if(!(bc!=e.charAt(0)||Ec!=e.charAt(1))){for(var v=2;hn!=e.charAt(v)&&(Ec!=e.charAt(v)||bc!=e.charAt(v+1));)++v;if(v+=2,hn===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,h({type:Zy,comment:w})}}function p(){var h=l(),v=s(Gy);if(v){if(c(),!s(Qy))return a("property missing ':'");var w=s(qy),m=h({type:Jy,property:Cc(v[0].replace(Sc,hn)),value:w?Cc(w[0].replace(Sc,hn)):hn});return s(Yy),m}}function d(){var h=[];f(h);for(var v;v=p();)v!==!1&&(h.push(v),f(h));return h}return u(),d()}function Cc(e){return e?e.replace(Ky,hn):hn}var tv=ev,nv=Yi&&Yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.default=iv;const rv=nv(tv);function iv(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,rv.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 $l={};Object.defineProperty($l,"__esModule",{value:!0});$l.camelCase=void 0;var lv=/^--[a-zA-Z0-9_-]+$/,ov=/-([a-z])/g,av=/^[^-]+$/,sv=/^-(webkit|moz|ms|o|khtml)-/,uv=/^-(ms)-/,cv=function(e){return!e||av.test(e)||lv.test(e)},fv=function(e,t){return t.toUpperCase()},_c=function(e,t){return"".concat(t,"-")},pv=function(e,t){return t===void 0&&(t={}),cv(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(uv,_c):e=e.replace(sv,_c),e.replace(ov,fv))};$l.camelCase=pv;var dv=Yi&&Yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hv=dv(Bs),gv=$l;function ja(e,t){var n={};return!e||typeof e!="string"||(0,hv.default)(e,function(r,i){r&&i&&(n[(0,gv.camelCase)(r,t)]=i)}),n}ja.default=ja;var mv=ja;const yv=Ha(mv),Bd=$d("end"),$s=$d("start");function $d(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 vv(e){const t=$s(e),n=Bd(e);if(t&&n)return{start:t,end:n}}function Dr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tc(e.position):"start"in e||"end"in e?Tc(e):"line"in e||"column"in e?Ra(e):""}function Ra(e){return Ic(e&&e.line)+":"+Ic(e&&e.column)}function Tc(e){return Ra(e&&e.start)+"-"+Ra(e&&e.end)}function Ic(e){return e&&typeof e=="number"?e:1}class Pe 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=Dr(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}}Pe.prototype.file="";Pe.prototype.name="";Pe.prototype.reason="";Pe.prototype.message="";Pe.prototype.stack="";Pe.prototype.column=void 0;Pe.prototype.line=void 0;Pe.prototype.ancestors=void 0;Pe.prototype.cause=void 0;Pe.prototype.fatal=void 0;Pe.prototype.place=void 0;Pe.prototype.ruleId=void 0;Pe.prototype.source=void 0;const Us={}.hasOwnProperty,kv=new Map,xv=/[A-Z]/g,wv=new Set(["table","tbody","thead","tfoot","tr"]),Sv=new Set(["td","th"]),Ud="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bv(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=Pv(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=Nv(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"?Ms:Uy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Hd(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Hd(e,t,n){if(t.type==="element")return Ev(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Cv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tv(e,t,n);if(t.type==="mdxjsEsm")return _v(e,t);if(t.type==="root")return Iv(e,t,n);if(t.type==="text")return Av(e,t)}function Ev(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ms,e.schema=i),e.ancestors.push(t);const l=Wd(e,t.tagName,!1),o=Lv(e,t);let a=Vs(e,t);return wv.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Ly(s):!0})),Vd(e,o,l,t),Hs(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Cv(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)}ri(e,t.position)}function _v(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ri(e,t.position)}function Tv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ms,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Wd(e,t.name,!0),o=Fv(e,t),a=Vs(e,t);return Vd(e,o,l,t),Hs(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Iv(e,t,n){const r={};return Hs(r,Vs(e,t)),e.create(t,e.Fragment,r,n)}function Av(e,t){return t.value}function Vd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hs(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Nv(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 Pv(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=$s(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 Lv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Us.call(t.properties,i)){const l=jv(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Sv.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 Fv(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 ri(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 ri(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function Vs(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kv;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=Hd(e,l,o);a!==void 0&&n.push(a)}return n}function jv(e,t,n){const r=My(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ty(n):Hy(n)),r.property==="style"){let i=typeof n=="object"?n:Rv(e,String(n));return e.stylePropertyNameCase==="css"&&(i=zv(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?zy[r.property]||r.property:r.attribute,n]}}function Rv(e,t){try{return yv(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Pe("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=Ud+"#cannot-parse-style-attribute",i}}function Wd(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=vc(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=vc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Us.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ri(e)}function ri(e,t){const n=new Pe("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=Ud+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zv(e){const t={};let n;for(n in e)Us.call(e,n)&&(t[Dv(n)]=e[n]);return t}function Dv(e){let t=e.replace(xv,Ov);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ov(e){return"-"+e.toLowerCase()}const bo={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"]},Mv={};function Ws(e,t){const n=Mv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gd(e,r,i)}function Gd(e,t,n){if(Bv(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 Ac(e.children,t,n)}return Array.isArray(e)?Ac(e,t,n):""}function Ac(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gd(e[i],t,n);return r.join("")}function Bv(e){return!!(e&&typeof e=="object")}const Nc=document.createElement("i");function Gs(e){const t="&"+e+";";Nc.innerHTML=t;const n=Nc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ze(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 it(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}const Pc={}.hasOwnProperty;function Qd(e){const t={};let n=-1;for(;++n<e.length;)$v(t,e[n]);return t}function $v(e,t){let n;for(n in t){const i=(Pc.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Pc.call(i,o)||(i[o]=[]);const a=l[o];Uv(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Uv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ze(e,0,0,r)}function qd(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 mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const je=un(/[A-Za-z]/),Ae=un(/[\dA-Za-z]/),Hv=un(/[#-'*+\--9=?A-Z^-~]/);function xl(e){return e!==null&&(e<32||e===127)}const za=un(/\d/),Vv=un(/[\dA-Fa-f]/),Wv=un(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function ie(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const Ul=un(new RegExp("\\p{P}|\\p{S}","u")),Cn=un(/\s/);function un(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function fr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Ae(e.charCodeAt(n+1))&&Ae(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 X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return q(s)?(e.enter(n),a(s)):t(s)}function a(s){return q(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Gv={tokenize:Qv};function Qv(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"),X(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 V(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const qv={tokenize:Yv},Lc={tokenize:Kv};function Yv(e){const t=this,n=[];let r=0,i,l,o;return a;function a(y){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,s,u)(y)}return u(y)}function s(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const C=t.events.length;let _=C,S;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){S=t.events[_][1].end;break}m(r);let T=C;for(;T<t.events.length;)t.events[T][1].end={...S},T++;return Ze(t.events,_+1,0,t.events.slice(C)),t.events.length=T,u(y)}return a(y)}function u(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return h(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lc,f,c)(y)}function f(y){return i&&g(),m(r),p(y)}function c(y){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(y)}function p(y){return t.containerState={},e.attempt(Lc,d,h)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function h(y){if(y===null){i&&g(),m(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),v(y)}function v(y){if(y===null){w(e.exit("chunkFlow"),!0),m(0),e.consume(y);return}return V(y)?(e.consume(y),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(y),v)}function w(y,C){const _=t.sliceStream(y);if(C&&_.push(null),y.previous=l,l&&(l.next=y),l=y,i.defineSkip(y.start),i.write(_),t.parser.lazy[y.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 T=t.events.length;let I=T,R,E;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(R){E=t.events[I][1].end;break}R=!0}for(m(r),S=T;S<t.events.length;)t.events[S][1].end={...E},S++;Ze(t.events,I+1,0,t.events.slice(T)),t.events.length=S}}function m(y){let C=n.length;for(;C-- >y;){const _=n[C];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function g(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Kv(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function or(e){if(e===null||ie(e)||Cn(e))return 1;if(Ul(e))return 2}function Hl(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 Da={name:"attention",resolveAll:Xv,tokenize:Zv};function Xv(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},p={...e[n][1].start};Fc(c,-s),Fc(p,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:p},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=it(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=it(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=it(u,Hl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=it(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=it(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ze(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 Zv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=or(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=or(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!p)),u._close=!!(l===42?p:p&&(f||!c)),t(s)}}function Fc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jv={name:"autolink",tokenize:ek};function ek(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(d){return je(d)?(e.consume(d),o):d===64?n(d):u(d)}function o(d){return d===43||d===45||d===46||Ae(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,s):(d===43||d===45||d===46||Ae(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function s(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||xl(d)?n(d):(e.consume(d),s)}function u(d){return d===64?(e.consume(d),f):Hv(d)?(e.consume(d),u):n(d)}function f(d){return Ae(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Ae(d))&&r++<63){const h=d===45?p:c;return e.consume(d),h}return n(d)}}const fi={partial:!0,tokenize:tk};function tk(e,t,n){return r;function r(l){return q(l)?X(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||V(l)?t(l):n(l)}}const Yd={continuation:{tokenize:rk},exit:ik,name:"blockQuote",tokenize:nk};function nk(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 q(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function rk(e,t,n){const r=this;return i;function i(o){return q(o)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Yd,t,n)(o)}}function ik(e){e.exit("blockQuote")}const Kd={name:"characterEscape",tokenize:lk};function lk(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 Wv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Xd={name:"characterReference",tokenize:ok};function ok(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=Ae,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=Vv,f):(e.enter("characterReferenceValue"),l=7,o=za,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===Ae&&!Gs(r.sliceSerialize(p))?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 jc={partial:!0,tokenize:sk},Rc={concrete:!0,name:"codeFenced",tokenize:ak};function ak(e,t,n){const r=this,i={partial:!0,tokenize:_};let l=0,o=0,a;return s;function s(S){return u(S)}function u(S){const T=r.events[r.events.length-1];return l=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[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"),q(S)?X(e,c,"whitespace")(S):c(S))}function c(S){return S===null||V(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(jc,v,C)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||V(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,d,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),p)}function d(S){return S===null||V(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||V(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?n(S):(e.consume(S),h)}function v(S){return e.attempt(i,C,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),m}function m(S){return l>0&&q(S)?X(e,g,"linePrefix",l+1)(S):g(S)}function g(S){return S===null||V(S)?e.check(jc,v,C)(S):(e.enter("codeFlowValue"),y(S))}function y(S){return S===null||V(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),y)}function C(S){return e.exit("codeFenced"),t(S)}function _(S,T,I){let R=0;return E;function E(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),L}function L(U){return S.enter("codeFencedFence"),q(U)?X(S,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):D(U)}function D(U){return U===a?(S.enter("codeFencedFenceSequence"),M(U)):I(U)}function M(U){return U===a?(R++,S.consume(U),M):R>=o?(S.exit("codeFencedFenceSequence"),q(U)?X(S,$,"whitespace")(U):$(U)):I(U)}function $(U){return U===null||V(U)?(S.exit("codeFencedFence"),T(U)):I(U)}}}function sk(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 Eo={name:"codeIndented",tokenize:ck},uk={partial:!0,tokenize:fk};function ck(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),X(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):V(u)?e.attempt(uk,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||V(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function fk(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):X(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):V(o)?i(o):n(o)}}const pk={name:"codeText",previous:hk,resolve:dk,tokenize:gk};function dk(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 hk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gk(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)):V(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||V(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 mk{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&&Sr(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),Sr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Sr(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);Sr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Sr(this.left,n.reverse())}}}function Sr(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 Zd(e){const t={};let n=-1,r,i,l,o,a,s,u;const f=new mk(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,yk(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 Ze(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function yk(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,p=-1,d=n,h=0,v=0;const w=[v];for(;d;){for(;e.get(++i)[1]!==d;);l.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(v=p+1,w.push(v),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):w.pop(),p=w.length;p--;){const m=a.slice(w[p],w[p+1]),g=l.pop();s.push([g,g+m.length-1]),e.splice(g,2,m)}for(s.reverse(),p=-1;++p<s.length;)u[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return u}const vk={resolve:xk,tokenize:wk},kk={partial:!0,tokenize:Sk};function xk(e){return Zd(e),e}function wk(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):V(a)?e.check(kk,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 Sk(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),X(e,l,"linePrefix")}function l(o){if(o===null||V(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 Jd(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),p):m===null||m===32||m===41||xl(m)?n(m):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(m))}function p(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(a),p(m)):m===null||m===60||V(m)?n(m):(e.consume(m),m===92?h:d)}function h(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function v(m){return!f&&(m===null||m===41||ie(m))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(m)):f<u&&m===40?(e.consume(m),f++,v):m===41?(e.consume(m),f--,v):m===null||m===32||m===40||xl(m)?n(m):(e.consume(m),m===92?w:v)}function w(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function eh(e,t,n,r,i,l){const o=this;let a=0,s;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(l),f}function f(d){return a>999||d===null||d===91||d===93&&!s||d===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||V(d)||a++>999?(e.exit("chunkString"),f(d)):(e.consume(d),s||(s=!q(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function th(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?n(p):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),X(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||V(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Or(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const bk={name:"definition",tokenize:Ck},Ek={partial:!0,tokenize:_k};function Ck(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return eh.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):n(d)}function s(d){return ie(d)?Or(e,u)(d):u(d)}function u(d){return Jd(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(Ek,c,c)(d)}function c(d){return q(d)?X(e,p,"whitespace")(d):p(d)}function p(d){return d===null||V(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function _k(e,t,n){return r;function r(a){return ie(a)?Or(e,i)(a):n(a)}function i(a){return th(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return q(a)?X(e,o,"whitespace")(a):o(a)}function o(a){return a===null||V(a)?t(a):n(a)}}const Tk={name:"hardBreakEscape",tokenize:Ik};function Ik(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return V(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Ak={name:"headingAtx",resolve:Nk,tokenize:Pk};function Nk(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"},Ze(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function Pk(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||ie(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||V(f)?(e.exit("atxHeading"),t(f)):q(f)?X(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||ie(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Lk=["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"],zc=["pre","script","style","textarea"],Fk={concrete:!0,name:"htmlFlow",resolveTo:zk,tokenize:Dk},jk={partial:!0,tokenize:Mk},Rk={partial:!0,tokenize:Ok};function zk(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 Dk(e,t,n){const r=this;let i,l,o,a,s;return u;function u(b){return f(b)}function f(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),c}function c(b){return b===33?(e.consume(b),p):b===47?(e.consume(b),l=!0,v):b===63?(e.consume(b),i=3,r.interrupt?t:x):je(b)?(e.consume(b),o=String.fromCharCode(b),w):n(b)}function p(b){return b===45?(e.consume(b),i=2,d):b===91?(e.consume(b),i=5,a=0,h):je(b)?(e.consume(b),i=4,r.interrupt?t:x):n(b)}function d(b){return b===45?(e.consume(b),r.interrupt?t:x):n(b)}function h(b){const fe="CDATA[";return b===fe.charCodeAt(a++)?(e.consume(b),a===fe.length?r.interrupt?t:D:h):n(b)}function v(b){return je(b)?(e.consume(b),o=String.fromCharCode(b),w):n(b)}function w(b){if(b===null||b===47||b===62||ie(b)){const fe=b===47,Oe=o.toLowerCase();return!fe&&!l&&zc.includes(Oe)?(i=1,r.interrupt?t(b):D(b)):Lk.includes(o.toLowerCase())?(i=6,fe?(e.consume(b),m):r.interrupt?t(b):D(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):l?g(b):y(b))}return b===45||Ae(b)?(e.consume(b),o+=String.fromCharCode(b),w):n(b)}function m(b){return b===62?(e.consume(b),r.interrupt?t:D):n(b)}function g(b){return q(b)?(e.consume(b),g):E(b)}function y(b){return b===47?(e.consume(b),E):b===58||b===95||je(b)?(e.consume(b),C):q(b)?(e.consume(b),y):E(b)}function C(b){return b===45||b===46||b===58||b===95||Ae(b)?(e.consume(b),C):_(b)}function _(b){return b===61?(e.consume(b),S):q(b)?(e.consume(b),_):y(b)}function S(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,T):q(b)?(e.consume(b),S):I(b)}function T(b){return b===s?(e.consume(b),s=null,R):b===null||V(b)?n(b):(e.consume(b),T)}function I(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ie(b)?_(b):(e.consume(b),I)}function R(b){return b===47||b===62||q(b)?y(b):n(b)}function E(b){return b===62?(e.consume(b),L):n(b)}function L(b){return b===null||V(b)?D(b):q(b)?(e.consume(b),L):n(b)}function D(b){return b===45&&i===2?(e.consume(b),Z):b===60&&i===1?(e.consume(b),le):b===62&&i===4?(e.consume(b),Q):b===63&&i===3?(e.consume(b),x):b===93&&i===5?(e.consume(b),H):V(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jk,J,M)(b)):b===null||V(b)?(e.exit("htmlFlowData"),M(b)):(e.consume(b),D)}function M(b){return e.check(Rk,$,J)(b)}function $(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),U}function U(b){return b===null||V(b)?M(b):(e.enter("htmlFlowData"),D(b))}function Z(b){return b===45?(e.consume(b),x):D(b)}function le(b){return b===47?(e.consume(b),o="",j):D(b)}function j(b){if(b===62){const fe=o.toLowerCase();return zc.includes(fe)?(e.consume(b),Q):D(b)}return je(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),j):D(b)}function H(b){return b===93?(e.consume(b),x):D(b)}function x(b){return b===62?(e.consume(b),Q):b===45&&i===2?(e.consume(b),x):D(b)}function Q(b){return b===null||V(b)?(e.exit("htmlFlowData"),J(b)):(e.consume(b),Q)}function J(b){return e.exit("htmlFlow"),t(b)}}function Ok(e,t,n){const r=this;return i;function i(o){return V(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 Mk(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(fi,t,n)}}const Bk={name:"htmlText",tokenize:$k};function $k(e,t,n){const r=this;let i,l,o;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),s}function s(x){return x===33?(e.consume(x),u):x===47?(e.consume(x),_):x===63?(e.consume(x),y):je(x)?(e.consume(x),I):n(x)}function u(x){return x===45?(e.consume(x),f):x===91?(e.consume(x),l=0,h):je(x)?(e.consume(x),g):n(x)}function f(x){return x===45?(e.consume(x),d):n(x)}function c(x){return x===null?n(x):x===45?(e.consume(x),p):V(x)?(o=c,le(x)):(e.consume(x),c)}function p(x){return x===45?(e.consume(x),d):c(x)}function d(x){return x===62?Z(x):x===45?p(x):c(x)}function h(x){const Q="CDATA[";return x===Q.charCodeAt(l++)?(e.consume(x),l===Q.length?v:h):n(x)}function v(x){return x===null?n(x):x===93?(e.consume(x),w):V(x)?(o=v,le(x)):(e.consume(x),v)}function w(x){return x===93?(e.consume(x),m):v(x)}function m(x){return x===62?Z(x):x===93?(e.consume(x),m):v(x)}function g(x){return x===null||x===62?Z(x):V(x)?(o=g,le(x)):(e.consume(x),g)}function y(x){return x===null?n(x):x===63?(e.consume(x),C):V(x)?(o=y,le(x)):(e.consume(x),y)}function C(x){return x===62?Z(x):y(x)}function _(x){return je(x)?(e.consume(x),S):n(x)}function S(x){return x===45||Ae(x)?(e.consume(x),S):T(x)}function T(x){return V(x)?(o=T,le(x)):q(x)?(e.consume(x),T):Z(x)}function I(x){return x===45||Ae(x)?(e.consume(x),I):x===47||x===62||ie(x)?R(x):n(x)}function R(x){return x===47?(e.consume(x),Z):x===58||x===95||je(x)?(e.consume(x),E):V(x)?(o=R,le(x)):q(x)?(e.consume(x),R):Z(x)}function E(x){return x===45||x===46||x===58||x===95||Ae(x)?(e.consume(x),E):L(x)}function L(x){return x===61?(e.consume(x),D):V(x)?(o=L,le(x)):q(x)?(e.consume(x),L):R(x)}function D(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,M):V(x)?(o=D,le(x)):q(x)?(e.consume(x),D):(e.consume(x),$)}function M(x){return x===i?(e.consume(x),i=void 0,U):x===null?n(x):V(x)?(o=M,le(x)):(e.consume(x),M)}function $(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||ie(x)?R(x):(e.consume(x),$)}function U(x){return x===47||x===62||ie(x)?R(x):n(x)}function Z(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function le(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),j}function j(x){return q(x)?X(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):H(x)}function H(x){return e.enter("htmlTextData"),o(x)}}const Qs={name:"labelEnd",resolveAll:Wk,resolveTo:Gk,tokenize:Qk},Uk={tokenize:qk},Hk={tokenize:Yk},Vk={tokenize:Kk};function Wk(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&&Ze(e,0,e.length,n),e}function Gk(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=it(a,e.slice(l+1,l+r+3)),a=it(a,[["enter",f,t]]),a=it(a,Hl(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=it(a,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),a=it(a,e.slice(o+1)),a=it(a,[["exit",s,t]]),Ze(e,l,e.length,a),e}function Qk(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(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(mt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(Uk,f,o?f:c)(p):p===91?e.attempt(Hk,f,o?u:c)(p):o?f(p):c(p)}function u(p){return e.attempt(Vk,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function qk(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 ie(c)?Or(e,l)(c):l(c)}function l(c){return c===41?f(c):Jd(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ie(c)?Or(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?th(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ie(c)?Or(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 Yk(e,t,n){const r=this;return i;function i(a){return eh.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Kk(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 Xk={name:"labelStartImage",resolveAll:Qs.resolveAll,tokenize:Zk};function Zk(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 Jk={name:"labelStartLink",resolveAll:Qs.resolveAll,tokenize:e1};function e1(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 Co={name:"lineEnding",tokenize:t1};function t1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,t,"linePrefix")}}const Qi={name:"thematicBreak",tokenize:n1};function n1(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||V(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),q(u)?X(e,a,"whitespace")(u):a(u))}}const Me={continuation:{tokenize:o1},exit:s1,name:"list",tokenize:l1},r1={partial:!0,tokenize:u1},i1={partial:!0,tokenize:a1};function l1(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(d){const h=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:za(d)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Qi,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)}function s(d){return za(d)&&++o<10?(e.consume(d),s):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(fi,r.interrupt?n:f,e.attempt(r1,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return q(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function o1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fi,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!q(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(i1,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(Me,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function a1(e,t,n){const r=this;return X(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 s1(e){e.exit(this.containerState.type)}function u1(e,t,n){const r=this;return X(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!q(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Dc={name:"setextUnderline",resolveTo:c1,tokenize:f1};function c1(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 f1(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"),q(u)?X(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||V(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const p1={tokenize:d1};function d1(e){const t=this,n=e.attempt(fi,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vk,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 h1={resolveAll:rh()},g1=nh("string"),m1=nh("text");function nh(e){return{resolveAll:rh(e==="text"?y1: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 p=-1;if(c)for(;++p<c.length;){const d=c[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function rh(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 y1(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 v1={42:Me,43:Me,45:Me,48:Me,49:Me,50:Me,51:Me,52:Me,53:Me,54:Me,55:Me,56:Me,57:Me,62:Yd},k1={91:bk},x1={[-2]:Eo,[-1]:Eo,32:Eo},w1={35:Ak,42:Qi,45:[Dc,Qi],60:Fk,61:Dc,95:Qi,96:Rc,126:Rc},S1={38:Xd,92:Kd},b1={[-5]:Co,[-4]:Co,[-3]:Co,33:Xk,38:Xd,42:Da,60:[Jv,Bk],91:Jk,92:[Tk,Kd],93:Qs,95:Da,96:pk},E1={null:[Da,h1]},C1={null:[42,95]},_1={null:[]},T1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:C1,contentInitial:k1,disable:_1,document:v1,flow:w1,flowInitial:x1,insideSpan:E1,string:S1,text:b1},Symbol.toStringTag,{value:"Module"}));function I1(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:T(_),check:T(S),consume:g,enter:y,exit:C,interrupt:T(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(L){return o=it(o,L),w(),o[o.length-1]!==null?[]:(I(t,0),u.events=Hl(l,u.events,u),u.events)}function p(L,D){return N1(d(L),D)}function d(L){return A1(o,L)}function h(){const{_bufferIndex:L,_index:D,line:M,column:$,offset:U}=r;return{_bufferIndex:L,_index:D,line:M,column:$,offset:U}}function v(L){i[L.line]=L.column,E()}function w(){let L;for(;r._index<o.length;){const D=o[r._index];if(typeof D=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<D.length;)m(D.charCodeAt(r._bufferIndex));else m(D)}}function m(L){f=f(L)}function g(L){V(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,E()):L!==-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=L}function y(L,D){const M=D||{};return M.type=L,M.start=h(),u.events.push(["enter",M,u]),a.push(M),M}function C(L){const D=a.pop();return D.end=h(),u.events.push(["exit",D,u]),D}function _(L,D){I(L,D.from)}function S(L,D){D.restore()}function T(L,D){return M;function M($,U,Z){let le,j,H,x;return Array.isArray($)?J($):"tokenize"in $?J([$]):Q($);function Q(te){return Le;function Le(vt){const kt=vt!==null&&te[vt],An=vt!==null&&te.null,di=[...Array.isArray(kt)?kt:kt?[kt]:[],...Array.isArray(An)?An:An?[An]:[]];return J(di)(vt)}}function J(te){return le=te,j=0,te.length===0?Z:b(te[j])}function b(te){return Le;function Le(vt){return x=R(),H=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?Oe():te.tokenize.call(D?Object.assign(Object.create(u),D):u,s,fe,Oe)(vt)}}function fe(te){return L(H,x),U}function Oe(te){return x.restore(),++j<le.length?b(le[j]):Z}}}function I(L,D){L.resolveAll&&!l.includes(L)&&l.push(L),L.resolve&&Ze(u.events,D,u.events.length-D,L.resolve(u.events.slice(D),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function R(){const L=h(),D=u.previous,M=u.currentConstruct,$=u.events.length,U=Array.from(a);return{from:$,restore:Z};function Z(){r=L,u.previous=D,u.currentConstruct=M,u.events.length=$,a=U,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function A1(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 N1(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 P1(e){const r={constructs:Qd([T1,...(e||{}).extensions||[]]),content:i(Gv),defined:[],document:i(qv),flow:i(p1),lazy:{},string:i(g1),text:i(m1)};return r;function i(l){return o;function o(a){return I1(r,l,a)}}}function L1(e){for(;!Zd(e););return e}const Oc=/[\0\t\n\r]/g;function F1(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,p,d;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(Oc.lastIndex=c,u=Oc.exec(l),p=u&&u.index!==void 0?u.index:l.length,d=l.charCodeAt(p),!u){t=l.slice(c);break}if(d===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-c),d){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=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const j1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function R1(e){return e.replace(j1,z1)}function z1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return qd(n.slice(l?2:1),l?16:10)}return Gs(n)||e}const ih={}.hasOwnProperty;function D1(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),O1(n)(L1(P1(n).document().write(F1()(e,t,!0))))}function O1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(au),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(iu),blockQuote:l(An),characterEscape:R,characterReference:R,codeFenced:l(di),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(di,o),codeText:l(Wh,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(Gh),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Qh),hardBreakEscape:l(lu),hardBreakTrailing:l(lu),htmlFlow:l(ou,o),htmlFlowData:R,htmlText:l(ou,o),htmlTextData:R,image:l(qh),label:o,link:l(au),listItem:l(Yh),listItemValue:p,listOrdered:l(su,c),listUnordered:l(su),paragraph:l(Kh),reference:b,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(iu),strong:l(Xh),thematicBreak:l(Jh)},exit:{atxHeading:s(),atxHeadingSequence:_,autolink:s(),autolinkEmail:kt,autolinkProtocol:vt,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:te,characterReference:Le,codeFenced:s(w),codeFencedFence:v,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:E,codeIndented:s(m),codeText:s(U),codeTextData:E,data:E,definition:s(),definitionDestinationString:C,definitionLabelString:g,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(M),htmlFlowData:E,htmlText:s($),htmlTextData:E,image:s(le),label:H,labelText:j,lineEnding:L,link:s(Z),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:fe,resourceDestinationString:x,resourceTitleString:Q,resource:J,setextHeading:s(I),setextHeadingLineSequence:T,setextHeadingText:S,strong:s(),thematicBreak:s()}};lh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let z={type:"root",children:[]};const W={stack:[z],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:f,data:n},K=[];let re=-1;for(;++re<A.length;)if(A[re][1].type==="listOrdered"||A[re][1].type==="listUnordered")if(A[re][0]==="enter")K.push(re);else{const ut=K.pop();re=i(A,ut,re)}for(re=-1;++re<A.length;){const ut=t[A[re][0]];ih.call(ut,A[re][1].type)&&ut[A[re][1].type].call(Object.assign({sliceSerialize:A[re][2].sliceSerialize},W),A[re][1])}if(W.tokenStack.length>0){const ut=W.tokenStack[W.tokenStack.length-1];(ut[1]||Mc).call(W,void 0,ut[0])}for(z.position={start:Ut(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:Ut(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re<t.transforms.length;)z=t.transforms[re](z)||z;return z}function i(A,z,W){let K=z-1,re=-1,ut=!1,cn,It,pr,dr;for(;++K<=W;){const Ge=A[K];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ge[0]==="enter"?re++:re--,dr=void 0;break}case"lineEndingBlank":{Ge[0]==="enter"&&(cn&&!dr&&!re&&!pr&&(pr=K),dr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dr=void 0}if(!re&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||re===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(cn){let Nn=K;for(It=void 0;Nn--;){const At=A[Nn];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;It&&(A[It][1].type="lineEndingBlank",ut=!0),At[1].type="lineEnding",It=Nn}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}pr&&(!It||pr<It)&&(cn._spread=!0),cn.end=Object.assign({},It?A[It][1].start:Ge[1].end),A.splice(It||K,0,["exit",cn,Ge[2]]),K++,W++}if(Ge[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};cn=Nn,A.splice(K,0,["enter",Nn,Ge[2]]),K++,W++,pr=void 0,dr=!0}}}return A[z][1]._spread=ut,W}function l(A,z){return W;function W(K){a.call(this,A(K),K),z&&z.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(A,z,W){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([z,W||void 0]),A.position={start:Ut(z.start),end:void 0}}function s(A){return z;function z(W){A&&A.call(this,W),u.call(this,W)}}function u(A,z){const W=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==A.type&&(z?z.call(this,A,K[0]):(K[1]||Mc).call(this,A,K[0]));else throw new Error("Cannot close `"+A.type+"` ("+Dr({start:A.start,end:A.end})+"): it’s not open");W.position.end=Ut(A.end)}function f(){return Ws(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(A){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function d(){const A=this.resume(),z=this.stack[this.stack.length-1];z.lang=A}function h(){const A=this.resume(),z=this.stack[this.stack.length-1];z.meta=A}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const A=this.resume(),z=this.stack[this.stack.length-1];z.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const A=this.resume(),z=this.stack[this.stack.length-1];z.value=A.replace(/(\r?\n|\r)$/g,"")}function g(A){const z=this.resume(),W=this.stack[this.stack.length-1];W.label=z,W.identifier=mt(this.sliceSerialize(A)).toLowerCase()}function y(){const A=this.resume(),z=this.stack[this.stack.length-1];z.title=A}function C(){const A=this.resume(),z=this.stack[this.stack.length-1];z.url=A}function _(A){const z=this.stack[this.stack.length-1];if(!z.depth){const W=this.sliceSerialize(A).length;z.depth=W}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function T(A){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function R(A){const W=this.stack[this.stack.length-1].children;let K=W[W.length-1];(!K||K.type!=="text")&&(K=Zh(),K.position={start:Ut(A.start),end:void 0},W.push(K)),this.stack.push(K)}function E(A){const z=this.stack.pop();z.value+=this.sliceSerialize(A),z.position.end=Ut(A.end)}function L(A){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=z.children[z.children.length-1];W.position.end=Ut(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(R.call(this,A),E.call(this,A))}function D(){this.data.atHardBreak=!0}function M(){const A=this.resume(),z=this.stack[this.stack.length-1];z.value=A}function $(){const A=this.resume(),z=this.stack[this.stack.length-1];z.value=A}function U(){const A=this.resume(),z=this.stack[this.stack.length-1];z.value=A}function Z(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=z,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function le(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=z,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function j(A){const z=this.sliceSerialize(A),W=this.stack[this.stack.length-2];W.label=R1(z),W.identifier=mt(z).toLowerCase()}function H(){const A=this.stack[this.stack.length-1],z=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const K=A.children;W.children=K}else W.alt=z}function x(){const A=this.resume(),z=this.stack[this.stack.length-1];z.url=A}function Q(){const A=this.resume(),z=this.stack[this.stack.length-1];z.title=A}function J(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function fe(A){const z=this.resume(),W=this.stack[this.stack.length-1];W.label=z,W.identifier=mt(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function Oe(A){this.data.characterReferenceType=A.type}function te(A){const z=this.sliceSerialize(A),W=this.data.characterReferenceType;let K;W?(K=qd(z,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=Gs(z);const re=this.stack[this.stack.length-1];re.value+=K}function Le(A){const z=this.stack.pop();z.position.end=Ut(A.end)}function vt(A){E.call(this,A);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(A)}function kt(A){E.call(this,A);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(A)}function An(){return{type:"blockquote",children:[]}}function di(){return{type:"code",lang:null,meta:null,value:""}}function Wh(){return{type:"inlineCode",value:""}}function Gh(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qh(){return{type:"emphasis",children:[]}}function iu(){return{type:"heading",depth:0,children:[]}}function lu(){return{type:"break"}}function ou(){return{type:"html",value:""}}function qh(){return{type:"image",title:null,url:"",alt:null}}function au(){return{type:"link",title:null,url:"",children:[]}}function su(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function Yh(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function Kh(){return{type:"paragraph",children:[]}}function Xh(){return{type:"strong",children:[]}}function Zh(){return{type:"text",value:""}}function Jh(){return{type:"thematicBreak"}}}function Ut(e){return{line:e.line,column:e.column,offset:e.offset}}function lh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?lh(e,r):M1(e,r)}}function M1(e,t){let n;for(n in t)if(ih.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 Mc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Dr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Dr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Dr({start:t.start,end:t.end})+") is still open")}function B1(e){const t=this;t.parser=n;function n(r){return D1(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $1(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 U1(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
44
- `}]}function H1(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 V1(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function W1(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function G1(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=fr(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 Q1(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 q1(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oh(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 Y1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oh(e,t);const i={src:fr(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 K1(e,t){const n={src:fr(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 X1(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 Z1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oh(e,t);const i={href:fr(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 J1(e,t){const n={href:fr(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 ex(e,t,n){const r=e.all(t),i=n?tx(n):ah(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 tx(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=ah(n[r])}return t}function ah(e){const t=e.spread;return t??e.children.length>1}function nx(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 rx(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ix(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function lx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ox(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=$s(t.children[1]),s=Bd(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 ax(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],p={},d=o?o[s]:void 0;d&&(p.align=d);let h={type:"element",tagName:l,properties:p,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function sx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Bc=9,$c=32;function ux(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Uc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Uc(t.slice(i),i>0,!1)),l.join("")}function Uc(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Bc||l===$c;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Bc||l===$c;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function cx(e,t){const n={type:"text",value:ux(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function fx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const px={blockquote:$1,break:U1,code:H1,delete:V1,emphasis:W1,footnoteReference:G1,heading:Q1,html:q1,imageReference:Y1,image:K1,inlineCode:X1,linkReference:Z1,link:J1,listItem:ex,list:nx,paragraph:rx,root:ix,strong:lx,table:ox,tableCell:sx,tableRow:ax,text:cx,thematicBreak:fx,toml:Pi,yaml:Pi,definition:Pi,footnoteDefinition:Pi};function Pi(){}const sh=-1,Vl=0,Mr=1,wl=2,qs=3,Ys=4,Ks=5,Xs=6,uh=7,ch=8,dx=typeof self=="object"?self:globalThis,Hc=(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 dx[e](t)},hx=(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 Vl:case sh:return n(o,i);case Mr:{const a=n([],i);for(const s of o)a.push(r(s));return a}case wl:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case qs:return n(new Date(o),i);case Ys:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case Ks:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case Xs:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case uh:{const{name:a,message:s}=o;return n(Hc(a,s),i)}case ch: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(Hc(l,o),i)};return r},Vc=e=>hx(new Map,e)(0),Ln="",{toString:gx}={},{keys:mx}=Object,br=e=>{const t=typeof e;if(t!=="object"||!e)return[Vl,t];const n=gx.call(e).slice(8,-1);switch(n){case"Array":return[Mr,Ln];case"Object":return[wl,Ln];case"Date":return[qs,Ln];case"RegExp":return[Ys,Ln];case"Map":return[Ks,Ln];case"Set":return[Xs,Ln];case"DataView":return[Mr,n]}return n.includes("Array")?[Mr,n]:n.includes("Error")?[uh,n]:[wl,n]},Li=([e,t])=>e===Vl&&(t==="function"||t==="symbol"),yx=(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 Vl:{let f=o;switch(s){case"bigint":a=ch,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([sh],o)}return i([a,f],o)}case Mr:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const f=[],c=i([a,f],o);for(const p of o)f.push(l(p));return c}case wl:{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 p of mx(o))(e||!Li(br(o[p])))&&f.push([l(p),l(o[p])]);return c}case qs:return i([a,o.toISOString()],o);case Ys:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case Ks:{const f=[],c=i([a,f],o);for(const[p,d]of o)(e||!(Li(br(p))||Li(br(d))))&&f.push([l(p),l(d)]);return c}case Xs:{const f=[],c=i([a,f],o);for(const p of o)(e||!Li(br(p)))&&f.push(l(p));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},Wc=(e,{json:t,lossy:n}={})=>{const r=[];return yx(!(t||n),!!t,new Map,r)(e),r},Sl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Vc(Wc(e,t)):structuredClone(e):(e,t)=>Vc(Wc(e,t));function vx(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 kx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||vx,r=e.options.footnoteBackLabel||kx,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(),p=fr(c.toLowerCase());let d=0;const h=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++d<=v;){h.length>0&&h.push({type:"text",value:" "});let g=typeof n=="string"?n:n(s,d);typeof g=="string"&&(g={type:"text",value:g}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,d),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const g=w.children[w.children.length-1];g&&g.type==="text"?g.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...h)}else f.push(...h);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Sl(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 Wl=function(e){if(e==null)return Ex;if(typeof e=="function")return Gl(e);if(typeof e=="object")return Array.isArray(e)?wx(e):Sx(e);if(typeof e=="string")return bx(e);throw new Error("Expected function, string, or object as test")};function wx(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wl(e[n]);return Gl(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Sx(e){const t=e;return Gl(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function bx(e){return Gl(t);function t(n){return n&&n.type===e}}function Gl(e){return t;function t(n,r,i){return!!(Cx(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ex(){return!0}function Cx(e){return e!==null&&typeof e=="object"&&"type"in e}const fh=[],_x=!0,Oa=!1,Tx="skip";function ph(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Wl(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 d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=fh,h,v,w;if((!t||l(s,u,f[f.length-1]||void 0))&&(d=Ix(n(s,f)),d[0]===Oa))return d;if("children"in s&&s.children){const m=s;if(m.children&&d[0]!==Tx)for(v=(r?m.children.length:-1)+o,w=f.concat(m);v>-1&&v<m.children.length;){const g=m.children[v];if(h=a(g,v,w)(),h[0]===Oa)return h;v=typeof h[1]=="number"?h[1]:v+o}}return d}}}function Ix(e){return Array.isArray(e)?e:typeof e=="number"?[_x,e]:e==null?fh:[e]}function Zs(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),ph(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 Ma={}.hasOwnProperty,Ax={};function Nx(e,t){const n=t||Ax,r=new Map,i=new Map,l=new Map,o={...px,...n.handlers},a={all:u,applyData:Lx,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:Px,wrap:jx};return Zs(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function s(f,c){const p=f.type,d=a.handlers[p];if(Ma.call(a.handlers,p)&&d)return d(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:v,...w}=f,m=Sl(w);return m.children=a.all(f),m}return Sl(f)}return(a.options.unknownHandler||Fx)(a,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let d=-1;for(;++d<p.length;){const h=a.one(p[d],f);if(h){if(d&&p[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Gc(h.value)),!Array.isArray(h)&&h.type==="element")){const v=h.children[0];v&&v.type==="text"&&(v.value=Gc(v.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function Px(e,t){e.position&&(t.position=vv(e))}function Lx(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,Sl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Fx(e,t){const n=t.data||{},r="value"in t&&!(Ma.call(n,"hProperties")||Ma.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 jx(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 Gc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Qc(e,t){const n=Nx(e,t),r=n.one(e,void 0),i=xx(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 Rx(e,t){return e&&"run"in e?async function(n,r){const i=Qc(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Qc(n,{file:r,...e||t})}}function qc(e){if(e)throw e}var qi=Object.prototype.hasOwnProperty,dh=Object.prototype.toString,Yc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,Xc=function(t){return typeof Array.isArray=="function"?Array.isArray(t):dh.call(t)==="[object Array]"},Zc=function(t){if(!t||dh.call(t)!=="[object Object]")return!1;var n=qi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&qi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||qi.call(t,i)},Jc=function(t,n){Yc&&n.name==="__proto__"?Yc(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ef=function(t,n){if(n==="__proto__")if(qi.call(t,n)){if(Kc)return Kc(t,n).value}else return;return t[n]},zx=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=ef(a,n),i=ef(t,n),a!==i&&(f&&i&&(Zc(i)||(l=Xc(i)))?(l?(l=!1,o=r&&Xc(r)?r:[]):o=r&&Zc(r)?r:{},Jc(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Jc(a,{name:n,newValue:i}));return a};const _o=Ha(zx);function Ba(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 Dx(){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?Ox(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 Ox(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 St={basename:Mx,dirname:Bx,extname:$x,join:Ux,sep:"/"};function Mx(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pi(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 Bx(e){if(pi(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 $x(e){pi(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 Ux(...e){let t=-1,n;for(;++t<e.length;)pi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Hx(n)}function Hx(e){pi(e);const t=e.codePointAt(0)===47;let n=Vx(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Vx(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 pi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Wx={cwd:Gx};function Gx(){return"/"}function $a(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Qx(e){if(typeof e=="string")e=new URL(e);else if(!$a(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 qx(e)}function qx(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 To=["history","path","basename","stem","extname","dirname"];class hh{constructor(t){let n;t?$a(t)?n={path:t}:typeof t=="string"||Yx(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Wx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<To.length;){const l=To[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)To.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?St.basename(this.path):void 0}set basename(t){Ao(t,"basename"),Io(t,"basename"),this.path=St.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?St.dirname(this.path):void 0}set dirname(t){tf(this.basename,"dirname"),this.path=St.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?St.extname(this.path):void 0}set extname(t){if(Io(t,"extname"),tf(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=St.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){$a(t)&&(t=Qx(t)),Ao(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?St.basename(this.path,this.extname):void 0}set stem(t){Ao(t,"stem"),Io(t,"stem"),this.path=St.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 Pe(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 Io(e,t){if(e&&e.includes(St.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+St.sep+"`")}function Ao(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Yx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kx=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Xx={}.hasOwnProperty;class Js extends Kx{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=Dx()}copy(){const t=new Js;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(_o(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Lo("data",this.frozen),this.namespace[t]=n,this):Xx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Lo("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=Fi(t),r=this.parser||this.Parser;return No("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),No("process",this.parser||this.Parser),Po("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=Fi(t),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const d=c,h=r.stringify(d,p);ew(h)?p.value=h:p.result=h,u(f,p)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),No("processSync",this.parser||this.Parser),Po("processSync",this.compiler||this.Compiler),this.process(t,i),rf("processSync","process",n),r;function i(l,o){n=!0,qc(l),r=o}}run(t,n,r){nf(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=Fi(n);i.run(t,s,u);function u(f,c,p){const d=c||t;f?a(f):o?o(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),rf("runSync","run",r),i;function l(o,a){qc(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Fi(n),i=this.compiler||this.Compiler;return Po("stringify",i),nf(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Lo("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=_o(!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,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[d,...h]=f;const v=r[p][1];Ba(v)&&Ba(d)&&(d=_o(!0,v,d)),r[p]=[u,d,...h]}}}}const Zx=new Js().freeze();function No(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Lo(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 nf(e){if(!Ba(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fi(e){return Jx(e)?e:new hh(e)}function Jx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ew(e){return typeof e=="string"||tw(e)}function tw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",lf=[],of={allowDangerousHtml:!0},rw=/^(https?|ircs?|mailto|xmpp)$/i,iw=[{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 lw(e){const t=ow(e),n=aw(e);return sw(t.runSync(t.parse(n),n),e)}function ow(e){const t=e.rehypePlugins||lf,n=e.remarkPlugins||lf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...of}:of;return Zx().use(B1).use(n).use(Rx,r).use(t)}function aw(e){const t=e.children||"",n=new hh;return typeof t=="string"&&(n.value=t),n}function sw(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||uw;for(const f of iw)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+nw+f.id,void 0);return Zs(e,u),bv(e,{Fragment:k.Fragment,components:i,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in bo)if(Object.hasOwn(bo,d)&&Object.hasOwn(f.properties,d)){const h=f.properties[d],v=bo[d];(v===null||v.includes(f.tagName))&&(f.properties[d]=s(String(h||""),d,f))}}if(f.type==="element"){let d=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function uw(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||rw.test(e.slice(0,t))?e:""}function af(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 cw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fw(e,t,n){const i=Wl((n||{}).ignore||[]),l=pw(t);let o=-1;for(;++o<l.length;)ph(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const d=f[c],h=p?p.children:void 0;if(i(d,h?h.indexOf(d):void 0,p))return;p=d}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=l[o][0],d=l[o][1];let h=0;const w=c.children.indexOf(u);let m=!1,g=[];p.lastIndex=0;let y=p.exec(u.value);for(;y;){const C=y.index,_={index:y.index,input:y.input,stack:[...f,u]};let S=d(...y,_);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=C+1:(h!==C&&g.push({type:"text",value:u.value.slice(h,C)}),Array.isArray(S)?g.push(...S):S&&g.push(S),h=C+y[0].length,m=!0),!p.global)break;y=p.exec(u.value)}return m?(h<u.value.length&&g.push({type:"text",value:u.value.slice(h)}),c.children.splice(w,1,...g)):g=[u],w+g.length}}function pw(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([dw(i[0]),hw(i[1])])}return t}function dw(e){return typeof e=="string"?new RegExp(cw(e),"g"):e}function hw(e){return typeof e=="function"?e:function(){return e}}const Fo="phrasing",jo=["autolink","link","image","label"];function gw(){return{transforms:[Sw],enter:{literalAutolink:yw,literalAutolinkEmail:Ro,literalAutolinkHttp:Ro,literalAutolinkWww:Ro},exit:{literalAutolink:ww,literalAutolinkEmail:xw,literalAutolinkHttp:vw,literalAutolinkWww:kw}}}function mw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fo,notInConstruct:jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fo,notInConstruct:jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Fo,notInConstruct:jo}]}}function yw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ro(e){this.config.enter.autolinkProtocol.call(this,e)}function vw(e){this.config.exit.autolinkProtocol.call(this,e)}function kw(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 xw(e){this.config.exit.autolinkEmail.call(this,e)}function ww(e){this.exit(e)}function Sw(e){fw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ew]],{ignore:["link","linkReference"]})}function bw(e,t,n,r,i){let l="";if(!gh(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Cw(n)))return!1;const o=_w(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 Ew(e,t,n,r){return!gh(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Cw(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 _w(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=af(e,"(");let l=af(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 gh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Cn(n)||Ul(n))&&(!t||n!==47)}mh.peek=Rw;function Tw(){this.buffer()}function Iw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Aw(){this.buffer()}function Nw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Pw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Lw(e){this.exit(e)}function Fw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jw(e){this.exit(e)}function Rw(){return"["}function mh(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 zw(){return{enter:{gfmFootnoteCallString:Tw,gfmFootnoteCall:Iw,gfmFootnoteDefinitionLabelString:Aw,gfmFootnoteDefinition:Nw},exit:{gfmFootnoteCallString:Pw,gfmFootnoteCall:Lw,gfmFootnoteDefinitionLabelString:Fw,gfmFootnoteDefinition:jw}}}function Dw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mh},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?yh:Ow))),u(),s}}function Ow(e,t,n){return t===0?e:yh(e,t,n)}function yh(e,t,n){return(n?"":" ")+e}const Mw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vh.peek=Vw;function Bw(){return{canContainEols:["delete"],enter:{strikethrough:Uw},exit:{strikethrough:Hw}}}function $w(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Mw}],handlers:{delete:vh}}}function Uw(e){this.enter({type:"delete",children:[]},e)}function Hw(e){this.exit(e)}function vh(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 Vw(){return"~"}function Ww(e){return e.length}function Gw(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ww,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const v=[],w=[];let m=-1;for(e[f].length>u&&(u=e[f].length);++m<e[f].length;){const g=Qw(e[f][m]);if(n.alignDelimiters!==!1){const y=i(g);w[m]=y,(s[m]===void 0||y>s[m])&&(s[m]=y)}v.push(g)}o[f]=v,a[f]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=sf(r[c]);else{const v=sf(r);for(;++c<u;)l[c]=v}c=-1;const p=[],d=[];for(;++c<u;){const v=l[c];let w="",m="";v===99?(w=":",m=":"):v===108?w=":":v===114&&(m=":");let g=n.alignDelimiters===!1?1:Math.max(1,s[c]-w.length-m.length);const y=w+"-".repeat(g)+m;n.alignDelimiters!==!1&&(g=w.length+g+m.length,g>s[c]&&(s[c]=g),d[c]=g),p[c]=y}o.splice(1,0,p),a.splice(1,0,d),f=-1;const h=[];for(;++f<o.length;){const v=o[f],w=a[f];c=-1;const m=[];for(;++c<u;){const g=v[c]||"";let y="",C="";if(n.alignDelimiters!==!1){const _=s[c]-(w[c]||0),S=l[c];S===114?y=" ".repeat(_):S===99?_%2?(y=" ".repeat(_/2+.5),C=" ".repeat(_/2-.5)):(y=" ".repeat(_/2),C=y):C=" ".repeat(_)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(y),m.push(g),n.alignDelimiters!==!1&&m.push(C),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&m.push("|")}h.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return h.join(`
55
- `)}function Qw(e){return e==null?"":String(e)}function sf(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 qw(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()),Yw);return i(),o}function Yw(e,t,n){return">"+(n?"":" ")+e}function Kw(e,t){return uf(e,t.inConstruct,!0)&&!uf(e,t.notInConstruct,!1)}function uf(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 cf(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
56
- `&&Kw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
57
- `}function Xw(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 Zw(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 Jw(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 e0(e,t,n,r){const i=Jw(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Zw(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,t0);return c(),p}const a=n.createTracker(r),s=i.repeat(Math.max(Xw(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 t0(e,t,n){return(n?"":" ")+e}function eu(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 n0(e,t,n,r){const i=eu(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 r0(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 ii(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bl(e,t,n){const r=or(e),i=or(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}}kh.peek=i0;function kh(e,t,n,r){const i=r0(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=bl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ii(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ii(c));const d=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+d}function i0(e,t,n){return n.options.emphasis||"*"}function l0(e,t){let n=!1;return Zs(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Oa}),!!((!e.depth||e.depth<3)&&Ws(e)&&(t.options.setext||n))}function o0(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(l0(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
62
- `,after:`
63
- `});return c(),f(),p+`
64
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.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=ii(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}xh.peek=a0;function xh(e){return e.value||""}function a0(){return"<"}wh.peek=s0;function wh(e,t,n,r){const i=eu(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 s0(){return"!"}Sh.peek=u0;function Sh(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 u0(){return"!"}bh.peek=c0;function bh(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 c0(){return"`"}function Eh(e,t){const n=Ws(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))}Ch.peek=f0;function Ch(e,t,n,r){const i=eu(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(Eh(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 f0(e,t,n){return Eh(e,n)?"<":"["}_h.peek=p0;function _h(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 p0(){return"["}function tu(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 d0(e){const t=tu(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 h0(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 Th(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 g0(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?h0(n):tu(n);const a=e.ordered?o==="."?")":".":d0(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),Th(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.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 m0(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 y0(e,t,n,r){const i=m0(n);let l=n.bulletCurrent||tu(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,p,d){return p?(d?"":" ".repeat(o))+c:(d?l:l+" ".repeat(o-l.length))+c}}function v0(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const k0=Wl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function x0(e,t,n,r){return(e.children.some(function(o){return k0(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function w0(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ih.peek=S0;function Ih(e,t,n,r){const i=w0(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=bl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ii(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ii(c));const d=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+d}function S0(e,t,n){return n.options.strong||"*"}function b0(e,t,n,r){return n.safe(e.value,r)}function E0(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 C0(e,t,n){const r=(Th(n)+(n.options.ruleSpaces?" ":"")).repeat(E0(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ah={blockquote:qw,break:cf,code:e0,definition:n0,emphasis:kh,hardBreak:cf,heading:o0,html:xh,image:wh,imageReference:Sh,inlineCode:bh,link:Ch,linkReference:_h,list:g0,listItem:y0,paragraph:v0,root:x0,strong:Ih,text:b0,thematicBreak:C0};function _0(){return{enter:{table:T0,tableData:ff,tableHeader:ff,tableRow:A0},exit:{codeText:N0,table:I0,tableData:zo,tableHeader:zo,tableRow:zo}}}function T0(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 I0(e){this.exit(e),this.data.inTable=void 0}function A0(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function ff(e){this.enter({type:"tableCell",children:[]},e)}function N0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,P0));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function P0(e,t){return t==="|"?t:e}function L0(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:p,table:o,tableCell:s,tableRow:a}};function o(d,h,v,w){return u(f(d,v,w),d.align)}function a(d,h,v,w){const m=c(d,v,w),g=u([m]);return g.slice(0,g.indexOf(`
68
- `))}function s(d,h,v,w){const m=v.enter("tableCell"),g=v.enter("phrasing"),y=v.containerPhrasing(d,{...w,before:l,after:l});return g(),m(),y}function u(d,h){return Gw(d,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function f(d,h,v){const w=d.children;let m=-1;const g=[],y=h.enter("table");for(;++m<w.length;)g[m]=c(w[m],h,v);return y(),g}function c(d,h,v){const w=d.children;let m=-1;const g=[],y=h.enter("tableRow");for(;++m<w.length;)g[m]=s(w[m],d,h,v);return y(),g}function p(d,h,v){let w=Ah.inlineCode(d,h,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function F0(){return{exit:{taskListCheckValueChecked:pf,taskListCheckValueUnchecked:pf,paragraph:R0}}}function j0(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:z0}}}function pf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function R0(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 z0(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=Ah.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 D0(){return[gw(),zw(),Bw(),_0(),F0()]}function O0(e){return{extensions:[mw(),Dw(e),$w(),L0(e),j0()]}}const M0={tokenize:W0,partial:!0},Nh={tokenize:G0,partial:!0},Ph={tokenize:Q0,partial:!0},Lh={tokenize:q0,partial:!0},B0={tokenize:Y0,partial:!0},Fh={name:"wwwAutolink",tokenize:H0,previous:Rh},jh={name:"protocolAutolink",tokenize:V0,previous:zh},Bt={name:"emailAutolink",tokenize:U0,previous:Dh},Tt={};function $0(){return{text:Tt}}let fn=48;for(;fn<123;)Tt[fn]=Bt,fn++,fn===58?fn=65:fn===91&&(fn=97);Tt[43]=Bt;Tt[45]=Bt;Tt[46]=Bt;Tt[95]=Bt;Tt[72]=[Bt,jh];Tt[104]=[Bt,jh];Tt[87]=[Bt,Fh];Tt[119]=[Bt,Fh];function U0(e,t,n){const r=this;let i,l;return o;function o(c){return!Ua(c)||!Dh.call(r,r.previous)||nu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Ua(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(B0,f,u)(c):c===45||c===95||Ae(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&&je(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function H0(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Rh.call(r,r.previous)||nu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(M0,e.attempt(Nh,e.attempt(Ph,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function V0(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&zh.call(r,r.previous)&&!nu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(je(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="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||xl(c)||ie(c)||Cn(c)||Ul(c)?n(c):e.attempt(Nh,e.attempt(Ph,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function W0(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 G0(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(Lh,s,a)(u):u===null||ie(u)||Cn(u)||u!==45&&Ul(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 Q0(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(Lh,t,l)(o):o===null||ie(o)||Cn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function q0(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||ie(a)||Cn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ie(a)||Cn(a)?t(a):r(a)}function l(a){return je(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):je(a)?(e.consume(a),o):n(a)}}function Y0(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Ae(l)?n(l):t(l)}}function Rh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ie(e)}function zh(e){return!je(e)}function Dh(e){return!(e===47||Ua(e))}function Ua(e){return e===43||e===45||e===46||e===95||Ae(e)}function nu(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 K0={tokenize:iS,partial:!0};function X0(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tS,continuation:{tokenize:nS},exit:rS}},text:{91:{name:"gfmFootnoteCall",tokenize:eS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Z0,resolveTo:J0}}}}function Z0(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=mt(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 J0(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 eS(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||ie(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ie(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 tS(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(h)}function f(h){if(o>999||h===93&&!a||h===null||h===91||ie(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=mt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ie(h)||(a=!0),o++,e.consume(h),h===92?c:f}function c(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(l)||i.push(l),X(e,d,"gfmFootnoteDefinitionWhitespace")):n(h)}function d(h){return t(h)}}function nS(e,t,n){return e.check(fi,t,e.attempt(K0,t,n))}function rS(e){e.exit("gfmFootnoteDefinition")}function iS(e,t,n){const r=this;return X(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 lS(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)},p=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],d=a.parser.constructs.insideSpan.null;d&&Ze(p,p.length,0,Hl(d,o.slice(u+1,s),a)),Ze(p,p.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),Ze(o,u-1,s-u+3,p),s=u+p.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 p;function p(h){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(h):(o.enter("strikethroughSequenceTemporary"),d(h))}function d(h){const v=or(u);if(h===126)return c>1?s(h):(o.consume(h),c++,d);if(c<2&&!n)return s(h);const w=o.exit("strikethroughSequenceTemporary"),m=or(h);return w._open=!m||m===2&&!!v,w._close=!v||v===2&&!!m,a(h)}}}class oS{constructor(){this.map=[]}add(t,n,r){aS(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 aS(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 sS(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 uS(){return{flow:{null:{name:"table",tokenize:cS,resolveAll:fS}}}}function cS(e,t,n){const r=this;let i=0,l=0,o;return a;function a(E){let L=r.events.length-1;for(;L>-1;){const $=r.events[L][1].type;if($==="lineEnding"||$==="linePrefix")L--;else break}const D=L>-1?r.events[L][1].type:null,M=D==="tableHead"||D==="tableRow"?S:s;return M===S&&r.parser.lazy[r.now().line]?n(E):M(E)}function s(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(o=!0,l+=1),f(E)}function f(E){return E===null?n(E):V(E)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),d):n(E):q(E)?X(e,f,"whitespace")(E):(l+=1,o&&(o=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(E)))}function c(E){return E===null||E===124||ie(E)?(e.exit("data"),f(E)):(e.consume(E),E===92?p:c)}function p(E){return E===92||E===124?(e.consume(E),c):c(E)}function d(E){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(E):(e.enter("tableDelimiterRow"),o=!1,q(E)?X(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):h(E))}function h(E){return E===45||E===58?w(E):E===124?(o=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),v):_(E)}function v(E){return q(E)?X(e,w,"whitespace")(E):w(E)}function w(E){return E===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),m):E===45?(l+=1,m(E)):E===null||V(E)?C(E):_(E)}function m(E){return E===45?(e.enter("tableDelimiterFiller"),g(E)):_(E)}function g(E){return E===45?(e.consume(E),g):E===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(E))}function y(E){return q(E)?X(e,C,"whitespace")(E):C(E)}function C(E){return E===124?h(E):E===null||V(E)?!o||i!==l?_(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):_(E)}function _(E){return n(E)}function S(E){return e.enter("tableRow"),T(E)}function T(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),T):E===null||V(E)?(e.exit("tableRow"),t(E)):q(E)?X(e,T,"whitespace")(E):(e.enter("data"),I(E))}function I(E){return E===null||E===124||ie(E)?(e.exit("data"),T(E)):(e.consume(E),E===92?R:I)}function R(E){return E===92||E===124?(e.consume(E),I):I(E)}}function fS(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 p=new oS;for(;++n<e.length;){const d=e[n],h=d[1];d[0]==="enter"?h.type==="tableHead"?(a=!1,s!==0&&(df(p,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.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({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",f,t]])),i=h.type==="tableDelimiterRow"?2:f?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=ji(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=ji(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):h.type==="tableHead"?(a=!0,s=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=ji(p,t,l,i,n,c)):o[1]!==0&&(c=ji(p,t,o,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&df(p,t,s,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=sS(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({},Fn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=Fn(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=Fn(t.events,n[2]),f=Fn(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 p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,v=n[3]-n[2]-1;e.add(h,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Fn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function df(e,t,n,r,i){const l=[],o=Fn(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 Fn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const pS={name:"tasklistCheck",tokenize:hS};function dS(){return{text:{91:pS}}}function hS(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 ie(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 V(s)?t(s):q(s)?e.check({tokenize:gS},t,n)(s):n(s)}}function gS(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function mS(e){return Qd([$0(),X0(),lS(e),uS(),dS()])}const yS={};function vS(e){const t=this,n=e||yS,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(mS(n)),l.push(D0()),o.push(O0(n))}function Oh(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=Oh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mh(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Oh(e))&&(r&&(r+=" "),r+=t);return r}var kS=Object.create,Ql=Object.defineProperty,xS=Object.defineProperties,wS=Object.getOwnPropertyDescriptor,SS=Object.getOwnPropertyDescriptors,Bh=Object.getOwnPropertyNames,El=Object.getOwnPropertySymbols,bS=Object.getPrototypeOf,ru=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable,hf=(e,t,n)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&hf(e,n,t[n]);if(El)for(var n of El(t))$h.call(t,n)&&hf(e,n,t[n]);return e},ql=(e,t)=>xS(e,SS(t)),Uh=(e,t)=>{var n={};for(var r in e)ru.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&El)for(var r of El(e))t.indexOf(r)<0&&$h.call(e,r)&&(n[r]=e[r]);return n},ES=(e,t)=>function(){return t||(0,e[Bh(e)[0]])((t={exports:{}}).exports,t),t.exports},CS=(e,t)=>{for(var n in t)Ql(e,n,{get:t[n],enumerable:!0})},_S=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bh(t))!ru.call(e,i)&&i!==n&&Ql(e,i,{get:()=>t[i],enumerable:!(r=wS(t,i))||r.enumerable});return e},TS=(e,t,n)=>(n=e!=null?kS(bS(e)):{},_S(!e||!e.__esModule?Ql(n,"default",{value:e,enumerable:!0}):n,e)),IS=ES({"../../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 h(v){return v instanceof a?new a(v.type,h(v.content),v.alias):Array.isArray(v)?v.map(h):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(h){return Object.prototype.toString.call(h).slice(8,-1)},objId:function(h){return h.__id||Object.defineProperty(h,"__id",{value:++i}),h.__id},clone:function h(v,w){w=w||{};var m,g;switch(o.util.type(v)){case"Object":if(g=o.util.objId(v),w[g])return w[g];m={},w[g]=m;for(var y in v)v.hasOwnProperty(y)&&(m[y]=h(v[y],w));return m;case"Array":return g=o.util.objId(v),w[g]?w[g]:(m=[],w[g]=m,v.forEach(function(C,_){m[_]=h(C,w)}),m);default:return v}},getLanguage:function(h){for(;h;){var v=r.exec(h.className);if(v)return v[1].toLowerCase();h=h.parentElement}return"none"},setLanguage:function(h,v){h.className=h.className.replace(RegExp(r,"gi"),""),h.classList.add("language-"+v)},isActive:function(h,v,w){for(var m="no-"+v;h;){var g=h.classList;if(g.contains(v))return!0;if(g.contains(m))return!1;h=h.parentElement}return!!w}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(h,v){var w=o.util.clone(o.languages[h]);for(var m in v)w[m]=v[m];return w},insertBefore:function(h,v,w,m){m=m||o.languages;var g=m[h],y={};for(var C in g)if(g.hasOwnProperty(C)){if(C==v)for(var _ in w)w.hasOwnProperty(_)&&(y[_]=w[_]);w.hasOwnProperty(C)||(y[C]=g[C])}var S=m[h];return m[h]=y,o.languages.DFS(o.languages,function(T,I){I===S&&T!=h&&(this[T]=y)}),y},DFS:function h(v,w,m,g){g=g||{};var y=o.util.objId;for(var C in v)if(v.hasOwnProperty(C)){w.call(v,C,v[C],m||C);var _=v[C],S=o.util.type(_);S==="Object"&&!g[y(_)]?(g[y(_)]=!0,h(_,w,null,g)):S==="Array"&&!g[y(_)]&&(g[y(_)]=!0,h(_,w,C,g))}}},plugins:{},highlight:function(h,v,w){var m={code:h,grammar:v,language:w};if(o.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=o.tokenize(m.code,m.grammar),o.hooks.run("after-tokenize",m),a.stringify(o.util.encode(m.tokens),m.language)},tokenize:function(h,v){var w=v.rest;if(w){for(var m in w)v[m]=w[m];delete v.rest}var g=new f;return c(g,g.head,h),u(h,g,v,g.head,0),d(g)},hooks:{all:{},add:function(h,v){var w=o.hooks.all;w[h]=w[h]||[],w[h].push(v)},run:function(h,v){var w=o.hooks.all[h];if(!(!w||!w.length))for(var m=0,g;g=w[m++];)g(v)}},Token:a};function a(h,v,w,m){this.type=h,this.content=v,this.alias=w,this.length=(m||"").length|0}a.stringify=function h(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var m="";return v.forEach(function(S){m+=h(S,w)}),m}var g={type:v.type,content:h(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},y=v.alias;y&&(Array.isArray(y)?Array.prototype.push.apply(g.classes,y):g.classes.push(y)),o.hooks.run("wrap",g);var C="";for(var _ in g.attributes)C+=" "+_+'="'+(g.attributes[_]||"").replace(/"/g,"&quot;")+'"';return"<"+g.tag+' class="'+g.classes.join(" ")+'"'+C+">"+g.content+"</"+g.tag+">"};function s(h,v,w,m){h.lastIndex=v;var g=h.exec(w);if(g&&m&&g[1]){var y=g[1].length;g.index+=y,g[0]=g[0].slice(y)}return g}function u(h,v,w,m,g,y){for(var C in w)if(!(!w.hasOwnProperty(C)||!w[C])){var _=w[C];_=Array.isArray(_)?_:[_];for(var S=0;S<_.length;++S){if(y&&y.cause==C+","+S)return;var T=_[S],I=T.inside,R=!!T.lookbehind,E=!!T.greedy,L=T.alias;if(E&&!T.pattern.global){var D=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,D+"g")}for(var M=T.pattern||T,$=m.next,U=g;$!==v.tail&&!(y&&U>=y.reach);U+=$.value.length,$=$.next){var Z=$.value;if(v.length>h.length)return;if(!(Z instanceof a)){var le=1,j;if(E){if(j=s(M,U,h,R),!j||j.index>=h.length)break;var J=j.index,H=j.index+j[0].length,x=U;for(x+=$.value.length;J>=x;)$=$.next,x+=$.value.length;if(x-=$.value.length,U=x,$.value instanceof a)continue;for(var Q=$;Q!==v.tail&&(x<H||typeof Q.value=="string");Q=Q.next)le++,x+=Q.value.length;le--,Z=h.slice(U,x),j.index-=U}else if(j=s(M,0,Z,R),!j)continue;var J=j.index,b=j[0],fe=Z.slice(0,J),Oe=Z.slice(J+b.length),te=U+Z.length;y&&te>y.reach&&(y.reach=te);var Le=$.prev;fe&&(Le=c(v,Le,fe),U+=fe.length),p(v,Le,le);var vt=new a(C,I?o.tokenize(b,I):b,L,b);if($=c(v,Le,vt),Oe&&c(v,$,Oe),le>1){var kt={cause:C+","+S,reach:te};u(h,v,w,$.prev,U,kt),y&&kt.reach>y.reach&&(y.reach=kt.reach)}}}}}}function f(){var h={value:null,prev:null,next:null},v={value:null,prev:h,next:null};h.next=v,this.head=h,this.tail=v,this.length=0}function c(h,v,w){var m=v.next,g={value:w,prev:v,next:m};return v.next=g,m.prev=g,h.length++,g}function p(h,v,w){for(var m=v.next,g=0;g<w&&m!==h.tail;g++)m=m.next;v.next=m,m.prev=v,h.length-=g}function d(h){for(var v=[],w=h.head.next;w!==h.tail;)v.push(w.value),w=w.next;return v}return o}();t.exports=n,n.default=n}}),N=TS(IS());N.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]},N.languages.markup.tag.inside["attr-value"].inside.entity=N.languages.markup.entity,N.languages.markup.doctype.inside["internal-subset"].inside=N.languages.markup,N.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(N.languages.markup.tag,"addInlined",{value:function(e,r){var n={},n=(n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:N.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:N.languages[r]},{});r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},N.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(N.languages.markup.tag,"addAttribute",{value:function(e,t){N.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:N.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),N.languages.html=N.languages.markup,N.languages.mathml=N.languages.markup,N.languages.svg=N.languages.markup,N.languages.xml=N.languages.extend("markup",{}),N.languages.ssml=N.languages.xml,N.languages.atom=N.languages.xml,N.languages.rss=N.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"}}}(N),N.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:/[{}[\];(),.:]/},N.languages.javascript=N.languages.extend("clike",{"class-name":[N.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}|\?\?=?|\?\.?|[~:]/}),N.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,N.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:N.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:N.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:N.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:N.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:N.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),N.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:N.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"}}),N.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),N.languages.markup&&(N.languages.markup.tag.addInlined("script","javascript"),N.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")),N.languages.js=N.languages.javascript,N.languages.actionscript=N.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),N.languages.actionscript["class-name"].alias="function",delete N.languages.actionscript.parameter,delete N.languages.actionscript["literal-property"],N.languages.markup&&N.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:N.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}(N),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)}(N),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"))}(N),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})}(N),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}(N),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 p=0,d=c.length;p<d;p++){var h,v=c[p];v.type!=="code"?f(v.content):(h=v.content[1],v=v.content[3],h&&v&&h.type==="code-language"&&v.type==="code-block"&&typeof h.content=="string"&&(h=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(h=(/[a-z][\w-]*/i.exec(h)||[""])[0].toLowerCase()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]))}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var f="",c=0,p=u.classes.length;c<p;c++){var d=u.classes[c],d=/language-(.+)/.exec(d);if(d){f=d[1];break}}var h,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(m,g){var y;return(g=g.toLowerCase())[0]==="#"?(y=g[1]==="x"?parseInt(g.slice(2),16):Number(g.slice(1)),s(y)):a[g]||m})}(u.content),v,f):f&&f!=="none"&&e.plugins.autoloader&&(h="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),u.attributes.id=h,e.plugins.autoloader.loadLanguages(f,function(){var w=document.getElementById(h);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}(N),N.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:N.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+/},N.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(h){return typeof h!="string"&&h.type!=="comment"&&h.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=p(/^\($/,/^\)$/);if(l===-1)continue;for(;n<l;n++){var o=f(0);o.type==="variable"&&(d(o,"variable-input"),i.push(o.content))}n=l+1}if(c(["punctuation","property-query"])&&f(0).content==="{"&&(n++,d(f(0),"property-mutation"),0<i.length)){var a=p(/^\{$/,/^\}$/);if(a!==-1)for(var s=n;s<a;s++){var u=t[s];u.type==="variable"&&0<=i.indexOf(u.content)&&d(u,"variable-input")}}}}function f(h){return t[n+h]}function c(h,v){v=v||0;for(var w=0;w<h.length;w++){var m=f(w+v);if(!m||m.type!==h[w])return}return 1}function p(h,v){for(var w=1,m=n;m<t.length;m++){var g=t[m],y=g.content;if(g.type==="punctuation"&&typeof y=="string"){if(h.test(y))w++;else if(v.test(y)&&--w===0)return m}}return-1}function d(h,v){var w=h.alias;w?Array.isArray(w)||(h.alias=w=[w]):h.alias=w=[],w.push(v)}}),N.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,p){if(e.languages[c])return{pattern:RegExp("((?:"+p+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:c}}}}function a(c,p,d){return c={code:c,grammar:p,language:d},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,p,d){var w=e.tokenize(c,{interpolation:{pattern:RegExp(l),lookbehind:!0}}),h=0,v={},w=a(w.map(function(g){if(typeof g=="string")return g;for(var y,C,g=g.content;c.indexOf((C=h++,y="___"+d.toUpperCase()+"_"+C+"___"))!==-1;);return v[y]=g,y}).join(""),p,d),m=Object.keys(v);return h=0,function g(y){for(var C=0;C<y.length;C++){if(h>=m.length)return;var _,S,T,I,R,E,L,D=y[C];typeof D=="string"||typeof D.content=="string"?(_=m[h],(L=(E=typeof D=="string"?D:D.content).indexOf(_))!==-1&&(++h,S=E.substring(0,L),R=v[_],T=void 0,(I={})["interpolation-punctuation"]=i,(I=e.tokenize(R,I)).length===3&&((T=[1,1]).push.apply(T,a(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,T)),T=new e.Token("interpolation",I,r.alias,R),I=E.substring(L+_.length),R=[],S&&R.push(S),R.push(T),I&&(g(E=[I]),R.push.apply(R,E)),typeof D=="string"?(y.splice.apply(y,[C,1].concat(R)),C+=R.length-1):D.content=R)):(L=D.content,Array.isArray(L)?g(L):g([L]))}}(w),new e.Token(d,w,"language-"+d,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 p(d){for(var h=0,v=d.length;h<v;h++){var w,m,g,y=d[h];typeof y!="string"&&(w=y.content,Array.isArray(w)?y.type==="template-string"?(y=w[1],w.length===3&&typeof y!="string"&&y.type==="embedded-code"&&(m=f(y),y=y.alias,y=Array.isArray(y)?y[0]:y,g=e.languages[y])&&(w[1]=s(m,g,y))):p(w):typeof w!="string"&&p([w]))}}(c.tokens)})}(N),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}(N),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)}(N),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})}(N),N.languages.n4js=N.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/}),N.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),N.languages.n4jsd=N.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]*/}}(N),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],p=!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--:p=!0),(p||typeof c=="string")&&0<u.length&&u[u.length-1].openedBraces===0&&(p=a(c),f<s.length-1&&(typeof s[f+1]=="string"||s[f+1].type==="plain-text")&&(p+=a(s[f+1]),s.splice(f+1,1)),0<f&&(typeof s[f-1]=="string"||s[f-1].type==="plain-text")&&(p=a(s[f-1])+p,s.splice(f-1,1),f--),s[f]=new e.Token("plain-text",p,null,p)),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)})}(N),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}(N),N.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:/[{}[\]();,.:\\]/},N.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=N.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}(N),N.languages.c=N.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|[?:~]|[-+*/%&|^!=<>]=?/}),N.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),N.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},N.languages.c.string],char:N.languages.c.char,comment:N.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:N.languages.c}}}}),N.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 N.languages.c.boolean,N.languages.objectivec=N.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 N.languages.objectivec["class-name"],N.languages.objc=N.languages.objectivec,N.languages.reason=N.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/}),N.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 N.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}(N),N.languages.go=N.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/}),N.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete N.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"])}(N),N.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},N.languages.python["string-interpolation"].inside.interpolation.inside.rest=N.languages.python,N.languages.py=N.languages.python,N.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"}},N.languages.webmanifest=N.languages.json;var Hh={};CS(Hh,{dracula:()=>NS,duotoneDark:()=>LS,duotoneLight:()=>jS,github:()=>zS,gruvboxMaterialDark:()=>fb,gruvboxMaterialLight:()=>db,jettwaveDark:()=>rb,jettwaveLight:()=>lb,nightOwl:()=>OS,nightOwlLight:()=>BS,oceanicNext:()=>US,okaidia:()=>VS,oneDark:()=>ab,oneLight:()=>ub,palenight:()=>GS,shadesOfPurple:()=>qS,synthwave84:()=>KS,ultramin:()=>ZS,vsDark:()=>Vh,vsLight:()=>tb});var AS={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)"}}]},NS=AS,PS={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"}}]},LS=PS,FS={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"}}]},jS=FS,RS={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"}}]},zS=RS,DS={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)"}}]},OS=DS,MS={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)"}}]},BS=MS,Qe={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},$S={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Qe.keyword}},{types:["attr-value"],style:{color:Qe.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Qe.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Qe.primitive}},{types:["boolean"],style:{color:Qe.boolean}},{types:["tag"],style:{color:Qe.tag}},{types:["string"],style:{color:Qe.string}},{types:["punctuation"],style:{color:Qe.string}},{types:["selector","char","builtin","inserted"],style:{color:Qe.char}},{types:["function"],style:{color:Qe.function}},{types:["operator","entity","url","variable"],style:{color:Qe.variable}},{types:["keyword"],style:{color:Qe.keyword}},{types:["atrule","class-name"],style:{color:Qe.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},US=$S,HS={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"}}]},VS=HS,WS={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)"}}]},GS=WS,QS={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)"}}]},qS=QS,YS={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"}}]},KS=YS,XS={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)"}}]},ZS=XS,JS={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)"}}]},Vh=JS,eb={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)"}}]},tb=eb,nb={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"}}]},rb=nb,ib={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"}}]},lb=ib,ob={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%)"}}]},ab=ob,sb={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%)"}}]},ub=sb,cb={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"}}]},fb=cb,pb={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"}}]},db=pb,hb=e=>O.useCallback(t=>{var n=t,{className:r,style:i,line:l}=n,o=Uh(n,["className","style","line"]);const a=ql(_t({},o),{className:Mh("token-line",r)});return typeof e=="object"&&"plain"in e&&(a.style=e.plain),typeof i=="object"&&(a.style=_t(_t({},a.style||{}),i)),a},[e]),gb=e=>{const t=O.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 O.useCallback(n=>{var r=n,{token:i,className:l,style:o}=r,a=Uh(r,["token","className","style"]);const s=ql(_t({},a),{className:Mh("token",...i.types,l),children:i.content,style:t(i)});return o!=null&&(s.style=_t(_t({},s.style||{}),o)),s},[t])},mb=/\r\n|\r|\n/,gf=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)},mf=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},yb=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 p=n[o][l];if(typeof p=="string"?(f=o>0?f:["plain"],u=p):(f=mf(f,p.type),p.alias&&(f=mf(f,p.alias)),u=p.content),typeof u!="string"){o++,t.push(f),n.push(u),r.push(0),i.push(u.length);continue}const d=u.split(mb),h=d.length;a.push({types:f,content:d[0]});for(let v=1;v<h;v++)gf(a),s.push(a=[]),a.push({types:f,content:d[v]})}o--,t.pop(),n.pop(),r.pop(),i.pop()}return gf(a),s},yf=yb,vb=({prism:e,code:t,grammar:n,language:r})=>O.useMemo(()=>{if(n==null)return yf([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),yf(i.tokens)},[t,n,r,e]),kb=(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=_t(_t({},i[s]),a);i[s]=u}),i},{});return r.root=n,r.plain=ql(_t({},n),{backgroundColor:void 0}),r},xb=kb,wb=({children:e,language:t,code:n,theme:r,prism:i})=>{const l=t.toLowerCase(),o=xb(r,l),a=hb(o),s=gb(o),u=i.languages[l],f=vb({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})},Sb=e=>O.createElement(wb,ql(_t({},e),{prism:e.prism||N,theme:e.theme||Vh,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 bb={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 Eb(e){if(!e)return"text";const t=String(e).toLowerCase();return bb[t]||t}function Cb({code:e,language:t}){const[n,r]=O.useState(!1),i=Eb(t),l=O.useCallback(()=>{var o;try{(o=navigator.clipboard)==null||o.writeText(e),r(!0),setTimeout(()=>r(!1),1400)}catch{}},[e]);return k.jsxs("div",{className:"code-block","data-testid":"code-block",children:[k.jsxs("div",{className:"code-block-head",children:[k.jsx("span",{className:"code-lang",children:i==="text"?"code":i}),k.jsx("button",{className:"code-copy",onClick:l,title:"Copy to clipboard",children:n?"✓ copied":"Copy"})]}),k.jsx(Sb,{theme:Hh.vsDark,code:e,language:i,children:({tokens:o,getLineProps:a,getTokenProps:s})=>k.jsx("pre",{className:"code-block-body",children:o.map((u,f)=>k.jsx("div",{...a({line:u}),children:u.map((c,p)=>k.jsx("span",{...s({token:c})},p))},f))})})]})}const _b={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 k.jsx(Cb,{code:l,language:r?r[1]:""})},code({children:e}){return k.jsx("code",{className:"md-code-inline",children:e})},a({href:e,children:t}){return k.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})},table({children:e}){return k.jsx("div",{className:"md-table-wrap",children:k.jsx("table",{children:e})})}};function Tb({text:e}){return k.jsx("div",{className:"markdown",children:k.jsx(lw,{remarkPlugins:[vS],components:_b,children:e||""})})}const Ib=O.memo(Tb);class Ab{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=g=>{if(g=this.postProcess(g,r),i){setTimeout(function(){i(g)},0);return}else return g},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,p=Date.now()+c,d=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(d[0],n,t,0,r);if(d[0].oldPos+1>=s&&h+1>=a)return o(this.buildValues(d[0].lastComponent,n,t));let v=-1/0,w=1/0;const m=()=>{for(let g=Math.max(v,-u);g<=Math.min(w,u);g+=2){let y;const C=d[g-1],_=d[g+1];C&&(d[g-1]=void 0);let S=!1;if(_){const I=_.oldPos-g;S=_&&0<=I&&I<a}const T=C&&C.oldPos+1<s;if(!S&&!T){d[g]=void 0;continue}if(!T||S&&C.oldPos<_.oldPos?y=this.addToPath(_,!0,!1,0,r):y=this.addToPath(C,!1,!0,1,r),h=this.extractCommon(y,n,t,g,r),y.oldPos+1>=s&&h+1>=a)return o(this.buildValues(y.lastComponent,n,t))||!0;d[g]=y,y.oldPos+1>=s&&(w=Math.min(w,g-1)),h+1>=a&&(v=Math.max(v,g+1))}u++};if(i)(function g(){setTimeout(function(){if(u>f||Date.now()>p)return i(void 0);m()||g()},0)})();else for(;u<=f&&Date.now()<=p;){const g=m();if(g)return g}}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(p,d){const h=r[u+d];return h.length>p.length?h:p}),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 Nb extends Ab{constructor(){super(...arguments),this.tokenize=Fb}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 Pb=new Nb;function Lb(e,t,n){return Pb.diff(e,t,n)}function Fb(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 jb(e,t){const n=Lb(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 Rb={add:"+",del:"−",ctx:" "};function Do({oldText:e,newText:t,maxRows:n=80}){const r=jb(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 k.jsxs("div",{className:"diff-view","data-testid":"diff-view",children:[k.jsxs("div",{className:"diff-stat",children:[k.jsxs("span",{className:"diff-stat-add",children:["+",i]}),k.jsxs("span",{className:"diff-stat-del",children:["−",l]})]}),k.jsx("pre",{className:"diff-body",children:o.map((a,s)=>k.jsxs("div",{className:`diff-line ${a.type}`,children:[k.jsx("span",{className:"diff-gutter",children:Rb[a.type]}),k.jsx("span",{className:"diff-text",children:a.text===""?" ":a.text})]},s))}),r.length>n&&k.jsxs("div",{className:"diff-more",children:["+",r.length-n," more lines"]})]})}function vf(e){if(!e)return"";const t=String(e).split(/[\\/]+/).filter(Boolean);return t.length>2?"…/"+t.slice(-2).join("/"):t.join("/")}function zb(e){if(!e||typeof e!="object")return"";for(const t of Object.values(e))if(typeof t=="string"&&t)return t;return""}const Db={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 Ob(e,t){if(!t)return"";switch(e){case"Read":case"Edit":case"MultiEdit":case"Write":return vf(t.file_path);case"NotebookEdit":return vf(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 zb(t)}}function Mb({name:e,input:t}){return(t==null?void 0:t._raw)!=null?k.jsx("pre",{className:"tool-raw",children:String(t._raw)}):e==="Edit"?k.jsx(Do,{oldText:t.old_string||"",newText:t.new_string||""}):e==="MultiEdit"&&Array.isArray(t.edits)?k.jsx(k.Fragment,{children:t.edits.map((n,r)=>k.jsx(Do,{oldText:n.old_string||"",newText:n.new_string||""},r))}):e==="Write"?k.jsx(Do,{oldText:"",newText:t.content||""}):(e==="Bash"||e==="PowerShell")&&t.description?k.jsx("div",{className:"tool-desc",children:t.description}):null}function Bb({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 k.jsxs("details",{className:`tool-result ${t?"err":""}`,open:t,children:[k.jsxs("summary",{children:[t?"✗ ":"",l.slice(0,140)]}),k.jsx("pre",{children:i})]})}function $b({block:e}){const{name:t,input:n={},result:r,done:i,isError:l}=e,o=Db[t]||{icon:"⚙",verb:t},a=Ob(t,n),s=i?l?"error":"done":"running";return k.jsxs("div",{className:`tool-card ${s}`,"data-testid":"tool-card","data-tool":t,children:[k.jsxs("div",{className:"tool-head",children:[k.jsx("span",{className:"tool-icon",children:o.icon}),k.jsx("span",{className:"tool-verb",children:o.verb}),a&&k.jsx("code",{className:"tool-target",children:a}),t==="Edit"&&n.replace_all&&k.jsx("span",{className:"tool-tag",children:"all"}),k.jsx("span",{className:"tool-status","data-status":s,children:s==="running"?k.jsx("span",{className:"tool-spinner","aria-label":"running"}):s==="error"?"✗":"✓"})]}),k.jsx(Mb,{name:t,input:n}),k.jsx(Bb,{content:r,isError:l})]})}const kf="wild-workspace.chat.v2";function Ub(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 xf(e,t,n){const r=e.findIndex(l=>l.id===t);if(r<0)return e;const i=e.slice();return i[r]=Ub(i[r],n),i}function Hb(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 Vb({role:e,capabilities:t,mode:n,token:r}){const[i,l]=O.useState(()=>{try{const S=localStorage.getItem(kf);if(S)return JSON.parse(S)}catch{}return[]}),[o,a]=O.useState(null),[s,u]=O.useState(!1),[f,c]=O.useState(""),[p,d]=O.useState(!1),h=O.useRef(null),v=O.useRef(null),w=O.useRef(!0);O.useEffect(()=>{try{localStorage.setItem(kf,JSON.stringify(i.slice(-120)))}catch{}},[i]),O.useEffect(()=>{const S=v.current;S&&w.current&&(S.scrollTop=S.scrollHeight)},[i]);function m(){const S=v.current;S&&(w.current=S.scrollHeight-S.scrollTop-S.clientHeight<90)}O.useEffect(()=>{const S=window.location.protocol==="https:"?"wss":"ws",T=new URL(`${S}://${window.location.host}/ws/chat`);r&&T.searchParams.set("t",r);const I=new WebSocket(T.toString());return h.current=I,I.onopen=()=>d(!0),I.onmessage=R=>{let E;try{E=JSON.parse(R.data)}catch{return}E.type==="chunk"?l(L=>xf(L,E.messageId,E.chunk)):E.type==="stderr"?l(L=>Hb(L,E.messageId,E.text)):E.type==="end"?(a(null),u(!1)):E.type==="error"&&(a(null),u(!1),E.messageId?l(L=>xf(L,E.messageId,{type:"error",message:E.message||"agent error"})):l(L=>[...L,{id:`err-${Date.now()}`,role:"error",text:E.message||"agent error"}]))},I.onerror=()=>u(!1),I.onclose=()=>{d(!1),u(!1),a(null)},()=>{try{I.close()}catch{}}},[r]);function g(){if(!t.chatWrite)return;const S=f.trim();if(!S||s)return;const T=h.current;if(!T||T.readyState!==WebSocket.OPEN){l(R=>[...R,{id:`err-${Date.now()}`,role:"error",text:"agent connection not ready — try again in a moment"}]);return}const I=`m-${Date.now()}`;w.current=!0,l(R=>[...R,{id:`u-${I}`,role:"user",text:S},{id:I,role:"agent",blocks:[]}]),a(I),u(!0),c(""),T.send(JSON.stringify({type:"send",text:S,mode:n,messageId:I}))}function y(){var S;((S=h.current)==null?void 0:S.readyState)===WebSocket.OPEN&&h.current.send(JSON.stringify({type:"cancel"})),u(!1),a(null)}function C(S){S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),g())}const _=i.length===0;return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"chat-messages",ref:v,onScroll:m,"data-testid":"chat-messages",children:[_&&k.jsx(Yb,{role:e,connected:p}),i.map(S=>k.jsx(Wb,{message:S,streaming:S.id===o},S.id))]}),t.chatWrite&&k.jsxs("div",{className:"chat-input","data-testid":"chat-input",children:[k.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:S=>c(S.target.value),onKeyDown:C,disabled:s,rows:2}),s?k.jsx("button",{onClick:y,"data-testid":"cancel-btn",children:"Stop"}):k.jsx("button",{className:"primary send-btn",onClick:g,disabled:!f.trim(),"data-testid":"send-btn",children:"Send"})]}),!t.chatWrite&&e==="viewer"&&k.jsx("div",{className:"chat-readonly-banner",children:"You’re viewing a shared workspace (read-only)."})]})}function Wb({message:e,streaming:t}){if(e.role==="user")return k.jsx("div",{className:"chat-msg user","data-testid":"chat-msg-user",children:k.jsx("div",{className:"msg-plain",children:e.text})});if(e.role==="error")return k.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 k.jsxs("div",{className:"chat-msg agent","data-testid":"chat-msg-agent",children:[n.map((o,a)=>k.jsx(Gb,{block:o,cursor:a===i},o.id||`${o.type}-${a}`)),l&&k.jsx(Qb,{}),e.usage&&k.jsx(qb,{usage:e.usage,costUsd:e.costUsd,durationMs:e.durationMs}),e.stderr&&k.jsxs("details",{className:"stderr-block",children:[k.jsx("summary",{children:"stderr"}),k.jsx("pre",{children:e.stderr})]})]})}function Gb({block:e,cursor:t}){return e.type==="text"?k.jsxs("div",{className:"agent-text",children:[k.jsx(Ib,{text:e.text}),t&&k.jsx("span",{className:"stream-cursor"})]}):e.type==="thinking"?k.jsxs("details",{className:"thinking-block",children:[k.jsx("summary",{children:"💭 Thought process"}),k.jsx("div",{className:"thinking-body",children:e.text})]}):e.type==="tool"?k.jsx($b,{block:e}):e.type==="error"?k.jsxs("div",{className:"agent-error",children:["⚠ ",e.text]}):null}function Qb(){return k.jsxs("div",{className:"agent-working","data-testid":"agent-working",children:[k.jsxs("span",{className:"dots",children:[k.jsx("i",{}),k.jsx("i",{}),k.jsx("i",{})]}),"working"]})}function qb({usage:e,costUsd:t,durationMs:n}){const r=typeof t=="number"?t:e==null?void 0:e.cost_usd;return k.jsxs("div",{className:"usage-footer","data-testid":"usage-footer",children:[(e==null?void 0:e.output_tokens)!=null&&k.jsxs("span",{title:"output tokens",children:["↑ ",e.output_tokens.toLocaleString()]}),typeof r=="number"&&r>0&&k.jsxs("span",{title:"cost (USD)",children:["$",r.toFixed(4)]}),n!=null&&k.jsxs("span",{children:[(n/1e3).toFixed(1),"s"]})]})}function Yb({role:e,connected:t}){return k.jsxs("div",{className:"chat-empty","data-testid":"chat-empty",children:[k.jsx("div",{className:"chat-empty-mark",children:"✦"}),k.jsx("p",{className:"chat-empty-title",children:e==="client"?"Describe what you’d like changed":"Build something by chatting"}),k.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"&&k.jsxs("div",{className:"chat-empty-hints",children:[k.jsx("span",{children:"“What’s in this workspace?”"}),k.jsx("span",{children:"“Build a landing page in /web”"}),k.jsx("span",{children:"“Fix the failing test”"})]}),!t&&k.jsx("p",{className:"chat-empty-warn",children:"connecting to the agent bridge…"})]})}function Kb({onCollapse:e,workspaceRoot:t,onOpen:n}){const[r,i]=O.useState(null),[l,o]=O.useState(null),[a,s]=O.useState(new Set);O.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(p=>{const d=new Set(p);return d.has(c)?d.delete(c):d.add(c),d})}function f(c,p=0){var v;const d=c.type==="dir",h=a.has(c.path);return k.jsxs("div",{children:[k.jsxs("div",{className:`tree-node ${d?"dir":""}`,onClick:()=>d?u(c.path):n==null?void 0:n(c.path),style:{paddingLeft:p*12+4},"data-testid":`tree-node-${c.path}`,children:[k.jsx("span",{style:{width:12,display:"inline-block"},children:d?h?"▾":"▸":" "}),k.jsx("span",{children:c.name})]}),d&&h&&((v=c.children)==null?void 0:v.map(w=>f(w,p+1)))]},c.path)}return k.jsxs("aside",{className:"tree-pane","data-testid":"file-tree",children:[k.jsxs("div",{className:"tree-header",children:[k.jsx("span",{children:"Files"}),k.jsx("button",{onClick:e,style:{padding:"2px 6px",fontSize:11},children:"⟨"})]}),k.jsxs("div",{className:"tree-list",children:[l&&k.jsx("div",{style:{color:"var(--error)",padding:4},children:l}),!r&&!l&&k.jsxs("div",{style:{color:"var(--text-muted)",padding:4},children:[k.jsx("span",{className:"spinner"})," loading…"]}),(r==null?void 0:r.length)===0&&k.jsx("div",{style:{color:"var(--text-muted)",padding:4},children:"Empty workspace"}),r==null?void 0:r.map(c=>f(c,0))]})]})}const Xb=[{id:"preview",label:"Preview"},{id:"code",label:"Code"},{id:"logs",label:"Logs"},{id:"deploy",label:"Deploy"}];function Zb({focus:e,workspaceRoot:t}){const[n,r]=O.useState("preview"),[i,l]=O.useState([]),[o,a]=O.useState(null),[s,u]=O.useState("3000"),[f,c]=O.useState(null);return O.useEffect(()=>{e&&(r("code"),fetch(`/api/workspace/file?path=${encodeURIComponent(e)}`).then(p=>p.json()).then(p=>c(p)))},[e]),O.useEffect(()=>{if(n!=="preview")return;let p=!1;async function d(){var m;const v=await fetch("/api/preview/ports").catch(()=>null);if(!v||p)return;const w=await v.json();p||(l(w.ports||[]),!o&&((m=w.ports)==null?void 0:m.length)>0&&a(w.ports[0].port))}d();const h=setInterval(d,4e3);return()=>{p=!0,clearInterval(h)}},[n,o]),k.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[k.jsxs("div",{className:"preview-tabs","data-testid":"preview-tabs",children:[Xb.map(p=>k.jsx("button",{className:n===p.id?"active":"",onClick:()=>r(p.id),"data-testid":`preview-tab-${p.id}`,children:p.label},p.id)),k.jsx("span",{style:{flex:1}}),n==="preview"&&k.jsxs("div",{className:"preview-port-input",children:[k.jsx("input",{value:s,onChange:p=>u(p.target.value),placeholder:"port","data-testid":"preview-port-input"}),k.jsx("button",{onClick:()=>a(Number(s)),"data-testid":"preview-port-go",children:"Load"})]})]}),k.jsxs("div",{className:"preview-body",children:[n==="preview"&&(o?k.jsx("iframe",{className:"preview-iframe",src:`http://localhost:${o}`,title:`localhost:${o}`,"data-testid":"preview-iframe"},o):k.jsxs("div",{className:"preview-empty","data-testid":"preview-empty",children:[k.jsxs("p",{style:{maxWidth:320,lineHeight:1.6},children:["No dev server detected yet. Ask the agent to start one (e.g. ",k.jsx("code",{children:"bun dev"}),", ",k.jsx("code",{children:"npm run dev"}),"), then I’ll auto-detect it."]}),i.length>0&&k.jsxs("p",{style:{fontSize:12},children:["Detected: ",i.map(p=>`:${p.port}`).join(", ")]})]})),n==="code"&&k.jsx("div",{className:"preview-code-view","data-testid":"preview-code",children:f?k.jsxs(k.Fragment,{children:[k.jsxs("div",{style:{color:"var(--text-muted)",fontSize:11,marginBottom:8},children:[e," (",f.size," bytes",f.truncated?", truncated":"",")"]}),k.jsx("pre",{children:f.content})]}):k.jsx("div",{className:"preview-empty",children:"Click a file in the tree to inspect it."})}),n==="logs"&&k.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"&&k.jsxs("div",{className:"preview-empty","data-testid":"preview-deploy",children:["Deploy — Cloudflare Pages + custom-domain wizard ships in v1.1.",k.jsx("br",{}),"For now: run ",k.jsx("code",{children:"npx wrangler pages deploy"})," in the terminal."]})]})]})}function Jb({onClose:e}){const[t,n]=O.useState("viewer"),[r,i]=O.useState(24),[l,o]=O.useState(""),[a,s]=O.useState(null),[u,f]=O.useState([]),[c,p]=O.useState(null),[d,h]=O.useState(!1);O.useEffect(()=>{v()},[]);async function v(){const y=await fetch("/api/share").catch(()=>null);if(!y||!y.ok)return;const C=await y.json();f(C.tokens||[])}async function w(){p(null),h(!0);try{const y=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})}),C=await y.json();if(!y.ok)throw new Error(C.error||`HTTP ${y.status}`);s(C),v()}catch(y){p(y.message||String(y))}finally{h(!1)}}async function m(y){await fetch(`/api/share/${encodeURIComponent(y)}`,{method:"DELETE"}),v()}async function g(y){try{await navigator.clipboard.writeText(y)}catch{}}return k.jsx("div",{className:"modal-backdrop",onClick:e,children:k.jsxs("div",{className:"modal",onClick:y=>y.stopPropagation(),"data-testid":"share-dialog",children:[k.jsx("h2",{children:"Share workspace"}),k.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."}),k.jsx("label",{children:"Role"}),k.jsx("div",{className:"row",children:k.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[k.jsx("input",{type:"radio",name:"role",value:"viewer",checked:t==="viewer",onChange:()=>n("viewer"),"data-testid":"share-role-viewer"}),k.jsx("span",{children:"Viewer — read-only chat + preview"})]})}),k.jsx("div",{className:"row",children:k.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,color:"var(--text)"},children:[k.jsx("input",{type:"radio",name:"role",value:"client",checked:t==="client",onChange:()=>n("client"),"data-testid":"share-role-client"}),k.jsx("span",{children:"Client — chat + request changes (for AI-installer GTM)"})]})}),k.jsxs("div",{className:"row",children:[k.jsxs("div",{children:[k.jsx("label",{children:"Expires in"}),k.jsx("input",{type:"number",min:"1",value:r,onChange:y=>i(y.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"}),k.jsx("span",{style:{marginLeft:6,color:"var(--text-muted)",fontSize:12},children:"hours"})]}),k.jsxs("div",{style:{flex:1},children:[k.jsx("label",{children:"Label (optional)"}),k.jsx("input",{value:l,onChange:y=>o(y.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&&k.jsx("div",{style:{color:"var(--error)",fontSize:12,marginBottom:8},"data-testid":"share-error",children:c}),a&&k.jsxs(k.Fragment,{children:[k.jsx("label",{children:"Share URL"}),k.jsx("div",{className:"url-output","data-testid":"share-url",children:a.shareUrl}),k.jsxs("div",{style:{display:"flex",gap:8},children:[k.jsx("button",{onClick:()=>g(a.shareUrl),"data-testid":"share-copy",children:"Copy"}),k.jsx("a",{href:a.shareUrl,target:"_blank",rel:"noreferrer",children:k.jsx("button",{children:"Open"})})]})]}),u.length>0&&k.jsxs("div",{style:{marginTop:16},children:[k.jsx("label",{children:"Active share tokens"}),k.jsx("div",{style:{maxHeight:140,overflow:"auto",border:"1px solid var(--border)",borderRadius:6},children:u.map(y=>k.jsxs("div",{style:{padding:"6px 10px",borderBottom:"1px solid var(--border)",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12},"data-testid":`active-token-${y.sub}`,children:[k.jsxs("div",{children:[k.jsx("strong",{children:y.label||y.role})," ",k.jsxs("span",{style:{color:"var(--text-muted)"},children:["(",y.role,", expires ",new Date(y.exp*1e3).toLocaleString(),")"]})]}),k.jsx("button",{onClick:()=>m(y.sub),style:{fontSize:11},"data-testid":`revoke-${y.sub}`,children:"Revoke"})]},y.sub))})]}),k.jsxs("div",{className:"actions",children:[k.jsx("button",{onClick:e,"data-testid":"share-close",children:"Close"}),k.jsx("button",{className:"primary",onClick:w,disabled:d,"data-testid":"share-issue",children:d?k.jsx("span",{className:"spinner"}):"Issue URL"})]})]})})}function eE({onClose:e,token:t}){var L,D;const[n,r]=O.useState(null),[i,l]=O.useState(!1),[o,a]=O.useState(null),[s,u]=O.useState(!1),[f,c]=O.useState(""),[p,d]=O.useState(""),[h,v]=O.useState(168),[w,m]=O.useState(null);O.useEffect(()=>{y()},[]);function g(M,$={}){const U={...$.headers||{}};return t&&(U.Authorization=`Bearer ${t}`),fetch(M,{...$,headers:U})}async function y(){a(null),l(!1);const M=await g("/api/sync/status").catch(()=>null);if(!M||!M.ok){l(!0);return}r(await M.json())}async function C(M){a(null),u(!0);try{await M()}catch($){a($.message||String($))}finally{u(!1)}}const _=()=>C(async()=>{const M=await g("/api/sync/pair",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({inviteCode:f})}),$=await M.json();if(!M.ok)throw new Error($.error||`HTTP ${M.status}`);c(""),await y()}),S=()=>C(async()=>{var U,Z;const M=await g("/api/sync/invite",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectCode:(Z=(U=n==null?void 0:n.workspaces)==null?void 0:U[0])==null?void 0:Z.projectId,displayName:p,expiresHours:Math.max(1,Number(h)||168)})}),$=await M.json();if(!M.ok)throw new Error($.error||`HTTP ${M.status}`);m($.invite)}),T=()=>C(async()=>{var U,Z;const M=await g("/api/sync/detach",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({workspaceId:(Z=(U=n==null?void 0:n.workspaces)==null?void 0:U[0])==null?void 0:Z.workspaceId})}),$=await M.json();if(!M.ok)throw new Error($.error||`HTTP ${M.status}`);m(null),await y()});async function I(M){try{await navigator.clipboard.writeText(M)}catch{}}const R=((L=n==null?void 0:n.workspaces)==null?void 0:L[0])||null,E=!!n&&!((D=n.daemon)!=null&&D.running);return k.jsx("div",{className:"modal-backdrop",onClick:e,children:k.jsxs("div",{className:"modal",onClick:M=>M.stopPropagation(),"data-testid":"sync-dialog",children:[k.jsx("h2",{children:"Collaborate on this folder"}),k.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&&k.jsxs("div",{className:"muted",children:[k.jsx("span",{className:"spinner"})," Checking sync status…"]}),i&&k.jsxs("div",{className:"sync-state warn","data-testid":"sync-load-failed",children:[k.jsx("strong",{children:"Couldn't load sync status."}),k.jsx("span",{className:"muted",children:"The workspace server didn't answer. Try again."})]}),E&&k.jsxs("div",{className:"sync-state warn","data-testid":"sync-daemon-down",children:[k.jsx("strong",{children:"The bmo-sync daemon isn't running."}),k.jsx("span",{className:"muted",children:"Folder sharing needs the background sync service running on this machine. Start it, then recheck."})]}),n&&!E&&!R&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"sync-state","data-testid":"sync-unpaired",children:[k.jsxs("strong",{children:[n.workspaceName," isn't shared yet."]}),k.jsx("span",{className:"muted",children:"Got an invite code from a collaborator? Paste it to sync this folder with theirs."})]}),k.jsx("label",{children:"Invite code"}),k.jsxs("div",{className:"row",children:[k.jsx("input",{className:"sync-input",style:{flex:1},value:f,onChange:M=>c(M.target.value),placeholder:"e.g. CAFE-MILANO-A8X3","data-testid":"sync-invite-input"}),k.jsx("button",{className:"primary",onClick:_,disabled:s||!f.trim(),"data-testid":"sync-join",children:s?k.jsx("span",{className:"spinner"}):"Connect folder"})]})]}),n&&!E&&R&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"sync-state ok","data-testid":"sync-paired",children:[k.jsxs("strong",{children:["✓ Synced — ",R.projectName||R.projectId]}),k.jsxs("span",{className:"muted",children:["This folder is shared. Edits sync both ways automatically",R.conflictCount?` · ${R.conflictCount} conflict${R.conflictCount>1?"s":""} resolved`:"","."]})]}),n.canInvite?k.jsxs(k.Fragment,{children:[k.jsx("label",{children:"Invite a collaborator"}),k.jsxs("div",{className:"row",children:[k.jsx("input",{className:"sync-input",style:{flex:1},value:p,onChange:M=>d(M.target.value),placeholder:"Their name — e.g. Mel","data-testid":"sync-invite-name"}),k.jsx("input",{className:"sync-input",style:{width:64},type:"number",min:"1",value:h,onChange:M=>v(M.target.value),title:"Invite expires in (hours)"}),k.jsx("button",{onClick:S,disabled:s,"data-testid":"sync-create-invite",children:s?k.jsx("span",{className:"spinner"}):"Create invite"})]}),w&&k.jsxs(k.Fragment,{children:[k.jsx("label",{children:"Send this code to your collaborator"}),k.jsx("div",{className:"url-output","data-testid":"sync-invite-code",children:w.code}),k.jsxs("div",{className:"row",style:{marginBottom:0},children:[k.jsx("button",{onClick:()=>I(w.code),"data-testid":"sync-copy-code",children:"Copy code"}),w.expiresAt&&k.jsxs("span",{className:"muted",style:{margin:0},children:["expires ",new Date(w.expiresAt*1e3).toLocaleDateString()]})]})]})]}):k.jsxs("p",{className:"muted","data-testid":"sync-no-invite",children:["Inviting from here needs a bmo-sync admin key (set"," ",k.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&&k.jsx("div",{style:{color:"var(--error)",fontSize:12,marginTop:8},"data-testid":"sync-error",children:o}),k.jsxs("div",{className:"actions",children:[(E||i)&&k.jsx("button",{onClick:y,disabled:s,"data-testid":"sync-recheck",children:"Recheck"}),R&&!E&&k.jsx("button",{onClick:T,disabled:s,"data-testid":"sync-disconnect",children:"Disconnect"}),k.jsx("button",{onClick:e,"data-testid":"sync-close",children:"Close"})]})]})})}function tE({alert:e,onDismiss:t}){if(!e)return null;const n=e.kind==="fatal";return k.jsxs("div",{className:"conflict-banner","data-testid":"conflict-banner",role:"status",children:[k.jsx("span",{className:"ico",children:n?"⛔":"⚠️"}),n?k.jsxs("span",{children:[k.jsx("strong",{children:"Sync stopped."})," ",e.message||"The sync engine hit a fatal error."," Reconnect from the Collaborate dialog."]}):k.jsxs("span",{children:[k.jsx("strong",{children:"Sync conflict"})," on ",k.jsx("code",{children:e.path||"a file"})," — bmo-sync kept ",k.jsx("strong",{children:e.resolution||"the latest edit"}),e.user?` (also edited by ${e.user})`:"","."]}),k.jsx("span",{className:"spacer"}),k.jsx("button",{onClick:t,"data-testid":"conflict-dismiss",children:"Dismiss"})]})}function nE({role:e,urlToken:t,onSyncAlert:n}){const[r,i]=O.useState([]),[l,o]=O.useState({tokensIn:0,tokensOut:0,costUsd:0}),[a,s]=O.useState([]),[u,f]=O.useState(!1),[c,p]=O.useState(null);O.useEffect(()=>{if(e!=="partner")return;const m=t?{Authorization:`Bearer ${t}`}:{};fetch("/api/sync/status",{headers:m}).then(g=>g.ok?g.json():null).then(g=>{var y;g&&p({paired:!!g.paired,daemonRunning:!!((y=g.daemon)!=null&&y.running),peer:null})}).catch(()=>{})},[e,t]),O.useEffect(()=>{const m=window.location.protocol==="https:"?"wss":"ws",g=new URL(`${m}://${window.location.host}/ws/activity`);t&&g.searchParams.set("t",t);const y=new WebSocket(g.toString());return y.onopen=()=>f(!0),y.onclose=()=>f(!1),y.onmessage=C=>{let _;try{_=JSON.parse(C.data)}catch{return}_.type==="snapshot"?(i(_.snapshot.presence||[]),o(_.snapshot.usage||{tokensIn:0,tokensOut:0,costUsd:0}),s(_.snapshot.recent||[])):(s(S=>[...S.slice(-49),_]),d(_))},()=>{try{y.close()}catch{}}},[t]);function d(m){m.type==="daemon-status"?p(g=>({...g||{paired:!1},daemonRunning:!!m.connected})):m.type==="sync-paired"?p(g=>({...g||{},paired:!0,daemonRunning:!0})):m.type==="sync-detached"?p(g=>({...g||{},paired:!1,peer:null})):m.type==="remote-presence"?p(g=>({...g||{paired:!0},peer:m.user||null})):m.type==="sync-conflict"?n==null||n({kind:"conflict",path:m.path,resolution:m.resolution,user:m.conflictingUser}):m.type==="sync-fatal"&&(n==null||n({kind:"fatal",message:m.message}))}const h=[...a].reverse().find(m=>m.type==="chat-stream"||m.type==="chat-user"||m.type==="chat-end"),v=a.find(m=>m.type==="inbox-change");let w=null;return c!=null&&c.paired&&(w=c.daemonRunning?k.jsxs("span",{className:"pill synced","data-testid":"activity-sync",children:["⇄ Synced",c.peer?` · with ${c.peer}`:""]}):k.jsx("span",{className:"pill sync-off","data-testid":"activity-sync",children:"⇄ Sync paused"})),k.jsxs("footer",{className:"bottombar","data-testid":"activity-bar",children:[k.jsx("span",{className:`pill ${u?"live":""}`,"data-testid":"activity-connected",children:u?"live":"reconnecting…"}),k.jsxs("span",{className:"pill","data-testid":"activity-presence",children:["👥 ",r.length," viewing"]}),w,k.jsxs("span",{className:"pill","data-testid":"activity-usage",children:["↓",l.tokensIn," ↑",l.tokensOut," · $",(l.costUsd||0).toFixed(3)]}),h&&k.jsx("span",{className:"pill",style:{maxWidth:380,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-testid":"activity-last",children:h.type==="chat-end"?"✓ agent finished":"… agent streaming"}),v&&k.jsx("span",{className:"pill","data-testid":"activity-inbox",children:"📦 inbox updated"}),k.jsx("span",{style:{flex:1}}),k.jsxs("span",{style:{fontSize:11},children:["v0.1.0 · ",e]})]})}function rE(){var r;const[e,t]=O.useState(null);if(O.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:k.jsxs("div",{className:"inbox-card","data-testid":"inbox-card",children:["📦 ",k.jsx("strong",{children:"Component inbox"}),": ",n.length," pending integration",n.length!==1?"s":"",": ",n.join(", "),".",k.jsxs("span",{className:"muted",children:["Ask the agent: ",k.jsxs("em",{children:["“walk me through integrating ",n[0],"”"]})]})]})}const iE={partner:"Partner",viewer:"Viewer",client:"Client"};function lE(){const[e,t]=O.useState(null),[n,r]=O.useState(null),[i,l]=O.useState(!1),[o,a]=O.useState(!1),[s,u]=O.useState(null),[f,c]=O.useState(!1),[p,d]=O.useState(!1),[h,v]=O.useState("build"),[w,m]=O.useState(null),g=O.useMemo(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("t"),[]);if(O.useEffect(()=>{async function R(){try{const E={};g&&(E.Authorization=`Bearer ${g}`);const L=await fetch("/api/session",{headers:E});if(!L.ok)throw new Error(`session fetch failed: ${L.status}`);const D=await L.json();t(D)}catch(E){r(E.message||String(E))}}R()},[g]),n)return k.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:k.jsxs("div",{style:{padding:24},children:[k.jsx("h2",{children:"wild-workspace"}),k.jsxs("p",{style:{color:"var(--error)"},children:["Could not load session: ",n]}),k.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 k.jsx("div",{className:"app",style:{gridTemplateRows:"1fr",alignItems:"center",justifyItems:"center"},children:k.jsxs("div",{style:{padding:24,color:"var(--text-muted)"},children:[k.jsx("span",{className:"spinner"})," Loading workspace…"]})});const{role:y,capabilities:C,workspace:_,workspaceId:S,agent:T}=e,I=["workspace"];return C.fileTree?f&&I.push("collapsed-tree"):I.push("no-tree"),C.preview||I.push("no-preview"),k.jsxs("div",{className:"app",children:[k.jsxs("header",{className:"topbar","data-testid":"topbar",children:[k.jsx("span",{className:"brand",children:"wild-workspace"}),k.jsx("span",{className:`badge ${y}`,"data-testid":"role-badge",children:iE[y]||y}),k.jsx("span",{className:"badge","data-testid":"workspace-name",children:(_==null?void 0:_.name)||S}),T&&k.jsx("span",{className:"badge","data-testid":"agent-name",children:T.label||T.id}),k.jsx("span",{className:"spacer"}),C.sync&&k.jsx("button",{onClick:()=>a(!0),"data-testid":"collaborate-btn",children:"Collaborate"}),C.share&&k.jsx("button",{onClick:()=>l(!0),"data-testid":"share-btn",children:"Share"}),C.terminal&&k.jsx("button",{onClick:()=>d(R=>!R),"data-testid":"terminal-toggle",children:p?"Hide terminal":"Terminal"})]}),k.jsxs("main",{className:I.join(" "),children:[C.fileTree&&!f&&k.jsx(Kb,{onCollapse:()=>c(!0),workspaceRoot:_==null?void 0:_.path,onOpen:m}),C.fileTree&&f&&k.jsx("aside",{className:"tree-collapsed-rail",children:k.jsx("button",{onClick:()=>c(!1),title:"Show file tree",children:"≡"})}),k.jsxs("section",{className:"chat-pane","data-testid":"chat-pane",children:[k.jsxs("div",{className:"chat-header","data-testid":"chat-header",children:[k.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Chat"}),C.chatWrite&&k.jsxs("span",{className:"chat-mode-toggle","data-testid":"mode-toggle",children:[k.jsx("button",{className:h==="build"?"active":"",onClick:()=>v("build"),"data-testid":"mode-build",children:"Build"}),k.jsx("button",{className:h==="plan"?"active":"",onClick:()=>v("plan"),"data-testid":"mode-plan",children:"Plan"})]}),k.jsx("span",{className:"spacer"}),k.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:T!=null&&T.available?`via ${T.label}`:"no agent installed — install Claude Code (npm i -g @anthropic-ai/claude-code)"})]}),C.inbox&&k.jsx(rE,{}),k.jsx(Vb,{role:y,capabilities:C,mode:h,token:g})]}),C.preview&&k.jsx("section",{className:"preview-pane","data-testid":"preview-pane",children:k.jsx(Zb,{focus:w,workspaceRoot:_==null?void 0:_.path})})]}),k.jsx(nE,{role:y,capabilities:C,session:e,urlToken:g,onSyncAlert:u}),k.jsx(tE,{alert:s,onDismiss:()=>u(null)}),i&&k.jsx(Jb,{onClose:()=>l(!1),workspaceId:S}),o&&k.jsx(eE,{onClose:()=>a(!1),token:g}),p&&k.jsxs("div",{className:"terminal-overlay","data-testid":"terminal-overlay",children:[k.jsxs("header",{children:[k.jsx("strong",{children:"Terminal (preview)"}),k.jsx("button",{onClick:()=>d(!1),children:"close"})]}),k.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."})]})]})}Oo.createRoot(document.getElementById("root")).render(k.jsx(gg.StrictMode,{children:k.jsx(lE,{})}));