UNPKG

rp-markdown-docs

Version:

A modern, beautiful documentation generator that converts markdown files into interactive HTML documentation sites

1,711 lines 891 kB
(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 a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x1={exports:{}},Zl={},S1={exports:{}},Ee={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var js=Symbol.for("react.element"),eS=Symbol.for("react.portal"),tS=Symbol.for("react.fragment"),nS=Symbol.for("react.strict_mode"),rS=Symbol.for("react.profiler"),iS=Symbol.for("react.provider"),aS=Symbol.for("react.context"),sS=Symbol.for("react.forward_ref"),oS=Symbol.for("react.suspense"),lS=Symbol.for("react.memo"),uS=Symbol.for("react.lazy"),yp=Symbol.iterator;function cS(e){return e===null||typeof e!="object"?null:(e=yp&&e[yp]||e["@@iterator"],typeof e=="function"?e:null)}var v1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C1=Object.assign,A1={};function da(e,t,n){this.props=e,this.context=t,this.refs=A1,this.updater=n||v1}da.prototype.isReactComponent={};da.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")};da.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function k1(){}k1.prototype=da.prototype;function Cf(e,t,n){this.props=e,this.context=t,this.refs=A1,this.updater=n||v1}var Af=Cf.prototype=new k1;Af.constructor=Cf;C1(Af,da.prototype);Af.isPureReactComponent=!0;var Tp=Array.isArray,N1=Object.prototype.hasOwnProperty,kf={current:null},w1={key:!0,ref:!0,__self:!0,__source:!0};function I1(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)N1.call(t,r)&&!w1.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:js,type:e,key:a,ref:s,props:i,_owner:kf.current}}function dS(e,t){return{$$typeof:js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nf(e){return typeof e=="object"&&e!==null&&e.$$typeof===js}function fS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _p=/\/+/g;function Pu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fS(""+e.key):t.toString(36)}function Ho(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case js:case eS:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Pu(s,0):r,Tp(i)?(n="",e!=null&&(n=e.replace(_p,"$&/")+"/"),Ho(i,t,n,"",function(u){return u})):i!=null&&(Nf(i)&&(i=dS(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_p,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Tp(e))for(var o=0;o<e.length;o++){a=e[o];var l=r+Pu(a,o);s+=Ho(a,t,n,l,i)}else if(l=cS(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=r+Pu(a,o++),s+=Ho(a,t,n,l,i);else if(a==="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 s}function so(e,t,n){if(e==null)return e;var r=[],i=0;return Ho(e,r,"","",function(a){return t.call(n,a,i++)}),r}function hS(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 St={current:null},zo={transition:null},pS={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:zo,ReactCurrentOwner:kf};function O1(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:so,forEach:function(e,t,n){so(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return so(e,function(){t++}),t},toArray:function(e){return so(e,function(t){return t})||[]},only:function(e){if(!Nf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ee.Component=da;Ee.Fragment=tS;Ee.Profiler=rS;Ee.PureComponent=Cf;Ee.StrictMode=nS;Ee.Suspense=oS;Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pS;Ee.act=O1;Ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C1({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=kf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)N1.call(t,l)&&!w1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:js,type:e.type,key:i,ref:a,props:r,_owner:s}};Ee.createContext=function(e){return e={$$typeof:aS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:iS,_context:e},e.Consumer=e};Ee.createElement=I1;Ee.createFactory=function(e){var t=I1.bind(null,e);return t.type=e,t};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(e){return{$$typeof:sS,render:e}};Ee.isValidElement=Nf;Ee.lazy=function(e){return{$$typeof:uS,_payload:{_status:-1,_result:e},_init:hS}};Ee.memo=function(e,t){return{$$typeof:lS,type:e,compare:t===void 0?null:t}};Ee.startTransition=function(e){var t=zo.transition;zo.transition={};try{e()}finally{zo.transition=t}};Ee.unstable_act=O1;Ee.useCallback=function(e,t){return St.current.useCallback(e,t)};Ee.useContext=function(e){return St.current.useContext(e)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(e){return St.current.useDeferredValue(e)};Ee.useEffect=function(e,t){return St.current.useEffect(e,t)};Ee.useId=function(){return St.current.useId()};Ee.useImperativeHandle=function(e,t,n){return St.current.useImperativeHandle(e,t,n)};Ee.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};Ee.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};Ee.useMemo=function(e,t){return St.current.useMemo(e,t)};Ee.useReducer=function(e,t,n){return St.current.useReducer(e,t,n)};Ee.useRef=function(e){return St.current.useRef(e)};Ee.useState=function(e){return St.current.useState(e)};Ee.useSyncExternalStore=function(e,t,n){return St.current.useSyncExternalStore(e,t,n)};Ee.useTransition=function(){return St.current.useTransition()};Ee.version="18.3.1";S1.exports=Ee;var V=S1.exports;const wf=Xl(V);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mS=V,gS=Symbol.for("react.element"),ES=Symbol.for("react.fragment"),bS=Object.prototype.hasOwnProperty,yS=mS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TS={key:!0,ref:!0,__self:!0,__source:!0};function R1(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)bS.call(t,r)&&!TS.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:gS,type:e,key:a,ref:s,props:i,_owner:yS.current}}Zl.Fragment=ES;Zl.jsx=R1;Zl.jsxs=R1;x1.exports=Zl;var S=x1.exports,L1={exports:{}},Gt={},D1={exports:{}},M1={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(M,z){var _=M.length;M.push(z);e:for(;0<_;){var W=_-1>>>1,ie=M[W];if(0<i(ie,z))M[W]=z,M[_]=ie,_=W;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var z=M[0],_=M.pop();if(_!==z){M[0]=_;e:for(var W=0,ie=M.length,N=ie>>>1;W<N;){var he=2*(W+1)-1,xe=M[he],pe=he+1,Ze=M[pe];if(0>i(xe,_))pe<ie&&0>i(Ze,xe)?(M[W]=Ze,M[pe]=_,W=pe):(M[W]=xe,M[he]=_,W=he);else if(pe<ie&&0>i(Ze,_))M[W]=Ze,M[pe]=_,W=pe;else break e}}return z}function i(M,z){var _=M.sortIndex-z.sortIndex;return _!==0?_:M.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,h=3,p=!1,m=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,E=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(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function C(M){if(b=!1,y(M),!m)if(n(l)!==null)m=!0,P(O);else{var z=n(u);z!==null&&$(C,z.startTime-M)}}function O(M,z){m=!1,b&&(b=!1,g(L),L=-1),p=!0;var _=h;try{for(y(z),d=n(l);d!==null&&(!(d.expirationTime>z)||M&&!Y());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var ie=W(d.expirationTime<=z);z=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(l)&&r(l),y(z)}else r(l);d=n(l)}if(d!==null)var N=!0;else{var he=n(u);he!==null&&$(C,he.startTime-z),N=!1}return N}finally{d=null,h=_,p=!1}}var A=!1,D=null,L=-1,U=5,w=-1;function Y(){return!(e.unstable_now()-w<U)}function H(){if(D!==null){var M=e.unstable_now();w=M;var z=!0;try{z=D(!0,M)}finally{z?re():(A=!1,D=null)}}else A=!1}var re;if(typeof E=="function")re=function(){E(H)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,J=Z.port2;Z.port1.onmessage=H,re=function(){J.postMessage(null)}}else re=function(){x(H,0)};function P(M){D=M,A||(A=!0,re())}function $(M,z){L=x(function(){M(e.unstable_now())},z)}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(M){M.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,P(O))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var _=h;h=z;try{return M()}finally{h=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var _=h;h=M;try{return z()}finally{h=_}},e.unstable_scheduleCallback=function(M,z,_){var W=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?W+_:W):_=W,M){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=_+ie,M={id:c++,callback:z,priorityLevel:M,startTime:_,expirationTime:ie,sortIndex:-1},_>W?(M.sortIndex=_,t(u,M),n(l)===null&&M===n(u)&&(b?(g(L),L=-1):b=!0,$(C,_-W))):(M.sortIndex=ie,t(l,M),m||p||(m=!0,P(O))),M},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(M){var z=h;return function(){var _=h;h=z;try{return M.apply(this,arguments)}finally{h=_}}}})(M1);D1.exports=M1;var _S=D1.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xS=V,jt=_S;function K(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 P1=new Set,Es={};function oi(e,t){Zi(e,t),Zi(e+"Capture",t)}function Zi(e,t){for(Es[e]=t,e=0;e<t.length;e++)P1.add(t[e])}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gc=Object.prototype.hasOwnProperty,SS=/^[: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]*$/,xp={},Sp={};function vS(e){return Gc.call(Sp,e)?!0:Gc.call(xp,e)?!1:SS.test(e)?Sp[e]=!0:(xp[e]=!0,!1)}function CS(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 AS(e,t,n,r){if(t===null||typeof t>"u"||CS(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 vt(e,t,n,r,i,a,s){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=a,this.removeEmptyString=s}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new vt(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){at[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var If=/[\-:]([a-z])/g;function Of(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(If,Of);at[t]=new vt(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(If,Of);at[t]=new vt(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(If,Of);at[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rf(e,t,n,r){var i=at.hasOwnProperty(t)?at[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(AS(t,n,i,r)&&(n=null),r||i===null?vS(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 Kn=xS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oo=Symbol.for("react.element"),Ai=Symbol.for("react.portal"),ki=Symbol.for("react.fragment"),Lf=Symbol.for("react.strict_mode"),Wc=Symbol.for("react.profiler"),B1=Symbol.for("react.provider"),F1=Symbol.for("react.context"),Df=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),Mf=Symbol.for("react.memo"),ir=Symbol.for("react.lazy"),U1=Symbol.for("react.offscreen"),vp=Symbol.iterator;function ka(e){return e===null||typeof e!="object"?null:(e=vp&&e[vp]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Object.assign,Bu;function $a(e){if(Bu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||""}return`
`+Bu+e}var Fu=!1;function Uu(e,t){if(!e||Fu)return"";Fu=!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(`
`),a=r.stack.split(`
`),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$a(e):""}function kS(e){switch(e.tag){case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return $a("Suspense");case 19:return $a("SuspenseList");case 0:case 2:case 15:return e=Uu(e.type,!1),e;case 11:return e=Uu(e.type.render,!1),e;case 1:return e=Uu(e.type,!0),e;default:return""}}function qc(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 ki:return"Fragment";case Ai:return"Portal";case Wc:return"Profiler";case Lf:return"StrictMode";case Yc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F1:return(e.displayName||"Context")+".Consumer";case B1:return(e._context.displayName||"Context")+".Provider";case Df:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mf:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case ir:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function NS(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 qc(t);case 8:return t===Lf?"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 Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function H1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wS(e){var t=H1(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=wS(e))}function z1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 Qc(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(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 V1(e,t){t=t.checked,t!=null&&Rf(e,"checked",t,!1)}function Xc(e,t){V1(e,t);var n=Sr(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")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ap(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 Zc(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ga=Array.isArray;function ji(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=""+Sr(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 Jc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(Ga(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sr(n)}}function j1(e,t){var n=Sr(t.value),r=Sr(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 Np(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $1(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 ed(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uo,G1=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(uo=uo||document.createElement("div"),uo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qa={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},IS=["Webkit","ms","Moz","O"];Object.keys(Qa).forEach(function(e){IS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qa[t]=Qa[e]})});function W1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qa.hasOwnProperty(e)&&Qa[e]?(""+t).trim():t+"px"}function Y1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=W1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var OS=Fe({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 td(e,t){if(t){if(OS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function nd(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 rd=null;function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var id=null,$i=null,Gi=null;function wp(e){if(e=Ws(e)){if(typeof id!="function")throw Error(K(280));var t=e.stateNode;t&&(t=ru(t),id(e.stateNode,e.type,t))}}function K1(e){$i?Gi?Gi.push(e):Gi=[e]:$i=e}function q1(){if($i){var e=$i,t=Gi;if(Gi=$i=null,wp(e),t)for(e=0;e<t.length;e++)wp(t[e])}}function Q1(e,t){return e(t)}function X1(){}var Hu=!1;function Z1(e,t,n){if(Hu)return e(t,n);Hu=!0;try{return Q1(e,t,n)}finally{Hu=!1,($i!==null||Gi!==null)&&(X1(),q1())}}function ys(e,t){var n=e.stateNode;if(n===null)return null;var r=ru(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(K(231,t,typeof n));return n}var ad=!1;if(Vn)try{var Na={};Object.defineProperty(Na,"passive",{get:function(){ad=!0}}),window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{ad=!1}function RS(e,t,n,r,i,a,s,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Xa=!1,sl=null,ol=!1,sd=null,LS={onError:function(e){Xa=!0,sl=e}};function DS(e,t,n,r,i,a,s,o,l){Xa=!1,sl=null,RS.apply(LS,arguments)}function MS(e,t,n,r,i,a,s,o,l){if(DS.apply(this,arguments),Xa){if(Xa){var u=sl;Xa=!1,sl=null}else throw Error(K(198));ol||(ol=!0,sd=u)}}function li(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 J1(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 Ip(e){if(li(e)!==e)throw Error(K(188))}function PS(e){var t=e.alternate;if(!t){if(t=li(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ip(i),e;if(a===r)return Ip(i),t;a=a.sibling}throw Error(K(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function eE(e){return e=PS(e),e!==null?tE(e):null}function tE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tE(e);if(t!==null)return t;e=e.sibling}return null}var nE=jt.unstable_scheduleCallback,Op=jt.unstable_cancelCallback,BS=jt.unstable_shouldYield,FS=jt.unstable_requestPaint,ze=jt.unstable_now,US=jt.unstable_getCurrentPriorityLevel,Bf=jt.unstable_ImmediatePriority,rE=jt.unstable_UserBlockingPriority,ll=jt.unstable_NormalPriority,HS=jt.unstable_LowPriority,iE=jt.unstable_IdlePriority,Jl=null,Sn=null;function zS(e){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Jl,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:$S,VS=Math.log,jS=Math.LN2;function $S(e){return e>>>=0,e===0?32:31-(VS(e)/jS|0)|0}var co=64,fo=4194304;function Wa(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 ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=Wa(o):(a&=s,a!==0&&(r=Wa(a)))}else s=n&~i,s!==0?r=Wa(s):a!==0&&(r=Wa(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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-dn(t),i=1<<n,r|=e[n],t&=~i;return r}function GS(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 WS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-dn(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=GS(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function od(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function aE(){var e=co;return co<<=1,!(co&4194240)&&(co=64),e}function zu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $s(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function YS(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-dn(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ff(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _e=0;function sE(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var oE,Uf,lE,uE,cE,ld=!1,ho=[],pr=null,mr=null,gr=null,Ts=new Map,_s=new Map,or=[],KS="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 Rp(e,t){switch(e){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":Ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function wa(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ws(t),t!==null&&Uf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qS(e,t,n,r,i){switch(t){case"focusin":return pr=wa(pr,e,t,n,r,i),!0;case"dragenter":return mr=wa(mr,e,t,n,r,i),!0;case"mouseover":return gr=wa(gr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ts.set(a,wa(Ts.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,_s.set(a,wa(_s.get(a)||null,e,t,n,r,i)),!0}return!1}function dE(e){var t=$r(e.target);if(t!==null){var n=li(t);if(n!==null){if(t=n.tag,t===13){if(t=J1(n),t!==null){e.blockedOn=t,cE(e.priority,function(){lE(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 Vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ud(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rd=r,n.target.dispatchEvent(r),rd=null}else return t=Ws(n),t!==null&&Uf(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Vo(e)&&n.delete(t)}function QS(){ld=!1,pr!==null&&Vo(pr)&&(pr=null),mr!==null&&Vo(mr)&&(mr=null),gr!==null&&Vo(gr)&&(gr=null),Ts.forEach(Lp),_s.forEach(Lp)}function Ia(e,t){e.blockedOn===t&&(e.blockedOn=null,ld||(ld=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,QS)))}function xs(e){function t(i){return Ia(i,e)}if(0<ho.length){Ia(ho[0],e);for(var n=1;n<ho.length;n++){var r=ho[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pr!==null&&Ia(pr,e),mr!==null&&Ia(mr,e),gr!==null&&Ia(gr,e),Ts.forEach(t),_s.forEach(t),n=0;n<or.length;n++)r=or[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<or.length&&(n=or[0],n.blockedOn===null);)dE(n),n.blockedOn===null&&or.shift()}var Wi=Kn.ReactCurrentBatchConfig,cl=!0;function XS(e,t,n,r){var i=_e,a=Wi.transition;Wi.transition=null;try{_e=1,Hf(e,t,n,r)}finally{_e=i,Wi.transition=a}}function ZS(e,t,n,r){var i=_e,a=Wi.transition;Wi.transition=null;try{_e=4,Hf(e,t,n,r)}finally{_e=i,Wi.transition=a}}function Hf(e,t,n,r){if(cl){var i=ud(e,t,n,r);if(i===null)Xu(e,t,r,dl,n),Rp(e,r);else if(qS(i,e,t,n,r))r.stopPropagation();else if(Rp(e,r),t&4&&-1<KS.indexOf(e)){for(;i!==null;){var a=Ws(i);if(a!==null&&oE(a),a=ud(e,t,n,r),a===null&&Xu(e,t,r,dl,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Xu(e,t,r,null,n)}}var dl=null;function ud(e,t,n,r){if(dl=null,e=Pf(r),e=$r(e),e!==null)if(t=li(e),t===null)e=null;else if(n=t.tag,n===13){if(e=J1(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 dl=e,null}function fE(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(US()){case Bf:return 1;case rE:return 4;case ll:case HS:return 16;case iE:return 536870912;default:return 16}default:return 16}}var ur=null,zf=null,jo=null;function hE(){if(jo)return jo;var e,t=zf,n=t.length,r,i="value"in ur?ur.value:ur.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return jo=i.slice(e,1<r?1-r:void 0)}function $o(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 po(){return!0}function Dp(){return!1}function Wt(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?po:Dp,this.isPropagationStopped=Dp,this}return Fe(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=po)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),t}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vf=Wt(fa),Gs=Fe({},fa,{view:0,detail:0}),JS=Wt(Gs),Vu,ju,Oa,eu=Fe({},Gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jf,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!==Oa&&(Oa&&e.type==="mousemove"?(Vu=e.screenX-Oa.screenX,ju=e.screenY-Oa.screenY):ju=Vu=0,Oa=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Mp=Wt(eu),ev=Fe({},eu,{dataTransfer:0}),tv=Wt(ev),nv=Fe({},Gs,{relatedTarget:0}),$u=Wt(nv),rv=Fe({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),iv=Wt(rv),av=Fe({},fa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sv=Wt(av),ov=Fe({},fa,{data:0}),Pp=Wt(ov),lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uv={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"},cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cv[e])?!!t[e]:!1}function jf(){return dv}var fv=Fe({},Gs,{key:function(e){if(e.key){var t=lv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jf,charCode:function(e){return e.type==="keypress"?$o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hv=Wt(fv),pv=Fe({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bp=Wt(pv),mv=Fe({},Gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jf}),gv=Wt(mv),Ev=Fe({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),bv=Wt(Ev),yv=Fe({},eu,{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}),Tv=Wt(yv),_v=[9,13,27,32],$f=Vn&&"CompositionEvent"in window,Za=null;Vn&&"documentMode"in document&&(Za=document.documentMode);var xv=Vn&&"TextEvent"in window&&!Za,pE=Vn&&(!$f||Za&&8<Za&&11>=Za),Fp=" ",Up=!1;function mE(e,t){switch(e){case"keyup":return _v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ni=!1;function Sv(e,t){switch(e){case"compositionend":return gE(t);case"keypress":return t.which!==32?null:(Up=!0,Fp);case"textInput":return e=t.data,e===Fp&&Up?null:e;default:return null}}function vv(e,t){if(Ni)return e==="compositionend"||!$f&&mE(e,t)?(e=hE(),jo=zf=ur=null,Ni=!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 pE&&t.locale!=="ko"?null:t.data;default:return null}}var Cv={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 Hp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cv[e.type]:t==="textarea"}function EE(e,t,n,r){K1(r),t=fl(t,"onChange"),0<t.length&&(n=new Vf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ja=null,Ss=null;function Av(e){NE(e,0)}function tu(e){var t=Oi(e);if(z1(t))return e}function kv(e,t){if(e==="change")return t}var bE=!1;if(Vn){var Gu;if(Vn){var Wu="oninput"in document;if(!Wu){var zp=document.createElement("div");zp.setAttribute("oninput","return;"),Wu=typeof zp.oninput=="function"}Gu=Wu}else Gu=!1;bE=Gu&&(!document.documentMode||9<document.documentMode)}function Vp(){Ja&&(Ja.detachEvent("onpropertychange",yE),Ss=Ja=null)}function yE(e){if(e.propertyName==="value"&&tu(Ss)){var t=[];EE(t,Ss,e,Pf(e)),Z1(Av,t)}}function Nv(e,t,n){e==="focusin"?(Vp(),Ja=t,Ss=n,Ja.attachEvent("onpropertychange",yE)):e==="focusout"&&Vp()}function wv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Ss)}function Iv(e,t){if(e==="click")return tu(t)}function Ov(e,t){if(e==="input"||e==="change")return tu(t)}function Rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pn=typeof Object.is=="function"?Object.is:Rv;function vs(e,t){if(pn(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(!Gc.call(t,i)||!pn(e[i],t[i]))return!1}return!0}function jp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $p(e,t){var n=jp(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=jp(n)}}function TE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _E(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function Gf(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 Lv(e){var t=_E(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&TE(n.ownerDocument.documentElement,n)){if(r!==null&&Gf(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$p(n,a);var s=$p(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 Dv=Vn&&"documentMode"in document&&11>=document.documentMode,wi=null,cd=null,es=null,dd=!1;function Gp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dd||wi==null||wi!==al(r)||(r=wi,"selectionStart"in r&&Gf(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}),es&&vs(es,r)||(es=r,r=fl(cd,"onSelect"),0<r.length&&(t=new Vf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wi)))}function mo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ii={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},Yu={},xE={};Vn&&(xE=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function nu(e){if(Yu[e])return Yu[e];if(!Ii[e])return e;var t=Ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xE)return Yu[e]=t[n];return e}var SE=nu("animationend"),vE=nu("animationiteration"),CE=nu("animationstart"),AE=nu("transitionend"),kE=new Map,Wp="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 kr(e,t){kE.set(e,t),oi(t,[e])}for(var Ku=0;Ku<Wp.length;Ku++){var qu=Wp[Ku],Mv=qu.toLowerCase(),Pv=qu[0].toUpperCase()+qu.slice(1);kr(Mv,"on"+Pv)}kr(SE,"onAnimationEnd");kr(vE,"onAnimationIteration");kr(CE,"onAnimationStart");kr("dblclick","onDoubleClick");kr("focusin","onFocus");kr("focusout","onBlur");kr(AE,"onTransitionEnd");Zi("onMouseEnter",["mouseout","mouseover"]);Zi("onMouseLeave",["mouseout","mouseover"]);Zi("onPointerEnter",["pointerout","pointerover"]);Zi("onPointerLeave",["pointerout","pointerover"]);oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));oi("onBeforeInput",["compositionend","keypress","textInput","paste"]);oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ya="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(" "),Bv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ya));function Yp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,MS(r,t,void 0,e),e.currentTarget=null}function NE(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 a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;Yp(i,o,u),a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;Yp(i,o,u),a=l}}}if(ol)throw e=sd,ol=!1,sd=null,e}function Oe(e,t){var n=t[gd];n===void 0&&(n=t[gd]=new Set);var r=e+"__bubble";n.has(r)||(wE(t,e,2,!1),n.add(r))}function Qu(e,t,n){var r=0;t&&(r|=4),wE(n,e,r,t)}var go="_reactListening"+Math.random().toString(36).slice(2);function Cs(e){if(!e[go]){e[go]=!0,P1.forEach(function(n){n!=="selectionchange"&&(Bv.has(n)||Qu(n,!1,e),Qu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[go]||(t[go]=!0,Qu("selectionchange",!1,t))}}function wE(e,t,n,r){switch(fE(t)){case 1:var i=XS;break;case 4:i=ZS;break;default:i=Hf}n=i.bind(null,t,n,e),i=void 0,!ad||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 Xu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=$r(o),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Z1(function(){var u=a,c=Pf(n),d=[];e:{var h=kE.get(e);if(h!==void 0){var p=Vf,m=e;switch(e){case"keypress":if($o(n)===0)break e;case"keydown":case"keyup":p=hv;break;case"focusin":m="focus",p=$u;break;case"focusout":m="blur",p=$u;break;case"beforeblur":case"afterblur":p=$u;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":p=Mp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=gv;break;case SE:case vE:case CE:p=iv;break;case AE:p=bv;break;case"scroll":p=JS;break;case"wheel":p=Tv;break;case"copy":case"cut":case"paste":p=sv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Bp}var b=(t&4)!==0,x=!b&&e==="scroll",g=b?h!==null?h+"Capture":null:h;b=[];for(var E=u,y;E!==null;){y=E;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,g!==null&&(C=ys(E,g),C!=null&&b.push(As(E,C,y)))),x)break;E=E.return}0<b.length&&(h=new p(h,m,null,n,c),d.push({event:h,listeners:b}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==rd&&(m=n.relatedTarget||n.fromElement)&&($r(m)||m[jn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?$r(m):null,m!==null&&(x=li(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(b=Mp,C="onMouseLeave",g="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(b=Bp,C="onPointerLeave",g="onPointerEnter",E="pointer"),x=p==null?h:Oi(p),y=m==null?h:Oi(m),h=new b(C,E+"leave",p,n,c),h.target=x,h.relatedTarget=y,C=null,$r(c)===u&&(b=new b(g,E+"enter",m,n,c),b.target=y,b.relatedTarget=x,C=b),x=C,p&&m)t:{for(b=p,g=m,E=0,y=b;y;y=Ti(y))E++;for(y=0,C=g;C;C=Ti(C))y++;for(;0<E-y;)b=Ti(b),E--;for(;0<y-E;)g=Ti(g),y--;for(;E--;){if(b===g||g!==null&&b===g.alternate)break t;b=Ti(b),g=Ti(g)}b=null}else b=null;p!==null&&Kp(d,h,p,b,!1),m!==null&&x!==null&&Kp(d,x,m,b,!0)}}e:{if(h=u?Oi(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=kv;else if(Hp(h))if(bE)O=Ov;else{O=wv;var A=Nv}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(O=Iv);if(O&&(O=O(e,u))){EE(d,O,n,c);break e}A&&A(e,h,u),e==="focusout"&&(A=h._wrapperState)&&A.controlled&&h.type==="number"&&Zc(h,"number",h.value)}switch(A=u?Oi(u):window,e){case"focusin":(Hp(A)||A.contentEditable==="true")&&(wi=A,cd=u,es=null);break;case"focusout":es=cd=wi=null;break;case"mousedown":dd=!0;break;case"contextmenu":case"mouseup":case"dragend":dd=!1,Gp(d,n,c);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":Gp(d,n,c)}var D;if($f)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Ni?mE(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(pE&&n.locale!=="ko"&&(Ni||L!=="onCompositionStart"?L==="onCompositionEnd"&&Ni&&(D=hE()):(ur=c,zf="value"in ur?ur.value:ur.textContent,Ni=!0)),A=fl(u,L),0<A.length&&(L=new Pp(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=gE(n),D!==null&&(L.data=D)))),(D=xv?Sv(e,n):vv(e,n))&&(u=fl(u,"onBeforeInput"),0<u.length&&(c=new Pp("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=D))}NE(d,t)})}function As(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ys(e,n),a!=null&&r.unshift(As(e,a,i)),a=ys(e,t),a!=null&&r.push(As(e,a,i))),e=e.return}return r}function Ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kp(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=ys(n,a),l!=null&&s.unshift(As(n,l,o))):i||(l=ys(n,a),l!=null&&s.push(As(n,l,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Fv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function qp(e){return(typeof e=="string"?e:""+e).replace(Fv,`
`).replace(Uv,"")}function Eo(e,t,n){if(t=qp(t),qp(e)!==t&&n)throw Error(K(425))}function hl(){}var fd=null,hd=null;function pd(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 md=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,Qp=typeof Promise=="function"?Promise:void 0,zv=typeof queueMicrotask=="function"?queueMicrotask:typeof Qp<"u"?function(e){return Qp.resolve(null).then(e).catch(Vv)}:md;function Vv(e){setTimeout(function(){throw e})}function Zu(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),xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xs(t)}function Er(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 Xp(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 ha=Math.random().toString(36).slice(2),_n="__reactFiber$"+ha,ks="__reactProps$"+ha,jn="__reactContainer$"+ha,gd="__reactEvents$"+ha,jv="__reactListeners$"+ha,$v="__reactHandles$"+ha;function $r(e){var t=e[_n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jn]||n[_n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xp(e);e!==null;){if(n=e[_n])return n;e=Xp(e)}return t}e=n,n=e.parentNode}return null}function Ws(e){return e=e[_n]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Oi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function ru(e){return e[ks]||null}var Ed=[],Ri=-1;function Nr(e){return{current:e}}function Re(e){0>Ri||(e.current=Ed[Ri],Ed[Ri]=null,Ri--)}function Ne(e,t){Ri++,Ed[Ri]=e.current,e.current=t}var vr={},ht=Nr(vr),It=Nr(!1),ei=vr;function Ji(e,t){var n=e.type.contextTypes;if(!n)return vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ot(e){return e=e.childContextTypes,e!=null}function pl(){Re(It),Re(ht)}function Zp(e,t,n){if(ht.current!==vr)throw Error(K(168));Ne(ht,t),Ne(It,n)}function IE(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(K(108,NS(e)||"Unknown",i));return Fe({},n,r)}function ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vr,ei=ht.current,Ne(ht,e),Ne(It,It.current),!0}function Jp(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=IE(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,Re(It),Re(ht),Ne(ht,e)):Re(It),Ne(It,n)}var Ln=null,iu=!1,Ju=!1;function OE(e){Ln===null?Ln=[e]:Ln.push(e)}function Gv(e){iu=!0,OE(e)}function wr(){if(!Ju&&Ln!==null){Ju=!0;var e=0,t=_e;try{var n=Ln;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ln=null,iu=!1}catch(i){throw Ln!==null&&(Ln=Ln.slice(e+1)),nE(Bf,wr),i}finally{_e=t,Ju=!1}}return null}var Li=[],Di=0,gl=null,El=0,qt=[],Qt=0,ti=null,Mn=1,Pn="";function Br(e,t){Li[Di++]=El,Li[Di++]=gl,gl=e,El=t}function RE(e,t,n){qt[Qt++]=Mn,qt[Qt++]=Pn,qt[Qt++]=ti,ti=e;var r=Mn;e=Pn;var i=32-dn(r)-1;r&=~(1<<i),n+=1;var a=32-dn(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Mn=1<<32-dn(t)+i|n<<i|r,Pn=a+e}else Mn=1<<a|n<<i|r,Pn=e}function Wf(e){e.return!==null&&(Br(e,1),RE(e,1,0))}function Yf(e){for(;e===gl;)gl=Li[--Di],Li[Di]=null,El=Li[--Di],Li[Di]=null;for(;e===ti;)ti=qt[--Qt],qt[Qt]=null,Pn=qt[--Qt],qt[Qt]=null,Mn=qt[--Qt],qt[Qt]=null}var zt=null,Ht=null,De=!1,cn=null;function LE(e,t){var n=Jt(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 em(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,zt=e,Ht=Er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zt=e,Ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ti!==null?{id:Mn,overflow:Pn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,zt=e,Ht=null,!0):!1;default:return!1}}function bd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yd(e){if(De){var t=Ht;if(t){var n=t;if(!em(e,t)){if(bd(e))throw Error(K(418));t=Er(n.nextSibling);var r=zt;t&&em(e,t)?LE(r,n):(e.flags=e.flags&-4097|2,De=!1,zt=e)}}else{if(bd(e))throw Error(K(418));e.flags=e.flags&-4097|2,De=!1,zt=e}}}function tm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zt=e}function bo(e){if(e!==zt)return!1;if(!De)return tm(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pd(e.type,e.memoizedProps)),t&&(t=Ht)){if(bd(e))throw DE(),Error(K(418));for(;t;)LE(e,t),t=Er(t.nextSibling)}if(tm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ht=Er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ht=null}}else Ht=zt?Er(e.stateNode.nextSibling):null;return!0}function DE(){for(var e=Ht;e;)e=Er(e.nextSibling)}function ea(){Ht=zt=null,De=!1}function Kf(e){cn===null?cn=[e]:cn.push(e)}var Wv=Kn.ReactCurrentBatchConfig;function Ra(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(K(309));var r=n.stateNode}if(!r)throw Error(K(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nm(e){var t=e._init;return t(e._payload)}function ME(e){function t(g,E){if(e){var y=g.deletions;y===null?(g.deletions=[E],g.flags|=16):y.push(E)}}function n(g,E){if(!e)return null;for(;E!==null;)t(g,E),E=E.sibling;return null}function r(g,E){for(g=new Map;E!==null;)E.key!==null?g.set(E.key,E):g.set(E.index,E),E=E.sibling;return g}function i(g,E){return g=_r(g,E),g.index=0,g.sibling=null,g}function a(g,E,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<E?(g.flags|=2,E):y):(g.flags|=2,E)):(g.flags|=1048576,E)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function o(g,E,y,C){return E===null||E.tag!==6?(E=sc(y,g.mode,C),E.return=g,E):(E=i(E,y),E.return=g,E)}function l(g,E,y,C){var O=y.type;return O===ki?c(g,E,y.props.children,C,y.key):E!==null&&(E.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ir&&nm(O)===E.type)?(C=i(E,y.props),C.ref=Ra(g,E,y),C.return=g,C):(C=Xo(y.type,y.key,y.props,null,g.mode,C),C.ref=Ra(g,E,y),C.return=g,C)}function u(g,E,y,C){return E===null||E.tag!==4||E.stateNode.containerInfo!==y.containerInfo||E.stateNode.implementation!==y.implementation?(E=oc(y,g.mode,C),E.return=g,E):(E=i(E,y.children||[]),E.return=g,E)}function c(g,E,y,C,O){return E===null||E.tag!==7?(E=Qr(y,g.mode,C,O),E.return=g,E):(E=i(E,y),E.return=g,E)}function d(g,E,y){if(typeof E=="string"&&E!==""||typeof E=="number")return E=sc(""+E,g.mode,y),E.return=g,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case oo:return y=Xo(E.type,E.key,E.props,null,g.mode,y),y.ref=Ra(g,null,E),y.return=g,y;case Ai:return E=oc(E,g.mode,y),E.return=g,E;case ir:var C=E._init;return d(g,C(E._payload),y)}if(Ga(E)||ka(E))return E=Qr(E,g.mode,y,null),E.return=g,E;yo(g,E)}return null}function h(g,E,y,C){var O=E!==null?E.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return O!==null?null:o(g,E,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case oo:return y.key===O?l(g,E,y,C):null;case Ai:return y.key===O?u(g,E,y,C):null;case ir:return O=y._init,h(g,E,O(y._payload),C)}if(Ga(y)||ka(y))return O!==null?null:c(g,E,y,C,null);yo(g,y)}return null}function p(g,E,y,C,O){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(y)||null,o(E,g,""+C,O);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case oo:return g=g.get(C.key===null?y:C.key)||null,l(E,g,C,O);case Ai:return g=g.get(C.key===null?y:C.key)||null,u(E,g,C,O);case ir:var A=C._init;return p(g,E,y,A(C._payload),O)}if(Ga(C)||ka(C))return g=g.get(y)||null,c(E,g,C,O,null);yo(E,C)}return null}function m(g,E,y,C){for(var O=null,A=null,D=E,L=E=0,U=null;D!==null&&L<y.length;L++){D.index>L?(U=D,D=null):U=D.sibling;var w=h(g,D,y[L],C);if(w===null){D===null&&(D=U);break}e&&D&&w.alternate===null&&t(g,D),E=a(w,E,L),A===null?O=w:A.sibling=w,A=w,D=U}if(L===y.length)return n(g,D),De&&Br(g,L),O;if(D===null){for(;L<y.length;L++)D=d(g,y[L],C),D!==null&&(E=a(D,E,L),A===null?O=D:A.sibling=D,A=D);return De&&Br(g,L),O}for(D=r(g,D);L<y.length;L++)U=p(D,g,L,y[L],C),U!==null&&(e&&U.alternate!==null&&D.delete(U.key===null?L:U.key),E=a(U,E,L),A===null?O=U:A.sibling=U,A=U);return e&&D.forEach(function(Y){return t(g,Y)}),De&&Br(g,L),O}function b(g,E,y,C){var O=ka(y);if(typeof O!="function")throw Error(K(150));if(y=O.call(y),y==null)throw Error(K(151));for(var A=O=null,D=E,L=E=0,U=null,w=y.next();D!==null&&!w.done;L++,w=y.next()){D.index>L?(U=D,D=null):U=D.sibling;var Y=h(g,D,w.value,C);if(Y===null){D===null&&(D=U);break}e&&D&&Y.alternate===null&&t(g,D),E=a(Y,E,L),A===null?O=Y:A.sibling=Y,A=Y,D=U}if(w.done)return n(g,D),De&&Br(g,L),O;if(D===null){for(;!w.done;L++,w=y.next())w=d(g,w.value,C),w!==null&&(E=a(w,E,L),A===null?O=w:A.sibling=w,A=w);return De&&Br(g,L),O}for(D=r(g,D);!w.done;L++,w=y.next())w=p(D,g,L,w.value,C),w!==null&&(e&&w.alternate!==null&&D.delete(w.key===null?L:w.key),E=a(w,E,L),A===null?O=w:A.sibling=w,A=w);return e&&D.forEach(function(H){return t(g,H)}),De&&Br(g,L),O}function x(g,E,y,C){if(typeof y=="object"&&y!==null&&y.type===ki&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case oo:e:{for(var O=y.key,A=E;A!==null;){if(A.key===O){if(O=y.type,O===ki){if(A.tag===7){n(g,A.sibling),E=i(A,y.props.children),E.return=g,g=E;break e}}else if(A.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ir&&nm(O)===A.type){n(g,A.sibling),E=i(A,y.props),E.ref=Ra(g,A,y),E.return=g,g=E;break e}n(g,A);break}else t(g,A);A=A.sibling}y.type===ki?(E=Qr(y.props.children,g.mode,C,y.key),E.return=g,g=E):(C=Xo(y.type,y.key,y.props,null,g.mode,C),C.ref=Ra(g,E,y),C.return=g,g=C)}return s(g);case Ai:e:{for(A=y.key;E!==null;){if(E.key===A)if(E.tag===4&&E.stateNode.containerInfo===y.containerInfo&&E.stateNode.implementation===y.implementation){n(g,E.sibling),E=i(E,y.children||[]),E.return=g,g=E;break e}else{n(g,E);break}else t(g,E);E=E.sibling}E=oc(y,g.mode,C),E.return=g,g=E}return s(g);case ir:return A=y._init,x(g,E,A(y._payload),C)}if(Ga(y))return m(g,E,y,C);if(ka(y))return b(g,E,y,C);yo(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,E!==null&&E.tag===6?(n(g,E.sibling),E=i(E,y),E.return=g,g=E):(n(g,E),E=sc(y,g.mode,C),E.return=g,g=E),s(g)):n(g,E)}return x}var ta=ME(!0),PE=ME(!1),bl=Nr(null),yl=null,Mi=null,qf=null;function Qf(){qf=Mi=yl=null}function Xf(e){var t=bl.current;Re(bl),e._currentValue=t}function Td(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 Yi(e,t){yl=e,qf=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wt=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(qf!==e)if(e={context:e,memoizedValue:t,next:null},Mi===null){if(yl===null)throw Error(K(308));Mi=e,yl.dependencies={lanes:0,firstContext:e}}else Mi=Mi.next=e;return t}var Gr=null;function Zf(e){Gr===null?Gr=[e]:Gr.push(e)}function BE(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Zf(t)):(n.next=i.next,i.next=n),t.interleaved=n,$n(e,r)}function $n(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 ar=!1;function Jf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FE(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 Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ye&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,$n(e,n)}return i=r.interleaved,i===null?(t.next=t,Zf(r)):(t.next=i.next,i.next=t),r.interleaved=t,$n(e,n)}function Go(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,Ff(e,n)}}function rm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 Tl(e,t,n,r){var i=e.updateQueue;ar=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;s=0,c=u=l=null,o=a;do{var h=o.lane,p=o.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,b=o;switch(h=t,p=n,b.tag){case 1:if(m=b.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=b.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=Fe({},d,h);break e;case 2:ar=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else p={eventTime:p,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ri|=s,e.lanes=s,e.memoizedState=d}}function im(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(K(191,i));i.call(r)}}}var Ys={},vn=Nr(Ys),Ns=Nr(Ys),ws=Nr(Ys);function Wr(e){if(e===Ys)throw Error(K(174));return e}function eh(e,t){switch(Ne(ws,t),Ne(Ns,e),Ne(vn,Ys),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ed(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ed(t,e)}Re(vn),Ne(vn,t)}function na(){Re(vn),Re(Ns),Re(ws)}function UE(e){Wr(ws.current);var t=Wr(vn.current),n=ed(t,e.type);t!==n&&(Ne(Ns,e),Ne(vn,n))}function th(e){Ns.current===e&&(Re(vn),Re(Ns))}var Me=Nr(0);function _l(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 ec=[];function nh(){for(var e=0;e<ec.length;e++)ec[e]._workInProgressVersionPrimary=null;ec.length=0}var Wo=Kn.ReactCurrentDispatcher,tc=Kn.ReactCurrentBatchConfig,ni=0,Be=null,qe=null,et=null,xl=!1,ts=!1,Is=0,Yv=0;function lt(){throw Error(K(321))}function rh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function ih(e,t,n,r,i,a){if(ni=a,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wo.current=e===null||e.memoizedState===null?Xv:Zv,e=n(r,i),ts){a=0;do{if(ts=!1,Is=0,25<=a)throw Error(K(301));a+=1,et=qe=null,t.updateQueue=null,Wo.current=Jv,e=n(r,i)}while(ts)}if(Wo.current=Sl,t=qe!==null&&qe.next!==null,ni=0,et=qe=Be=null,xl=!1,t)throw Error(K(300));return e}function ah(){var e=Is!==0;return Is=0,e}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?Be.memoizedState=et=e:et=et.next=e,et}function nn(){if(qe===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=et===null?Be.memoizedState:et.next;if(t!==null)et=t,qe=e;else{if(e===null)throw Error(K(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},et===null?Be.memoizedState=et=e:et=et.next=e}return et}function Os(e,t){return typeof t=="function"?t(e):t}function nc(e){var t=nn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=qe,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,l=null,u=a;do{var c=u.lane;if((ni&c)===c)l!==null&&(l=l.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 d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=d,s=r):l=l.next=d,Be.lanes|=c,ri|=c}u=u.next}while(u!==null&&u!==a);l===null?s=r:l.next=o,pn(r,t.memoizedState)||(wt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Be.lanes|=a,ri|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rc(e){var t=nn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);pn(a,t.memoizedState)||(wt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function HE(){}function zE(e,t){var n=Be,r=nn(),i=t(),a=!pn(r.memoizedState,i);if(a&&(r.memoizedState=i,wt=!0),r=r.queue,sh($E.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,Rs(9,jE.bind(null,n,r,i,t),void 0,null),nt===null)throw Error(K(349));ni&30||VE(n,t,i)}return i}function VE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jE(e,t,n,r){t.value=n,t.getSnapshot=r,GE(t)&&WE(e)}function $E(e,t,n){return n(function(){GE(t)&&WE(e)})}function GE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function WE(e){var t=$n(e,1);t!==null&&fn(t,e,1,-1)}function am(e){var t=bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:e},t.queue=e,e=e.dispatch=Qv.bind(null,Be,e),[t.memoizedState,e]}function Rs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.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 YE(){return nn().memoizedState}function Yo(e,t,n,r){var i=bn();Be.flags|=e,i.memoizedState=Rs(1|t,n,void 0,r===void 0?null:r)}function au(e,t,n,r){var i=nn();r=r===void 0?null:r;var a=void 0;if(qe!==null){var s=qe.memoizedState;if(a=s.destroy,r!==null&&rh(r,s.deps)){i.memoizedState=Rs(t,n,a,r);return}}Be.flags|=e,i.memoizedState=Rs(1|t,n,a,r)}function sm(e,t){return Yo(8390656,8,e,t)}function sh(e,t){return au(2048,8,e,t)}function KE(e,t){return au(4,2,e,t)}function qE(e,t){return au(4,4,e,t)}function QE(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 XE(e,t,n){return n=n!=null?n.concat([e]):null,au(4,4,QE.bind(null,t,e),n)}function oh(){}function ZE(e,t){var n=nn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function JE(e,t){var n=nn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eb(e,t,n){return ni&21?(pn(n,t)||(n=aE(),Be.lanes|=n,ri|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=n)}function Kv(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=tc.transition;tc.transition={};try{e(!1),t()}finally{_e=n,tc.transition=r}}function tb(){return nn().memoizedState}function qv(e,t,n){var r=Tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nb(e))rb(t,n);else if(n=BE(e,t,n,r),n!==null){var i=xt();fn(n,e,r,i),ib(n,t,r)}}function Qv(e,t,n){var r=Tr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nb(e))rb(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,pn(o,s)){var l=t.interleaved;l===null?(i.next=i,Zf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=BE(e,t,i,r),n!==null&&(i=xt(),fn(n,e,r,i),ib(n,t,r))}}function nb(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function rb(e,t){ts=xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ib(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ff(e,n)}}var Sl={readContext:tn,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},Xv={readContext:tn,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:sm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yo(4194308,4,QE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bn();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=qv.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:am,useDebugValue:oh,useDeferredValue:function(e){return bn().memoizedState=e},useTransition:function(){var e=am(!1),t=e[0];return e=Kv.bind(null,e[1]),bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,i=bn();if(De){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),nt===null)throw Error(K(349));ni&30||VE(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,sm($E.bind(null,r,a,e),[e]),r.flags|=2048,Rs(9,jE.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=bn(),t=nt.identifierPrefix;if(De){var n=Pn,r=Mn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Is++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Yv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zv={readContext:tn,useCallback:ZE,useContext:tn,useEffect:sh,useImperativeHandle:XE,useInsertionEffect:KE,useLayoutEffect:qE,useMemo:JE,useReducer:nc,useRef:YE,useState:function(){return nc(Os)},useDebugValue:oh,useDeferredValue:function(e){var t=nn();return eb(t,qe.memoizedState,e)},useTransition:function(){var e=nc(Os)[0],t=nn().memoizedState;return[e,t]},useMutableSource:HE,useSyncExternalStore:zE,useId:tb,unstable_isNewReconciler:!1},Jv={readContext:tn,useCallback:ZE,useContext:tn,useEffect:sh,useImperativeHandle:XE,useInsertionEffect:KE,useLayoutEffect:qE,useMemo:JE,useReducer:rc,useRef:YE,useState:function(){return rc(Os)},useDebugValue:oh,useDeferredValue:function(e){var t=nn();return qe===null?t.memoizedState=e:eb(t,qe.memoizedState,e)},useTransition:function(){var e=rc(Os)[0],t=nn().memoizedState;return[e,t]},useMutableSource:HE,useSyncExternalStore:zE,useId:tb,unstable_isNewReconciler:!1};function ln(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _d(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var su={isMounted:function(e){return(e=e._reactInternals)?li(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xt(),i=Tr(e),a=Fn(r,i);a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(fn(t,e,i,r),Go(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xt(),i=Tr(e),a=Fn(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(fn(t,e,i,r),Go(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),r=Tr(e),i=Fn(n,r);i.tag=2,t!=null&&(i.callback=t),t=br(e,i,r),t!==null&&(fn(t,e,r,n),Go(t,e,r))}};function om(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!vs(n,r)||!vs(i,a):!0}function ab(e,t,n){var r=!1,i=vr,a=t.contextType;return typeof a=="object"&&a!==null?a=tn(a):(i=Ot(t)?ei:ht.current,r=t.contextTypes,a=(r=r!=null)?Ji(e,i):vr),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=su,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function lm(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&&su.enqueueReplaceState(t,t.state,null)}function xd(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Jf(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=tn(a):(a=Ot(t)?ei:ht.current,i.context=Ji(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(_d(e,t,a,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&&su.enqueueReplaceState(i,i.state,null),Tl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ra(e,t){try{var n="",r=t;do n+=kS(r),r=r.return;while(r);var i=n}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function ic(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Sd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eC=typeof WeakMap=="function"?WeakMap:Map;function sb(e,t,n){n=Fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cl||(Cl=!0,Ld=r),Sd(e,t)},n}function ob(e,t,n){n=Fn(-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(){Sd(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Sd(e,t),typeof r!="function"&&(yr===null?yr=new Set([this]):yr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function um(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eC;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=pC.bind(null,e,t,n),t.then(e,e))}function cm(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 dm(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=Fn(-1,1),t.tag=2,br(n,t,1))),n.lanes|=1),e)}var tC=Kn.ReactCurrentOwner,wt=!1;function Tt(e,t,n,r){t.child=e===null?PE(t,null,n,r):ta(t,e.child,n,r)}function fm(e,t,n,r,i){n=n.render;var a=t.ref;return Yi(t,i),r=ih(e,t,n,r,a,i),n=ah(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gn(e,t,i)):(De&&n&&Wf(t),t.flags|=1,Tt(e,t,r,i),t.child)}function hm(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!mh(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,lb(e,t,a,r,i)):(e=Xo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:vs,n(s,r)&&e.ref===t.ref)return Gn(e,t,i)}return t.flags|=1,e=_r(a,r),e.ref=t.ref,e.return=t,t.child=e}function lb(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(vs(a,r)&&e.ref===t.ref)if(wt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(wt=!0);else return t.lanes=e.lanes,Gn(e,t,i)}return vd(e,t,n,r,i)}function ub(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Bi,Ft),Ft|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(Bi,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ne(Bi,Ft),Ft|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ne(Bi,Ft),Ft|=r;return Tt(e,t,i,n),t.child}function cb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vd(e,t,n,r,i){var a=Ot(n)?ei:ht.current;return a=Ji(t,a),Yi(t,i),n=ih(e,t,n,r,a,i),r=ah(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gn(e,t,i)):(De&&r&&Wf(t),t.flags|=1,Tt(e,t,n,i),t.child)}function pm(e,t,n,r,i){if(Ot(n)){var a=!0;ml(t)}else a=!1;if(Yi(t,i),t.stateNode===null)Ko(e,t),ab(t,n,r),xd(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=tn(u):(u=Ot(n)?ei:ht.current,u=Ji(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==u)&&lm(t,s,r,u),ar=!1;var h=t.memoizedState;s.state=h,Tl(t,r,s,i),l=t.memoizedState,o!==r||h!==l||It.current||ar?(typeof c=="function"&&(_d(t,n,c,r),l=t.memoizedState),(o=ar||om(t,n,o,r,h,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,FE(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:ln(t.type,o),s.props=u,d=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=tn(l):(l=Ot(n)?ei:ht.current,l=Ji(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||h!==l)&&lm(t,s,r,l),ar=!1,h=t.memoizedState,s.state=h,Tl(t,r,s,i);var m=t.memoizedState;o!==d||h!==m||It.current||ar?(typeof p=="function"&&(_d(t,n,p,r),m=t.memoizedState),(u=ar||om(t,n,u,r,h,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Cd(e,t,n,r,a,i)}function Cd(e,t,n,r,i,a){cb(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Jp(t,n,!1),Gn(e,t,a);r=t.stateNode,tC.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ta(t,e.child,null,a),t.child=ta(t,null,o,a)):Tt(e,t,o,a),t.memoizedState=r.state,i&&Jp(t,n,!0),t.child}function db(e){var t=e.stateNode;t.pendingContext?Zp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zp(e,t.context,!1),eh(e,t.containerInfo)}function mm(e,t,n,r,i){return ea(),Kf(i),t.flags|=256,Tt(e,t,n,r),t.child}var Ad={dehydrated:null,treeContext:null,retryLane:0};function kd(e){return{baseLanes:e,cachePool:null,transitions:null}}function fb(e,t,n){var r=t.pendingProps,i=Me.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ne(Me,i&1),e===null)return yd(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):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=uu(s,r,0,null),e=Qr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=kd(n),t.memoizedState=Ad,e):lh(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return nC(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=_r(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=_r(o,a):(a=Qr(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?kd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Ad,r}return a=e.child,e=a.sibling,r=_r(a,{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 lh(e,t){return t=uu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function To(e,t,n,r){return r!==null&&Kf(r),ta(t,e.child,null,n),e=lh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nC(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=ic(Error(K(422))),To(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=uu({mode:"visible",children:r.children},i,0,null),a=Qr(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&ta(t,e.child,null,s),t.child.memoizedState=kd(s),t.memoizedState=Ad,a);if(!(t.mode&1))return To(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(K(419)),r=ic(a,r,void 0),To(e,t,s,r)}if(o=(s&e.childLanes)!==0,wt||o){if(r=nt,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,$n(e,i),fn(r,e,i,-1))}return ph(),r=ic(Error(K(421))),To(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mC.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Ht=Er(i.nextSibling),zt=t,De=!0,cn=null,e!==null&&(qt[Qt++]=Mn,qt[Qt++]=Pn,qt[Qt++]=ti,Mn=e.id,Pn=e.overflow,ti=t),t=lh(t,r.children),t.flags|=4096,t)}function gm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Td(e.return,t,n)}function ac(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function hb(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Tt(e,t,r.children,n),r=Me.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&&gm(e,n,t);else if(e.tag===19)gm(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(Ne(Me,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&&_l(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ac(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_l(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ac(t,!0,n,null,a);break;case"together":ac(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ko(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ri|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=_r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rC(e,t,n){switch(t.tag){case 3:db(t),ea();break;case 5:UE(t);break;case 1:Ot(t.type)&&ml(t);break;case 4:eh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ne(bl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ne(Me,Me.current&1),t.flags|=128,null):n&t.child.childLanes?fb(e,t,n):(Ne(Me,Me.current&1),e=Gn(e,t,n),e!==null?e.sibling:null);Ne(Me,Me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ne(Me,Me.current),r)break;return null;case 22:case 23:return t.lanes=0,ub(e,t,n)}return Gn(e,t,n)}var pb,Nd,mb,gb;pb=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}};Nd=function(){};mb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wr(vn.current);var a=null;switch(n){case"input":i=Qc(e,i),r=Qc(e,r),a=[];break;case"select":i=Fe({},i,{value:void 0}),r=Fe({},r,{value:void 0}),a=[];break;case"textarea":i=Jc(e,i),r=Jc(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}td(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Es.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Es.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Oe("scroll",e),a||o===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};gb=function(e,t,n,r){n!==r&&(t.flags|=4)};function La(e,t){if(!De)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 ut(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 iC(e,t,n){var r=t.pendingProps;switch(Yf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return Ot(t.type)&&pl(),ut(t),null;case 3:return r=t.stateNode,na(),Re(It),Re(ht),nh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(bo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cn!==null&&(Pd(cn),cn=null))),Nd(e,t),ut(t),null;case 5:th(t);var i=Wr(ws.current);if(n=t.type,e!==null&&t.stateNode!=null)mb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return ut(t),null}if(e=Wr(vn.current),bo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[_n]=t,r[ks]=a,e=(t.mode&1)!==0,n){case"dialog":Oe("cancel",r),Oe("close",r);break;case"iframe":case"object":case"embed":Oe("load",r);break;case"video":case"audio":for(i=0;i<Ya.length;i++)Oe(Ya[i],r);break;case"source":Oe("error",r);break;case"img":case"image":case"link":Oe("error",r),Oe("load",r);break;case"details":Oe("toggle",r);break;case"input":Cp(r,a),Oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Oe("invalid",r);break;case"textarea":kp(r,a),Oe("invalid",r)}td(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&Eo(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&Eo(r.textContent,o,e),i=["children",""+o]):Es.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&Oe("scroll",r)}switch(n){case"input":lo(r),Ap(r,a,!0);break;case"textarea":lo(r),Np(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=hl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[_n]=t,e[ks]=r,pb(e,t,!1,!1),t.stateNode=e;e:{switch(s=nd(n,r),n){case"dialog":Oe("cancel",e),Oe("close",e),i=r;break;case"iframe":case"object":case"embed":Oe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ya.length;i++)Oe(Ya[i],e);i=r;break;case"source":Oe("error",e),i=r;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),i=r;break;case"details":Oe("toggle",e),i=r;break;case"input":Cp(e,r),i=Qc(e,r),Oe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Fe({},r,{value:void 0}),Oe("invalid",e);break;case"textarea":kp(e,r),i=Jc(e,r),Oe("invalid",e);break;default:i=r}td(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Y1(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&G1(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&bs(e,l):typeof l=="number"&&bs(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Es.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Oe("scroll",e):l!=null&&Rf(e,a,l,s))}switch(n){case"input":lo(e),Ap(e,r,!1);break;case"textarea":lo(e),Np(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sr(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ji(e,!!r.multiple,a,!1):r.defaultValue!=null&&ji(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=hl)}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 ut(t),null;case 6:if(e&&t.stateNode!=null)gb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=Wr(ws.current),Wr(vn.current),bo(t)){if(r=t.stateNode,n=t.memoizedProps,r[_n]=t,(a=r.nodeValue!==n)&&(e=zt,e!==null))switch(e.tag){case 3:Eo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Eo(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_n]=t,t.stateNode=r}return ut(t),null;case 13:if(Re(Me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&Ht!==null&&t.mode&1&&!(t.flags&128))DE(),ea(),t.flags|=98560,a=!1;else if(a=bo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(K(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(K(317));a[_n]=t}else ea(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ut(t),a=!1}else cn!==null&&(Pd(cn),cn=null),a=!0;if(!a)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||Me.current&1?Qe===0&&(Qe=3):ph())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return na(),Nd(e,t),e===null&&Cs(t.stateNode.containerInfo),ut(t),null;case 10:return Xf(t.type._context),ut(t),null;case 17:return Ot(t.type)&&pl(),ut(t),null;case 19:if(Re(Me),a=t.memoizedState,a===null)return ut(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)La(a,!1);else{if(Qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=_l(e),s!==null){for(t.flags|=128,La(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ne(Me,Me.current&1|2),t.child}e=e.sibling}a.tail!==null&&ze()>ia&&(t.flags|=128,r=!0,La(a,!1),t.lanes=4194304)}else{if(!r)if(e=_l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),La(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!De)return ut(t),null}else 2*ze()-a.renderingStartTime>ia&&n!==1073741824&&(t.flags|=128,r=!0,La(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ze(),t.sibling=null,n=Me.current,Ne(Me,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return hh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function aC(e,t){switch(Yf(t),t.tag){case 1:return Ot(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(),Re(It),Re(ht),nh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return th(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return na(),null;case 10:return Xf(t.type._context),null;case 22:case 23:return hh(),null;case 24:return null;default:return null}}var _o=!1,dt=!1,sC=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Pi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function wd(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var Em=!1;function oC(e,t){if(fd=cl,e=_E(),Gf(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(o=s+i),d!==a||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===i&&(o=s),h===a&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},cl=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,x=m.memoizedState,g=t.stateNode,E=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:ln(t.type,b),x);g.__reactInternalSnapshotBeforeUpdate=E}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(K(163))}}catch(C){Ue(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return m=Em,Em=!1,m}function ns(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 a=i.destroy;i.destroy=void 0,a!==void 0&&wd(t,n,a)}i=i.next}while(i!==r)}}function ou(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 Id(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 Eb(e){var t=e.alternate;t!==null&&(e.alternate=null,Eb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[ks],delete t[gd],delete t[jv],delete t[$v])),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 bb(e){return e.tag===5||e.tag===3||e.tag===4}function bm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bb(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 Od(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=hl));else if(r!==4&&(e=e.child,e!==null))for(Od(e,t,n),e=e.sibling;e!==null;)Od(e,t,n),e=e.sibling}function Rd(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(Rd(e,t,n),e=e.sibling;e!==null;)Rd(e,t,n),e=e.sibling}var rt=null,un=!1;function Xn(e,t,n){for(n=n.child;n!==null;)yb(e,t,n),n=n.sibling}function yb(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 5:dt||Pi(n,t);case 6:var r=rt,i=un;rt=null,Xn(e,t,n),rt=r,un=i,rt!==null&&(un?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(un?(e=rt,n=n.stateNode,e.nodeType===8?Zu(e.parentNode,n):e.nodeType===1&&Zu(e,n),xs(e)):Zu(rt,n.stateNode));break;case 4:r=rt,i=un,rt=n.stateNode.containerInfo,un=!0,Xn(e,t,n),rt=r,un=i;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&wd(n,t,s),i=i.next}while(i!==r)}Xn(e,t,n);break;case 1:if(!dt&&(Pi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ue(n,t,o)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,Xn(e,t,n),dt=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function ym(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sC),t.forEach(function(r){var i=gC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:rt=o.stateNode,un=!1;break e;case 3:rt=o.stateNode.containerInfo,un=!0;break e;case 4:rt=o.stateNode.containerInfo,un=!0;break e}o=o.return}if(rt===null)throw Error(K(160));yb(a,s,i),rt=null,un=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ue(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tb(t,e),t=t.sibling}function Tb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(on(t,e),gn(e),r&4){try{ns(3,e,e.return),ou(3,e)}catch(b){Ue(e,e.return,b)}try{ns(5,e,e.return)}catch(b){Ue(e,e.return,b)}}break;case 1:on(t,e),gn(e),r&512&&n!==null&&Pi(n,n.return);break;case 5:if(on(t,e),gn(e),r&512&&n!==null&&Pi(n,n.return),e.flags&32){var i=e.stateNode;try{bs(i,"")}catch(b){Ue(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&V1(i,a),nd(o,s);var u=nd(o,a);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Y1(i,d):c==="dangerouslySetInnerHTML"?G1(i,d):c==="children"?bs(i,d):Rf(i,c,d,u)}switch(o){case"input":Xc(i,a);break;case"textarea":j1(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?ji(i,!!a.multiple,p,!1):h!==!!a.multiple&&(a.defaultValue!=null?ji(i,!!a.multiple,a.defaultValue,!0):ji(i,!!a.multiple,a.multiple?[]:"",!1))}i[ks]=a}catch(b){Ue(e,e.return,b)}}break;case 6:if(on(t,e),gn(e),r&4){if(e.stateNode===null)throw Error(K(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(b){Ue(e,e.return,b)}}break;case 3:if(on(t,e),gn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xs(t.containerInfo)}catch(b){Ue(e,e.return,b)}break;case 4:on(t,e),gn(e);break;case 13:on(t,e),gn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(dh=ze())),r&4&&ym(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(u=dt)||c,on(t,e),dt=u):on(t,e),gn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ee=e,c=e.child;c!==null;){for(d=ee=c;ee!==null;){switch(h=ee,p=h.child,h.tag){case 0:case 11:case 14:case 15:ns(4,h,h.return);break;case 1:Pi(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(b){Ue(r,n,b)}}break;case 5:Pi(h,h.return);break;case 22:if(h.memoizedState!==null){_m(d);continue}}p!==null?(p.return=h,ee=p):_m(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=W1("display",s))}catch(b){Ue(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){Ue(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:on(t,e),gn(e),r&4&&ym(e);break;case 21:break;default:on(t,e),gn(e)}}function gn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bb(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(bs(i,""),r.flags&=-33);var a=bm(e);Rd(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=bm(e);Od(e,o,s);break;default:throw Error(K(161))}}catch(l){Ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lC(e,t,n){ee=e,_b(e)}function _b(e,t,n){for(var r=(e.mode&1)!==0;ee!==null;){var i=ee,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||_o;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||dt;o=_o;var u=dt;if(_o=s,(dt=l)&&!u)for(ee=i;ee!==null;)s=ee,l=s.child,s.tag===22&&s.memoizedState!==null?xm(i):l!==null?(l.return=s,ee=l):xm(i);for(;a!==null;)ee=a,_b(a),a=a.sibling;ee=i,_o=o,dt=u}Tm(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ee=a):Tm(e)}}function Tm(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||ou(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!dt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ln(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&im(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}im(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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 c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}dt||t.flags&512&&Id(t)}catch(h){Ue(t,t.return,h)}}if(t===e){ee=null;break}if(n=t.sibling,n!==null){n.return=t.return,ee=n;break}ee=t.return}}function _m(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ee=n;break}ee=t.return}}function xm(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(l){Ue(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ue(t,i,l)}}var a=t.return;try{Id(t)}catch(l){Ue(t,a,l)}break;case 5:var s=t.return;try{Id(t)}catch(l){Ue(t,s,l)}}}catch(l){Ue(t,t.return,l)}if(t===e){ee=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ee=o;break}ee=t.return}}var uC=Math.ceil,vl=Kn.ReactCurrentDispatcher,uh=Kn.ReactCurrentOwner,en=Kn.ReactCurrentBatchConfig,ye=0,nt=null,Ke=null,it=0,Ft=0,Bi=Nr(0),Qe=0,Ls=null,ri=0,lu=0,ch=0,rs=null,Nt=null,dh=0,ia=1/0,Rn=null,Cl=!1,Ld=null,yr=null,xo=!1,cr=null,Al=0,is=0,Dd=null,qo=-1,Qo=0;function xt(){return ye&6?ze():qo!==-1?qo:qo=ze()}function Tr(e){return e.mode&1?ye&2&&it!==0?it&-it:Wv.transition!==null?(Qo===0&&(Qo=aE()),Qo):(e=_e,e!==0||(e=window.event,e=e===void 0?16:fE(e.type)),e):1}function fn(e,t,n,r){if(50<is)throw is=0,Dd=null,Error(K(185));$s(e,n,r),(!(ye&2)||e!==nt)&&(e===nt&&(!(ye&2)&&(lu|=n),Qe===4&&lr(e,it)),Rt(e,r),n===1&&ye===0&&!(t.mode&1)&&(ia=ze()+500,iu&&wr()))}function Rt(e,t){var n=e.callbackNode;WS(e,t);var r=ul(e,e===nt?it:0);if(r===0)n!==null&&Op(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Op(n),t===1)e.tag===0?Gv(Sm.bind(null,e)):OE(Sm.bind(null,e)),zv(function(){!(ye&6)&&wr()}),n=null;else{switch(sE(r)){case 1:n=Bf;break;case 4:n=rE;break;case 16:n=ll;break;case 536870912:n=iE;break;default:n=ll}n=wb(n,xb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xb(e,t){if(qo=-1,Qo=0,ye&6)throw Error(K(327));var n=e.callbackNode;if(Ki()&&e.callbackNode!==n)return null;var r=ul(e,e===nt?it:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=kl(e,r);else{t=r;var i=ye;ye|=2;var a=vb();(nt!==e||it!==t)&&(Rn=null,ia=ze()+500,qr(e,t));do try{fC();break}catch(o){Sb(e,o)}while(!0);Qf(),vl.current=a,ye=i,Ke!==null?t=0:(nt=null,it=0,t=Qe)}if(t!==0){if(t===2&&(i=od(e),i!==0&&(r=i,t=Md(e,i))),t===1)throw n=Ls,qr(e,0),lr(e,r),Rt(e,ze()),n;if(t===6)lr(e,r);else{if(i=e.current.alternate,!(r&30)&&!cC(i)&&(t=kl(e,r),t===2&&(a=od(e),a!==0&&(r=a,t=Md(e,a))),t===1))throw n=Ls,qr(e,0),lr(e,r),Rt(e,ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:Fr(e,Nt,Rn);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=dh+500-ze(),10<t)){if(ul(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){xt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=md(Fr.bind(null,e,Nt,Rn),t);break}Fr(e,Nt,Rn);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-dn(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uC(r/1960))-r,10<r){e.timeoutHandle=md(Fr.bind(null,e,Nt,Rn),r);break}Fr(e,Nt,Rn);break;case 5:Fr(e,Nt,Rn);break;default:throw Error(K(329))}}}return Rt(e,ze()),e.callbackNode===n?xb.bind(null,e):null}function Md(e,t){var n=rs;return e.current.memoizedState.isDehydrated&&(qr(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Nt,Nt=n,t!==null&&Pd(t)),e}function Pd(e){Nt===null?Nt=e:Nt.push.apply(Nt,e)}function cC(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],a=i.getSnapshot;i=i.value;try{if(!pn(a(),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 lr(e,t){for(t&=~ch,t&=~lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dn(t),r=1<<n;e[n]=-1,t&=~r}}function Sm(e){if(ye&6)throw Error(K(327));Ki();var t=ul(e,0);if(!(t&1))return Rt(e,ze()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var r=od(e);r!==0&&(t=r,n=Md(e,r))}if(n===1)throw n=Ls,qr(e,0),lr(e,t),Rt(e,ze()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fr(e,Nt,Rn),Rt(e,ze()),null}function fh(e,t){var n=ye;ye|=1;try{return e(t)}finally{ye=n,ye===0&&(ia=ze()+500,iu&&wr())}}function ii(e){cr!==null&&cr.tag===0&&!(ye&6)&&Ki();var t=ye;ye|=1;var n=en.transition,r=_e;try{if(en.transition=null,_e=1,e)return e()}finally{_e=r,en.transition=n,ye=t,!(ye&6)&&wr()}}function hh(){Ft=Bi.current,Re(Bi)}function qr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hv(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Yf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pl();break;case 3:na(),Re(It),Re(ht),nh();break;case 5:th(r);break;case 4:na();break;case 13:Re(Me);break;case 19:Re(Me);break;case 10:Xf(r.type._context);break;case 22:case 23:hh()}n=n.return}if(nt=e,Ke=e=_r(e.current,null),it=Ft=t,Qe=0,Ls=null,ch=lu=ri=0,Nt=rs=null,Gr!==null){for(t=0;t<Gr.length;t++)if(n=Gr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}Gr=null}return e}function Sb(e,t){do{var n=Ke;try{if(Qf(),Wo.current=Sl,xl){for(var r=Be.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}xl=!1}if(ni=0,et=qe=Be=null,ts=!1,Is=0,uh.current=null,n===null||n.return===null){Qe=1,Ls=t,Ke=null;break}e:{var a=e,s=n.return,o=n,l=t;if(t=it,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=o,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=cm(s);if(p!==null){p.flags&=-257,dm(p,s,o,a,t),p.mode&1&&um(a,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var b=new Set;b.add(l),t.updateQueue=b}else m.add(l);break e}else{if(!(t&1)){um(a,u,t),ph();break e}l=Error(K(426))}}else if(De&&o.mode&1){var x=cm(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),dm(x,s,o,a,t),Kf(ra(l,o));break e}}a=l=ra(l,o),Qe!==4&&(Qe=2),rs===null?rs=[a]:rs.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=sb(a,l,t);rm(a,g);break e;case 1:o=l;var E=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof E.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(yr===null||!yr.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var C=ob(a,o,t);rm(a,C);break e}}a=a.return}while(a!==null)}Ab(n)}catch(O){t=O,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function vb(){var e=vl.current;return vl.current=Sl,e===null?Sl:e}function ph(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),nt===null||!(ri&268435455)&&!(lu&268435455)||lr(nt,it)}function kl(e,t){var n=ye;ye|=2;var r=vb();(nt!==e||it!==t)&&(Rn=null,qr(e,t));do try{dC();break}catch(i){Sb(e,i)}while(!0);if(Qf(),ye=n,vl.current=r,Ke!==null)throw Error(K(261));return nt=null,it=0,Qe}function dC(){for(;Ke!==null;)Cb(Ke)}function fC(){for(;Ke!==null&&!BS();)Cb(Ke)}function Cb(e){var t=Nb(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Ab(e):Ke=t,uh.current=null}function Ab(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aC(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qe=6,Ke=null;return}}else if(n=iC(n,t,Ft),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Qe===0&&(Qe=5)}function Fr(e,t,n){var r=_e,i=en.transition;try{en.transition=null,_e=1,hC(e,t,n,r)}finally{en.transition=i,_e=r}return null}function hC(e,t,n,r){do Ki();while(cr!==null);if(ye&6)throw Error(K(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(K(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(YS(e,a),e===nt&&(Ke=nt=null,it=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xo||(xo=!0,wb(ll,function(){return Ki(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=en.transition,en.transition=null;var s=_e;_e=1;var o=ye;ye|=4,uh.current=null,oC(e,n),Tb(n,e),Lv(hd),cl=!!fd,hd=fd=null,e.current=n,lC(n),FS(),ye=o,_e=s,en.transition=a}else e.current=n;if(xo&&(xo=!1,cr=e,Al=i),a=e.pendingLanes,a===0&&(yr=null),zS(n.stateNode),Rt(e,ze()),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(Cl)throw Cl=!1,e=Ld,Ld=null,e;return Al&1&&e.tag!==0&&Ki(),a=e.pendingLanes,a&1?e===Dd?is++:(is=0,Dd=e):is=0,wr(),null}function Ki(){if(cr!==null){var e=sE(Al),t=en.transition,n=_e;try{if(en.transition=null,_e=16>e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,ye&6)throw Error(K(331));var i=ye;for(ye|=4,ee=e.current;ee!==null;){var a=ee,s=a.child;if(ee.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(ee=u;ee!==null;){var c=ee;switch(c.tag){case 0:case 11:case 15:ns(8,c,a)}var d=c.child;if(d!==null)d.return=c,ee=d;else for(;ee!==null;){c=ee;var h=c.sibling,p=c.return;if(Eb(c),c===u){ee=null;break}if(h!==null){h.return=p,ee=h;break}ee=p}}}var m=a.alternate;if(m!==null){var b=m.child;if(b!==null){m.child=null;do{var x=b.sibling;b.sibling=null,b=x}while(b!==null)}}ee=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,ee=s;else e:for(;ee!==null;){if(a=ee,a.flags&2048)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,ee=g;break e}ee=a.return}}var E=e.current;for(ee=E;ee!==null;){s=ee;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,ee=y;else e:for(s=E;ee!==null;){if(o=ee,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:ou(9,o)}}catch(O){Ue(o,o.return,O)}if(o===s){ee=null;break e}var C=o.sibling;if(C!==null){C.return=o.return,ee=C;break e}ee=o.return}}if(ye=i,wr(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Jl,e)}catch{}r=!0}return r}finally{_e=n,en.transition=t}}return!1}function vm(e,t,n){t=ra(n,t),t=sb(e,t,1),e=br(e,t,1),t=xt(),e!==null&&($s(e,1,t),Rt(e,t))}function Ue(e,t,n){if(e.tag===3)vm(e,e,n);else for(;t!==null;){if(t.tag===3){vm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yr===null||!yr.has(r))){e=ra(n,e),e=ob(t,e,1),t=br(t,e,1),e=xt(),t!==null&&($s(t,1,e),Rt(t,e));break}}t=t.return}}function pC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&n,nt===e&&(it&n)===n&&(Qe===4||Qe===3&&(it&130023424)===it&&500>ze()-dh?qr(e,0):ch|=n),Rt(e,t)}function kb(e,t){t===0&&(e.mode&1?(t=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):t=1);var n=xt();e=$n(e,t),e!==null&&($s(e,t,n),Rt(e,n))}function mC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kb(e,n)}function gC(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(K(314))}r!==null&&r.delete(t),kb(e,n)}var Nb;Nb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||It.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,rC(e,t,n);wt=!!(e.flags&131072)}else wt=!1,De&&t.flags&1048576&&RE(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ko(e,t),e=t.pendingProps;var i=Ji(t,ht.current);Yi(t,n),i=ih(null,t,r,e,i,n);var a=ah();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,Ot(r)?(a=!0,ml(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jf(t),i.updater=su,t.stateNode=i,i._reactInternals=t,xd(t,r,e,n),t=Cd(null,t,r,!0,a,n)):(t.tag=0,De&&a&&Wf(t),Tt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=bC(r),e=ln(r,e),i){case 0:t=vd(null,t,r,e,n);break e;case 1:t=pm(null,t,r,e,n);break e;case 11:t=fm(null,t,r,e,n);break e;case 14:t=hm(null,t,r,ln(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),vd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),pm(e,t,r,i,n);case 3:e:{if(db(t),e===null)throw Error(K(387));r=t.pendingProps,a=t.memoizedState,i=a.element,FE(e,t),Tl(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ra(Error(K(423)),t),t=mm(e,t,r,n,i);break e}else if(r!==i){i=ra(Error(K(424)),t),t=mm(e,t,r,n,i);break e}else for(Ht=Er(t.stateNode.containerInfo.firstChild),zt=t,De=!0,cn=null,n=PE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ea(),r===i){t=Gn(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 5:return UE(t),e===null&&yd(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,pd(r,i)?s=null:a!==null&&pd(r,a)&&(t.flags|=32),cb(e,t),Tt(e,t,s,n),t.child;case 6:return e===null&&yd(t),null;case 13:return fb(e,t,n);case 4:return eh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ta(t,null,r,n):Tt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),fm(e,t,r,i,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ne(bl,r._currentValue),r._currentValue=s,a!==null)if(pn(a.value,s)){if(a.children===i.children&&!It.current){t=Gn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Fn(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Td(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(K(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Td(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Tt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yi(t,n),i=tn(i),r=r(i),t.flags|=1,Tt(e,t,r,n),t.child;case 14:return r=t.type,i=ln(r,t.pendingProps),i=ln(r.type,i),hm(e,t,r,i,n);case 15:return lb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),Ko(e,t),t.tag=1,Ot(r)?(e=!0,ml(t)):e=!1,Yi(t,n),ab(t,r,i),xd(t,r,i,n),Cd(null,t,r,!0,e,n);case 19:return hb(e,t,n);case 22:return ub(e,t,n)}throw Error(K(156,t.tag))};function wb(e,t){return nE(e,t)}function EC(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 Jt(e,t,n,r){return new EC(e,t,n,r)}function mh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bC(e){if(typeof e=="function")return mh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Df)return 11;if(e===Mf)return 14}return 2}function _r(e,t){var n=e.alternate;return n===null?(n=Jt(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 Xo(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")mh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ki:return Qr(n.children,i,a,t);case Lf:s=8,i|=8;break;case Wc:return e=Jt(12,n,t,i|2),e.elementType=Wc,e.lanes=a,e;case Yc:return e=Jt(13,n,t,i),e.elementType=Yc,e.lanes=a,e;case Kc:return e=Jt(19,n,t,i),e.elementType=Kc,e.lanes=a,e;case U1:return uu(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B1:s=10;break e;case F1:s=9;break e;case Df:s=11;break e;case Mf:s=14;break e;case ir:s=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Jt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Qr(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function uu(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=U1,e.lanes=n,e.stateNode={isHidden:!1},e}function sc(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function oc(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yC(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=zu(0),this.expirationTimes=zu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gh(e,t,n,r,i,a,s,o,l){return e=new yC(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Jt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jf(a),e}function TC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ai,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ib(e){if(!e)return vr;e=e._reactInternals;e:{if(li(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ot(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(Ot(n))return IE(e,n,t)}return t}function Ob(e,t,n,r,i,a,s,o,l){return e=gh(n,r,!0,e,i,a,s,o,l),e.context=Ib(null),n=e.current,r=xt(),i=Tr(n),a=Fn(r,i),a.callback=t??null,br(n,a,i),e.current.lanes=i,$s(e,i,r),Rt(e,r),e}function cu(e,t,n,r){var i=t.current,a=xt(),s=Tr(i);return n=Ib(n),t.context===null?t.context=n:t.pendingContext=n,t=Fn(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=br(i,t,s),e!==null&&(fn(e,i,s,a),Go(e,i,s)),s}function Nl(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 Cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eh(e,t){Cm(e,t),(e=e.alternate)&&Cm(e,t)}function _C(){return null}var Rb=typeof reportError=="function"?reportError:function(e){console.error(e)};function bh(e){this._internalRoot=e}du.prototype.render=bh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));cu(e,t,null,null)};du.prototype.unmount=bh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ii(function(){cu(null,e,null,null)}),t[jn]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=uE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<or.length&&t!==0&&t<or[n].priority;n++);or.splice(n,0,e),n===0&&dE(e)}};function yh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Am(){}function xC(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Nl(s);a.call(u)}}var s=Ob(t,r,e,0,null,!1,!1,"",Am);return e._reactRootContainer=s,e[jn]=s.current,Cs(e.nodeType===8?e.parentNode:e),ii(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Nl(l);o.call(u)}}var l=gh(e,0,!1,null,null,!1,!1,"",Am);return e._reactRootContainer=l,e[jn]=l.current,Cs(e.nodeType===8?e.parentNode:e),ii(function(){cu(t,l,n,r)}),l}function hu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=Nl(s);o.call(l)}}cu(t,s,e,i)}else s=xC(n,t,e,i,r);return Nl(s)}oE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wa(t.pendingLanes);n!==0&&(Ff(t,n|1),Rt(t,ze()),!(ye&6)&&(ia=ze()+500,wr()))}break;case 13:ii(function(){var r=$n(e,1);if(r!==null){var i=xt();fn(r,e,1,i)}}),Eh(e,1)}};Uf=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var n=xt();fn(t,e,134217728,n)}Eh(e,134217728)}};lE=function(e){if(e.tag===13){var t=Tr(e),n=$n(e,t);if(n!==null){var r=xt();fn(n,e,t,r)}Eh(e,t)}};uE=function(){return _e};cE=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};id=function(e,t,n){switch(t){case"input":if(Xc(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=ru(r);if(!i)throw Error(K(90));z1(r),Xc(r,i)}}}break;case"textarea":j1(e,n);break;case"select":t=n.value,t!=null&&ji(e,!!n.multiple,t,!1)}};Q1=fh;X1=ii;var SC={usingClientEntryPoint:!1,Events:[Ws,Oi,ru,K1,q1,fh]},Da={findFiberByHostInstance:$r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vC={bundleType:Da.bundleType,version:Da.version,rendererPackageName:Da.rendererPackageName,rendererConfig:Da.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=eE(e),e===null?null:e.stateNode},findFiberByHostInstance:Da.findFiberByHostInstance||_C,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 So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Jl=So.inject(vC),Sn=So}catch{}}Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SC;Gt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yh(t))throw Error(K(200));return TC(e,t,null,n)};Gt.createRoot=function(e,t){if(!yh(e))throw Error(K(299));var n=!1,r="",i=Rb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gh(e,1,!1,null,null,n,!1,r,i),e[jn]=t.current,Cs(e.nodeType===8?e.parentNode:e),new bh(t)};Gt.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=eE(t),e=e===null?null:e.stateNode,e};Gt.flushSync=function(e){return ii(e)};Gt.hydrate=function(e,t,n){if(!fu(t))throw Error(K(200));return hu(null,e,t,!0,n)};Gt.hydrateRoot=function(e,t,n){if(!yh(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=Rb;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Ob(t,null,e,1,n??null,i,!1,a,s),e[jn]=t.current,Cs(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 du(t)};Gt.render=function(e,t,n){if(!fu(t))throw Error(K(200));return hu(null,e,t,!1,n)};Gt.unmountComponentAtNode=function(e){if(!fu(e))throw Error(K(40));return e._reactRootContainer?(ii(function(){hu(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1};Gt.unstable_batchedUpdates=fh;Gt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fu(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return hu(e,t,n,!1,r)};Gt.version="18.3.1-next-f1338f8080-20240426";function Lb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lb)}catch(e){console.error(e)}}Lb(),L1.exports=Gt;var CC=L1.exports,Db,km=CC;Db=km.createRoot,km.hydrateRoot;const Mb=V.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pu=V.createContext({}),mu=V.createContext(null),gu=typeof document<"u",Th=gu?V.useLayoutEffect:V.useEffect,Pb=V.createContext({strict:!1}),_h=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),AC="framerAppearId",Bb="data-"+_h(AC);function kC(e,t,n,r){const{visualElement:i}=V.useContext(pu),a=V.useContext(Pb),s=V.useContext(mu),o=V.useContext(Mb).reducedMotion,l=V.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:o}));const u=l.current;V.useInsertionEffect(()=>{u&&u.update(n,s)});const c=V.useRef(!!(n[Bb]&&!window.HandoffComplete));return Th(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),V.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NC(e,t,n){return V.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fi(n)&&(n.current=r))},[t])}function Ds(e){return typeof e=="string"||Array.isArray(e)}function Eu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const xh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sh=["initial",...xh];function bu(e){return Eu(e.animate)||Sh.some(t=>Ds(e[t]))}function Fb(e){return!!(bu(e)||e.variants)}function wC(e,t){if(bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ds(n)?n:void 0,animate:Ds(r)?r:void 0}}return e.inherit!==!1?t:{}}function IC(e){const{initial:t,animate:n}=wC(e,V.useContext(pu));return V.useMemo(()=>({initial:t,animate:n}),[Nm(t),Nm(n)])}function Nm(e){return Array.isArray(e)?e.join(" "):e}const wm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ms={};for(const e in wm)Ms[e]={isEnabled:t=>wm[e].some(n=>!!t[n])};function OC(e){for(const t in e)Ms[t]={...Ms[t],...e[t]}}const vh=V.createContext({}),Ub=V.createContext({}),RC=Symbol.for("motionComponentSymbol");function LC({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&OC(e);function a(o,l){let u;const c={...V.useContext(Mb),...o,layoutId:DC(o)},{isStatic:d}=c,h=IC(o),p=r(o,d);if(!d&&gu){h.visualElement=kC(i,p,c,t);const m=V.useContext(Ub),b=V.useContext(Pb).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,b,e,m))}return V.createElement(pu.Provider,{value:h},u&&h.visualElement?V.createElement(u,{visualElement:h.visualElement,...c}):null,n(i,o,NC(p,h.visualElement,l),p,d,h.visualElement))}const s=V.forwardRef(a);return s[RC]=i,s}function DC({layoutId:e}){const t=V.useContext(vh).id;return t&&e!==void 0?t+"-"+e:e}function MC(e){function t(r,i={}){return LC(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const PC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ch(e){return typeof e!="string"||e.includes("-")?!1:!!(PC.indexOf(e)>-1||/[A-Z]/.test(e))}const wl={};function BC(e){Object.assign(wl,e)}const Ks=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ui=new Set(Ks);function Hb(e,{layout:t,layoutId:n}){return ui.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wl[e]||e==="opacity")}const Lt=e=>!!(e&&e.getVelocity),FC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UC=Ks.length;function HC(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let s=0;s<UC;s++){const o=Ks[s];if(e[o]!==void 0){const l=FC[o]||o;a+=`${l}(${e[o]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const zb=e=>t=>typeof t=="string"&&t.startsWith(e),Vb=zb("--"),Bd=zb("var(--"),zC=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,VC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Cr=(e,t,n)=>Math.min(Math.max(n,e),t),ci={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},as={...ci,transform:e=>Cr(0,1,e)},vo={...ci,default:1},ss=e=>Math.round(e*1e5)/1e5,yu=/(-)?([\d]*\.?[\d])+/g,jb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jC=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function qs(e){return typeof e=="string"}const Qs=e=>({test:t=>qs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tr=Qs("deg"),Cn=Qs("%"),oe=Qs("px"),$C=Qs("vh"),GC=Qs("vw"),Im={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},Om={...ci,transform:Math.round},$b={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:vo,scaleX:vo,scaleY:vo,scaleZ:vo,skew:tr,skewX:tr,skewY:tr,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:as,originX:Im,originY:Im,originZ:oe,zIndex:Om,fillOpacity:as,strokeOpacity:as,numOctaves:Om};function Ah(e,t,n,r){const{style:i,vars:a,transform:s,transformOrigin:o}=e;let l=!1,u=!1,c=!0;for(const d in t){const h=t[d];if(Vb(d)){a[d]=h;continue}const p=$b[d],m=VC(h,p);if(ui.has(d)){if(l=!0,s[d]=m,!c)continue;h!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,o[d]=m):i[d]=m}if(t.transform||(l||r?i.transform=HC(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:p=0}=o;i.transformOrigin=`${d} ${h} ${p}`}}const kh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gb(e,t,n){for(const r in t)!Lt(t[r])&&!Hb(r,n)&&(e[r]=t[r])}function WC({transformTemplate:e},t,n){return V.useMemo(()=>{const r=kh();return Ah(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function YC(e,t,n){const r=e.style||{},i={};return Gb(i,r,e),Object.assign(i,WC(e,t,n)),e.transformValues?e.transformValues(i):i}function KC(e,t,n){const r={},i=YC(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const qC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Il(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qC.has(e)}let Wb=e=>!Il(e);function QC(e){e&&(Wb=t=>t.startsWith("on")?!Il(t):e(t))}try{QC(require("@emotion/is-prop-valid").default)}catch{}function XC(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Wb(i)||n===!0&&Il(i)||!t&&!Il(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Rm(e,t,n){return typeof e=="string"?e:oe.transform(t+n*e)}function ZC(e,t,n){const r=Rm(t,e.x,e.width),i=Rm(n,e.y,e.height);return`${r} ${i}`}const JC={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"};function tA(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?JC:eA;e[a.offset]=oe.transform(-r);const s=oe.transform(t),o=oe.transform(n);e[a.array]=`${s} ${o}`}function Nh(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d,h){if(Ah(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:b}=e;p.transform&&(b&&(m.transform=p.transform),delete p.transform),b&&(i!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=ZC(b,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&tA(p,s,o,l,!1)}const Yb=()=>({...kh(),attrs:{}}),wh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nA(e,t,n,r){const i=V.useMemo(()=>{const a=Yb();return Nh(a,t,{enableHardwareAcceleration:!1},wh(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Gb(a,e.style,e),i.style={...a,...i.style}}return i}function rA(e=!1){return(n,r,i,{latestValues:a},s)=>{const l=(Ch(n)?nA:KC)(r,a,s,n),c={...XC(r,typeof n=="string",e),...l,ref:i},{children:d}=r,h=V.useMemo(()=>Lt(d)?d.get():d,[d]);return V.createElement(n,{...c,children:h})}}function Kb(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const qb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qb(e,t,n,r){Kb(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qb.has(i)?i:_h(i),t.attrs[i])}function Ih(e,t){const{style:n}=e,r={};for(const i in n)(Lt(n[i])||t.style&&Lt(t.style[i])||Hb(i,e))&&(r[i]=n[i]);return r}function Xb(e,t){const n=Ih(e,t);for(const r in e)if(Lt(e[r])||Lt(t[r])){const i=Ks.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Oh(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Zb(e){const t=V.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ol=e=>Array.isArray(e),iA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),aA=e=>Ol(e)?e[e.length-1]||0:e;function Zo(e){const t=Lt(e)?e.get():e;return iA(t)?t.toValue():t}function sA({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const s={latestValues:oA(r,i,a,e),renderState:t()};return n&&(s.mount=o=>n(r,o,s)),s}const Jb=e=>(t,n)=>{const r=V.useContext(pu),i=V.useContext(mu),a=()=>sA(e,t,r,i);return n?a():Zb(a)};function oA(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Zo(a[h]);let{initial:s,animate:o}=e;const l=bu(e),u=Fb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;return d&&typeof d!="boolean"&&!Eu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Oh(e,p);if(!m)return;const{transitionEnd:b,transition:x,...g}=m;for(const E in g){let y=g[E];if(Array.isArray(y)){const C=c?y.length-1:0;y=y[C]}y!==null&&(i[E]=y)}for(const E in b)i[E]=b[E]}),i}const Ve=e=>e;class Lm{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function lA(e){let t=new Lm,n=new Lm,r=0,i=!1,a=!1;const s=new WeakSet,o={schedule:(l,u=!1,c=!1)=>{const d=c&&i,h=d?t:n;return u&&s.add(l),h.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];c(l),s.has(c)&&(o.schedule(c),e())}i=!1,a&&(a=!1,o.process(l))}};return o}const Co=["prepare","read","update","preRender","render","postRender"],uA=40;function cA(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Co.reduce((d,h)=>(d[h]=lA(()=>n=!0),d),{}),s=d=>a[d].process(i),o=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,uA),1),i.timestamp=d,i.isProcessing=!0,Co.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(o))},l=()=>{n=!0,r=!0,i.isProcessing||e(o)};return{schedule:Co.reduce((d,h)=>{const p=a[h];return d[h]=(m,b=!1,x=!1)=>(n||l(),p.schedule(m,b,x)),d},{}),cancel:d=>Co.forEach(h=>a[h].cancel(d)),state:i,steps:a}}const{schedule:we,cancel:Wn,state:ct,steps:lc}=cA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0),dA={useVisualState:Jb({scrapeMotionValuesFromProps:Xb,createRenderState:Yb,onMount:(e,t,{renderState:n,latestValues:r})=>{we.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),we.render(()=>{Nh(n,r,{enableHardwareAcceleration:!1},wh(t.tagName),e.transformTemplate),Qb(t,n)})}})},fA={useVisualState:Jb({scrapeMotionValuesFromProps:Ih,createRenderState:kh})};function hA(e,{forwardMotionProps:t=!1},n,r){return{...Ch(e)?dA:fA,preloadedFeatures:n,useRender:rA(t),createVisualElement:r,Component:e}}function Bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ey=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Tu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const pA=e=>t=>ey(t)&&e(t,Tu(t));function Un(e,t,n,r){return Bn(e,t,pA(n),r)}const mA=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(mA);function ty(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Dm=ty("dragHorizontal"),Mm=ty("dragVertical");function ny(e){let t=!1;if(e==="y")t=Mm();else if(e==="x")t=Dm();else{const n=Dm(),r=Mm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ry(){const e=ny(!0);return e?(e(),!1):!0}class Ir{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,s)=>{if(a.pointerType==="touch"||ry())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&we.update(()=>o[r](a,s))};return Un(e.current,n,i,{passive:!e.getProps()[r]})}class gA extends Ir{mount(){this.unmount=xr(Pm(this.node,!0),Pm(this.node,!1))}unmount(){}}class EA extends Ir{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(Bn(this.node.current,"focus",()=>this.onFocus()),Bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const iy=(e,t)=>t?e===t?!0:iy(e,t.parentElement):!1;function uc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Tu(n))}class bA extends Ir{constructor(){super(...arguments),this.removeStartListeners=Ve,this.removeEndListeners=Ve,this.removeAccessibleListeners=Ve,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),a=Un(window,"pointerup",(o,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();we.update(()=>{!d&&!iy(this.node.current,o.target)?c&&c(o,l):u&&u(o,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Un(window,"pointercancel",(o,l)=>this.cancelPress(o,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=xr(a,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const s=o=>{o.key!=="Enter"||!this.checkPressEnd()||uc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&we.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Bn(this.node.current,"keyup",s),uc("down",(o,l)=>{this.startPress(o,l)})},n=Bn(this.node.current,"keydown",t),r=()=>{this.isPressing&&uc("cancel",(a,s)=>this.cancelPress(a,s))},i=Bn(this.node.current,"blur",r);this.removeAccessibleListeners=xr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&we.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ry()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&we.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Un(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Bn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Fd=new WeakMap,cc=new WeakMap,yA=e=>{const t=Fd.get(e.target);t&&t(e)},TA=e=>{e.forEach(yA)};function _A({root:e,...t}){const n=e||document;cc.has(n)||cc.set(n,{});const r=cc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TA,{root:e,...t})),r[i]}function xA(e,t,n){const r=_A(t);return Fd.set(e,n),r.observe(e),()=>{Fd.delete(e),r.unobserve(e)}}const SA={some:0,all:1};class vA extends Ir{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:SA[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return xA(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(CA(t,n))&&this.startObserver()}unmount(){}}function CA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AA={inView:{Feature:vA},tap:{Feature:bA},focus:{Feature:EA},hover:{Feature:gA}};function ay(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function kA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function NA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function _u(e,t,n){const r=e.getProps();return Oh(r,t,n!==void 0?n:r.custom,kA(e),NA(e))}let Rl=Ve;const Xr=e=>e*1e3,Hn=e=>e/1e3,wA={current:!1},sy=e=>Array.isArray(e)&&typeof e[0]=="number";function oy(e){return!!(!e||typeof e=="string"&&ly[e]||sy(e)||Array.isArray(e)&&e.every(oy))}const Ka=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ly={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ka([0,.65,.55,1]),circOut:Ka([.55,0,1,.45]),backIn:Ka([.31,.01,.66,-.59]),backOut:Ka([.33,1.53,.69,.99])};function uy(e){if(e)return sy(e)?Ka(e):Array.isArray(e)?e.map(uy):ly[e]}function IA(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:s="loop",ease:o,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=uy(o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function OA(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const cy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,RA=1e-7,LA=12;function DA(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=cy(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>RA&&++o<LA);return s}function Xs(e,t,n,r){if(e===t&&n===r)return Ve;const i=a=>DA(a,0,1,e,n);return a=>a===0||a===1?a:cy(i(a),t,r)}const MA=Xs(.42,0,1,1),PA=Xs(0,0,.58,1),dy=Xs(.42,0,.58,1),BA=e=>Array.isArray(e)&&typeof e[0]!="number",fy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hy=e=>t=>1-e(1-t),Rh=e=>1-Math.sin(Math.acos(e)),py=hy(Rh),FA=fy(Rh),my=Xs(.33,1.53,.69,.99),Lh=hy(my),UA=fy(Lh),HA=e=>(e*=2)<1?.5*Lh(e):.5*(2-Math.pow(2,-10*(e-1))),Bm={linear:Ve,easeIn:MA,easeInOut:dy,easeOut:PA,circIn:Rh,circInOut:FA,circOut:py,backIn:Lh,backInOut:UA,backOut:my,anticipate:HA},Fm=e=>{if(Array.isArray(e)){Rl(e.length===4);const[t,n,r,i]=e;return Xs(t,n,r,i)}else if(typeof e=="string")return Rl(Bm[e]!==void 0),Bm[e];return e},Dh=(e,t)=>n=>!!(qs(n)&&jC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),gy=(e,t,n)=>r=>{if(!qs(r))return r;const[i,a,s,o]=r.match(yu);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},zA=e=>Cr(0,255,e),dc={...ci,transform:e=>Math.round(zA(e))},Yr={test:Dh("rgb","red"),parse:gy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dc.transform(e)+", "+dc.transform(t)+", "+dc.transform(n)+", "+ss(as.transform(r))+")"};function VA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ud={test:Dh("#"),parse:VA,transform:Yr.transform},Ui={test:Dh("hsl","hue"),parse:gy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cn.transform(ss(t))+", "+Cn.transform(ss(n))+", "+ss(as.transform(r))+")"},bt={test:e=>Yr.test(e)||Ud.test(e)||Ui.test(e),parse:e=>Yr.test(e)?Yr.parse(e):Ui.test(e)?Ui.parse(e):Ud.parse(e),transform:e=>qs(e)?e:e.hasOwnProperty("red")?Yr.transform(e):Ui.transform(e)},Pe=(e,t,n)=>-n*e+n*t+e;function fc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=fc(l,o,e+1/3),a=fc(l,o,e),s=fc(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}const hc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},$A=[Ud,Yr,Ui],GA=e=>$A.find(t=>t.test(e));function Um(e){const t=GA(e);let n=t.parse(e);return t===Ui&&(n=jA(n)),n}const Ey=(e,t)=>{const n=Um(e),r=Um(t),i={...n};return a=>(i.red=hc(n.red,r.red,a),i.green=hc(n.green,r.green,a),i.blue=hc(n.blue,r.blue,a),i.alpha=Pe(n.alpha,r.alpha,a),Yr.transform(i))};function WA(e){var t,n;return isNaN(e)&&qs(e)&&(((t=e.match(yu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jb))===null||n===void 0?void 0:n.length)||0)>0}const by={regex:zC,countKey:"Vars",token:"${v}",parse:Ve},yy={regex:jb,countKey:"Colors",token:"${c}",parse:bt.parse},Ty={regex:yu,countKey:"Numbers",token:"${n}",parse:ci.parse};function pc(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function Ll(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&pc(n,by),pc(n,yy),pc(n,Ty),n}function _y(e){return Ll(e).values}function xy(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ll(e),a=t.length;return s=>{let o=i;for(let l=0;l<a;l++)l<r?o=o.replace(by.token,s[l]):l<r+n?o=o.replace(yy.token,bt.transform(s[l])):o=o.replace(Ty.token,ss(s[l]));return o}}const YA=e=>typeof e=="number"?0:e;function KA(e){const t=_y(e);return xy(e)(t.map(YA))}const Ar={test:WA,parse:_y,createTransformer:xy,getAnimatableNone:KA},Sy=(e,t)=>n=>`${n>0?t:e}`;function vy(e,t){return typeof e=="number"?n=>Pe(e,t,n):bt.test(e)?Ey(e,t):e.startsWith("var(")?Sy(e,t):Ay(e,t)}const Cy=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,s)=>vy(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}},qA=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vy(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},Ay=(e,t)=>{const n=Ar.createTransformer(t),r=Ll(e),i=Ll(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?xr(Cy(r.values,i.values),n):Sy(e,t)},Ps=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hm=(e,t)=>n=>Pe(e,t,n);function QA(e){return typeof e=="number"?Hm:typeof e=="string"?bt.test(e)?Ey:Ay:Array.isArray(e)?Cy:typeof e=="object"?qA:Hm}function XA(e,t,n){const r=[],i=n||QA(e[0]),a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ve:t;o=xr(l,o)}r.push(o)}return r}function ky(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Rl(a===t.length),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=XA(t,r,i),o=s.length,l=u=>{let c=0;if(o>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const d=Ps(e[c],e[c+1],u);return s[c](d)};return n?u=>l(Cr(e[0],e[a-1],u)):l}function ZA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ps(0,t,r);e.push(Pe(n,1,i))}}function JA(e){const t=[0];return ZA(t,e.length-1),t}function ek(e,t){return e.map(n=>n*t)}function tk(e,t){return e.map(()=>t||dy).splice(0,e.length-1)}function Dl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=BA(r)?r.map(Fm):Fm(r),a={done:!1,value:t[0]},s=ek(n&&n.length===t.length?n:JA(t),e),o=ky(s,t,{ease:Array.isArray(i)?i:tk(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}function Ny(e,t){return t?e*(1e3/t):0}const nk=5;function wy(e,t,n){const r=Math.max(t-nk,0);return Ny(n-e(r),t-r)}const mc=.001,rk=.01,ik=10,ak=.05,sk=1;function ok({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,s=1-t;s=Cr(ak,sk,s),e=Cr(rk,ik,Hn(e)),s<1?(i=u=>{const c=u*s,d=c*e,h=c-n,p=Hd(u,s),m=Math.exp(-d);return mc-h/p*m},a=u=>{const d=u*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),b=Hd(Math.pow(u,2),s);return(-i(u)+mc>0?-1:1)*((h-p)*m)/b}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-mc+c*d},a=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=uk(i,a,o);if(e=Xr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lk=12;function uk(e,t,n){let r=n;for(let i=1;i<lk;i++)r=r-e(r)/t(r);return r}function Hd(e,t){return e*Math.sqrt(1-t*t)}const ck=["duration","bounce"],dk=["stiffness","damping","mass"];function zm(e,t){return t.some(n=>e[n]!==void 0)}function fk(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!zm(e,dk)&&zm(e,ck)){const n=ok(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Iy({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],s={done:!1,value:i},{stiffness:o,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:h}=fk({...r,velocity:-Hn(r.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(o*u)),b=a-i,x=Hn(Math.sqrt(o/u)),g=Math.abs(b)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let E;if(m<1){const y=Hd(x,m);E=C=>{const O=Math.exp(-m*x*C);return a-O*((p+m*x*b)/y*Math.sin(y*C)+b*Math.cos(y*C))}}else if(m===1)E=y=>a-Math.exp(-x*y)*(b+(p+x*b)*y);else{const y=x*Math.sqrt(m*m-1);E=C=>{const O=Math.exp(-m*x*C),A=Math.min(y*C,300);return a-O*((p+m*x*b)*Math.sinh(A)+y*b*Math.cosh(A))/y}}return{calculatedDuration:h&&c||null,next:y=>{const C=E(y);if(h)s.done=y>=c;else{let O=p;y!==0&&(m<1?O=wy(E,y,C):O=0);const A=Math.abs(O)<=n,D=Math.abs(a-C)<=t;s.done=A&&D}return s.value=s.done?a:C,s}}}function Vm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},p=L=>o!==void 0&&L<o||l!==void 0&&L>l,m=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const x=d+b,g=s===void 0?x:s(x);g!==x&&(b=g-d);const E=L=>-b*Math.exp(-L/r),y=L=>g+E(L),C=L=>{const U=E(L),w=y(L);h.done=Math.abs(U)<=u,h.value=h.done?g:w};let O,A;const D=L=>{p(h.value)&&(O=L,A=Iy({keyframes:[h.value,m(h.value)],velocity:wy(y,L,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let U=!1;return!A&&O===void 0&&(U=!0,C(L),D(L)),O!==void 0&&L>O?A.next(L-O):(!U&&C(L),h)}}}const hk=e=>{const t=({timestamp:n})=>e(n);return{start:()=>we.update(t,!0),stop:()=>Wn(t),now:()=>ct.isProcessing?ct.timestamp:performance.now()}},jm=2e4;function $m(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jm;)t+=n,r=e.next(t);return t>=jm?1/0:t}const pk={decay:Vm,inertia:Vm,tween:Dl,keyframes:Dl,spring:Iy};function Ml({autoplay:e=!0,delay:t=0,driver:n=hk,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:o="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let p=1,m=!1,b,x;const g=()=>{x=new Promise(W=>{b=W})};g();let E;const y=pk[i]||Dl;let C;y!==Dl&&typeof r[0]!="number"&&(C=ky([0,100],r,{clamp:!1}),r=[0,100]);const O=y({...h,keyframes:r});let A;o==="mirror"&&(A=y({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let D="idle",L=null,U=null,w=null;O.calculatedDuration===null&&a&&(O.calculatedDuration=$m(O));const{calculatedDuration:Y}=O;let H=1/0,re=1/0;Y!==null&&(H=Y+s,re=H*(a+1)-s);let Z=0;const J=W=>{if(U===null)return;p>0&&(U=Math.min(U,W)),p<0&&(U=Math.min(W-re/p,U)),L!==null?Z=L:Z=Math.round(W-U)*p;const ie=Z-t*(p>=0?1:-1),N=p>=0?ie<0:ie>re;Z=Math.max(ie,0),D==="finished"&&L===null&&(Z=re);let he=Z,xe=O;if(a){const Ct=Math.min(Z,re)/H;let gt=Math.floor(Ct),ot=Ct%1;!ot&&Ct>=1&&(ot=1),ot===1&&gt--,gt=Math.min(gt,a+1),!!(gt%2)&&(o==="reverse"?(ot=1-ot,s&&(ot-=s/H)):o==="mirror"&&(xe=A)),he=Cr(0,1,ot)*H}const pe=N?{done:!1,value:r[0]}:xe.next(he);C&&(pe.value=C(pe.value));let{done:Ze}=pe;!N&&Y!==null&&(Ze=p>=0?Z>=re:Z<=0);const st=L===null&&(D==="finished"||D==="running"&&Ze);return d&&d(pe.value),st&&M(),pe},P=()=>{E&&E.stop(),E=void 0},$=()=>{D="idle",P(),b(),g(),U=w=null},M=()=>{D="finished",c&&c(),P(),b()},z=()=>{if(m)return;E||(E=n(J));const W=E.now();l&&l(),L!==null?U=W-L:(!U||D==="finished")&&(U=W),D==="finished"&&g(),w=U,L=null,D="running",E.start()};e&&z();const _={then(W,ie){return x.then(W,ie)},get time(){return Hn(Z)},set time(W){W=Xr(W),Z=W,L!==null||!E||p===0?L=W:U=E.now()-W/p},get duration(){const W=O.calculatedDuration===null?$m(O):O.calculatedDuration;return Hn(W)},get speed(){return p},set speed(W){W===p||!E||(p=W,_.time=Hn(Z))},get state(){return D},play:z,pause:()=>{D="paused",L=Z},stop:()=>{m=!0,D!=="idle"&&(D="idle",u&&u(),$())},cancel:()=>{w!==null&&J(w),$()},complete:()=>{D="finished"},sample:W=>(U=0,J(W))};return _}function mk(e){let t;return()=>(t===void 0&&(t=e()),t)}const gk=mk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ek=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ao=10,bk=2e4,yk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!oy(t.ease);function Tk(e,t,{onUpdate:n,onComplete:r,...i}){if(!(gk()&&Ek.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,o,l,u=!1;const c=()=>{l=new Promise(y=>{o=y})};c();let{keyframes:d,duration:h=300,ease:p,times:m}=i;if(yk(t,i)){const y=Ml({...i,repeat:0,delay:0});let C={done:!1,value:d[0]};const O=[];let A=0;for(;!C.done&&A<bk;)C=y.sample(A),O.push(C.value),A+=Ao;m=void 0,d=O,h=A-Ao,p="linear"}const b=IA(e.owner.current,t,d,{...i,duration:h,ease:p,times:m}),x=()=>{u=!1,b.cancel()},g=()=>{u=!0,we.update(x),o(),c()};return b.onfinish=()=>{u||(e.set(OA(d,i)),r&&r(),g())},{then(y,C){return l.then(y,C)},attachTimeline(y){return b.timeline=y,b.onfinish=null,Ve},get time(){return Hn(b.currentTime||0)},set time(y){b.currentTime=Xr(y)},get speed(){return b.playbackRate},set speed(y){b.playbackRate=y},get duration(){return Hn(h)},play:()=>{s||(b.play(),Wn(x))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:y}=b;if(y){const C=Ml({...i,autoplay:!1});e.setWithVelocity(C.sample(y-Ao).value,C.sample(y).value,Ao)}g()},complete:()=>{u||b.finish()},cancel:g}}function _k({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ve,pause:Ve,stop:Ve,then:a=>(a(),Promise.resolve()),cancel:Ve,complete:Ve});return t?Ml({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const xk={type:"spring",stiffness:500,damping:25,restSpeed:10},Sk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vk={type:"keyframes",duration:.8},Ck={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ak=(e,{keyframes:t})=>t.length>2?vk:ui.has(e)?e.startsWith("scale")?Sk(t[1]):xk:Ck,zd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ar.test(t)||t==="0")&&!t.startsWith("url(")),kk=new Set(["brightness","contrast","saturate","opacity"]);function Nk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yu)||[];if(!r)return e;const i=n.replace(r,"");let a=kk.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const wk=/([a-z-]*)\(.*?\)/g,Vd={...Ar,getAnimatableNone:e=>{const t=e.match(wk);return t?t.map(Nk).join(" "):e}},Ik={...$b,color:bt,backgroundColor:bt,outlineColor:bt,fill:bt,stroke:bt,borderColor:bt,borderTopColor:bt,borderRightColor:bt,borderBottomColor:bt,borderLeftColor:bt,filter:Vd,WebkitFilter:Vd},Mh=e=>Ik[e];function Oy(e,t){let n=Mh(e);return n!==Vd&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ry=e=>/^0[^.\s]+$/.test(e);function Ok(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ry(e)}function Rk(e,t,n,r){const i=zd(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const s=r.from!==void 0?r.from:e.get();let o;const l=[];for(let u=0;u<a.length;u++)a[u]===null&&(a[u]=u===0?s:a[u-1]),Ok(a[u])&&l.push(u),typeof a[u]=="string"&&a[u]!=="none"&&a[u]!=="0"&&(o=a[u]);if(i&&l.length&&o)for(let u=0;u<l.length;u++){const c=l[u];a[c]=Oy(t,o)}return a}function Lk({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Ph(e,t){return e[t]||e.default||e}const Dk={skipAnimations:!1},Bh=(e,t,n,r={})=>i=>{const a=Ph(r,e)||{},s=a.delay||r.delay||0;let{elapsed:o=0}=r;o=o-Xr(s);const l=Rk(t,e,n,a),u=l[0],c=l[l.length-1],d=zd(e,u),h=zd(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-o,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(Lk(a)||(p={...p,...Ak(e,p)}),p.duration&&(p.duration=Xr(p.duration)),p.repeatDelay&&(p.repeatDelay=Xr(p.repeatDelay)),!d||!h||wA.current||a.type===!1||Dk.skipAnimations)return _k(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Tk(t,e,p);if(m)return m}return Ml(p)};function Pl(e){return!!(Lt(e)&&e.add)}const Ly=e=>/^\-?\d*\.?\d+$/.test(e);function Fh(e,t){e.indexOf(t)===-1&&e.push(t)}function Uh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hh{constructor(){this.subscriptions=[]}add(t){return Fh(this.subscriptions,t),()=>Uh(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Mk=e=>!isNaN(parseFloat(e));class Pk{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:s}=ct;this.lastUpdated!==s&&(this.timeDelta=a,this.lastUpdated=s,we.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>we.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Mk(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hh);const r=this.events[t].add(n);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ny(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function aa(e,t){return new Pk(e,t)}const Dy=e=>t=>t.test(e),Bk={test:e=>e==="auto",parse:e=>e},My=[ci,oe,Cn,tr,GC,$C,Bk],Ma=e=>My.find(Dy(e)),Fk=[...My,bt,Ar],Uk=e=>Fk.find(Dy(e));function Hk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,aa(n))}function zk(e,t){const n=_u(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const s in a){const o=aA(a[s]);Hk(e,s,o)}}function Vk(e,t,n){var r,i;const a=Object.keys(t).filter(o=>!e.hasValue(o)),s=a.length;if(s)for(let o=0;o<s;o++){const l=a[o],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),c!=null&&(typeof c=="string"&&(Ly(c)||Ry(c))?c=parseFloat(c):!Uk(c)&&Ar.test(u)&&(c=Oy(l,u)),e.addValue(l,aa(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function jk(e,t){return t?(t[e]||t.default||t).from:void 0}function $k(e,t,n){const r={};for(const i in e){const a=jk(i,t);if(a!==void 0)r[i]=a;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function Gk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wk(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Py(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in o){const h=e.getValue(d),p=o[d];if(!h||p===void 0||c&&Gk(c,d))continue;const m={delay:n,elapsed:0,...Ph(a||{},d)};if(window.HandoffAppearAnimations){const g=e.getProps()[Bb];if(g){const E=window.HandoffAppearAnimations(g,d,h,we);E!==null&&(m.elapsed=E,m.isHandoff=!0)}}let b=!m.isHandoff&&!Wk(h,p);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(b=!1),h.animation&&(b=!1),b)continue;h.start(Bh(d,h,p,e.shouldReduceMotion&&ui.has(d)?{type:!1}:m));const x=h.animation;Pl(l)&&(l.add(d),x.then(()=>l.remove(d))),u.push(x)}return s&&Promise.all(u).then(()=>{s&&zk(e,s)}),u}function jd(e,t,n={}){const r=_u(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Py(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return Yk(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,u]=o==="beforeChildren"?[a,s]:[s,a];return l().then(()=>u())}else return Promise.all([a(),s(n.delay)])}function Yk(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(Kk).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(jd(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Kk(e,t){return e.sortNodePosition(t)}function qk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>jd(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=jd(e,t,n);else{const i=typeof t=="function"?_u(e,t,n.custom):t;r=Promise.all(Py(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Qk=[...xh].reverse(),Xk=xh.length;function Zk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qk(e,n,r)))}function Jk(e){let t=Zk(e);const n=tN();let r=!0;const i=(l,u)=>{const c=_u(e,u);if(c){const{transition:d,transitionEnd:h,...p}=c;l={...l,...p,...h}}return l};function a(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},h=[],p=new Set;let m={},b=1/0;for(let g=0;g<Xk;g++){const E=Qk[g],y=n[E],C=c[E]!==void 0?c[E]:d[E],O=Ds(C),A=E===u?y.isActive:null;A===!1&&(b=g);let D=C===d[E]&&C!==c[E]&&O;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),y.protectedKeys={...m},!y.isActive&&A===null||!C&&!y.prevProp||Eu(C)||typeof C=="boolean")continue;let U=eN(y.prevProp,C)||E===u&&y.isActive&&!D&&O||g>b&&O,w=!1;const Y=Array.isArray(C)?C:[C];let H=Y.reduce(i,{});A===!1&&(H={});const{prevResolvedValues:re={}}=y,Z={...re,...H},J=P=>{U=!0,p.has(P)&&(w=!0,p.delete(P)),y.needsAnimating[P]=!0};for(const P in Z){const $=H[P],M=re[P];if(m.hasOwnProperty(P))continue;let z=!1;Ol($)&&Ol(M)?z=!ay($,M):z=$!==M,z?$!==void 0?J(P):p.add(P):$!==void 0&&p.has(P)?J(P):y.protectedKeys[P]=!0}y.prevProp=C,y.prevResolvedValues=H,y.isActive&&(m={...m,...H}),r&&e.blockInitialAnimation&&(U=!1),U&&(!D||w)&&h.push(...Y.map(P=>({animation:P,options:{type:E,...l}})))}if(p.size){const g={};p.forEach(E=>{const y=e.getBaseTarget(E);y!==void 0&&(g[E]=y)}),h.push({animation:g})}let x=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function o(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=s(c,l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n}}function eN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ay(t,e):!1}function Mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tN(){return{animate:Mr(!0),whileInView:Mr(),whileHover:Mr(),whileTap:Mr(),whileDrag:Mr(),whileFocus:Mr(),exit:Mr()}}class nN extends Ir{constructor(t){super(t),t.animationState||(t.animationState=Jk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Eu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let rN=0;class iN extends Ir{constructor(){super(...arguments),this.id=rN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const aN={animation:{Feature:nN},exit:{Feature:iN}},Gm=(e,t)=>Math.abs(e-t);function sN(e,t){const n=Gm(e.x,t.x),r=Gm(e.y,t.y);return Math.sqrt(n**2+r**2)}class By{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ec(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=sN(d.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:m}=d,{timestamp:b}=ct;this.history.push({...m,timestamp:b});const{onStart:x,onMove:g}=this.handlers;h||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=gc(h,this.transformPagePoint),we.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ec(d.type==="pointercancel"?this.lastMoveEventInfo:gc(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),m&&m(d,x)},!ey(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Tu(t),o=gc(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=ct;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ec(o,this.history)),this.removeListeners=xr(Un(this.contextWindow,"pointermove",this.handlePointerMove),Un(this.contextWindow,"pointerup",this.handlePointerUp),Un(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wn(this.updatePoint)}}function gc(e,t){return t?{point:t(e.point)}:e}function Wm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ec({point:e},t){return{point:e,delta:Wm(e,Fy(t)),offset:Wm(e,oN(t)),velocity:lN(t,.1)}}function oN(e){return e[0]}function Fy(e){return e[e.length-1]}function lN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Xr(t)));)n--;if(!r)return{x:0,y:0};const a=Hn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $t(e){return e.max-e.min}function $d(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ym(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),($d(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,($d(e.translate)||isNaN(e.translate))&&(e.translate=0)}function os(e,t,n,r){Ym(e.x,t.x,n.x,r?r.originX:void 0),Ym(e.y,t.y,n.y,r?r.originY:void 0)}function Km(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function uN(e,t,n){Km(e.x,t.x,n.x),Km(e.y,t.y,n.y)}function qm(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function ls(e,t,n){qm(e.x,t.x,n.x),qm(e.y,t.y,n.y)}function cN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function Qm(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function dN(e,{top:t,left:n,bottom:r,right:i}){return{x:Qm(e.x,n,i),y:Qm(e.y,t,r)}}function Xm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fN(e,t){return{x:Xm(e.x,t.x),y:Xm(e.y,t.y)}}function hN(e,t){let n=.5;const r=$t(e),i=$t(t);return i>r?n=Ps(t.min,t.max-r,e.min):r>i&&(n=Ps(e.min,e.max-i,t.min)),Cr(0,1,n)}function pN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Gd=.35;function mN(e=Gd){return e===!1?e=0:e===!0&&(e=Gd),{x:Zm(e,"left","right"),y:Zm(e,"top","bottom")}}function Zm(e,t,n){return{min:Jm(e,t),max:Jm(e,n)}}function Jm(e,t){return typeof e=="number"?e:e[t]||0}const e0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hi=()=>({x:e0(),y:e0()}),t0=()=>({min:0,max:0}),Ge=()=>({x:t0(),y:t0()});function Kt(e){return[e("x"),e("y")]}function Uy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function gN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function EN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bc(e){return e===void 0||e===1}function Wd({scale:e,scaleX:t,scaleY:n}){return!bc(e)||!bc(t)||!bc(n)}function Ur(e){return Wd(e)||Hy(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hy(e){return n0(e.x)||n0(e.y)}function n0(e){return e&&e!=="0%"}function Bl(e,t,n){const r=e-n,i=t*r;return n+i}function r0(e,t,n,r,i){return i!==void 0&&(e=Bl(e,i,r)),Bl(e,n,r)+t}function Yd(e,t=0,n=1,r,i){e.min=r0(e.min,t,n,r,i),e.max=r0(e.max,t,n,r,i)}function zy(e,{x:t,y:n}){Yd(e.x,t.translate,t.scale,t.originPoint),Yd(e.y,n.translate,n.scale,n.originPoint)}function bN(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,zy(e,s)),r&&Ur(a.latestValues)&&zi(e,a.latestValues))}t.x=i0(t.x),t.y=i0(t.y)}function i0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function sr(e,t){e.min=e.min+t,e.max=e.max+t}function a0(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,a);Yd(e,t[n],t[r],s,t.scale)}const yN=["x","scaleX","originX"],TN=["y","scaleY","originY"];function zi(e,t){a0(e.x,t,yN),a0(e.y,t,TN)}function Vy(e,t){return Uy(EN(e.getBoundingClientRect(),t))}function _N(e,t,n){const r=Vy(e,n),{scroll:i}=t;return i&&(sr(r.x,i.offset.x),sr(r.y,i.offset.y)),r}const jy=({current:e})=>e?e.ownerDocument.defaultView:null,xN=new WeakMap;class SN{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ge(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Tu(c,"page").point)},a=(c,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ny(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Kt(x=>{let g=this.getAxisMotionValue(x).get()||0;if(Cn.test(g)){const{projection:E}=this.visualElement;if(E&&E.layout){const y=E.layout.layoutBox[x];y&&(g=$t(y)*(parseFloat(g)/100))}}this.originPoint[x]=g}),m&&we.update(()=>m(c,d),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:b}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=vN(x),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),b&&b(c,d)},o=(c,d)=>this.stop(c,d),l=()=>Kt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new By(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:jy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&we.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ko(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=cN(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Fi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=dN(i.layoutBox,n):this.constraints=!1,this.elastic=mN(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Kt(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=pN(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=_N(r,i.root,this.visualElement.getTransformPagePoint());let s=fN(i.layout.layoutBox,a);if(n){const o=n(gN(s));this.hasMutatedConstraints=!!o,o&&(s=Uy(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=Kt(c=>{if(!ko(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Bh(t,r,0,n))}stopAnimation(){Kt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Kt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Kt(n=>{const{drag:r}=this.getProps();if(!ko(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-Pe(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Fi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Kt(s=>{const o=this.getAxisMotionValue(s);if(o){const l=o.get();i[s]=hN({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Kt(s=>{if(!ko(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(Pe(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;xN.set(this.visualElement,this);const t=this.visualElement.current,n=Un(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Fi(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Bn(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Kt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Gd,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function ko(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class CN extends Ir{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new SN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const s0=e=>(t,n)=>{e&&we.update(()=>e(t,n))};class AN extends Ir{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new By(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:s0(t),onStart:s0(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&we.update(()=>i(a,s))}}}mount(){this.removePointerDownListener=Un(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function kN(){const e=V.useContext(mu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=V.useId();return V.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Jo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function o0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=o0(e,t.target.x),r=o0(e,t.target.y);return`${n}% ${r}%`}},NN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const a=Ar.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=l;const u=Pe(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),a(i)}};class wN extends wf.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;BC(IN),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Jo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||we.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $y(e){const[t,n]=kN(),r=V.useContext(vh);return wf.createElement(wN,{...e,layoutGroup:r,switchLayoutGroup:V.useContext(Ub),isPresent:t,safeToRemove:n})}const IN={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:NN},Gy=["TopLeft","TopRight","BottomLeft","BottomRight"],ON=Gy.length,l0=e=>typeof e=="string"?parseFloat(e):e,u0=e=>typeof e=="number"||oe.test(e);function RN(e,t,n,r,i,a){i?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,LN(r)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,DN(r))):a&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<ON;s++){const o=`border${Gy[s]}Radius`;let l=c0(t,o),u=c0(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||u0(l)===u0(u)?(e[o]=Math.max(Pe(l0(l),l0(u),r),0),(Cn.test(u)||Cn.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function c0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const LN=Wy(0,.5,py),DN=Wy(.5,.95,Ve);function Wy(e,t,n){return r=>r<e?0:r>t?1:n(Ps(e,t,r))}function d0(e,t){e.min=t.min,e.max=t.max}function Yt(e,t){d0(e.x,t.x),d0(e.y,t.y)}function f0(e,t,n,r,i){return e-=t,e=Bl(e,1/n,r),i!==void 0&&(e=Bl(e,1/i,r)),e}function MN(e,t=0,n=1,r=.5,i,a=e,s=e){if(Cn.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=Pe(a.min,a.max,r);e===a&&(o-=t),e.min=f0(e.min,t,n,o,i),e.max=f0(e.max,t,n,o,i)}function h0(e,t,[n,r,i],a,s){MN(e,t[n],t[r],t[i],t.scale,a,s)}const PN=["x","scaleX","originX"],BN=["y","scaleY","originY"];function p0(e,t,n,r){h0(e.x,t,PN,n?n.x:void 0,r?r.x:void 0),h0(e.y,t,BN,n?n.y:void 0,r?r.y:void 0)}function m0(e){return e.translate===0&&e.scale===1}function Yy(e){return m0(e.x)&&m0(e.y)}function FN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ky(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function g0(e){return $t(e.x)/$t(e.y)}class UN{constructor(){this.members=[]}add(t){Fh(this.members,t),t.scheduleRender()}remove(t){if(Uh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function E0(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,o=e.y.scale*t.y;return(s!==1||o!==1)&&(r+=`scale(${s}, ${o})`),r||"none"}const HN=(e,t)=>e.depth-t.depth;class zN{constructor(){this.children=[],this.isDirty=!1}add(t){Fh(this.children,t),this.isDirty=!0}remove(t){Uh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(HN),this.isDirty=!1,this.children.forEach(t)}}function VN(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wn(r),e(a-t))};return we.read(r,!0),()=>Wn(r)}function jN(e){window.MotionDebug&&window.MotionDebug.record(e)}function $N(e){return e instanceof SVGElement&&e.tagName!=="svg"}function GN(e,t,n){const r=Lt(e)?e:aa(e);return r.start(Bh("",r,t,n)),r.animation}const b0=["","X","Y","Z"],WN={visibility:"hidden"},y0=1e3;let YN=0;const Hr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=YN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Hr.totalNodes=Hr.resolvedTargetDeltas=Hr.recalculatedProjection=0,this.nodes.forEach(QN),this.nodes.forEach(t2),this.nodes.forEach(n2),this.nodes.forEach(XN),jN(Hr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zN)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hh),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$N(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=VN(h,250),Jo.hasAnimatedSinceResize&&(Jo.hasAnimatedSinceResize=!1,this.nodes.forEach(_0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||o2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),E=!this.targetLayout||!Ky(this.targetLayout,m)||p,y=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const C={...Ph(b,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||_0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(T0);return}this.isUpdating||this.nodes.forEach(JN),this.isUpdating=!1,this.nodes.forEach(e2),this.nodes.forEach(KN),this.nodes.forEach(qN),this.clearAllSnapshots();const o=performance.now();ct.delta=Cr(0,1e3/60,o-ct.timestamp),ct.timestamp=o,ct.isProcessing=!0,lc.update.process(ct),lc.preRender.process(ct),lc.render.process(ct),ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ZN),this.sharedNodes.forEach(i2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,we.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){we.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,o=this.projectionDelta&&!Yy(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Ur(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),l2(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ge();const o=s.measureViewportBox(),{scroll:l}=this.root;return l&&(sr(o.x,l.offset.x),sr(o.y,l.offset.y)),o}removeElementScroll(s){const o=Ge();Yt(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;if(u!==this.root&&c&&d.layoutScroll){if(c.isRoot){Yt(o,s);const{scroll:h}=this.root;h&&(sr(o.x,-h.offset.x),sr(o.y,-h.offset.y))}sr(o.x,c.offset.x),sr(o.y,c.offset.y)}}return o}applyTransform(s,o=!1){const l=Ge();Yt(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&zi(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ur(c.latestValues)&&zi(l,c.latestValues)}return Ur(this.latestValues)&&zi(l,this.latestValues),l}removeTransform(s){const o=Ge();Yt(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ur(u.latestValues))continue;Wd(u.latestValues)&&u.updateSnapshot();const c=Ge(),d=u.measurePageBox();Yt(c,d),p0(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ur(this.latestValues)&&p0(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=ct.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ge(),this.relativeTargetOrigin=Ge(),ls(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ge(),this.targetWithTransforms=Ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yt(this.target,this.layout.layoutBox),zy(this.target,this.targetDelta)):Yt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ge(),this.relativeTargetOrigin=Ge(),ls(this.relativeTargetOrigin,this.target,p.target),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Wd(this.parent.latestValues)||Hy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ct.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Yt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;bN(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox);const{target:m}=o;if(!m){this.projectionTransform&&(this.projectionDelta=Hi(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Hi(),this.projectionDeltaWithTransform=Hi());const b=this.projectionTransform;os(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=E0(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Hr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Hi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=Ge(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,b=p!==m,x=this.getStack(),g=!x||x.members.length<=1,E=!!(b&&!g&&this.options.crossfade===!0&&!this.path.some(s2));this.animationProgress=0;let y;this.mixTargetDelta=C=>{const O=C/1e3;x0(d.x,s.x,O),x0(d.y,s.y,O),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ls(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a2(this.relativeTarget,this.relativeTargetOrigin,h,O),y&&FN(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Ge()),Yt(y,this.relativeTarget)),b&&(this.animationValues=c,RN(c,u,this.latestValues,O,E,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(()=>{Jo.hasAnimatedSinceResize=!0,this.currentAnimation=GN(0,y0,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(y0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&Qy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ge();const d=$t(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=$t(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Yt(o,l),zi(o,c),os(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new UN),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(o=!0),!o)return;const u={};for(let c=0;c<b0.length;c++){const d="rotate"+b0[c];l[d]&&(u[d]=l[d],s.setStaticValue(d,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return WN;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Zo(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Zo(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ur(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=E0(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:p,y:m}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=h.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in wl){if(h[b]===void 0)continue;const{correct:x,applyTo:g}=wl[b],E=u.transform==="none"?h[b]:x(h[b],d);if(g){const y=g.length;for(let C=0;C<y;C++)u[g[C]]=E}else u[b]=E}return this.options.layoutId&&(u.pointerEvents=d===this?Zo(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(T0),this.root.sharedNodes.clear()}}}function KN(e){e.updateLayout()}function qN(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?Kt(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=$t(h);h.min=r[d].min,h.max=h.min+p}):Qy(a,n.layoutBox,r)&&Kt(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=$t(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=Hi();os(o,r,n.layoutBox);const l=Hi();s?os(l,e.applyTransform(i,!0),n.measuredBox):os(l,r,n.layoutBox);const u=!Yy(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const m=Ge();ls(m,n.layoutBox,h.layoutBox);const b=Ge();ls(b,r,p.layoutBox),Ky(m,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QN(e){Hr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function XN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZN(e){e.clearSnapshot()}function T0(e){e.clearMeasurements()}function JN(e){e.isLayoutDirty=!1}function e2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t2(e){e.resolveTargetDelta()}function n2(e){e.calcProjection()}function r2(e){e.resetRotation()}function i2(e){e.removeLeadSnapshot()}function x0(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function S0(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function a2(e,t,n,r){S0(e.x,t.x,n.x,r),S0(e.y,t.y,n.y,r)}function s2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const o2={duration:.45,ease:[.4,0,.1,1]},v0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),C0=v0("applewebkit/")&&!v0("chrome/")?Math.round:Ve;function A0(e){e.min=C0(e.min),e.max=C0(e.max)}function l2(e){A0(e.x),A0(e.y)}function Qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!$d(g0(t),g0(n),.2)}const u2=qy({attachResizeListener:(e,t)=>Bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),yc={current:void 0},Xy=qy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yc.current){const e=new u2({});e.mount(window),e.setOptions({layoutScroll:!0}),yc.current=e}return yc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),c2={pan:{Feature:AN},drag:{Feature:CN,ProjectionNode:Xy,MeasureLayout:$y}},d2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f2(e){const t=d2.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Kd(e,t,n=1){const[r,i]=f2(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Ly(s)?parseFloat(s):s}else return Bd(i)?Kd(i,t,n+1):i}function h2(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!Bd(a))return;const s=Kd(a,r);s&&i.set(s)});for(const i in t){const a=t[i];if(!Bd(a))continue;const s=Kd(a,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const p2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zy=e=>p2.has(e),m2=e=>Object.keys(e).some(Zy),k0=e=>e===ci||e===oe,N0=(e,t)=>parseFloat(e.split(", ")[t]),w0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return N0(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?N0(a[1],e):0}},g2=new Set(["x","y","z"]),E2=Ks.filter(e=>!g2.has(e));function b2(e){const t=[];return E2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const sa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:w0(4,13),y:w0(5,14)};sa.translateX=sa.x;sa.translateY=sa.y;const y2=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:s}=a,o={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{o[u]=sa[u](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(o[u]),e[u]=sa[u](l,a)}),e},T2=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Zy);let a=[],s=!1;const o=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Ma(c);const h=t[l];let p;if(Ol(h)){const m=h.length,b=h[0]===null?1:0;c=h[b],d=Ma(c);for(let x=b;x<m&&h[x]!==null;x++)p?Rl(Ma(h[x])===p):p=Ma(h[x])}else p=Ma(h);if(d!==p)if(k0(d)&&k0(p)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&p===oe&&(t[l]=h.map(parseFloat))}else d!=null&&d.transform&&(p!=null&&p.transform)&&(c===0||h===0)?c===0?u.set(p.transform(c)):t[l]=d.transform(h):(s||(a=b2(e),s=!0),o.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(h))}),o.length){const l=o.indexOf("height")>=0?window.pageYOffset:null,u=y2(t,e,o);return a.length&&a.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),gu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function _2(e,t,n,r){return m2(t)?T2(e,t,n,r):{target:t,transitionEnd:r}}const x2=(e,t,n,r)=>{const i=h2(e,t,r);return t=i.target,r=i.transitionEnd,_2(e,t,n,r)},qd={current:null},Jy={current:!1};function S2(){if(Jy.current=!0,!!gu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qd.current=e.matches;e.addListener(t),t()}else qd.current=!1}function v2(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],s=n[i];if(Lt(a))e.addValue(i,a),Pl(r)&&r.add(i);else if(Lt(s))e.addValue(i,aa(a,{owner:e})),Pl(r)&&r.remove(i);else if(s!==a)if(e.hasValue(i)){const o=e.getValue(i);!o.hasAnimated&&o.set(a)}else{const o=e.getStaticValue(i);e.addValue(i,aa(o!==void 0?o:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const I0=new WeakMap,eT=Object.keys(Ms),C2=eT.length,O0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A2=Sh.length;class k2{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>we.render(this.render,!1,!0);const{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=n.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=bu(n),this.isVariantNode=Fb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const h=c[d];o[d]!==void 0&&Lt(h)&&(h.set(o[d],!1),Pl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,I0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||S2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){I0.delete(this.current),this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=ui.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&we.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let s,o;for(let l=0;l<C2;l++){const u=eT[l],{isEnabled:c,Feature:d,ProjectionNode:h,MeasureLayout:p}=Ms[u];h&&(s=h),c(n)&&(!this.features[u]&&d&&(this.features[u]=new d(this)),p&&(o=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||d&&Fi(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:p})}return o}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<O0.length;r++){const i=O0[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=v2(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<A2;r++){const i=Sh[r],a=this.props[i];(Ds(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=aa(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Oh(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Lt(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class tT extends k2{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let s=$k(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),a){Vk(this,r,s);const o=x2(this,r,s,n);n=o.transitionEnd,r=o.target}return{transition:t,transitionEnd:n,...r}}}function N2(e){return window.getComputedStyle(e)}class w2 extends tT{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(ui.has(n)){const r=Mh(n);return r&&r.default||0}else{const r=N2(t),i=(Vb(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Vy(t,n)}build(t,n,r,i){Ah(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ih(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Kb(t,n,r,i)}}class I2 extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ui.has(n)){const r=Mh(n);return r&&r.default||0}return n=qb.has(n)?n:_h(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ge()}scrapeMotionValuesFromProps(t,n){return Xb(t,n)}build(t,n,r,i){Nh(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Qb(t,n,r,i)}mount(t){this.isSVGTag=wh(t.tagName),super.mount(t)}}const O2=(e,t)=>Ch(e)?new I2(t,{enableHardwareAcceleration:!1}):new w2(t,{enableHardwareAcceleration:!0}),R2={layout:{ProjectionNode:Xy,MeasureLayout:$y}},L2={...aN,...AA,...c2,...R2},ne=MC((e,t)=>hA(e,t,L2,O2));function nT(){const e=V.useRef(!1);return Th(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function D2(){const e=nT(),[t,n]=V.useState(0),r=V.useCallback(()=>{e.current&&n(t+1)},[t]);return[V.useCallback(()=>we.postRender(r),[r]),t]}class M2 extends V.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function P2({children:e,isPresent:t}){const n=V.useId(),r=V.useRef(null),i=V.useRef({width:0,height:0,top:0,left:0});return V.useInsertionEffect(()=>{const{width:a,height:s,top:o,left:l}=i.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${a}px !important;
            height: ${s}px !important;
            top: ${o}px !important;
            left: ${l}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[t]),V.createElement(M2,{isPresent:t,childRef:r,sizeRef:i},V.cloneElement(e,{ref:r}))}const Tc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s})=>{const o=Zb(B2),l=V.useId(),u=V.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{o.set(c,!0);for(const d of o.values())if(!d)return;r&&r()},register:c=>(o.set(c,!1),()=>o.delete(c))}),a?void 0:[n]);return V.useMemo(()=>{o.forEach((c,d)=>o.set(d,!1))},[n]),V.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=V.createElement(P2,{isPresent:n},e)),V.createElement(mu.Provider,{value:u},e)};function B2(){return new Map}function F2(e){return V.useEffect(()=>()=>e(),[])}const zr=e=>e.key||"";function U2(e,t){e.forEach(n=>{const r=zr(n);t.set(r,n)})}function H2(e){const t=[];return V.Children.forEach(e,n=>{V.isValidElement(n)&&t.push(n)}),t}const ai=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{const o=V.useContext(vh).forceRender||D2()[0],l=nT(),u=H2(e);let c=u;const d=V.useRef(new Map).current,h=V.useRef(c),p=V.useRef(new Map).current,m=V.useRef(!0);if(Th(()=>{m.current=!1,U2(u,p),h.current=c}),F2(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return V.createElement(V.Fragment,null,c.map(E=>V.createElement(Tc,{key:zr(E),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:s},E)));c=[...c];const b=h.current.map(zr),x=u.map(zr),g=b.length;for(let E=0;E<g;E++){const y=b[E];x.indexOf(y)===-1&&!d.has(y)&&d.set(y,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((E,y)=>{if(x.indexOf(y)!==-1)return;const C=p.get(y);if(!C)return;const O=b.indexOf(y);let A=E;if(!A){const D=()=>{d.delete(y);const L=Array.from(p.keys()).filter(U=>!x.includes(U));if(L.forEach(U=>p.delete(U)),h.current=u.filter(U=>{const w=zr(U);return w===y||L.includes(w)}),!d.size){if(l.current===!1)return;o(),r&&r()}};A=V.createElement(Tc,{key:zr(C),isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:a,mode:s},C),d.set(y,A)}c.splice(O,0,A)}),c=c.map(E=>{const y=E.key;return d.has(y)?E:V.createElement(Tc,{key:zr(E),isPresent:!0,presenceAffectsLayout:a,mode:s},E)}),V.createElement(V.Fragment,null,d.size?c:c.map(E=>V.cloneElement(E)))};/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),R0=e=>{const t=V2(e);return t.charAt(0).toUpperCase()+t.slice(1)},rT=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),j2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var $2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G2=V.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...o},l)=>V.createElement("svg",{ref:l,...$2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rT("lucide",i),...!a&&!j2(o)&&{"aria-hidden":"true"},...o},[...s.map(([u,c])=>V.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xe=(e,t)=>{const n=V.forwardRef(({className:r,...i},a)=>V.createElement(G2,{ref:a,iconNode:t,className:rT(`lucide-${z2(R0(e))}`,`lucide-${e}`,r),...i}));return n.displayName=R0(e),n};/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W2=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Fl=Xe("book-open",W2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],iT=Xe("chevron-right",Y2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],q2=Xe("clock",K2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ul=Xe("file-text",Q2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Z2=Xe("file",X2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J2=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Qd=Xe("flame",J2);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ew=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Xd=Xe("folder",ew);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tw=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],L0=Xe("list",tw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nw=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],rw=Xe("menu",nw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iw=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],aw=Xe("monitor",iw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sw=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],ow=Xe("moon",sw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lw=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],uw=Xe("palette",lw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cw=[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],xu=Xe("scroll",cw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dw=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],aT=Xe("search",dw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fw=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],dr=Xe("sparkles",fw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hw=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],pw=Xe("tag",hw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mw=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],gw=Xe("user",mw);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ew=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sT=Xe("x",Ew);/**
 * @license lucide-react v0.522.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],yw=Xe("zap",bw),oT=V.createContext(void 0);function Or(){const e=V.useContext(oT);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function Tw(){const[e,t]=V.useState(()=>{if(typeof window<"u"){const s=localStorage.getItem("theme");return s==="light"||s==="dark"?s:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}return"dark"}),[n,r]=V.useState(()=>{if(typeof window<"u"){const s=localStorage.getItem("themeName");if(s==="dark-fantasy"||s==="ultra-modern")return s}return"dark-fantasy"});return V.useEffect(()=>{const s=window.document.documentElement;s.classList.remove("light","dark","theme-dark-fantasy","theme-ultra-modern"),s.classList.add(e),s.classList.add(`theme-${n}`),localStorage.setItem("theme",e),localStorage.setItem("themeName",n),_w(n,e)},[e,n]),{theme:e,themeName:n,toggleTheme:()=>{t(s=>s==="light"?"dark":"light")},setThemeName:s=>{r(s)}}}function _w(e,t){const n=document.documentElement;e==="dark-fantasy"?(n.style.setProperty("--theme-primary","#f59e0b"),n.style.setProperty("--theme-secondary","#6366f1"),n.style.setProperty("--theme-accent","#dc2626"),n.style.setProperty("--theme-background","#0d1117"),n.style.setProperty("--theme-surface","#212529"),n.style.setProperty("--theme-text","#f4f0e6"),n.style.setProperty("--theme-text-secondary","#d9c89f"),n.style.setProperty("--theme-border","#d97706")):e==="ultra-modern"&&(t==="light"?(n.style.setProperty("--theme-primary","#3b82f6"),n.style.setProperty("--theme-secondary","#8b5cf6"),n.style.setProperty("--theme-accent","#06b6d4"),n.style.setProperty("--theme-background","#ffffff"),n.style.setProperty("--theme-surface","#f8fafc"),n.style.setProperty("--theme-text","#0f172a"),n.style.setProperty("--theme-text-secondary","#475569"),n.style.setProperty("--theme-border","#e2e8f0")):(n.style.setProperty("--theme-primary","#60a5fa"),n.style.setProperty("--theme-secondary","#a78bfa"),n.style.setProperty("--theme-accent","#22d3ee"),n.style.setProperty("--theme-background","#0f172a"),n.style.setProperty("--theme-surface","#1e293b"),n.style.setProperty("--theme-text","#f1f5f9"),n.style.setProperty("--theme-text-secondary","#94a3b8"),n.style.setProperty("--theme-border","#334155")))}function lT(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=lT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=lT(e))&&(r&&(r+=" "),r+=t);return r}const zh="-",Sw=e=>{const t=Cw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const o=s.split(zh);return o[0]===""&&o.length!==1&&o.shift(),uT(o,t)||vw(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&r[s]?[...l,...r[s]]:l}}},uT=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?uT(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(zh);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},D0=/^\[(.+)\]$/,vw=e=>{if(D0.test(e)){const t=D0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Cw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return kw(Object.entries(e.classGroups),n).forEach(([a,s])=>{Zd(s,r,a,t)}),r},Zd=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:M0(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(Aw(i)){Zd(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,s])=>{Zd(s,M0(t,a),n,r)})})},M0=(e,t)=>{let n=e;return t.split(zh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Aw=e=>e.isThemeGetter,kw=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[t+s,o])):a);return[n,i]}):e,Nw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return i(a,s),s},set(a,s){n.has(a)?n.set(a,s):i(a,s)}}},cT="!",ww=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,s=o=>{const l=[];let u=0,c=0,d;for(let x=0;x<o.length;x++){let g=o[x];if(u===0){if(g===i&&(r||o.slice(x,x+a)===t)){l.push(o.slice(c,x)),c=x+a;continue}if(g==="/"){d=x;continue}}g==="["?u++:g==="]"&&u--}const h=l.length===0?o:o.substring(c),p=h.startsWith(cT),m=p?h.substring(1):h,b=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},Iw=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Ow=e=>({cache:Nw(e.cacheSize),parseClassName:ww(e),...Sw(e)}),Rw=/\s+/,Lw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(Rw);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(u);let m=!!p,b=r(m?h.substring(0,p):h);if(!b){if(!m){o=u+(o.length>0?" "+o:o);continue}if(b=r(h),!b){o=u+(o.length>0?" "+o:o);continue}m=!1}const x=Iw(c).join(":"),g=d?x+cT:x,E=g+b;if(a.includes(E))continue;a.push(E);const y=i(b,m);for(let C=0;C<y.length;++C){const O=y[C];a.push(g+O)}o=u+(o.length>0?" "+o:o)}return o};function Dw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=dT(t))&&(r&&(r+=" "),r+=n);return r}const dT=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=dT(e[r]))&&(n&&(n+=" "),n+=t);return n};function Mw(e,...t){let n,r,i,a=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=Ow(u),r=n.cache.get,i=n.cache.set,a=o,o(l)}function o(l){const u=r(l);if(u)return u;const c=Lw(l,n);return i(l,c),c}return function(){return a(Dw.apply(null,arguments))}}const Ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fT=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pw=/^\d+\/\d+$/,Bw=new Set(["px","full","screen"]),Fw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Uw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,On=e=>qi(e)||Bw.has(e)||Pw.test(e),Zn=e=>pa(e,"length",Qw),qi=e=>!!e&&!Number.isNaN(Number(e)),_c=e=>pa(e,"number",qi),Ba=e=>!!e&&Number.isInteger(Number(e)),jw=e=>e.endsWith("%")&&qi(e.slice(0,-1)),de=e=>fT.test(e),Jn=e=>Fw.test(e),$w=new Set(["length","size","percentage"]),Gw=e=>pa(e,$w,hT),Ww=e=>pa(e,"position",hT),Yw=new Set(["image","url"]),Kw=e=>pa(e,Yw,Zw),qw=e=>pa(e,"",Xw),Fa=()=>!0,pa=(e,t,n)=>{const r=fT.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Qw=e=>Uw.test(e)&&!Hw.test(e),hT=()=>!1,Xw=e=>zw.test(e),Zw=e=>Vw.test(e),Jw=()=>{const e=Ie("colors"),t=Ie("spacing"),n=Ie("blur"),r=Ie("brightness"),i=Ie("borderColor"),a=Ie("borderRadius"),s=Ie("borderSpacing"),o=Ie("borderWidth"),l=Ie("contrast"),u=Ie("grayscale"),c=Ie("hueRotate"),d=Ie("invert"),h=Ie("gap"),p=Ie("gradientColorStops"),m=Ie("gradientColorStopPositions"),b=Ie("inset"),x=Ie("margin"),g=Ie("opacity"),E=Ie("padding"),y=Ie("saturate"),C=Ie("scale"),O=Ie("sepia"),A=Ie("skew"),D=Ie("space"),L=Ie("translate"),U=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",de,t],H=()=>[de,t],re=()=>["",On,Zn],Z=()=>["auto",qi,de],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",de],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[qi,de];return{cacheSize:500,separator:":",theme:{colors:[Fa],spacing:[On,Zn],blur:["none","",Jn,de],brightness:W(),borderColor:[e],borderRadius:["none","","full",Jn,de],borderSpacing:H(),borderWidth:re(),contrast:W(),grayscale:z(),hueRotate:W(),invert:z(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[jw,Zn],inset:Y(),margin:Y(),opacity:W(),padding:H(),saturate:W(),scale:W(),sepia:z(),skew:W(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Jn]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),de]}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ba,de]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Ba,de]}],"grid-cols":[{"grid-cols":[Fa]}],"col-start-end":[{col:["auto",{span:["full",Ba,de]},de]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Fa]}],"row-start-end":[{row:["auto",{span:[Ba,de]},de]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[Jn]},Jn]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jn,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_c]}],"font-family":[{font:[Fa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",qi,_c]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,Zn]}],"underline-offset":[{"underline-offset":["auto",On,de]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Ww]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:P()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[On,de]}],"outline-w":[{outline:[On,Zn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[On,Zn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jn,qw]}],"shadow-color":[{shadow:[Fa]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jn,de]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ba,de]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,Zn,_c]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},eI=Mw(Jw);function zn(...e){return eI(xw(e))}function tI(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}function Su({variant:e="primary",size:t="md",className:n,children:r,...i}){const a="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-mystical-500 focus:ring-offset-2 focus:ring-offset-shadow-900 disabled:opacity-50 disabled:cursor-not-allowed relative overflow-hidden",s={primary:"bg-gradient-to-r from-gold-600 to-gold-700 text-parchment-100 hover:from-gold-500 hover:to-gold-600 shadow-ancient hover:shadow-mystical border border-gold-500",secondary:"bg-gradient-to-r from-shadow-700 to-shadow-800 text-parchment-200 hover:from-shadow-600 hover:to-shadow-700 border border-gold-700 hover:border-gold-500",ghost:"text-parchment-300 hover:bg-gradient-to-r hover:from-shadow-800 hover:to-shadow-700 hover:text-parchment-100 border border-transparent hover:border-gold-700",outline:"border border-gold-600 text-gold-400 hover:bg-gradient-to-r hover:from-gold-800 hover:to-gold-900 hover:text-parchment-100 hover:border-gold-500",mystical:"bg-gradient-to-r from-mystical-600 to-mystical-700 text-parchment-100 hover:from-mystical-500 hover:to-mystical-600 shadow-mystical border border-mystical-500"},o={sm:"px-3 py-1.5 text-sm font-body",md:"px-4 py-2 text-sm font-body",lg:"px-6 py-3 text-base font-gothic"};return S.jsxs(ne.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:zn(a,s[e],o[t],n),...i,children:[S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white to-transparent opacity-0 hover:opacity-10 transition-opacity duration-300 transform -skew-x-12"}),S.jsx("span",{className:"relative z-10 flex items-center space-x-2",children:r}),e==="mystical"&&S.jsxs(S.Fragment,{children:[S.jsx(ne.div,{className:"absolute top-1 right-2 text-xs",animate:{opacity:[0,1,0],scale:[.5,1,.5]},transition:{duration:2,repeat:1/0,delay:0},children:"✦"}),S.jsx(ne.div,{className:"absolute bottom-1 left-2 text-xs",animate:{opacity:[0,1,0],scale:[.5,1,.5]},transition:{duration:2,repeat:1/0,delay:1},children:"✧"})]})]})}function nI(){const{theme:e,toggleTheme:t}=Or();return S.jsx(Su,{variant:"ghost",size:"sm",onClick:t,className:"w-10 h-10 p-0 text-gold-400 hover:text-gold-300 hover:bg-shadow-800 border border-gold-700 hover:border-gold-500 transition-all duration-300","aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:S.jsx(ne.div,{initial:!1,animate:{rotate:e==="dark"?180:0,scale:e==="dark"?1.1:1},transition:{duration:.5,type:"spring"},className:"relative",children:e==="light"?S.jsxs(ne.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},className:"relative",children:[S.jsx(Qd,{className:"h-4 w-4 text-gold-400"}),S.jsx("div",{className:"absolute inset-0 animate-pulse",children:S.jsx(Qd,{className:"h-4 w-4 text-gold-300 opacity-50"})})]}):S.jsxs(ne.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},className:"relative mystical-glow",children:[S.jsx(ow,{className:"h-4 w-4"}),S.jsx("div",{className:"absolute -inset-1 bg-mystical-500 rounded-full opacity-20 animate-pulse"})]})})})}function rI(){const{themeName:e,setThemeName:t}=Or(),[n,r]=wf.useState(!1),i=[{name:"dark-fantasy",displayName:"Dark Fantasy",icon:Qd,color:"#f59e0b",description:"Ancient grimoire style"},{name:"ultra-modern",displayName:"Ultra Modern",icon:dr,color:"#3b82f6",description:"Clean & minimalist"}],a=i.find(o=>o.name===e)||i[0],s=a.icon;return S.jsxs("div",{className:"relative",children:[S.jsxs(Su,{variant:"ghost",size:"sm",onClick:()=>r(!n),className:"w-10 h-10 p-0 relative overflow-hidden group",style:{color:a.color,borderColor:a.color+"50"},children:[S.jsx(ne.div,{animate:{rotate:n?180:0,scale:n?1.1:1},transition:{duration:.3},className:"relative z-10",children:S.jsx(s,{className:"h-4 w-4"})}),e==="dark-fantasy"&&S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-gold-600/20 to-mystical-600/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),e==="ultra-modern"&&S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-500/20 to-violet-500/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),S.jsx(ai,{children:n&&S.jsxs(S.Fragment,{children:[S.jsx(ne.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40",onClick:()=>r(!1)}),S.jsxs(ne.div,{initial:{opacity:0,scale:.9,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-10},className:"absolute right-0 top-12 z-50 w-64 p-4 rounded-lg border shadow-lg",style:{backgroundColor:"var(--theme-surface)",borderColor:"var(--theme-border)",boxShadow:e==="dark-fantasy"?"0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(218, 165, 32, 0.3)":"0 10px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.1)"},children:[S.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[S.jsx(uw,{className:"h-4 w-4",style:{color:"var(--theme-primary)"}}),S.jsx("h3",{className:"text-sm font-medium",style:{color:"var(--theme-text)"},children:"Choose Theme"})]}),S.jsx("div",{className:"space-y-2",children:i.map(o=>{const l=o.icon,u=o.name===e;return S.jsxs(ne.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>{t(o.name),r(!1)},className:"w-full p-3 rounded-lg border transition-all duration-300 text-left relative overflow-hidden group",style:{backgroundColor:u?o.color+"20":"transparent",borderColor:u?o.color:"var(--theme-border)50",color:"var(--theme-text)"},children:[S.jsxs("div",{className:"flex items-center space-x-3",children:[S.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:o.color+"20",color:o.color},children:S.jsx(l,{className:"h-4 w-4"})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("div",{className:"font-medium text-sm",children:o.displayName}),S.jsx("div",{className:"text-xs opacity-70",style:{color:"var(--theme-text-secondary)"},children:o.description})]}),u&&S.jsx(ne.div,{initial:{scale:0},animate:{scale:1},className:"w-2 h-2 rounded-full",style:{backgroundColor:o.color}})]}),o.name==="dark-fantasy"&&S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-gold-600/10 to-mystical-600/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),o.name==="ultra-modern"&&S.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-500/10 to-violet-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]},o.name)})})]})]})})]})}function iI({onMenuToggle:e,isMobile:t}){const{themeName:n}=Or(),i=n==="ultra-modern"?{icon:dr,title:"Modern Docs",subtitle:"Clean & Minimalist",bgPattern:"bg-gradient-to-r from-blue-50 to-violet-50",borderClass:"border-slate-200",shadowClass:"shadow-sm",titleClass:"font-semibold text-slate-900",subtitleClass:"text-slate-600 font-medium",decorativeIcon:dr,decorativeText:"✨ Ultra Clean Design ✨"}:{icon:xu,title:"Grimoire of Knowledge",subtitle:"Ancient Wisdom & Arcane Lore",bgPattern:"bg-parchment-texture",borderClass:"border-gold-600",shadowClass:"shadow-ancient",titleClass:"font-gothic text-gold-400 animate-ancient-glow",subtitleClass:"text-parchment-400 font-manuscript",decorativeIcon:Fl,decorativeText:"✦ Tome of Technical Mysteries ✦"},a=i.icon;return S.jsxs(ne.header,{initial:{y:-100},animate:{y:0},className:`sticky top-0 z-50 backdrop-blur-md border-b-2 ${i.borderClass} ${i.shadowClass}`,style:{backgroundColor:"var(--theme-background)"+(n==="ultra-modern"?"F0":"E6"),backgroundImage:n==="ultra-modern"?"linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%)":`linear-gradient(90deg, transparent 0%, rgba(218, 165, 32, 0.1) 50%, transparent 100%), url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23DAA520" fill-opacity="0.1"%3E%3Ccircle cx="7" cy="7" r="1"/%3E%3Ccircle cx="53" cy="53" r="1"/%3E%3C/g%3E%3C/svg%3E')`},children:[S.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:S.jsxs("div",{className:"flex items-center justify-between h-16",children:[S.jsxs("div",{className:"flex items-center space-x-4",children:[t&&S.jsx(Su,{variant:"ghost",size:"sm",onClick:e,className:"p-2",style:{color:"var(--theme-primary)"},children:S.jsx(rw,{className:"h-5 w-5"})}),S.jsxs(ne.div,{className:"flex items-center space-x-3",whileHover:{scale:1.05},transition:{type:"spring",stiffness:300},children:[S.jsxs("div",{className:`relative p-2 rounded-lg ${i.shadowClass}`,style:{background:n==="ultra-modern"?"linear-gradient(135deg, #3b82f6, #8b5cf6)":"linear-gradient(135deg, #f59e0b, #d97706)"},children:[S.jsx("div",{className:`absolute inset-0 rounded-lg opacity-20 ${n==="ultra-modern"?"":"animate-pulse"}`,style:{background:n==="ultra-modern"?"linear-gradient(135deg, #60a5fa, #a78bfa)":"linear-gradient(135deg, #fbbf24, #6366f1)"}}),S.jsx(a,{className:"h-6 w-6 relative z-10",style:{color:n==="ultra-modern"?"#ffffff":"#f4f0e6"}})]}),S.jsxs("div",{children:[S.jsx("h1",{className:`text-xl ${i.titleClass}`,children:i.title}),S.jsx("p",{className:`text-xs ${i.subtitleClass}`,children:i.subtitle})]})]})]}),S.jsxs("div",{className:"flex items-center space-x-4",children:[S.jsx(ne.div,{className:`hidden md:flex items-center space-x-2 text-xs ${i.subtitleClass}`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:n==="ultra-modern"?S.jsxs(S.Fragment,{children:[S.jsx(dr,{className:"h-3 w-3"}),S.jsx("span",{children:i.decorativeText}),S.jsx(dr,{className:"h-3 w-3"})]}):S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"animate-parchment-flicker",children:"✦"}),S.jsx("span",{children:i.decorativeText}),S.jsx("span",{className:"animate-parchment-flicker",children:"✦"})]})}),S.jsx(rI,{}),S.jsx(nI,{})]})]})}),S.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-px opacity-50",style:{background:n==="ultra-modern"?"linear-gradient(to right, transparent, #3b82f6, transparent)":"linear-gradient(to right, transparent, #f59e0b, transparent)"}}),n==="ultra-modern"&&S.jsx(ne.div,{className:"absolute bottom-0 left-0 h-px bg-blue-400 opacity-60",animate:{width:["0%","100%","0%"]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}})]})}function aI({value:e,onChange:t,onClear:n,placeholder:r="Search the ancient texts...",className:i}){const{themeName:a}=Or(),o=a==="cyberpunk"?{glowColors:"from-neon-green-600 via-neon-blue-500 to-neon-green-600",bgColor:"bg-cyber-dark",borderColor:"border-neon-green-700",textColor:"text-white",placeholderColor:"placeholder-neon-blue-400",iconColor:"text-neon-green-400",clearIconColor:"text-neon-green-400 hover:text-neon-green-300",sparkleIcon:yw,sparkleColors:["text-neon-green-400","text-neon-blue-400"],fontClass:"font-tech"}:{glowColors:"from-gold-600 via-mystical-500 to-gold-600",bgColor:"bg-shadow-800",borderColor:"border-gold-700",textColor:"text-parchment-100",placeholderColor:"placeholder-parchment-500",iconColor:"text-gold-400",clearIconColor:"text-gold-400 hover:text-gold-300",sparkleIcon:dr,sparkleColors:["text-mystical-400","text-gold-400"],fontClass:"font-body"},l=o.sparkleIcon;return S.jsxs("div",{className:zn("relative group",i),children:[S.jsx("div",{className:`absolute -inset-1 bg-gradient-to-r ${o.glowColors} rounded-lg opacity-20 group-focus-within:opacity-40 transition-opacity duration-300 blur-sm`}),S.jsxs("div",{className:`relative ${o.bgColor} border ${o.borderColor} rounded-lg overflow-hidden`,children:[S.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:S.jsx(ne.div,{animate:a==="cyberpunk"?{scale:[1,1.1,1],rotate:[0,5,-5,0]}:{scale:[1,1.1,1],rotate:[0,5,-5,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:S.jsx(aT,{className:`h-4 w-4 ${o.iconColor}`})})}),S.jsx("input",{type:"text",value:e,onChange:u=>t(u.target.value),placeholder:r,className:`w-full pl-10 pr-10 py-2 bg-transparent ${o.textColor} ${o.placeholderColor} focus:outline-none focus:ring-2 ${a==="cyberpunk"?"focus:ring-neon-green-500 focus:border-neon-green-400":"focus:ring-mystical-500 focus:border-mystical-400"} transition-all duration-300 ${o.fontClass}`,style:{textShadow:"1px 1px 2px rgba(0, 0, 0, 0.5)"}}),S.jsx(ai,{children:e&&S.jsx(ne.button,{initial:{opacity:0,scale:.8,rotate:-90},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:90},whileHover:{scale:1.1},whileTap:{scale:.9},onClick:n,className:`absolute inset-y-0 right-0 pr-3 flex items-center ${o.clearIconColor} transition-colors`,children:S.jsx(sT,{className:"h-4 w-4"})})}),S.jsxs("div",{className:"absolute inset-0 pointer-events-none opacity-0 group-focus-within:opacity-100 transition-opacity duration-500",children:[S.jsx(ne.div,{className:"absolute top-1 left-2",animate:{scale:[0,1,0],opacity:[0,1,0]},transition:{duration:1.5,repeat:1/0,delay:0},children:S.jsx(l,{className:`h-2 w-2 ${o.sparkleColors[0]}`})}),S.jsx(ne.div,{className:"absolute bottom-1 right-8",animate:{scale:[0,1,0],opacity:[0,1,0]},transition:{duration:1.5,repeat:1/0,delay:.5},children:S.jsx(l,{className:`h-2 w-2 ${o.sparkleColors[1]}`})})]})]})]})}function pT({section:e,currentSection:t,expandedSections:n,onToggleExpanded:r,onNavigate:i,depth:a=0}){const{themeName:s}=Or(),o=n.has(e.id),l=t===e.id,u=e.children&&e.children.length>0,d=s==="ultra-modern"?{parentIcon:Xd,childIcon:Xd,fileIcon:Z2,borderColor:"border-slate-200",hoverBg:"hover:bg-slate-50",currentBg:"bg-blue-50 border-blue-200 text-blue-700",iconColor:"text-blue-500",textColor:"text-blue-700 font-medium",normalTextColor:"text-slate-700 group-hover:text-slate-900",sparkle:"•",sparkleColor:"text-blue-400",glowBg:"from-blue-500/10 to-violet-500/10",connectingLine:"from-slate-300 to-transparent"}:{parentIcon:Fl,childIcon:xu,fileIcon:Ul,borderColor:"border-gold-600",hoverBg:"hover:bg-gradient-to-r hover:from-shadow-700 hover:to-shadow-800",currentBg:"bg-gradient-to-r from-gold-800/50 to-gold-700/30 border-gold-500 shadow-mystical",iconColor:"text-gold-400",textColor:"text-gold-300 font-gothic",normalTextColor:"text-parchment-300 group-hover:text-parchment-100",sparkle:"✦",sparkleColor:"text-mystical-400",glowBg:"from-gold-600/20 to-mystical-600/20",connectingLine:"from-gold-600 to-transparent"},h=()=>{u&&r(e.id),(e.content||!u)&&i(e.id)},m=u?a===0?d.parentIcon:d.childIcon:d.fileIcon;return S.jsxs("div",{children:[S.jsxs(ne.button,{whileHover:{x:s==="ultra-modern"?2:4,scale:s==="ultra-modern"?1.01:1.02},whileTap:{scale:.98},onClick:h,className:zn("w-full text-left px-3 py-2 rounded-lg transition-all duration-300 flex items-center space-x-2 group relative overflow-hidden",`border border-transparent hover:border-${s==="ultra-modern"?"slate-200":"gold-600"}`,l&&d.currentBg,!l&&d.hoverBg,a>0&&"ml-4",s==="ultra-modern"&&"hover:shadow-sm"),style:{paddingLeft:`${a*16+12}px`},children:[S.jsx("div",{className:zn(`absolute inset-0 bg-gradient-to-r ${d.glowBg} opacity-0 transition-opacity duration-300`,l&&"opacity-100")}),u?S.jsx(ne.div,{animate:{rotate:o?90:0},transition:{duration:.3,type:"spring"},className:"relative z-10",children:S.jsx(iT,{className:`h-4 w-4 ${d.iconColor}`})}):S.jsx(m,{className:`h-4 w-4 ${d.iconColor} relative z-10`}),S.jsx("span",{className:zn("text-sm font-medium flex-1 relative z-10 transition-colors duration-300",l?d.textColor:d.normalTextColor,a===0&&s==="dark-fantasy"&&"font-gothic",s==="ultra-modern"&&"font-medium"),children:e.title}),l&&S.jsx(ne.div,{className:"absolute right-2 top-1/2 transform -translate-y-1/2",animate:s==="ultra-modern"?{scale:[1,1.1,1],opacity:[.7,1,.7]}:{scale:[1,1.2,1],opacity:[.5,1,.5],rotate:[0,180,360]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:S.jsx("span",{className:`${d.sparkleColor} text-xs`,children:d.sparkle})})]}),S.jsx(ai,{children:u&&o&&S.jsx(ne.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:S.jsxs("div",{className:"mt-1 space-y-1 relative",children:[S.jsx("div",{className:`absolute left-6 top-0 bottom-0 w-px bg-gradient-to-b ${d.connectingLine} opacity-30`,style:{left:`${a*16+24}px`}}),e.children.map(b=>S.jsx(pT,{section:b,currentSection:t,expandedSections:n,onToggleExpanded:r,onNavigate:i,depth:a+1},b.id))]})})})]})}function sI({results:e,onResultClick:t,query:n}){return e.length===0&&n?S.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[S.jsx(aT,{className:"h-8 w-8 text-neutral-400 mb-3"}),S.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:['No results found for "',n,'"']}),S.jsx("p",{className:"text-xs text-neutral-400 dark:text-neutral-500 mt-1",children:"Try adjusting your search terms"})]}):S.jsxs("div",{className:"space-y-2",children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h3",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Search Results"}),S.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[e.length," result",e.length!==1?"s":""]})]}),e.map((r,i)=>S.jsx(oI,{result:r,onClick:()=>t(r.section.id),query:n,index:i},r.section.id))]})}function oI({result:e,onClick:t,query:n,index:r}){var a,s;const i=(o,l)=>l?o.split(new RegExp(`(${l})`,"gi")).map((c,d)=>S.jsx("span",{className:zn(c.toLowerCase()===l.toLowerCase()?"bg-yellow-200 dark:bg-yellow-800 text-yellow-900 dark:text-yellow-100 px-0.5 rounded":""),children:c},d)):o;return S.jsx(ne.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:r*.05},whileHover:{x:2},onClick:t,className:"w-full text-left p-3 rounded-lg hover:bg-neutral-100 dark:hover:bg-neutral-800 border border-transparent hover:border-neutral-200 dark:hover:border-neutral-700 transition-all duration-200 group",children:S.jsxs("div",{className:"flex items-start space-x-3",children:[S.jsx(Ul,{className:"h-4 w-4 text-neutral-400 mt-0.5 flex-shrink-0"}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("h4",{className:"text-sm font-medium text-neutral-900 dark:text-white group-hover:text-primary-600 dark:group-hover:text-primary-400 transition-colors",children:i(e.section.title,n)}),((a=e.section.metadata)==null?void 0:a.description)&&S.jsx("p",{className:"text-xs text-neutral-600 dark:text-neutral-400 mt-1 line-clamp-2",children:i(e.section.metadata.description,n)}),((s=e.section.metadata)==null?void 0:s.tags)&&e.section.metadata.tags.length>0&&S.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:e.section.metadata.tags.slice(0,3).map(o=>S.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-neutral-100 dark:bg-neutral-800 text-neutral-600 dark:text-neutral-400",children:i(o,n)},o))})]})]})})}function lI({sections:e,currentSection:t,expandedSections:n,searchQuery:r,searchResults:i,onToggleExpanded:a,onNavigate:s,onSearch:o,onClearSearch:l,isOpen:u,onClose:c,isMobile:d}){const{themeName:h}=Or(),m=h==="ultra-modern"?{icon:Xd,title:"Navigation",searchPlaceholder:"Search documentation...",footerText:"Modern Documentation",borderClass:"border-slate-200",bgGradient:"from-slate-50 to-white",textClass:"text-slate-900 font-semibold",footerClass:"text-slate-500 font-medium"}:{icon:xu,title:"Table of Contents",searchPlaceholder:"Search the grimoire...",footerText:"Ancient Knowledge Awaits",borderClass:"border-gold-700",bgGradient:"from-shadow-800 to-shadow-900",textClass:"ancient-text",footerClass:"text-parchment-500 font-manuscript"},b=m.icon,x=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:`p-4 border-b-2 ${m.borderClass} bg-gradient-to-r ${m.bgGradient}`,children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsxs(ne.div,{className:"flex items-center space-x-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[S.jsx(b,{className:`h-5 w-5 ${h==="ultra-modern"?"text-blue-500":"text-gold-400 animate-mystical-float"}`}),S.jsx("h2",{className:`text-lg ${h==="ultra-modern"?"font-semibold":"font-gothic"} ${m.textClass}`,children:m.title})]}),d&&S.jsx(Su,{variant:"ghost",size:"sm",onClick:c,className:`p-1 ${h==="ultra-modern"?"text-slate-500 hover:text-slate-700 hover:bg-slate-100":"text-gold-400 hover:text-gold-300 hover:bg-shadow-700"}`,children:S.jsx(sT,{className:"h-5 w-5"})})]}),S.jsx(aI,{value:r,onChange:o,onClear:l,placeholder:m.searchPlaceholder,className:h==="ultra-modern"?"modern-search":"dark-fantasy-search"})]}),S.jsx("div",{className:"flex-1 overflow-y-auto p-4 stone-texture",children:S.jsx(ai,{mode:"wait",children:r?S.jsx(ne.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:S.jsx(sI,{results:i,onResultClick:s,query:r})},"search-results"):S.jsx(ne.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"space-y-2",children:e.map((g,E)=>S.jsx(ne.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:E*.1},children:S.jsx(pT,{section:g,currentSection:t,expandedSections:n,onToggleExpanded:a,onNavigate:s})},g.id))},"navigation")})}),S.jsx("div",{className:`p-4 border-t-2 ${m.borderClass} bg-gradient-to-r ${m.bgGradient}`,children:S.jsx("div",{className:`text-center text-xs ${m.footerClass}`,children:S.jsx(ne.div,{className:"flex items-center justify-center space-x-2",animate:{opacity:[.5,1,.5]},transition:{duration:3,repeat:1/0},children:h==="ultra-modern"?S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"•"}),S.jsx("span",{children:m.footerText}),S.jsx("span",{children:"•"})]}):S.jsxs(S.Fragment,{children:[S.jsx("span",{children:"✦"}),S.jsx("span",{children:m.footerText}),S.jsx("span",{children:"✦"})]})})})})]});return d?S.jsx(ai,{children:u&&S.jsxs(S.Fragment,{children:[S.jsx(ne.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-40",onClick:c}),S.jsx(ne.aside,{initial:{x:-300},animate:{x:0},exit:{x:-300},transition:{type:"spring",damping:25,stiffness:200},className:`fixed left-0 top-0 bottom-0 w-80 grimoire-card border-r-2 ${m.borderClass} z-50 flex flex-col shadow-deep`,children:x})]})}):S.jsx("aside",{className:`w-80 grimoire-card border-r-2 ${m.borderClass} flex flex-col h-full shadow-deep`,children:x})}function P0(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function mT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const uI=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cI=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dI={};function B0(e,t){return(dI.jsx?cI:uI).test(e)}const fI=/[ \t\n\f\r]/g;function hI(e){return typeof e=="object"?e.type==="text"?F0(e.value):!1:F0(e)}function F0(e){return e.replace(fI,"")===""}let Zs=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Zs.prototype.normal={};Zs.prototype.property={};Zs.prototype.space=void 0;function gT(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Zs(n,r,t)}function Bs(e){return e.toLowerCase()}let Dt=class{constructor(t,n){this.attribute=n,this.property=t}};Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let pI=0;const fe=di(),We=di(),Jd=di(),q=di(),Ae=di(),Qi=di(),Pt=di();function di(){return 2**++pI}const ef=Object.freeze(Object.defineProperty({__proto__:null,boolean:fe,booleanish:We,commaOrSpaceSeparated:Pt,commaSeparated:Qi,number:q,overloadedBoolean:Jd,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),xc=Object.keys(ef);let Vh=class extends Dt{constructor(t,n,r,i){let a=-1;if(super(t,n),U0(this,"space",i),typeof r=="number")for(;++a<xc.length;){const s=xc[a];U0(this,xc[a],(r&ef[s])===ef[s])}}};Vh.prototype.defined=!0;function U0(e,t,n){n&&(e[t]=n)}function ma(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Vh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Bs(r)]=r,n[Bs(a.attribute)]=r}return new Zs(t,n,e.space)}const ET=ma({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Ae,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:q,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Ae,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:We,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bT(e,t){return t in e?e[t]:t}function yT(e,t){return bT(e,t.toLowerCase())}const mI=ma({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qi,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:fe,allowPaymentRequest:fe,allowUserMedia:fe,alt:null,as:null,async:fe,autoCapitalize:null,autoComplete:Ae,autoFocus:fe,autoPlay:fe,blocking:Ae,capture:null,charSet:null,checked:fe,cite:null,className:Ae,cols:q,colSpan:null,content:null,contentEditable:We,controls:fe,controlsList:Ae,coords:q|Qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fe,defer:fe,dir:null,dirName:null,disabled:fe,download:Jd,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fe,formTarget:null,headers:Ae,height:q,hidden:Jd,high:q,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:fe,inputMode:null,integrity:null,is:null,isMap:fe,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:fe,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fe,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:fe,muted:fe,name:null,nonce:null,noModule:fe,noValidate:fe,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:fe,optimum:q,pattern:null,ping:Ae,placeholder:null,playsInline:fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fe,referrerPolicy:null,rel:Ae,required:fe,reversed:fe,rows:q,rowSpan:q,sandbox:Ae,scope:null,scoped:fe,seamless:fe,selected:fe,shadowRootClonable:fe,shadowRootDelegatesFocus:fe,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:fe,useMap:null,value:We,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fe,declare:fe,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:fe,noHref:fe,noShade:fe,noWrap:fe,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fe,disableRemotePlayback:fe,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:yT}),gI=ma({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:Pt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Ae,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Qi,g2:Qi,glyphName:Qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pt,rev:Pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pt,requiredFeatures:Pt,requiredFonts:Pt,requiredFormats:Pt,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bT}),TT=ma({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()}}),_T=ma({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yT}),xT=ma({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),EI={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"},bI=/[A-Z]/g,H0=/-[a-z]/g,yI=/^data[-\w.:]+$/i;function jh(e,t){const n=Bs(t);let r=t,i=Dt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&yI.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(H0,_I);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!H0.test(a)){let s=a.replace(bI,TI);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Vh}return new i(r,t)}function TI(e){return"-"+e.toLowerCase()}function _I(e){return e.charAt(1).toUpperCase()}const vu=gT([ET,mI,TT,_T,xT],"html"),ga=gT([ET,gI,TT,_T,xT],"svg");function z0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ST(e){return e.join(" ").trim()}var $h={},V0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xI=/\n/g,SI=/^\s*/,vI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,CI=/^:\s*/,AI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kI=/^[;\s]*/,NI=/^\s+|\s+$/g,wI=`
`,j0="/",$0="*",Vr="",II="comment",OI="declaration",RI=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var b=m.match(xI);b&&(n+=b.length);var x=m.lastIndexOf(wI);r=~x?m.length-x:r+m.length}function a(){var m={line:n,column:r};return function(b){return b.position=new s(m),u(),b}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var x=b[0];return i(x),e=e.slice(x.length),b}}function u(){l(SI)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=a();if(!(j0!=e.charAt(0)||$0!=e.charAt(1))){for(var b=2;Vr!=e.charAt(b)&&($0!=e.charAt(b)||j0!=e.charAt(b+1));)++b;if(b+=2,Vr===e.charAt(b-1))return o("End of comment missing");var x=e.slice(2,b-2);return r+=2,i(x),e=e.slice(b),r+=2,m({type:II,comment:x})}}function h(){var m=a(),b=l(vI);if(b){if(d(),!l(CI))return o("property missing ':'");var x=l(AI),g=m({type:OI,property:G0(b[0].replace(V0,Vr)),value:x?G0(x[0].replace(V0,Vr)):Vr});return l(kI),g}}function p(){var m=[];c(m);for(var b;b=h();)b!==!1&&(m.push(b),c(m));return m}return u(),p()};function G0(e){return e?e.replace(NI,Vr):Vr}var LI=il&&il.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($h,"__esModule",{value:!0});$h.default=MI;var DI=LI(RI);function MI(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,DI.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.camelCase=void 0;var PI=/^--[a-zA-Z0-9_-]+$/,BI=/-([a-z])/g,FI=/^[^-]+$/,UI=/^-(webkit|moz|ms|o|khtml)-/,HI=/^-(ms)-/,zI=function(e){return!e||FI.test(e)||PI.test(e)},VI=function(e,t){return t.toUpperCase()},W0=function(e,t){return"".concat(t,"-")},jI=function(e,t){return t===void 0&&(t={}),zI(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(HI,W0):e=e.replace(UI,W0),e.replace(BI,VI))};Cu.camelCase=jI;var $I=il&&il.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},GI=$I($h),WI=Cu;function tf(e,t){var n={};return!e||typeof e!="string"||(0,GI.default)(e,function(r,i){r&&i&&(n[(0,WI.camelCase)(r,t)]=i)}),n}tf.default=tf;var YI=tf;const KI=Xl(YI),Au=vT("end"),An=vT("start");function vT(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 qI(e){const t=An(e),n=Au(e);if(t&&n)return{start:t,end:n}}function us(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Y0(e.position):"start"in e||"end"in e?Y0(e):"line"in e||"column"in e?nf(e):""}function nf(e){return K0(e&&e.line)+":"+K0(e&&e.column)}function Y0(e){return nf(e&&e.start)+"-"+nf(e&&e.end)}function K0(e){return e&&typeof e=="number"?e:1}class pt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=us(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}pt.prototype.file="";pt.prototype.name="";pt.prototype.reason="";pt.prototype.message="";pt.prototype.stack="";pt.prototype.column=void 0;pt.prototype.line=void 0;pt.prototype.ancestors=void 0;pt.prototype.cause=void 0;pt.prototype.fatal=void 0;pt.prototype.place=void 0;pt.prototype.ruleId=void 0;pt.prototype.source=void 0;const Gh={}.hasOwnProperty,QI=new Map,XI=/[A-Z]/g,ZI=new Set(["table","tbody","thead","tfoot","tr"]),JI=new Set(["td","th"]),CT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function e3(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=l3(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=o3(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"?ga:vu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=AT(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function AT(e,t,n){if(t.type==="element")return t3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return n3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return i3(e,t,n);if(t.type==="mdxjsEsm")return r3(e,t);if(t.type==="root")return a3(e,t,n);if(t.type==="text")return s3(e,t)}function t3(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ga,e.schema=i),e.ancestors.push(t);const a=NT(e,t.tagName,!1),s=u3(e,t);let o=Yh(e,t);return ZI.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!hI(l):!0})),kT(e,s,a,t),Wh(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function n3(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)}Fs(e,t.position)}function r3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Fs(e,t.position)}function i3(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ga,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:NT(e,t.name,!0),s=c3(e,t),o=Yh(e,t);return kT(e,s,a,t),Wh(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function a3(e,t,n){const r={};return Wh(r,Yh(e,t)),e.create(t,e.Fragment,r,n)}function s3(e,t){return t.value}function kT(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function o3(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function l3(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=An(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function u3(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Gh.call(t.properties,i)){const a=d3(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&JI.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function c3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Fs(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Fs(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Yh(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:QI;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const o=AT(e,a,s);o!==void 0&&n.push(o)}return n}function d3(e,t,n){const r=jh(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?mT(n):ST(n)),r.property==="style"){let i=typeof n=="object"?n:f3(e,String(n));return e.stylePropertyNameCase==="css"&&(i=h3(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?EI[r.property]||r.property:r.attribute,n]}}function f3(e,t){try{return KI(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new pt("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=CT+"#cannot-parse-style-attribute",i}}function NT(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=B0(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=B0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Gh.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Fs(e)}function Fs(e,t){const n=new pt("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=CT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function h3(e){const t={};let n;for(n in e)Gh.call(e,n)&&(t[p3(n)]=e[n]);return t}function p3(e){let t=e.replace(XI,m3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function m3(e){return"-"+e.toLowerCase()}const Sc={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"]},g3={};function Kh(e,t){const n=g3,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return wT(e,r,i)}function wT(e,t,n){if(E3(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 q0(e.children,t,n)}return Array.isArray(e)?q0(e,t,n):""}function q0(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=wT(e[i],t,n);return r.join("")}function E3(e){return!!(e&&typeof e=="object")}const Q0=document.createElement("i");function qh(e){const t="&"+e+";";Q0.innerHTML=t;const n=Q0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Vt(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Xt(e,t){return e.length>0?(Vt(e,e.length,0,t),e):t}const X0={}.hasOwnProperty;function IT(e){const t={};let n=-1;for(;++n<e.length;)b3(t,e[n]);return t}function b3(e,t){let n;for(n in t){const i=(X0.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){X0.call(i,s)||(i[s]=[]);const o=a[s];y3(i[s],Array.isArray(o)?o:o?[o]:[])}}}function y3(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Vt(e,0,0,r)}function OT(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 hn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _t=Rr(/[A-Za-z]/),ft=Rr(/[\dA-Za-z]/),T3=Rr(/[#-'*+\--9=?A-Z^-~]/);function Hl(e){return e!==null&&(e<32||e===127)}const rf=Rr(/\d/),_3=Rr(/[\dA-Fa-f]/),x3=Rr(/[!-/:-@[-`{-~]/);function ae(e){return e!==null&&e<-2}function Ce(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const ku=Rr(new RegExp("\\p{P}|\\p{S}","u")),si=Rr(/\s/);function Rr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ea(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&ft(e.charCodeAt(n+1))&&ft(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return ge(l)?(e.enter(n),o(l)):t(l)}function o(l){return ge(l)&&a++<i?(e.consume(l),o):(e.exit(n),t(l))}}const S3={tokenize:v3};function v3(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ae(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const C3={tokenize:A3},Z0={tokenize:k3};function A3(e){const t=this,n=[];let r=0,i,a,s;return o;function o(y){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(y)}return u(y)}function l(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const C=t.events.length;let O=C,A;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){A=t.events[O][1].end;break}g(r);let D=C;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return Vt(t.events,O+1,0,t.events.slice(C)),t.events.length=D,u(y)}return o(y)}function u(y){if(r===n.length){if(!i)return h(y);if(i.currentConstruct&&i.currentConstruct.concrete)return m(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Z0,c,d)(y)}function c(y){return i&&E(),g(r),h(y)}function d(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(y)}function h(y){return t.containerState={},e.attempt(Z0,p,m)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),h(y)}function m(y){if(y===null){i&&E(),g(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(y)}function b(y){if(y===null){x(e.exit("chunkFlow"),!0),g(0),e.consume(y);return}return ae(y)?(e.consume(y),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),b)}function x(y,C){const O=t.sliceStream(y);if(C&&O.push(null),y.previous=a,a&&(a.next=y),a=y,i.defineSkip(y.start),i.write(O),t.parser.lazy[y.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,U,w;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(U){w=t.events[L][1].end;break}U=!0}for(g(r),A=D;A<t.events.length;)t.events[A][1].end={...w},A++;Vt(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function g(y){let C=n.length;for(;C-- >y;){const O=n[C];t.containerState=O[1],O[0].exit.call(t,e)}n.length=y}function E(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function k3(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oa(e){if(e===null||Ce(e)||si(e))return 1;if(ku(e))return 2}function Nu(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const af={name:"attention",resolveAll:N3,tokenize:w3};function N3(e,t){let n=-1,r,i,a,s,o,l,u,c;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;l=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 d={...e[r][1].end},h={...e[n][1].start};J0(d,-l),J0(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Xt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Xt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=Xt(u,Nu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Xt(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Xt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Vt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function w3(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=oa(r);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),c=oa(l),d=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(a===42?d:d&&(i||!h)),u._close=!!(a===42?h:h&&(c||!d)),t(l)}}function J0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I3={name:"autolink",tokenize:O3};function O3(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return _t(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||ft(p)?(r=1,o(p)):u(p)}function o(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||ft(p))&&r++<32?(e.consume(p),o):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Hl(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):T3(p)?(e.consume(p),u):n(p)}function c(p){return ft(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||ft(p))&&r++<63){const m=p===45?h:d;return e.consume(p),m}return n(p)}}const Js={partial:!0,tokenize:R3};function R3(e,t,n){return r;function r(a){return ge(a)?be(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ae(a)?t(a):n(a)}}const RT={continuation:{tokenize:D3},exit:M3,name:"blockQuote",tokenize:L3};function L3(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function D3(e,t,n){const r=this;return i;function i(s){return ge(s)?be(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(RT,t,n)(s)}}function M3(e){e.exit("blockQuote")}const LT={name:"characterEscape",tokenize:P3};function P3(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return x3(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const DT={name:"characterReference",tokenize:B3};function B3(e,t,n){const r=this;let i=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=ft,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=_3,c):(e.enter("characterReferenceValue"),a=7,s=rf,c(d))}function c(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return s===ft&&!qh(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),c):n(d)}}const eg={partial:!0,tokenize:U3},tg={concrete:!0,name:"codeFenced",tokenize:F3};function F3(e,t,n){const r=this,i={partial:!0,tokenize:O};let a=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=r.events[r.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),ge(A)?be(e,d,"whitespace")(A):d(A))}function d(A){return A===null||ae(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(eg,b,C)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(A))}function h(A){return A===null||ae(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):ge(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),h)}function p(A){return A===null||ae(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||ae(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),m)}function b(A){return e.attempt(i,C,x)(A)}function x(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),g}function g(A){return a>0&&ge(A)?be(e,E,"linePrefix",a+1)(A):E(A)}function E(A){return A===null||ae(A)?e.check(eg,b,C)(A):(e.enter("codeFlowValue"),y(A))}function y(A){return A===null||ae(A)?(e.exit("codeFlowValue"),E(A)):(e.consume(A),y)}function C(A){return e.exit("codeFenced"),t(A)}function O(A,D,L){let U=0;return w;function w(J){return A.enter("lineEnding"),A.consume(J),A.exit("lineEnding"),Y}function Y(J){return A.enter("codeFencedFence"),ge(J)?be(A,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):H(J)}function H(J){return J===o?(A.enter("codeFencedFenceSequence"),re(J)):L(J)}function re(J){return J===o?(U++,A.consume(J),re):U>=s?(A.exit("codeFencedFenceSequence"),ge(J)?be(A,Z,"whitespace")(J):Z(J)):L(J)}function Z(J){return J===null||ae(J)?(A.exit("codeFencedFence"),D(J)):L(J)}}}function U3(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const vc={name:"codeIndented",tokenize:z3},H3={partial:!0,tokenize:V3};function z3(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),be(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):ae(u)?e.attempt(H3,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ae(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function V3(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):be(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ae(s)?i(s):n(s)}}const j3={name:"codeText",previous:G3,resolve:$3,tokenize:W3};function $3(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 G3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function W3(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,c(d)):ae(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ae(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",u(d))}}class Y3{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 a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ua(this.left,r),a.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),Ua(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ua(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);Ua(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ua(this.left,n.reverse())}}}function Ua(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 MT(e){const t={};let n=-1,r,i,a,s,o,l,u;const c=new Y3(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,K3(c,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return Vt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function K3(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,d,h=-1,p=n,m=0,b=0;const x=[b];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(b=h+1,x.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){const g=o.slice(x[h],x[h+1]),E=a.pop();l.push([E,E+g.length-1]),e.splice(E,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return u}const q3={resolve:X3,tokenize:Z3},Q3={partial:!0,tokenize:J3};function X3(e){return MT(e),e}function Z3(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):ae(o)?e.check(Q3,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function J3(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,a,"linePrefix")}function a(s){if(s===null||ae(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function PT(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(g),e.exit(a),h):g===null||g===32||g===41||Hl(g)?n(g):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(g))}function h(g){return g===62?(e.enter(a),e.consume(g),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(o),h(g)):g===null||g===60||ae(g)?n(g):(e.consume(g),g===92?m:p)}function m(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function b(g){return!c&&(g===null||g===41||Ce(g))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,b):g===41?(e.consume(g),c--,b):g===null||g===32||g===40||Hl(g)?n(g):(e.consume(g),g===92?x:b)}function x(g){return g===40||g===41||g===92?(e.consume(g),b):b(g)}}function BT(e,t,n,r,i,a){const s=this;let o=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),c}function c(p){return o>999||p===null||p===91||p===93&&!l||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ae(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ae(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!ge(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function FT(e,t,n,r,i,a){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===s?(e.exit(a),l(s)):h===null?n(h):ae(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ae(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===s||h===92?(e.consume(h),c):c(h)}}function cs(e,t){let n;return r;function r(i){return ae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ge(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eO={name:"definition",tokenize:nO},tO={partial:!0,tokenize:rO};function nO(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return BT.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ce(p)?cs(e,u)(p):u(p)}function u(p){return PT(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(tO,d,d)(p)}function d(p){return ge(p)?be(e,h,"whitespace")(p):h(p)}function h(p){return p===null||ae(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function rO(e,t,n){return r;function r(o){return Ce(o)?cs(e,i)(o):n(o)}function i(o){return FT(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ge(o)?be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ae(o)?t(o):n(o)}}const iO={name:"hardBreakEscape",tokenize:aO};function aO(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ae(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const sO={name:"headingAtx",resolve:oO,tokenize:lO};function oO(e,t){let n=e.length-2,r=3,i,a;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},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function lO(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ce(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ae(c)?(e.exit("atxHeading"),t(c)):ge(c)?be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Ce(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const uO=["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"],ng=["pre","script","style","textarea"],cO={concrete:!0,name:"htmlFlow",resolveTo:hO,tokenize:pO},dO={partial:!0,tokenize:gO},fO={partial:!0,tokenize:mO};function hO(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 pO(e,t,n){const r=this;let i,a,s,o,l;return u;function u(N){return c(N)}function c(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),d}function d(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),a=!0,b):N===63?(e.consume(N),i=3,r.interrupt?t:_):_t(N)?(e.consume(N),s=String.fromCharCode(N),x):n(N)}function h(N){return N===45?(e.consume(N),i=2,p):N===91?(e.consume(N),i=5,o=0,m):_t(N)?(e.consume(N),i=4,r.interrupt?t:_):n(N)}function p(N){return N===45?(e.consume(N),r.interrupt?t:_):n(N)}function m(N){const he="CDATA[";return N===he.charCodeAt(o++)?(e.consume(N),o===he.length?r.interrupt?t:H:m):n(N)}function b(N){return _t(N)?(e.consume(N),s=String.fromCharCode(N),x):n(N)}function x(N){if(N===null||N===47||N===62||Ce(N)){const he=N===47,xe=s.toLowerCase();return!he&&!a&&ng.includes(xe)?(i=1,r.interrupt?t(N):H(N)):uO.includes(s.toLowerCase())?(i=6,he?(e.consume(N),g):r.interrupt?t(N):H(N)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(N):a?E(N):y(N))}return N===45||ft(N)?(e.consume(N),s+=String.fromCharCode(N),x):n(N)}function g(N){return N===62?(e.consume(N),r.interrupt?t:H):n(N)}function E(N){return ge(N)?(e.consume(N),E):w(N)}function y(N){return N===47?(e.consume(N),w):N===58||N===95||_t(N)?(e.consume(N),C):ge(N)?(e.consume(N),y):w(N)}function C(N){return N===45||N===46||N===58||N===95||ft(N)?(e.consume(N),C):O(N)}function O(N){return N===61?(e.consume(N),A):ge(N)?(e.consume(N),O):y(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),l=N,D):ge(N)?(e.consume(N),A):L(N)}function D(N){return N===l?(e.consume(N),l=null,U):N===null||ae(N)?n(N):(e.consume(N),D)}function L(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||Ce(N)?O(N):(e.consume(N),L)}function U(N){return N===47||N===62||ge(N)?y(N):n(N)}function w(N){return N===62?(e.consume(N),Y):n(N)}function Y(N){return N===null||ae(N)?H(N):ge(N)?(e.consume(N),Y):n(N)}function H(N){return N===45&&i===2?(e.consume(N),P):N===60&&i===1?(e.consume(N),$):N===62&&i===4?(e.consume(N),W):N===63&&i===3?(e.consume(N),_):N===93&&i===5?(e.consume(N),z):ae(N)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dO,ie,re)(N)):N===null||ae(N)?(e.exit("htmlFlowData"),re(N)):(e.consume(N),H)}function re(N){return e.check(fO,Z,ie)(N)}function Z(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),J}function J(N){return N===null||ae(N)?re(N):(e.enter("htmlFlowData"),H(N))}function P(N){return N===45?(e.consume(N),_):H(N)}function $(N){return N===47?(e.consume(N),s="",M):H(N)}function M(N){if(N===62){const he=s.toLowerCase();return ng.includes(he)?(e.consume(N),W):H(N)}return _t(N)&&s.length<8?(e.consume(N),s+=String.fromCharCode(N),M):H(N)}function z(N){return N===93?(e.consume(N),_):H(N)}function _(N){return N===62?(e.consume(N),W):N===45&&i===2?(e.consume(N),_):H(N)}function W(N){return N===null||ae(N)?(e.exit("htmlFlowData"),ie(N)):(e.consume(N),W)}function ie(N){return e.exit("htmlFlow"),t(N)}}function mO(e,t,n){const r=this;return i;function i(s){return ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function gO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Js,t,n)}}const EO={name:"htmlText",tokenize:bO};function bO(e,t,n){const r=this;let i,a,s;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),O):_===63?(e.consume(_),y):_t(_)?(e.consume(_),L):n(_)}function u(_){return _===45?(e.consume(_),c):_===91?(e.consume(_),a=0,m):_t(_)?(e.consume(_),E):n(_)}function c(_){return _===45?(e.consume(_),p):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),h):ae(_)?(s=d,$(_)):(e.consume(_),d)}function h(_){return _===45?(e.consume(_),p):d(_)}function p(_){return _===62?P(_):_===45?h(_):d(_)}function m(_){const W="CDATA[";return _===W.charCodeAt(a++)?(e.consume(_),a===W.length?b:m):n(_)}function b(_){return _===null?n(_):_===93?(e.consume(_),x):ae(_)?(s=b,$(_)):(e.consume(_),b)}function x(_){return _===93?(e.consume(_),g):b(_)}function g(_){return _===62?P(_):_===93?(e.consume(_),g):b(_)}function E(_){return _===null||_===62?P(_):ae(_)?(s=E,$(_)):(e.consume(_),E)}function y(_){return _===null?n(_):_===63?(e.consume(_),C):ae(_)?(s=y,$(_)):(e.consume(_),y)}function C(_){return _===62?P(_):y(_)}function O(_){return _t(_)?(e.consume(_),A):n(_)}function A(_){return _===45||ft(_)?(e.consume(_),A):D(_)}function D(_){return ae(_)?(s=D,$(_)):ge(_)?(e.consume(_),D):P(_)}function L(_){return _===45||ft(_)?(e.consume(_),L):_===47||_===62||Ce(_)?U(_):n(_)}function U(_){return _===47?(e.consume(_),P):_===58||_===95||_t(_)?(e.consume(_),w):ae(_)?(s=U,$(_)):ge(_)?(e.consume(_),U):P(_)}function w(_){return _===45||_===46||_===58||_===95||ft(_)?(e.consume(_),w):Y(_)}function Y(_){return _===61?(e.consume(_),H):ae(_)?(s=Y,$(_)):ge(_)?(e.consume(_),Y):U(_)}function H(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,re):ae(_)?(s=H,$(_)):ge(_)?(e.consume(_),H):(e.consume(_),Z)}function re(_){return _===i?(e.consume(_),i=void 0,J):_===null?n(_):ae(_)?(s=re,$(_)):(e.consume(_),re)}function Z(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Ce(_)?U(_):(e.consume(_),Z)}function J(_){return _===47||_===62||Ce(_)?U(_):n(_)}function P(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function $(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),M}function M(_){return ge(_)?be(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):z(_)}function z(_){return e.enter("htmlTextData"),s(_)}}const Qh={name:"labelEnd",resolveAll:xO,resolveTo:SO,tokenize:vO},yO={tokenize:CO},TO={tokenize:AO},_O={tokenize:kO};function xO(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&&Vt(e,0,e.length,n),e}function SO(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=Xt(o,e.slice(a+1,a+r+3)),o=Xt(o,[["enter",c,t]]),o=Xt(o,Nu(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=Xt(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=Xt(o,e.slice(s+1)),o=Xt(o,[["exit",l,t]]),Vt(e,a,e.length,o),e}function vO(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(h){return a?a._inactive?d(h):(s=r.parser.defined.includes(hn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(yO,c,s?c:d)(h):h===91?e.attempt(TO,c,s?u:d)(h):s?c(h):d(h)}function u(h){return e.attempt(_O,c,d)(h)}function c(h){return t(h)}function d(h){return a._balanced=!0,n(h)}}function CO(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Ce(d)?cs(e,a)(d):a(d)}function a(d){return d===41?c(d):PT(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ce(d)?cs(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?FT(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Ce(d)?cs(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function AO(e,t,n){const r=this;return i;function i(o){return BT.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function kO(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const NO={name:"labelStartImage",resolveAll:Qh.resolveAll,tokenize:wO};function wO(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const IO={name:"labelStartLink",resolveAll:Qh.resolveAll,tokenize:OO};function OO(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Cc={name:"lineEnding",tokenize:RO};function RO(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const el={name:"thematicBreak",tokenize:LO};function LO(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ae(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ge(u)?be(e,o,"whitespace")(u):o(u))}}const kt={continuation:{tokenize:BO},exit:UO,name:"list",tokenize:PO},DO={partial:!0,tokenize:HO},MO={partial:!0,tokenize:FO};function PO(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:rf(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(el,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return rf(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Js,r.interrupt?n:c,e.attempt(DO,h,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,h(p)}function d(p){return ge(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function BO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Js,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ge(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(MO,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(kt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function FO(e,t,n){const r=this;return be(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function UO(e){e.exit(this.containerState.type)}function HO(e,t,n){const r=this;return be(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!ge(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const rg={name:"setextUnderline",resolveTo:zO,tokenize:VO};function zO(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function VO(e,t,n){const r=this;let i;return a;function a(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),ge(u)?be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ae(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const jO={tokenize:$O};function $O(e){const t=this,n=e.attempt(Js,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(q3,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const GO={resolveAll:HT()},WO=UT("string"),YO=UT("text");function UT(e){return{resolveAll:HT(e==="text"?KO:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function HT(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function KO(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 a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},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 qO={42:kt,43:kt,45:kt,48:kt,49:kt,50:kt,51:kt,52:kt,53:kt,54:kt,55:kt,56:kt,57:kt,62:RT},QO={91:eO},XO={[-2]:vc,[-1]:vc,32:vc},ZO={35:sO,42:el,45:[rg,el],60:cO,61:rg,95:el,96:tg,126:tg},JO={38:DT,92:LT},eR={[-5]:Cc,[-4]:Cc,[-3]:Cc,33:NO,38:DT,42:af,60:[I3,EO],91:IO,92:[iO,LT],93:Qh,95:af,96:j3},tR={null:[af,GO]},nR={null:[42,95]},rR={null:[]},iR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:nR,contentInitial:QO,disable:rR,document:qO,flow:ZO,flowInitial:XO,insideSpan:tR,string:JO,text:eR},Symbol.toStringTag,{value:"Module"}));function aR(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={},a=[];let s=[],o=[];const l={attempt:D(O),check:D(A),consume:E,enter:y,exit:C,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:m,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(Y){return s=Xt(s,Y),x(),s[s.length-1]!==null?[]:(L(t,0),u.events=Nu(a,u.events,u),u.events)}function h(Y,H){return oR(p(Y),H)}function p(Y){return sR(s,Y)}function m(){const{_bufferIndex:Y,_index:H,line:re,column:Z,offset:J}=r;return{_bufferIndex:Y,_index:H,line:re,column:Z,offset:J}}function b(Y){i[Y.line]=Y.column,w()}function x(){let Y;for(;r._index<s.length;){const H=s[r._index];if(typeof H=="string")for(Y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Y&&r._bufferIndex<H.length;)g(H.charCodeAt(r._bufferIndex));else g(H)}}function g(Y){c=c(Y)}function E(Y){ae(Y)?(r.line++,r.column=1,r.offset+=Y===-3?2:1,w()):Y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=Y}function y(Y,H){const re=H||{};return re.type=Y,re.start=m(),u.events.push(["enter",re,u]),o.push(re),re}function C(Y){const H=o.pop();return H.end=m(),u.events.push(["exit",H,u]),H}function O(Y,H){L(Y,H.from)}function A(Y,H){H.restore()}function D(Y,H){return re;function re(Z,J,P){let $,M,z,_;return Array.isArray(Z)?ie(Z):"tokenize"in Z?ie([Z]):W(Z);function W(pe){return Ze;function Ze(st){const Ct=st!==null&&pe[st],gt=st!==null&&pe.null,ot=[...Array.isArray(Ct)?Ct:Ct?[Ct]:[],...Array.isArray(gt)?gt:gt?[gt]:[]];return ie(ot)(st)}}function ie(pe){return $=pe,M=0,pe.length===0?P:N(pe[M])}function N(pe){return Ze;function Ze(st){return _=U(),z=pe,pe.partial||(u.currentConstruct=pe),pe.name&&u.parser.constructs.disable.null.includes(pe.name)?xe():pe.tokenize.call(H?Object.assign(Object.create(u),H):u,l,he,xe)(st)}}function he(pe){return Y(z,_),J}function xe(pe){return _.restore(),++M<$.length?N($[M]):P}}}function L(Y,H){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&Vt(u.events,H,u.events.length-H,Y.resolve(u.events.slice(H),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function U(){const Y=m(),H=u.previous,re=u.currentConstruct,Z=u.events.length,J=Array.from(o);return{from:Z,restore:P};function P(){r=Y,u.previous=H,u.currentConstruct=re,u.events.length=Z,o=J,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sR(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function oR(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":"	";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function lR(e){const r={constructs:IT([iR,...(e||{}).extensions||[]]),content:i(S3),defined:[],document:i(C3),flow:i(jO),lazy:{},string:i(WO),text:i(YO)};return r;function i(a){return s;function s(o){return aR(r,a,o)}}}function uR(e){for(;!MT(e););return e}const ig=/[\0\t\n\r]/g;function cR(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const l=[];let u,c,d,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(ig.lastIndex=d,u=ig.exec(a),h=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(h),!u){t=a.slice(d);break}if(p===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(a.slice(d,h)),e+=h-d),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const dR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fR(e){return e.replace(dR,hR)}function hR(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return OT(n.slice(a?2:1),a?16:10)}return qh(n)||e}const zT={}.hasOwnProperty;function pR(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mR(n)(uR(lR(n).document().write(cR()(e,t,!0))))}function mR(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Dr),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(Et),blockQuote:a(gt),characterEscape:U,characterReference:U,codeFenced:a(ot),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ot,s),codeText:a(gi,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(Qn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Ei),hardBreakEscape:a(Te),hardBreakTrailing:a(Te),htmlFlow:a(an,s),htmlFlowData:U,htmlText:a(an,s),htmlTextData:U,image:a(se),label:s,link:a(Dr),listItem:a(Se),listItemValue:h,listOrdered:a($e,d),listUnordered:a($e),paragraph:a(bi),reference:N,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Et),strong:a(Nn),thematicBreak:a(va)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:Ct,autolinkProtocol:st,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:pe,characterReference:Ze,codeFenced:l(x),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:w,codeIndented:l(g),codeText:l(J),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:E,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(H),hardBreakTrailing:l(H),htmlFlow:l(re),htmlFlowData:w,htmlText:l(Z),htmlTextData:w,image:l($),label:z,labelText:M,lineEnding:Y,link:l(P),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:he,resourceDestinationString:_,resourceTitleString:W,resource:ie,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};VT(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let B={type:"root",children:[]};const X={stack:[B],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},te=[];let ue=-1;for(;++ue<I.length;)if(I[ue][1].type==="listOrdered"||I[ue][1].type==="listUnordered")if(I[ue][0]==="enter")te.push(ue);else{const He=te.pop();ue=i(I,He,ue)}for(ue=-1;++ue<I.length;){const He=t[I[ue][0]];zT.call(He,I[ue][1].type)&&He[I[ue][1].type].call(Object.assign({sliceSerialize:I[ue][2].sliceSerialize},X),I[ue][1])}if(X.tokenStack.length>0){const He=X.tokenStack[X.tokenStack.length-1];(He[1]||ag).call(X,void 0,He[0])}for(B.position={start:er(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:er(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)B=t.transforms[ue](B)||B;return B}function i(I,B,X){let te=B-1,ue=-1,He=!1,wn,sn,Ca,Aa;for(;++te<=X;){const Mt=I[te];switch(Mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Mt[0]==="enter"?ue++:ue--,Aa=void 0;break}case"lineEndingBlank":{Mt[0]==="enter"&&(wn&&!Aa&&!ue&&!Ca&&(Ca=te),Aa=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Aa=void 0}if(!ue&&Mt[0]==="enter"&&Mt[1].type==="listItemPrefix"||ue===-1&&Mt[0]==="exit"&&(Mt[1].type==="listUnordered"||Mt[1].type==="listOrdered")){if(wn){let yi=te;for(sn=void 0;yi--;){const In=I[yi];if(In[1].type==="lineEnding"||In[1].type==="lineEndingBlank"){if(In[0]==="exit")continue;sn&&(I[sn][1].type="lineEndingBlank",He=!0),In[1].type="lineEnding",sn=yi}else if(!(In[1].type==="linePrefix"||In[1].type==="blockQuotePrefix"||In[1].type==="blockQuotePrefixWhitespace"||In[1].type==="blockQuoteMarker"||In[1].type==="listItemIndent"))break}Ca&&(!sn||Ca<sn)&&(wn._spread=!0),wn.end=Object.assign({},sn?I[sn][1].start:Mt[1].end),I.splice(sn||te,0,["exit",wn,Mt[2]]),te++,X++}if(Mt[1].type==="listItemPrefix"){const yi={type:"listItem",_spread:!1,start:Object.assign({},Mt[1].start),end:void 0};wn=yi,I.splice(te,0,["enter",yi,Mt[2]]),te++,X++,Ca=void 0,Aa=!0}}}return I[B][1]._spread=He,X}function a(I,B){return X;function X(te){o.call(this,I(te),te),B&&B.call(this,te)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(I,B,X){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([B,X||void 0]),I.position={start:er(B.start),end:void 0}}function l(I){return B;function B(X){I&&I.call(this,X),u.call(this,X)}}function u(I,B){const X=this.stack.pop(),te=this.tokenStack.pop();if(te)te[0].type!==I.type&&(B?B.call(this,I,te[0]):(te[1]||ag).call(this,I,te[0]));else throw new Error("Cannot close `"+I.type+"` ("+us({start:I.start,end:I.end})+"): it’s not open");X.position.end=er(I.end)}function c(){return Kh(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(I){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function p(){const I=this.resume(),B=this.stack[this.stack.length-1];B.lang=I}function m(){const I=this.resume(),B=this.stack[this.stack.length-1];B.meta=I}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const I=this.resume(),B=this.stack[this.stack.length-1];B.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const I=this.resume(),B=this.stack[this.stack.length-1];B.value=I.replace(/(\r?\n|\r)$/g,"")}function E(I){const B=this.resume(),X=this.stack[this.stack.length-1];X.label=B,X.identifier=hn(this.sliceSerialize(I)).toLowerCase()}function y(){const I=this.resume(),B=this.stack[this.stack.length-1];B.title=I}function C(){const I=this.resume(),B=this.stack[this.stack.length-1];B.url=I}function O(I){const B=this.stack[this.stack.length-1];if(!B.depth){const X=this.sliceSerialize(I).length;B.depth=X}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(I){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function U(I){const X=this.stack[this.stack.length-1].children;let te=X[X.length-1];(!te||te.type!=="text")&&(te=Sa(),te.position={start:er(I.start),end:void 0},X.push(te)),this.stack.push(te)}function w(I){const B=this.stack.pop();B.value+=this.sliceSerialize(I),B.position.end=er(I.end)}function Y(I){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=B.children[B.children.length-1];X.position.end=er(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(U.call(this,I),w.call(this,I))}function H(){this.data.atHardBreak=!0}function re(){const I=this.resume(),B=this.stack[this.stack.length-1];B.value=I}function Z(){const I=this.resume(),B=this.stack[this.stack.length-1];B.value=I}function J(){const I=this.resume(),B=this.stack[this.stack.length-1];B.value=I}function P(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=B,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function $(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=B,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function M(I){const B=this.sliceSerialize(I),X=this.stack[this.stack.length-2];X.label=fR(B),X.identifier=hn(B).toLowerCase()}function z(){const I=this.stack[this.stack.length-1],B=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const te=I.children;X.children=te}else X.alt=B}function _(){const I=this.resume(),B=this.stack[this.stack.length-1];B.url=I}function W(){const I=this.resume(),B=this.stack[this.stack.length-1];B.title=I}function ie(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function he(I){const B=this.resume(),X=this.stack[this.stack.length-1];X.label=B,X.identifier=hn(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function xe(I){this.data.characterReferenceType=I.type}function pe(I){const B=this.sliceSerialize(I),X=this.data.characterReferenceType;let te;X?(te=OT(B,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):te=qh(B);const ue=this.stack[this.stack.length-1];ue.value+=te}function Ze(I){const B=this.stack.pop();B.position.end=er(I.end)}function st(I){w.call(this,I);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(I)}function Ct(I){w.call(this,I);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(I)}function gt(){return{type:"blockquote",children:[]}}function ot(){return{type:"code",lang:null,meta:null,value:""}}function gi(){return{type:"inlineCode",value:""}}function Qn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ei(){return{type:"emphasis",children:[]}}function Et(){return{type:"heading",depth:0,children:[]}}function Te(){return{type:"break"}}function an(){return{type:"html",value:""}}function se(){return{type:"image",title:null,url:"",alt:null}}function Dr(){return{type:"link",title:null,url:"",children:[]}}function $e(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Se(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function bi(){return{type:"paragraph",children:[]}}function Nn(){return{type:"strong",children:[]}}function Sa(){return{type:"text",value:""}}function va(){return{type:"thematicBreak"}}}function er(e){return{line:e.line,column:e.column,offset:e.offset}}function VT(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?VT(e,r):gR(e,r)}}function gR(e,t){let n;for(n in t)if(zT.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 ag(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+us({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+us({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+us({start:t.start,end:t.end})+") is still open")}function ER(e){const t=this;t.parser=n;function n(r){return pR(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function bR(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 yR(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function TR(e,t){const n=t.value?t.value+`
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function _R(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xR(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SR(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ea(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function vR(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 CR(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jT(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),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function AR(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jT(e,t);const i={src:Ea(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kR(e,t){const n={src:Ea(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 NR(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 wR(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jT(e,t);const i={href:Ea(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function IR(e,t){const n={href:Ea(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 OR(e,t,n){const r=e.all(t),i=n?RR(n):$T(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function RR(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=$T(n[r])}return t}function $T(e){const t=e.spread;return t??e.children.length>1}function LR(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 s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function DR(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MR(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function PR(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BR(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=An(t.children[1]),l=Au(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function FR(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const d=t.children[l],h={},p=s?s[l]:void 0;p&&(h.align=p);let m={type:"element",tagName:a,properties:h,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function UR(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const sg=9,og=32;function HR(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(lg(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(lg(t.slice(i),i>0,!1)),a.join("")}function lg(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===sg||a===og;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===sg||a===og;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zR(e,t){const n={type:"text",value:HR(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function VR(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const jR={blockquote:bR,break:yR,code:TR,delete:_R,emphasis:xR,footnoteReference:SR,heading:vR,html:CR,imageReference:AR,image:kR,inlineCode:NR,linkReference:wR,link:IR,listItem:OR,list:LR,paragraph:DR,root:MR,strong:PR,table:BR,tableCell:UR,tableRow:FR,text:zR,thematicBreak:VR,toml:No,yaml:No,definition:No,footnoteDefinition:No};function No(){}const GT=-1,wu=0,ds=1,zl=2,Xh=3,Zh=4,Jh=5,ep=6,WT=7,YT=8,ug=typeof self=="object"?self:globalThis,$R=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case wu:case GT:return n(s,i);case ds:{const o=n([],i);for(const l of s)o.push(r(l));return o}case zl:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case Xh:return n(new Date(s),i);case Zh:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case Jh:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case ep:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case WT:{const{name:o,message:l}=s;return n(new ug[o](l),i)}case YT:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new ug[a](s),i)};return r},cg=e=>$R(new Map,e)(0),_i="",{toString:GR}={},{keys:WR}=Object,Ha=e=>{const t=typeof e;if(t!=="object"||!e)return[wu,t];const n=GR.call(e).slice(8,-1);switch(n){case"Array":return[ds,_i];case"Object":return[zl,_i];case"Date":return[Xh,_i];case"RegExp":return[Zh,_i];case"Map":return[Jh,_i];case"Set":return[ep,_i];case"DataView":return[ds,n]}return n.includes("Array")?[ds,n]:n.includes("Error")?[WT,n]:[zl,n]},wo=([e,t])=>e===wu&&(t==="function"||t==="symbol"),YR=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Ha(s);switch(o){case wu:{let c=s;switch(l){case"bigint":o=YT,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([GT],s)}return i([o,c],s)}case ds:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),i([l,[...h]],s)}const c=[],d=i([o,c],s);for(const h of s)c.push(a(h));return d}case zl:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const h of WR(s))(e||!wo(Ha(s[h])))&&c.push([a(h),a(s[h])]);return d}case Xh:return i([o,s.toISOString()],s);case Zh:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case Jh:{const c=[],d=i([o,c],s);for(const[h,p]of s)(e||!(wo(Ha(h))||wo(Ha(p))))&&c.push([a(h),a(p)]);return d}case ep:{const c=[],d=i([o,c],s);for(const h of s)(e||!wo(Ha(h)))&&c.push(a(h));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},dg=(e,{json:t,lossy:n}={})=>{const r=[];return YR(!(t||n),!!t,new Map,r)(e),r},la=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cg(dg(e,t)):structuredClone(e):(e,t)=>cg(dg(e,t));function KR(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 qR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function QR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KR,r=e.options.footnoteBackLabel||qR,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),h=Ea(d.toLowerCase());let p=0;const m=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++p<=b;){m.length>0&&m.push({type:"text",value:" "});let E=typeof n=="string"?n:n(l,p);typeof E=="string"&&(E={type:"text",value:E}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const E=x.children[x.children.length-1];E&&E.type==="text"?E.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...m)}else c.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...la(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const eo=function(e){if(e==null)return eL;if(typeof e=="function")return Iu(e);if(typeof e=="object")return Array.isArray(e)?XR(e):ZR(e);if(typeof e=="string")return JR(e);throw new Error("Expected function, string, or object as test")};function XR(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=eo(e[n]);return Iu(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ZR(e){const t=e;return Iu(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function JR(e){return Iu(t);function t(n){return n&&n.type===e}}function Iu(e){return t;function t(n,r,i){return!!(tL(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function eL(){return!0}function tL(e){return e!==null&&typeof e=="object"&&"type"in e}const KT=[],nL=!0,sf=!1,rL="skip";function qT(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=eo(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=KT,m,b,x;if((!t||a(l,u,c[c.length-1]||void 0))&&(p=iL(n(l,c)),p[0]===sf))return p;if("children"in l&&l.children){const g=l;if(g.children&&p[0]!==rL)for(b=(r?g.children.length:-1)+s,x=c.concat(g);b>-1&&b<g.children.length;){const E=g.children[b];if(m=o(E,b,x)(),m[0]===sf)return m;b=typeof m[1]=="number"?m[1]:b+s}}return p}}}function iL(e){return Array.isArray(e)?e:typeof e=="number"?[nL,e]:e==null?KT:[e]}function to(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),qT(e,a,o,i);function o(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const of={}.hasOwnProperty,aL={};function sL(e,t){const n=t||aL,r=new Map,i=new Map,a=new Map,s={...jR,...n.handlers},o={all:u,applyData:lL,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:oL,wrap:cL};return to(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();d.has(h)||d.set(h,c)}}),o;function l(c,d){const h=c.type,p=o.handlers[h];if(of.call(o.handlers,h)&&p)return p(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in c){const{children:b,...x}=c,g=la(x);return g.children=o.all(c),g}return la(c)}return(o.options.unknownHandler||uL)(o,c,d)}function u(c){const d=[];if("children"in c){const h=c.children;let p=-1;for(;++p<h.length;){const m=o.one(h[p],c);if(m){if(p&&h[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=fg(m.value)),!Array.isArray(m)&&m.type==="element")){const b=m.children[0];b&&b.type==="text"&&(b.value=fg(b.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function oL(e,t){e.position&&(t.position=qI(e))}function lL(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,la(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function uL(e,t){const n=t.data||{},r="value"in t&&!(of.call(n,"hProperties")||of.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 cL(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function fg(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hg(e,t){const n=sL(e,t),r=n.one(e,void 0),i=QR(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function dL(e,t){return e&&"run"in e?async function(n,r){const i=hg(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hg(n,{file:r,...e||t})}}function pg(e){if(e)throw e}var tl=Object.prototype.hasOwnProperty,QT=Object.prototype.toString,mg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,Eg=function(t){return typeof Array.isArray=="function"?Array.isArray(t):QT.call(t)==="[object Array]"},bg=function(t){if(!t||QT.call(t)!=="[object Object]")return!1;var n=tl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&tl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||tl.call(t,i)},yg=function(t,n){mg&&n.name==="__proto__"?mg(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Tg=function(t,n){if(n==="__proto__")if(tl.call(t,n)){if(gg)return gg(t,n).value}else return;return t[n]},fL=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=Tg(o,n),i=Tg(t,n),o!==i&&(c&&i&&(bg(i)||(a=Eg(i)))?(a?(a=!1,s=r&&Eg(r)?r:[]):s=r&&bg(r)?r:{},yg(o,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&yg(o,{name:n,newValue:i}));return o};const Ac=Xl(fL);function lf(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 hL(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const c=e[++a];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?pL(c,o)(...u):s(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 pL(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const yn={basename:mL,dirname:gL,extname:EL,join:bL,sep:"/"};function mL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');no(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function gL(e){if(no(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 EL(e){no(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function bL(...e){let t=-1,n;for(;++t<e.length;)no(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yL(n)}function yL(e){no(e);const t=e.codePointAt(0)===47;let n=TL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TL(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function no(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _L={cwd:xL};function xL(){return"/"}function uf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function SL(e){if(typeof e=="string")e=new URL(e);else if(!uf(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 vL(e)}function vL(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 kc=["history","path","basename","stem","extname","dirname"];class XT{constructor(t){let n;t?uf(t)?n={path:t}:typeof t=="string"||CL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_L.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<kc.length;){const a=kc[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)kc.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?yn.basename(this.path):void 0}set basename(t){wc(t,"basename"),Nc(t,"basename"),this.path=yn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yn.dirname(this.path):void 0}set dirname(t){_g(this.basename,"dirname"),this.path=yn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yn.extname(this.path):void 0}set extname(t){if(Nc(t,"extname"),_g(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=yn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){uf(t)&&(t=SL(t)),wc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yn.basename(this.path,this.extname):void 0}set stem(t){wc(t,"stem"),Nc(t,"stem"),this.path=yn.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 pt(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 Nc(e,t){if(e&&e.includes(yn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yn.sep+"`")}function wc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _g(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function CL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AL=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},kL={}.hasOwnProperty;class tp extends AL{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=hL()}copy(){const t=new tp;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ac(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rc("data",this.frozen),this.namespace[t]=n,this):kL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rc("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=Io(t),r=this.parser||this.Parser;return Ic("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ic("process",this.parser||this.Parser),Oc("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Io(t),l=r.parse(o);r.run(l,o,function(c,d,h){if(c||!d||!h)return u(c);const p=d,m=r.stringify(p,h);IL(m)?h.value=m:h.result=m,u(c,h)});function u(c,d){c||!d?s(c):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Ic("processSync",this.parser||this.Parser),Oc("processSync",this.compiler||this.Compiler),this.process(t,i),Sg("processSync","process",n),r;function i(a,s){n=!0,pg(a),r=s}}run(t,n,r){xg(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const l=Io(n);i.run(t,l,u);function u(c,d,h){const p=d||t;c?o(c):s?s(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Sg("runSync","run",r),i;function a(s,o){pg(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Io(n),i=this.compiler||this.Compiler;return Oc("stringify",i),xg(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Rc("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(i.settings=Ac(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];a(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===u){h=d;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...m]=c;const b=r[h][1];lf(b)&&lf(p)&&(p=Ac(!0,b,p)),r[h]=[u,p,...m]}}}}const NL=new tp().freeze();function Ic(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Oc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rc(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 xg(e){if(!lf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Io(e){return wL(e)?e:new XT(e)}function wL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function IL(e){return typeof e=="string"||OL(e)}function OL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vg=[],Cg={allowDangerousHtml:!0},LL=/^(https?|ircs?|mailto|xmpp)$/i,DL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ML(e){const t=PL(e),n=BL(e);return FL(t.runSync(t.parse(n),n),e)}function PL(e){const t=e.rehypePlugins||vg,n=e.remarkPlugins||vg,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Cg}:Cg;return NL().use(ER).use(n).use(dL,r).use(t)}function BL(e){const t=e.children||"",n=new XT;return typeof t=="string"&&(n.value=t),n}function FL(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||UL;for(const c of DL)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+RL+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),to(e,u),e3(e,{Fragment:S.Fragment,components:i,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function u(c,d,h){if(c.type==="raw"&&h&&typeof d=="number")return s?h.children.splice(d,1):h.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in Sc)if(Object.hasOwn(Sc,p)&&Object.hasOwn(c.properties,p)){const m=c.properties[p],b=Sc[p];(b===null||b.includes(c.tagName))&&(c.properties[p]=l(String(m||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,h)),p&&h&&typeof d=="number")return o&&c.children?h.children.splice(d,1,...c.children):h.children.splice(d,1),d}}}function UL(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||LL.test(e.slice(0,t))?e:""}function Ag(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 HL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zL(e,t,n){const i=eo((n||{}).ignore||[]),a=VL(t);let s=-1;for(;++s<a.length;)qT(e,"text",o);function o(u,c){let d=-1,h;for(;++d<c.length;){const p=c[d],m=h?h.children:void 0;if(i(p,m?m.indexOf(p):void 0,h))return;h=p}if(h)return l(u,c)}function l(u,c){const d=c[c.length-1],h=a[s][0],p=a[s][1];let m=0;const x=d.children.indexOf(u);let g=!1,E=[];h.lastIndex=0;let y=h.exec(u.value);for(;y;){const C=y.index,O={index:y.index,input:y.input,stack:[...c,u]};let A=p(...y,O);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?h.lastIndex=C+1:(m!==C&&E.push({type:"text",value:u.value.slice(m,C)}),Array.isArray(A)?E.push(...A):A&&E.push(A),m=C+y[0].length,g=!0),!h.global)break;y=h.exec(u.value)}return g?(m<u.value.length&&E.push({type:"text",value:u.value.slice(m)}),d.children.splice(x,1,...E)):E=[u],x+E.length}}function VL(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([jL(i[0]),$L(i[1])])}return t}function jL(e){return typeof e=="string"?new RegExp(HL(e),"g"):e}function $L(e){return typeof e=="function"?e:function(){return e}}const Lc="phrasing",Dc=["autolink","link","image","label"];function GL(){return{transforms:[ZL],enter:{literalAutolink:YL,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc},exit:{literalAutolink:XL,literalAutolinkEmail:QL,literalAutolinkHttp:KL,literalAutolinkWww:qL}}}function WL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lc,notInConstruct:Dc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lc,notInConstruct:Dc},{character:":",before:"[ps]",after:"\\/",inConstruct:Lc,notInConstruct:Dc}]}}function YL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mc(e){this.config.enter.autolinkProtocol.call(this,e)}function KL(e){this.config.exit.autolinkProtocol.call(this,e)}function qL(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 QL(e){this.config.exit.autolinkEmail.call(this,e)}function XL(e){this.exit(e)}function ZL(e){zL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,JL],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),eD]],{ignore:["link","linkReference"]})}function JL(e,t,n,r,i){let a="";if(!ZT(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!tD(n)))return!1;const s=nD(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function eD(e,t,n,r){return!ZT(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tD(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 nD(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=Ag(e,"(");let a=Ag(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function ZT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||si(n)||ku(n))&&(!t||n!==47)}JT.peek=dD;function rD(){this.buffer()}function iD(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function aD(){this.buffer()}function sD(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lD(e){this.exit(e)}function uD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cD(e){this.exit(e)}function dD(){return"["}function JT(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function fD(){return{enter:{gfmFootnoteCallString:rD,gfmFootnoteCall:iD,gfmFootnoteDefinitionLabelString:aD,gfmFootnoteDefinition:sD},exit:{gfmFootnoteCallString:oD,gfmFootnoteCall:lD,gfmFootnoteDefinitionLabelString:uD,gfmFootnoteDefinition:cD}}}function hD(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:JT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?e_:pD))),u(),l}}function pD(e,t,n){return t===0?e:e_(e,t,n)}function e_(e,t,n){return(n?"":"    ")+e}const mD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];t_.peek=TD;function gD(){return{canContainEols:["delete"],enter:{strikethrough:bD},exit:{strikethrough:yD}}}function ED(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mD}],handlers:{delete:t_}}}function bD(e){this.enter({type:"delete",children:[]},e)}function yD(e){this.exit(e)}function t_(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function TD(){return"~"}function _D(e){return e.length}function xD(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||_D,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],x=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const E=SD(e[c][g]);if(n.alignDelimiters!==!1){const y=i(E);x[g]=y,(l[g]===void 0||y>l[g])&&(l[g]=y)}b.push(E)}s[c]=b,o[c]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)a[d]=kg(r[d]);else{const b=kg(r);for(;++d<u;)a[d]=b}d=-1;const h=[],p=[];for(;++d<u;){const b=a[d];let x="",g="";b===99?(x=":",g=":"):b===108?x=":":b===114&&(g=":");let E=n.alignDelimiters===!1?1:Math.max(1,l[d]-x.length-g.length);const y=x+"-".repeat(E)+g;n.alignDelimiters!==!1&&(E=x.length+E+g.length,E>l[d]&&(l[d]=E),p[d]=E),h[d]=y}s.splice(1,0,h),o.splice(1,0,p),c=-1;const m=[];for(;++c<s.length;){const b=s[c],x=o[c];d=-1;const g=[];for(;++d<u;){const E=b[d]||"";let y="",C="";if(n.alignDelimiters!==!1){const O=l[d]-(x[d]||0),A=a[d];A===114?y=" ".repeat(O):A===99?O%2?(y=" ".repeat(O/2+.5),C=" ".repeat(O/2-.5)):(y=" ".repeat(O/2),C=y):C=" ".repeat(O)}n.delimiterStart!==!1&&!d&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||d)&&g.push(" "),n.alignDelimiters!==!1&&g.push(y),g.push(E),n.alignDelimiters!==!1&&g.push(C),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&g.push("|")}m.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
`)}function SD(e){return e==null?"":String(e)}function kg(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}const Ng={}.hasOwnProperty;function n_(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&Ng.call(i,e)){const l=String(i[e]);s=Ng.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function vD(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),CD);return i(),s}function CD(e,t,n){return">"+(n?"":" ")+e}function AD(e,t){return wg(e,t.inConstruct,!0)&&!wg(e,t.notInConstruct,!1)}function wg(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 Ig(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
`&&AD(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function kD(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function ND(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 wD(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 ID(e,t,n,r){const i=wD(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ND(e,n)){const d=n.enter("codeIndented"),h=n.indentLines(a,OD);return d(),h}const o=n.createTracker(r),l=i.repeat(Math.max(kD(a,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
`,encode:["`"],...o.current()})),d()}return c+=o.move(`
`),a&&(c+=o.move(a+`
`)),c+=o.move(l),u(),c}function OD(e,t,n){return(n?"":"    ")+e}function np(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 RD(e,t,n,r){const i=np(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function LD(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 Us(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vl(e,t,n){const r=oa(e),i=oa(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}}r_.peek=DD;function r_(e,t,n,r){const i=LD(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),c=Vl(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Us(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=Vl(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+Us(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+p}function DD(e,t,n){return n.options.emphasis||"*"}function MD(e,t){let n=!1;return to(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,sf}),!!((!e.depth||e.depth<3)&&Kh(e)&&(t.options.setext||n))}function PD(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(MD(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`
`,after:`
`});return d(),c(),h+`
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
`,...a.current()});return/^[\t ]/.test(u)&&(u=Us(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}i_.peek=BD;function i_(e){return e.value||""}function BD(){return"<"}a_.peek=FD;function a_(e,t,n,r){const i=np(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function FD(){return"!"}s_.peek=UD;function s_(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function UD(){return"!"}o_.peek=HD;function o_(e,t,n){let r=e.value||"",i="`",a=-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+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function HD(){return"`"}function l_(e,t){const n=Kh(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))}u_.peek=zD;function u_(e,t,n,r){const i=np(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(l_(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function zD(e,t,n){return l_(e,n)?"<":"["}c_.peek=VD;function c_(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function VD(){return"["}function rp(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 jD(e){const t=rp(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 $D(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 d_(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 GD(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?$D(n):rp(n);const o=e.ordered?s==="."?")":".":jD(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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&&(l=!0),d_(n)===s&&c){let d=-1;for(;++d<e.children.length;){const h=e.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),u}function WD(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 YD(e,t,n,r){const i=WD(n);let a=n.bulletCurrent||rp(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(d,h,p){return h?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function KD(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const qD=eo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function QD(e,t,n,r){return(e.children.some(function(s){return qD(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function XD(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}f_.peek=ZD;function f_(e,t,n,r){const i=XD(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),c=Vl(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Us(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=Vl(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+Us(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+p}function ZD(e,t,n){return n.options.strong||"*"}function JD(e,t,n,r){return n.safe(e.value,r)}function eM(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 tM(e,t,n){const r=(d_(n)+(n.options.ruleSpaces?" ":"")).repeat(eM(n));return n.options.ruleSpaces?r.slice(0,-1):r}const h_={blockquote:vD,break:Ig,code:ID,definition:RD,emphasis:r_,hardBreak:Ig,heading:PD,html:i_,image:a_,imageReference:s_,inlineCode:o_,link:u_,linkReference:c_,list:GD,listItem:YD,paragraph:KD,root:QD,strong:f_,text:JD,thematicBreak:tM};function nM(){return{enter:{table:rM,tableData:Og,tableHeader:Og,tableRow:aM},exit:{codeText:sM,table:iM,tableData:Pc,tableHeader:Pc,tableRow:Pc}}}function rM(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 iM(e){this.exit(e),this.data.inTable=void 0}function aM(e){this.enter({type:"tableRow",children:[]},e)}function Pc(e){this.exit(e)}function Og(e){this.enter({type:"tableCell",children:[]},e)}function sM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,oM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function oM(e,t){return t==="|"?t:e}function lM(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:o}};function s(p,m,b,x){return u(c(p,b,x),p.align)}function o(p,m,b,x){const g=d(p,b,x),E=u([g]);return E.slice(0,E.indexOf(`
`))}function l(p,m,b,x){const g=b.enter("tableCell"),E=b.enter("phrasing"),y=b.containerPhrasing(p,{...x,before:a,after:a});return E(),g(),y}function u(p,m){return xD(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(p,m,b){const x=p.children;let g=-1;const E=[],y=m.enter("table");for(;++g<x.length;)E[g]=d(x[g],m,b);return y(),E}function d(p,m,b){const x=p.children;let g=-1;const E=[],y=m.enter("tableRow");for(;++g<x.length;)E[g]=l(x[g],p,m,b);return y(),E}function h(p,m,b){let x=h_.inlineCode(p,m,b);return b.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function uM(){return{exit:{taskListCheckValueChecked:Rg,taskListCheckValueUnchecked:Rg,paragraph:dM}}}function cM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fM}}}function Rg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function dM(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 a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===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 fM(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=h_.listItem(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function hM(){return[GL(),fD(),gD(),nM(),uM()]}function pM(e){return{extensions:[WL(),hD(e),ED(),lM(e),cM()]}}const mM={tokenize:_M,partial:!0},p_={tokenize:xM,partial:!0},m_={tokenize:SM,partial:!0},g_={tokenize:vM,partial:!0},gM={tokenize:CM,partial:!0},E_={name:"wwwAutolink",tokenize:yM,previous:y_},b_={name:"protocolAutolink",tokenize:TM,previous:T_},qn={name:"emailAutolink",tokenize:bM,previous:__},kn={};function EM(){return{text:kn}}let Pr=48;for(;Pr<123;)kn[Pr]=qn,Pr++,Pr===58?Pr=65:Pr===91&&(Pr=97);kn[43]=qn;kn[45]=qn;kn[46]=qn;kn[95]=qn;kn[72]=[qn,b_];kn[104]=[qn,b_];kn[87]=[qn,E_];kn[119]=[qn,E_];function bM(e,t,n){const r=this;let i,a;return s;function s(d){return!cf(d)||!__.call(r,r.previous)||ip(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return cf(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(gM,c,u)(d):d===45||d===95||ft(d)?(a=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return a&&i&&_t(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function yM(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!y_.call(r,r.previous)||ip(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mM,e.attempt(p_,e.attempt(m_,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TM(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&T_.call(r,r.previous)&&!ip(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(_t(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?u:(a=!0,l)):n(d)}function u(d){return d===null||Hl(d)||Ce(d)||si(d)||ku(d)?n(d):e.attempt(p_,e.attempt(m_,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function _M(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function xM(e,t,n){let r,i,a;return s;function s(u){return u===46||u===95?e.check(g_,l,o)(u):u===null||Ce(u)||si(u)||u!==45&&ku(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!a?n(u):t(u)}}function SM(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(g_,t,a)(s):s===null||Ce(s)||si(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function vM(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Ce(o)||si(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||Ce(o)||si(o)?t(o):r(o)}function a(o){return _t(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):_t(o)?(e.consume(o),s):n(o)}}function CM(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ft(a)?n(a):t(a)}}function y_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ce(e)}function T_(e){return!_t(e)}function __(e){return!(e===47||cf(e))}function cf(e){return e===43||e===45||e===46||e===95||ft(e)}function ip(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 AM={tokenize:DM,partial:!0};function kM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:OM,continuation:{tokenize:RM},exit:LM}},text:{91:{name:"gfmFootnoteCall",tokenize:IM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:NM,resolveTo:wM}}}}function NM(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=hn(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function wM(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 a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function IM(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(a>999||d===93&&!s||d===null||d===91||Ce(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(hn(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ce(d)||(s=!0),a++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,u):u(d)}}function OM(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(s>999||m===93&&!o||m===null||m===91||Ce(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=hn(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ce(m)||(o=!0),s++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),be(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function RM(e,t,n){return e.check(Js,t,e.attempt(AM,t,n))}function LM(e){e.exit("gfmFootnoteDefinition")}function DM(e,t,n){const r=this;return be(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function MM(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},h=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],p=o.parser.constructs.insideSpan.null;p&&Vt(h,h.length,0,Nu(p,s.slice(u+1,l),o)),Vt(h,h.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),Vt(s,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,c=this.events;let d=0;return h;function h(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const b=oa(u);if(m===126)return d>1?l(m):(s.consume(m),d++,p);if(d<2&&!n)return l(m);const x=s.exit("strikethroughSequenceTemporary"),g=oa(m);return x._open=!g||g===2&&!!b,x._close=!b||b===2&&!!g,o(m)}}}class PM{constructor(){this.map=[]}add(t,n,r){BM(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[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 a of i)t.push(a);i=r.pop()}this.map.length=0}}function BM(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 FM(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 a=r.length-1;r[a]=r[a]==="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 UM(){return{flow:{null:{name:"table",tokenize:HM,resolveAll:zM}}}}function HM(e,t,n){const r=this;let i=0,a=0,s;return o;function o(w){let Y=r.events.length-1;for(;Y>-1;){const Z=r.events[Y][1].type;if(Z==="lineEnding"||Z==="linePrefix")Y--;else break}const H=Y>-1?r.events[Y][1].type:null,re=H==="tableHead"||H==="tableRow"?A:l;return re===A&&r.parser.lazy[r.now().line]?n(w):re(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(s=!0,a+=1),c(w)}function c(w){return w===null?n(w):ae(w)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):ge(w)?be(e,c,"whitespace")(w):(a+=1,s&&(s=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(w)))}function d(w){return w===null||w===124||Ce(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?h:d)}function h(w){return w===92||w===124?(e.consume(w),d):d(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,ge(w)?be(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):m(w))}function m(w){return w===45||w===58?x(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),b):O(w)}function b(w){return ge(w)?be(e,x,"whitespace")(w):x(w)}function x(w){return w===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),g):w===45?(a+=1,g(w)):w===null||ae(w)?C(w):O(w)}function g(w){return w===45?(e.enter("tableDelimiterFiller"),E(w)):O(w)}function E(w){return w===45?(e.consume(w),E):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(w))}function y(w){return ge(w)?be(e,C,"whitespace")(w):C(w)}function C(w){return w===124?m(w):w===null||ae(w)?!s||i!==a?O(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):O(w)}function O(w){return n(w)}function A(w){return e.enter("tableRow"),D(w)}function D(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),D):w===null||ae(w)?(e.exit("tableRow"),t(w)):ge(w)?be(e,D,"whitespace")(w):(e.enter("data"),L(w))}function L(w){return w===null||w===124||Ce(w)?(e.exit("data"),D(w)):(e.consume(w),w===92?U:L)}function U(w){return w===92||w===124?(e.consume(w),L):L(w)}}function zM(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,d;const h=new PM;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(o=!1,l!==0&&(Lg(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=Oo(h,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=Oo(h,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(o=!0,l=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=n,a[1]!==0?(s[0]=s[1],d=Oo(h,t,a,i,n,d)):s[1]!==0&&(d=Oo(h,t,s,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Lg(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=FM(t.events,n))}return e}function Oo(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Si(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Si(t.events,n[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=Si(t.events,n[2]),c=Si(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Si(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Lg(e,t,n,r,i){const a=[],s=Si(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Si(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const VM={name:"tasklistCheck",tokenize:$M};function jM(){return{text:{91:VM}}}function $M(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return ae(l)?t(l):ge(l)?e.check({tokenize:GM},t,n)(l):n(l)}}function GM(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function WM(e){return IT([EM(),kM(),MM(e),UM(),jM()])}const YM={};function KM(e){const t=this,n=e||YM,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(WM(n)),a.push(hM()),s.push(pM(n))}const Dg=function(e,t,n){const r=eo(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},fi=function(e){if(e==null)return XM;if(typeof e=="string")return QM(e);if(typeof e=="object")return qM(e);if(typeof e=="function")return ap(e);throw new Error("Expected function, string, or array as `test`")};function qM(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fi(e[n]);return ap(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function QM(e){return ap(t);function t(n){return n.tagName===e}}function ap(e){return t;function t(n,r,i){return!!(ZM(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function XM(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function ZM(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Mg=/\n/g,Pg=/[\t ]+/g,df=fi("br"),Bg=fi(sP),JM=fi("p"),Fg=fi("tr"),eP=fi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",aP,oP]),x_=fi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function tP(e,t){const n=t||{},r="children"in e?e.children:[],i=x_(e),a=C_(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...v_(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...S_(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?df(r[o+1]):i}));const l=[];let u;for(o=-1;++o<s.length;){const c=s[o];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&l.push(`
`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function S_(e,t,n){return e.type==="element"?nP(e,t,n):e.type==="text"?n.whitespace==="normal"?v_(e,n):rP(e):[]}function nP(e,t,n){const r=C_(e,n),i=e.children||[];let a=-1,s=[];if(eP(e))return s;let o,l;for(df(e)||Fg(e)&&Dg(t,e,Fg)?l=`
`:JM(e)?(o=2,l=2):x_(e)&&(o=1,l=1);++a<i.length;)s=s.concat(S_(i[a],e,{whitespace:r,breakBefore:a?void 0:o,breakAfter:a<i.length-1?df(i[a+1]):l}));return Bg(e)&&Dg(t,e,Bg)&&s.push("	"),o&&s.unshift(o),l&&s.push(l),s}function v_(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Mg.lastIndex=a;const l=Mg.exec(n),u=l&&"index"in l?l.index:n.length;r.push(iP(n.slice(a,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,u===n.length?t.breakAfter:!0)),a=u+1}let s=-1,o;for(;++s<r.length;)r[s].charCodeAt(r[s].length-1)===8203||s<r.length-1&&r[s+1].charCodeAt(0)===8203?(i.push(r[s]),o=void 0):r[s]?(typeof o=="number"&&i.push(o),i.push(r[s]),o=0):(s===0||s===r.length-1)&&i.push(0);return i}function rP(e){return[String(e.value)]}function iP(e,t,n){const r=[];let i=0,a;for(;i<e.length;){Pg.lastIndex=i;const s=Pg.exec(e);a=s?s.index:e.length,!i&&!a&&s&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function C_(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function aP(e){return!!(e.properties||{}).hidden}function sP(e){return e.tagName==="td"||e.tagName==="th"}function oP(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function lP(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],g=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},O={className:"function.dispatch",relevance:0,keywords:{_hint:g},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[O,d,o,n,e.C_BLOCK_COMMENT_MODE,c,u],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:A.concat([{begin:/\(/,end:/\)/,keywords:C,contains:A.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,o,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,L,O,A,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function uP(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=lP(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function cP(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},c={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],x=["true","false"],g={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:x,built_in:[...E,...y,"set","shopt",...C,...O]},contains:[p,e.SHEBANG(),m,d,a,s,g,o,l,u,c,n]}}function dP(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",x={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},g=[d,o,n,e.C_BLOCK_COMMENT_MODE,c,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:g.concat([{begin:/\(/,end:/\)/,keywords:x,contains:g.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,o,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(E,y,g,[d,{begin:e.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:u,keywords:x}}}function fP(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],g=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:b,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},O={className:"function.dispatch",relevance:0,keywords:{_hint:g},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[O,d,o,n,e.C_BLOCK_COMMENT_MODE,c,u],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:A.concat([{begin:/\(/,end:/\)/,keywords:C,contains:A.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+s+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,o,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,L,O,A,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function hP(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(a),built_in:t,literal:r},o=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(c,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:s},p=e.inherit(h,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},x=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});h.contains=[b,m,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[x,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[u,b,m,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},o]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},o,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[g,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}const pP=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),mP=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],gP=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],EP=[...mP,...gP],bP=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),yP=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),TP=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_P=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function xP(e){const t=e.regex,n=pP(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",o=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+yP.join("|")+")"},{begin:":(:)?("+TP.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_P.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:bP.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+EP.join("|")+")\\b"}]}}function SP(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function vP(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function CP(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function AP(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},o={begin:/\[/,end:/\]/,contains:[r,a,i,s,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,c=/'[^']*'/,d=t.either(l,u,c),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,o,a,i,s,n]}}]}}var vi="[0-9](_*[0-9])*",Ro=`\\.(${vi})`,Lo="[0-9a-fA-F](_*[0-9a-fA-F])*",Ug={className:"number",variants:[{begin:`(\\b(${vi})((${Ro})|\\.)?|(${Ro}))[eE][+-]?(${vi})[fFdD]?\\b`},{begin:`\\b(${vi})((${Ro})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ro})[fFdD]?\\b`},{begin:`\\b(${vi})[fFdD]\\b`},{begin:`\\b0[xX]((${Lo})\\.?|(${Lo})?\\.(${Lo}))[pP][+-]?(${vi})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Lo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function A_(e,t,n){return n===-1?"":e.replace(t,r=>A_(e,t,n-1))}function kP(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+A_("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Ug,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Ug,u]}}const Hg="[A-Za-z$_][0-9A-Za-z$_]*",NP=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],wP=["true","false","null","undefined","NaN","Infinity"],k_=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],N_=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],w_=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],IP=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],OP=[].concat(w_,k_,N_);function RP(e){const t=e.regex,n=(M,{after:z})=>{const _="</"+M[0].slice(1);return M.input.indexOf(_,z)!==-1},r=Hg,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,z)=>{const _=M[0].length+M.index,W=M.input[_];if(W==="<"||W===","){z.ignoreMatch();return}W===">"&&(n(M,{after:_})||z.ignoreMatch());let ie;const N=M.input.substring(_);if(ie=N.match(/^\s*=/)){z.ignoreMatch();return}if((ie=N.match(/^\s+extends\s+/))&&ie.index===0){z.ignoreMatch();return}}},o={$pattern:Hg,keyword:NP,literal:wP,built_in:OP,"variable.language":IP},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,x,{match:/\$\d+/},d];h.contains=y.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(y)});const C=[].concat(E,h.contains),O=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(C)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O},D={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...k_,...N_]}},U={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(M){return t.concat("(?!",M.join("|"),")")}const re={match:t.concat(/\b/,H([...w_,"super","import"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),U,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,x,E,{match:/\$\d+/},d,L,{scope:"attr",match:r+t.lookahead(":"),relevance:0},$,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},re,Y,D,J,{match:/\$[(.]/}]}}function LP(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Ci="[0-9](_*[0-9])*",Do=`\\.(${Ci})`,Mo="[0-9a-fA-F](_*[0-9a-fA-F])*",DP={className:"number",variants:[{begin:`(\\b(${Ci})((${Do})|\\.)?|(${Do}))[eE][+-]?(${Ci})[fFdD]?\\b`},{begin:`\\b(${Ci})((${Do})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Do})[fFdD]?\\b`},{begin:`\\b(${Ci})[fFdD]\\b`},{begin:`\\b0[xX]((${Mo})\\.?|(${Mo})?\\.(${Mo}))[pP][+-]?(${Ci})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Mo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function MP(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(s);const o={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},u=DP,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=d;return h.variants[1].contains=[d],d.variants[1].contains=[h],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,n,r,o,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,o,l,s,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},o,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},u]}}const PP=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),BP=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],FP=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],UP=[...BP,...FP],HP=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),I_=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),O_=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),zP=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),VP=I_.concat(O_).sort().reverse();function jP(e){const t=PP(e),n=VP,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",s=[],o=[],l=function(y){return{className:"string",begin:"~?"+y+".*?"+y}},u=function(y,C,O){return{className:y,begin:C,relevance:O}},c={$pattern:/[a-z-]+/,keyword:r,attribute:HP.join(" ")},d={begin:"\\(",end:"\\)",contains:o,keywords:c,relevance:0};o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const h=o.concat({begin:/\{/,end:/\}/,contains:s}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},m={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+zP.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:o,relevance:0}},x={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:h}},g={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+UP.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",a,0),u("selector-id","#"+a),u("selector-class","\\."+a,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+I_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+O_.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:h},{begin:"!important"},t.FUNCTION_DISPATCH]},E={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[g]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,x,E,m,g,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function $P(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function GP(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,s]}}function WP(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},o=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,o,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(u,{contains:[]}),h=e.inherit(c,{contains:[]});u.contains.push(h),c.contains.push(d);let p=[n,l];return[u,c,d,h].forEach(g=>{g.contains=g.contains.concat(p)}),p=p.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,a,u,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function YP(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,o={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function KP(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},o={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[o]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[e.BACKSLASH_ESCAPE,a,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,x,g="\\1")=>{const E=g==="\\1"?g:t.concat(g,x);return t.concat(t.concat("(?:",b,")"),x,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,g,r)},p=(b,x,g)=>t.concat(t.concat("(?:",b,")"),x,/(?:\\.|[^\\\/])*?/,g,r),m=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...d,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=m,s.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:m}}function qP(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(Z,J)=>{J.data._beginMatch=Z[1]||Z[2]},"on:end":(Z,J)=>{J.data._beginMatch!==Z[1]&&J.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[ 	
]`,m={scope:"string",variants:[c,u,d,h]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},x=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:g,literal:(Z=>{const J=[];return Z.forEach(P=>{J.push(P),P.toLowerCase()===P?J.push(P.toUpperCase()):J.push(P.toLowerCase())}),J})(x),built_in:E},O=Z=>Z.map(J=>J.replace(/\|\d+$/,"")),A={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",O(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},D=t.concat(r,"\\b(?!\\()"),L={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),D],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),D],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},U={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},w={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[U,s,L,e.C_BLOCK_COMMENT_MODE,m,b,A]},Y={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",O(g).join("\\b|"),"|",O(E).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[w]};w.contains.push(Y);const H=[U,L,e.C_BLOCK_COMMENT_MODE,m,b,A],re={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:x,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:x,keyword:["new","array"]},contains:["self",...H]},...H,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:C,contains:[re,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,Y,L,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},A,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",re,s,L,e.C_BLOCK_COMMENT_MODE,m,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},m,b]}}function QP(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function XP(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function ZP(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,m=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${m})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${h})[jJ](?=${m})`}]},x={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",l,b,d,e.HASH_COMMENT_MODE]}]};return u.contains=[d,b,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[l,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,x,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,g,d]}]}}function JP(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function e6(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function t6(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},h="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},A=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=A,b.contains=A;const w=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:A}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(w).concat(u).concat(A)}}function n6(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",o=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:c,keyword:o,literal:l,built_in:u},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:c}},{className:"punctuation",begin:"->"},a]}}const r6=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i6=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a6=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s6=[...i6,...a6],o6=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l6=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),u6=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),c6=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function d6(e){const t=r6(e),n=u6,r=l6,i="@[a-z-]+",a="and or not only",o={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s6.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},o,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+c6.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,o,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:o6.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},o,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function f6(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function h6(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,m=[...u,...l].filter(O=>!c.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},x={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},g={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function E(O){return t.concat(/\b/,t.either(...O.map(A=>A.replace(/\s+/,"\\s+"))),/\b/)}const y={scope:"keyword",match:E(h),relevance:0};function C(O,{exceptions:A,when:D}={}){const L=D;return A=A||[],O.map(U=>U.match(/\|\d+$/)||A.includes(U)?U:L(U)?`${U}|0`:U)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(m,{when:O=>O.length<3}),literal:a,type:o,built_in:d},contains:[{scope:"type",match:E(s)},y,g,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,x]}}function R_(e){return e?typeof e=="string"?e:e.source:null}function za(e){return ve("(?=",e,")")}function ve(...e){return e.map(n=>R_(n)).join("")}function p6(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function yt(...e){return"("+(p6(e).capture?"":"?:")+e.map(r=>R_(r)).join("|")+")"}const sp=e=>ve(/\b/,e,/\w$/.test(e)?/\b/:/\B/),m6=["Protocol","Type"].map(sp),zg=["init","self"].map(sp),g6=["Any","Self"],Bc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Vg=["false","nil","true"],E6=["assignment","associativity","higherThan","left","lowerThan","none","right"],b6=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],jg=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],L_=yt(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),D_=yt(L_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Fc=ve(L_,D_,"*"),M_=yt(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),jl=yt(M_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),En=ve(M_,jl,"*"),Po=ve(/[A-Z]/,jl,"*"),y6=["attached","autoclosure",ve(/convention\(/,yt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ve(/objc\(/,En,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],T6=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function _6(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,yt(...m6,...zg)],className:{2:"keyword"}},a={match:ve(/\./,yt(...Bc)),relevance:0},s=Bc.filter(Te=>typeof Te=="string").concat(["_|0"]),o=Bc.filter(Te=>typeof Te!="string").concat(g6).map(sp),l={variants:[{className:"keyword",match:yt(...o,...zg)}]},u={$pattern:yt(/\b\w+/,/#\w+/),keyword:s.concat(b6),literal:Vg},c=[i,a,l],d={match:ve(/\./,yt(...jg)),relevance:0},h={className:"built_in",match:ve(/\b/,yt(...jg),/(?=\()/)},p=[d,h],m={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:Fc},{match:`\\.(\\.|${D_})+`}]},x=[m,b],g="([0-9]_*)+",E="([0-9a-fA-F]_*)+",y={className:"number",relevance:0,variants:[{match:`\\b(${g})(\\.(${g}))?([eE][+-]?(${g}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${g}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(Te="")=>({className:"subst",variants:[{match:ve(/\\/,Te,/[0\\tnr"']/)},{match:ve(/\\/,Te,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Te="")=>({className:"subst",match:ve(/\\/,Te,/[\t ]*(?:[\r\n]|\r\n)/)}),A=(Te="")=>({className:"subst",label:"interpol",begin:ve(/\\/,Te,/\(/),end:/\)/}),D=(Te="")=>({begin:ve(Te,/"""/),end:ve(/"""/,Te),contains:[C(Te),O(Te),A(Te)]}),L=(Te="")=>({begin:ve(Te,/"/),end:ve(/"/,Te),contains:[C(Te),A(Te)]}),U={className:"string",variants:[D(),D("#"),D("##"),D("###"),L(),L("#"),L("##"),L("###")]},w=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],Y={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:w},H=Te=>{const an=ve(Te,/\//),se=ve(/\//,Te);return{begin:an,end:se,contains:[...w,{scope:"comment",begin:`#(?!.*${se})`,end:/$/}]}},re={scope:"regexp",variants:[H("###"),H("##"),H("#"),Y]},Z={match:ve(/`/,En,/`/)},J={className:"variable",match:/\$\d+/},P={className:"variable",match:`\\$${jl}+`},$=[Z,J,P],M={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:T6,contains:[...x,y,U]}]}},z={scope:"keyword",match:ve(/@/,yt(...y6),za(yt(/\(/,/\s+/)))},_={scope:"meta",match:ve(/@/,En)},W=[M,z,_],ie={match:za(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ve(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,jl,"+")},{className:"type",match:Po,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ve(/\s+&\s+/,za(Po)),relevance:0}]},N={begin:/</,end:/>/,keywords:u,contains:[...r,...c,...W,m,ie]};ie.contains.push(N);const he={match:ve(En,/\s*:/),keywords:"_|0",relevance:0},xe={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",he,...r,re,...c,...p,...x,y,U,...$,...W,ie]},pe={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ie]},Ze={begin:yt(za(ve(En,/\s*:/)),za(ve(En,/\s+/,En,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:En}]},st={begin:/\(/,end:/\)/,keywords:u,contains:[Ze,...r,...c,...x,y,U,...W,ie,xe],endsParent:!0,illegal:/["']/},Ct={match:[/(func|macro)/,/\s+/,yt(Z.match,En,Fc)],className:{1:"keyword",3:"title.function"},contains:[pe,st,t],illegal:[/\[/,/%/]},gt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[pe,st,t],illegal:/\[|%/},ot={match:[/operator/,/\s+/,Fc],className:{1:"keyword",3:"title"}},gi={begin:[/precedencegroup/,/\s+/,Po],className:{1:"keyword",3:"title"},contains:[ie],keywords:[...E6,...Vg],end:/}/},Qn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ei={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Et={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,En,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[pe,...c,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:Po},...c],relevance:0}]};for(const Te of U.variants){const an=Te.contains.find(Dr=>Dr.label==="interpol");an.keywords=u;const se=[...c,...p,...x,y,U,...$];an.contains=[...se,{begin:/\(/,end:/\)/,contains:["self",...se]}]}return{name:"Swift",keywords:u,contains:[...r,Ct,gt,Qn,Ei,Et,ot,gi,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},re,...c,...p,...x,y,U,...$,...W,ie,xe]}}const $l="[A-Za-z$_][0-9A-Za-z$_]*",P_=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],B_=["true","false","null","undefined","NaN","Infinity"],F_=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],U_=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],H_=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],z_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],V_=[].concat(H_,F_,U_);function x6(e){const t=e.regex,n=(M,{after:z})=>{const _="</"+M[0].slice(1);return M.input.indexOf(_,z)!==-1},r=$l,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,z)=>{const _=M[0].length+M.index,W=M.input[_];if(W==="<"||W===","){z.ignoreMatch();return}W===">"&&(n(M,{after:_})||z.ignoreMatch());let ie;const N=M.input.substring(_);if(ie=N.match(/^\s*=/)){z.ignoreMatch();return}if((ie=N.match(/^\s+extends\s+/))&&ie.index===0){z.ignoreMatch();return}}},o={$pattern:$l,keyword:P_,literal:B_,built_in:V_,"variable.language":z_},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,x,{match:/\$\d+/},d];h.contains=y.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(y)});const C=[].concat(E,h.contains),O=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(C)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O},D={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...F_,...U_]}},U={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(M){return t.concat("(?!",M.join("|"),")")}const re={match:t.concat(/\b/,H([...H_,"super","import"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),U,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,x,E,{match:/\$\d+/},d,L,{scope:"attr",match:r+t.lookahead(":"),relevance:0},$,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},w,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},re,Y,D,J,{match:/\$[(.]/}]}}function S6(e){const t=e.regex,n=x6(e),r=$l,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:$l,keyword:P_.concat(l),literal:B_,built_in:V_.concat(i),"variable.language":z_},c={className:"meta",begin:"@"+r},d=(b,x,g)=>{const E=b.contains.findIndex(y=>y.label===x);if(E===-1)throw new Error("can not find mode to replace");b.contains.splice(E,1,g)};Object.assign(n.keywords,u),n.exports.PARAMS_CONTAINS.push(c);const h=n.contains.find(b=>b.scope==="attr"),p=Object.assign({},h,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,h,p]),n.contains=n.contains.concat([c,a,s,p]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",o);const m=n.contains.find(b=>b.label==="func.def");return m.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function v6(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,o=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(s,o),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,u,c,d,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}function C6(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},o={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,s,i,e.QUOTE_STRING_MODE,l,u,o]}}function A6(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(a,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,s,l,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function k6(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),h={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},m={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},x=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,b,a,s],g=[...x];return g.pop(),g.push(o),p.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}const N6={arduino:uP,bash:cP,c:dP,cpp:fP,csharp:hP,css:xP,diff:SP,go:vP,graphql:CP,ini:AP,java:kP,javascript:RP,json:LP,kotlin:MP,less:jP,lua:$P,makefile:GP,markdown:WP,objectivec:YP,perl:KP,php:qP,"php-template":QP,plaintext:XP,python:ZP,"python-repl":JP,r:e6,ruby:t6,rust:n6,scss:d6,shell:f6,sql:h6,swift:_6,typescript:S6,vbnet:v6,wasm:C6,xml:A6,yaml:k6};function j_(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&j_(n)}),e}class $g{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function $_(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function fr(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const w6="</span>",Gg=e=>!!e.scope,I6=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class O6{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=$_(t)}openNode(t){if(!Gg(t))return;const n=I6(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Gg(t)&&(this.buffer+=w6)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Wg=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class op{constructor(){this.rootNode=Wg(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Wg({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{op._collapse(n)}))}}class R6 extends op{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new O6(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Hs(e){return e?typeof e=="string"?e:e.source:null}function G_(e){return hi("(?=",e,")")}function L6(e){return hi("(?:",e,")*")}function D6(e){return hi("(?:",e,")?")}function hi(...e){return e.map(n=>Hs(n)).join("")}function M6(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function lp(...e){return"("+(M6(e).capture?"":"?:")+e.map(r=>Hs(r)).join("|")+")"}function W_(e){return new RegExp(e.toString()+"|").exec("").length-1}function P6(e,t){const n=e&&e.exec(t);return n&&n.index===0}const B6=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function up(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let a=Hs(r),s="";for(;a.length>0;){const o=B6.exec(a);if(!o){s+=a;break}s+=a.substring(0,o.index),a=a.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?s+="\\"+String(Number(o[1])+i):(s+=o[0],o[0]==="("&&n++)}return s}).map(r=>`(${r})`).join(t)}const F6=/\b\B/,Y_="[a-zA-Z]\\w*",cp="[a-zA-Z_]\\w*",K_="\\b\\d+(\\.\\d+)?",q_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Q_="\\b(0b[01]+)",U6="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",H6=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=hi(t,/.*\b/,e.binary,/\b.*/)),fr({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},zs={begin:"\\\\[\\s\\S]",relevance:0},z6={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[zs]},V6={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[zs]},j6={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Ou=function(e,t,n={}){const r=fr({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=lp("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:hi(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},$6=Ou("//","$"),G6=Ou("/\\*","\\*/"),W6=Ou("#","$"),Y6={scope:"number",begin:K_,relevance:0},K6={scope:"number",begin:q_,relevance:0},q6={scope:"number",begin:Q_,relevance:0},Q6={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[zs,{begin:/\[/,end:/\]/,relevance:0,contains:[zs]}]},X6={scope:"title",begin:Y_,relevance:0},Z6={scope:"title",begin:cp,relevance:0},J6={begin:"\\.\\s*"+cp,relevance:0},e4=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var Bo=Object.freeze({__proto__:null,APOS_STRING_MODE:z6,BACKSLASH_ESCAPE:zs,BINARY_NUMBER_MODE:q6,BINARY_NUMBER_RE:Q_,COMMENT:Ou,C_BLOCK_COMMENT_MODE:G6,C_LINE_COMMENT_MODE:$6,C_NUMBER_MODE:K6,C_NUMBER_RE:q_,END_SAME_AS_BEGIN:e4,HASH_COMMENT_MODE:W6,IDENT_RE:Y_,MATCH_NOTHING_RE:F6,METHOD_GUARD:J6,NUMBER_MODE:Y6,NUMBER_RE:K_,PHRASAL_WORDS_MODE:j6,QUOTE_STRING_MODE:V6,REGEXP_MODE:Q6,RE_STARTERS_RE:U6,SHEBANG:H6,TITLE_MODE:X6,UNDERSCORE_IDENT_RE:cp,UNDERSCORE_TITLE_MODE:Z6});function t4(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function n4(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function r4(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=t4,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function i4(e,t){Array.isArray(e.illegal)&&(e.illegal=lp(...e.illegal))}function a4(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function s4(e,t){e.relevance===void 0&&(e.relevance=1)}const o4=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=hi(n.beforeMatch,G_(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},l4=["of","and","for","in","not","or","if","then","parent","list","value"],u4="keyword";function X_(e,t,n=u4){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(a){Object.assign(r,X_(e[a],t,a))}),r;function i(a,s){t&&(s=s.map(o=>o.toLowerCase())),s.forEach(function(o){const l=o.split("|");r[l[0]]=[a,c4(l[0],l[1])]})}}function c4(e,t){return t?Number(t):d4(e)?0:1}function d4(e){return l4.includes(e.toLowerCase())}const Yg={},Zr=e=>{console.error(e)},Kg=(e,...t)=>{console.log(`WARN: ${e}`,...t)},xi=(e,t)=>{Yg[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Yg[`${e}/${t}`]=!0)},Gl=new Error;function Z_(e,t,{key:n}){let r=0;const i=e[n],a={},s={};for(let o=1;o<=t.length;o++)s[o+r]=i[o],a[o+r]=!0,r+=W_(t[o-1]);e[n]=s,e[n]._emit=a,e[n]._multi=!0}function f4(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Zr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Gl;if(typeof e.beginScope!="object"||e.beginScope===null)throw Zr("beginScope must be object"),Gl;Z_(e,e.begin,{key:"beginScope"}),e.begin=up(e.begin,{joinWith:""})}}function h4(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Zr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Gl;if(typeof e.endScope!="object"||e.endScope===null)throw Zr("endScope must be object"),Gl;Z_(e,e.end,{key:"endScope"}),e.end=up(e.end,{joinWith:""})}}function p4(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function m4(e){p4(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),f4(e),h4(e)}function g4(e){function t(s,o){return new RegExp(Hs(s),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(o?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=W_(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=t(up(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const u=l.findIndex((d,h)=>h>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new n;return this.rules.slice(o).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(o);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(o)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(s){const o=new r;return s.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&o.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&o.addRule(s.illegal,{type:"illegal"}),o}function a(s,o){const l=s;if(s.isCompiled)return l;[n4,a4,m4,o4].forEach(c=>c(s,o)),e.compilerExtensions.forEach(c=>c(s,o)),s.__beforeBegin=null,[r4,i4,s4].forEach(c=>c(s,o)),s.isCompiled=!0;let u=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),u=s.keywords.$pattern,delete s.keywords.$pattern),u=u||/\w+/,s.keywords&&(s.keywords=X_(s.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),o&&(s.begin||(s.begin=/\B|\b/),l.beginRe=t(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=t(l.end)),l.terminatorEnd=Hs(l.end)||"",s.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),s.illegal&&(l.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(c){return E4(c==="self"?s:c)})),s.contains.forEach(function(c){a(c,l)}),s.starts&&a(s.starts,o),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=fr(e.classNameAliases||{}),a(e)}function J_(e){return e?e.endsWithParent||J_(e.starts):!1}function E4(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return fr(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:J_(e)?fr(e,{starts:e.starts?fr(e.starts):null}):Object.isFrozen(e)?fr(e):e}var b4="11.11.1";class y4 extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Uc=$_,qg=fr,Qg=Symbol("nomatch"),T4=7,ex=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:R6};function l(P){return o.noHighlightRe.test(P)}function u(P){let $=P.className+" ";$+=P.parentNode?P.parentNode.className:"";const M=o.languageDetectRe.exec($);if(M){const z=L(M[1]);return z||(Kg(a.replace("{}",M[1])),Kg("Falling back to no-highlight mode for this block.",P)),z?M[1]:"no-highlight"}return $.split(/\s+/).find(z=>l(z)||L(z))}function c(P,$,M){let z="",_="";typeof $=="object"?(z=P,M=$.ignoreIllegals,_=$.language):(xi("10.7.0","highlight(lang, code, ...args) has been deprecated."),xi("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),_=P,z=$),M===void 0&&(M=!0);const W={code:z,language:_};Z("before:highlight",W);const ie=W.result?W.result:d(W.language,W.code,M);return ie.code=W.code,Z("after:highlight",ie),ie}function d(P,$,M,z){const _=Object.create(null);function W(I,B){return I.keywords[B]}function ie(){if(!se.keywords){$e.addText(Se);return}let I=0;se.keywordPatternRe.lastIndex=0;let B=se.keywordPatternRe.exec(Se),X="";for(;B;){X+=Se.substring(I,B.index);const te=Et.case_insensitive?B[0].toLowerCase():B[0],ue=W(se,te);if(ue){const[He,wn]=ue;if($e.addText(X),X="",_[te]=(_[te]||0)+1,_[te]<=T4&&(bi+=wn),He.startsWith("_"))X+=B[0];else{const sn=Et.classNameAliases[He]||He;xe(B[0],sn)}}else X+=B[0];I=se.keywordPatternRe.lastIndex,B=se.keywordPatternRe.exec(Se)}X+=Se.substring(I),$e.addText(X)}function N(){if(Se==="")return;let I=null;if(typeof se.subLanguage=="string"){if(!t[se.subLanguage]){$e.addText(Se);return}I=d(se.subLanguage,Se,!0,Dr[se.subLanguage]),Dr[se.subLanguage]=I._top}else I=p(Se,se.subLanguage.length?se.subLanguage:null);se.relevance>0&&(bi+=I.relevance),$e.__addSublanguage(I._emitter,I.language)}function he(){se.subLanguage!=null?N():ie(),Se=""}function xe(I,B){I!==""&&($e.startScope(B),$e.addText(I),$e.endScope())}function pe(I,B){let X=1;const te=B.length-1;for(;X<=te;){if(!I._emit[X]){X++;continue}const ue=Et.classNameAliases[I[X]]||I[X],He=B[X];ue?xe(He,ue):(Se=He,ie(),Se=""),X++}}function Ze(I,B){return I.scope&&typeof I.scope=="string"&&$e.openNode(Et.classNameAliases[I.scope]||I.scope),I.beginScope&&(I.beginScope._wrap?(xe(Se,Et.classNameAliases[I.beginScope._wrap]||I.beginScope._wrap),Se=""):I.beginScope._multi&&(pe(I.beginScope,B),Se="")),se=Object.create(I,{parent:{value:se}}),se}function st(I,B,X){let te=P6(I.endRe,X);if(te){if(I["on:end"]){const ue=new $g(I);I["on:end"](B,ue),ue.isMatchIgnored&&(te=!1)}if(te){for(;I.endsParent&&I.parent;)I=I.parent;return I}}if(I.endsWithParent)return st(I.parent,B,X)}function Ct(I){return se.matcher.regexIndex===0?(Se+=I[0],1):(va=!0,0)}function gt(I){const B=I[0],X=I.rule,te=new $g(X),ue=[X.__beforeBegin,X["on:begin"]];for(const He of ue)if(He&&(He(I,te),te.isMatchIgnored))return Ct(B);return X.skip?Se+=B:(X.excludeBegin&&(Se+=B),he(),!X.returnBegin&&!X.excludeBegin&&(Se=B)),Ze(X,I),X.returnBegin?0:B.length}function ot(I){const B=I[0],X=$.substring(I.index),te=st(se,I,X);if(!te)return Qg;const ue=se;se.endScope&&se.endScope._wrap?(he(),xe(B,se.endScope._wrap)):se.endScope&&se.endScope._multi?(he(),pe(se.endScope,I)):ue.skip?Se+=B:(ue.returnEnd||ue.excludeEnd||(Se+=B),he(),ue.excludeEnd&&(Se=B));do se.scope&&$e.closeNode(),!se.skip&&!se.subLanguage&&(bi+=se.relevance),se=se.parent;while(se!==te.parent);return te.starts&&Ze(te.starts,I),ue.returnEnd?0:B.length}function gi(){const I=[];for(let B=se;B!==Et;B=B.parent)B.scope&&I.unshift(B.scope);I.forEach(B=>$e.openNode(B))}let Qn={};function Ei(I,B){const X=B&&B[0];if(Se+=I,X==null)return he(),0;if(Qn.type==="begin"&&B.type==="end"&&Qn.index===B.index&&X===""){if(Se+=$.slice(B.index,B.index+1),!i){const te=new Error(`0 width match regex (${P})`);throw te.languageName=P,te.badRule=Qn.rule,te}return 1}if(Qn=B,B.type==="begin")return gt(B);if(B.type==="illegal"&&!M){const te=new Error('Illegal lexeme "'+X+'" for mode "'+(se.scope||"<unnamed>")+'"');throw te.mode=se,te}else if(B.type==="end"){const te=ot(B);if(te!==Qg)return te}if(B.type==="illegal"&&X==="")return Se+=`
`,1;if(Sa>1e5&&Sa>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Se+=X,X.length}const Et=L(P);if(!Et)throw Zr(a.replace("{}",P)),new Error('Unknown language: "'+P+'"');const Te=g4(Et);let an="",se=z||Te;const Dr={},$e=new o.__emitter(o);gi();let Se="",bi=0,Nn=0,Sa=0,va=!1;try{if(Et.__emitTokens)Et.__emitTokens($,$e);else{for(se.matcher.considerAll();;){Sa++,va?va=!1:se.matcher.considerAll(),se.matcher.lastIndex=Nn;const I=se.matcher.exec($);if(!I)break;const B=$.substring(Nn,I.index),X=Ei(B,I);Nn=I.index+X}Ei($.substring(Nn))}return $e.finalize(),an=$e.toHTML(),{language:P,value:an,relevance:bi,illegal:!1,_emitter:$e,_top:se}}catch(I){if(I.message&&I.message.includes("Illegal"))return{language:P,value:Uc($),illegal:!0,relevance:0,_illegalBy:{message:I.message,index:Nn,context:$.slice(Nn-100,Nn+100),mode:I.mode,resultSoFar:an},_emitter:$e};if(i)return{language:P,value:Uc($),illegal:!1,relevance:0,errorRaised:I,_emitter:$e,_top:se};throw I}}function h(P){const $={value:Uc(P),illegal:!1,relevance:0,_top:s,_emitter:new o.__emitter(o)};return $._emitter.addText(P),$}function p(P,$){$=$||o.languages||Object.keys(t);const M=h(P),z=$.filter(L).filter(w).map(he=>d(he,P,!1));z.unshift(M);const _=z.sort((he,xe)=>{if(he.relevance!==xe.relevance)return xe.relevance-he.relevance;if(he.language&&xe.language){if(L(he.language).supersetOf===xe.language)return 1;if(L(xe.language).supersetOf===he.language)return-1}return 0}),[W,ie]=_,N=W;return N.secondBest=ie,N}function m(P,$,M){const z=$&&n[$]||M;P.classList.add("hljs"),P.classList.add(`language-${z}`)}function b(P){let $=null;const M=u(P);if(l(M))return;if(Z("before:highlightElement",{el:P,language:M}),P.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",P);return}if(P.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(P)),o.throwUnescapedHTML))throw new y4("One of your code blocks includes unescaped HTML.",P.innerHTML);$=P;const z=$.textContent,_=M?c(z,{language:M,ignoreIllegals:!0}):p(z);P.innerHTML=_.value,P.dataset.highlighted="yes",m(P,M,_.language),P.result={language:_.language,re:_.relevance,relevance:_.relevance},_.secondBest&&(P.secondBest={language:_.secondBest.language,relevance:_.secondBest.relevance}),Z("after:highlightElement",{el:P,result:_,text:z})}function x(P){o=qg(o,P)}const g=()=>{C(),xi("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function E(){C(),xi("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let y=!1;function C(){function P(){C()}if(document.readyState==="loading"){y||window.addEventListener("DOMContentLoaded",P,!1),y=!0;return}document.querySelectorAll(o.cssSelector).forEach(b)}function O(P,$){let M=null;try{M=$(e)}catch(z){if(Zr("Language definition for '{}' could not be registered.".replace("{}",P)),i)Zr(z);else throw z;M=s}M.name||(M.name=P),t[P]=M,M.rawDefinition=$.bind(null,e),M.aliases&&U(M.aliases,{languageName:P})}function A(P){delete t[P];for(const $ of Object.keys(n))n[$]===P&&delete n[$]}function D(){return Object.keys(t)}function L(P){return P=(P||"").toLowerCase(),t[P]||t[n[P]]}function U(P,{languageName:$}){typeof P=="string"&&(P=[P]),P.forEach(M=>{n[M.toLowerCase()]=$})}function w(P){const $=L(P);return $&&!$.disableAutodetect}function Y(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=$=>{P["before:highlightBlock"](Object.assign({block:$.el},$))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=$=>{P["after:highlightBlock"](Object.assign({block:$.el},$))})}function H(P){Y(P),r.push(P)}function re(P){const $=r.indexOf(P);$!==-1&&r.splice($,1)}function Z(P,$){const M=P;r.forEach(function(z){z[M]&&z[M]($)})}function J(P){return xi("10.7.0","highlightBlock will be removed entirely in v12.0"),xi("10.7.0","Please use highlightElement now."),b(P)}Object.assign(e,{highlight:c,highlightAuto:p,highlightAll:C,highlightElement:b,highlightBlock:J,configure:x,initHighlighting:g,initHighlightingOnLoad:E,registerLanguage:O,unregisterLanguage:A,listLanguages:D,getLanguage:L,registerAliases:U,autoDetection:w,inherit:qg,addPlugin:H,removePlugin:re}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=b4,e.regex={concat:hi,lookahead:G_,either:lp,optional:D6,anyNumberOfTimes:L6};for(const P in Bo)typeof Bo[P]=="object"&&j_(Bo[P]);return Object.assign(e,Bo),e},ua=ex({});ua.newInstance=()=>ex({});var _4=ua;ua.HighlightJS=ua;ua.default=ua;const x4=Xl(_4),Xg={},S4="hljs-";function v4(e){const t=x4.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:s,registered:o};function n(l,u,c){const d=c||Xg,h=typeof d.prefix=="string"?d.prefix:S4;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:C4,classPrefix:h});const p=t.highlight(u,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const m=p._emitter.root,b=m.data;return b.language=p.language,b.relevance=p.relevance,m}function r(l,u){const d=(u||Xg).subset||i();let h=-1,p=0,m;for(;++h<d.length;){const b=d[h];if(!t.getLanguage(b))continue;const x=n(b,l,u);x.data&&x.data.relevance!==void 0&&x.data.relevance>p&&(p=x.data.relevance,m=x)}return m||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(l,u){if(typeof l=="string")t.registerLanguage(l,u);else{let c;for(c in l)Object.hasOwn(l,c)&&t.registerLanguage(c,l[c])}}function s(l,u){if(typeof l=="string")t.registerAliases(typeof u=="string"?u:[...u],{languageName:l});else{let c;for(c in l)if(Object.hasOwn(l,c)){const d=l[c];t.registerAliases(typeof d=="string"?d:[...d],{languageName:c})}}}function o(l){return!!t.getLanguage(l)}}class C4{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(s,o){return o?s+"_".repeat(o):n.options.classPrefix+s}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const A4={};function k4(e){const t=e||A4,n=t.aliases,r=t.detect||!1,i=t.languages||N6,a=t.plainText,s=t.prefix,o=t.subset;let l="hljs";const u=v4(i);if(n&&u.registerAlias(n),s){const c=s.indexOf("-");l=c===-1?s:s.slice(0,c)}return function(c,d){to(c,"element",function(h,p,m){if(h.tagName!=="code"||!m||m.type!=="element"||m.tagName!=="pre")return;const b=N4(h);if(b===!1||!b&&!r||b&&a&&a.includes(b))return;Array.isArray(h.properties.className)||(h.properties.className=[]),h.properties.className.includes(l)||h.properties.className.unshift(l);const x=tP(h,{whitespace:"pre"});let g;try{g=b?u.highlight(b,x,{prefix:s}):u.highlightAuto(x,{prefix:s,subset:o})}catch(E){const y=E;if(b&&/Unknown language/.test(y.message)){d.message("Cannot highlight as `"+b+"`, it’s not registered",{ancestors:[m,h],cause:y,place:h.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw y}!b&&g.data&&g.data.language&&h.properties.className.push("language-"+g.data.language),g.children.length>0&&(h.children=g.children)})}}function N4(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}const Zg=/[#.]/g;function w4(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){Zg.lastIndex=i;const o=Zg.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function tx(e,t,n){const r=n?L4(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=w4(a,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,I4(s))o.unshift(s);else for(const[d,h]of Object.entries(s))O4(e,l.properties,d,h)}for(const u of o)ff(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function I4(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function O4(e,t,n,r){const i=jh(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=z0(r):i.commaSeparated?a=P0(r):i.commaOrSpaceSeparated?a=z0(P0(r).join(" ")):a=Jg(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?R4(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Jg(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function ff(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ff(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ff(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Jg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Bs(n)===Bs(t)))return!0}return n}function R4(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function L4(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const D4=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],M4=tx(vu,"div"),P4=tx(ga,"g",D4);function B4(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=e1(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=e1(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function e1(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Kr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},nx={}.hasOwnProperty,F4=Object.prototype;function U4(e,t){const n=t||{};return dp({file:n.file||void 0,location:!1,schema:n.space==="svg"?ga:vu,verbose:n.verbose||!1},e)}function dp(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},nl(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:rx(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=B4(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},nl(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},nl(e,r,n),n}default:return n=H4(e,t),n}}function rx(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=dp(e,t[n]);r.push(i)}return r}function H4(e,t){const n=e.schema;e.schema=t.namespaceURI===Kr.svg?ga:vu;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;nx.call(F4,l)||(i[l]=o.value)}const s=(e.schema.space==="svg"?P4:M4)(t.tagName,i,rx(e,t.childNodes));if(nl(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&Vi(l.startTag),c=l&&l.endTag&&Vi(l.endTag),d=dp(e,o.content);u&&c&&e.file&&(d.position={start:u.end,end:c.start}),s.content=d}return e.schema=n,s}function nl(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=z4(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function z4(e,t,n){const r=Vi(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)nx.call(n.attrs,s)&&(a[jh(e.schema,s).property]=Vi(n.attrs[s]));n.startTag;const o=Vi(n.startTag),l=n.endTag?Vi(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function Vi(e){const t=t1({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=t1({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function t1(e){return e.line&&e.column?e:void 0}class ro{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}ro.prototype.property={};ro.prototype.normal={};ro.prototype.space=null;function ix(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ro(n,r,t)}function hf(e){return e.toLowerCase()}class rn{constructor(t,n){this.property=t,this.attribute=n}}rn.prototype.space=null;rn.prototype.boolean=!1;rn.prototype.booleanish=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.number=!1;rn.prototype.commaSeparated=!1;rn.prototype.spaceSeparated=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.mustUseProperty=!1;rn.prototype.defined=!1;let V4=0;const ce=pi(),Ye=pi(),ax=pi(),Q=pi(),ke=pi(),Xi=pi(),Bt=pi();function pi(){return 2**++V4}const pf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ce,booleanish:Ye,commaOrSpaceSeparated:Bt,commaSeparated:Xi,number:Q,overloadedBoolean:ax,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),Hc=Object.keys(pf);class fp extends rn{constructor(t,n,r,i){let a=-1;if(super(t,n),n1(this,"space",i),typeof r=="number")for(;++a<Hc.length;){const s=Hc[a];n1(this,Hc[a],(r&pf[s])===pf[s])}}}fp.prototype.defined=!0;function n1(e,t,n){n&&(e[t]=n)}const j4={}.hasOwnProperty;function ba(e){const t={},n={};let r;for(r in e.properties)if(j4.call(e.properties,r)){const i=e.properties[r],a=new fp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hf(r)]=r,n[hf(a.attribute)]=r}return new ro(t,n,e.space)}const sx=ba({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ox=ba({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function lx(e,t){return t in e?e[t]:t}function ux(e,t){return lx(e,t.toLowerCase())}const cx=ba({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ux,properties:{xmlns:null,xmlnsXLink:null}}),dx=ba({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ye,ariaAutoComplete:null,ariaBusy:Ye,ariaChecked:Ye,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Ye,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Ye,ariaFlowTo:ke,ariaGrabbed:Ye,ariaHasPopup:null,ariaHidden:Ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:Q,ariaLive:null,ariaModal:Ye,ariaMultiLine:Ye,ariaMultiSelectable:Ye,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Ye,ariaReadOnly:Ye,ariaRelevant:null,ariaRequired:Ye,ariaRoleDescription:ke,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Ye,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null}}),$4=ba({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ux,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:ke,autoFocus:ce,autoPlay:ce,blocking:ke,capture:null,charSet:null,checked:ce,cite:null,className:ke,cols:Q,colSpan:null,content:null,contentEditable:Ye,controls:ce,controlsList:ke,coords:Q|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:ax,draggable:Ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:ke,height:Q,hidden:ce,high:Q,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:ke,itemRef:ke,itemScope:ce,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,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:ce,optimum:Q,pattern:null,ping:ke,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:ke,required:ce,reversed:ce,rows:Q,rowSpan:Q,sandbox:ke,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:Ye,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Ye,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:Q,security:null,unselectable:null}}),G4=ba({space:"svg",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"},transform:lx,properties:{about:Bt,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:ke,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Xi,g2:Xi,glyphName:Xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),W4=/^data[-\w.:]+$/i,r1=/-[a-z]/g,Y4=/[A-Z]/g;function K4(e,t){const n=hf(t);let r=t,i=rn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&W4.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(r1,Q4);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!r1.test(a)){let s=a.replace(Y4,q4);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=fp}return new i(r,t)}function q4(e){return"-"+e.toLowerCase()}function Q4(e){return e.charAt(1).toUpperCase()}const X4=ix([ox,sx,cx,dx,$4],"html"),fx=ix([ox,sx,cx,dx,G4],"svg"),Z4={},J4={}.hasOwnProperty,hx=n_("type",{handlers:{root:tB,element:sB,text:iB,comment:aB,doctype:rB}});function eB(e,t){const r=(t||Z4).space;return hx(e,r==="svg"?fx:X4)}function tB(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=hp(e.children,n,t),ya(e,n),n}function nB(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=hp(e.children,n,t),ya(e,n),n}function rB(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ya(e,t),t}function iB(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ya(e,t),t}function aB(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ya(e,t),t}function sB(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=fx);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&J4.call(e.properties,a)){const l=oB(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Kr[s],childNodes:[],parentNode:null};return o.childNodes=hp(e.children,o,r),ya(e,o),e.tagName==="template"&&e.content&&(o.content=nB(e.content,r)),o}function oB(e,t,n){const r=K4(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?mT(n):ST(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Kr[r.space]}return i}function hp(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=hx(e[r],n);a.parentNode=t,i.push(a)}return i}function ya(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lB=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],uB=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Le="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const At={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function px(e){return e>=55296&&e<=57343}function cB(e){return e>=56320&&e<=57343}function dB(e,t){return(e-55296)*1024+9216+t}function mx(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function gx(e){return e>=64976&&e<=65007||uB.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const fB=65536;class hB{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=fB,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(cB(n))return this.pos++,this._addGap(),dB(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,px(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){mx(t)?this._err(F.controlCharacterInInputStream):gx(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var me;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(me||(me={}));function Ex(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const pB=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),mB=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function gB(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=mB.get(e))!==null&&t!==void 0?t:e}var tt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(tt||(tt={}));const EB=32;var hr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(hr||(hr={}));function mf(e){return e>=tt.ZERO&&e<=tt.NINE}function bB(e){return e>=tt.UPPER_A&&e<=tt.UPPER_F||e>=tt.LOWER_A&&e<=tt.LOWER_F}function yB(e){return e>=tt.UPPER_A&&e<=tt.UPPER_Z||e>=tt.LOWER_A&&e<=tt.LOWER_Z||mf(e)}function TB(e){return e===tt.EQUALS||yB(e)}var Je;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Je||(Je={}));var Dn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Dn||(Dn={}));class _B{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Je.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Dn.Strict}startEntity(t){this.decodeMode=t,this.state=Je.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Je.EntityStart:return t.charCodeAt(n)===tt.NUM?(this.state=Je.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Je.NamedEntity,this.stateNamedEntity(t,n));case Je.NumericStart:return this.stateNumericStart(t,n);case Je.NumericDecimal:return this.stateNumericDecimal(t,n);case Je.NumericHex:return this.stateNumericHex(t,n);case Je.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|EB)===tt.LOWER_X?(this.state=Je.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Je.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(mf(i)||bB(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(mf(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===tt.SEMI)this.consumed+=1;else if(this.decodeMode===Dn.Strict)return 0;return this.emitCodePoint(gB(this.result),this.consumed),this.errors&&(t!==tt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&hr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=xB(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Dn.Attribute&&(a===0||TB(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&hr.VALUE_LENGTH)>>14,a!==0){if(s===tt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Dn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&hr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~hr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Je.NamedEntity:return this.result!==0&&(this.decodeMode!==Dn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Je.NumericDecimal:return this.emitNumericEntity(0,2);case Je.NumericHex:return this.emitNumericEntity(0,3);case Je.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Je.EntityStart:return 0}}}function xB(e,t,n,r){const i=(t&hr.BRANCH_LENGTH)>>7,a=t&hr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var j;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(j||(j={}));var Jr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Jr||(Jr={}));var Zt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Zt||(Zt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(f||(f={}));const SB=new Map([[R.A,f.A],[R.ADDRESS,f.ADDRESS],[R.ANNOTATION_XML,f.ANNOTATION_XML],[R.APPLET,f.APPLET],[R.AREA,f.AREA],[R.ARTICLE,f.ARTICLE],[R.ASIDE,f.ASIDE],[R.B,f.B],[R.BASE,f.BASE],[R.BASEFONT,f.BASEFONT],[R.BGSOUND,f.BGSOUND],[R.BIG,f.BIG],[R.BLOCKQUOTE,f.BLOCKQUOTE],[R.BODY,f.BODY],[R.BR,f.BR],[R.BUTTON,f.BUTTON],[R.CAPTION,f.CAPTION],[R.CENTER,f.CENTER],[R.CODE,f.CODE],[R.COL,f.COL],[R.COLGROUP,f.COLGROUP],[R.DD,f.DD],[R.DESC,f.DESC],[R.DETAILS,f.DETAILS],[R.DIALOG,f.DIALOG],[R.DIR,f.DIR],[R.DIV,f.DIV],[R.DL,f.DL],[R.DT,f.DT],[R.EM,f.EM],[R.EMBED,f.EMBED],[R.FIELDSET,f.FIELDSET],[R.FIGCAPTION,f.FIGCAPTION],[R.FIGURE,f.FIGURE],[R.FONT,f.FONT],[R.FOOTER,f.FOOTER],[R.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[R.FORM,f.FORM],[R.FRAME,f.FRAME],[R.FRAMESET,f.FRAMESET],[R.H1,f.H1],[R.H2,f.H2],[R.H3,f.H3],[R.H4,f.H4],[R.H5,f.H5],[R.H6,f.H6],[R.HEAD,f.HEAD],[R.HEADER,f.HEADER],[R.HGROUP,f.HGROUP],[R.HR,f.HR],[R.HTML,f.HTML],[R.I,f.I],[R.IMG,f.IMG],[R.IMAGE,f.IMAGE],[R.INPUT,f.INPUT],[R.IFRAME,f.IFRAME],[R.KEYGEN,f.KEYGEN],[R.LABEL,f.LABEL],[R.LI,f.LI],[R.LINK,f.LINK],[R.LISTING,f.LISTING],[R.MAIN,f.MAIN],[R.MALIGNMARK,f.MALIGNMARK],[R.MARQUEE,f.MARQUEE],[R.MATH,f.MATH],[R.MENU,f.MENU],[R.META,f.META],[R.MGLYPH,f.MGLYPH],[R.MI,f.MI],[R.MO,f.MO],[R.MN,f.MN],[R.MS,f.MS],[R.MTEXT,f.MTEXT],[R.NAV,f.NAV],[R.NOBR,f.NOBR],[R.NOFRAMES,f.NOFRAMES],[R.NOEMBED,f.NOEMBED],[R.NOSCRIPT,f.NOSCRIPT],[R.OBJECT,f.OBJECT],[R.OL,f.OL],[R.OPTGROUP,f.OPTGROUP],[R.OPTION,f.OPTION],[R.P,f.P],[R.PARAM,f.PARAM],[R.PLAINTEXT,f.PLAINTEXT],[R.PRE,f.PRE],[R.RB,f.RB],[R.RP,f.RP],[R.RT,f.RT],[R.RTC,f.RTC],[R.RUBY,f.RUBY],[R.S,f.S],[R.SCRIPT,f.SCRIPT],[R.SEARCH,f.SEARCH],[R.SECTION,f.SECTION],[R.SELECT,f.SELECT],[R.SOURCE,f.SOURCE],[R.SMALL,f.SMALL],[R.SPAN,f.SPAN],[R.STRIKE,f.STRIKE],[R.STRONG,f.STRONG],[R.STYLE,f.STYLE],[R.SUB,f.SUB],[R.SUMMARY,f.SUMMARY],[R.SUP,f.SUP],[R.TABLE,f.TABLE],[R.TBODY,f.TBODY],[R.TEMPLATE,f.TEMPLATE],[R.TEXTAREA,f.TEXTAREA],[R.TFOOT,f.TFOOT],[R.TD,f.TD],[R.TH,f.TH],[R.THEAD,f.THEAD],[R.TITLE,f.TITLE],[R.TR,f.TR],[R.TRACK,f.TRACK],[R.TT,f.TT],[R.U,f.U],[R.UL,f.UL],[R.SVG,f.SVG],[R.VAR,f.VAR],[R.WBR,f.WBR],[R.XMP,f.XMP]]);function Ta(e){var t;return(t=SB.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const G=f,vB={[j.HTML]:new Set([G.ADDRESS,G.APPLET,G.AREA,G.ARTICLE,G.ASIDE,G.BASE,G.BASEFONT,G.BGSOUND,G.BLOCKQUOTE,G.BODY,G.BR,G.BUTTON,G.CAPTION,G.CENTER,G.COL,G.COLGROUP,G.DD,G.DETAILS,G.DIR,G.DIV,G.DL,G.DT,G.EMBED,G.FIELDSET,G.FIGCAPTION,G.FIGURE,G.FOOTER,G.FORM,G.FRAME,G.FRAMESET,G.H1,G.H2,G.H3,G.H4,G.H5,G.H6,G.HEAD,G.HEADER,G.HGROUP,G.HR,G.HTML,G.IFRAME,G.IMG,G.INPUT,G.LI,G.LINK,G.LISTING,G.MAIN,G.MARQUEE,G.MENU,G.META,G.NAV,G.NOEMBED,G.NOFRAMES,G.NOSCRIPT,G.OBJECT,G.OL,G.P,G.PARAM,G.PLAINTEXT,G.PRE,G.SCRIPT,G.SECTION,G.SELECT,G.SOURCE,G.STYLE,G.SUMMARY,G.TABLE,G.TBODY,G.TD,G.TEMPLATE,G.TEXTAREA,G.TFOOT,G.TH,G.THEAD,G.TITLE,G.TR,G.TRACK,G.UL,G.WBR,G.XMP]),[j.MATHML]:new Set([G.MI,G.MO,G.MN,G.MS,G.MTEXT,G.ANNOTATION_XML]),[j.SVG]:new Set([G.TITLE,G.FOREIGN_OBJECT,G.DESC]),[j.XLINK]:new Set,[j.XML]:new Set,[j.XMLNS]:new Set},gf=new Set([G.H1,G.H2,G.H3,G.H4,G.H5,G.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var v;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(v||(v={}));const je={DATA:v.DATA,RCDATA:v.RCDATA,RAWTEXT:v.RAWTEXT,SCRIPT_DATA:v.SCRIPT_DATA,PLAINTEXT:v.PLAINTEXT,CDATA_SECTION:v.CDATA_SECTION};function CB(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function qa(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function AB(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function nr(e){return AB(e)||qa(e)}function i1(e){return nr(e)||CB(e)}function Fo(e){return e+32}function bx(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function a1(e){return bx(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function kB(e){return e===T.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:px(e)?F.surrogateCharacterReference:gx(e)?F.noncharacterCharacterReference:mx(e)||e===T.CARRIAGE_RETURN?F.controlCharacterReference:null}class NB{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=v.DATA,this.returnState=v.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new hB(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _B(pB,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=kB(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:me.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:me.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:me.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:me.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Ex(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ta(t.tagName),t.type===me.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case me.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case me.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case me.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:me.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=bx(t)?me.WHITESPACE_CHARACTER:t===T.NULL?me.NULL_CHARACTER:me.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(me.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=v.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Dn.Attribute:Dn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===v.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===v.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===v.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case v.DATA:{this._stateData(t);break}case v.RCDATA:{this._stateRcdata(t);break}case v.RAWTEXT:{this._stateRawtext(t);break}case v.SCRIPT_DATA:{this._stateScriptData(t);break}case v.PLAINTEXT:{this._statePlaintext(t);break}case v.TAG_OPEN:{this._stateTagOpen(t);break}case v.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case v.TAG_NAME:{this._stateTagName(t);break}case v.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case v.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case v.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case v.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case v.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case v.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case v.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case v.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case v.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case v.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case v.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case v.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case v.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case v.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case v.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case v.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case v.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case v.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case v.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case v.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case v.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case v.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case v.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case v.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case v.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case v.BOGUS_COMMENT:{this._stateBogusComment(t);break}case v.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case v.COMMENT_START:{this._stateCommentStart(t);break}case v.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case v.COMMENT:{this._stateComment(t);break}case v.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case v.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case v.COMMENT_END:{this._stateCommentEnd(t);break}case v.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case v.DOCTYPE:{this._stateDoctype(t);break}case v.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case v.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case v.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case v.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case v.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case v.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case v.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case v.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case v.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case v.CDATA_SECTION:{this._stateCdataSection(t);break}case v.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case v.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case v.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case v.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=v.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=v.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=v.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(nr(t))this._createStartTagToken(),this.state=v.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=v.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=v.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=v.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(nr(t))this._createEndTagToken(),this.state=v.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=v.DATA;break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=v.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=Le;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(qa(t)?Fo(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=v.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=v.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){nr(t)?(this.state=v.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=v.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=v.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=v.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=v.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=v.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){nr(t)?(this.state=v.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=v.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=v.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=v.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){nr(t)?(this.state=v.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=v.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=v.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_ESCAPED,this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=v.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_ESCAPED,this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=v.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:nr(t)?(this._emitChars("<"),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){nr(t)?(this.state=v.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(At.SCRIPT,!1)&&a1(this.preprocessor.peek(At.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<At.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=v.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Le);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(At.SCRIPT,!1)&&a1(this.preprocessor.peek(At.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<At.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=v.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=v.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=v.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=v.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=v.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=v.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=Le;break}default:this.currentAttr.name+=String.fromCodePoint(qa(t)?Fo(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=v.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=v.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=v.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=v.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=v.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=v.DATA,this.emitCurrentTagToken();break}default:this.state=v.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=v.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=v.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=v.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=v.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=v.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=v.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=v.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=v.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=v.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=v.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=Le;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(At.DASH_DASH,!0)?(this._createCommentToken(At.DASH_DASH.length+1),this.state=v.COMMENT_START):this._consumeSequenceIfMatch(At.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(At.DOCTYPE.length+1),this.state=v.DOCTYPE):this._consumeSequenceIfMatch(At.CDATA_START,!0)?this.inForeignNode?this.state=v.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(At.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=v.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=v.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=v.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=v.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=v.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=v.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=v.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=v.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=v.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=Le;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=v.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=v.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=v.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=v.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=v.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=v.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(F.nestedComment),this.state=v.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=v.COMMENT_END;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=v.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=v.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=v.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=v.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=v.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=v.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=v.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=v.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(qa(t))this._createDoctypeToken(String.fromCharCode(Fo(t))),this.state=v.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(Le),this.state=v.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=v.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.name+=Le;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(qa(t)?Fo(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(At.PUBLIC,!1)?this.state=v.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(At.SYSTEM,!1)?this.state=v.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=Le;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=Le;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=Le;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=Le;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=v.DATA;break}case T.NULL:{this._err(F.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=v.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=v.CDATA_SECTION_END:(this._emitChars("]"),this.state=v.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=v.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=v.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&i1(this.preprocessor.peek(1))?v.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){i1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const yx=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),s1=new Set([...yx,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),Wl=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),wB=new Set([...Wl,f.OL,f.UL]),IB=new Set([...Wl,f.BUTTON]),o1=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),l1=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),OB=new Set([f.TR,f.TEMPLATE,f.HTML]),RB=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),LB=new Set([f.TABLE,f.TEMPLATE,f.HTML]),DB=new Set([f.TD,f.TH]);class MB{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===j.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==j.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(gf,j.HTML)}popUntilTableCellPopped(){this.popUntilPopped(DB,j.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(LB,j.HTML)}clearBackToTableBodyContext(){this.clearBackTo(RB,j.HTML)}clearBackToTableRowContext(){this.clearBackTo(OB,j.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case j.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case j.SVG:{if(l1.has(i))return!1;break}case j.MATHML:{if(o1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Wl)}hasInListItemScope(t){return this.hasInDynamicScope(t,wB)}hasInButtonScope(t){return this.hasInDynamicScope(t,IB)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case j.HTML:{if(gf.has(n))return!0;if(Wl.has(n))return!1;break}case j.SVG:{if(l1.has(n))return!1;break}case j.MATHML:{if(o1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===j.HTML)switch(this.tagIDs[t]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&yx.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&s1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&s1.has(this.currentTagId);)this.pop()}}const zc=3;var Tn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Tn||(Tn={}));const u1={type:Tn.Marker};class PB{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Tn.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===i&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<zc)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<zc)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=zc&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(u1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Tn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(u1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Tn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Tn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Tn.Element&&n.element===t)}}const rr={createDocument(){return{nodeName:"#document",mode:Zt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};rr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(rr.isTextNode(n)){n.value+=t;return}}rr.appendChild(e,rr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&rr.isTextNode(r)?r.value+=t:rr.insertBefore(e,rr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Tx="html",BB="about:legacy-compat",FB="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_x=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],UB=[..._x,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],HB=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xx=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zB=[...xx,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function c1(e,t){return t.some(n=>e.startsWith(n))}function VB(e){return e.name===Tx&&e.publicId===null&&(e.systemId===null||e.systemId===BB)}function jB(e){if(e.name!==Tx)return Zt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===FB)return Zt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),HB.has(n))return Zt.QUIRKS;let r=t===null?UB:_x;if(c1(n,r))return Zt.QUIRKS;if(r=t===null?xx:zB,c1(n,r))return Zt.LIMITED_QUIRKS}return Zt.NO_QUIRKS}const d1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},$B="definitionurl",GB="definitionURL",WB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),YB=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:j.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:j.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:j.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:j.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:j.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:j.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:j.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:j.XML}],["xml:space",{prefix:"xml",name:"space",namespace:j.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:j.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:j.XMLNS}]]),KB=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),qB=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function QB(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:r})=>r===Jr.COLOR||r===Jr.SIZE||r===Jr.FACE)||qB.has(t)}function Sx(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===$B){e.attrs[t].name=GB;break}}function vx(e){for(let t=0;t<e.attrs.length;t++){const n=WB.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function pp(e){for(let t=0;t<e.attrs.length;t++){const n=YB.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function XB(e){const t=KB.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ta(e.tagName))}function ZB(e,t){return t===j.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function JB(e,t,n){if(t===j.MATHML&&e===f.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Jr.ENCODING){const i=n[r].value.toLowerCase();return i===d1.TEXT_HTML||i===d1.APPLICATION_XML}}return t===j.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function e5(e,t,n,r){return(!r||r===j.HTML)&&JB(e,t,n)||(!r||r===j.MATHML)&&ZB(e,t)}const t5="hidden",n5=8,r5=3;var k;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const i5={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Cx=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),f1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:rr,onParseError:null};class h1{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...f1,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new NB(this.options,this),this.activeFormattingElements=new PB(this.treeAdapter),this.fragmentContextID=r?Ta(this.treeAdapter.getTagName(r)):f.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new MB(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...f1,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,j.HTML,[]));const i=r.treeAdapter.createElement("documentmock",j.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===f.TEMPLATE&&a.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:i5,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===j.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,j.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==j.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=je.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=je.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=je.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,j.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,j.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,j.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===me.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===j.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,j.HTML)}_processToken(t){switch(t.type){case me.CHARACTER:{this.onCharacter(t);break}case me.NULL_CHARACTER:{this.onNullCharacter(t);break}case me.COMMENT:{this.onComment(t);break}case me.DOCTYPE:{this.onDoctype(t);break}case me.START_TAG:{this._processStartTag(t);break}case me.END_TAG:{this.onEndTag(t);break}case me.EOF:{this.onEof(t);break}case me.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return e5(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Tn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=k.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=k.IN_TABLE;return}case f.BODY:{this.insertionMode=k.IN_BODY;return}case f.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===f.TEMPLATE)break;if(r===f.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return Cx.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===j.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case f.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return vB[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){D8(this,t);return}switch(this.insertionMode){case k.INITIAL:{Va(this,t);break}case k.BEFORE_HTML:{fs(this,t);break}case k.BEFORE_HEAD:{hs(this,t);break}case k.IN_HEAD:{ps(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ms(this,t);break}case k.AFTER_HEAD:{gs(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{kx(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Vc(this,t);break}case k.IN_TABLE_TEXT:{Lx(this,t);break}case k.IN_COLUMN_GROUP:{Yl(this,t);break}case k.AFTER_BODY:{Kl(this,t);break}case k.AFTER_AFTER_BODY:{rl(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){L8(this,t);return}switch(this.insertionMode){case k.INITIAL:{Va(this,t);break}case k.BEFORE_HTML:{fs(this,t);break}case k.BEFORE_HEAD:{hs(this,t);break}case k.IN_HEAD:{ps(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ms(this,t);break}case k.AFTER_HEAD:{gs(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Vc(this,t);break}case k.IN_COLUMN_GROUP:{Yl(this,t);break}case k.AFTER_BODY:{Kl(this,t);break}case k.AFTER_AFTER_BODY:{rl(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ef(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{Ef(this,t);break}case k.IN_TABLE_TEXT:{ja(this,t);break}case k.AFTER_BODY:{d5(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{f5(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{h5(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case k.IN_TABLE_TEXT:{ja(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?M8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Va(this,t);break}case k.BEFORE_HTML:{p5(this,t);break}case k.BEFORE_HEAD:{g5(this,t);break}case k.IN_HEAD:{mn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{y5(this,t);break}case k.AFTER_HEAD:{_5(this,t);break}case k.IN_BODY:{mt(this,t);break}case k.IN_TABLE:{ca(this,t);break}case k.IN_TABLE_TEXT:{ja(this,t);break}case k.IN_CAPTION:{E8(this,t);break}case k.IN_COLUMN_GROUP:{Ep(this,t);break}case k.IN_TABLE_BODY:{Du(this,t);break}case k.IN_ROW:{Mu(this,t);break}case k.IN_CELL:{T8(this,t);break}case k.IN_SELECT:{Px(this,t);break}case k.IN_SELECT_IN_TABLE:{x8(this,t);break}case k.IN_TEMPLATE:{v8(this,t);break}case k.AFTER_BODY:{A8(this,t);break}case k.IN_FRAMESET:{k8(this,t);break}case k.AFTER_FRAMESET:{w8(this,t);break}case k.AFTER_AFTER_BODY:{O8(this,t);break}case k.AFTER_AFTER_FRAMESET:{R8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?P8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Va(this,t);break}case k.BEFORE_HTML:{m5(this,t);break}case k.BEFORE_HEAD:{E5(this,t);break}case k.IN_HEAD:{b5(this,t);break}case k.IN_HEAD_NO_SCRIPT:{T5(this,t);break}case k.AFTER_HEAD:{x5(this,t);break}case k.IN_BODY:{Lu(this,t);break}case k.TEXT:{o8(this,t);break}case k.IN_TABLE:{Vs(this,t);break}case k.IN_TABLE_TEXT:{ja(this,t);break}case k.IN_CAPTION:{b8(this,t);break}case k.IN_COLUMN_GROUP:{y8(this,t);break}case k.IN_TABLE_BODY:{bf(this,t);break}case k.IN_ROW:{Mx(this,t);break}case k.IN_CELL:{_8(this,t);break}case k.IN_SELECT:{Bx(this,t);break}case k.IN_SELECT_IN_TABLE:{S8(this,t);break}case k.IN_TEMPLATE:{C8(this,t);break}case k.AFTER_BODY:{Ux(this,t);break}case k.IN_FRAMESET:{N8(this,t);break}case k.AFTER_FRAMESET:{I8(this,t);break}case k.AFTER_AFTER_BODY:{rl(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{Va(this,t);break}case k.BEFORE_HTML:{fs(this,t);break}case k.BEFORE_HEAD:{hs(this,t);break}case k.IN_HEAD:{ps(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ms(this,t);break}case k.AFTER_HEAD:{gs(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{Ox(this,t);break}case k.TEXT:{l8(this,t);break}case k.IN_TABLE_TEXT:{ja(this,t);break}case k.IN_TEMPLATE:{Fx(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{gp(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Ax(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Vc(this,t);break}case k.IN_TABLE_TEXT:{Rx(this,t);break}}}}function a5(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ix(e,t),n}function s5(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function o5(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=r5;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=l5(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function l5(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function u5(e,t,n){const r=e.treeAdapter.getTagName(t),i=Ta(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===f.TEMPLATE&&a===j.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function c5(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function mp(e,t){for(let n=0;n<n5;n++){const r=a5(e,t);if(!r)break;const i=s5(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=o5(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&u5(e,s,a),c5(e,i,r)}}function Ef(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function d5(e,t){e._appendCommentNode(t,e.openElements.items[0])}function f5(e,t){e._appendCommentNode(t,e.document)}function gp(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function h5(e,t){e._setDocumentType(t);const n=t.forceQuirks?Zt.QUIRKS:jB(t);VB(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function Va(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Zt.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function p5(e,t){t.tagID===f.HTML?(e._insertElement(t,j.HTML),e.insertionMode=k.BEFORE_HEAD):fs(e,t)}function m5(e,t){const n=t.tagID;(n===f.HTML||n===f.HEAD||n===f.BODY||n===f.BR)&&fs(e,t)}function fs(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function g5(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.HEAD:{e._insertElement(t,j.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:hs(e,t)}}function E5(e,t){const n=t.tagID;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?hs(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function hs(e,t){e._insertFakeElement(R.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function mn(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,je.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,je.RAWTEXT):(e._insertElement(t,j.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,je.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,je.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case f.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:ps(e,t)}}function b5(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{ps(e,t);break}case f.TEMPLATE:{mi(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function mi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function ps(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function y5(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{mn(e,t);break}case f.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:ms(e,t)}}function T5(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case f.BR:{ms(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function ms(e,t){const n=t.type===me.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function _5(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BODY:{e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,j.HTML),e.insertionMode=k.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),mn(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:gs(e,t)}}function x5(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{gs(e,t);break}case f.TEMPLATE:{mi(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function gs(e,t){e._insertFakeElement(R.BODY,f.BODY),e.insertionMode=k.IN_BODY,Ru(e,t)}function Ru(e,t){switch(t.type){case me.CHARACTER:{kx(e,t);break}case me.WHITESPACE_CHARACTER:{Ax(e,t);break}case me.COMMENT:{Ef(e,t);break}case me.START_TAG:{mt(e,t);break}case me.END_TAG:{Lu(e,t);break}case me.EOF:{Ox(e,t);break}}}function Ax(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function kx(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function S5(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function v5(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function C5(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_FRAMESET)}function A5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function k5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&gf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,j.HTML)}function N5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function w5(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),n||(e.formElement=e.openElements.current))}function I5(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===f.LI&&i===f.LI||(n===f.DD||n===f.DT)&&(i===f.DD||i===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==f.ADDRESS&&i!==f.DIV&&i!==f.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function O5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.tokenizer.state=je.PLAINTEXT}function R5(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1}function L5(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(mp(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function D5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function M5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(mp(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function P5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function B5(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zt.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function Nx(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wx(e){const t=Ex(e,Jr.TYPE);return t!=null&&t.toLowerCase()===t5}function F5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),wx(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function U5(e,t){e._appendElement(t,j.HTML),t.ackSelfClosing=!0}function H5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function z5(e,t){t.tagName=R.IMG,t.tagID=f.IMG,Nx(e,t)}function V5(e,t){e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.tokenizer.state=je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function j5(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,je.RAWTEXT)}function $5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,je.RAWTEXT)}function p1(e,t){e._switchToTextParsing(t,je.RAWTEXT)}function G5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function W5(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function Y5(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,j.HTML)}function K5(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,j.HTML)}function q5(e,t){e._reconstructActiveFormattingElements(),Sx(t),pp(t),t.selfClosing?e._appendElement(t,j.MATHML):e._insertElement(t,j.MATHML),t.ackSelfClosing=!0}function Q5(e,t){e._reconstructActiveFormattingElements(),vx(t),pp(t),t.selfClosing?e._appendElement(t,j.SVG):e._insertElement(t,j.SVG),t.ackSelfClosing=!0}function m1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function mt(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{D5(e,t);break}case f.A:{L5(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{k5(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{A5(e,t);break}case f.LI:case f.DD:case f.DT:{I5(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{Nx(e,t);break}case f.HR:{H5(e,t);break}case f.RB:case f.RTC:{Y5(e,t);break}case f.RT:case f.RP:{K5(e,t);break}case f.PRE:case f.LISTING:{N5(e,t);break}case f.XMP:{j5(e,t);break}case f.SVG:{Q5(e,t);break}case f.HTML:{S5(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{mn(e,t);break}case f.BODY:{v5(e,t);break}case f.FORM:{w5(e,t);break}case f.NOBR:{M5(e,t);break}case f.MATH:{q5(e,t);break}case f.TABLE:{B5(e,t);break}case f.INPUT:{F5(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{U5(e,t);break}case f.IMAGE:{z5(e,t);break}case f.BUTTON:{R5(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{P5(e,t);break}case f.IFRAME:{$5(e,t);break}case f.SELECT:{G5(e,t);break}case f.OPTION:case f.OPTGROUP:{W5(e,t);break}case f.NOEMBED:case f.NOFRAMES:{p1(e,t);break}case f.FRAMESET:{C5(e,t);break}case f.TEXTAREA:{V5(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?p1(e,t):m1(e,t);break}case f.PLAINTEXT:{O5(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:m1(e,t)}}function X5(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Z5(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=k.AFTER_BODY,Ux(e,t))}function J5(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function e8(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):n&&e.openElements.remove(n))}function t8(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(R.P,f.P),e._closePElement()}function n8(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function r8(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function i8(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function a8(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function s8(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function Ix(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Lu(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{mp(e,t);break}case f.P:{t8(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{J5(e,t);break}case f.LI:{n8(e);break}case f.DD:case f.DT:{r8(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{i8(e);break}case f.BR:{s8(e);break}case f.BODY:{X5(e,t);break}case f.HTML:{Z5(e,t);break}case f.FORM:{e8(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{a8(e,t);break}case f.TEMPLATE:{mi(e,t);break}default:Ix(e,t)}}function Ox(e,t){e.tmplInsertionModeStack.length>0?Fx(e,t):gp(e,t)}function o8(e,t){var n;t.tagID===f.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function l8(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Vc(e,t){if(e.openElements.currentTagId!==void 0&&Cx.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case me.CHARACTER:{Lx(e,t);break}case me.WHITESPACE_CHARACTER:{Rx(e,t);break}}else io(e,t)}function u8(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_CAPTION}function c8(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function d8(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,f.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,Ep(e,t)}function f8(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_TABLE_BODY}function h8(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,f.TBODY),e.insertionMode=k.IN_TABLE_BODY,Du(e,t)}function p8(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function m8(e,t){wx(t)?e._appendElement(t,j.HTML):io(e,t),t.ackSelfClosing=!0}function g8(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,j.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ca(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{h8(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{mn(e,t);break}case f.COL:{d8(e,t);break}case f.FORM:{g8(e,t);break}case f.TABLE:{p8(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{f8(e,t);break}case f.INPUT:{m8(e,t);break}case f.CAPTION:{u8(e,t);break}case f.COLGROUP:{c8(e,t);break}default:io(e,t)}}function Vs(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{mi(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:io(e,t)}}function io(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ru(e,t),e.fosterParentingEnabled=n}function Rx(e,t){e.pendingCharacterTokens.push(t)}function Lx(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ja(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)io(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Dx=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function E8(e,t){const n=t.tagID;Dx.has(n)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,ca(e,t)):mt(e,t)}function b8(e,t){const n=t.tagID;switch(n){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===f.TABLE&&Vs(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:Lu(e,t)}}function Ep(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.COL:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{mn(e,t);break}default:Yl(e,t)}}function y8(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case f.TEMPLATE:{mi(e,t);break}case f.COL:break;default:Yl(e,t)}}function Yl(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}function Du(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,f.TR),e.insertionMode=k.IN_ROW,Mu(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,ca(e,t));break}default:ca(e,t)}}function bf(e,t){const n=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,Vs(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:Vs(e,t)}}function Mu(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,j.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,Du(e,t));break}default:ca(e,t)}}function Mx(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,bf(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,bf(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:Vs(e,t)}}function T8(e,t){const n=t.tagID;Dx.has(n)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),Mu(e,t)):mt(e,t)}function _8(e,t){const n=t.tagID;switch(n){case f.TD:case f.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Mx(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:Lu(e,t)}}function Px(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{mn(e,t);break}}}function Bx(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{mi(e,t);break}}}function x8(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Px(e,t)}function S8(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Bx(e,t)}function v8(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{mn(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,ca(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,Ep(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,Du(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,Mu(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,mt(e,t)}}function C8(e,t){t.tagID===f.TEMPLATE&&mi(e,t)}function Fx(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):gp(e,t)}function A8(e,t){t.tagID===f.HTML?mt(e,t):Kl(e,t)}function Ux(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Kl(e,t)}function Kl(e,t){e.insertionMode=k.IN_BODY,Ru(e,t)}function k8(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.FRAMESET:{e._insertElement(t,j.HTML);break}case f.FRAME:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{mn(e,t);break}}}function N8(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function w8(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.NOFRAMES:{mn(e,t);break}}}function I8(e,t){t.tagID===f.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function O8(e,t){t.tagID===f.HTML?mt(e,t):rl(e,t)}function rl(e,t){e.insertionMode=k.IN_BODY,Ru(e,t)}function R8(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.NOFRAMES:{mn(e,t);break}}}function L8(e,t){t.chars=Le,e._insertCharacters(t)}function D8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Hx(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==j.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function M8(e,t){if(QB(t))Hx(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===j.MATHML?Sx(t):r===j.SVG&&(XB(t),vx(t)),pp(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function P8(e,t){if(t.tagID===f.P||t.tagID===f.BR){Hx(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===j.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const B8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,F8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),g1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function zx(e,t){const n=K8(e),r=n_("type",{handlers:{root:U8,element:H8,text:z8,comment:jx,doctype:V8,raw:$8},unknown:G8}),i={parser:n?new h1(g1):h1.getFragmentParser(void 0,g1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),_a(i,An());const a=n?i.parser.document:i.parser.getFragment(),s=U4(a,{file:i.options.file});return i.stitches&&to(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Vx(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function U8(e,t){Vx(e.children,t)}function H8(e,t){W8(e,t),Vx(e.children,t),Y8(e,t)}function z8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:me.CHARACTER,chars:e.value,location:ao(e)};_a(t,An(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function V8(e,t){const n={type:me.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ao(e)};_a(t,An(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function j8(e,t){t.stitches=!0;const n=q8(e);if("children"in e&&"children"in n){const r=zx({type:"root",children:e.children},t.options);n.children=r.children}jx({type:"comment",value:{stitch:n}},t)}function jx(e,t){const n=e.value,r={type:me.COMMENT,data:n,location:ao(e)};_a(t,An(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,$x(t,An(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(B8,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function G8(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))j8(n,t);else{let r="";throw F8.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function _a(e,t){$x(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function $x(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function W8(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===je.PLAINTEXT)return;_a(t,An(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Kr.html;i===Kr.html&&n==="svg"&&(i=Kr.svg);const a=eB({...e,children:[]},{space:i===Kr.svg?"svg":"html"}),s={type:me.START_TAG,tagName:n,tagID:Ta(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ao(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Y8(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lB.includes(n)||t.parser.tokenizer.state===je.PLAINTEXT)return;_a(t,Au(e));const r={type:me.END_TAG,tagName:n,tagID:Ta(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ao(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===je.RCDATA||t.parser.tokenizer.state===je.RAWTEXT||t.parser.tokenizer.state===je.SCRIPT_DATA)&&(t.parser.tokenizer.state=je.DATA)}function K8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ao(e){const t=An(e)||{line:void 0,column:void 0,offset:void 0},n=Au(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function q8(e){return"children"in e?la({...e,children:[]}):la(e)}function Q8(e){return function(t,n){return zx(t,{...e,file:n})}}function X8({content:e}){return S.jsx(ne.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"prose-dark-fantasy",children:S.jsx(ML,{remarkPlugins:[KM],rehypePlugins:[k4,Q8],components:{h1:({children:t,...n})=>S.jsxs(ne.h1,{className:"text-3xl font-gothic text-gold-400 mb-6 pb-4 border-b-2 border-gold-600 relative",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:.2},...n,children:[S.jsx("div",{className:"absolute -inset-2 bg-gradient-to-r from-gold-600/20 to-mystical-600/20 rounded-lg opacity-50 blur-lg"}),S.jsx("span",{className:"relative z-10 bg-gradient-to-r from-gold-400 via-gold-300 to-gold-400 bg-clip-text text-transparent animate-ancient-glow",children:t}),S.jsx("div",{className:"absolute -bottom-1 left-0 right-0 h-px bg-gradient-to-r from-transparent via-gold-500 to-transparent"})]}),h2:({children:t,...n})=>S.jsxs(ne.h2,{className:"text-2xl font-gothic text-gold-300 mt-8 mb-4 relative",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3},...n,children:[S.jsx("span",{className:"relative z-10",children:t}),S.jsx("div",{className:"absolute -left-4 top-1/2 transform -translate-y-1/2 w-2 h-2 bg-mystical-500 rounded-full animate-pulse"})]}),h3:({children:t,...n})=>S.jsxs(ne.h3,{className:"text-xl font-gothic text-gold-200 mt-6 mb-3 relative",initial:{opacity:0,x:-15},animate:{opacity:1,x:0},transition:{delay:.4},...n,children:[S.jsx("span",{className:"relative z-10",children:t}),S.jsx("div",{className:"absolute -left-3 top-1/2 transform -translate-y-1/2 text-mystical-400 text-xs",children:"✦"})]}),pre:({children:t,...n})=>S.jsxs(ne.div,{className:"relative group my-6",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.5},children:[S.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-gold-600 to-mystical-600 rounded-lg opacity-20 group-hover:opacity-30 transition-opacity duration-300 blur-sm"}),S.jsx("pre",{className:"relative bg-shadow-900 border border-gold-700 rounded-lg p-4 overflow-x-auto shadow-deep",style:{backgroundImage:`
                    linear-gradient(45deg, transparent 25%, rgba(218, 165, 32, 0.05) 25%, rgba(218, 165, 32, 0.05) 50%, transparent 50%),
                    url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23DAA520" fill-opacity="0.1"%3E%3Ccircle cx="7" cy="7" r="1"/%3E%3Ccircle cx="33" cy="33" r="1"/%3E%3C/g%3E%3C/svg%3E')
                  `},...n,children:t}),S.jsx("div",{className:"absolute top-2 right-2 text-gold-400 text-xs opacity-50",children:"✦"}),S.jsx("div",{className:"absolute bottom-2 left-2 text-mystical-400 text-xs opacity-50",children:"✧"})]}),table:({children:t,...n})=>S.jsx(ne.div,{className:"overflow-x-auto my-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},children:S.jsxs("div",{className:"relative",children:[S.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-gold-600 to-mystical-600 rounded-lg opacity-20 blur-sm"}),S.jsx("table",{className:"relative w-full border-collapse border border-gold-700 rounded-lg overflow-hidden shadow-ancient",style:{background:"linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(26, 26, 26, 0.9))"},...n,children:t})]})}),thead:({children:t,...n})=>S.jsx("thead",{className:"bg-gradient-to-r from-gold-800 to-gold-700",...n,children:t}),th:({children:t,...n})=>S.jsx("th",{className:"px-6 py-3 text-left text-xs font-gothic font-semibold text-parchment-100 uppercase tracking-wider border-b border-gold-600",style:{textShadow:"1px 1px 2px rgba(0, 0, 0, 0.8)"},...n,children:t}),td:({children:t,...n})=>S.jsx("td",{className:"px-6 py-4 text-sm text-parchment-200 border-b border-shadow-700",style:{background:"rgba(45, 45, 45, 0.3)"},...n,children:t}),blockquote:({children:t,...n})=>S.jsxs(ne.blockquote,{className:"border-l-4 border-mystical-500 bg-gradient-to-r from-mystical-900/50 to-shadow-800/50 p-4 my-6 rounded-r-lg shadow-mystical relative",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.7},style:{backgroundImage:`url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%236366f1" fill-opacity="0.1"%3E%3Ccircle cx="3" cy="3" r="1"/%3E%3Ccircle cx="17" cy="17" r="1"/%3E%3C/g%3E%3C/svg%3E')`},...n,children:[S.jsx("div",{className:"absolute top-2 left-2 text-mystical-400 text-lg opacity-30",children:'"'}),S.jsx("div",{className:"text-mystical-200 italic font-body relative z-10",style:{textShadow:"0 0 5px rgba(99, 102, 241, 0.3)"},children:t}),S.jsx("div",{className:"absolute bottom-2 right-2 text-mystical-400 text-lg opacity-30",children:'"'})]}),a:({children:t,href:n,...r})=>S.jsxs(ne.a,{href:n,className:"text-mystical-400 underline decoration-mystical-600 underline-offset-2 hover:text-mystical-300 hover:decoration-mystical-400 transition-all duration-300 relative",style:{textShadow:"0 0 5px currentColor"},target:n!=null&&n.startsWith("http")?"_blank":void 0,rel:n!=null&&n.startsWith("http")?"noopener noreferrer":void 0,whileHover:{scale:1.05},...r,children:[t,S.jsx("span",{className:"absolute -top-1 -right-1 text-xs text-mystical-400 opacity-0 hover:opacity-100 transition-opacity",children:"✦"})]}),p:({children:t,...n})=>S.jsx("p",{className:"text-parchment-200 leading-relaxed mb-4 font-body",style:{textShadow:"1px 1px 1px rgba(0, 0, 0, 0.5)"},...n,children:t}),ul:({children:t,...n})=>S.jsx("ul",{className:"list-none space-y-2 my-4",...n,children:t}),li:({children:t,...n})=>S.jsxs("li",{className:"flex items-start space-x-2",...n,children:[S.jsx("span",{className:"text-gold-400 mt-1 text-sm",children:"✦"}),S.jsx("span",{className:"text-parchment-200",children:t})]})},children:e})})}function Z8({content:e}){const[t,n]=V.useState([]),[r,i]=V.useState(""),[a,s]=V.useState(!1);V.useEffect(()=>{const l=/^(#{1,6})\s+(.+)$/gm,u=[];let c;for(;(c=l.exec(e))!==null;){const d=c[1].length,h=c[2].trim(),p=h.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-");u.push({id:p,text:h,level:d})}n(u)},[e]),V.useEffect(()=>{const l=t.map(c=>document.getElementById(c.id)).filter(Boolean);if(l.length===0)return;const u=new IntersectionObserver(c=>{c.forEach(d=>{d.isIntersecting&&i(d.target.id)})},{rootMargin:"-80px 0px -80% 0px"});return l.forEach(c=>{c&&u.observe(c)}),()=>u.disconnect()},[t]);const o=l=>{const u=document.getElementById(l);u&&u.scrollIntoView({behavior:"smooth",block:"start"})};return t.length===0?null:S.jsxs("div",{className:"sticky top-24",children:[S.jsxs(ne.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>s(!a),className:"lg:hidden w-full flex items-center justify-between p-3 bg-white dark:bg-neutral-800 rounded-lg border border-neutral-200 dark:border-neutral-700 mb-4",children:[S.jsxs("div",{className:"flex items-center space-x-2",children:[S.jsx(L0,{className:"h-4 w-4 text-neutral-500"}),S.jsx("span",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Table of Contents"})]}),S.jsx(ne.div,{animate:{rotate:a?90:0},transition:{duration:.2},children:S.jsx(iT,{className:"h-4 w-4 text-neutral-400"})})]}),S.jsx(ai,{children:(a||window.innerWidth>=1024)&&S.jsxs(ne.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"bg-white dark:bg-neutral-800 rounded-lg border border-neutral-200 dark:border-neutral-700 p-4",children:[S.jsxs("div",{className:"hidden lg:flex items-center space-x-2 mb-3",children:[S.jsx(L0,{className:"h-4 w-4 text-neutral-500"}),S.jsx("h3",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Table of Contents"})]}),S.jsx("nav",{className:"space-y-1",children:t.map((l,u)=>S.jsx(ne.button,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:u*.05},onClick:()=>o(l.id),className:zn("w-full text-left px-2 py-1.5 rounded text-sm transition-all duration-200 hover:bg-neutral-100 dark:hover:bg-neutral-700",r===l.id&&"bg-primary-50 dark:bg-primary-900/20 text-primary-700 dark:text-primary-300 border-l-2 border-primary-500"),style:{paddingLeft:`${(l.level-1)*12+8}px`},children:l.text},l.id))})]})})]})}function J8({children:e,className:t,hover:n=!1}){return S.jsxs(ne.div,{whileHover:n?{y:-4,scale:1.02,boxShadow:"0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(218, 165, 32, 0.3)"}:void 0,className:zn("grimoire-card border border-gold-700 shadow-ancient overflow-hidden relative",t),children:[S.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:`url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23DAA520" fill-opacity="0.3"%3E%3Ccircle cx="7" cy="7" r="1"/%3E%3Ccircle cx="53" cy="53" r="1"/%3E%3Ccircle cx="13" cy="43" r="1"/%3E%3Ccircle cx="47" cy="17" r="1"/%3E%3C/g%3E%3C/svg%3E')`}}),S.jsx("div",{className:"relative z-10",children:e}),S.jsx("div",{className:"absolute top-2 right-2 text-gold-400 text-xs opacity-30",children:"✦"}),S.jsx("div",{className:"absolute bottom-2 left-2 text-mystical-400 text-xs opacity-30",children:"✧"})]})}function eF({children:e,className:t}){return S.jsx("div",{className:zn("px-6 py-4",t),children:e})}function tF({section:e}){const{themeName:t}=Or(),r=t==="ultra-modern"?{icon:Ul,title:"Documentation",subtitle:"Modern Knowledge Base",decorativeIcon:dr,decorativeText:"✨ Clean & Organized ✨",emptyStateIcon:aw,emptyStateTitle:"Welcome to Documentation",emptyStateDescription:"Select a topic from the sidebar to explore our comprehensive documentation. Each section contains detailed information to help you get started.",sparkles:["✨","💫","✨"],chapterIcon:Ul,chapterTitle:"Documentation Section",chapterDescription:"This section contains multiple topics. Select a specific page from the navigation to view its content."}:{icon:Fl,title:"Ancient Grimoire",subtitle:"Tome of Mystical Knowledge",decorativeIcon:dr,decorativeText:"✦ Tome of Technical Mysteries ✦",emptyStateIcon:Fl,emptyStateTitle:"Welcome, Seeker of Knowledge",emptyStateDescription:"Choose a tome from the ancient library to unveil the mysteries within. Each scroll contains wisdom gathered from the depths of technical knowledge.",sparkles:["✦","✧","✦"],chapterIcon:xu,chapterTitle:"Ancient Chapter",chapterDescription:"This chapter contains multiple scrolls. Select a specific tome from the navigation to begin your journey through its contents."};r.icon;const i=r.decorativeIcon,a=r.emptyStateIcon,s=r.chapterIcon;return e?e.content?S.jsxs("div",{className:"flex-1 flex",children:[S.jsx("div",{className:"flex-1 p-6 lg:p-8 stone-texture",children:S.jsx(ai,{mode:"wait",children:S.jsxs(ne.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"max-w-4xl mx-auto",children:[e.metadata&&S.jsx(ne.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.2},children:S.jsx(J8,{className:`mb-8 grimoire-card ${t==="ultra-modern"?"border-slate-200":"border-gold-700"}`,children:S.jsxs(eF,{className:"p-6",children:[S.jsxs("div",{className:`flex flex-wrap items-center gap-4 text-sm ${t==="ultra-modern"?"text-slate-600":"text-parchment-400"}`,children:[e.metadata.lastModified&&S.jsxs(ne.div,{className:"flex items-center space-x-2",whileHover:{scale:1.05},children:[S.jsx(q2,{className:`h-4 w-4 ${t==="ultra-modern"?"text-blue-500":"text-gold-400"}`}),S.jsxs("span",{className:t==="ultra-modern"?"font-medium":"font-body",children:[t==="ultra-modern"?"Updated":"Inscribed"," ",new Date(e.metadata.lastModified).toLocaleDateString()]})]}),e.metadata.author&&S.jsxs(ne.div,{className:"flex items-center space-x-2",whileHover:{scale:1.05},children:[S.jsx(gw,{className:`h-4 w-4 ${t==="ultra-modern"?"text-violet-500":"text-mystical-400"}`}),S.jsx("span",{className:t==="ultra-modern"?"font-medium":"font-body",children:e.metadata.author})]}),e.metadata.tags&&e.metadata.tags.length>0&&S.jsxs(ne.div,{className:"flex items-center space-x-2",whileHover:{scale:1.05},children:[S.jsx(pw,{className:`h-4 w-4 ${t==="ultra-modern"?"text-blue-500":"text-gold-400"}`}),S.jsx("div",{className:"flex flex-wrap gap-1",children:e.metadata.tags.map((o,l)=>S.jsx(ne.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.1*l},className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium ${t==="ultra-modern"?"bg-blue-50 text-blue-700 border border-blue-200":"bg-gradient-to-r from-mystical-800 to-mystical-900 text-mystical-300 border border-mystical-600"}`,children:o},o))})]})]}),e.metadata.description&&S.jsx(ne.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},className:`mt-4 p-4 ${t==="ultra-modern"?"bg-blue-50 border border-blue-200 rounded-lg":"bg-gradient-to-r from-mystical-900/30 to-shadow-800/30 border border-mystical-700 rounded-lg"}`,children:S.jsxs("p",{className:`${t==="ultra-modern"?"text-blue-800 font-medium":"text-parchment-300 font-body"} leading-relaxed italic`,children:['"',e.metadata.description,'"']})})]})})}),S.jsx(ne.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:`grimoire-card ${t==="ultra-modern"?"border-slate-200":"border-gold-700"} p-8`,children:S.jsx(X8,{content:e.content})})]},e.id)})}),S.jsx("div",{className:"hidden xl:block w-64 p-6",children:S.jsx(Z8,{content:e.content})})]}):S.jsx("div",{className:"flex-1 flex items-center justify-center p-8 stone-texture",children:S.jsxs(ne.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-md",children:[S.jsxs(ne.div,{className:"relative mb-6",animate:t==="ultra-modern"?{scale:[1,1.05,1]}:{rotate:[0,5,-5,0]},transition:{duration:3,repeat:1/0},children:[S.jsx(s,{className:`h-16 w-16 ${t==="ultra-modern"?"text-blue-500":"text-gold-400 animate-mystical-float"} mx-auto`}),S.jsx("div",{className:`absolute -inset-2 ${t==="ultra-modern"?"bg-blue-600/20":"bg-gold-600/20"} rounded-full blur-lg`})]}),S.jsx("h2",{className:`text-2xl ${t==="ultra-modern"?"font-semibold text-slate-900":"font-gothic ancient-text"} mb-3`,children:e.title}),S.jsx("p",{className:`${t==="ultra-modern"?"text-slate-600 font-medium":"text-parchment-400 font-body"}`,children:r.chapterDescription})]})}):S.jsx("div",{className:"flex-1 flex items-center justify-center p-8 stone-texture",children:S.jsxs(ne.div,{initial:{opacity:0,y:20,scale:.9},animate:{opacity:1,y:0,scale:1},transition:{duration:.8},className:"text-center max-w-md",children:[S.jsxs(ne.div,{className:"relative mb-8",animate:t==="ultra-modern"?{scale:[1,1.05,1]}:{rotateY:[0,360],scale:[1,1.1,1]},transition:{duration:t==="ultra-modern"?3:4,repeat:1/0,ease:"easeInOut"},children:[S.jsx("div",{className:`absolute inset-0 ${t==="ultra-modern"?"bg-gradient-to-r from-blue-500 to-violet-500":"bg-gradient-to-r from-gold-600 to-mystical-600"} rounded-full opacity-20 blur-xl`}),S.jsx(a,{className:`h-20 w-20 ${t==="ultra-modern"?"text-blue-500":"text-gold-400 animate-ancient-glow"} mx-auto relative z-10`}),S.jsx("div",{className:"absolute -top-2 -right-2",children:S.jsx(i,{className:`h-6 w-6 ${t==="ultra-modern"?"text-violet-500":"text-mystical-400"} animate-pulse`})})]}),S.jsx(ne.h2,{className:`text-3xl ${t==="ultra-modern"?"font-semibold text-slate-900":"font-gothic ancient-text"} mb-4`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},children:r.emptyStateTitle}),S.jsx(ne.p,{className:`${t==="ultra-modern"?"text-slate-600 font-medium":"text-parchment-400 font-body"} leading-relaxed`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},style:{textShadow:t==="ultra-modern"?"none":"1px 1px 2px rgba(0, 0, 0, 0.7)"},children:r.emptyStateDescription}),S.jsx(ne.div,{className:`mt-6 flex justify-center space-x-4 ${t==="ultra-modern"?"text-blue-500":"text-mystical-400"}`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.7},children:r.sparkles.map((o,l)=>S.jsx(ne.span,{animate:{scale:[1,1.2,1]},transition:{duration:2,repeat:1/0,delay:l*.5},children:o},l))})]})})}function nF({children:e}){const t=Tw();return S.jsx(oT.Provider,{value:t,children:e})}function rF(e){const[t,n]=V.useState(null),[r,i]=V.useState(new Set);V.useEffect(()=>{var u;if(e.length>0&&!t){const c=e[0],d=(u=c.children)==null?void 0:u[0];n((d==null?void 0:d.id)||c.id)}},[e,t]);const a=V.useCallback(u=>{i(c=>{const d=new Set(c);return d.has(u)?d.delete(u):d.add(u),d})},[]),s=V.useCallback(u=>{n(u);const c=(h,p,m=[])=>{for(const b of h){const x=[...m,b.id];if(b.id===p)return x;if(b.children){const g=c(b.children,p,x);if(g)return g}}return null},d=c(e,u);d&&i(h=>{const p=new Set(h);return d.forEach(m=>p.add(m)),p})},[e]),o=V.useCallback((u,c)=>{for(const d of u){if(d.id===c)return d;if(d.children){const h=o(d.children,c);if(h)return h}}return null},[]),l=t?o(e,t):null;return{currentSection:t,currentSectionData:l,expandedSections:r,toggleExpanded:a,navigateToSection:s}}function Yn(e){return Array.isArray?Array.isArray(e):Yx(e)==="[object Array]"}const iF=1/0;function aF(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-iF?"-0":t}function sF(e){return e==null?"":aF(e)}function xn(e){return typeof e=="string"}function Gx(e){return typeof e=="number"}function oF(e){return e===!0||e===!1||lF(e)&&Yx(e)=="[object Boolean]"}function Wx(e){return typeof e=="object"}function lF(e){return Wx(e)&&e!==null}function Ut(e){return e!=null}function jc(e){return!e.trim().length}function Yx(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const uF="Incorrect 'index' type",cF=e=>`Invalid value for key ${e}`,dF=e=>`Pattern length exceeds max of ${e}.`,fF=e=>`Missing ${e} property in key`,hF=e=>`Property 'weight' in key '${e}' must be a positive integer`,E1=Object.prototype.hasOwnProperty;class pF{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let i=Kx(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Kx(e){let t=null,n=null,r=null,i=1,a=null;if(xn(e)||Yn(e))r=e,t=b1(e),n=yf(e);else{if(!E1.call(e,"name"))throw new Error(fF("name"));const s=e.name;if(r=s,E1.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(hF(s));t=b1(s),n=yf(s),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function b1(e){return Yn(e)?e:e.split(".")}function yf(e){return Yn(e)?e.join("."):e}function mF(e,t){let n=[],r=!1;const i=(a,s,o)=>{if(Ut(a))if(!s[o])n.push(a);else{let l=s[o];const u=a[l];if(!Ut(u))return;if(o===s.length-1&&(xn(u)||Gx(u)||oF(u)))n.push(sF(u));else if(Yn(u)){r=!0;for(let c=0,d=u.length;c<d;c+=1)i(u[c],s,o+1)}else s.length&&i(u,s,o+1)}};return i(e,xn(t)?t.split("."):t,0),r?n:n[0]}const gF={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},EF={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},bF={location:0,threshold:.6,distance:100},yF={useExtendedSearch:!1,getFn:mF,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var le={...EF,...gF,...bF,...yF};const TF=/[^ ]+/g;function _F(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(i){const a=i.match(TF).length;if(n.has(a))return n.get(a);const s=1/Math.pow(a,.5*e),o=parseFloat(Math.round(s*r)/r);return n.set(a,o),o},clear(){n.clear()}}}class bp{constructor({getFn:t=le.getFn,fieldNormWeight:n=le.fieldNormWeight}={}){this.norm=_F(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,xn(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();xn(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Ut(t)||jc(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((i,a)=>{let s=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Ut(s)){if(Yn(s)){let o=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:u,value:c}=l.pop();if(Ut(c))if(xn(c)&&!jc(c)){let d={v:c,i:u,n:this.norm.get(c)};o.push(d)}else Yn(c)&&c.forEach((d,h)=>{l.push({nestedArrIndex:h,value:d})})}r.$[a]=o}else if(xn(s)&&!jc(s)){let o={v:s,n:this.norm.get(s)};r.$[a]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function qx(e,t,{getFn:n=le.getFn,fieldNormWeight:r=le.fieldNormWeight}={}){const i=new bp({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Kx)),i.setSources(t),i.create(),i}function xF(e,{getFn:t=le.getFn,fieldNormWeight:n=le.fieldNormWeight}={}){const{keys:r,records:i}=e,a=new bp({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Uo(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=le.distance,ignoreLocation:a=le.ignoreLocation}={}){const s=t/e.length;if(a)return s;const o=Math.abs(r-n);return i?s+o/i:o?1:s}function SF(e=[],t=le.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let s=e.length;a<s;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}const jr=32;function vF(e,t,n,{location:r=le.location,distance:i=le.distance,threshold:a=le.threshold,findAllMatches:s=le.findAllMatches,minMatchCharLength:o=le.minMatchCharLength,includeMatches:l=le.includeMatches,ignoreLocation:u=le.ignoreLocation}={}){if(t.length>jr)throw new Error(dF(jr));const c=t.length,d=e.length,h=Math.max(0,Math.min(r,d));let p=a,m=h;const b=o>1||l,x=b?Array(d):[];let g;for(;(g=e.indexOf(t,m))>-1;){let D=Uo(t,{currentLocation:g,expectedLocation:h,distance:i,ignoreLocation:u});if(p=Math.min(D,p),m=g+c,b){let L=0;for(;L<c;)x[g+L]=1,L+=1}}m=-1;let E=[],y=1,C=c+d;const O=1<<c-1;for(let D=0;D<c;D+=1){let L=0,U=C;for(;L<U;)Uo(t,{errors:D,currentLocation:h+U,expectedLocation:h,distance:i,ignoreLocation:u})<=p?L=U:C=U,U=Math.floor((C-L)/2+L);C=U;let w=Math.max(1,h-U+1),Y=s?d:Math.min(h+U,d)+c,H=Array(Y+2);H[Y+1]=(1<<D)-1;for(let Z=Y;Z>=w;Z-=1){let J=Z-1,P=n[e.charAt(J)];if(b&&(x[J]=+!!P),H[Z]=(H[Z+1]<<1|1)&P,D&&(H[Z]|=(E[Z+1]|E[Z])<<1|1|E[Z+1]),H[Z]&O&&(y=Uo(t,{errors:D,currentLocation:J,expectedLocation:h,distance:i,ignoreLocation:u}),y<=p)){if(p=y,m=J,m<=h)break;w=Math.max(1,2*h-m)}}if(Uo(t,{errors:D+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:u})>p)break;E=H}const A={isMatch:m>=0,score:Math.max(.001,y)};if(b){const D=SF(x,o);D.length?l&&(A.indices=D):A.isMatch=!1}return A}function CF(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}const ql=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class Qx{constructor(t,{location:n=le.location,threshold:r=le.threshold,distance:i=le.distance,includeMatches:a=le.includeMatches,findAllMatches:s=le.findAllMatches,minMatchCharLength:o=le.minMatchCharLength,isCaseSensitive:l=le.isCaseSensitive,ignoreDiacritics:u=le.ignoreDiacritics,ignoreLocation:c=le.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:i,includeMatches:a,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:l,ignoreDiacritics:u,ignoreLocation:c},t=l?t:t.toLowerCase(),t=u?ql(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(p,m)=>{this.chunks.push({pattern:p,alphabet:CF(p),startIndex:m})},h=this.pattern.length;if(h>jr){let p=0;const m=h%jr,b=h-m;for(;p<b;)d(this.pattern.substr(p,jr),p),p+=jr;if(m){const x=h-jr;d(this.pattern.substr(x),x)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i}=this.options;if(t=n?t:t.toLowerCase(),t=r?ql(t):t,this.pattern===t){let b={isMatch:!0,score:0};return i&&(b.indices=[[0,t.length-1]]),b}const{location:a,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:u,ignoreLocation:c}=this.options;let d=[],h=0,p=!1;this.chunks.forEach(({pattern:b,alphabet:x,startIndex:g})=>{const{isMatch:E,score:y,indices:C}=vF(t,b,x,{location:a+g,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:u,includeMatches:i,ignoreLocation:c});E&&(p=!0),h+=y,E&&C&&(d=[...d,...C])});let m={isMatch:p,score:p?h/this.chunks.length:1};return p&&i&&(m.indices=d),m}}class Lr{constructor(t){this.pattern=t}static isMultiMatch(t){return y1(t,this.multiRegex)}static isSingleMatch(t){return y1(t,this.singleRegex)}search(){}}function y1(e,t){const n=e.match(t);return n?n[1]:null}class AF extends Lr{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class kF extends Lr{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class NF extends Lr{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class wF extends Lr{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class IF extends Lr{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class OF extends Lr{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Xx extends Lr{constructor(t,{location:n=le.location,threshold:r=le.threshold,distance:i=le.distance,includeMatches:a=le.includeMatches,findAllMatches:s=le.findAllMatches,minMatchCharLength:o=le.minMatchCharLength,isCaseSensitive:l=le.isCaseSensitive,ignoreDiacritics:u=le.ignoreDiacritics,ignoreLocation:c=le.ignoreLocation}={}){super(t),this._bitapSearch=new Qx(t,{location:n,threshold:r,distance:i,includeMatches:a,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:l,ignoreDiacritics:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Zx extends Lr{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const i=[],a=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+a,i.push([r,n-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const Tf=[AF,Zx,NF,wF,OF,IF,kF,Xx],T1=Tf.length,RF=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,LF="|";function DF(e,t={}){return e.split(LF).map(n=>{let r=n.trim().split(RF).filter(a=>a&&!!a.trim()),i=[];for(let a=0,s=r.length;a<s;a+=1){const o=r[a];let l=!1,u=-1;for(;!l&&++u<T1;){const c=Tf[u];let d=c.isMultiMatch(o);d&&(i.push(new c(d,t)),l=!0)}if(!l)for(u=-1;++u<T1;){const c=Tf[u];let d=c.isSingleMatch(o);if(d){i.push(new c(d,t));break}}}return i})}const MF=new Set([Xx.type,Zx.type]);class PF{constructor(t,{isCaseSensitive:n=le.isCaseSensitive,ignoreDiacritics:r=le.ignoreDiacritics,includeMatches:i=le.includeMatches,minMatchCharLength:a=le.minMatchCharLength,ignoreLocation:s=le.ignoreLocation,findAllMatches:o=le.findAllMatches,location:l=le.location,threshold:u=le.threshold,distance:c=le.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i,minMatchCharLength:a,findAllMatches:o,ignoreLocation:s,location:l,threshold:u,distance:c},t=n?t:t.toLowerCase(),t=r?ql(t):t,this.pattern=t,this.query=DF(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i,ignoreDiacritics:a}=this.options;t=i?t:t.toLowerCase(),t=a?ql(t):t;let s=0,o=[],l=0;for(let u=0,c=n.length;u<c;u+=1){const d=n[u];o.length=0,s=0;for(let h=0,p=d.length;h<p;h+=1){const m=d[h],{isMatch:b,indices:x,score:g}=m.search(t);if(b){if(s+=1,l+=g,r){const E=m.constructor.type;MF.has(E)?o=[...o,...x]:o.push(x)}}else{l=0,s=0,o.length=0;break}}if(s){let h={isMatch:!0,score:l/s};return r&&(h.indices=o),h}}return{isMatch:!1,score:1}}}const _f=[];function BF(...e){_f.push(...e)}function xf(e,t){for(let n=0,r=_f.length;n<r;n+=1){let i=_f[n];if(i.condition(e,t))return new i(e,t)}return new Qx(e,t)}const Ql={AND:"$and",OR:"$or"},Sf={PATH:"$path",PATTERN:"$val"},vf=e=>!!(e[Ql.AND]||e[Ql.OR]),FF=e=>!!e[Sf.PATH],UF=e=>!Yn(e)&&Wx(e)&&!vf(e),_1=e=>({[Ql.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Jx(e,t,{auto:n=!0}={}){const r=i=>{let a=Object.keys(i);const s=FF(i);if(!s&&a.length>1&&!vf(i))return r(_1(i));if(UF(i)){const l=s?i[Sf.PATH]:a[0],u=s?i[Sf.PATTERN]:i[l];if(!xn(u))throw new Error(cF(l));const c={keyId:yf(l),pattern:u};return n&&(c.searcher=xf(u,t)),c}let o={children:[],operator:a[0]};return a.forEach(l=>{const u=i[l];Yn(u)&&u.forEach(c=>{o.children.push(r(c))})}),o};return vf(e)||(e=_1(e)),r(e)}function HF(e,{ignoreFieldNorm:t=le.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:a,score:s})=>{const o=i?i.weight:null;r*=Math.pow(s===0&&o?Number.EPSILON:s,(o||1)*(t?1:a))}),n.score=r})}function zF(e,t){const n=e.matches;t.matches=[],Ut(n)&&n.forEach(r=>{if(!Ut(r.indices)||!r.indices.length)return;const{indices:i,value:a}=r;let s={indices:i,value:a};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function VF(e,t){t.score=e.score}function jF(e,t,{includeMatches:n=le.includeMatches,includeScore:r=le.includeScore}={}){const i=[];return n&&i.push(zF),r&&i.push(VF),e.map(a=>{const{idx:s}=a,o={item:t[s],refIndex:s};return i.length&&i.forEach(l=>{l(a,o)}),o})}class xa{constructor(t,n={},r){this.options={...le,...n},this.options.useExtendedSearch,this._keyStore=new pF(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof bp))throw new Error(uF);this._myIndex=n||qx(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Ut(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,i=this._docs.length;r<i;r+=1){const a=this._docs[r];t(a,r)&&(this.removeAt(r),r-=1,i-=1,n.push(a))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:a,sortFn:s,ignoreFieldNorm:o}=this.options;let l=xn(t)?xn(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return HF(l,{ignoreFieldNorm:o}),a&&l.sort(s),Gx(n)&&n>-1&&(l=l.slice(0,n)),jF(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(t){const n=xf(t,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:a,i:s,n:o})=>{if(!Ut(a))return;const{isMatch:l,score:u,indices:c}=n.searchIn(a);l&&i.push({item:a,idx:s,matches:[{score:u,value:a,norm:o,indices:c}]})}),i}_searchLogical(t){const n=Jx(t,this.options),r=(o,l,u)=>{if(!o.children){const{keyId:d,searcher:h}=o,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(l,d),searcher:h});return p&&p.length?[{idx:u,item:l,matches:p}]:[]}const c=[];for(let d=0,h=o.children.length;d<h;d+=1){const p=o.children[d],m=r(p,l,u);if(m.length)c.push(...m);else if(o.operator===Ql.AND)return[]}return c},i=this._myIndex.records,a={},s=[];return i.forEach(({$:o,i:l})=>{if(Ut(o)){let u=r(n,o,l);u.length&&(a[l]||(a[l]={idx:l,item:o,matches:[]},s.push(a[l])),u.forEach(({matches:c})=>{a[l].matches.push(...c)}))}}),s}_searchObjectList(t){const n=xf(t,this.options),{keys:r,records:i}=this._myIndex,a=[];return i.forEach(({$:s,i:o})=>{if(!Ut(s))return;let l=[];r.forEach((u,c)=>{l.push(...this._findMatches({key:u,value:s[c],searcher:n}))}),l.length&&a.push({idx:o,item:s,matches:l})}),a}_findMatches({key:t,value:n,searcher:r}){if(!Ut(n))return[];let i=[];if(Yn(n))n.forEach(({v:a,i:s,n:o})=>{if(!Ut(a))return;const{isMatch:l,score:u,indices:c}=r.searchIn(a);l&&i.push({score:u,key:t,value:a,idx:s,norm:o,indices:c})});else{const{v:a,n:s}=n,{isMatch:o,score:l,indices:u}=r.searchIn(a);o&&i.push({score:l,key:t,value:a,norm:s,indices:u})}return i}}xa.version="7.1.0";xa.createIndex=qx;xa.parseIndex=xF;xa.config=le;xa.parseQuery=Jx;BF(PF);function $F(e){const[t,n]=V.useState(""),[r,i]=V.useState([]),a=V.useMemo(()=>{const c=d=>d.reduce((h,p)=>(h.push(p),p.children&&h.push(...c(p.children)),h),[]);return c(e)},[e]),s=V.useMemo(()=>new xa(a,{keys:[{name:"title",weight:.4},{name:"content",weight:.3},{name:"metadata.description",weight:.2},{name:"metadata.tags",weight:.1}],threshold:.4,includeScore:!0,includeMatches:!0,minMatchCharLength:2}),[a]),o=V.useCallback(tI(c=>{if(!c.trim()){i([]);return}const h=s.search(c).map(p=>{var m;return{section:p.item,score:p.score||0,matches:((m=p.matches)==null?void 0:m.map(b=>b.value||""))||[]}});i(h)},300),[s]),l=V.useCallback(c=>{n(c),o(c)},[o]),u=V.useCallback(()=>{n(""),i([])},[]);return{searchQuery:t,searchResults:r,handleSearch:l,clearSearch:u}}const $c=[{id:"getting-started",title:"Getting Started",path:"/getting-started",metadata:{description:"Learn how to get started with our documentation platform",tags:["introduction","setup"],lastModified:"2024-01-15",author:"Documentation Team"},children:[{id:"installation",title:"Installation",path:"/getting-started/installation",content:`# Installation Guide

Welcome to our comprehensive installation guide. This documentation will walk you through the process of setting up the application on your system.

## Prerequisites

Before you begin, ensure you have the following installed:

- **Node.js** (version 18 or higher)
- **npm** or **yarn** package manager
- **Git** for version control

## Quick Start

\`\`\`bash
# Clone the repository
git clone https://github.com/your-org/project.git

# Navigate to the project directory
cd project

# Install dependencies
npm install

# Start the development server
npm run dev
\`\`\`

## Environment Setup

Create a \`.env\` file in your root directory:

\`\`\`env
NODE_ENV=development
API_URL=http://localhost:3000
DATABASE_URL=your-database-url
\`\`\`

> **Note**: Make sure to replace the placeholder values with your actual configuration.

## Verification

After installation, verify everything is working by running:

\`\`\`bash
npm run test
\`\`\`

You should see all tests passing. If you encounter any issues, check our [troubleshooting guide](/troubleshooting).`,metadata:{description:"Step-by-step installation instructions",tags:["installation","setup","requirements"],lastModified:"2024-01-15"}},{id:"configuration",title:"Configuration",path:"/getting-started/configuration",content:`# Configuration

Learn how to configure the application for your specific needs.

## Basic Configuration

The application uses a hierarchical configuration system:

1. **Default values** - Built into the application
2. **Environment variables** - Override defaults
3. **Configuration files** - Override environment variables
4. **Command line arguments** - Override everything

## Configuration Files

### \`config.json\`

\`\`\`json
{
  "app": {
    "name": "Documentation App",
    "version": "1.0.0",
    "port": 3000
  },
  "database": {
    "host": "localhost",
    "port": 5432,
    "name": "docs_db"
  },
  "features": {
    "search": true,
    "darkMode": true,
    "analytics": false
  }
}
\`\`\`

### Environment Variables

| Variable | Description | Default |
|----------|-------------|---------|
| \`PORT\` | Server port | 3000 |
| \`NODE_ENV\` | Environment | development |
| \`DATABASE_URL\` | Database connection | - |

## Advanced Configuration

For advanced users, you can customize:

- **Theming**: Modify CSS variables
- **Plugins**: Enable/disable features
- **API endpoints**: Configure external services
- **Caching**: Set cache strategies`,metadata:{description:"Configuration options and settings",tags:["configuration","setup","customization"],lastModified:"2024-01-14"}}]},{id:"package-usage",title:"Package Usage",path:"/package-usage",metadata:{description:"Complete guide on how to use the markdown-docs-generator package",tags:["package","usage","cli","api"],lastModified:"2024-01-16"},children:[{id:"installation-package",title:"Installation",path:"/package-usage/installation",content:`# Installing markdown-docs-generator

Learn how to install and set up the markdown-docs-generator package in your project.

## Global Installation

Install the package globally to use the CLI commands from anywhere:

\`\`\`bash
npm install -g markdown-docs-generator
\`\`\`

After global installation, you can use the \`mdocs\` command:

\`\`\`bash
mdocs --version
\`\`\`

## Local Installation

For project-specific usage, install as a development dependency:

\`\`\`bash
# Using npm
npm install --save-dev markdown-docs-generator

# Using yarn
yarn add --dev markdown-docs-generator

# Using pnpm
pnpm add -D markdown-docs-generator
\`\`\`

## Package Scripts

Add these scripts to your \`package.json\`:

\`\`\`json
{
  "scripts": {
    "docs:dev": "mdocs generate --watch",
    "docs:build": "mdocs build",
    "docs:serve": "mdocs serve",
    "docs:init": "mdocs init"
  }
}
\`\`\`

## Verification

Verify the installation by checking the version:

\`\`\`bash
# Global installation
mdocs --version

# Local installation
npx mdocs --version
\`\`\`

## System Requirements

- **Node.js**: Version 16.0.0 or higher
- **npm**: Version 7.0.0 or higher (or equivalent yarn/pnpm)
- **Operating System**: Windows, macOS, or Linux

## Troubleshooting

### Permission Issues (macOS/Linux)

If you encounter permission errors during global installation:

\`\`\`bash
sudo npm install -g markdown-docs-generator
\`\`\`

### Windows PowerShell Execution Policy

If you can't run the CLI on Windows:

\`\`\`powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
\`\`\``,metadata:{description:"How to install the markdown-docs-generator package",tags:["installation","npm","cli"],lastModified:"2024-01-16"}},{id:"cli-commands",title:"CLI Commands",path:"/package-usage/cli-commands",content:`# CLI Commands Reference

Complete reference for all available CLI commands in markdown-docs-generator.

## Overview

The \`mdocs\` CLI provides several commands to manage your documentation:

- \`init\` - Initialize a new documentation project
- \`generate\` - Generate HTML from markdown files
- \`build\` - Build production-ready documentation
- \`serve\` - Serve documentation locally

## mdocs init

Initialize a new documentation project with default structure and configuration.

### Syntax

\`\`\`bash
mdocs init [directory] [options]
\`\`\`

### Parameters

- \`directory\` - Target directory (default: current directory)

### Options

- \`-t, --template <template>\` - Template to use (default, minimal, advanced)

### Examples

\`\`\`bash
# Initialize in current directory
mdocs init

# Initialize in specific directory
mdocs init my-docs

# Use minimal template
mdocs init --template minimal
\`\`\`

### Generated Structure

\`\`\`
my-docs/
├── docs/
│   ├── index.md
│   ├── getting-started/
│   │   └── installation.md
│   ├── api/
│   │   └── overview.md
│   └── guides/
│       └── configuration.md
├── mdocs.config.js
└── package.json
\`\`\`

## mdocs generate

Generate HTML documentation from markdown files with live reload support.

### Syntax

\`\`\`bash
mdocs generate [input] [options]
\`\`\`

### Parameters

- \`input\` - Input directory containing markdown files (default: \`./docs\`)

### Options

- \`-o, --output <directory>\` - Output directory (default: \`./docs-output\`)
- \`-c, --config <file>\` - Configuration file (default: \`./mdocs.config.js\`)
- \`-w, --watch\` - Watch for file changes and regenerate
- \`--base-url <url>\` - Base URL for the site (default: \`/\`)

### Examples

\`\`\`bash
# Generate from default docs directory
mdocs generate

# Generate with custom input/output
mdocs generate ./documentation --output ./website

# Watch for changes during development
mdocs generate --watch

# Use custom configuration
mdocs generate --config ./custom.config.js
\`\`\`

## mdocs build

Build production-ready documentation with optimizations.

### Syntax

\`\`\`bash
mdocs build [input] [options]
\`\`\`

### Parameters

- \`input\` - Input directory containing markdown files (default: \`./docs\`)

### Options

- \`-o, --output <directory>\` - Output directory (default: \`./dist\`)
- \`-c, --config <file>\` - Configuration file (default: \`./mdocs.config.js\`)
- \`--base-url <url>\` - Base URL for the site (default: \`/\`)

### Examples

\`\`\`bash
# Build for production
mdocs build

# Build with custom output directory
mdocs build --output ./public

# Build for deployment with base URL
mdocs build --base-url /my-docs/
\`\`\`

### Production Optimizations

The build command includes:

- Minified CSS and JavaScript
- Optimized images
- Compressed assets
- SEO meta tags
- Search index generation

## mdocs serve

Serve documentation locally for preview and development.

### Syntax

\`\`\`bash
mdocs serve [directory] [options]
\`\`\`

### Parameters

- \`directory\` - Directory to serve (default: \`./docs-output\`)

### Options

- \`-p, --port <port>\` - Port to serve on (default: \`3000\`)
- \`-o, --open\` - Open browser automatically

### Examples

\`\`\`bash
# Serve on default port
mdocs serve

# Serve on custom port
mdocs serve --port 8080

# Serve and open browser
mdocs serve --open

# Serve specific directory
mdocs serve ./dist --port 4000 --open
\`\`\`

## Global Options

These options are available for all commands:

- \`--help, -h\` - Show help information
- \`--version, -v\` - Show version number
- \`--verbose\` - Enable verbose logging
- \`--silent\` - Suppress all output except errors

## Exit Codes

- \`0\` - Success
- \`1\` - General error
- \`2\` - Invalid arguments
- \`3\` - File system error`,metadata:{description:"Complete CLI commands reference with examples",tags:["cli","commands","reference"],lastModified:"2024-01-16"}},{id:"configuration-file",title:"Configuration File",path:"/package-usage/configuration-file",content:`# Configuration File (mdocs.config.js)

Learn how to configure markdown-docs-generator using the configuration file.

## Basic Configuration

Create a \`mdocs.config.js\` file in your project root:

\`\`\`javascript
module.exports = {
  title: 'My Documentation',
  description: 'Comprehensive documentation for my project',
  baseUrl: '/',
  
  // Input and output directories
  inputDir: './docs',
  outputDir: './dist',
  
  // Theme configuration
  theme: {
    primaryColor: '#3B82F6',
    accentColor: '#10B981',
    darkMode: true,
    logo: './assets/logo.svg'
  }
};
\`\`\`

## Complete Configuration Options

\`\`\`javascript
module.exports = {
  // Basic settings
  title: 'My Documentation',
  description: 'Comprehensive documentation for my project',
  baseUrl: '/',
  inputDir: './docs',
  outputDir: './dist',
  
  // Theme customization
  theme: {
    primaryColor: '#3B82F6',
    accentColor: '#10B981',
    darkMode: true,
    logo: './assets/logo.svg',
    favicon: './assets/favicon.ico',
    customCSS: './custom.css',
    fonts: {
      body: 'Inter, sans-serif',
      heading: 'Inter, sans-serif',
      mono: 'JetBrains Mono, monospace'
    }
  },
  
  // Navigation configuration
  navigation: {
    logo: 'My Docs',
    links: [
      { text: 'GitHub', url: 'https://github.com/username/repo' },
      { text: 'NPM', url: 'https://npmjs.com/package/my-package' }
    ]
  },
  
  // Feature toggles
  features: {
    search: true,
    tableOfContents: true,
    editOnGitHub: true,
    lastModified: true,
    analytics: 'GA_TRACKING_ID',
    comments: false
  },
  
  // GitHub integration
  gitHub: {
    repo: 'username/repository',
    branch: 'main',
    docsDir: 'docs'
  },
  
  // SEO configuration
  seo: {
    sitemap: true,
    robots: true,
    openGraph: {
      image: './assets/og-image.png',
      twitterCard: 'summary_large_image'
    }
  },
  
  // Markdown processing
  markdown: {
    plugins: ['markdown-it-anchor', 'markdown-it-toc'],
    highlight: {
      theme: 'github-dark',
      languages: ['javascript', 'typescript', 'bash', 'json']
    }
  },
  
  // Build options
  build: {
    minify: true,
    sourceMaps: false,
    publicPath: '/'
  }
};
\`\`\`

## Theme Configuration

### Colors

\`\`\`javascript
theme: {
  primaryColor: '#3B82F6',    // Main brand color
  accentColor: '#10B981',     // Secondary accent color
  backgroundColor: '#ffffff', // Page background
  textColor: '#1f2937',      // Main text color
  borderColor: '#e5e7eb'     // Border color
}
\`\`\`

### Typography

\`\`\`javascript
theme: {
  fonts: {
    body: 'Inter, -apple-system, sans-serif',
    heading: 'Inter, -apple-system, sans-serif',
    mono: 'JetBrains Mono, Consolas, monospace'
  },
  fontSize: {
    base: '16px',
    scale: 1.2
  }
}
\`\`\`

### Custom CSS

\`\`\`javascript
theme: {
  customCSS: './styles/custom.css',
  // or inline styles
  customCSS: \`
    :root {
      --custom-color: #ff6b6b;
    }
    .custom-class {
      color: var(--custom-color);
    }
  \`
}
\`\`\`

## Navigation Configuration

### Basic Navigation

\`\`\`javascript
navigation: {
  logo: 'My Documentation',
  links: [
    { text: 'Home', url: '/' },
    { text: 'GitHub', url: 'https://github.com/user/repo' },
    { text: 'NPM', url: 'https://npmjs.com/package/name' }
  ]
}
\`\`\`

### Advanced Navigation

\`\`\`javascript
navigation: {
  logo: {
    text: 'My Docs',
    image: './assets/logo.svg',
    url: '/'
  },
  links: [
    {
      text: 'External',
      items: [
        { text: 'GitHub', url: 'https://github.com/user/repo' },
        { text: 'NPM', url: 'https://npmjs.com/package/name' }
      ]
    }
  ],
  social: [
    { platform: 'github', url: 'https://github.com/user' },
    { platform: 'twitter', url: 'https://twitter.com/user' }
  ]
}
\`\`\`

## Feature Configuration

### Search

\`\`\`javascript
features: {
  search: {
    enabled: true,
    placeholder: 'Search documentation...',
    maxResults: 10,
    fuzzy: true
  }
}
\`\`\`

### Table of Contents

\`\`\`javascript
features: {
  tableOfContents: {
    enabled: true,
    levels: [2, 3, 4],
    position: 'right'
  }
}
\`\`\`

### Analytics

\`\`\`javascript
features: {
  analytics: {
    google: 'GA_TRACKING_ID',
    plausible: 'domain.com'
  }
}
\`\`\`

## Environment-Specific Configuration

\`\`\`javascript
const isDev = process.env.NODE_ENV === 'development';

module.exports = {
  title: 'My Documentation',
  baseUrl: isDev ? '/' : '/my-docs/',
  
  features: {
    analytics: isDev ? false : 'GA_TRACKING_ID'
  },
  
  build: {
    minify: !isDev,
    sourceMaps: isDev
  }
};
\`\`\`

## Configuration Validation

The configuration is automatically validated. Common errors:

- Invalid color formats
- Missing required fields
- Invalid file paths
- Malformed URLs

## TypeScript Support

For TypeScript projects, create \`mdocs.config.ts\`:

\`\`\`typescript
import { defineConfig } from 'markdown-docs-generator';

export default defineConfig({
  title: 'My Documentation',
  description: 'TypeScript documentation',
  theme: {
    primaryColor: '#3B82F6'
  }
});
\`\`\``,metadata:{description:"Complete configuration file reference",tags:["configuration","setup","customization"],lastModified:"2024-01-16"}},{id:"markdown-features",title:"Markdown Features",path:"/package-usage/markdown-features",content:`# Markdown Features

Discover all the markdown features supported by markdown-docs-generator.

## Standard Markdown

All standard markdown syntax is supported:

### Headings

\`\`\`markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
\`\`\`

### Text Formatting

\`\`\`markdown
**Bold text**
*Italic text*
~~Strikethrough~~
\`Inline code\`
\`\`\`

### Lists

\`\`\`markdown
- Unordered list item 1
- Unordered list item 2
  - Nested item
  - Another nested item

1. Ordered list item 1
2. Ordered list item 2
   1. Nested ordered item
   2. Another nested item
\`\`\`

### Links and Images

\`\`\`markdown
[Link text](https://example.com)
[Link with title](https://example.com "Title")

![Alt text](image.jpg)
![Image with title](image.jpg "Image title")
\`\`\`

## Extended Markdown (GFM)

GitHub Flavored Markdown features are supported:

### Tables

\`\`\`markdown
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Row 1    | Data     | More     |
| Row 2    | Data     | More     |
\`\`\`

### Task Lists

\`\`\`markdown
- [x] Completed task
- [ ] Incomplete task
- [x] Another completed task
\`\`\`

### Strikethrough

\`\`\`markdown
~~This text is crossed out~~
\`\`\`

### Autolinks

\`\`\`markdown
https://example.com
user@example.com
\`\`\`

## Code Syntax Highlighting

Syntax highlighting is powered by Prism.js:

### Supported Languages

\`\`\`javascript
// JavaScript
function hello(name) {
  console.log(\`Hello, \${name}!\`);
}
\`\`\`

\`\`\`typescript
// TypeScript
interface User {
  name: string;
  age: number;
}

const user: User = {
  name: "John",
  age: 30
};
\`\`\`

\`\`\`python
# Python
def hello(name):
    print(f"Hello, {name}!")

hello("World")
\`\`\`

\`\`\`bash
# Bash
#!/bin/bash
echo "Hello, World!"
npm install
\`\`\`

\`\`\`json
{
  "name": "example",
  "version": "1.0.0",
  "dependencies": {
    "react": "^18.0.0"
  }
}
\`\`\`

\`\`\`css
/* CSS */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
\`\`\`

\`\`\`html
<!-- HTML -->
<!DOCTYPE html>
<html>
<head>
  <title>Example</title>
</head>
<body>
  <h1>Hello, World!</h1>
</body>
</html>
\`\`\`

### Line Highlighting

\`\`\`javascript {2,4-6}
function example() {
  const highlighted = true; // This line is highlighted
  const normal = false;
  const start = true;       // These lines
  const middle = true;      // are highlighted
  const end = true;         // as a range
}
\`\`\`

### Line Numbers

\`\`\`javascript showLineNumbers
function withLineNumbers() {
  console.log("Line numbers are shown");
  return true;
}
\`\`\`

## Frontmatter

Add metadata to your markdown files using YAML frontmatter:

\`\`\`markdown
---
title: Page Title
description: Page description for SEO
tags: [guide, tutorial, advanced]
author: John Doe
date: 2024-01-15
draft: false
---

# Your content starts here
\`\`\`

### Supported Frontmatter Fields

- \`title\` - Page title (overrides H1)
- \`description\` - Page description for SEO
- \`tags\` - Array of tags for categorization
- \`author\` - Content author
- \`date\` - Publication date
- \`lastModified\` - Last modification date
- \`draft\` - Hide from production builds
- \`order\` - Custom ordering in navigation
- \`sidebar\` - Custom sidebar configuration

## Custom Containers

Create special content blocks:

### Info Boxes

\`\`\`markdown
::: info
This is an info box with useful information.
:::

::: warning
This is a warning box for important notices.
:::

::: danger
This is a danger box for critical information.
:::

::: tip
This is a tip box for helpful suggestions.
:::
\`\`\`

### Custom Containers

\`\`\`markdown
::: custom-class "Custom Title"
Content with custom styling and title.
:::
\`\`\`

## Math Expressions

Mathematical expressions using KaTeX:

### Inline Math

\`\`\`markdown
The formula $E = mc^2$ is famous.
\`\`\`

### Block Math

\`\`\`markdown
$$
\\frac{1}{n} \\sum_{i=1}^{n} x_i = \\bar{x}
$$
\`\`\`

## Diagrams

### Mermaid Diagrams

\`\`\`mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
    C --> E[End]
    D --> E
\`\`\`

### Flowcharts

\`\`\`mermaid
flowchart LR
    A[Input] --> B[Process]
    B --> C[Output]
\`\`\`

### Sequence Diagrams

\`\`\`mermaid
sequenceDiagram
    participant A as Alice
    participant B as Bob
    A->>B: Hello Bob!
    B-->>A: Hello Alice!
\`\`\`

## Footnotes

Add footnotes to your content:

\`\`\`markdown
This is a sentence with a footnote[^1].

[^1]: This is the footnote content.
\`\`\`

## Abbreviations

Define abbreviations:

\`\`\`markdown
*[HTML]: HyperText Markup Language
*[CSS]: Cascading Style Sheets

HTML and CSS are web technologies.
\`\`\`

## Emoji Support

Use emoji shortcodes:

\`\`\`markdown
:smile: :heart: :rocket: :tada:
\`\`\`

## Table of Contents

Auto-generate table of contents:

\`\`\`markdown
[[toc]]
\`\`\`

Or with custom options:

\`\`\`markdown
[[toc levels=2,3]]
\`\`\``,metadata:{description:"Complete guide to markdown features and syntax",tags:["markdown","syntax","features"],lastModified:"2024-01-16"}},{id:"deployment",title:"Deployment",path:"/package-usage/deployment",content:`# Deployment Guide

Learn how to deploy your documentation to various hosting platforms.

## Build for Production

First, build your documentation for production:

\`\`\`bash
mdocs build
\`\`\`

This creates optimized files in the \`dist\` directory (or your configured output directory).

## Static Hosting Platforms

### Netlify

#### Method 1: Drag and Drop

1. Build your documentation: \`mdocs build\`
2. Go to [Netlify](https://netlify.com)
3. Drag the \`dist\` folder to the deploy area

#### Method 2: Git Integration

1. Connect your repository to Netlify
2. Set build command: \`mdocs build\`
3. Set publish directory: \`dist\`

#### netlify.toml Configuration

\`\`\`toml
[build]
  command = "mdocs build"
  publish = "dist"

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200
\`\`\`

### Vercel

#### Method 1: Vercel CLI

\`\`\`bash
npm install -g vercel
mdocs build
vercel --prod
\`\`\`

#### Method 2: Git Integration

1. Connect repository to Vercel
2. Set build command: \`mdocs build\`
3. Set output directory: \`dist\`

#### vercel.json Configuration

\`\`\`json
{
  "buildCommand": "mdocs build",
  "outputDirectory": "dist",
  "rewrites": [
    { "source": "/(.*)", "destination": "/index.html" }
  ]
}
\`\`\`

### GitHub Pages

#### Using GitHub Actions

Create \`.github/workflows/docs.yml\`:

\`\`\`yaml
name: Deploy Documentation

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18
          cache: 'npm'
          
      - name: Install dependencies
        run: npm ci
        
      - name: Build documentation
        run: mdocs build --base-url /repository-name/
        
      - name: Deploy to GitHub Pages
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: \${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./dist
\`\`\`

#### Manual Deployment

\`\`\`bash
# Build with correct base URL
mdocs build --base-url /repository-name/

# Deploy to gh-pages branch
npm install -g gh-pages
gh-pages -d dist
\`\`\`

### Firebase Hosting

\`\`\`bash
# Install Firebase CLI
npm install -g firebase-tools

# Login to Firebase
firebase login

# Initialize Firebase in your project
firebase init hosting

# Build documentation
mdocs build

# Deploy
firebase deploy
\`\`\`

#### firebase.json Configuration

\`\`\`json
{
  "hosting": {
    "public": "dist",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
\`\`\`

### AWS S3 + CloudFront

\`\`\`bash
# Install AWS CLI
pip install awscli

# Configure AWS credentials
aws configure

# Build documentation
mdocs build

# Sync to S3 bucket
aws s3 sync dist/ s3://your-bucket-name --delete

# Invalidate CloudFront cache
aws cloudfront create-invalidation --distribution-id YOUR_DISTRIBUTION_ID --paths "/*"
\`\`\`

## Server Hosting

### Node.js Server

Create a simple Express server:

\`\`\`javascript
// server.js
const express = require('express');
const path = require('path');

const app = express();
const port = process.env.PORT || 3000;

// Serve static files
app.use(express.static(path.join(__dirname, 'dist')));

// Handle SPA routing
app.get('*', (req, res) => {
  res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});

app.listen(port, () => {
  console.log(\`Server running on port \${port}\`);
});
\`\`\`

### Docker

Create a \`Dockerfile\`:

\`\`\`dockerfile
FROM node:18-alpine

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm ci --only=production

# Copy source code
COPY . .

# Build documentation
RUN npm run build

# Install serve
RUN npm install -g serve

# Expose port
EXPOSE 3000

# Start server
CMD ["serve", "-s", "dist", "-l", "3000"]
\`\`\`

Build and run:

\`\`\`bash
docker build -t my-docs .
docker run -p 3000:3000 my-docs
\`\`\`

### Nginx

Nginx configuration:

\`\`\`nginx
server {
    listen 80;
    server_name your-domain.com;
    root /var/www/docs;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }

    # Cache static assets
    location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
        expires 1y;
        add_header Cache-Control "public, immutable";
    }

    # Gzip compression
    gzip on;
    gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
}
\`\`\`

## Environment-Specific Builds

### Development

\`\`\`bash
mdocs build --base-url /
\`\`\`

### Staging

\`\`\`bash
mdocs build --base-url /staging/
\`\`\`

### Production

\`\`\`bash
mdocs build --base-url /docs/
\`\`\`

## Custom Domain

### DNS Configuration

For custom domains, configure DNS:

- **A Record**: Point to hosting provider's IP
- **CNAME**: Point to hosting provider's domain

### SSL Certificate

Most hosting providers offer free SSL certificates:

- **Netlify**: Automatic SSL with Let's Encrypt
- **Vercel**: Automatic SSL
- **GitHub Pages**: Automatic SSL for custom domains
- **Firebase**: Free SSL certificates

## Performance Optimization

### Build Optimizations

\`\`\`javascript
// mdocs.config.js
module.exports = {
  build: {
    minify: true,
    sourceMaps: false,
    optimization: {
      images: true,
      css: true,
      js: true
    }
  }
};
\`\`\`

### CDN Configuration

Use CDN for better performance:

\`\`\`javascript
// mdocs.config.js
module.exports = {
  build: {
    cdn: {
      enabled: true,
      url: 'https://cdn.example.com'
    }
  }
};
\`\`\`

## Monitoring and Analytics

### Google Analytics

\`\`\`javascript
// mdocs.config.js
module.exports = {
  features: {
    analytics: {
      google: 'GA_TRACKING_ID'
    }
  }
};
\`\`\`

### Plausible Analytics

\`\`\`javascript
// mdocs.config.js
module.exports = {
  features: {
    analytics: {
      plausible: 'your-domain.com'
    }
  }
};
\`\`\`

## Troubleshooting

### Common Issues

1. **404 errors on refresh**: Configure server for SPA routing
2. **Assets not loading**: Check base URL configuration
3. **Build failures**: Verify Node.js version and dependencies
4. **Slow loading**: Enable compression and caching

### Debug Mode

\`\`\`bash
mdocs build --verbose
\`\`\``,metadata:{description:"Complete deployment guide for various hosting platforms",tags:["deployment","hosting","production"],lastModified:"2024-01-16"}}]},{id:"guides",title:"Guides",path:"/guides",metadata:{description:"Step-by-step guides and tutorials",tags:["guides","tutorials","how-to"],lastModified:"2024-01-15"},children:[{id:"best-practices",title:"Best Practices",path:"/guides/best-practices",content:`# Best Practices

Follow these best practices to get the most out of our platform.

## Code Organization

### File Structure

Organize your files in a logical hierarchy:

\`\`\`
src/
├── components/
│   ├── common/
│   ├── forms/
│   └── layout/
├── hooks/
├── utils/
├── types/
└── pages/
\`\`\`

### Naming Conventions

- **Components**: Use PascalCase (\`UserProfile.tsx\`)
- **Hooks**: Use camelCase with "use" prefix (\`useUserData.ts\`)
- **Utilities**: Use camelCase (\`formatDate.ts\`)
- **Constants**: Use UPPER_SNAKE_CASE (\`API_ENDPOINTS.ts\`)

## Performance Optimization

### 1. Code Splitting

Use dynamic imports for route-based code splitting:

\`\`\`typescript
const LazyComponent = React.lazy(() => import('./HeavyComponent'));
\`\`\`

### 2. Memoization

Use React.memo for expensive components:

\`\`\`typescript
const ExpensiveComponent = React.memo(({ data }) => {
  // Component logic here
});
\`\`\`

### 3. Image Optimization

- Use appropriate image formats (WebP, AVIF)
- Implement lazy loading
- Provide multiple image sizes

## Security

### Input Validation

Always validate user input:

\`\`\`typescript
import { z } from 'zod';

const userSchema = z.object({
  email: z.string().email(),
  password: z.string().min(8),
});
\`\`\`

### API Security

- Use HTTPS in production
- Implement rate limiting
- Validate all input data
- Use proper authentication

## Error Handling

### Global Error Boundary

\`\`\`typescript
class ErrorBoundary extends React.Component {
  constructor(props) {
    super(props);
    this.state = { hasError: false };
  }

  static getDerivedStateFromError(error) {
    return { hasError: true };
  }

  componentDidCatch(error, errorInfo) {
    console.error('Error caught by boundary:', error, errorInfo);
  }

  render() {
    if (this.state.hasError) {
      return <h1>Something went wrong.</h1>;
    }

    return this.props.children;
  }
}
\`\`\`

## Testing

### Unit Testing

Write tests for utility functions:

\`\`\`typescript
import { formatDate } from '../utils/date';

describe('formatDate', () => {
  it('should format date correctly', () => {
    const date = new Date('2024-01-15');
    expect(formatDate(date)).toBe('January 15, 2024');
  });
});
\`\`\`

### Integration Testing

Test component interactions:

\`\`\`typescript
import { render, screen, fireEvent } from '@testing-library/react';
import { UserForm } from '../components/UserForm';

test('submits form with correct data', () => {
  render(<UserForm onSubmit={mockSubmit} />);
  
  fireEvent.change(screen.getByLabelText(/email/i), {
    target: { value: 'test@example.com' }
  });
  
  fireEvent.click(screen.getByRole('button', { name: /submit/i }));
  
  expect(mockSubmit).toHaveBeenCalledWith({
    email: 'test@example.com'
  });
});
\`\`\``,metadata:{description:"Development best practices and guidelines",tags:["best-practices","code-quality","performance"],lastModified:"2024-01-15"}}]}];function GF(){const[e,t]=V.useState(!1),[n,r]=V.useState(!1),{themeName:i}=Or(),{currentSection:a,currentSectionData:s,expandedSections:o,toggleExpanded:l,navigateToSection:u}=rF($c),{searchQuery:c,searchResults:d,handleSearch:h,clearSearch:p}=$F($c);V.useEffect(()=>{const x=()=>{const g=window.innerWidth<1024;r(g),g||t(!1)};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const m=x=>{u(x),n&&t(!1),p()},b=()=>i==="ultra-modern"?S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"absolute top-1/4 left-1/4 w-64 h-64 bg-blue-500/5 rounded-full blur-3xl animate-smooth-bounce"}),S.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-violet-500/3 rounded-full blur-3xl animate-smooth-bounce",style:{animationDelay:"1s"}}),S.jsx("div",{className:"absolute top-3/4 left-1/2 w-48 h-48 bg-cyan-500/3 rounded-full blur-3xl animate-smooth-bounce",style:{animationDelay:"2s"}})]}):S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"absolute top-1/4 left-1/4 w-64 h-64 bg-mystical-600/10 rounded-full blur-3xl animate-pulse"}),S.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-gold-600/5 rounded-full blur-3xl animate-pulse",style:{animationDelay:"1s"}}),S.jsx("div",{className:"absolute top-3/4 left-1/2 w-48 h-48 bg-crimson-600/5 rounded-full blur-3xl animate-pulse",style:{animationDelay:"2s"}})]});return S.jsxs("div",{className:"h-screen flex flex-col transition-all duration-500",style:{backgroundColor:"var(--theme-background)",color:"var(--theme-text)"},children:[S.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",children:b()}),S.jsx(iI,{onMenuToggle:()=>t(!e),isMobile:n}),S.jsxs("div",{className:"flex-1 flex overflow-hidden relative",children:[S.jsx(lI,{sections:$c,currentSection:a,expandedSections:o,searchQuery:c,searchResults:d,onToggleExpanded:l,onNavigate:m,onSearch:h,onClearSearch:p,isOpen:e||!n,onClose:()=>t(!1),isMobile:n}),S.jsx("main",{className:"flex-1 overflow-y-auto relative",children:S.jsx(tF,{section:s})})]})]})}function WF(){return S.jsx(nF,{children:S.jsx(ne.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1},className:"min-h-screen",children:S.jsx(GF,{})})})}Db(document.getElementById("root")).render(S.jsx(V.StrictMode,{children:S.jsx(WF,{})}));